@baseplate-dev/plugin-auth 3.0.4 → 4.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (352) hide show
  1. package/dist/auth/core/common.d.ts +2 -5
  2. package/dist/auth/core/common.d.ts.map +1 -1
  3. package/dist/auth/core/common.js +14 -14
  4. package/dist/auth/core/common.js.map +1 -1
  5. package/dist/auth/core/node.d.ts +3 -3
  6. package/dist/auth/core/node.d.ts.map +1 -1
  7. package/dist/auth/core/node.js +5 -8
  8. package/dist/auth/core/node.js.map +1 -1
  9. package/dist/auth/core/web.d.ts +3 -3
  10. package/dist/auth/core/web.d.ts.map +1 -1
  11. package/dist/auth/core/web.js +4 -5
  12. package/dist/auth/core/web.js.map +1 -1
  13. package/dist/auth0/core/common.d.ts +3 -5
  14. package/dist/auth0/core/common.d.ts.map +1 -1
  15. package/dist/auth0/core/common.js +11 -14
  16. package/dist/auth0/core/common.js.map +1 -1
  17. package/dist/auth0/core/node.d.ts +3 -3
  18. package/dist/auth0/core/node.d.ts.map +1 -1
  19. package/dist/auth0/core/node.js +5 -8
  20. package/dist/auth0/core/node.js.map +1 -1
  21. package/dist/auth0/core/web.d.ts +3 -3
  22. package/dist/auth0/core/web.d.ts.map +1 -1
  23. package/dist/auth0/core/web.js +4 -5
  24. package/dist/auth0/core/web.js.map +1 -1
  25. package/dist/auth0/generators/fastify/auth0-module/auth0-module.generator.d.ts +39 -25
  26. package/dist/auth0/generators/fastify/auth0-module/auth0-module.generator.d.ts.map +1 -1
  27. package/dist/auth0/generators/fastify/auth0-module/auth0-module.generator.js +18 -24
  28. package/dist/auth0/generators/fastify/auth0-module/auth0-module.generator.js.map +1 -1
  29. package/dist/auth0/generators/fastify/auth0-module/generated/index.d.ts +16 -0
  30. package/dist/auth0/generators/fastify/auth0-module/generated/index.d.ts.map +1 -1
  31. package/dist/auth0/generators/fastify/auth0-module/generated/template-paths.d.ts +1 -0
  32. package/dist/auth0/generators/fastify/auth0-module/generated/template-paths.d.ts.map +1 -1
  33. package/dist/auth0/generators/fastify/auth0-module/generated/template-paths.js +1 -0
  34. package/dist/auth0/generators/fastify/auth0-module/generated/template-paths.js.map +1 -1
  35. package/dist/auth0/generators/fastify/auth0-module/generated/template-renderers.d.ts +9 -0
  36. package/dist/auth0/generators/fastify/auth0-module/generated/template-renderers.d.ts.map +1 -1
  37. package/dist/auth0/generators/fastify/auth0-module/generated/template-renderers.js +15 -2
  38. package/dist/auth0/generators/fastify/auth0-module/generated/template-renderers.js.map +1 -1
  39. package/dist/auth0/generators/fastify/auth0-module/generated/typed-templates.d.ts +10 -0
  40. package/dist/auth0/generators/fastify/auth0-module/generated/typed-templates.d.ts.map +1 -1
  41. package/dist/auth0/generators/fastify/auth0-module/generated/typed-templates.js +18 -2
  42. package/dist/auth0/generators/fastify/auth0-module/generated/typed-templates.js.map +1 -1
  43. package/dist/auth0/generators/fastify/auth0-module/templates/module/schema/user-session.queries.ts +22 -0
  44. package/dist/auth0/generators/react/auth0-hooks/auth0-hooks.generator.d.ts +0 -5
  45. package/dist/auth0/generators/react/auth0-hooks/auth0-hooks.generator.d.ts.map +1 -1
  46. package/dist/auth0/generators/react/auth0-hooks/auth0-hooks.generator.js +1 -10
  47. package/dist/auth0/generators/react/auth0-hooks/auth0-hooks.generator.js.map +1 -1
  48. package/dist/auth0/generators/react/auth0-hooks/generated/index.d.ts +0 -18
  49. package/dist/auth0/generators/react/auth0-hooks/generated/index.d.ts.map +1 -1
  50. package/dist/auth0/generators/react/auth0-hooks/generated/template-paths.d.ts +0 -2
  51. package/dist/auth0/generators/react/auth0-hooks/generated/template-paths.d.ts.map +1 -1
  52. package/dist/auth0/generators/react/auth0-hooks/generated/template-paths.js +0 -2
  53. package/dist/auth0/generators/react/auth0-hooks/generated/template-paths.js.map +1 -1
  54. package/dist/auth0/generators/react/auth0-hooks/generated/template-renderers.d.ts +1 -7
  55. package/dist/auth0/generators/react/auth0-hooks/generated/template-renderers.d.ts.map +1 -1
  56. package/dist/auth0/generators/react/auth0-hooks/generated/template-renderers.js +3 -12
  57. package/dist/auth0/generators/react/auth0-hooks/generated/template-renderers.js.map +1 -1
  58. package/dist/auth0/generators/react/auth0-hooks/generated/ts-import-providers.d.ts +0 -1
  59. package/dist/auth0/generators/react/auth0-hooks/generated/ts-import-providers.d.ts.map +1 -1
  60. package/dist/auth0/generators/react/auth0-hooks/generated/ts-import-providers.js +0 -1
  61. package/dist/auth0/generators/react/auth0-hooks/generated/ts-import-providers.js.map +1 -1
  62. package/dist/auth0/generators/react/auth0-hooks/generated/typed-templates.d.ts +0 -23
  63. package/dist/auth0/generators/react/auth0-hooks/generated/typed-templates.d.ts.map +1 -1
  64. package/dist/auth0/generators/react/auth0-hooks/generated/typed-templates.js +4 -33
  65. package/dist/auth0/generators/react/auth0-hooks/generated/typed-templates.js.map +1 -1
  66. package/dist/local-auth/admin/common.d.ts +3 -2
  67. package/dist/local-auth/admin/common.d.ts.map +1 -1
  68. package/dist/local-auth/admin/common.js +6 -7
  69. package/dist/local-auth/admin/common.js.map +1 -1
  70. package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/admin-crud-manage-roles-action.generator.d.ts +25 -4
  71. package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/admin-crud-manage-roles-action.generator.d.ts.map +1 -1
  72. package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/admin-crud-manage-roles-action.generator.js +16 -13
  73. package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/admin-crud-manage-roles-action.generator.js.map +1 -1
  74. package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/generated/index.d.ts +24 -7
  75. package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/generated/index.d.ts.map +1 -1
  76. package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/generated/template-paths.d.ts +0 -1
  77. package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/generated/template-paths.d.ts.map +1 -1
  78. package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/generated/template-paths.js +0 -1
  79. package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/generated/template-paths.js.map +1 -1
  80. package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/generated/template-renderers.d.ts +13 -6
  81. package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/generated/template-renderers.d.ts.map +1 -1
  82. package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/generated/template-renderers.js +5 -12
  83. package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/generated/template-renderers.js.map +1 -1
  84. package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/generated/typed-templates.d.ts +12 -5
  85. package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/generated/typed-templates.d.ts.map +1 -1
  86. package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/generated/typed-templates.js +3 -12
  87. package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/generated/typed-templates.js.map +1 -1
  88. package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/templates/routes/-components/role-manager-dialog.d.ts +3 -2
  89. package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/templates/routes/-components/role-manager-dialog.d.ts.map +1 -1
  90. package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/templates/routes/-components/role-manager-dialog.js +26 -7
  91. package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/templates/routes/-components/role-manager-dialog.js.map +1 -1
  92. package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/templates/routes/-components/role-manager-dialog.tsx +34 -12
  93. package/dist/local-auth/admin/generators/admin-crud-reset-password-action/admin-crud-reset-password-action.generator.d.ts +25 -4
  94. package/dist/local-auth/admin/generators/admin-crud-reset-password-action/admin-crud-reset-password-action.generator.d.ts.map +1 -1
  95. package/dist/local-auth/admin/generators/admin-crud-reset-password-action/admin-crud-reset-password-action.generator.js +35 -25
  96. package/dist/local-auth/admin/generators/admin-crud-reset-password-action/admin-crud-reset-password-action.generator.js.map +1 -1
  97. package/dist/local-auth/admin/generators/admin-crud-reset-password-action/generated/index.d.ts +24 -7
  98. package/dist/local-auth/admin/generators/admin-crud-reset-password-action/generated/index.d.ts.map +1 -1
  99. package/dist/local-auth/admin/generators/admin-crud-reset-password-action/generated/template-paths.d.ts +0 -1
  100. package/dist/local-auth/admin/generators/admin-crud-reset-password-action/generated/template-paths.d.ts.map +1 -1
  101. package/dist/local-auth/admin/generators/admin-crud-reset-password-action/generated/template-paths.js +0 -1
  102. package/dist/local-auth/admin/generators/admin-crud-reset-password-action/generated/template-paths.js.map +1 -1
  103. package/dist/local-auth/admin/generators/admin-crud-reset-password-action/generated/template-renderers.d.ts +13 -6
  104. package/dist/local-auth/admin/generators/admin-crud-reset-password-action/generated/template-renderers.d.ts.map +1 -1
  105. package/dist/local-auth/admin/generators/admin-crud-reset-password-action/generated/template-renderers.js +5 -12
  106. package/dist/local-auth/admin/generators/admin-crud-reset-password-action/generated/template-renderers.js.map +1 -1
  107. package/dist/local-auth/admin/generators/admin-crud-reset-password-action/generated/typed-templates.d.ts +24 -7
  108. package/dist/local-auth/admin/generators/admin-crud-reset-password-action/generated/typed-templates.d.ts.map +1 -1
  109. package/dist/local-auth/admin/generators/admin-crud-reset-password-action/generated/typed-templates.js +3 -12
  110. package/dist/local-auth/admin/generators/admin-crud-reset-password-action/generated/typed-templates.js.map +1 -1
  111. package/dist/local-auth/admin/generators/admin-crud-reset-password-action/templates/routes/-components/password-reset-dialog.d.ts +3 -2
  112. package/dist/local-auth/admin/generators/admin-crud-reset-password-action/templates/routes/-components/password-reset-dialog.d.ts.map +1 -1
  113. package/dist/local-auth/admin/generators/admin-crud-reset-password-action/templates/routes/-components/password-reset-dialog.js +22 -6
  114. package/dist/local-auth/admin/generators/admin-crud-reset-password-action/templates/routes/-components/password-reset-dialog.js.map +1 -1
  115. package/dist/local-auth/admin/generators/admin-crud-reset-password-action/templates/routes/-components/password-reset-dialog.tsx +30 -11
  116. package/dist/local-auth/admin/generators/admin-crud-roles-column/admin-crud-roles-column.generator.d.ts.map +1 -1
  117. package/dist/local-auth/admin/generators/admin-crud-roles-column/admin-crud-roles-column.generator.js +7 -11
  118. package/dist/local-auth/admin/generators/admin-crud-roles-column/admin-crud-roles-column.generator.js.map +1 -1
  119. package/dist/local-auth/admin/node.d.ts +3 -6
  120. package/dist/local-auth/admin/node.d.ts.map +1 -1
  121. package/dist/local-auth/admin/node.js +15 -18
  122. package/dist/local-auth/admin/node.js.map +1 -1
  123. package/dist/local-auth/admin/web.d.ts +3 -4
  124. package/dist/local-auth/admin/web.d.ts.map +1 -1
  125. package/dist/local-auth/admin/web.js +22 -21
  126. package/dist/local-auth/admin/web.js.map +1 -1
  127. package/dist/local-auth/core/common.d.ts +3 -5
  128. package/dist/local-auth/core/common.d.ts.map +1 -1
  129. package/dist/local-auth/core/common.js +10 -13
  130. package/dist/local-auth/core/common.js.map +1 -1
  131. package/dist/local-auth/core/generators/auth-hooks/auth-hooks.generator.d.ts +12 -3
  132. package/dist/local-auth/core/generators/auth-hooks/auth-hooks.generator.d.ts.map +1 -1
  133. package/dist/local-auth/core/generators/auth-hooks/auth-hooks.generator.js +0 -1
  134. package/dist/local-auth/core/generators/auth-hooks/auth-hooks.generator.js.map +1 -1
  135. package/dist/local-auth/core/generators/auth-hooks/generated/index.d.ts +36 -18
  136. package/dist/local-auth/core/generators/auth-hooks/generated/index.d.ts.map +1 -1
  137. package/dist/local-auth/core/generators/auth-hooks/generated/template-paths.d.ts +0 -3
  138. package/dist/local-auth/core/generators/auth-hooks/generated/template-paths.d.ts.map +1 -1
  139. package/dist/local-auth/core/generators/auth-hooks/generated/template-paths.js +0 -3
  140. package/dist/local-auth/core/generators/auth-hooks/generated/template-paths.js.map +1 -1
  141. package/dist/local-auth/core/generators/auth-hooks/generated/template-renderers.d.ts +13 -6
  142. package/dist/local-auth/core/generators/auth-hooks/generated/template-renderers.d.ts.map +1 -1
  143. package/dist/local-auth/core/generators/auth-hooks/generated/template-renderers.js +5 -12
  144. package/dist/local-auth/core/generators/auth-hooks/generated/template-renderers.js.map +1 -1
  145. package/dist/local-auth/core/generators/auth-hooks/generated/ts-import-providers.d.ts +0 -1
  146. package/dist/local-auth/core/generators/auth-hooks/generated/ts-import-providers.d.ts.map +1 -1
  147. package/dist/local-auth/core/generators/auth-hooks/generated/ts-import-providers.js +0 -1
  148. package/dist/local-auth/core/generators/auth-hooks/generated/ts-import-providers.js.map +1 -1
  149. package/dist/local-auth/core/generators/auth-hooks/generated/typed-templates.d.ts +48 -30
  150. package/dist/local-auth/core/generators/auth-hooks/generated/typed-templates.d.ts.map +1 -1
  151. package/dist/local-auth/core/generators/auth-hooks/generated/typed-templates.js +6 -49
  152. package/dist/local-auth/core/generators/auth-hooks/generated/typed-templates.js.map +1 -1
  153. package/dist/local-auth/core/generators/auth-hooks/templates/src/hooks/use-log-out.d.ts +1 -0
  154. package/dist/local-auth/core/generators/auth-hooks/templates/src/hooks/use-log-out.d.ts.map +1 -1
  155. package/dist/local-auth/core/generators/auth-hooks/templates/src/hooks/use-log-out.js +9 -2
  156. package/dist/local-auth/core/generators/auth-hooks/templates/src/hooks/use-log-out.js.map +1 -1
  157. package/dist/local-auth/core/generators/auth-hooks/templates/src/hooks/use-log-out.ts +10 -2
  158. package/dist/local-auth/core/generators/auth-hooks/templates/src/hooks/use-session.d.ts +2 -2
  159. package/dist/local-auth/core/generators/auth-hooks/templates/src/hooks/use-session.d.ts.map +1 -1
  160. package/dist/local-auth/core/generators/auth-hooks/templates/src/hooks/use-session.js +0 -1
  161. package/dist/local-auth/core/generators/auth-hooks/templates/src/hooks/use-session.js.map +1 -1
  162. package/dist/local-auth/core/generators/auth-hooks/templates/src/hooks/use-session.ts +2 -2
  163. package/dist/local-auth/core/generators/auth-module/auth-module.generator.d.ts.map +1 -1
  164. package/dist/local-auth/core/generators/auth-module/auth-module.generator.js +3 -0
  165. package/dist/local-auth/core/generators/auth-module/auth-module.generator.js.map +1 -1
  166. package/dist/local-auth/core/generators/auth-module/generated/index.d.ts +6 -1
  167. package/dist/local-auth/core/generators/auth-module/generated/index.d.ts.map +1 -1
  168. package/dist/local-auth/core/generators/auth-module/generated/typed-templates.d.ts +12 -2
  169. package/dist/local-auth/core/generators/auth-module/generated/typed-templates.d.ts.map +1 -1
  170. package/dist/local-auth/core/generators/auth-module/generated/typed-templates.js +5 -2
  171. package/dist/local-auth/core/generators/auth-module/generated/typed-templates.js.map +1 -1
  172. package/dist/local-auth/core/generators/auth-module/templates/module/schema/user-session.queries.js +16 -0
  173. package/dist/local-auth/core/generators/auth-module/templates/module/schema/user-session.queries.js.map +1 -1
  174. package/dist/local-auth/core/generators/auth-module/templates/module/schema/user-session.queries.ts +19 -0
  175. package/dist/local-auth/core/generators/auth-routes/auth-routes.generator.d.ts +12 -3
  176. package/dist/local-auth/core/generators/auth-routes/auth-routes.generator.d.ts.map +1 -1
  177. package/dist/local-auth/core/generators/auth-routes/auth-routes.generator.js +1 -8
  178. package/dist/local-auth/core/generators/auth-routes/auth-routes.generator.js.map +1 -1
  179. package/dist/local-auth/core/generators/auth-routes/generated/index.d.ts +36 -7
  180. package/dist/local-auth/core/generators/auth-routes/generated/index.d.ts.map +1 -1
  181. package/dist/local-auth/core/generators/auth-routes/generated/template-paths.d.ts +0 -1
  182. package/dist/local-auth/core/generators/auth-routes/generated/template-paths.d.ts.map +1 -1
  183. package/dist/local-auth/core/generators/auth-routes/generated/template-paths.js +0 -1
  184. package/dist/local-auth/core/generators/auth-routes/generated/template-paths.js.map +1 -1
  185. package/dist/local-auth/core/generators/auth-routes/generated/template-renderers.d.ts +13 -6
  186. package/dist/local-auth/core/generators/auth-routes/generated/template-renderers.d.ts.map +1 -1
  187. package/dist/local-auth/core/generators/auth-routes/generated/template-renderers.js +5 -12
  188. package/dist/local-auth/core/generators/auth-routes/generated/template-renderers.js.map +1 -1
  189. package/dist/local-auth/core/generators/auth-routes/generated/typed-templates.d.ts +48 -9
  190. package/dist/local-auth/core/generators/auth-routes/generated/typed-templates.d.ts.map +1 -1
  191. package/dist/local-auth/core/generators/auth-routes/generated/typed-templates.js +5 -13
  192. package/dist/local-auth/core/generators/auth-routes/generated/typed-templates.js.map +1 -1
  193. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/login.js +11 -2
  194. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/login.js.map +1 -1
  195. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/login.tsx +12 -2
  196. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/register.js +11 -2
  197. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/register.js.map +1 -1
  198. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/register.tsx +12 -2
  199. package/dist/local-auth/core/generators/react-session/generated/index.d.ts +24 -7
  200. package/dist/local-auth/core/generators/react-session/generated/index.d.ts.map +1 -1
  201. package/dist/local-auth/core/generators/react-session/generated/template-paths.d.ts +0 -1
  202. package/dist/local-auth/core/generators/react-session/generated/template-paths.d.ts.map +1 -1
  203. package/dist/local-auth/core/generators/react-session/generated/template-paths.js +0 -1
  204. package/dist/local-auth/core/generators/react-session/generated/template-paths.js.map +1 -1
  205. package/dist/local-auth/core/generators/react-session/generated/template-renderers.d.ts +13 -7
  206. package/dist/local-auth/core/generators/react-session/generated/template-renderers.d.ts.map +1 -1
  207. package/dist/local-auth/core/generators/react-session/generated/template-renderers.js +5 -12
  208. package/dist/local-auth/core/generators/react-session/generated/template-renderers.js.map +1 -1
  209. package/dist/local-auth/core/generators/react-session/generated/typed-templates.d.ts +24 -7
  210. package/dist/local-auth/core/generators/react-session/generated/typed-templates.d.ts.map +1 -1
  211. package/dist/local-auth/core/generators/react-session/generated/typed-templates.js +4 -15
  212. package/dist/local-auth/core/generators/react-session/generated/typed-templates.js.map +1 -1
  213. package/dist/local-auth/core/generators/react-session/react-session.generator.d.ts +12 -3
  214. package/dist/local-auth/core/generators/react-session/react-session.generator.d.ts.map +1 -1
  215. package/dist/local-auth/core/generators/react-session/react-session.generator.js +0 -1
  216. package/dist/local-auth/core/generators/react-session/react-session.generator.js.map +1 -1
  217. package/dist/local-auth/core/generators/react-session/templates/src/app/user-session-provider.d.ts.map +1 -1
  218. package/dist/local-auth/core/generators/react-session/templates/src/app/user-session-provider.js +10 -2
  219. package/dist/local-auth/core/generators/react-session/templates/src/app/user-session-provider.js.map +1 -1
  220. package/dist/local-auth/core/generators/react-session/templates/src/app/user-session-provider.tsx +11 -2
  221. package/dist/local-auth/core/node.d.ts +3 -3
  222. package/dist/local-auth/core/node.d.ts.map +1 -1
  223. package/dist/local-auth/core/node.js +5 -8
  224. package/dist/local-auth/core/node.js.map +1 -1
  225. package/dist/local-auth/core/web.d.ts +3 -3
  226. package/dist/local-auth/core/web.d.ts.map +1 -1
  227. package/dist/local-auth/core/web.js +4 -5
  228. package/dist/local-auth/core/web.js.map +1 -1
  229. package/dist/placeholder-auth/core/common.d.ts +2 -5
  230. package/dist/placeholder-auth/core/common.d.ts.map +1 -1
  231. package/dist/placeholder-auth/core/common.js +10 -13
  232. package/dist/placeholder-auth/core/common.js.map +1 -1
  233. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/index.d.ts +0 -12
  234. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/index.d.ts.map +1 -1
  235. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/template-paths.d.ts +0 -2
  236. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/template-paths.d.ts.map +1 -1
  237. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/template-paths.js +0 -2
  238. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/template-paths.js.map +1 -1
  239. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/template-renderers.d.ts +1 -7
  240. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/template-renderers.d.ts.map +1 -1
  241. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/template-renderers.js +2 -14
  242. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/template-renderers.js.map +1 -1
  243. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/ts-import-providers.d.ts +0 -1
  244. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/ts-import-providers.d.ts.map +1 -1
  245. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/ts-import-providers.js +0 -1
  246. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/ts-import-providers.js.map +1 -1
  247. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/typed-templates.d.ts +0 -15
  248. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/typed-templates.d.ts.map +1 -1
  249. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/typed-templates.js +2 -31
  250. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/typed-templates.js.map +1 -1
  251. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/placeholder-auth-hooks.generator.d.ts +0 -5
  252. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/placeholder-auth-hooks.generator.d.ts.map +1 -1
  253. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/placeholder-auth-hooks.generator.js +1 -7
  254. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/placeholder-auth-hooks.generator.js.map +1 -1
  255. package/dist/placeholder-auth/core/node.d.ts +3 -3
  256. package/dist/placeholder-auth/core/node.d.ts.map +1 -1
  257. package/dist/placeholder-auth/core/node.js +5 -8
  258. package/dist/placeholder-auth/core/node.js.map +1 -1
  259. package/dist/placeholder-auth/core/web.d.ts +3 -3
  260. package/dist/placeholder-auth/core/web.d.ts.map +1 -1
  261. package/dist/placeholder-auth/core/web.js +4 -5
  262. package/dist/placeholder-auth/core/web.js.map +1 -1
  263. package/dist/web/assets/__federation_expose_auth0CoreCommon-DLSGXjCI.js +40 -0
  264. package/dist/web/assets/__federation_expose_auth0CoreCommon-DLSGXjCI.js.map +1 -0
  265. package/dist/web/assets/{__federation_expose_auth0CoreWeb-B9jV1EyN.js → __federation_expose_auth0CoreWeb-C7FfhlmF.js} +9 -10
  266. package/dist/web/assets/{__federation_expose_auth0CoreWeb-B9jV1EyN.js.map → __federation_expose_auth0CoreWeb-C7FfhlmF.js.map} +1 -1
  267. package/dist/web/assets/__federation_expose_authCoreCommon-BF58isGa.js +29 -0
  268. package/dist/web/assets/__federation_expose_authCoreCommon-BF58isGa.js.map +1 -0
  269. package/dist/web/assets/{__federation_expose_authCoreWeb-CTQI1rXb.js → __federation_expose_authCoreWeb-DMq9M88g.js} +10 -11
  270. package/dist/web/assets/{__federation_expose_authCoreWeb-CTQI1rXb.js.map → __federation_expose_authCoreWeb-DMq9M88g.js.map} +1 -1
  271. package/dist/web/assets/{__federation_expose_local-authAdminCommon-C0_ovnDb.js → __federation_expose_local-authAdminCommon-sQw4q5YX.js} +8 -9
  272. package/dist/web/assets/__federation_expose_local-authAdminCommon-sQw4q5YX.js.map +1 -0
  273. package/dist/web/assets/__federation_expose_local-authAdminWeb-9FbO89NR.js +41 -0
  274. package/dist/web/assets/__federation_expose_local-authAdminWeb-9FbO89NR.js.map +1 -0
  275. package/dist/web/assets/__federation_expose_local-authCoreCommon-CpUK09_4.js +21 -0
  276. package/dist/web/assets/__federation_expose_local-authCoreCommon-CpUK09_4.js.map +1 -0
  277. package/dist/web/assets/{__federation_expose_local-authCoreWeb-Dz4oU0uP.js → __federation_expose_local-authCoreWeb-Czp0GaY1.js} +9 -10
  278. package/dist/web/assets/{__federation_expose_local-authCoreWeb-Dz4oU0uP.js.map → __federation_expose_local-authCoreWeb-Czp0GaY1.js.map} +1 -1
  279. package/dist/web/assets/__federation_expose_placeholder-authCoreCommon-CFDDdOMo.js +23 -0
  280. package/dist/web/assets/__federation_expose_placeholder-authCoreCommon-CFDDdOMo.js.map +1 -0
  281. package/dist/web/assets/{__federation_expose_placeholder-authCoreWeb-KJ8YuuIQ.js → __federation_expose_placeholder-authCoreWeb-Bcn1_oDP.js} +9 -13
  282. package/dist/web/assets/{__federation_expose_placeholder-authCoreWeb-KJ8YuuIQ.js.map → __federation_expose_placeholder-authCoreWeb-Bcn1_oDP.js.map} +1 -1
  283. package/dist/web/assets/{__federation_fn_import-CVjKjdRb.js → __federation_fn_import-DsXcpNlB.js} +2 -2
  284. package/dist/web/assets/{__federation_fn_import-CVjKjdRb.js.map → __federation_fn_import-DsXcpNlB.js.map} +1 -1
  285. package/dist/web/assets/__federation_shared_@baseplate-dev/project-builder-lib/{web-BTmJxb08.js → web-zqe3PPcn.js} +37 -118
  286. package/dist/web/assets/__federation_shared_@baseplate-dev/project-builder-lib/web-zqe3PPcn.js.map +1 -0
  287. package/dist/web/assets/__federation_shared_@baseplate-dev/{project-builder-lib-FK4Jv94w.js → project-builder-lib-CmgMfkI5.js} +2185 -2171
  288. package/dist/web/assets/__federation_shared_@baseplate-dev/project-builder-lib-CmgMfkI5.js.map +1 -0
  289. package/dist/web/assets/__federation_shared_@baseplate-dev/{ui-components-jZLf5m_y.js → ui-components-D1Dayhn9.js} +5 -5
  290. package/dist/web/assets/__federation_shared_@baseplate-dev/{ui-components-jZLf5m_y.js.map → ui-components-D1Dayhn9.js.map} +1 -1
  291. package/dist/web/assets/__federation_shared_@baseplate-dev/{utils-CAgM5SRt.js → utils-BO5VHrCf.js} +58 -6
  292. package/dist/web/assets/__federation_shared_@baseplate-dev/utils-BO5VHrCf.js.map +1 -0
  293. package/dist/web/assets/__federation_shared_@tanstack/{react-router-DynsSbJG.js → react-router-CNzDweD5.js} +2 -2
  294. package/dist/web/assets/__federation_shared_@tanstack/{react-router-DynsSbJG.js.map → react-router-CNzDweD5.js.map} +1 -1
  295. package/dist/web/assets/{get-auth-plugin-definition-DqZ2Eg7c.js → get-auth-plugin-definition-BV2O8wTa.js} +2 -2
  296. package/dist/web/assets/{get-auth-plugin-definition-DqZ2Eg7c.js.map → get-auth-plugin-definition-BV2O8wTa.js.map} +1 -1
  297. package/dist/web/assets/{index-Dccn3WBN.js → index-BL7fotl7.js} +2 -2
  298. package/dist/web/assets/{index-Dccn3WBN.js.map → index-BL7fotl7.js.map} +1 -1
  299. package/dist/web/assets/{index.esm-DeCjXqFv.js → index.esm-B4RpOlq_.js} +2 -2
  300. package/dist/web/assets/{index.esm-DeCjXqFv.js.map → index.esm-B4RpOlq_.js.map} +1 -1
  301. package/dist/web/assets/{isEqual-DAXqKRba.js → isEqual-BQtm2LNT.js} +5 -5
  302. package/dist/web/assets/{isEqual-DAXqKRba.js.map → isEqual-BQtm2LNT.js.map} +1 -1
  303. package/dist/web/assets/{model-merger-kOQ_dmiE.js → model-merger-BwRNqcBu.js} +194 -81
  304. package/dist/web/assets/model-merger-BwRNqcBu.js.map +1 -0
  305. package/dist/web/assets/{plugin-definition-JFxKP18O.js → plugin-definition-B9d2CoQL.js} +2 -2
  306. package/dist/web/assets/{plugin-definition-JFxKP18O.js.map → plugin-definition-B9d2CoQL.js.map} +1 -1
  307. package/dist/web/assets/{plugin-definition-CxKhFkmJ.js → plugin-definition-BMTsmwyH.js} +2 -2
  308. package/dist/web/assets/{plugin-definition-CxKhFkmJ.js.map → plugin-definition-BMTsmwyH.js.map} +1 -1
  309. package/dist/web/assets/{plugin-definition-DKygiFuR.js → plugin-definition-CHD5r-h7.js} +2 -2
  310. package/dist/web/assets/{plugin-definition-DKygiFuR.js.map → plugin-definition-CHD5r-h7.js.map} +1 -1
  311. package/dist/web/assets/{plugin-definition-qkkt1X28.js → plugin-definition-DA9rJBcS.js} +2 -2
  312. package/dist/web/assets/{plugin-definition-qkkt1X28.js.map → plugin-definition-DA9rJBcS.js.map} +1 -1
  313. package/dist/web/assets/{react-DA5A88WZ.js → react-B9vhIZMy.js} +2 -2
  314. package/dist/web/assets/{react-DA5A88WZ.js.map → react-B9vhIZMy.js.map} +1 -1
  315. package/dist/web/assets/remoteEntry.js +10 -10
  316. package/dist/web/assets/{styles-CfTjrsB-.js → styles-CEm5K1iU.js} +3 -3
  317. package/dist/web/assets/{styles-CfTjrsB-.js.map → styles-CEm5K1iU.js.map} +1 -1
  318. package/package.json +14 -13
  319. package/dist/auth0/generators/react/auth0-hooks/templates/src/hooks/use-current-user.gql +0 -10
  320. package/dist/auth0/generators/react/auth0-hooks/templates/src/hooks/use-current-user.ts +0 -30
  321. package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/templates/routes/-components/role-manager-dialog.gql +0 -7
  322. package/dist/local-auth/admin/generators/admin-crud-reset-password-action/templates/routes/-components/password-reset-dialog.gql +0 -7
  323. package/dist/local-auth/core/generators/auth-hooks/templates/src/hooks/use-current-user.d.ts +0 -18
  324. package/dist/local-auth/core/generators/auth-hooks/templates/src/hooks/use-current-user.d.ts.map +0 -1
  325. package/dist/local-auth/core/generators/auth-hooks/templates/src/hooks/use-current-user.gql +0 -10
  326. package/dist/local-auth/core/generators/auth-hooks/templates/src/hooks/use-current-user.js +0 -22
  327. package/dist/local-auth/core/generators/auth-hooks/templates/src/hooks/use-current-user.js.map +0 -1
  328. package/dist/local-auth/core/generators/auth-hooks/templates/src/hooks/use-current-user.ts +0 -39
  329. package/dist/local-auth/core/generators/auth-hooks/templates/src/hooks/use-log-out.gql +0 -5
  330. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/queries.gql +0 -17
  331. package/dist/local-auth/core/generators/react-session/templates/src/app/user-session-provider.gql +0 -7
  332. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/templates/src/hooks/use-current-user.d.ts +0 -14
  333. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/templates/src/hooks/use-current-user.d.ts.map +0 -1
  334. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/templates/src/hooks/use-current-user.gql +0 -10
  335. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/templates/src/hooks/use-current-user.js +0 -23
  336. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/templates/src/hooks/use-current-user.js.map +0 -1
  337. package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/templates/src/hooks/use-current-user.ts +0 -35
  338. package/dist/web/assets/__federation_expose_auth0CoreCommon-DxPG_Wc0.js +0 -43
  339. package/dist/web/assets/__federation_expose_auth0CoreCommon-DxPG_Wc0.js.map +0 -1
  340. package/dist/web/assets/__federation_expose_authCoreCommon-Cxa_7fkO.js +0 -29
  341. package/dist/web/assets/__federation_expose_authCoreCommon-Cxa_7fkO.js.map +0 -1
  342. package/dist/web/assets/__federation_expose_local-authAdminCommon-C0_ovnDb.js.map +0 -1
  343. package/dist/web/assets/__federation_expose_local-authAdminWeb-GqHU6av7.js +0 -40
  344. package/dist/web/assets/__federation_expose_local-authAdminWeb-GqHU6av7.js.map +0 -1
  345. package/dist/web/assets/__federation_expose_local-authCoreCommon-PHXPCKoj.js +0 -27
  346. package/dist/web/assets/__federation_expose_local-authCoreCommon-PHXPCKoj.js.map +0 -1
  347. package/dist/web/assets/__federation_expose_placeholder-authCoreCommon-CrB_sJO_.js +0 -26
  348. package/dist/web/assets/__federation_expose_placeholder-authCoreCommon-CrB_sJO_.js.map +0 -1
  349. package/dist/web/assets/__federation_shared_@baseplate-dev/project-builder-lib/web-BTmJxb08.js.map +0 -1
  350. package/dist/web/assets/__federation_shared_@baseplate-dev/project-builder-lib-FK4Jv94w.js.map +0 -1
  351. package/dist/web/assets/__federation_shared_@baseplate-dev/utils-CAgM5SRt.js.map +0 -1
  352. package/dist/web/assets/model-merger-kOQ_dmiE.js.map +0 -1
