@baseplate-dev/plugin-auth 4.0.2 → 5.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 (500) hide show
  1. package/CHANGELOG.md +59 -0
  2. package/README.md +3 -3
  3. package/dist/auth/core/node.d.ts.map +1 -1
  4. package/dist/auth/core/node.js +2 -1
  5. package/dist/auth/core/node.js.map +1 -1
  6. package/dist/auth/core/schema/plugin-definition.d.ts +2 -12
  7. package/dist/auth/core/schema/plugin-definition.d.ts.map +1 -1
  8. package/dist/auth/core/schema/roles/schema.d.ts +2 -12
  9. package/dist/auth/core/schema/roles/schema.d.ts.map +1 -1
  10. package/dist/auth/core/schema/roles/schema.js +10 -17
  11. package/dist/auth/core/schema/roles/schema.js.map +1 -1
  12. package/dist/auth/plugin.json +1 -1
  13. package/dist/better-auth/constants/model-names.d.ts +8 -0
  14. package/dist/better-auth/constants/model-names.d.ts.map +1 -0
  15. package/dist/better-auth/constants/model-names.js +8 -0
  16. package/dist/better-auth/constants/model-names.js.map +1 -0
  17. package/dist/better-auth/constants/packages.d.ts +4 -0
  18. package/dist/better-auth/constants/packages.d.ts.map +1 -0
  19. package/dist/better-auth/constants/packages.js +4 -0
  20. package/dist/better-auth/constants/packages.js.map +1 -0
  21. package/dist/better-auth/core/common.d.ts.map +1 -0
  22. package/dist/better-auth/core/common.js +17 -0
  23. package/dist/better-auth/core/common.js.map +1 -0
  24. package/dist/better-auth/core/components/better-auth-definition-editor.d.ts +5 -0
  25. package/dist/better-auth/core/components/better-auth-definition-editor.d.ts.map +1 -0
  26. package/dist/{auth0/core/components/auth0-definition-editor.js → better-auth/core/components/better-auth-definition-editor.js} +17 -17
  27. package/dist/better-auth/core/components/better-auth-definition-editor.js.map +1 -0
  28. package/dist/better-auth/core/index.d.ts +2 -0
  29. package/dist/better-auth/core/index.d.ts.map +1 -0
  30. package/dist/better-auth/core/index.js +2 -0
  31. package/dist/better-auth/core/index.js.map +1 -0
  32. package/dist/better-auth/core/node.d.ts.map +1 -0
  33. package/dist/{auth0 → better-auth}/core/node.js +16 -14
  34. package/dist/better-auth/core/node.js.map +1 -0
  35. package/dist/better-auth/core/schema/models.d.ts +3 -0
  36. package/dist/better-auth/core/schema/models.d.ts.map +1 -0
  37. package/dist/better-auth/core/schema/models.js +278 -0
  38. package/dist/better-auth/core/schema/models.js.map +1 -0
  39. package/dist/better-auth/core/schema/plugin-definition.d.ts +5 -0
  40. package/dist/better-auth/core/schema/plugin-definition.d.ts.map +1 -0
  41. package/dist/better-auth/core/schema/plugin-definition.js +4 -0
  42. package/dist/better-auth/core/schema/plugin-definition.js.map +1 -0
  43. package/dist/better-auth/core/web.d.ts.map +1 -0
  44. package/dist/{auth0 → better-auth}/core/web.js +2 -2
  45. package/dist/better-auth/core/web.js.map +1 -0
  46. package/dist/{auth0/generators/fastify/auth0-module/auth0-module.generator.d.ts → better-auth/generators/fastify/better-auth-module/better-auth-module.generator.d.ts} +20 -26
  47. package/dist/better-auth/generators/fastify/better-auth-module/better-auth-module.generator.d.ts.map +1 -0
  48. package/dist/better-auth/generators/fastify/better-auth-module/better-auth-module.generator.js +75 -0
  49. package/dist/better-auth/generators/fastify/better-auth-module/better-auth-module.generator.js.map +1 -0
  50. package/dist/{auth0/generators/fastify/auth0-module → better-auth/generators/fastify/better-auth-module}/generated/index.d.ts +41 -26
  51. package/dist/better-auth/generators/fastify/better-auth-module/generated/index.d.ts.map +1 -0
  52. package/dist/better-auth/generators/fastify/better-auth-module/generated/index.js +11 -0
  53. package/dist/better-auth/generators/fastify/better-auth-module/generated/index.js.map +1 -0
  54. package/dist/better-auth/generators/fastify/better-auth-module/generated/template-paths.d.ts +16 -0
  55. package/dist/better-auth/generators/fastify/better-auth-module/generated/template-paths.d.ts.map +1 -0
  56. package/dist/better-auth/generators/fastify/better-auth-module/generated/template-paths.js +28 -0
  57. package/dist/better-auth/generators/fastify/better-auth-module/generated/template-paths.js.map +1 -0
  58. package/dist/{auth0/generators/fastify/auth0-module → better-auth/generators/fastify/better-auth-module}/generated/template-renderers.d.ts +16 -10
  59. package/dist/better-auth/generators/fastify/better-auth-module/generated/template-renderers.d.ts.map +1 -0
  60. package/dist/{auth0/generators/fastify/auth0-module → better-auth/generators/fastify/better-auth-module}/generated/template-renderers.js +35 -16
  61. package/dist/better-auth/generators/fastify/better-auth-module/generated/template-renderers.js.map +1 -0
  62. package/dist/better-auth/generators/fastify/better-auth-module/generated/ts-import-providers.d.ts +30 -0
  63. package/dist/better-auth/generators/fastify/better-auth-module/generated/ts-import-providers.d.ts.map +1 -0
  64. package/dist/better-auth/generators/fastify/better-auth-module/generated/ts-import-providers.js +37 -0
  65. package/dist/better-auth/generators/fastify/better-auth-module/generated/ts-import-providers.js.map +1 -0
  66. package/dist/{auth0/generators/fastify/auth0-module → better-auth/generators/fastify/better-auth-module}/generated/typed-templates.d.ts +29 -20
  67. package/dist/better-auth/generators/fastify/better-auth-module/generated/typed-templates.d.ts.map +1 -0
  68. package/dist/{auth0/generators/fastify/auth0-module → better-auth/generators/fastify/better-auth-module}/generated/typed-templates.js +37 -9
  69. package/dist/better-auth/generators/fastify/better-auth-module/generated/typed-templates.js.map +1 -0
  70. package/dist/better-auth/generators/fastify/better-auth-module/index.d.ts +4 -0
  71. package/dist/better-auth/generators/fastify/better-auth-module/index.d.ts.map +1 -0
  72. package/dist/better-auth/generators/fastify/better-auth-module/index.js +3 -0
  73. package/dist/better-auth/generators/fastify/better-auth-module/index.js.map +1 -0
  74. package/dist/better-auth/generators/fastify/better-auth-module/templates/module/plugins/better-auth.plugin.ts +31 -0
  75. package/dist/{auth0/generators/fastify/auth0-module → better-auth/generators/fastify/better-auth-module}/templates/module/schema/user-session.queries.ts +1 -1
  76. package/dist/better-auth/generators/fastify/better-auth-module/templates/module/services/auth.ts +62 -0
  77. package/dist/better-auth/generators/fastify/better-auth-module/templates/module/services/user-session.service.ts +72 -0
  78. package/dist/better-auth/generators/fastify/better-auth-module/templates/module/utils/headers.utils.ts +21 -0
  79. package/dist/better-auth/generators/fastify/index.d.ts +2 -0
  80. package/dist/better-auth/generators/fastify/index.d.ts.map +1 -0
  81. package/dist/better-auth/generators/fastify/index.js +2 -0
  82. package/dist/better-auth/generators/fastify/index.js.map +1 -0
  83. package/dist/better-auth/generators/index.d.ts.map +1 -0
  84. package/dist/better-auth/generators/index.js.map +1 -0
  85. package/dist/{auth0/generators/react/auth0-hooks/auth0-hooks.generator.d.ts → better-auth/generators/react/better-auth-hooks/better-auth-hooks.generator.d.ts} +11 -7
  86. package/dist/better-auth/generators/react/better-auth-hooks/better-auth-hooks.generator.d.ts.map +1 -0
  87. package/dist/{auth0/generators/react/auth0-hooks/auth0-hooks.generator.js → better-auth/generators/react/better-auth-hooks/better-auth-hooks.generator.js} +8 -8
  88. package/dist/better-auth/generators/react/better-auth-hooks/better-auth-hooks.generator.js.map +1 -0
  89. package/dist/{auth0/generators/react/auth0-hooks → better-auth/generators/react/better-auth-hooks}/generated/index.d.ts +21 -8
  90. package/dist/better-auth/generators/react/better-auth-hooks/generated/index.d.ts.map +1 -0
  91. package/dist/better-auth/generators/react/better-auth-hooks/generated/index.js +11 -0
  92. package/dist/better-auth/generators/react/better-auth-hooks/generated/index.js.map +1 -0
  93. package/dist/better-auth/generators/react/better-auth-hooks/generated/template-paths.d.ts +14 -0
  94. package/dist/better-auth/generators/react/better-auth-hooks/generated/template-paths.d.ts.map +1 -0
  95. package/dist/{auth0/generators/react/auth0-hooks → better-auth/generators/react/better-auth-hooks}/generated/template-paths.js +9 -7
  96. package/dist/better-auth/generators/react/better-auth-hooks/generated/template-paths.js.map +1 -0
  97. package/dist/better-auth/generators/react/better-auth-hooks/generated/template-renderers.d.ts +27 -0
  98. package/dist/better-auth/generators/react/better-auth-hooks/generated/template-renderers.d.ts.map +1 -0
  99. package/dist/better-auth/generators/react/better-auth-hooks/generated/template-renderers.js +43 -0
  100. package/dist/better-auth/generators/react/better-auth-hooks/generated/template-renderers.js.map +1 -0
  101. package/dist/{auth0/generators/react/auth0-hooks → better-auth/generators/react/better-auth-hooks}/generated/ts-import-providers.d.ts +2 -2
  102. package/dist/better-auth/generators/react/better-auth-hooks/generated/ts-import-providers.d.ts.map +1 -0
  103. package/dist/{auth0/generators/react/auth0-hooks → better-auth/generators/react/better-auth-hooks}/generated/ts-import-providers.js +5 -5
  104. package/dist/better-auth/generators/react/better-auth-hooks/generated/ts-import-providers.js.map +1 -0
  105. package/dist/{auth0/generators/react/auth0-hooks → better-auth/generators/react/better-auth-hooks}/generated/typed-templates.d.ts +21 -3
  106. package/dist/better-auth/generators/react/better-auth-hooks/generated/typed-templates.d.ts.map +1 -0
  107. package/dist/{auth0/generators/react/auth0-hooks → better-auth/generators/react/better-auth-hooks}/generated/typed-templates.js +7 -3
  108. package/dist/better-auth/generators/react/better-auth-hooks/generated/typed-templates.js.map +1 -0
  109. package/dist/better-auth/generators/react/better-auth-hooks/index.d.ts +2 -0
  110. package/dist/better-auth/generators/react/better-auth-hooks/index.d.ts.map +1 -0
  111. package/dist/better-auth/generators/react/better-auth-hooks/index.js +2 -0
  112. package/dist/better-auth/generators/react/better-auth-hooks/index.js.map +1 -0
  113. package/dist/better-auth/generators/react/better-auth-hooks/templates/src/hooks/use-log-out.ts +18 -0
  114. package/dist/better-auth/generators/react/better-auth-hooks/templates/src/hooks/use-session.ts +30 -0
  115. package/dist/{auth0/generators/react/auth0-pages/auth0-pages.generator.d.ts → better-auth/generators/react/better-auth-pages/better-auth-pages.generator.d.ts} +15 -6
  116. package/dist/better-auth/generators/react/better-auth-pages/better-auth-pages.generator.d.ts.map +1 -0
  117. package/dist/{auth0/generators/react/auth0-pages/auth0-pages.generator.js → better-auth/generators/react/better-auth-pages/better-auth-pages.generator.js} +7 -7
  118. package/dist/better-auth/generators/react/better-auth-pages/better-auth-pages.generator.js.map +1 -0
  119. package/dist/{auth0/generators/react/auth0-pages → better-auth/generators/react/better-auth-pages}/generated/index.d.ts +246 -6
  120. package/dist/{auth0/generators/react/auth0-pages → better-auth/generators/react/better-auth-pages}/generated/index.d.ts.map +1 -1
  121. package/dist/better-auth/generators/react/better-auth-pages/generated/index.js +9 -0
  122. package/dist/better-auth/generators/react/better-auth-pages/generated/index.js.map +1 -0
  123. package/dist/better-auth/generators/react/better-auth-pages/generated/template-paths.d.ts +13 -0
  124. package/dist/better-auth/generators/react/better-auth-pages/generated/template-paths.d.ts.map +1 -0
  125. package/dist/better-auth/generators/react/better-auth-pages/generated/template-paths.js +25 -0
  126. package/dist/better-auth/generators/react/better-auth-pages/generated/template-paths.js.map +1 -0
  127. package/dist/{auth0/generators/react/react-auth0 → better-auth/generators/react/better-auth-pages}/generated/template-renderers.d.ts +13 -9
  128. package/dist/better-auth/generators/react/better-auth-pages/generated/template-renderers.d.ts.map +1 -0
  129. package/dist/better-auth/generators/react/better-auth-pages/generated/template-renderers.js +44 -0
  130. package/dist/better-auth/generators/react/better-auth-pages/generated/template-renderers.js.map +1 -0
  131. package/dist/better-auth/generators/react/better-auth-pages/generated/typed-templates.d.ts +895 -0
  132. package/dist/better-auth/generators/react/better-auth-pages/generated/typed-templates.d.ts.map +1 -0
  133. package/dist/better-auth/generators/react/better-auth-pages/generated/typed-templates.js +35 -0
  134. package/dist/better-auth/generators/react/better-auth-pages/generated/typed-templates.js.map +1 -0
  135. package/dist/better-auth/generators/react/better-auth-pages/index.d.ts +2 -0
  136. package/dist/better-auth/generators/react/better-auth-pages/index.d.ts.map +1 -0
  137. package/dist/better-auth/generators/react/better-auth-pages/index.js +2 -0
  138. package/dist/better-auth/generators/react/better-auth-pages/index.js.map +1 -0
  139. package/dist/better-auth/generators/react/better-auth-pages/templates/routes/auth/login.tsx +146 -0
  140. package/dist/better-auth/generators/react/better-auth-pages/templates/routes/auth/register.tsx +162 -0
  141. package/dist/better-auth/generators/react/index.d.ts +4 -0
  142. package/dist/better-auth/generators/react/index.d.ts.map +1 -0
  143. package/dist/better-auth/generators/react/index.js +4 -0
  144. package/dist/better-auth/generators/react/index.js.map +1 -0
  145. package/dist/{auth0/generators/react/react-auth0 → better-auth/generators/react/react-better-auth}/generated/index.d.ts +42 -7
  146. package/dist/{auth0/generators/react/react-auth0 → better-auth/generators/react/react-better-auth}/generated/index.d.ts.map +1 -1
  147. package/dist/better-auth/generators/react/react-better-auth/generated/index.js +11 -0
  148. package/dist/better-auth/generators/react/react-better-auth/generated/index.js.map +1 -0
  149. package/dist/better-auth/generators/react/react-better-auth/generated/template-paths.d.ts +13 -0
  150. package/dist/better-auth/generators/react/react-better-auth/generated/template-paths.d.ts.map +1 -0
  151. package/dist/better-auth/generators/react/react-better-auth/generated/template-paths.js +25 -0
  152. package/dist/better-auth/generators/react/react-better-auth/generated/template-paths.js.map +1 -0
  153. package/dist/{auth0/generators/react/auth0-pages → better-auth/generators/react/react-better-auth}/generated/template-renderers.d.ts +28 -9
  154. package/dist/better-auth/generators/react/react-better-auth/generated/template-renderers.d.ts.map +1 -0
  155. package/dist/better-auth/generators/react/react-better-auth/generated/template-renderers.js +51 -0
  156. package/dist/better-auth/generators/react/react-better-auth/generated/template-renderers.js.map +1 -0
  157. package/dist/better-auth/generators/react/react-better-auth/generated/ts-import-providers.d.ts +21 -0
  158. package/dist/better-auth/generators/react/react-better-auth/generated/ts-import-providers.d.ts.map +1 -0
  159. package/dist/better-auth/generators/react/react-better-auth/generated/ts-import-providers.js +30 -0
  160. package/dist/better-auth/generators/react/react-better-auth/generated/ts-import-providers.js.map +1 -0
  161. package/dist/{auth0/generators/react/react-auth0 → better-auth/generators/react/react-better-auth}/generated/typed-templates.d.ts +16 -2
  162. package/dist/better-auth/generators/react/react-better-auth/generated/typed-templates.d.ts.map +1 -0
  163. package/dist/better-auth/generators/react/react-better-auth/generated/typed-templates.js +33 -0
  164. package/dist/better-auth/generators/react/react-better-auth/generated/typed-templates.js.map +1 -0
  165. package/dist/better-auth/generators/react/react-better-auth/index.d.ts +4 -0
  166. package/dist/better-auth/generators/react/react-better-auth/index.d.ts.map +1 -0
  167. package/dist/better-auth/generators/react/react-better-auth/index.js +3 -0
  168. package/dist/better-auth/generators/react/react-better-auth/index.js.map +1 -0
  169. package/dist/{auth0/generators/react/react-auth0/react-auth0.generator.d.ts → better-auth/generators/react/react-better-auth/react-better-auth.generator.d.ts} +28 -25
  170. package/dist/better-auth/generators/react/react-better-auth/react-better-auth.generator.d.ts.map +1 -0
  171. package/dist/better-auth/generators/react/react-better-auth/react-better-auth.generator.js +74 -0
  172. package/dist/better-auth/generators/react/react-better-auth/react-better-auth.generator.js.map +1 -0
  173. package/dist/better-auth/generators/react/react-better-auth/templates/src/app/auth-loaded-gate.tsx +58 -0
  174. package/dist/better-auth/generators/react/react-better-auth/templates/src/services/auth-client.ts +15 -0
  175. package/dist/better-auth/index.d.ts +3 -0
  176. package/dist/better-auth/index.d.ts.map +1 -0
  177. package/dist/better-auth/index.js +2 -0
  178. package/dist/better-auth/index.js.map +1 -0
  179. package/dist/better-auth/plugin.json +9 -0
  180. package/dist/better-auth/static/icon.svg +10 -0
  181. package/dist/index.d.ts +1 -0
  182. package/dist/local-auth/core/components/local-auth-definition-editor.d.ts.map +1 -1
  183. package/dist/local-auth/core/components/local-auth-definition-editor.js +11 -11
  184. package/dist/local-auth/core/components/local-auth-definition-editor.js.map +1 -1
  185. package/dist/local-auth/core/generators/auth-apollo/auth-apollo.generator.d.ts +2 -2
  186. package/dist/local-auth/core/generators/auth-email-password/auth-email-password.generator.d.ts +8 -4
  187. package/dist/local-auth/core/generators/auth-email-password/auth-email-password.generator.d.ts.map +1 -1
  188. package/dist/local-auth/core/generators/auth-email-password/auth-email-password.generator.js +13 -3
  189. package/dist/local-auth/core/generators/auth-email-password/auth-email-password.generator.js.map +1 -1
  190. package/dist/local-auth/core/generators/auth-email-password/generated/index.d.ts +24 -14
  191. package/dist/local-auth/core/generators/auth-email-password/generated/index.d.ts.map +1 -1
  192. package/dist/local-auth/core/generators/auth-email-password/generated/template-paths.d.ts +0 -1
  193. package/dist/local-auth/core/generators/auth-email-password/generated/template-paths.d.ts.map +1 -1
  194. package/dist/local-auth/core/generators/auth-email-password/generated/template-paths.js +0 -1
  195. package/dist/local-auth/core/generators/auth-email-password/generated/template-paths.js.map +1 -1
  196. package/dist/local-auth/core/generators/auth-email-password/generated/template-renderers.d.ts +3 -3
  197. package/dist/local-auth/core/generators/auth-email-password/generated/template-renderers.d.ts.map +1 -1
  198. package/dist/local-auth/core/generators/auth-email-password/generated/template-renderers.js +1 -11
  199. package/dist/local-auth/core/generators/auth-email-password/generated/template-renderers.js.map +1 -1
  200. package/dist/local-auth/core/generators/auth-email-password/generated/typed-templates.d.ts +34 -16
  201. package/dist/local-auth/core/generators/auth-email-password/generated/typed-templates.d.ts.map +1 -1
  202. package/dist/local-auth/core/generators/auth-email-password/generated/typed-templates.js +6 -23
  203. package/dist/local-auth/core/generators/auth-email-password/generated/typed-templates.js.map +1 -1
  204. package/dist/local-auth/core/generators/auth-email-password/templates/module/schema/password-reset.mutations.js +1 -1
  205. package/dist/local-auth/core/generators/auth-email-password/templates/module/schema/password-reset.mutations.js.map +1 -1
  206. package/dist/local-auth/core/generators/auth-email-password/templates/module/schema/password-reset.mutations.ts +1 -1
  207. package/dist/local-auth/core/generators/auth-email-password/templates/module/services/email-verification.service.d.ts.map +1 -1
  208. package/dist/local-auth/core/generators/auth-email-password/templates/module/services/email-verification.service.js +2 -3
  209. package/dist/local-auth/core/generators/auth-email-password/templates/module/services/email-verification.service.js.map +1 -1
  210. package/dist/local-auth/core/generators/auth-email-password/templates/module/services/email-verification.service.ts +2 -3
  211. package/dist/local-auth/core/generators/auth-email-password/templates/module/services/password-reset.service.d.ts +3 -1
  212. package/dist/local-auth/core/generators/auth-email-password/templates/module/services/password-reset.service.d.ts.map +1 -1
  213. package/dist/local-auth/core/generators/auth-email-password/templates/module/services/password-reset.service.js +9 -5
  214. package/dist/local-auth/core/generators/auth-email-password/templates/module/services/password-reset.service.js.map +1 -1
  215. package/dist/local-auth/core/generators/auth-email-password/templates/module/services/password-reset.service.ts +11 -9
  216. package/dist/local-auth/core/generators/auth-module/auth-module.generator.d.ts +11 -0
  217. package/dist/local-auth/core/generators/auth-module/auth-module.generator.d.ts.map +1 -1
  218. package/dist/local-auth/core/generators/auth-module/auth-module.generator.js +25 -4
  219. package/dist/local-auth/core/generators/auth-module/auth-module.generator.js.map +1 -1
  220. package/dist/local-auth/core/generators/auth-module/generated/index.d.ts +24 -0
  221. package/dist/local-auth/core/generators/auth-module/generated/index.d.ts.map +1 -1
  222. package/dist/local-auth/core/generators/auth-module/generated/template-paths.d.ts +2 -0
  223. package/dist/local-auth/core/generators/auth-module/generated/template-paths.d.ts.map +1 -1
  224. package/dist/local-auth/core/generators/auth-module/generated/template-paths.js +2 -0
  225. package/dist/local-auth/core/generators/auth-module/generated/template-paths.js.map +1 -1
  226. package/dist/local-auth/core/generators/auth-module/generated/template-renderers.d.ts +9 -0
  227. package/dist/local-auth/core/generators/auth-module/generated/template-renderers.d.ts.map +1 -1
  228. package/dist/local-auth/core/generators/auth-module/generated/template-renderers.js +25 -1
  229. package/dist/local-auth/core/generators/auth-module/generated/template-renderers.js.map +1 -1
  230. package/dist/local-auth/core/generators/auth-module/generated/ts-import-providers.d.ts +9 -0
  231. package/dist/local-auth/core/generators/auth-module/generated/ts-import-providers.d.ts.map +1 -1
  232. package/dist/local-auth/core/generators/auth-module/generated/ts-import-providers.js +6 -0
  233. package/dist/local-auth/core/generators/auth-module/generated/ts-import-providers.js.map +1 -1
  234. package/dist/local-auth/core/generators/auth-module/generated/typed-templates.d.ts +18 -0
  235. package/dist/local-auth/core/generators/auth-module/generated/typed-templates.d.ts.map +1 -1
  236. package/dist/local-auth/core/generators/auth-module/generated/typed-templates.js +30 -0
  237. package/dist/local-auth/core/generators/auth-module/generated/typed-templates.js.map +1 -1
  238. package/dist/local-auth/core/generators/auth-module/templates/module/queues/cleanup-auth-verification.queue.d.ts +6 -0
  239. package/dist/local-auth/core/generators/auth-module/templates/module/queues/cleanup-auth-verification.queue.d.ts.map +1 -0
  240. package/dist/local-auth/core/generators/auth-module/templates/module/queues/cleanup-auth-verification.queue.js +17 -0
  241. package/dist/local-auth/core/generators/auth-module/templates/module/queues/cleanup-auth-verification.queue.js.map +1 -0
  242. package/dist/local-auth/core/generators/auth-module/templates/module/queues/cleanup-auth-verification.queue.ts +21 -0
  243. package/dist/local-auth/core/generators/auth-module/templates/module/services/auth-verification.service.d.ts.map +1 -0
  244. package/dist/local-auth/core/generators/auth-module/templates/module/services/auth-verification.service.js.map +1 -0
  245. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/login.js +1 -1
  246. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/login.js.map +1 -1
  247. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/login.tsx +1 -1
  248. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/register.js +1 -1
  249. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/register.js.map +1 -1
  250. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/register.tsx +1 -1
  251. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/reset-password.js +34 -15
  252. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/reset-password.js.map +1 -1
  253. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/reset-password.tsx +58 -15
  254. package/dist/local-auth/core/node.d.ts.map +1 -1
  255. package/dist/local-auth/core/node.js +8 -6
  256. package/dist/local-auth/core/node.js.map +1 -1
  257. package/dist/local-auth/core/schema/models.d.ts +2 -4
  258. package/dist/local-auth/core/schema/models.d.ts.map +1 -1
  259. package/dist/local-auth/core/schema/models.js +254 -252
  260. package/dist/local-auth/core/schema/models.js.map +1 -1
  261. package/dist/local-auth/core/schema/plugin-definition.d.ts +2 -2
  262. package/dist/placeholder-auth/core/components/placeholder-auth-definition-editor.d.ts.map +1 -1
  263. package/dist/placeholder-auth/core/components/placeholder-auth-definition-editor.js +11 -11
  264. package/dist/placeholder-auth/core/components/placeholder-auth-definition-editor.js.map +1 -1
  265. package/dist/placeholder-auth/core/schema/models.d.ts +2 -4
  266. package/dist/placeholder-auth/core/schema/models.d.ts.map +1 -1
  267. package/dist/placeholder-auth/core/schema/models.js +30 -28
  268. package/dist/placeholder-auth/core/schema/models.js.map +1 -1
  269. package/dist/web/assets/{__federation_expose_authCoreCommon-D3-Gk9mI.js → __federation_expose_authCoreCommon-CIVhaGqo.js} +3 -3
  270. package/dist/web/assets/{__federation_expose_authCoreCommon-D3-Gk9mI.js.map → __federation_expose_authCoreCommon-CIVhaGqo.js.map} +1 -1
  271. package/dist/web/assets/{__federation_expose_authCoreWeb-DZoAij9e.js → __federation_expose_authCoreWeb-N-mh42Bs.js} +6 -6
  272. package/dist/web/assets/{__federation_expose_authCoreWeb-DZoAij9e.js.map → __federation_expose_authCoreWeb-N-mh42Bs.js.map} +1 -1
  273. package/dist/web/assets/__federation_expose_better-authCoreCommon-BIU3Fg7K.js +20 -0
  274. package/dist/web/assets/__federation_expose_better-authCoreCommon-BIU3Fg7K.js.map +1 -0
  275. package/dist/web/assets/__federation_expose_better-authCoreWeb-CMhPrXPA.js +402 -0
  276. package/dist/web/assets/__federation_expose_better-authCoreWeb-CMhPrXPA.js.map +1 -0
  277. package/dist/web/assets/{__federation_expose_local-authAdminCommon-BRHnF0Hn.js → __federation_expose_local-authAdminCommon-DvHe9w29.js} +2 -2
  278. package/dist/web/assets/{__federation_expose_local-authAdminCommon-BRHnF0Hn.js.map → __federation_expose_local-authAdminCommon-DvHe9w29.js.map} +1 -1
  279. package/dist/web/assets/{__federation_expose_local-authAdminWeb-dYAIxuqC.js → __federation_expose_local-authAdminWeb-CLU9aEy9.js} +2 -2
  280. package/dist/web/assets/{__federation_expose_local-authAdminWeb-dYAIxuqC.js.map → __federation_expose_local-authAdminWeb-CLU9aEy9.js.map} +1 -1
  281. package/dist/web/assets/{__federation_expose_local-authCoreCommon-CIwvOx0d.js → __federation_expose_local-authCoreCommon-DbuvGG7o.js} +3 -3
  282. package/dist/web/assets/{__federation_expose_local-authCoreCommon-CIwvOx0d.js.map → __federation_expose_local-authCoreCommon-DbuvGG7o.js.map} +1 -1
  283. package/dist/web/assets/__federation_expose_local-authCoreWeb-BY-mP3uS.js +432 -0
  284. package/dist/web/assets/__federation_expose_local-authCoreWeb-BY-mP3uS.js.map +1 -0
  285. package/dist/web/assets/{__federation_expose_placeholder-authCoreCommon-gFDSzGjB.js → __federation_expose_placeholder-authCoreCommon-BJBCuZvU.js} +3 -3
  286. package/dist/web/assets/{__federation_expose_placeholder-authCoreCommon-gFDSzGjB.js.map → __federation_expose_placeholder-authCoreCommon-BJBCuZvU.js.map} +1 -1
  287. package/dist/web/assets/{__federation_expose_placeholder-authCoreWeb-BZLwIkLk.js → __federation_expose_placeholder-authCoreWeb-BaV-Ko2C.js} +61 -53
  288. package/dist/web/assets/__federation_expose_placeholder-authCoreWeb-BaV-Ko2C.js.map +1 -0
  289. package/dist/web/assets/{__federation_fn_import-pxYUpmb_.js → __federation_fn_import-BLFDCY-V.js} +2 -2
  290. package/dist/web/assets/{__federation_fn_import-pxYUpmb_.js.map → __federation_fn_import-BLFDCY-V.js.map} +1 -1
  291. package/dist/web/assets/__federation_shared_@baseplate-dev/project-builder-lib/{web-BXi2UCP-.js → web-bRU6KpPk.js} +48 -26
  292. package/dist/web/assets/__federation_shared_@baseplate-dev/project-builder-lib/web-bRU6KpPk.js.map +1 -0
  293. package/dist/web/assets/__federation_shared_@baseplate-dev/{project-builder-lib-O0clDXMb.js → project-builder-lib-CQKLkNsU.js} +5705 -1957
  294. package/dist/web/assets/__federation_shared_@baseplate-dev/project-builder-lib-CQKLkNsU.js.map +1 -0
  295. package/dist/web/assets/__federation_shared_@baseplate-dev/{ui-components-BpuFQk6s.js → ui-components-DhyoEUTy.js} +5889 -1194
  296. package/dist/web/assets/__federation_shared_@baseplate-dev/ui-components-DhyoEUTy.js.map +1 -0
  297. package/dist/web/assets/__federation_shared_@baseplate-dev/{utils-UiZ-8JBg.js → utils-9w-0yxVZ.js} +64 -45
  298. package/dist/web/assets/__federation_shared_@baseplate-dev/utils-9w-0yxVZ.js.map +1 -0
  299. package/dist/web/assets/__federation_shared_@tanstack/{react-router-BPEAtEJI.js → react-router-CbExBaoL.js} +2 -2
  300. package/dist/web/assets/__federation_shared_@tanstack/{react-router-BPEAtEJI.js.map → react-router-CbExBaoL.js.map} +1 -1
  301. package/dist/web/assets/{__federation_shared_zod-B6wbpZ4f.js → __federation_shared_zod-Do7Aa1b5.js} +3431 -2188
  302. package/dist/web/assets/__federation_shared_zod-Do7Aa1b5.js.map +1 -0
  303. package/dist/web/assets/{get-auth-plugin-definition-DPsrvQbo.js → get-auth-plugin-definition-BL50g0cJ.js} +2 -2
  304. package/dist/web/assets/{get-auth-plugin-definition-DPsrvQbo.js.map → get-auth-plugin-definition-BL50g0cJ.js.map} +1 -1
  305. package/dist/web/assets/{index-CSfs0UAV.js → index-B_A3cgiy.js} +2 -2
  306. package/dist/web/assets/{index-CSfs0UAV.js.map → index-B_A3cgiy.js.map} +1 -1
  307. package/dist/web/assets/{index.esm-BoRQu8mM.js → index.esm-BraHxHLB.js} +338 -231
  308. package/dist/web/assets/index.esm-BraHxHLB.js.map +1 -0
  309. package/dist/web/assets/{isEqual-BQtm2LNT.js → isEqual-tnzoadW8.js} +18 -18
  310. package/dist/web/assets/isEqual-tnzoadW8.js.map +1 -0
  311. package/dist/web/assets/mergeWith-VagwCqUi.js +76 -0
  312. package/dist/web/assets/mergeWith-VagwCqUi.js.map +1 -0
  313. package/dist/web/assets/model-utils-BfcjfzCn.js +694 -0
  314. package/dist/web/assets/model-utils-BfcjfzCn.js.map +1 -0
  315. package/dist/web/assets/plugin-definition-CXnKUJ1l.js +20 -0
  316. package/dist/web/assets/plugin-definition-CXnKUJ1l.js.map +1 -0
  317. package/dist/web/assets/{plugin-definition-DRhTuQas.js → plugin-definition-Ckl5hjD1.js} +2 -2
  318. package/dist/web/assets/{plugin-definition-DRhTuQas.js.map → plugin-definition-Ckl5hjD1.js.map} +1 -1
  319. package/dist/web/assets/{plugin-definition-BMYDEj3f.js → plugin-definition-D26rR8AB.js} +2 -2
  320. package/dist/web/assets/{plugin-definition-BMYDEj3f.js.map → plugin-definition-D26rR8AB.js.map} +1 -1
  321. package/dist/web/assets/{plugin-definition-j1nJ0FFI.js → plugin-definition-DJzXScRp.js} +12 -19
  322. package/dist/web/assets/plugin-definition-DJzXScRp.js.map +1 -0
  323. package/dist/web/assets/{react-CBhSWxr_.js → react-CL9M_wyN.js} +2 -2
  324. package/dist/web/assets/{react-CBhSWxr_.js.map → react-CL9M_wyN.js.map} +1 -1
  325. package/dist/web/assets/{registries-19UehlAo.js → registries-Tz_dluz3.js} +51 -13
  326. package/dist/web/assets/registries-Tz_dluz3.js.map +1 -0
  327. package/dist/web/assets/remoteEntry.js +14 -14
  328. package/dist/web/assets/{styles-BbHyE-2h.js → styles-tkrWV-ZE.js} +4 -4
  329. package/dist/web/assets/{styles-BbHyE-2h.js.map → styles-tkrWV-ZE.js.map} +1 -1
  330. package/package.json +17 -16
  331. package/dist/auth0/constants/model-names.d.ts +0 -4
  332. package/dist/auth0/constants/model-names.d.ts.map +0 -1
  333. package/dist/auth0/constants/model-names.js +0 -4
  334. package/dist/auth0/constants/model-names.js.map +0 -1
  335. package/dist/auth0/constants/packages.d.ts +0 -6
  336. package/dist/auth0/constants/packages.d.ts.map +0 -1
  337. package/dist/auth0/constants/packages.js +0 -6
  338. package/dist/auth0/constants/packages.js.map +0 -1
  339. package/dist/auth0/core/common.d.ts.map +0 -1
  340. package/dist/auth0/core/common.js +0 -19
  341. package/dist/auth0/core/common.js.map +0 -1
  342. package/dist/auth0/core/components/auth0-definition-editor.d.ts +0 -5
  343. package/dist/auth0/core/components/auth0-definition-editor.d.ts.map +0 -1
  344. package/dist/auth0/core/components/auth0-definition-editor.js.map +0 -1
  345. package/dist/auth0/core/node.d.ts.map +0 -1
  346. package/dist/auth0/core/node.js.map +0 -1
  347. package/dist/auth0/core/schema/migrations.d.ts +0 -3
  348. package/dist/auth0/core/schema/migrations.d.ts.map +0 -1
  349. package/dist/auth0/core/schema/migrations.js +0 -19
  350. package/dist/auth0/core/schema/migrations.js.map +0 -1
  351. package/dist/auth0/core/schema/models.d.ts +0 -5
  352. package/dist/auth0/core/schema/models.d.ts.map +0 -1
  353. package/dist/auth0/core/schema/models.js +0 -40
  354. package/dist/auth0/core/schema/models.js.map +0 -1
  355. package/dist/auth0/core/schema/plugin-definition.d.ts +0 -5
  356. package/dist/auth0/core/schema/plugin-definition.d.ts.map +0 -1
  357. package/dist/auth0/core/schema/plugin-definition.js +0 -4
  358. package/dist/auth0/core/schema/plugin-definition.js.map +0 -1
  359. package/dist/auth0/core/web.d.ts.map +0 -1
  360. package/dist/auth0/core/web.js.map +0 -1
  361. package/dist/auth0/generators/fastify/auth0-module/auth0-module.generator.d.ts.map +0 -1
  362. package/dist/auth0/generators/fastify/auth0-module/auth0-module.generator.js +0 -114
  363. package/dist/auth0/generators/fastify/auth0-module/auth0-module.generator.js.map +0 -1
  364. package/dist/auth0/generators/fastify/auth0-module/generated/index.d.ts.map +0 -1
  365. package/dist/auth0/generators/fastify/auth0-module/generated/index.js +0 -11
  366. package/dist/auth0/generators/fastify/auth0-module/generated/index.js.map +0 -1
  367. package/dist/auth0/generators/fastify/auth0-module/generated/template-paths.d.ts +0 -14
  368. package/dist/auth0/generators/fastify/auth0-module/generated/template-paths.d.ts.map +0 -1
  369. package/dist/auth0/generators/fastify/auth0-module/generated/template-paths.js +0 -24
  370. package/dist/auth0/generators/fastify/auth0-module/generated/template-paths.js.map +0 -1
  371. package/dist/auth0/generators/fastify/auth0-module/generated/template-renderers.d.ts.map +0 -1
  372. package/dist/auth0/generators/fastify/auth0-module/generated/template-renderers.js.map +0 -1
  373. package/dist/auth0/generators/fastify/auth0-module/generated/ts-import-providers.d.ts +0 -10
  374. package/dist/auth0/generators/fastify/auth0-module/generated/ts-import-providers.d.ts.map +0 -1
  375. package/dist/auth0/generators/fastify/auth0-module/generated/ts-import-providers.js +0 -23
  376. package/dist/auth0/generators/fastify/auth0-module/generated/ts-import-providers.js.map +0 -1
  377. package/dist/auth0/generators/fastify/auth0-module/generated/typed-templates.d.ts.map +0 -1
  378. package/dist/auth0/generators/fastify/auth0-module/generated/typed-templates.js.map +0 -1
  379. package/dist/auth0/generators/fastify/auth0-module/index.d.ts +0 -2
  380. package/dist/auth0/generators/fastify/auth0-module/index.d.ts.map +0 -1
  381. package/dist/auth0/generators/fastify/auth0-module/index.js +0 -2
  382. package/dist/auth0/generators/fastify/auth0-module/index.js.map +0 -1
  383. package/dist/auth0/generators/fastify/auth0-module/templates/module/services/management.ts +0 -22
  384. package/dist/auth0/generators/fastify/auth0-module/templates/module/services/user-session.service.ts +0 -101
  385. package/dist/auth0/generators/fastify/index.d.ts +0 -2
  386. package/dist/auth0/generators/fastify/index.d.ts.map +0 -1
  387. package/dist/auth0/generators/fastify/index.js +0 -2
  388. package/dist/auth0/generators/fastify/index.js.map +0 -1
  389. package/dist/auth0/generators/index.d.ts.map +0 -1
  390. package/dist/auth0/generators/index.js.map +0 -1
  391. package/dist/auth0/generators/react/auth0-apollo/auth0-apollo.generator.d.ts +0 -10
  392. package/dist/auth0/generators/react/auth0-apollo/auth0-apollo.generator.d.ts.map +0 -1
  393. package/dist/auth0/generators/react/auth0-apollo/auth0-apollo.generator.js +0 -41
  394. package/dist/auth0/generators/react/auth0-apollo/auth0-apollo.generator.js.map +0 -1
  395. package/dist/auth0/generators/react/auth0-apollo/index.d.ts +0 -2
  396. package/dist/auth0/generators/react/auth0-apollo/index.d.ts.map +0 -1
  397. package/dist/auth0/generators/react/auth0-apollo/index.js +0 -2
  398. package/dist/auth0/generators/react/auth0-apollo/index.js.map +0 -1
  399. package/dist/auth0/generators/react/auth0-apollo/templates/auth-link.ts +0 -11
  400. package/dist/auth0/generators/react/auth0-hooks/auth0-hooks.generator.d.ts.map +0 -1
  401. package/dist/auth0/generators/react/auth0-hooks/auth0-hooks.generator.js.map +0 -1
  402. package/dist/auth0/generators/react/auth0-hooks/generated/index.d.ts.map +0 -1
  403. package/dist/auth0/generators/react/auth0-hooks/generated/index.js +0 -11
  404. package/dist/auth0/generators/react/auth0-hooks/generated/index.js.map +0 -1
  405. package/dist/auth0/generators/react/auth0-hooks/generated/template-paths.d.ts +0 -14
  406. package/dist/auth0/generators/react/auth0-hooks/generated/template-paths.d.ts.map +0 -1
  407. package/dist/auth0/generators/react/auth0-hooks/generated/template-paths.js.map +0 -1
  408. package/dist/auth0/generators/react/auth0-hooks/generated/template-renderers.d.ts +0 -23
  409. package/dist/auth0/generators/react/auth0-hooks/generated/template-renderers.d.ts.map +0 -1
  410. package/dist/auth0/generators/react/auth0-hooks/generated/template-renderers.js +0 -38
  411. package/dist/auth0/generators/react/auth0-hooks/generated/template-renderers.js.map +0 -1
  412. package/dist/auth0/generators/react/auth0-hooks/generated/ts-import-providers.d.ts.map +0 -1
  413. package/dist/auth0/generators/react/auth0-hooks/generated/ts-import-providers.js.map +0 -1
  414. package/dist/auth0/generators/react/auth0-hooks/generated/typed-templates.d.ts.map +0 -1
  415. package/dist/auth0/generators/react/auth0-hooks/generated/typed-templates.js.map +0 -1
  416. package/dist/auth0/generators/react/auth0-hooks/index.d.ts +0 -2
  417. package/dist/auth0/generators/react/auth0-hooks/index.d.ts.map +0 -1
  418. package/dist/auth0/generators/react/auth0-hooks/index.js +0 -2
  419. package/dist/auth0/generators/react/auth0-hooks/index.js.map +0 -1
  420. package/dist/auth0/generators/react/auth0-hooks/templates/src/hooks/use-log-out.ts +0 -14
  421. package/dist/auth0/generators/react/auth0-hooks/templates/src/hooks/use-session.ts +0 -36
  422. package/dist/auth0/generators/react/auth0-pages/auth0-pages.generator.d.ts.map +0 -1
  423. package/dist/auth0/generators/react/auth0-pages/auth0-pages.generator.js.map +0 -1
  424. package/dist/auth0/generators/react/auth0-pages/generated/index.js +0 -9
  425. package/dist/auth0/generators/react/auth0-pages/generated/index.js.map +0 -1
  426. package/dist/auth0/generators/react/auth0-pages/generated/template-paths.d.ts +0 -12
  427. package/dist/auth0/generators/react/auth0-pages/generated/template-paths.d.ts.map +0 -1
  428. package/dist/auth0/generators/react/auth0-pages/generated/template-paths.js +0 -20
  429. package/dist/auth0/generators/react/auth0-pages/generated/template-paths.js.map +0 -1
  430. package/dist/auth0/generators/react/auth0-pages/generated/template-renderers.d.ts.map +0 -1
  431. package/dist/auth0/generators/react/auth0-pages/generated/template-renderers.js +0 -37
  432. package/dist/auth0/generators/react/auth0-pages/generated/template-renderers.js.map +0 -1
  433. package/dist/auth0/generators/react/auth0-pages/generated/typed-templates.d.ts +0 -433
  434. package/dist/auth0/generators/react/auth0-pages/generated/typed-templates.d.ts.map +0 -1
  435. package/dist/auth0/generators/react/auth0-pages/generated/typed-templates.js +0 -18
  436. package/dist/auth0/generators/react/auth0-pages/generated/typed-templates.js.map +0 -1
  437. package/dist/auth0/generators/react/auth0-pages/index.d.ts +0 -2
  438. package/dist/auth0/generators/react/auth0-pages/index.d.ts.map +0 -1
  439. package/dist/auth0/generators/react/auth0-pages/index.js +0 -2
  440. package/dist/auth0/generators/react/auth0-pages/index.js.map +0 -1
  441. package/dist/auth0/generators/react/auth0-pages/templates/routes/login.tsx +0 -31
  442. package/dist/auth0/generators/react/index.d.ts +0 -5
  443. package/dist/auth0/generators/react/index.d.ts.map +0 -1
  444. package/dist/auth0/generators/react/index.js +0 -5
  445. package/dist/auth0/generators/react/index.js.map +0 -1
  446. package/dist/auth0/generators/react/react-auth0/generated/index.js +0 -9
  447. package/dist/auth0/generators/react/react-auth0/generated/index.js.map +0 -1
  448. package/dist/auth0/generators/react/react-auth0/generated/template-paths.d.ts +0 -12
  449. package/dist/auth0/generators/react/react-auth0/generated/template-paths.d.ts.map +0 -1
  450. package/dist/auth0/generators/react/react-auth0/generated/template-paths.js +0 -22
  451. package/dist/auth0/generators/react/react-auth0/generated/template-paths.js.map +0 -1
  452. package/dist/auth0/generators/react/react-auth0/generated/template-renderers.d.ts.map +0 -1
  453. package/dist/auth0/generators/react/react-auth0/generated/template-renderers.js +0 -39
  454. package/dist/auth0/generators/react/react-auth0/generated/template-renderers.js.map +0 -1
  455. package/dist/auth0/generators/react/react-auth0/generated/typed-templates.d.ts.map +0 -1
  456. package/dist/auth0/generators/react/react-auth0/generated/typed-templates.js +0 -17
  457. package/dist/auth0/generators/react/react-auth0/generated/typed-templates.js.map +0 -1
  458. package/dist/auth0/generators/react/react-auth0/index.d.ts +0 -2
  459. package/dist/auth0/generators/react/react-auth0/index.d.ts.map +0 -1
  460. package/dist/auth0/generators/react/react-auth0/index.js +0 -2
  461. package/dist/auth0/generators/react/react-auth0/index.js.map +0 -1
  462. package/dist/auth0/generators/react/react-auth0/react-auth0.generator.d.ts.map +0 -1
  463. package/dist/auth0/generators/react/react-auth0/react-auth0.generator.js +0 -107
  464. package/dist/auth0/generators/react/react-auth0/react-auth0.generator.js.map +0 -1
  465. package/dist/auth0/generators/react/react-auth0/templates/src/app/auth-loaded-gate.tsx +0 -78
  466. package/dist/auth0/plugin.json +0 -9
  467. package/dist/auth0/static/icon.svg +0 -7
  468. package/dist/local-auth/core/generators/auth-email-password/templates/module/services/auth-verification.service.d.ts.map +0 -1
  469. package/dist/local-auth/core/generators/auth-email-password/templates/module/services/auth-verification.service.js.map +0 -1
  470. package/dist/web/assets/__federation_expose_auth0CoreCommon-DKJVe6Rd.js +0 -40
  471. package/dist/web/assets/__federation_expose_auth0CoreCommon-DKJVe6Rd.js.map +0 -1
  472. package/dist/web/assets/__federation_expose_auth0CoreWeb-CfhSWZsK.js +0 -158
  473. package/dist/web/assets/__federation_expose_auth0CoreWeb-CfhSWZsK.js.map +0 -1
  474. package/dist/web/assets/__federation_expose_local-authCoreWeb-Bwooi2qZ.js +0 -424
  475. package/dist/web/assets/__federation_expose_local-authCoreWeb-Bwooi2qZ.js.map +0 -1
  476. package/dist/web/assets/__federation_expose_placeholder-authCoreWeb-BZLwIkLk.js.map +0 -1
  477. package/dist/web/assets/__federation_shared_@baseplate-dev/project-builder-lib/web-BXi2UCP-.js.map +0 -1
  478. package/dist/web/assets/__federation_shared_@baseplate-dev/project-builder-lib-O0clDXMb.js.map +0 -1
  479. package/dist/web/assets/__federation_shared_@baseplate-dev/ui-components-BpuFQk6s.js.map +0 -1
  480. package/dist/web/assets/__federation_shared_@baseplate-dev/utils-UiZ-8JBg.js.map +0 -1
  481. package/dist/web/assets/__federation_shared_zod-B6wbpZ4f.js.map +0 -1
  482. package/dist/web/assets/index.esm-BoRQu8mM.js.map +0 -1
  483. package/dist/web/assets/isEqual-BQtm2LNT.js.map +0 -1
  484. package/dist/web/assets/model-merger-CdjliK9v.js +0 -1705
  485. package/dist/web/assets/model-merger-CdjliK9v.js.map +0 -1
  486. package/dist/web/assets/plugin-definition-BG6tu7Hh.js +0 -16
  487. package/dist/web/assets/plugin-definition-BG6tu7Hh.js.map +0 -1
  488. package/dist/web/assets/plugin-definition-j1nJ0FFI.js.map +0 -1
  489. package/dist/web/assets/registries-19UehlAo.js.map +0 -1
  490. package/dist/web/assets/sortBy-BPH_zRB8.js +0 -34
  491. package/dist/web/assets/sortBy-BPH_zRB8.js.map +0 -1
  492. /package/dist/{auth0 → better-auth}/core/common.d.ts +0 -0
  493. /package/dist/{auth0 → better-auth}/core/node.d.ts +0 -0
  494. /package/dist/{auth0 → better-auth}/core/web.d.ts +0 -0
  495. /package/dist/{auth0 → better-auth}/generators/index.d.ts +0 -0
  496. /package/dist/{auth0 → better-auth}/generators/index.js +0 -0
  497. /package/dist/{auth0/generators/react/auth0-hooks → better-auth/generators/react/better-auth-hooks}/templates/src/hooks/use-required-user-id.ts +0 -0
  498. /package/dist/local-auth/core/generators/{auth-email-password → auth-module}/templates/module/services/auth-verification.service.d.ts +0 -0
  499. /package/dist/local-auth/core/generators/{auth-email-password → auth-module}/templates/module/services/auth-verification.service.js +0 -0
  500. /package/dist/local-auth/core/generators/{auth-email-password → auth-module}/templates/module/services/auth-verification.service.ts +0 -0