@@ -1,14 +1,13 @@
1
- import { createPlatformPluginExport, webConfigSpec, } from '@baseplate-dev/project-builder-lib';
1
+ import { createPluginModule, webConfigSpec, } from '@baseplate-dev/project-builder-lib';
2
2
  import { LocalAuthDefinitionEditor } from './components/local-auth-definition-editor.js';
3
3
  import '../../styles.css';
4
- export default createPlatformPluginExport({
4
+ export default createPluginModule({
5
+ name: 'web',
5
6
  dependencies: {
6
7
  webConfig: webConfigSpec,
7
8
  },
8
- exports: {},
9
9
  initialize: ({ webConfig }, { pluginKey }) => {
10
- webConfig.registerWebConfigComponent(pluginKey, LocalAuthDefinitionEditor);
11
- return {};
10
+ webConfig.components.set(pluginKey, LocalAuthDefinitionEditor);
12
11
  },
13
12
  });
14
13
  //# sourceMappingURL=web.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"web.js","sourceRoot":"","sources":["../../../src/local-auth/core/web.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,0BAA0B,EAC1B,aAAa,GACd,MAAM,oCAAoC,CAAC;AAE5C,OAAO,EAAE,yBAAyB,EAAE,MAAM,8CAA8C,CAAC;AAEzF,OAAO,kBAAkB,CAAC;AAE1B,eAAe,0BAA0B,CAAC;IACxC,YAAY,EAAE;QACZ,SAAS,EAAE,aAAa;KACzB;IACD,OAAO,EAAE,EAAE;IACX,UAAU,EAAE,CAAC,EAAE,SAAS,EAAE,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE;QAC3C,SAAS,CAAC,0BAA0B,CAAC,SAAS,EAAE,yBAAyB,CAAC,CAAC;QAC3E,OAAO,EAAE,CAAC;IACZ,CAAC;CACF,CAAC,CAAC"}
1
+ {"version":3,"file":"web.js","sourceRoot":"","sources":["../../../src/local-auth/core/web.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,kBAAkB,EAClB,aAAa,GACd,MAAM,oCAAoC,CAAC;AAE5C,OAAO,EAAE,yBAAyB,EAAE,MAAM,8CAA8C,CAAC;AAEzF,OAAO,kBAAkB,CAAC;AAE1B,eAAe,kBAAkB,CAAC;IAChC,IAAI,EAAE,KAAK;IACX,YAAY,EAAE;QACZ,SAAS,EAAE,aAAa;KACzB;IACD,UAAU,EAAE,CAAC,EAAE,SAAS,EAAE,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE;QAC3C,SAAS,CAAC,UAAU,CAAC,GAAG,CAAC,SAAS,EAAE,yBAAyB,CAAC,CAAC;IACjE,CAAC;CACF,CAAC,CAAC"}
@@ -1,8 +1,5 @@
1
- export type { PluginPlatformModule } from '@baseplate-dev/project-builder-lib';
2
- declare const _default: import("@baseplate-dev/project-builder-lib").PluginPlatformModule<{
3
- config: import("@baseplate-dev/project-builder-lib").PluginSpecWithInitializer<import("@baseplate-dev/project-builder-lib").PluginConfigSpec>;
4
- }, {
5
- authModelConfig: import("@baseplate-dev/project-builder-lib").PluginSpec<import("@baseplate-dev/project-builder-lib").AuthModelConfigSpec>;
1
+ declare const _default: import("@baseplate-dev/project-builder-lib").PluginModule<{
2
+ [x: string]: import("@baseplate-dev/project-builder-lib").PluginSpec<object, object>;
6
3
  }>;
7
4
  export default _default;
8
5
  //# sourceMappingURL=common.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../../src/placeholder-auth/core/common.ts"],"names":[],"mappings":"AAYA,YAAY,EAAE,oBAAoB,EAAE,MAAM,oCAAoC,CAAC;;;;;;AAE/E,wBAmBG"}
1
+ {"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../../src/placeholder-auth/core/common.ts"],"names":[],"mappings":";;;AAUA,wBAeG"}
@@ -1,20 +1,17 @@
1
- import { authModelConfigSpec, createPlatformPluginExport, ModelUtils, pluginConfigSpec, } from '@baseplate-dev/project-builder-lib';
1
+ import { authModelsSpec, createPluginModule, pluginConfigSpec, } from '@baseplate-dev/project-builder-lib';
2
2
  import { PLACEHOLDER_AUTH_MODELS } from '#src/placeholder-auth/constants/model-names.js';
3
3
  import { createPlaceholderAuthPluginDefinitionSchema } from './schema/plugin-definition.js';
4
- export default createPlatformPluginExport({
4
+ export default createPluginModule({
5
+ name: 'common',
5
6
  dependencies: {
6
- config: pluginConfigSpec,
7
+ pluginConfig: pluginConfigSpec,
8
+ authModels: authModelsSpec,
7
9
  },
8
- exports: {
9
- authModelConfig: authModelConfigSpec,
10
- },
11
- initialize: ({ config }, { pluginKey }) => {
12
- config.registerSchemaCreator(pluginKey, createPlaceholderAuthPluginDefinitionSchema);
13
- return {
14
- authModelConfig: {
15
- getUserModel: (definition) => ModelUtils.byNameOrThrow(definition, PLACEHOLDER_AUTH_MODELS.user),
16
- },
17
- };
10
+ initialize: ({ pluginConfig, authModels }, { pluginKey }) => {
11
+ pluginConfig.schemas.set(pluginKey, createPlaceholderAuthPluginDefinitionSchema);
12
+ authModels.getAuthModels.set(() => ({
13
+ user: PLACEHOLDER_AUTH_MODELS.user,
14
+ }));
18
15
  },
19
16
  });
20
17
  //# sourceMappingURL=common.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"common.js","sourceRoot":"","sources":["../../../src/placeholder-auth/core/common.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,mBAAmB,EACnB,0BAA0B,EAC1B,UAAU,EACV,gBAAgB,GACjB,MAAM,oCAAoC,CAAC;AAE5C,OAAO,EAAE,uBAAuB,EAAE,MAAM,gDAAgD,CAAC;AAEzF,OAAO,EAAE,2CAA2C,EAAE,MAAM,+BAA+B,CAAC;AAK5F,eAAe,0BAA0B,CAAC;IACxC,YAAY,EAAE;QACZ,MAAM,EAAE,gBAAgB;KACzB;IACD,OAAO,EAAE;QACP,eAAe,EAAE,mBAAmB;KACrC;IACD,UAAU,EAAE,CAAC,EAAE,MAAM,EAAE,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE;QACxC,MAAM,CAAC,qBAAqB,CAC1B,SAAS,EACT,2CAA2C,CAC5C,CAAC;QACF,OAAO;YACL,eAAe,EAAE;gBACf,YAAY,EAAE,CAAC,UAAU,EAAE,EAAE,CAC3B,UAAU,CAAC,aAAa,CAAC,UAAU,EAAE,uBAAuB,CAAC,IAAI,CAAC;aACrE;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"}
1
+ {"version":3,"file":"common.js","sourceRoot":"","sources":["../../../src/placeholder-auth/core/common.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,cAAc,EACd,kBAAkB,EAClB,gBAAgB,GACjB,MAAM,oCAAoC,CAAC;AAE5C,OAAO,EAAE,uBAAuB,EAAE,MAAM,gDAAgD,CAAC;AAEzF,OAAO,EAAE,2CAA2C,EAAE,MAAM,+BAA+B,CAAC;AAE5F,eAAe,kBAAkB,CAAC;IAChC,IAAI,EAAE,QAAQ;IACd,YAAY,EAAE;QACZ,YAAY,EAAE,gBAAgB;QAC9B,UAAU,EAAE,cAAc;KAC3B;IACD,UAAU,EAAE,CAAC,EAAE,YAAY,EAAE,UAAU,EAAE,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE;QAC1D,YAAY,CAAC,OAAO,CAAC,GAAG,CACtB,SAAS,EACT,2CAA2C,CAC5C,CAAC;QACF,UAAU,CAAC,aAAa,CAAC,GAAG,CAAC,GAAG,EAAE,CAAC,CAAC;YAClC,IAAI,EAAE,uBAAuB,CAAC,IAAI;SACnC,CAAC,CAAC,CAAC;IACN,CAAC;CACF,CAAC,CAAC"}
@@ -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"}
@@ -1,19 +1,17 @@
1
- import { renderTextTemplateFileAction, typescriptFileProvider, } from '@baseplate-dev/core-generators';
2
- import { generatedGraphqlImportsProvider } from '@baseplate-dev/react-generators';
1
+ import { typescriptFileProvider } from '@baseplate-dev/core-generators';
3
2
  import { createGeneratorTask, createProviderType } from '@baseplate-dev/sync';
4
3
  import { PLACEHOLDER_AUTH_CORE_PLACEHOLDER_AUTH_HOOKS_PATHS } from './template-paths.js';
5
4
  import { PLACEHOLDER_AUTH_CORE_PLACEHOLDER_AUTH_HOOKS_TEMPLATES } from './typed-templates.js';
6
5
  const placeholderAuthCorePlaceholderAuthHooksRenderers = createProviderType('placeholder-auth-core-placeholder-auth-hooks-renderers');
7
6
  const placeholderAuthCorePlaceholderAuthHooksRenderersTask = createGeneratorTask({
8
7
  dependencies: {
9
- generatedGraphqlImports: generatedGraphqlImportsProvider,
10
8
  paths: PLACEHOLDER_AUTH_CORE_PLACEHOLDER_AUTH_HOOKS_PATHS.provider,
11
9
  typescriptFile: typescriptFileProvider,
12
10
  },
13
11
  exports: {
14
12
  placeholderAuthCorePlaceholderAuthHooksRenderers: placeholderAuthCorePlaceholderAuthHooksRenderers.export(),
15
13
  },
16
- run({ generatedGraphqlImports, paths, typescriptFile }) {
14
+ run({ paths, typescriptFile }) {
17
15
  return {
18
16
  providers: {
19
17
  placeholderAuthCorePlaceholderAuthHooksRenderers: {
@@ -21,20 +19,10 @@ const placeholderAuthCorePlaceholderAuthHooksRenderersTask = createGeneratorTask
21
19
  render: (options) => typescriptFile.renderTemplateGroup({
22
20
  group: PLACEHOLDER_AUTH_CORE_PLACEHOLDER_AUTH_HOOKS_TEMPLATES.hooksGroup,
23
21
  paths,
24
- importMapProviders: {
25
- generatedGraphqlImports,
26
- },
27
22
  generatorPaths: paths,
28
23
  ...options,
29
24
  }),
30
25
  },
31
- useCurrentUserGql: {
32
- render: (options) => renderTextTemplateFileAction({
33
- template: PLACEHOLDER_AUTH_CORE_PLACEHOLDER_AUTH_HOOKS_TEMPLATES.useCurrentUserGql,
34
- destination: paths.useCurrentUserGql,
35
- ...options,
36
- }),
37
- },
38
26
  },
39
27
  },
40
28
  };
@@ -1 +1 @@
1
- {"version":3,"file":"template-renderers.js","sourceRoot":"","sources":["../../../../../../src/placeholder-auth/core/generators/placeholder-auth-hooks/generated/template-renderers.ts"],"names":[],"mappings":"AAMA,OAAO,EACL,4BAA4B,EAC5B,sBAAsB,GACvB,MAAM,gCAAgC,CAAC;AACxC,OAAO,EAAE,+BAA+B,EAAE,MAAM,iCAAiC,CAAC;AAClF,OAAO,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAE9E,OAAO,EAAE,kDAAkD,EAAE,MAAM,qBAAqB,CAAC;AACzF,OAAO,EAAE,sDAAsD,EAAE,MAAM,sBAAsB,CAAC;AAyB9F,MAAM,gDAAgD,GACpD,kBAAkB,CAChB,wDAAwD,CACzD,CAAC;AAEJ,MAAM,oDAAoD,GACxD,mBAAmB,CAAC;IAClB,YAAY,EAAE;QACZ,uBAAuB,EAAE,+BAA+B;QACxD,KAAK,EAAE,kDAAkD,CAAC,QAAQ;QAClE,cAAc,EAAE,sBAAsB;KACvC;IACD,OAAO,EAAE;QACP,gDAAgD,EAC9C,gDAAgD,CAAC,MAAM,EAAE;KAC5D;IACD,GAAG,CAAC,EAAE,uBAAuB,EAAE,KAAK,EAAE,cAAc,EAAE;QACpD,OAAO;YACL,SAAS,EAAE;gBACT,gDAAgD,EAAE;oBAChD,UAAU,EAAE;wBACV,MAAM,EAAE,CAAC,OAAO,EAAE,EAAE,CAClB,cAAc,CAAC,mBAAmB,CAAC;4BACjC,KAAK,EACH,sDAAsD,CAAC,UAAU;4BACnE,KAAK;4BACL,kBAAkB,EAAE;gCAClB,uBAAuB;6BACxB;4BACD,cAAc,EAAE,KAAK;4BACrB,GAAG,OAAO;yBACX,CAAC;qBACL;oBACD,iBAAiB,EAAE;wBACjB,MAAM,EAAE,CAAC,OAAO,EAAE,EAAE,CAClB,4BAA4B,CAAC;4BAC3B,QAAQ,EACN,sDAAsD,CAAC,iBAAiB;4BAC1E,WAAW,EAAE,KAAK,CAAC,iBAAiB;4BACpC,GAAG,OAAO;yBACX,CAAC;qBACL;iBACF;aACF;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC;AAEL,MAAM,CAAC,MAAM,sDAAsD,GAAG;IACpE,QAAQ,EAAE,gDAAgD;IAC1D,IAAI,EAAE,oDAAoD;CAC3D,CAAC"}
1
+ {"version":3,"file":"template-renderers.js","sourceRoot":"","sources":["../../../../../../src/placeholder-auth/core/generators/placeholder-auth-hooks/generated/template-renderers.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,sBAAsB,EAAE,MAAM,gCAAgC,CAAC;AACxE,OAAO,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAE9E,OAAO,EAAE,kDAAkD,EAAE,MAAM,qBAAqB,CAAC;AACzF,OAAO,EAAE,sDAAsD,EAAE,MAAM,sBAAsB,CAAC;AAe9F,MAAM,gDAAgD,GACpD,kBAAkB,CAChB,wDAAwD,CACzD,CAAC;AAEJ,MAAM,oDAAoD,GACxD,mBAAmB,CAAC;IAClB,YAAY,EAAE;QACZ,KAAK,EAAE,kDAAkD,CAAC,QAAQ;QAClE,cAAc,EAAE,sBAAsB;KACvC;IACD,OAAO,EAAE;QACP,gDAAgD,EAC9C,gDAAgD,CAAC,MAAM,EAAE;KAC5D;IACD,GAAG,CAAC,EAAE,KAAK,EAAE,cAAc,EAAE;QAC3B,OAAO;YACL,SAAS,EAAE;gBACT,gDAAgD,EAAE;oBAChD,UAAU,EAAE;wBACV,MAAM,EAAE,CAAC,OAAO,EAAE,EAAE,CAClB,cAAc,CAAC,mBAAmB,CAAC;4BACjC,KAAK,EACH,sDAAsD,CAAC,UAAU;4BACnE,KAAK;4BACL,cAAc,EAAE,KAAK;4BACrB,GAAG,OAAO;yBACX,CAAC;qBACL;iBACF;aACF;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC;AAEL,MAAM,CAAC,MAAM,sDAAsD,GAAG;IACpE,QAAQ,EAAE,gDAAgD;IAC1D,IAAI,EAAE,oDAAoD;CAC3D,CAAC"}
@@ -4,7 +4,6 @@ export declare const PLACEHOLDER_AUTH_CORE_PLACEHOLDER_AUTH_HOOKS_IMPORTS: {
4
4
  SessionData: {
5
5
  isTypeOnly: true;
6
6
  };
7
- useCurrentUser: {};
8
7
  useLogOut: {};
9
8
  useRequiredUserId: {};
10
9
  useSession: {};
@@ -1 +1 @@
1
- {"version":3,"file":"ts-import-providers.d.ts","sourceRoot":"","sources":["../../../../../../src/placeholder-auth/core/generators/placeholder-auth-hooks/generated/ts-import-providers.ts"],"names":[],"mappings":"AAiCA,eAAO,MAAM,oDAAoD;;;;;;;;;;;;;;;;;CAEhE,CAAC"}
1
+ {"version":3,"file":"ts-import-providers.d.ts","sourceRoot":"","sources":["../../../../../../src/placeholder-auth/core/generators/placeholder-auth-hooks/generated/ts-import-providers.ts"],"names":[],"mappings":"AAgCA,eAAO,MAAM,oDAAoD;;;;;;;;;;;;;;;;CAEhE,CAAC"}
@@ -13,7 +13,6 @@ const placeholderAuthCorePlaceholderAuthHooksImportsTask = createGeneratorTask({
13
13
  authHooksImports: createTsImportMap(authHooksImportsSchema, {
14
14
  AuthRole: paths.useSession,
15
15
  SessionData: paths.useSession,
16
- useCurrentUser: paths.useCurrentUser,
17
16
  useLogOut: paths.useLogOut,
18
17
  useRequiredUserId: paths.useRequiredUserId,
19
18
  useSession: paths.useSession,
@@ -1 +1 @@
1
- {"version":3,"file":"ts-import-providers.js","sourceRoot":"","sources":["../../../../../../src/placeholder-auth/core/generators/placeholder-auth-hooks/generated/ts-import-providers.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,iBAAiB,EACjB,YAAY,GACb,MAAM,gCAAgC,CAAC;AACxC,OAAO,EACL,wBAAwB,EACxB,sBAAsB,GACvB,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAE1D,OAAO,EAAE,kDAAkD,EAAE,MAAM,qBAAqB,CAAC;AAEzF,MAAM,kDAAkD,GAAG,mBAAmB,CAAC;IAC7E,YAAY,EAAE;QACZ,KAAK,EAAE,kDAAkD,CAAC,QAAQ;KACnE;IACD,OAAO,EAAE,EAAE,gBAAgB,EAAE,wBAAwB,CAAC,MAAM,CAAC,YAAY,CAAC,EAAE;IAC5E,GAAG,CAAC,EAAE,KAAK,EAAE;QACX,OAAO;YACL,SAAS,EAAE;gBACT,gBAAgB,EAAE,iBAAiB,CAAC,sBAAsB,EAAE;oBAC1D,QAAQ,EAAE,KAAK,CAAC,UAAU;oBAC1B,WAAW,EAAE,KAAK,CAAC,UAAU;oBAC7B,cAAc,EAAE,KAAK,CAAC,cAAc;oBACpC,SAAS,EAAE,KAAK,CAAC,SAAS;oBAC1B,iBAAiB,EAAE,KAAK,CAAC,iBAAiB;oBAC1C,UAAU,EAAE,KAAK,CAAC,UAAU;iBAC7B,CAAC;aACH;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,oDAAoD,GAAG;IAClE,IAAI,EAAE,kDAAkD;CACzD,CAAC"}
1
+ {"version":3,"file":"ts-import-providers.js","sourceRoot":"","sources":["../../../../../../src/placeholder-auth/core/generators/placeholder-auth-hooks/generated/ts-import-providers.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,iBAAiB,EACjB,YAAY,GACb,MAAM,gCAAgC,CAAC;AACxC,OAAO,EACL,wBAAwB,EACxB,sBAAsB,GACvB,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAE1D,OAAO,EAAE,kDAAkD,EAAE,MAAM,qBAAqB,CAAC;AAEzF,MAAM,kDAAkD,GAAG,mBAAmB,CAAC;IAC7E,YAAY,EAAE;QACZ,KAAK,EAAE,kDAAkD,CAAC,QAAQ;KACnE;IACD,OAAO,EAAE,EAAE,gBAAgB,EAAE,wBAAwB,CAAC,MAAM,CAAC,YAAY,CAAC,EAAE;IAC5E,GAAG,CAAC,EAAE,KAAK,EAAE;QACX,OAAO;YACL,SAAS,EAAE;gBACT,gBAAgB,EAAE,iBAAiB,CAAC,sBAAsB,EAAE;oBAC1D,QAAQ,EAAE,KAAK,CAAC,UAAU;oBAC1B,WAAW,EAAE,KAAK,CAAC,UAAU;oBAC7B,SAAS,EAAE,KAAK,CAAC,SAAS;oBAC1B,iBAAiB,EAAE,KAAK,CAAC,iBAAiB;oBAC1C,UAAU,EAAE,KAAK,CAAC,UAAU;iBAC7B,CAAC;aACH;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,oDAAoD,GAAG;IAClE,IAAI,EAAE,kDAAkD;CACzD,CAAC"}
@@ -1,11 +1,4 @@
1
1
  export declare const hooksGroup: {
2
- useCurrentUser: import("@baseplate-dev/core-generators").TsTemplateFile<{}, {
3
- generatedGraphqlImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
4
- '*': {};
5
- }>>;
6
- }, {
7
- useSession: {};
8
- }>;
9
2
  useLogOut: import("@baseplate-dev/core-generators").TsTemplateFile<{}, {}, Record<never, Record<never, never>>>;
10
3
  useRequiredUserId: import("@baseplate-dev/core-generators").TsTemplateFile<{}, {}, {
11
4
  useSession: {};
@@ -14,19 +7,11 @@ export declare const hooksGroup: {
14
7
  };
15
8
  export declare const PLACEHOLDER_AUTH_CORE_PLACEHOLDER_AUTH_HOOKS_TEMPLATES: {
16
9
  hooksGroup: {
17
- useCurrentUser: import("@baseplate-dev/core-generators").TsTemplateFile<{}, {
18
- generatedGraphqlImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
19
- '*': {};
20
- }>>;
21
- }, {
22
- useSession: {};
23
- }>;
24
10
  useLogOut: import("@baseplate-dev/core-generators").TsTemplateFile<{}, {}, Record<never, Record<never, never>>>;
25
11
  useRequiredUserId: import("@baseplate-dev/core-generators").TsTemplateFile<{}, {}, {
26
12
  useSession: {};
27
13
  }>;
28
14
  useSession: import("@baseplate-dev/core-generators").TsTemplateFile<{}, {}, Record<never, Record<never, never>>>;
29
15
  };
30
- useCurrentUserGql: import("@baseplate-dev/core-generators").TextTemplateFile<{}>;
31
16
  };
32
17
  //# sourceMappingURL=typed-templates.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"typed-templates.d.ts","sourceRoot":"","sources":["../../../../../../src/placeholder-auth/core/generators/placeholder-auth-hooks/generated/typed-templates.ts"],"names":[],"mappings":"AA2EA,eAAO,MAAM,UAAU;;;;;;;;;;;;;CAKtB,CAAC;AAcF,eAAO,MAAM,sDAAsD;;;;;;;;;;;;;;;;CAGlE,CAAC"}
1
+ {"version":3,"file":"typed-templates.d.ts","sourceRoot":"","sources":["../../../../../../src/placeholder-auth/core/generators/placeholder-auth-hooks/generated/typed-templates.ts"],"names":[],"mappings":"AAqDA,eAAO,MAAM,UAAU;;;;;;CAA+C,CAAC;AAEvE,eAAO,MAAM,sDAAsD;;;;;;;;CAElE,CAAC"}
@@ -1,20 +1,5 @@
1
- import { createTextTemplateFile, createTsTemplateFile, } from '@baseplate-dev/core-generators';
2
- import { generatedGraphqlImportsProvider } from '@baseplate-dev/react-generators';
1
+ import { createTsTemplateFile } from '@baseplate-dev/core-generators';
3
2
  import path from 'node:path';
4
- const useCurrentUser = createTsTemplateFile({
5
- fileOptions: { kind: 'singleton' },
6
- group: 'hooks',
7
- importMapProviders: {
8
- generatedGraphqlImports: generatedGraphqlImportsProvider,
9
- },
10
- name: 'use-current-user',
11
- projectExports: { useCurrentUser: {} },
12
- referencedGeneratorTemplates: { useSession: {} },
13
- source: {
14
- path: path.join(import.meta.dirname, '../templates/src/hooks/use-current-user.ts'),
15
- },
16
- variables: {},
17
- });
18
3
  const useLogOut = createTsTemplateFile({
19
4
  fileOptions: { kind: 'singleton' },
20
5
  group: 'hooks',
@@ -53,22 +38,8 @@ const useSession = createTsTemplateFile({
53
38
  },
54
39
  variables: {},
55
40
  });
56
- export const hooksGroup = {
57
- useCurrentUser,
58
- useLogOut,
59
- useRequiredUserId,
60
- useSession,
61
- };
62
- const useCurrentUserGql = createTextTemplateFile({
63
- fileOptions: { kind: 'singleton' },
64
- name: 'use-current-user-gql',
65
- source: {
66
- path: path.join(import.meta.dirname, '../templates/src/hooks/use-current-user.gql'),
67
- },
68
- variables: {},
69
- });
41
+ export const hooksGroup = { useLogOut, useRequiredUserId, useSession };
70
42
  export const PLACEHOLDER_AUTH_CORE_PLACEHOLDER_AUTH_HOOKS_TEMPLATES = {
71
43
  hooksGroup,
72
- useCurrentUserGql,
73
44
  };
74
45
  //# sourceMappingURL=typed-templates.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"typed-templates.js","sourceRoot":"","sources":["../../../../../../src/placeholder-auth/core/generators/placeholder-auth-hooks/generated/typed-templates.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,sBAAsB,EACtB,oBAAoB,GACrB,MAAM,gCAAgC,CAAC;AACxC,OAAO,EAAE,+BAA+B,EAAE,MAAM,iCAAiC,CAAC;AAClF,OAAO,IAAI,MAAM,WAAW,CAAC;AAE7B,MAAM,cAAc,GAAG,oBAAoB,CAAC;IAC1C,WAAW,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE;IAClC,KAAK,EAAE,OAAO;IACd,kBAAkB,EAAE;QAClB,uBAAuB,EAAE,+BAA+B;KACzD;IACD,IAAI,EAAE,kBAAkB;IACxB,cAAc,EAAE,EAAE,cAAc,EAAE,EAAE,EAAE;IACtC,4BAA4B,EAAE,EAAE,UAAU,EAAE,EAAE,EAAE;IAChD,MAAM,EAAE;QACN,IAAI,EAAE,IAAI,CAAC,IAAI,CACb,MAAM,CAAC,IAAI,CAAC,OAAO,EACnB,4CAA4C,CAC7C;KACF;IACD,SAAS,EAAE,EAAE;CACd,CAAC,CAAC;AAEH,MAAM,SAAS,GAAG,oBAAoB,CAAC;IACrC,WAAW,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE;IAClC,KAAK,EAAE,OAAO;IACd,kBAAkB,EAAE,EAAE;IACtB,IAAI,EAAE,aAAa;IACnB,cAAc,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE;IACjC,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,iBAAiB,GAAG,oBAAoB,CAAC;IAC7C,WAAW,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE;IAClC,KAAK,EAAE,OAAO;IACd,kBAAkB,EAAE,EAAE;IACtB,IAAI,EAAE,sBAAsB;IAC5B,cAAc,EAAE,EAAE,iBAAiB,EAAE,EAAE,EAAE;IACzC,4BAA4B,EAAE,EAAE,UAAU,EAAE,EAAE,EAAE;IAChD,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,UAAU,GAAG,oBAAoB,CAAC;IACtC,WAAW,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE;IAClC,KAAK,EAAE,OAAO;IACd,kBAAkB,EAAE,EAAE;IACtB,IAAI,EAAE,aAAa;IACnB,cAAc,EAAE;QACd,WAAW,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE;QACjC,UAAU,EAAE,EAAE;QACd,QAAQ,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE;KAC/B;IACD,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,UAAU,GAAG;IACxB,cAAc;IACd,SAAS;IACT,iBAAiB;IACjB,UAAU;CACX,CAAC;AAEF,MAAM,iBAAiB,GAAG,sBAAsB,CAAC;IAC/C,WAAW,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE;IAClC,IAAI,EAAE,sBAAsB;IAC5B,MAAM,EAAE;QACN,IAAI,EAAE,IAAI,CAAC,IAAI,CACb,MAAM,CAAC,IAAI,CAAC,OAAO,EACnB,6CAA6C,CAC9C;KACF;IACD,SAAS,EAAE,EAAE;CACd,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,sDAAsD,GAAG;IACpE,UAAU;IACV,iBAAiB;CAClB,CAAC"}
1
+ {"version":3,"file":"typed-templates.js","sourceRoot":"","sources":["../../../../../../src/placeholder-auth/core/generators/placeholder-auth-hooks/generated/typed-templates.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,gCAAgC,CAAC;AACtE,OAAO,IAAI,MAAM,WAAW,CAAC;AAE7B,MAAM,SAAS,GAAG,oBAAoB,CAAC;IACrC,WAAW,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE;IAClC,KAAK,EAAE,OAAO;IACd,kBAAkB,EAAE,EAAE;IACtB,IAAI,EAAE,aAAa;IACnB,cAAc,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE;IACjC,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,iBAAiB,GAAG,oBAAoB,CAAC;IAC7C,WAAW,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE;IAClC,KAAK,EAAE,OAAO;IACd,kBAAkB,EAAE,EAAE;IACtB,IAAI,EAAE,sBAAsB;IAC5B,cAAc,EAAE,EAAE,iBAAiB,EAAE,EAAE,EAAE;IACzC,4BAA4B,EAAE,EAAE,UAAU,EAAE,EAAE,EAAE;IAChD,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,UAAU,GAAG,oBAAoB,CAAC;IACtC,WAAW,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE;IAClC,KAAK,EAAE,OAAO;IACd,kBAAkB,EAAE,EAAE;IACtB,IAAI,EAAE,aAAa;IACnB,cAAc,EAAE;QACd,WAAW,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE;QACjC,UAAU,EAAE,EAAE;QACd,QAAQ,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE;KAC/B;IACD,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,UAAU,GAAG,EAAE,SAAS,EAAE,iBAAiB,EAAE,UAAU,EAAE,CAAC;AAEvE,MAAM,CAAC,MAAM,sDAAsD,GAAG;IACpE,UAAU;CACX,CAAC"}
@@ -14,7 +14,6 @@ export declare const placeholderAuthHooksGenerator: import("@baseplate-dev/sync"
14
14
  SessionData: {
15
15
  isTypeOnly: true;
16
16
  };
17
- useCurrentUser: {};
18
17
  useLogOut: {};
19
18
  useRequiredUserId: {};
20
19
  useSession: {};
@@ -28,14 +27,10 @@ export declare const placeholderAuthHooksGenerator: import("@baseplate-dev/sync"
28
27
  renderers: import("@baseplate-dev/sync").GeneratorTask<{
29
28
  placeholderAuthCorePlaceholderAuthHooksRenderers: import("@baseplate-dev/sync").ProviderExport<import("./generated/template-renderers.js").PlaceholderAuthCorePlaceholderAuthHooksRenderers>;
30
29
  }, {
31
- generatedGraphqlImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
32
- '*': {};
33
- }>>;
34
30
  paths: import("@baseplate-dev/sync").ProviderType<import("./generated/template-paths.js").PlaceholderAuthCorePlaceholderAuthHooksPaths>;
35
31
  typescriptFile: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").TypescriptFileProvider>;
36
32
  }, undefined>;
37
33
  main: import("@baseplate-dev/sync").GeneratorTask<any, {
38
- paths: import("@baseplate-dev/sync").ProviderType<import("./generated/template-paths.js").PlaceholderAuthCorePlaceholderAuthHooksPaths>;
39
34
  renderers: import("@baseplate-dev/sync").ProviderType<import("./generated/template-renderers.js").PlaceholderAuthCorePlaceholderAuthHooksRenderers>;
40
35
  }, any>;
41
36
  }>;
@@ -1 +1 @@
1
- {"version":3,"file":"placeholder-auth-hooks.generator.d.ts","sourceRoot":"","sources":["../../../../../src/placeholder-auth/core/generators/placeholder-auth-hooks/placeholder-auth-hooks.generator.ts"],"names":[],"mappings":"AAQA;;;;GAIG;AACH,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA4BxC,CAAC"}
1
+ {"version":3,"file":"placeholder-auth-hooks.generator.d.ts","sourceRoot":"","sources":["../../../../../src/placeholder-auth/core/generators/placeholder-auth-hooks/placeholder-auth-hooks.generator.ts"],"names":[],"mappings":"AAOA;;;;GAIG;AACH,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAqBxC,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 { PLACEHOLDER_AUTH_CORE_PLACEHOLDER_AUTH_HOOKS_GENERATED as GENERATED_TEMPLATES } from './generated/index.js';
@@ -18,17 +17,12 @@ export const placeholderAuthHooksGenerator = createGenerator({
18
17
  renderers: GENERATED_TEMPLATES.renderers.task,
19
18
  main: createGeneratorTask({
20
19
  dependencies: {
21
- paths: GENERATED_TEMPLATES.paths.provider,
22
20
  renderers: GENERATED_TEMPLATES.renderers.provider,
23
21
  },
24
- run({ paths, renderers }) {
22
+ run({ renderers }) {
25
23
  return {
26
24
  build: async (builder) => {
27
25
  await builder.apply(renderers.hooksGroup.render({}));
28
- await builder.apply(renderTextTemplateFileAction({
29
- template: GENERATED_TEMPLATES.templates.useCurrentUserGql,
30
- destination: paths.useCurrentUserGql,
31
- }));
32
26
  },
33
27
  };
34
28
  },
@@ -1 +1 @@
1
- {"version":3,"file":"placeholder-auth-hooks.generator.js","sourceRoot":"","sources":["../../../../../src/placeholder-auth/core/generators/placeholder-auth-hooks/placeholder-auth-hooks.generator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,4BAA4B,EAAE,MAAM,gCAAgC,CAAC;AAC9E,OAAO,EAAE,eAAe,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAC3E,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,sDAAsD,IAAI,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAErH,MAAM,gBAAgB,GAAG,CAAC,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;AAEtC;;;;GAIG;AACH,MAAM,CAAC,MAAM,6BAA6B,GAAG,eAAe,CAAC;IAC3D,IAAI,EAAE,8CAA8C;IACpD,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,IAAI,EAAE,mBAAmB,CAAC;YACxB,YAAY,EAAE;gBACZ,KAAK,EAAE,mBAAmB,CAAC,KAAK,CAAC,QAAQ;gBACzC,SAAS,EAAE,mBAAmB,CAAC,SAAS,CAAC,QAAQ;aAClD;YACD,GAAG,CAAC,EAAE,KAAK,EAAE,SAAS,EAAE;gBACtB,OAAO;oBACL,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE;wBACvB,MAAM,OAAO,CAAC,KAAK,CAAC,SAAS,CAAC,UAAU,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,CAAC;wBACrD,MAAM,OAAO,CAAC,KAAK,CACjB,4BAA4B,CAAC;4BAC3B,QAAQ,EAAE,mBAAmB,CAAC,SAAS,CAAC,iBAAiB;4BACzD,WAAW,EAAE,KAAK,CAAC,iBAAiB;yBACrC,CAAC,CACH,CAAC;oBACJ,CAAC;iBACF,CAAC;YACJ,CAAC;SACF,CAAC;KACH,CAAC;CACH,CAAC,CAAC"}
1
+ {"version":3,"file":"placeholder-auth-hooks.generator.js","sourceRoot":"","sources":["../../../../../src/placeholder-auth/core/generators/placeholder-auth-hooks/placeholder-auth-hooks.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,sDAAsD,IAAI,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAErH,MAAM,gBAAgB,GAAG,CAAC,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;AAEtC;;;;GAIG;AACH,MAAM,CAAC,MAAM,6BAA6B,GAAG,eAAe,CAAC;IAC3D,IAAI,EAAE,8CAA8C;IACpD,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,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,CAAC,SAAS,CAAC,UAAU,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,CAAC;oBACvD,CAAC;iBACF,CAAC;YACJ,CAAC;SACF,CAAC;KACH,CAAC;CACH,CAAC,CAAC"}
@@ -1,5 +1,5 @@
1
- declare const _default: import("@baseplate-dev/project-builder-lib").PluginPlatformModule<{
2
- appCompiler: import("@baseplate-dev/project-builder-lib").PluginSpecWithInitializer<import("@baseplate-dev/project-builder-lib").AppCompilerSpec>;
3
- }, {}>;
1
+ declare const _default: import("@baseplate-dev/project-builder-lib").PluginModule<{
2
+ [x: string]: import("@baseplate-dev/project-builder-lib").PluginSpec<object, object>;
3
+ }>;
4
4
  export default _default;
5
5
  //# sourceMappingURL=node.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"node.d.ts","sourceRoot":"","sources":["../../../src/placeholder-auth/core/node.ts"],"names":[],"mappings":";;;AAeA,wBAiCG"}
1
+ {"version":3,"file":"node.d.ts","sourceRoot":"","sources":["../../../src/placeholder-auth/core/node.ts"],"names":[],"mappings":";;;AAeA,wBA+BG"}
@@ -1,14 +1,14 @@
1
- import { appCompilerSpec, backendAppEntryType, createPlatformPluginExport, webAppEntryType, } from '@baseplate-dev/project-builder-lib';
1
+ import { appCompilerSpec, backendAppEntryType, createPluginModule, webAppEntryType, } from '@baseplate-dev/project-builder-lib';
2
2
  import { getAuthPluginDefinition } from '#src/auth/index.js';
3
3
  import { placeholderAuthHooksGenerator, placeholderAuthModuleGenerator, placeholderReactAuthGenerator, } from './generators/index.js';
4
- export default createPlatformPluginExport({
4
+ export default createPluginModule({
5
+ name: 'node',
5
6
  dependencies: {
6
7
  appCompiler: appCompilerSpec,
7
8
  },
8
- exports: {},
9
9
  initialize: ({ appCompiler }, { pluginKey }) => {
10
10
  // register backend compiler
11
- appCompiler.registerAppCompiler({
11
+ appCompiler.compilers.push({
12
12
  pluginKey,
13
13
  appType: backendAppEntryType,
14
14
  compile: ({ projectDefinition, appCompiler }) => {
@@ -17,9 +17,7 @@ export default createPlatformPluginExport({
17
17
  authModule: placeholderAuthModuleGenerator({}),
18
18
  });
19
19
  },
20
- });
21
- // register web compiler
22
- appCompiler.registerAppCompiler({
20
+ }, {
23
21
  pluginKey,
24
22
  appType: webAppEntryType,
25
23
  compile: ({ appCompiler }) => {
@@ -29,7 +27,6 @@ export default createPlatformPluginExport({
29
27
  });
30
28
  },
31
29
  });
32
- return {};
33
30
  },
34
31
  });
35
32
  //# sourceMappingURL=node.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"node.js","sourceRoot":"","sources":["../../../src/placeholder-auth/core/node.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,0BAA0B,EAC1B,eAAe,GAChB,MAAM,oCAAoC,CAAC;AAE5C,OAAO,EAAE,uBAAuB,EAAE,MAAM,oBAAoB,CAAC;AAE7D,OAAO,EACL,6BAA6B,EAC7B,8BAA8B,EAC9B,6BAA6B,GAC9B,MAAM,uBAAuB,CAAC;AAE/B,eAAe,0BAA0B,CAAC;IACxC,YAAY,EAAE;QACZ,WAAW,EAAE,eAAe;KAC7B;IACD,OAAO,EAAE,EAAE;IACX,UAAU,EAAE,CAAC,EAAE,WAAW,EAAE,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE;QAC7C,4BAA4B;QAC5B,WAAW,CAAC,mBAAmB,CAAC;YAC9B,SAAS;YACT,OAAO,EAAE,mBAAmB;YAC5B,OAAO,EAAE,CAAC,EAAE,iBAAiB,EAAE,WAAW,EAAE,EAAE,EAAE;gBAC9C,MAAM,cAAc,GAAG,uBAAuB,CAAC,iBAAiB,CAAC,CAAC;gBAElE,WAAW,CAAC,oBAAoB,CAAC,cAAc,CAAC,cAAc,EAAE;oBAC9D,UAAU,EAAE,8BAA8B,CAAC,EAAE,CAAC;iBAC/C,CAAC,CAAC;YACL,CAAC;SACF,CAAC,CAAC;QAEH,wBAAwB;QACxB,WAAW,CAAC,mBAAmB,CAAC;YAC9B,SAAS;YACT,OAAO,EAAE,eAAe;YACxB,OAAO,EAAE,CAAC,EAAE,WAAW,EAAE,EAAE,EAAE;gBAC3B,WAAW,CAAC,eAAe,CAAC;oBAC1B,SAAS,EAAE,6BAA6B,CAAC,EAAE,CAAC;oBAC5C,SAAS,EAAE,6BAA6B,CAAC,EAAE,CAAC;iBAC7C,CAAC,CAAC;YACL,CAAC;SACF,CAAC,CAAC;QAEH,OAAO,EAAE,CAAC;IACZ,CAAC;CACF,CAAC,CAAC"}
1
+ {"version":3,"file":"node.js","sourceRoot":"","sources":["../../../src/placeholder-auth/core/node.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,kBAAkB,EAClB,eAAe,GAChB,MAAM,oCAAoC,CAAC;AAE5C,OAAO,EAAE,uBAAuB,EAAE,MAAM,oBAAoB,CAAC;AAE7D,OAAO,EACL,6BAA6B,EAC7B,8BAA8B,EAC9B,6BAA6B,GAC9B,MAAM,uBAAuB,CAAC;AAE/B,eAAe,kBAAkB,CAAC;IAChC,IAAI,EAAE,MAAM;IACZ,YAAY,EAAE;QACZ,WAAW,EAAE,eAAe;KAC7B;IACD,UAAU,EAAE,CAAC,EAAE,WAAW,EAAE,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE;QAC7C,4BAA4B;QAC5B,WAAW,CAAC,SAAS,CAAC,IAAI,CACxB;YACE,SAAS;YACT,OAAO,EAAE,mBAAmB;YAC5B,OAAO,EAAE,CAAC,EAAE,iBAAiB,EAAE,WAAW,EAAE,EAAE,EAAE;gBAC9C,MAAM,cAAc,GAAG,uBAAuB,CAAC,iBAAiB,CAAC,CAAC;gBAElE,WAAW,CAAC,oBAAoB,CAAC,cAAc,CAAC,cAAc,EAAE;oBAC9D,UAAU,EAAE,8BAA8B,CAAC,EAAE,CAAC;iBAC/C,CAAC,CAAC;YACL,CAAC;SACF,EACD;YACE,SAAS;YACT,OAAO,EAAE,eAAe;YACxB,OAAO,EAAE,CAAC,EAAE,WAAW,EAAE,EAAE,EAAE;gBAC3B,WAAW,CAAC,eAAe,CAAC;oBAC1B,SAAS,EAAE,6BAA6B,CAAC,EAAE,CAAC;oBAC5C,SAAS,EAAE,6BAA6B,CAAC,EAAE,CAAC;iBAC7C,CAAC,CAAC;YACL,CAAC;SACF,CACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import '../../styles.css';
2
- declare const _default: import("@baseplate-dev/project-builder-lib").PluginPlatformModule<{
3
- webConfig: import("@baseplate-dev/project-builder-lib").PluginSpecWithInitializer<import("@baseplate-dev/project-builder-lib").WebConfigSpec>;
4
- }, {}>;
2
+ declare const _default: import("@baseplate-dev/project-builder-lib").PluginModule<{
3
+ [x: string]: import("@baseplate-dev/project-builder-lib").PluginSpec<object, object>;
4
+ }>;
5
5
  export default _default;
6
6
  //# sourceMappingURL=web.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"web.d.ts","sourceRoot":"","sources":["../../../src/placeholder-auth/core/web.ts"],"names":[],"mappings":"AAOA,OAAO,kBAAkB,CAAC;;;;AAE1B,wBAYG"}
1
+ {"version":3,"file":"web.d.ts","sourceRoot":"","sources":["../../../src/placeholder-auth/core/web.ts"],"names":[],"mappings":"AAOA,OAAO,kBAAkB,CAAC;;;;AAE1B,wBAQG"}
@@ -1,14 +1,13 @@
1
- import { createPlatformPluginExport, webConfigSpec, } from '@baseplate-dev/project-builder-lib';
1
+ import { createPluginModule, webConfigSpec, } from '@baseplate-dev/project-builder-lib';
2
2
  import { PlaceholderAuthDefinitionEditor } from './components/placeholder-auth-definition-editor.js';
3
3
  import '../../styles.css';
4
- export default createPlatformPluginExport({
4
+ export default createPluginModule({
5
+ name: 'web',
5
6
  dependencies: {
6
7
  webConfig: webConfigSpec,
7
8
  },
8
- exports: {},
9
9
  initialize: ({ webConfig }, { pluginKey }) => {
10
- webConfig.registerWebConfigComponent(pluginKey, PlaceholderAuthDefinitionEditor);
11
- return {};
10
+ webConfig.components.set(pluginKey, PlaceholderAuthDefinitionEditor);
12
11
  },
13
12
  });
14
13
  //# sourceMappingURL=web.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"web.js","sourceRoot":"","sources":["../../../src/placeholder-auth/core/web.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,0BAA0B,EAC1B,aAAa,GACd,MAAM,oCAAoC,CAAC;AAE5C,OAAO,EAAE,+BAA+B,EAAE,MAAM,oDAAoD,CAAC;AAErG,OAAO,kBAAkB,CAAC;AAE1B,eAAe,0BAA0B,CAAC;IACxC,YAAY,EAAE;QACZ,SAAS,EAAE,aAAa;KACzB;IACD,OAAO,EAAE,EAAE;IACX,UAAU,EAAE,CAAC,EAAE,SAAS,EAAE,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE;QAC3C,SAAS,CAAC,0BAA0B,CAClC,SAAS,EACT,+BAA+B,CAChC,CAAC;QACF,OAAO,EAAE,CAAC;IACZ,CAAC;CACF,CAAC,CAAC"}
1
+ {"version":3,"file":"web.js","sourceRoot":"","sources":["../../../src/placeholder-auth/core/web.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,kBAAkB,EAClB,aAAa,GACd,MAAM,oCAAoC,CAAC;AAE5C,OAAO,EAAE,+BAA+B,EAAE,MAAM,oDAAoD,CAAC;AAErG,OAAO,kBAAkB,CAAC;AAE1B,eAAe,kBAAkB,CAAC;IAChC,IAAI,EAAE,KAAK;IACX,YAAY,EAAE;QACZ,SAAS,EAAE,aAAa;KACzB;IACD,UAAU,EAAE,CAAC,EAAE,SAAS,EAAE,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE;QAC3C,SAAS,CAAC,UAAU,CAAC,GAAG,CAAC,SAAS,EAAE,+BAA+B,CAAC,CAAC;IACvE,CAAC;CACF,CAAC,CAAC"}
@@ -0,0 +1,40 @@
1
+ import { importShared } from './__federation_fn_import-DsXcpNlB.js';
2
+ import { c as createAuth0PluginDefinitionSchema, A as AUTH0_MODELS } from './plugin-definition-CHD5r-h7.js';
3
+
4
+ const AUTH0_PLUGIN_CONFIG_MIGRATIONS = [
5
+ {
6
+ name: "move-models",
7
+ version: 1,
8
+ migrate: (config) => {
9
+ const typedConfig = config;
10
+ return {
11
+ updatedConfig: {
12
+ ...typedConfig,
13
+ userAccountModelRef: void 0,
14
+ modelRefs: {
15
+ user: typedConfig.userAccountModelRef
16
+ }
17
+ }
18
+ };
19
+ }
20
+ }
21
+ ];
22
+
23
+ const {authModelsSpec,createPluginModule,pluginConfigSpec} = await importShared('@baseplate-dev/project-builder-lib');
24
+ const common = createPluginModule({
25
+ name: "common",
26
+ dependencies: {
27
+ pluginConfig: pluginConfigSpec,
28
+ authModels: authModelsSpec
29
+ },
30
+ initialize: ({ pluginConfig, authModels }, { pluginKey }) => {
31
+ pluginConfig.schemas.set(pluginKey, createAuth0PluginDefinitionSchema);
32
+ pluginConfig.migrations.set(pluginKey, AUTH0_PLUGIN_CONFIG_MIGRATIONS);
33
+ authModels.getAuthModels.set(() => ({
34
+ user: AUTH0_MODELS.user
35
+ }));
36
+ }
37
+ });
38
+
39
+ export { common as default };
40
+ //# sourceMappingURL=__federation_expose_auth0CoreCommon-DLSGXjCI.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"__federation_expose_auth0CoreCommon-DLSGXjCI.js","sources":["../../../src/auth0/core/schema/migrations.ts","../../../src/auth0/core/common.ts"],"sourcesContent":["import type { PluginConfigMigration } from '@baseplate-dev/project-builder-lib';\n\nexport const AUTH0_PLUGIN_CONFIG_MIGRATIONS: PluginConfigMigration[] = [\n {\n name: 'move-models',\n version: 1,\n migrate: (config) => {\n const typedConfig = config as { userAccountModelRef: string };\n return {\n updatedConfig: {\n ...typedConfig,\n userAccountModelRef: undefined,\n modelRefs: {\n user: typedConfig.userAccountModelRef,\n },\n },\n };\n },\n },\n];\n","import {\n authModelsSpec,\n createPluginModule,\n pluginConfigSpec,\n} from '@baseplate-dev/project-builder-lib';\n\nimport { AUTH0_MODELS } from '../constants/model-names.js';\nimport { AUTH0_PLUGIN_CONFIG_MIGRATIONS } from './schema/migrations.js';\nimport { createAuth0PluginDefinitionSchema } from './schema/plugin-definition.js';\n\n// necessary for Typescript to infer the return type of the initialize function\nexport type { PluginModule } from '@baseplate-dev/project-builder-lib';\n\nexport default createPluginModule({\n name: 'common',\n dependencies: {\n pluginConfig: pluginConfigSpec,\n authModels: authModelsSpec,\n },\n initialize: ({ pluginConfig, authModels }, { pluginKey }) => {\n pluginConfig.schemas.set(pluginKey, createAuth0PluginDefinitionSchema);\n pluginConfig.migrations.set(pluginKey, AUTH0_PLUGIN_CONFIG_MIGRATIONS);\n\n authModels.getAuthModels.set(() => ({\n user: AUTH0_MODELS.user,\n }));\n },\n});\n"],"names":[],"mappings":";;;AAEO,MAAM,8BAAA,GAA0D;AAAA,EACrE;AAAA,IACE,IAAA,EAAM,aAAA;AAAA,IACN,OAAA,EAAS,CAAA;AAAA,IACT,OAAA,EAAS,CAAC,MAAA,KAAW;AACnB,MAAA,MAAM,WAAA,GAAc,MAAA;AACpB,MAAA,OAAO;AAAA,QACL,aAAA,EAAe;AAAA,UACb,GAAG,WAAA;AAAA,UACH,mBAAA,EAAqB,MAAA;AAAA,UACrB,SAAA,EAAW;AAAA,YACT,MAAM,WAAA,CAAY;AAAA;AACpB;AACF,OACF;AAAA,IACF;AAAA;AAEJ,CAAA;;ACnBA,MAAA,CAAA,cAAA,CAAA,kBAAA,CAAA,gBAAA,CAAA,GAAA,MAAA,YAAA,CAAA,oCAAA,CAAA;AAaA,eAAe,kBAAA,CAAmB;AAAA,EAChC,IAAA,EAAM,QAAA;AAAA,EACN,YAAA,EAAc;AAAA,IACZ,YAAA,EAAc,gBAAA;AAAA,IACd,UAAA,EAAY;AAAA,GACd;AAAA,EACA,UAAA,EAAY,CAAC,EAAE,YAAA,EAAc,YAAW,EAAG,EAAE,WAAU,KAAM;AAC3D,IAAA,YAAA,CAAa,OAAA,CAAQ,GAAA,CAAI,SAAA,EAAW,iCAAiC,CAAA;AACrE,IAAA,YAAA,CAAa,UAAA,CAAW,GAAA,CAAI,SAAA,EAAW,8BAA8B,CAAA;AAErE,IAAA,UAAA,CAAW,aAAA,CAAc,IAAI,OAAO;AAAA,MAClC,MAAM,YAAA,CAAa;AAAA,KACrB,CAAE,CAAA;AAAA,EACJ;AACF,CAAC,CAAA;;;;"}