@@ -1,39 +0,0 @@
1
- import { typescriptFileProvider } from '@baseplate-dev/core-generators';
2
- import { reactComponentsImportsProvider, reactErrorImportsProvider, } from '@baseplate-dev/react-generators';
3
- import { createGeneratorTask, createProviderType } from '@baseplate-dev/sync';
4
- import { AUTH0_REACT_AUTH0_PATHS } from './template-paths.js';
5
- import { AUTH0_REACT_AUTH0_TEMPLATES } from './typed-templates.js';
6
- const auth0ReactAuth0Renderers = createProviderType('auth0-react-auth0-renderers');
7
- const auth0ReactAuth0RenderersTask = createGeneratorTask({
8
- dependencies: {
9
- paths: AUTH0_REACT_AUTH0_PATHS.provider,
10
- reactComponentsImports: reactComponentsImportsProvider,
11
- reactErrorImports: reactErrorImportsProvider,
12
- typescriptFile: typescriptFileProvider,
13
- },
14
- exports: { auth0ReactAuth0Renderers: auth0ReactAuth0Renderers.export() },
15
- run({ paths, reactComponentsImports, reactErrorImports, typescriptFile }) {
16
- return {
17
- providers: {
18
- auth0ReactAuth0Renderers: {
19
- authLoadedGate: {
20
- render: (options) => typescriptFile.renderTemplateFile({
21
- template: AUTH0_REACT_AUTH0_TEMPLATES.authLoadedGate,
22
- destination: paths.authLoadedGate,
23
- importMapProviders: {
24
- reactComponentsImports,
25
- reactErrorImports,
26
- },
27
- ...options,
28
- }),
29
- },
30
- },
31
- },
32
- };
33
- },
34
- });
35
- export const AUTH0_REACT_AUTH0_RENDERERS = {
36
- provider: auth0ReactAuth0Renderers,
37
- task: auth0ReactAuth0RenderersTask,
38
- };
39
- //# sourceMappingURL=template-renderers.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"template-renderers.js","sourceRoot":"","sources":["../../../../../../src/auth0/generators/react/react-auth0/generated/template-renderers.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,sBAAsB,EAAE,MAAM,gCAAgC,CAAC;AACxE,OAAO,EACL,8BAA8B,EAC9B,yBAAyB,GAC1B,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAE9E,OAAO,EAAE,uBAAuB,EAAE,MAAM,qBAAqB,CAAC;AAC9D,OAAO,EAAE,2BAA2B,EAAE,MAAM,sBAAsB,CAAC;AAenE,MAAM,wBAAwB,GAAG,kBAAkB,CACjD,6BAA6B,CAC9B,CAAC;AAEF,MAAM,4BAA4B,GAAG,mBAAmB,CAAC;IACvD,YAAY,EAAE;QACZ,KAAK,EAAE,uBAAuB,CAAC,QAAQ;QACvC,sBAAsB,EAAE,8BAA8B;QACtD,iBAAiB,EAAE,yBAAyB;QAC5C,cAAc,EAAE,sBAAsB;KACvC;IACD,OAAO,EAAE,EAAE,wBAAwB,EAAE,wBAAwB,CAAC,MAAM,EAAE,EAAE;IACxE,GAAG,CAAC,EAAE,KAAK,EAAE,sBAAsB,EAAE,iBAAiB,EAAE,cAAc,EAAE;QACtE,OAAO;YACL,SAAS,EAAE;gBACT,wBAAwB,EAAE;oBACxB,cAAc,EAAE;wBACd,MAAM,EAAE,CAAC,OAAO,EAAE,EAAE,CAClB,cAAc,CAAC,kBAAkB,CAAC;4BAChC,QAAQ,EAAE,2BAA2B,CAAC,cAAc;4BACpD,WAAW,EAAE,KAAK,CAAC,cAAc;4BACjC,kBAAkB,EAAE;gCAClB,sBAAsB;gCACtB,iBAAiB;6BAClB;4BACD,GAAG,OAAO;yBACX,CAAC;qBACL;iBACF;aACF;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,2BAA2B,GAAG;IACzC,QAAQ,EAAE,wBAAwB;IAClC,IAAI,EAAE,4BAA4B;CACnC,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"typed-templates.d.ts","sourceRoot":"","sources":["../../../../../../src/auth0/generators/react/react-auth0/generated/typed-templates.ts"],"names":[],"mappings":"AAuBA,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAqB,CAAC"}
@@ -1,17 +0,0 @@
1
- import { createTsTemplateFile } from '@baseplate-dev/core-generators';
2
- import { reactComponentsImportsProvider, reactErrorImportsProvider, } from '@baseplate-dev/react-generators';
3
- import path from 'node:path';
4
- const authLoadedGate = createTsTemplateFile({
5
- fileOptions: { kind: 'singleton' },
6
- importMapProviders: {
7
- reactComponentsImports: reactComponentsImportsProvider,
8
- reactErrorImports: reactErrorImportsProvider,
9
- },
10
- name: 'auth-loaded-gate',
11
- source: {
12
- path: path.join(import.meta.dirname, '../templates/src/app/auth-loaded-gate.tsx'),
13
- },
14
- variables: {},
15
- });
16
- export const AUTH0_REACT_AUTH0_TEMPLATES = { authLoadedGate };
17
- //# sourceMappingURL=typed-templates.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"typed-templates.js","sourceRoot":"","sources":["../../../../../../src/auth0/generators/react/react-auth0/generated/typed-templates.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,gCAAgC,CAAC;AACtE,OAAO,EACL,8BAA8B,EAC9B,yBAAyB,GAC1B,MAAM,iCAAiC,CAAC;AACzC,OAAO,IAAI,MAAM,WAAW,CAAC;AAE7B,MAAM,cAAc,GAAG,oBAAoB,CAAC;IAC1C,WAAW,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE;IAClC,kBAAkB,EAAE;QAClB,sBAAsB,EAAE,8BAA8B;QACtD,iBAAiB,EAAE,yBAAyB;KAC7C;IACD,IAAI,EAAE,kBAAkB;IACxB,MAAM,EAAE;QACN,IAAI,EAAE,IAAI,CAAC,IAAI,CACb,MAAM,CAAC,IAAI,CAAC,OAAO,EACnB,2CAA2C,CAC5C;KACF;IACD,SAAS,EAAE,EAAE;CACd,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,2BAA2B,GAAG,EAAE,cAAc,EAAE,CAAC"}
@@ -1,2 +0,0 @@
1
- export * from './react-auth0.generator.js';
2
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/auth0/generators/react/react-auth0/index.ts"],"names":[],"mappings":"AAAA,cAAc,4BAA4B,CAAC"}
@@ -1,2 +0,0 @@
1
- export * from './react-auth0.generator.js';
2
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/auth0/generators/react/react-auth0/index.ts"],"names":[],"mappings":"AAAA,cAAc,4BAA4B,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"react-auth0.generator.d.ts","sourceRoot":"","sources":["../../../../../src/auth0/generators/react/react-auth0/react-auth0.generator.ts"],"names":[],"mappings":"AA6BA,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA0G9B,CAAC"}
@@ -1,107 +0,0 @@
1
- import { createNodePackagesTask, extractPackageVersions, packageScope, TsCodeUtils, tsImportBuilder, tsTemplate, tsTemplateWithImports, } from '@baseplate-dev/core-generators';
2
- import { reactAppConfigProvider, reactAuthRoutesProvider, reactConfigImportsProvider, reactConfigProvider, reactRouterConfigProvider, } from '@baseplate-dev/react-generators';
3
- import { createGenerator, createGeneratorTask, createProviderTask, } from '@baseplate-dev/sync';
4
- import { z } from 'zod';
5
- import { AUTH0_PACKAGES } from '#src/auth0/constants/packages.js';
6
- import { AUTH0_REACT_AUTH0_GENERATED } from './generated/index.js';
7
- const descriptorSchema = z.object({});
8
- export const reactAuth0Generator = createGenerator({
9
- name: 'auth0/react-auth0',
10
- generatorFileUrl: import.meta.url,
11
- descriptorSchema,
12
- buildTasks: () => ({
13
- paths: AUTH0_REACT_AUTH0_GENERATED.paths.task,
14
- renderers: AUTH0_REACT_AUTH0_GENERATED.renderers.task,
15
- nodePackages: createNodePackagesTask({
16
- prod: extractPackageVersions(AUTH0_PACKAGES, ['@auth0/auth0-react']),
17
- }),
18
- reactConfig: createProviderTask(reactConfigProvider, (reactConfig) => {
19
- reactConfig.configEntries.mergeObj({
20
- VITE_AUTH0_DOMAIN: {
21
- comment: 'Auth0 Domain',
22
- validator: 'z.string().min(1)',
23
- devDefaultValue: 'domain.auth0.com',
24
- },
25
- VITE_AUTH0_CLIENT_ID: {
26
- comment: 'Auth0 Client ID',
27
- validator: 'z.string().min(1)',
28
- devDefaultValue: 'AUTH0_CLIENT_ID',
29
- },
30
- VITE_AUTH0_AUDIENCE: {
31
- comment: 'Auth0 Audience',
32
- validator: 'z.string().min(1)',
33
- devDefaultValue: 'AUTH0_AUDIENCE',
34
- },
35
- });
36
- }),
37
- reactRouterContext: createGeneratorTask({
38
- dependencies: {
39
- reactRouterConfig: reactRouterConfigProvider,
40
- },
41
- run({ reactRouterConfig }) {
42
- reactRouterConfig.routerSetupFragments.set('auth0', tsTemplateWithImports(tsImportBuilder(['useAuth0']).from('@auth0/auth0-react')) `const auth0 = useAuth0()`);
43
- reactRouterConfig.rootContextFields.add({
44
- name: 'auth0',
45
- type: TsCodeUtils.typeImportFragment('Auth0ContextInterface', '@auth0/auth0-react'),
46
- optional: false,
47
- routerProviderInitializer: {
48
- code: tsTemplate `auth0`,
49
- dependencies: ['auth0'],
50
- },
51
- });
52
- },
53
- }),
54
- authLoadedGate: createGeneratorTask({
55
- dependencies: {
56
- renderers: AUTH0_REACT_AUTH0_GENERATED.renderers.provider,
57
- },
58
- run({ renderers }) {
59
- return {
60
- build: async (builder) => {
61
- await builder.apply(renderers.authLoadedGate.render({}));
62
- },
63
- };
64
- },
65
- }),
66
- reactAuth: createGeneratorTask({
67
- exports: {
68
- reactAuth: reactAuthRoutesProvider.export(packageScope),
69
- },
70
- run() {
71
- return {
72
- providers: {
73
- reactAuth: {
74
- getLoginUrlPath: () => '/auth/login',
75
- getRegisterUrlPath: () => '/auth/login?screen_hint=signup',
76
- },
77
- },
78
- };
79
- },
80
- }),
81
- reactAppConfig: createGeneratorTask({
82
- dependencies: {
83
- reactConfigImports: reactConfigImportsProvider,
84
- reactAppConfig: reactAppConfigProvider,
85
- paths: AUTH0_REACT_AUTH0_GENERATED.paths.provider,
86
- },
87
- run({ reactConfigImports, reactAppConfig, paths }) {
88
- reactAppConfig.renderWrappers.set('react-auth0', {
89
- wrap: (contents) => TsCodeUtils.templateWithImports([
90
- tsImportBuilder(['Auth0Provider']).from('@auth0/auth0-react'),
91
- reactConfigImports.config.declaration(),
92
- tsImportBuilder(['AuthLoadedGate']).from(paths.authLoadedGate),
93
- ]) `<Auth0Provider
94
- domain={config.VITE_AUTH0_DOMAIN}
95
- clientId={config.VITE_AUTH0_CLIENT_ID}
96
- authorizationParams={{
97
- redirect_uri: globalThis.location.origin,
98
- audience: config.VITE_AUTH0_AUDIENCE,
99
- }}
100
- ><AuthLoadedGate>${contents}</AuthLoadedGate></Auth0Provider>`,
101
- type: 'auth',
102
- });
103
- },
104
- }),
105
- }),
106
- });
107
- //# sourceMappingURL=react-auth0.generator.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"react-auth0.generator.js","sourceRoot":"","sources":["../../../../../src/auth0/generators/react/react-auth0/react-auth0.generator.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,sBAAsB,EACtB,sBAAsB,EACtB,YAAY,EACZ,WAAW,EACX,eAAe,EACf,UAAU,EACV,qBAAqB,GACtB,MAAM,gCAAgC,CAAC;AACxC,OAAO,E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4BACpC,kBAAkB,EAAE,GAAG,EAAE,CAAC,gCAAgC;yBAC3D;qBACF;iBACF,CAAC;YACJ,CAAC;SACF,CAAC;QACF,cAAc,EAAE,mBAAmB,CAAC;YAClC,YAAY,EAAE;gBACZ,kBAAkB,EAAE,0BAA0B;gBAC9C,cAAc,EAAE,sBAAsB;gBACtC,KAAK,EAAE,2BAA2B,CAAC,KAAK,CAAC,QAAQ;aAClD;YACD,GAAG,CAAC,EAAE,kBAAkB,EAAE,cAAc,EAAE,KAAK,EAAE;gBAC/C,cAAc,CAAC,cAAc,CAAC,GAAG,CAAC,aAAa,EAAE;oBAC/C,IAAI,EAAE,CAAC,QAAQ,EAAE,EAAE,CAAC,WAAW,CAAC,mBAAmB,CAAC;wBAClD,eAAe,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC,IAAI,CAAC,oBAAoB,CAAC;wBAC7D,kBAAkB,CAAC,MAAM,CAAC,WAAW,EAAE;wBACvC,eAAe,CAAC,CAAC,gBAAgB,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC;qBAC/D,CAAC,CAAA;;;;;;;yBAOa,QAAQ,mCAAmC;oBAC1D,IAAI,EAAE,MAAM;iBACb,CAAC,CAAC;YACL,CAAC;SACF,CAAC;KACH,CAAC;CACH,CAAC,CAAC"}
@@ -1,78 +0,0 @@
1
- // @ts-nocheck
2
-
3
- import {
4
- Alert,
5
- AlertDescription,
6
- AlertTitle,
7
- Button,
8
- Card,
9
- Loader,
10
- } from '%reactComponentsImports';
11
- import { logError } from '%reactErrorImports';
12
- import { useAuth0 } from '@auth0/auth0-react';
13
- import { useEffect } from 'react';
14
-
15
- function isInvalidRoleError(error: unknown): boolean {
16
- return (
17
- error instanceof Error &&
18
- 'error' in error &&
19
- 'error_description' in error &&
20
- typeof error.error_description === 'string' &&
21
- error.error === 'access_denied' &&
22
- error.error_description.includes('INVALID_ROLE')
23
- );
24
- }
25
-
26
- function formatAuthError(error: unknown): {
27
- title: string;
28
- description: string;
29
- } {
30
- if (isInvalidRoleError(error)) {
31
- return {
32
- title: 'You do not have permission to access this page.',
33
- description: 'Please contact support if you believe this is an error.',
34
- };
35
- }
36
- return {
37
- title: 'Sorry, we could not log you in.',
38
- description: 'Please try logging out and logging in again.',
39
- };
40
- }
41
-
42
- /**
43
- * A component that waits for the Auth0 client to be loaded before rendering its children.
44
- *
45
- * @param children - The children to render when the Auth0 client is loaded.
46
- * @returns The children or a loading indicator (with optional error message) if the Auth0 client is not loaded.
47
- */
48
- export function AuthLoadedGate({
49
- children,
50
- }: {
51
- children: React.ReactNode;
52
- }): React.ReactElement {
53
- const { isLoading, error, logout } = useAuth0();
54
-
55
- useEffect(() => {
56
- if (error) {
57
- logError(error);
58
- }
59
- }, [error]);
60
-
61
- if (error) {
62
- const { title, description } = formatAuthError(error);
63
- return (
64
- <div className="flex h-full items-center justify-center">
65
- <Card className="w-sm space-y-4 p-4">
66
- <Alert variant="error">
67
- <AlertTitle>{title}</AlertTitle>
68
- <AlertDescription>{description}</AlertDescription>
69
- </Alert>
70
- <Button onClick={() => logout()}>Log Out</Button>
71
- </Card>
72
- </div>
73
- );
74
- }
75
- if (isLoading) return <Loader />;
76
-
77
- return <>{children}</>;
78
- }
@@ -1,9 +0,0 @@
1
- {
2
- "name": "auth0",
3
- "displayName": "Auth0",
4
- "icon": "icon.svg",
5
- "description": "This plugin allows users to authenticate and authorize access to the application using Auth0.",
6
- "version": "0.1.0",
7
- "moduleDirectories": ["core"],
8
- "managedBy": "@baseplate-dev/plugin-auth:auth"
9
- }
@@ -1,7 +0,0 @@
1
- <?xml version="1.0" encoding="utf-8"?><!-- Uploaded to: SVG Repo, www.svgrepo.com, Generator: SVG Repo Mixer Tools -->
2
- <svg xmlns="http://www.w3.org/2000/svg"
3
- aria-label="Auth0" role="img"
4
- viewBox="0 0 512 512"><rect
5
- width="512" height="512"
6
- rx="15%"
7
- fill="#ffffff"/><path d="M358.1 378.8L319.6 260L420.5 186.9H295.7l-38.6-118.7l-.01-.03h124.8l38.6 118.7v-.003l0.03-.02c22.4 68.8-.7 147 -62.4 192zm-201.9 0l-.036 .03L257.13 452.2L358.09 378.84L257.17 305.51ZM93.85 186.85c-23.57 72.57 3.79 149.46 62.36 192l0.01-.036L194.77 260.17L93.89 186.87H218.6L257.15 68.2L257.2 68.2H132.4Z" fill="#eb5424"/></svg>
@@ -1 +0,0 @@
1
- {"version":3,"file":"auth-verification.service.d.ts","sourceRoot":"","sources":["../../../../../../../../src/local-auth/core/generators/auth-email-password/templates/module/services/auth-verification.service.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAiDxE;;;;;;;;GAQG;AACH,wBAAsB,sBAAsB,CAAC,EAC3C,IAAI,EACJ,MAAM,EACN,YAAY,EACZ,QAAQ,GACT,EAAE;IACD,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,YAAY,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,MAAM,CAAC,SAAS,CAAC;CAC7B,GAAG,OAAO,CAAC;IAAE,KAAK,EAAE,MAAM,CAAA;CAAE,CAAC,CAiB7B;AAED;;;;;;;;;GASG;AACH,wBAAsB,wBAAwB,CAAC,EAC7C,IAAI,EACJ,KAAK,GACN,EAAE;IACD,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;CACf,GAAG,OAAO,CAAC,gBAAgB,GAAG,IAAI,CAAC,CAwBnC;AAED;;;GAGG;AACH,wBAAsB,+BAA+B,IAAI,OAAO,CAAC;IAC/D,YAAY,EAAE,MAAM,CAAC;CACtB,CAAC,CAQD"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"auth-verification.service.js","sourceRoot":"","sources":["../../../../../../../../src/local-auth/core/generators/auth-email-password/templates/module/services/auth-verification.service.ts"],"names":[],"mappings":"AAAA,cAAc;AAId,OAAO,EAAE,MAAM,EAA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AI,IAAI,EAAE,EAC7B,CAAC;QACD,MAAM,MAAM,CAAC,gBAAgB,CAAC,MAAM,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,EAAE,MAAM,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;QACnE,OAAO,IAAI,CAAC;IACd,CAAC;IAED,OAAO,MAAM,CAAC;AAChB,CAAC;AAED;;;GAGG;AACH,MAAM,CAAC,KAAK,UAAU,+BAA+B;IAGnD,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,gBAAgB,CAAC,UAAU,CAAC;QACtD,KAAK,EAAE;YACL,SAAS,EAAE,EAAE,EAAE,EAAE,IAAI,IAAI,EAAE,EAAE;SAC9B;KACF,CAAC,CAAC;IAEH,OAAO,EAAE,YAAY,EAAE,MAAM,CAAC,KAAK,EAAE,CAAC;AACxC,CAAC"}
@@ -1,40 +0,0 @@
1
- import { importShared } from './__federation_fn_import-pxYUpmb_.js';
2
- import { c as createAuth0PluginDefinitionSchema, A as AUTH0_MODELS } from './plugin-definition-BG6tu7Hh.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-DKJVe6Rd.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"__federation_expose_auth0CoreCommon-DKJVe6Rd.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;;;;"}
@@ -1,158 +0,0 @@
1
- import { importShared } from './__federation_fn_import-pxYUpmb_.js';
2
- import { j as jsxRuntimeExports } from './jsx-runtime-XI9uIe3W.js';
3
- import { a, A as AuthConfigTabs } from './styles-BbHyE-2h.js';
4
- import { g as getAuthPluginDefinition } from './get-auth-plugin-definition-DPsrvQbo.js';
5
- import { A as AUTH0_MODELS, c as createAuth0PluginDefinitionSchema } from './plugin-definition-BG6tu7Hh.js';
6
-
7
- function createAuth0Models({
8
- authFeatureRef
9
- }) {
10
- return {
11
- user: {
12
- name: AUTH0_MODELS.user,
13
- featureRef: authFeatureRef,
14
- model: {
15
- fields: [
16
- {
17
- name: "id",
18
- type: "uuid",
19
- options: { genUuid: true }
20
- },
21
- {
22
- name: "email",
23
- type: "string"
24
- },
25
- {
26
- name: "auth0Id",
27
- type: "string",
28
- isOptional: true
29
- }
30
- ],
31
- primaryKeyFieldRefs: ["id"],
32
- uniqueConstraints: [
33
- {
34
- fields: [{ fieldRef: "auth0Id" }]
35
- }
36
- ]
37
- },
38
- graphql: {
39
- objectType: {
40
- enabled: true,
41
- fields: ["id", "email"]
42
- }
43
- }
44
- }
45
- };
46
- }
47
-
48
- const {createAndApplyModelMergerResults,createModelMergerResults,doesModelMergerResultsHaveChanges,PluginUtils} = await importShared('@baseplate-dev/project-builder-lib');
49
-
50
- const {ModelMergerResultAlert,useBlockUnsavedChangesNavigate,useDefinitionSchema,useProjectDefinition,useResettableForm} = await importShared('@baseplate-dev/project-builder-lib/web');
51
-
52
- const {FormActionBar,SectionList,SectionListSection,SectionListSectionContent,SectionListSectionDescription,SectionListSectionHeader,SectionListSectionTitle} = await importShared('@baseplate-dev/ui-components');
53
- const {useMemo} = await importShared('react');
54
- function Auth0DefinitionEditor({
55
- definition: pluginMetadata,
56
- metadata,
57
- onSave
58
- }) {
59
- const { definition, definitionContainer, saveDefinitionWithFeedback } = useProjectDefinition();
60
- const auth0PluginDefinitionSchema = useDefinitionSchema(
61
- createAuth0PluginDefinitionSchema
62
- );
63
- const defaultValues = useMemo(() => {
64
- if (pluginMetadata?.config) {
65
- return pluginMetadata.config;
66
- }
67
- return {};
68
- }, [pluginMetadata?.config]);
69
- const form = useResettableForm({
70
- resolver: a(auth0PluginDefinitionSchema),
71
- defaultValues
72
- });
73
- const { control, reset, handleSubmit } = form;
74
- const authDefinition = getAuthPluginDefinition(definition);
75
- const pendingModelChanges = useMemo(() => {
76
- const desiredModels = createAuth0Models(authDefinition);
77
- return createModelMergerResults(
78
- AUTH0_MODELS,
79
- desiredModels,
80
- definitionContainer
81
- );
82
- }, [definitionContainer, authDefinition]);
83
- const onSubmit = handleSubmit(
84
- (data) => saveDefinitionWithFeedback(
85
- (draftConfig) => {
86
- const updatedData = {
87
- ...data
88
- };
89
- createAndApplyModelMergerResults(
90
- draftConfig,
91
- AUTH0_MODELS,
92
- createAuth0Models(authDefinition),
93
- definitionContainer
94
- );
95
- PluginUtils.setPluginConfig(
96
- draftConfig,
97
- metadata,
98
- updatedData,
99
- definitionContainer
100
- );
101
- },
102
- {
103
- successMessage: "Successfully saved Auth0 plugin!",
104
- onSuccess: () => {
105
- onSave();
106
- }
107
- }
108
- )
109
- );
110
- useBlockUnsavedChangesNavigate({ control, reset, onSubmit });
111
- return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "auth:relative auth:flex auth:h-full auth:flex-1 auth:flex-col auth:gap-4 auth:overflow-hidden", children: [
112
- /* @__PURE__ */ jsxRuntimeExports.jsx(AuthConfigTabs, {}),
113
- /* @__PURE__ */ jsxRuntimeExports.jsx(
114
- "div",
115
- {
116
- className: "auth:mb-[--action-bar-height] auth:flex auth:flex-1 auth:overflow-y-auto",
117
- style: {
118
- "--action-bar-height": "52px"
119
- },
120
- children: /* @__PURE__ */ jsxRuntimeExports.jsxs("form", { onSubmit, className: "auth:max-w-6xl auth:flex-1", children: [
121
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "auth:pb-16", children: /* @__PURE__ */ jsxRuntimeExports.jsx(SectionList, { children: /* @__PURE__ */ jsxRuntimeExports.jsxs(SectionListSection, { children: [
122
- /* @__PURE__ */ jsxRuntimeExports.jsxs(SectionListSectionHeader, { children: [
123
- /* @__PURE__ */ jsxRuntimeExports.jsx(SectionListSectionTitle, { children: "Auth0 Configuration" }),
124
- /* @__PURE__ */ jsxRuntimeExports.jsx(SectionListSectionDescription, { children: "The plugin will automatically configure the models it needs." })
125
- ] }),
126
- /* @__PURE__ */ jsxRuntimeExports.jsx(SectionListSectionContent, { className: "auth:space-y-6", children: /* @__PURE__ */ jsxRuntimeExports.jsx(
127
- ModelMergerResultAlert,
128
- {
129
- pendingModelChanges
130
- }
131
- ) })
132
- ] }) }) }),
133
- /* @__PURE__ */ jsxRuntimeExports.jsx(
134
- FormActionBar,
135
- {
136
- form,
137
- allowSaveWithoutDirty: !pluginMetadata || doesModelMergerResultsHaveChanges(pendingModelChanges)
138
- }
139
- )
140
- ] })
141
- }
142
- )
143
- ] });
144
- }
145
-
146
- const {createPluginModule,webConfigSpec} = await importShared('@baseplate-dev/project-builder-lib');
147
- const web = createPluginModule({
148
- name: "web",
149
- dependencies: {
150
- webConfig: webConfigSpec
151
- },
152
- initialize: ({ webConfig }, { pluginKey }) => {
153
- webConfig.components.set(pluginKey, Auth0DefinitionEditor);
154
- }
155
- });
156
-
157
- export { web as default };
158
- //# sourceMappingURL=__federation_expose_auth0CoreWeb-CfhSWZsK.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"__federation_expose_auth0CoreWeb-CfhSWZsK.js","sources":["../../../src/auth0/core/schema/models.ts","../../../src/auth0/core/components/auth0-definition-editor.tsx","../../../src/auth0/core/web.ts"],"sourcesContent":["import type { ModelMergerModelInput } from '@baseplate-dev/project-builder-lib';\n\nimport type { AuthPluginDefinition } from '#src/auth/core/schema/plugin-definition.js';\n\nimport { AUTH0_MODELS } from '#src/auth0/constants/model-names.js';\n\nexport function createAuth0Models({\n authFeatureRef,\n}: AuthPluginDefinition): Record<\n keyof typeof AUTH0_MODELS,\n ModelMergerModelInput\n> {\n return {\n user: {\n name: AUTH0_MODELS.user,\n featureRef: authFeatureRef,\n model: {\n fields: [\n {\n name: 'id',\n type: 'uuid',\n options: { genUuid: true },\n },\n {\n name: 'email',\n type: 'string',\n },\n {\n name: 'auth0Id',\n type: 'string',\n isOptional: true,\n },\n ],\n primaryKeyFieldRefs: ['id'],\n uniqueConstraints: [\n {\n fields: [{ fieldRef: 'auth0Id' }],\n },\n ],\n },\n graphql: {\n objectType: {\n enabled: true,\n fields: ['id', 'email'],\n },\n },\n },\n };\n}\n","import type { WebConfigProps } from '@baseplate-dev/project-builder-lib';\nimport type React from 'react';\n\nimport {\n createAndApplyModelMergerResults,\n createModelMergerResults,\n doesModelMergerResultsHaveChanges,\n PluginUtils,\n} from '@baseplate-dev/project-builder-lib';\nimport {\n ModelMergerResultAlert,\n useBlockUnsavedChangesNavigate,\n useDefinitionSchema,\n useProjectDefinition,\n useResettableForm,\n} from '@baseplate-dev/project-builder-lib/web';\nimport {\n FormActionBar,\n SectionList,\n SectionListSection,\n SectionListSectionContent,\n SectionListSectionDescription,\n SectionListSectionHeader,\n SectionListSectionTitle,\n} from '@baseplate-dev/ui-components';\nimport { zodResolver } from '@hookform/resolvers/zod';\nimport { useMemo } from 'react';\n\nimport { getAuthPluginDefinition } from '#src/auth/utils/get-auth-plugin-definition.js';\nimport { AUTH0_MODELS } from '#src/auth0/constants/model-names.js';\nimport { AuthConfigTabs } from '#src/common/components/auth-config-tabs.js';\n\nimport type { Auth0PluginDefinitionInput } from '../schema/plugin-definition.js';\n\nimport { createAuth0Models } from '../schema/models.js';\nimport { createAuth0PluginDefinitionSchema } from '../schema/plugin-definition.js';\n\nimport '#src/styles.css';\n\nexport function Auth0DefinitionEditor({\n definition: pluginMetadata,\n metadata,\n onSave,\n}: WebConfigProps): React.JSX.Element {\n const { definition, definitionContainer, saveDefinitionWithFeedback } =\n useProjectDefinition();\n\n const auth0PluginDefinitionSchema = useDefinitionSchema(\n createAuth0PluginDefinitionSchema,\n );\n\n const defaultValues = useMemo(() => {\n if (pluginMetadata?.config) {\n return pluginMetadata.config as Auth0PluginDefinitionInput;\n }\n\n return {} satisfies Auth0PluginDefinitionInput;\n }, [pluginMetadata?.config]);\n\n const form = useResettableForm({\n resolver: zodResolver(auth0PluginDefinitionSchema),\n defaultValues,\n });\n const { control, reset, handleSubmit } = form;\n\n const authDefinition = getAuthPluginDefinition(definition);\n\n const pendingModelChanges = useMemo(() => {\n const desiredModels = createAuth0Models(authDefinition);\n\n return createModelMergerResults(\n AUTH0_MODELS,\n desiredModels,\n definitionContainer,\n );\n }, [definitionContainer, authDefinition]);\n\n const onSubmit = handleSubmit((data) =>\n saveDefinitionWithFeedback(\n (draftConfig) => {\n const updatedData = {\n ...data,\n };\n createAndApplyModelMergerResults(\n draftConfig,\n AUTH0_MODELS,\n createAuth0Models(authDefinition),\n definitionContainer,\n );\n PluginUtils.setPluginConfig(\n draftConfig,\n metadata,\n updatedData,\n definitionContainer,\n );\n },\n {\n successMessage: 'Successfully saved Auth0 plugin!',\n onSuccess: () => {\n onSave();\n },\n },\n ),\n );\n\n useBlockUnsavedChangesNavigate({ control, reset, onSubmit });\n\n return (\n <div className=\"auth:relative auth:flex auth:h-full auth:flex-1 auth:flex-col auth:gap-4 auth:overflow-hidden\">\n <AuthConfigTabs />\n <div\n className=\"auth:mb-[--action-bar-height] auth:flex auth:flex-1 auth:overflow-y-auto\"\n style={\n {\n '--action-bar-height': '52px',\n } as React.CSSProperties\n }\n >\n <form onSubmit={onSubmit} className=\"auth:max-w-6xl auth:flex-1\">\n <div className=\"auth:pb-16\">\n <SectionList>\n <SectionListSection>\n <SectionListSectionHeader>\n <SectionListSectionTitle>\n Auth0 Configuration\n </SectionListSectionTitle>\n <SectionListSectionDescription>\n The plugin will automatically configure the models it needs.\n </SectionListSectionDescription>\n </SectionListSectionHeader>\n <SectionListSectionContent className=\"auth:space-y-6\">\n <ModelMergerResultAlert\n pendingModelChanges={pendingModelChanges}\n />\n </SectionListSectionContent>\n </SectionListSection>\n </SectionList>\n </div>\n\n <FormActionBar\n form={form}\n allowSaveWithoutDirty={\n !pluginMetadata ||\n doesModelMergerResultsHaveChanges(pendingModelChanges)\n }\n />\n </form>\n </div>\n </div>\n );\n}\n","import {\n createPluginModule,\n webConfigSpec,\n} from '@baseplate-dev/project-builder-lib';\n\nimport { Auth0DefinitionEditor } from './components/auth0-definition-editor.js';\n\nimport '../../styles.css';\n\nexport default createPluginModule({\n name: 'web',\n dependencies: {\n webConfig: webConfigSpec,\n },\n initialize: ({ webConfig }, { pluginKey }) => {\n webConfig.components.set(pluginKey, Auth0DefinitionEditor);\n },\n});\n"],"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