@baseplate-dev/plugin-auth 4.0.3 → 5.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 (449) hide show
  1. package/CHANGELOG.md +51 -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 +4 -4
  187. package/dist/local-auth/core/generators/auth-email-password/templates/module/schema/password-reset.mutations.js +1 -1
  188. package/dist/local-auth/core/generators/auth-email-password/templates/module/schema/password-reset.mutations.js.map +1 -1
  189. package/dist/local-auth/core/generators/auth-email-password/templates/module/schema/password-reset.mutations.ts +1 -1
  190. package/dist/local-auth/core/generators/auth-email-password/templates/module/services/password-reset.service.d.ts +3 -1
  191. package/dist/local-auth/core/generators/auth-email-password/templates/module/services/password-reset.service.d.ts.map +1 -1
  192. package/dist/local-auth/core/generators/auth-email-password/templates/module/services/password-reset.service.js +6 -1
  193. package/dist/local-auth/core/generators/auth-email-password/templates/module/services/password-reset.service.js.map +1 -1
  194. package/dist/local-auth/core/generators/auth-email-password/templates/module/services/password-reset.service.ts +8 -2
  195. package/dist/local-auth/core/generators/auth-module/auth-module.generator.d.ts +1 -0
  196. package/dist/local-auth/core/generators/auth-module/auth-module.generator.d.ts.map +1 -1
  197. package/dist/local-auth/core/generators/auth-module/auth-module.generator.js +14 -3
  198. package/dist/local-auth/core/generators/auth-module/auth-module.generator.js.map +1 -1
  199. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/login.js +1 -1
  200. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/login.js.map +1 -1
  201. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/login.tsx +1 -1
  202. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/register.js +1 -1
  203. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/register.js.map +1 -1
  204. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/register.tsx +1 -1
  205. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/reset-password.js +34 -15
  206. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/reset-password.js.map +1 -1
  207. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/reset-password.tsx +58 -15
  208. package/dist/local-auth/core/node.d.ts.map +1 -1
  209. package/dist/local-auth/core/node.js +8 -6
  210. package/dist/local-auth/core/node.js.map +1 -1
  211. package/dist/local-auth/core/schema/models.d.ts +2 -4
  212. package/dist/local-auth/core/schema/models.d.ts.map +1 -1
  213. package/dist/local-auth/core/schema/models.js +254 -252
  214. package/dist/local-auth/core/schema/models.js.map +1 -1
  215. package/dist/local-auth/core/schema/plugin-definition.d.ts +2 -2
  216. package/dist/placeholder-auth/core/components/placeholder-auth-definition-editor.d.ts.map +1 -1
  217. package/dist/placeholder-auth/core/components/placeholder-auth-definition-editor.js +11 -11
  218. package/dist/placeholder-auth/core/components/placeholder-auth-definition-editor.js.map +1 -1
  219. package/dist/placeholder-auth/core/schema/models.d.ts +2 -4
  220. package/dist/placeholder-auth/core/schema/models.d.ts.map +1 -1
  221. package/dist/placeholder-auth/core/schema/models.js +30 -28
  222. package/dist/placeholder-auth/core/schema/models.js.map +1 -1
  223. package/dist/web/assets/{__federation_expose_authCoreCommon-Bg2mzE9K.js → __federation_expose_authCoreCommon-CIVhaGqo.js} +3 -3
  224. package/dist/web/assets/{__federation_expose_authCoreCommon-Bg2mzE9K.js.map → __federation_expose_authCoreCommon-CIVhaGqo.js.map} +1 -1
  225. package/dist/web/assets/{__federation_expose_authCoreWeb-DrOVHmj4.js → __federation_expose_authCoreWeb-N-mh42Bs.js} +6 -6
  226. package/dist/web/assets/{__federation_expose_authCoreWeb-DrOVHmj4.js.map → __federation_expose_authCoreWeb-N-mh42Bs.js.map} +1 -1
  227. package/dist/web/assets/__federation_expose_better-authCoreCommon-BIU3Fg7K.js +20 -0
  228. package/dist/web/assets/__federation_expose_better-authCoreCommon-BIU3Fg7K.js.map +1 -0
  229. package/dist/web/assets/__federation_expose_better-authCoreWeb-CMhPrXPA.js +402 -0
  230. package/dist/web/assets/__federation_expose_better-authCoreWeb-CMhPrXPA.js.map +1 -0
  231. package/dist/web/assets/{__federation_expose_local-authAdminCommon-Bzb0P17-.js → __federation_expose_local-authAdminCommon-DvHe9w29.js} +2 -2
  232. package/dist/web/assets/{__federation_expose_local-authAdminCommon-Bzb0P17-.js.map → __federation_expose_local-authAdminCommon-DvHe9w29.js.map} +1 -1
  233. package/dist/web/assets/{__federation_expose_local-authAdminWeb-D_LWcl7j.js → __federation_expose_local-authAdminWeb-CLU9aEy9.js} +2 -2
  234. package/dist/web/assets/{__federation_expose_local-authAdminWeb-D_LWcl7j.js.map → __federation_expose_local-authAdminWeb-CLU9aEy9.js.map} +1 -1
  235. package/dist/web/assets/{__federation_expose_local-authCoreCommon-D6OG-Rz6.js → __federation_expose_local-authCoreCommon-DbuvGG7o.js} +3 -3
  236. package/dist/web/assets/{__federation_expose_local-authCoreCommon-D6OG-Rz6.js.map → __federation_expose_local-authCoreCommon-DbuvGG7o.js.map} +1 -1
  237. package/dist/web/assets/__federation_expose_local-authCoreWeb-BY-mP3uS.js +432 -0
  238. package/dist/web/assets/__federation_expose_local-authCoreWeb-BY-mP3uS.js.map +1 -0
  239. package/dist/web/assets/{__federation_expose_placeholder-authCoreCommon-D7b3GEPP.js → __federation_expose_placeholder-authCoreCommon-BJBCuZvU.js} +3 -3
  240. package/dist/web/assets/{__federation_expose_placeholder-authCoreCommon-D7b3GEPP.js.map → __federation_expose_placeholder-authCoreCommon-BJBCuZvU.js.map} +1 -1
  241. package/dist/web/assets/{__federation_expose_placeholder-authCoreWeb-VZzvid5j.js → __federation_expose_placeholder-authCoreWeb-BaV-Ko2C.js} +61 -53
  242. package/dist/web/assets/__federation_expose_placeholder-authCoreWeb-BaV-Ko2C.js.map +1 -0
  243. package/dist/web/assets/{__federation_fn_import-DfNliZHH.js → __federation_fn_import-BLFDCY-V.js} +2 -2
  244. package/dist/web/assets/{__federation_fn_import-DfNliZHH.js.map → __federation_fn_import-BLFDCY-V.js.map} +1 -1
  245. package/dist/web/assets/__federation_shared_@baseplate-dev/project-builder-lib/{web-BqJ1vSYx.js → web-bRU6KpPk.js} +48 -26
  246. package/dist/web/assets/__federation_shared_@baseplate-dev/project-builder-lib/web-bRU6KpPk.js.map +1 -0
  247. package/dist/web/assets/__federation_shared_@baseplate-dev/{project-builder-lib-qf98MMJC.js → project-builder-lib-CQKLkNsU.js} +5705 -1957
  248. package/dist/web/assets/__federation_shared_@baseplate-dev/project-builder-lib-CQKLkNsU.js.map +1 -0
  249. package/dist/web/assets/__federation_shared_@baseplate-dev/{ui-components-DFkMnXmX.js → ui-components-DhyoEUTy.js} +5886 -1191
  250. package/dist/web/assets/__federation_shared_@baseplate-dev/ui-components-DhyoEUTy.js.map +1 -0
  251. package/dist/web/assets/__federation_shared_@baseplate-dev/{utils-CApJheqk.js → utils-9w-0yxVZ.js} +64 -45
  252. package/dist/web/assets/__federation_shared_@baseplate-dev/utils-9w-0yxVZ.js.map +1 -0
  253. package/dist/web/assets/__federation_shared_@tanstack/{react-router-YQslfDyE.js → react-router-CbExBaoL.js} +2 -2
  254. package/dist/web/assets/__federation_shared_@tanstack/{react-router-YQslfDyE.js.map → react-router-CbExBaoL.js.map} +1 -1
  255. package/dist/web/assets/{__federation_shared_zod-B6wbpZ4f.js → __federation_shared_zod-Do7Aa1b5.js} +3431 -2188
  256. package/dist/web/assets/__federation_shared_zod-Do7Aa1b5.js.map +1 -0
  257. package/dist/web/assets/{get-auth-plugin-definition-CVuj_mvy.js → get-auth-plugin-definition-BL50g0cJ.js} +2 -2
  258. package/dist/web/assets/{get-auth-plugin-definition-CVuj_mvy.js.map → get-auth-plugin-definition-BL50g0cJ.js.map} +1 -1
  259. package/dist/web/assets/{index-B00D4irM.js → index-B_A3cgiy.js} +2 -2
  260. package/dist/web/assets/{index-B00D4irM.js.map → index-B_A3cgiy.js.map} +1 -1
  261. package/dist/web/assets/{index.esm-1qBxxnfu.js → index.esm-BraHxHLB.js} +338 -231
  262. package/dist/web/assets/index.esm-BraHxHLB.js.map +1 -0
  263. package/dist/web/assets/{isEqual-BQtm2LNT.js → isEqual-tnzoadW8.js} +18 -18
  264. package/dist/web/assets/isEqual-tnzoadW8.js.map +1 -0
  265. package/dist/web/assets/mergeWith-VagwCqUi.js +76 -0
  266. package/dist/web/assets/mergeWith-VagwCqUi.js.map +1 -0
  267. package/dist/web/assets/model-utils-BfcjfzCn.js +694 -0
  268. package/dist/web/assets/model-utils-BfcjfzCn.js.map +1 -0
  269. package/dist/web/assets/plugin-definition-CXnKUJ1l.js +20 -0
  270. package/dist/web/assets/plugin-definition-CXnKUJ1l.js.map +1 -0
  271. package/dist/web/assets/{plugin-definition-CcdhC0td.js → plugin-definition-Ckl5hjD1.js} +2 -2
  272. package/dist/web/assets/{plugin-definition-CcdhC0td.js.map → plugin-definition-Ckl5hjD1.js.map} +1 -1
  273. package/dist/web/assets/{plugin-definition-B_hlyPlm.js → plugin-definition-D26rR8AB.js} +2 -2
  274. package/dist/web/assets/{plugin-definition-B_hlyPlm.js.map → plugin-definition-D26rR8AB.js.map} +1 -1
  275. package/dist/web/assets/{plugin-definition-BKCeZ0Ni.js → plugin-definition-DJzXScRp.js} +12 -19
  276. package/dist/web/assets/plugin-definition-DJzXScRp.js.map +1 -0
  277. package/dist/web/assets/{react-Df9ccuow.js → react-CL9M_wyN.js} +2 -2
  278. package/dist/web/assets/{react-Df9ccuow.js.map → react-CL9M_wyN.js.map} +1 -1
  279. package/dist/web/assets/{registries-19UehlAo.js → registries-Tz_dluz3.js} +51 -13
  280. package/dist/web/assets/registries-Tz_dluz3.js.map +1 -0
  281. package/dist/web/assets/remoteEntry.js +14 -14
  282. package/dist/web/assets/{styles-CbPVroCT.js → styles-tkrWV-ZE.js} +4 -4
  283. package/dist/web/assets/{styles-CbPVroCT.js.map → styles-tkrWV-ZE.js.map} +1 -1
  284. package/package.json +17 -17
  285. package/dist/auth0/constants/model-names.d.ts +0 -4
  286. package/dist/auth0/constants/model-names.d.ts.map +0 -1
  287. package/dist/auth0/constants/model-names.js +0 -4
  288. package/dist/auth0/constants/model-names.js.map +0 -1
  289. package/dist/auth0/constants/packages.d.ts +0 -6
  290. package/dist/auth0/constants/packages.d.ts.map +0 -1
  291. package/dist/auth0/constants/packages.js +0 -6
  292. package/dist/auth0/constants/packages.js.map +0 -1
  293. package/dist/auth0/core/common.d.ts.map +0 -1
  294. package/dist/auth0/core/common.js +0 -19
  295. package/dist/auth0/core/common.js.map +0 -1
  296. package/dist/auth0/core/components/auth0-definition-editor.d.ts +0 -5
  297. package/dist/auth0/core/components/auth0-definition-editor.d.ts.map +0 -1
  298. package/dist/auth0/core/components/auth0-definition-editor.js.map +0 -1
  299. package/dist/auth0/core/node.d.ts.map +0 -1
  300. package/dist/auth0/core/node.js.map +0 -1
  301. package/dist/auth0/core/schema/migrations.d.ts +0 -3
  302. package/dist/auth0/core/schema/migrations.d.ts.map +0 -1
  303. package/dist/auth0/core/schema/migrations.js +0 -19
  304. package/dist/auth0/core/schema/migrations.js.map +0 -1
  305. package/dist/auth0/core/schema/models.d.ts +0 -5
  306. package/dist/auth0/core/schema/models.d.ts.map +0 -1
  307. package/dist/auth0/core/schema/models.js +0 -40
  308. package/dist/auth0/core/schema/models.js.map +0 -1
  309. package/dist/auth0/core/schema/plugin-definition.d.ts +0 -5
  310. package/dist/auth0/core/schema/plugin-definition.d.ts.map +0 -1
  311. package/dist/auth0/core/schema/plugin-definition.js +0 -4
  312. package/dist/auth0/core/schema/plugin-definition.js.map +0 -1
  313. package/dist/auth0/core/web.d.ts.map +0 -1
  314. package/dist/auth0/core/web.js.map +0 -1
  315. package/dist/auth0/generators/fastify/auth0-module/auth0-module.generator.d.ts.map +0 -1
  316. package/dist/auth0/generators/fastify/auth0-module/auth0-module.generator.js +0 -114
  317. package/dist/auth0/generators/fastify/auth0-module/auth0-module.generator.js.map +0 -1
  318. package/dist/auth0/generators/fastify/auth0-module/generated/index.d.ts.map +0 -1
  319. package/dist/auth0/generators/fastify/auth0-module/generated/index.js +0 -11
  320. package/dist/auth0/generators/fastify/auth0-module/generated/index.js.map +0 -1
  321. package/dist/auth0/generators/fastify/auth0-module/generated/template-paths.d.ts +0 -14
  322. package/dist/auth0/generators/fastify/auth0-module/generated/template-paths.d.ts.map +0 -1
  323. package/dist/auth0/generators/fastify/auth0-module/generated/template-paths.js +0 -24
  324. package/dist/auth0/generators/fastify/auth0-module/generated/template-paths.js.map +0 -1
  325. package/dist/auth0/generators/fastify/auth0-module/generated/template-renderers.d.ts.map +0 -1
  326. package/dist/auth0/generators/fastify/auth0-module/generated/template-renderers.js.map +0 -1
  327. package/dist/auth0/generators/fastify/auth0-module/generated/ts-import-providers.d.ts +0 -10
  328. package/dist/auth0/generators/fastify/auth0-module/generated/ts-import-providers.d.ts.map +0 -1
  329. package/dist/auth0/generators/fastify/auth0-module/generated/ts-import-providers.js +0 -23
  330. package/dist/auth0/generators/fastify/auth0-module/generated/ts-import-providers.js.map +0 -1
  331. package/dist/auth0/generators/fastify/auth0-module/generated/typed-templates.d.ts.map +0 -1
  332. package/dist/auth0/generators/fastify/auth0-module/generated/typed-templates.js.map +0 -1
  333. package/dist/auth0/generators/fastify/auth0-module/index.d.ts +0 -2
  334. package/dist/auth0/generators/fastify/auth0-module/index.d.ts.map +0 -1
  335. package/dist/auth0/generators/fastify/auth0-module/index.js +0 -2
  336. package/dist/auth0/generators/fastify/auth0-module/index.js.map +0 -1
  337. package/dist/auth0/generators/fastify/auth0-module/templates/module/services/management.ts +0 -22
  338. package/dist/auth0/generators/fastify/auth0-module/templates/module/services/user-session.service.ts +0 -101
  339. package/dist/auth0/generators/fastify/index.d.ts +0 -2
  340. package/dist/auth0/generators/fastify/index.d.ts.map +0 -1
  341. package/dist/auth0/generators/fastify/index.js +0 -2
  342. package/dist/auth0/generators/fastify/index.js.map +0 -1
  343. package/dist/auth0/generators/index.d.ts.map +0 -1
  344. package/dist/auth0/generators/index.js.map +0 -1
  345. package/dist/auth0/generators/react/auth0-apollo/auth0-apollo.generator.d.ts +0 -10
  346. package/dist/auth0/generators/react/auth0-apollo/auth0-apollo.generator.d.ts.map +0 -1
  347. package/dist/auth0/generators/react/auth0-apollo/auth0-apollo.generator.js +0 -41
  348. package/dist/auth0/generators/react/auth0-apollo/auth0-apollo.generator.js.map +0 -1
  349. package/dist/auth0/generators/react/auth0-apollo/index.d.ts +0 -2
  350. package/dist/auth0/generators/react/auth0-apollo/index.d.ts.map +0 -1
  351. package/dist/auth0/generators/react/auth0-apollo/index.js +0 -2
  352. package/dist/auth0/generators/react/auth0-apollo/index.js.map +0 -1
  353. package/dist/auth0/generators/react/auth0-apollo/templates/auth-link.ts +0 -11
  354. package/dist/auth0/generators/react/auth0-hooks/auth0-hooks.generator.d.ts.map +0 -1
  355. package/dist/auth0/generators/react/auth0-hooks/auth0-hooks.generator.js.map +0 -1
  356. package/dist/auth0/generators/react/auth0-hooks/generated/index.d.ts.map +0 -1
  357. package/dist/auth0/generators/react/auth0-hooks/generated/index.js +0 -11
  358. package/dist/auth0/generators/react/auth0-hooks/generated/index.js.map +0 -1
  359. package/dist/auth0/generators/react/auth0-hooks/generated/template-paths.d.ts +0 -14
  360. package/dist/auth0/generators/react/auth0-hooks/generated/template-paths.d.ts.map +0 -1
  361. package/dist/auth0/generators/react/auth0-hooks/generated/template-paths.js.map +0 -1
  362. package/dist/auth0/generators/react/auth0-hooks/generated/template-renderers.d.ts +0 -23
  363. package/dist/auth0/generators/react/auth0-hooks/generated/template-renderers.d.ts.map +0 -1
  364. package/dist/auth0/generators/react/auth0-hooks/generated/template-renderers.js +0 -38
  365. package/dist/auth0/generators/react/auth0-hooks/generated/template-renderers.js.map +0 -1
  366. package/dist/auth0/generators/react/auth0-hooks/generated/ts-import-providers.d.ts.map +0 -1
  367. package/dist/auth0/generators/react/auth0-hooks/generated/ts-import-providers.js.map +0 -1
  368. package/dist/auth0/generators/react/auth0-hooks/generated/typed-templates.d.ts.map +0 -1
  369. package/dist/auth0/generators/react/auth0-hooks/generated/typed-templates.js.map +0 -1
  370. package/dist/auth0/generators/react/auth0-hooks/index.d.ts +0 -2
  371. package/dist/auth0/generators/react/auth0-hooks/index.d.ts.map +0 -1
  372. package/dist/auth0/generators/react/auth0-hooks/index.js +0 -2
  373. package/dist/auth0/generators/react/auth0-hooks/index.js.map +0 -1
  374. package/dist/auth0/generators/react/auth0-hooks/templates/src/hooks/use-log-out.ts +0 -14
  375. package/dist/auth0/generators/react/auth0-hooks/templates/src/hooks/use-session.ts +0 -36
  376. package/dist/auth0/generators/react/auth0-pages/auth0-pages.generator.d.ts.map +0 -1
  377. package/dist/auth0/generators/react/auth0-pages/auth0-pages.generator.js.map +0 -1
  378. package/dist/auth0/generators/react/auth0-pages/generated/index.js +0 -9
  379. package/dist/auth0/generators/react/auth0-pages/generated/index.js.map +0 -1
  380. package/dist/auth0/generators/react/auth0-pages/generated/template-paths.d.ts +0 -12
  381. package/dist/auth0/generators/react/auth0-pages/generated/template-paths.d.ts.map +0 -1
  382. package/dist/auth0/generators/react/auth0-pages/generated/template-paths.js +0 -20
  383. package/dist/auth0/generators/react/auth0-pages/generated/template-paths.js.map +0 -1
  384. package/dist/auth0/generators/react/auth0-pages/generated/template-renderers.d.ts.map +0 -1
  385. package/dist/auth0/generators/react/auth0-pages/generated/template-renderers.js +0 -37
  386. package/dist/auth0/generators/react/auth0-pages/generated/template-renderers.js.map +0 -1
  387. package/dist/auth0/generators/react/auth0-pages/generated/typed-templates.d.ts +0 -433
  388. package/dist/auth0/generators/react/auth0-pages/generated/typed-templates.d.ts.map +0 -1
  389. package/dist/auth0/generators/react/auth0-pages/generated/typed-templates.js +0 -18
  390. package/dist/auth0/generators/react/auth0-pages/generated/typed-templates.js.map +0 -1
  391. package/dist/auth0/generators/react/auth0-pages/index.d.ts +0 -2
  392. package/dist/auth0/generators/react/auth0-pages/index.d.ts.map +0 -1
  393. package/dist/auth0/generators/react/auth0-pages/index.js +0 -2
  394. package/dist/auth0/generators/react/auth0-pages/index.js.map +0 -1
  395. package/dist/auth0/generators/react/auth0-pages/templates/routes/login.tsx +0 -31
  396. package/dist/auth0/generators/react/index.d.ts +0 -5
  397. package/dist/auth0/generators/react/index.d.ts.map +0 -1
  398. package/dist/auth0/generators/react/index.js +0 -5
  399. package/dist/auth0/generators/react/index.js.map +0 -1
  400. package/dist/auth0/generators/react/react-auth0/generated/index.js +0 -9
  401. package/dist/auth0/generators/react/react-auth0/generated/index.js.map +0 -1
  402. package/dist/auth0/generators/react/react-auth0/generated/template-paths.d.ts +0 -12
  403. package/dist/auth0/generators/react/react-auth0/generated/template-paths.d.ts.map +0 -1
  404. package/dist/auth0/generators/react/react-auth0/generated/template-paths.js +0 -22
  405. package/dist/auth0/generators/react/react-auth0/generated/template-paths.js.map +0 -1
  406. package/dist/auth0/generators/react/react-auth0/generated/template-renderers.d.ts.map +0 -1
  407. package/dist/auth0/generators/react/react-auth0/generated/template-renderers.js +0 -39
  408. package/dist/auth0/generators/react/react-auth0/generated/template-renderers.js.map +0 -1
  409. package/dist/auth0/generators/react/react-auth0/generated/typed-templates.d.ts.map +0 -1
  410. package/dist/auth0/generators/react/react-auth0/generated/typed-templates.js +0 -17
  411. package/dist/auth0/generators/react/react-auth0/generated/typed-templates.js.map +0 -1
  412. package/dist/auth0/generators/react/react-auth0/index.d.ts +0 -2
  413. package/dist/auth0/generators/react/react-auth0/index.d.ts.map +0 -1
  414. package/dist/auth0/generators/react/react-auth0/index.js +0 -2
  415. package/dist/auth0/generators/react/react-auth0/index.js.map +0 -1
  416. package/dist/auth0/generators/react/react-auth0/react-auth0.generator.d.ts.map +0 -1
  417. package/dist/auth0/generators/react/react-auth0/react-auth0.generator.js +0 -107
  418. package/dist/auth0/generators/react/react-auth0/react-auth0.generator.js.map +0 -1
  419. package/dist/auth0/generators/react/react-auth0/templates/src/app/auth-loaded-gate.tsx +0 -78
  420. package/dist/auth0/plugin.json +0 -9
  421. package/dist/auth0/static/icon.svg +0 -7
  422. package/dist/web/assets/__federation_expose_auth0CoreCommon-e_GtBIIm.js +0 -40
  423. package/dist/web/assets/__federation_expose_auth0CoreCommon-e_GtBIIm.js.map +0 -1
  424. package/dist/web/assets/__federation_expose_auth0CoreWeb-CTfPylMw.js +0 -158
  425. package/dist/web/assets/__federation_expose_auth0CoreWeb-CTfPylMw.js.map +0 -1
  426. package/dist/web/assets/__federation_expose_local-authCoreWeb-CaR8fx1f.js +0 -424
  427. package/dist/web/assets/__federation_expose_local-authCoreWeb-CaR8fx1f.js.map +0 -1
  428. package/dist/web/assets/__federation_expose_placeholder-authCoreWeb-VZzvid5j.js.map +0 -1
  429. package/dist/web/assets/__federation_shared_@baseplate-dev/project-builder-lib/web-BqJ1vSYx.js.map +0 -1
  430. package/dist/web/assets/__federation_shared_@baseplate-dev/project-builder-lib-qf98MMJC.js.map +0 -1
  431. package/dist/web/assets/__federation_shared_@baseplate-dev/ui-components-DFkMnXmX.js.map +0 -1
  432. package/dist/web/assets/__federation_shared_@baseplate-dev/utils-CApJheqk.js.map +0 -1
  433. package/dist/web/assets/__federation_shared_zod-B6wbpZ4f.js.map +0 -1
  434. package/dist/web/assets/index.esm-1qBxxnfu.js.map +0 -1
  435. package/dist/web/assets/isEqual-BQtm2LNT.js.map +0 -1
  436. package/dist/web/assets/model-merger-59HLmy_J.js +0 -1705
  437. package/dist/web/assets/model-merger-59HLmy_J.js.map +0 -1
  438. package/dist/web/assets/plugin-definition-BKCeZ0Ni.js.map +0 -1
  439. package/dist/web/assets/plugin-definition-Bkx-a_wA.js +0 -16
  440. package/dist/web/assets/plugin-definition-Bkx-a_wA.js.map +0 -1
  441. package/dist/web/assets/registries-19UehlAo.js.map +0 -1
  442. package/dist/web/assets/sortBy-BPH_zRB8.js +0 -34
  443. package/dist/web/assets/sortBy-BPH_zRB8.js.map +0 -1
  444. /package/dist/{auth0 → better-auth}/core/common.d.ts +0 -0
  445. /package/dist/{auth0 → better-auth}/core/node.d.ts +0 -0
  446. /package/dist/{auth0 → better-auth}/core/web.d.ts +0 -0
  447. /package/dist/{auth0 → better-auth}/generators/index.d.ts +0 -0
  448. /package/dist/{auth0 → better-auth}/generators/index.js +0 -0
  449. /package/dist/{auth0/generators/react/auth0-hooks → better-auth/generators/react/better-auth-hooks}/templates/src/hooks/use-required-user-id.ts +0 -0
@@ -1,424 +0,0 @@
1
- import { importShared } from './__federation_fn_import-DfNliZHH.js';
2
- import { j as jsxRuntimeExports } from './jsx-runtime-XI9uIe3W.js';
3
- import { a, A as AuthConfigTabs } from './styles-CbPVroCT.js';
4
- import { g as getAuthPluginDefinition } from './get-auth-plugin-definition-CVuj_mvy.js';
5
- import { L as LOCAL_AUTH_MODELS } from './model-names-DrcaRxt1.js';
6
- import { c as createLocalAuthPluginDefinitionSchema } from './plugin-definition-CcdhC0td.js';
7
-
8
- function createAuthModels({
9
- authFeatureRef
10
- }) {
11
- return {
12
- user: {
13
- name: LOCAL_AUTH_MODELS.user,
14
- featureRef: authFeatureRef,
15
- model: {
16
- fields: [
17
- {
18
- name: "id",
19
- type: "uuid",
20
- options: { genUuid: true }
21
- },
22
- {
23
- name: "name",
24
- type: "string",
25
- isOptional: true
26
- },
27
- {
28
- name: "email",
29
- type: "string"
30
- },
31
- {
32
- name: "emailVerified",
33
- type: "boolean",
34
- options: { default: "false" }
35
- },
36
- {
37
- name: "updatedAt",
38
- type: "dateTime",
39
- options: { defaultToNow: true, updatedAt: true }
40
- },
41
- {
42
- name: "createdAt",
43
- type: "dateTime",
44
- options: { defaultToNow: true }
45
- }
46
- ],
47
- primaryKeyFieldRefs: ["id"],
48
- uniqueConstraints: [
49
- {
50
- fields: [{ fieldRef: "email" }]
51
- }
52
- ]
53
- },
54
- graphql: {
55
- objectType: {
56
- enabled: true,
57
- fields: ["id", "email"]
58
- }
59
- }
60
- },
61
- userAccount: {
62
- name: LOCAL_AUTH_MODELS.userAccount,
63
- featureRef: authFeatureRef,
64
- model: {
65
- fields: [
66
- {
67
- name: "id",
68
- type: "uuid",
69
- options: { genUuid: true }
70
- },
71
- {
72
- name: "userId",
73
- type: "uuid"
74
- },
75
- {
76
- name: "accountId",
77
- type: "string"
78
- },
79
- {
80
- name: "providerId",
81
- type: "string"
82
- },
83
- {
84
- name: "password",
85
- type: "string",
86
- isOptional: true
87
- },
88
- {
89
- name: "createdAt",
90
- type: "dateTime",
91
- options: { defaultToNow: true }
92
- },
93
- {
94
- name: "updatedAt",
95
- type: "dateTime",
96
- options: { defaultToNow: true, updatedAt: true }
97
- }
98
- ],
99
- primaryKeyFieldRefs: ["id"],
100
- uniqueConstraints: [
101
- {
102
- fields: [{ fieldRef: "accountId" }, { fieldRef: "providerId" }]
103
- }
104
- ],
105
- relations: [
106
- {
107
- name: "user",
108
- references: [{ localRef: "userId", foreignRef: "id" }],
109
- modelRef: LOCAL_AUTH_MODELS.user,
110
- foreignRelationName: "accounts",
111
- onDelete: "Cascade",
112
- onUpdate: "Restrict"
113
- }
114
- ]
115
- }
116
- },
117
- userRole: {
118
- name: LOCAL_AUTH_MODELS.userRole,
119
- featureRef: authFeatureRef,
120
- model: {
121
- fields: [
122
- {
123
- name: "userId",
124
- type: "uuid"
125
- },
126
- {
127
- name: "role",
128
- type: "string"
129
- },
130
- {
131
- name: "updatedAt",
132
- type: "dateTime",
133
- options: { defaultToNow: true, updatedAt: true }
134
- },
135
- {
136
- name: "createdAt",
137
- type: "dateTime",
138
- options: { defaultToNow: true }
139
- }
140
- ],
141
- primaryKeyFieldRefs: ["userId", "role"],
142
- relations: [
143
- {
144
- name: "user",
145
- references: [{ localRef: "userId", foreignRef: "id" }],
146
- modelRef: LOCAL_AUTH_MODELS.user,
147
- foreignRelationName: "roles",
148
- onDelete: "Cascade",
149
- onUpdate: "Restrict"
150
- }
151
- ]
152
- }
153
- },
154
- userSession: {
155
- name: LOCAL_AUTH_MODELS.userSession,
156
- featureRef: authFeatureRef,
157
- model: {
158
- fields: [
159
- {
160
- name: "id",
161
- type: "uuid",
162
- options: { genUuid: true }
163
- },
164
- {
165
- name: "userId",
166
- type: "uuid"
167
- },
168
- {
169
- name: "token",
170
- type: "string"
171
- },
172
- {
173
- name: "expiresAt",
174
- type: "dateTime"
175
- },
176
- {
177
- name: "renewedAt",
178
- type: "dateTime",
179
- options: { defaultToNow: true }
180
- },
181
- {
182
- name: "createdAt",
183
- type: "dateTime",
184
- options: { defaultToNow: true }
185
- },
186
- {
187
- name: "updatedAt",
188
- type: "dateTime",
189
- options: { defaultToNow: true, updatedAt: true }
190
- }
191
- ],
192
- primaryKeyFieldRefs: ["id"],
193
- uniqueConstraints: [
194
- {
195
- fields: [{ fieldRef: "token" }]
196
- }
197
- ],
198
- relations: [
199
- {
200
- name: "user",
201
- references: [{ localRef: "userId", foreignRef: "id" }],
202
- modelRef: LOCAL_AUTH_MODELS.user,
203
- foreignRelationName: "sessions",
204
- onDelete: "Cascade",
205
- onUpdate: "Restrict"
206
- }
207
- ]
208
- }
209
- },
210
- authVerification: {
211
- name: LOCAL_AUTH_MODELS.authVerification,
212
- featureRef: authFeatureRef,
213
- model: {
214
- fields: [
215
- {
216
- name: "id",
217
- type: "uuid",
218
- options: { genUuid: true }
219
- },
220
- {
221
- name: "type",
222
- type: "string"
223
- },
224
- {
225
- name: "identifier",
226
- type: "string"
227
- },
228
- {
229
- name: "value",
230
- type: "string"
231
- },
232
- {
233
- name: "userId",
234
- type: "uuid",
235
- isOptional: true
236
- },
237
- {
238
- name: "metadata",
239
- type: "json",
240
- isOptional: true
241
- },
242
- {
243
- name: "expiresAt",
244
- type: "dateTime"
245
- },
246
- {
247
- name: "createdAt",
248
- type: "dateTime",
249
- options: { defaultToNow: true }
250
- }
251
- ],
252
- primaryKeyFieldRefs: ["id"],
253
- uniqueConstraints: [
254
- {
255
- fields: [{ fieldRef: "type" }, { fieldRef: "identifier" }]
256
- }
257
- ],
258
- relations: [
259
- {
260
- name: "user",
261
- references: [{ localRef: "userId", foreignRef: "id" }],
262
- modelRef: LOCAL_AUTH_MODELS.user,
263
- foreignRelationName: "authVerifications",
264
- onDelete: "Cascade",
265
- onUpdate: "Restrict"
266
- }
267
- ]
268
- }
269
- }
270
- };
271
- }
272
-
273
- const {createAndApplyModelMergerResults,createModelMergerResults,doesModelMergerResultsHaveChanges,PluginUtils} = await importShared('@baseplate-dev/project-builder-lib');
274
-
275
- const {ModelMergerResultAlert,useBlockUnsavedChangesNavigate,useDefinitionSchema,useProjectDefinition,useResettableForm} = await importShared('@baseplate-dev/project-builder-lib/web');
276
-
277
- const {FormActionBar,MultiComboboxFieldController,SectionList,SectionListSection,SectionListSectionContent,SectionListSectionDescription,SectionListSectionHeader,SectionListSectionTitle} = await importShared('@baseplate-dev/ui-components');
278
- const {useMemo} = await importShared('react');
279
- function LocalAuthDefinitionEditor({
280
- definition: pluginMetadata,
281
- metadata,
282
- onSave
283
- }) {
284
- const { definition, definitionContainer, saveDefinitionWithFeedback } = useProjectDefinition();
285
- const authPluginDefinitionSchema = useDefinitionSchema(
286
- createLocalAuthPluginDefinitionSchema
287
- );
288
- const authDefinition = getAuthPluginDefinition(definition);
289
- const roles = authDefinition.roles.filter((role) => !role.builtIn).map((role) => ({
290
- label: role.name,
291
- value: role.id
292
- }));
293
- const defaultValues = useMemo(() => {
294
- if (pluginMetadata?.config) {
295
- return pluginMetadata.config;
296
- }
297
- return {
298
- initialUserRoles: [],
299
- userAdminRoles: []
300
- };
301
- }, [pluginMetadata?.config]);
302
- const form = useResettableForm({
303
- resolver: a(authPluginDefinitionSchema),
304
- defaultValues
305
- });
306
- const { control, reset, handleSubmit } = form;
307
- const pendingModelChanges = useMemo(() => {
308
- const desiredModels = createAuthModels(authDefinition);
309
- return createModelMergerResults(
310
- LOCAL_AUTH_MODELS,
311
- desiredModels,
312
- definitionContainer
313
- );
314
- }, [definitionContainer, authDefinition]);
315
- const onSubmit = handleSubmit(
316
- (data) => saveDefinitionWithFeedback(
317
- (draftConfig) => {
318
- const updatedData = {
319
- ...data
320
- };
321
- createAndApplyModelMergerResults(
322
- draftConfig,
323
- LOCAL_AUTH_MODELS,
324
- createAuthModels(authDefinition),
325
- definitionContainer
326
- );
327
- PluginUtils.setPluginConfig(
328
- draftConfig,
329
- metadata,
330
- updatedData,
331
- definitionContainer
332
- );
333
- },
334
- {
335
- successMessage: "Successfully saved auth plugin!",
336
- onSuccess: () => {
337
- onSave();
338
- }
339
- }
340
- )
341
- );
342
- useBlockUnsavedChangesNavigate({ control, reset, onSubmit });
343
- 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: [
344
- /* @__PURE__ */ jsxRuntimeExports.jsx(AuthConfigTabs, {}),
345
- /* @__PURE__ */ jsxRuntimeExports.jsx(
346
- "div",
347
- {
348
- className: "auth:mb-[--action-bar-height] auth:flex auth:flex-1 auth:overflow-y-auto",
349
- style: {
350
- "--action-bar-height": "52px"
351
- },
352
- children: /* @__PURE__ */ jsxRuntimeExports.jsxs("form", { onSubmit, className: "auth:max-w-6xl auth:flex-1", children: [
353
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "auth:pb-16", children: /* @__PURE__ */ jsxRuntimeExports.jsxs(SectionList, { children: [
354
- /* @__PURE__ */ jsxRuntimeExports.jsxs(SectionListSection, { children: [
355
- /* @__PURE__ */ jsxRuntimeExports.jsxs(SectionListSectionHeader, { children: [
356
- /* @__PURE__ */ jsxRuntimeExports.jsx(SectionListSectionTitle, { children: "Local Auth User Models" }),
357
- /* @__PURE__ */ jsxRuntimeExports.jsx(SectionListSectionDescription, { children: "The plugin will automatically configure the models it needs." })
358
- ] }),
359
- /* @__PURE__ */ jsxRuntimeExports.jsx(SectionListSectionContent, { className: "auth:space-y-6", children: /* @__PURE__ */ jsxRuntimeExports.jsx(
360
- ModelMergerResultAlert,
361
- {
362
- pendingModelChanges
363
- }
364
- ) })
365
- ] }),
366
- /* @__PURE__ */ jsxRuntimeExports.jsxs(SectionListSection, { children: [
367
- /* @__PURE__ */ jsxRuntimeExports.jsxs(SectionListSectionHeader, { children: [
368
- /* @__PURE__ */ jsxRuntimeExports.jsx(SectionListSectionTitle, { children: "Initial User Setup" }),
369
- /* @__PURE__ */ jsxRuntimeExports.jsx(SectionListSectionDescription, { children: "In order to access the admin panel, an initial user must be created. To make it easier, the plugin will automatically add a seed script to create the initial user provided a .seed.env exists with the INTIIAL_USER_EMAIL and INTIIAL_USER_PASSWORD variables." })
370
- ] }),
371
- /* @__PURE__ */ jsxRuntimeExports.jsx(SectionListSectionContent, { className: "auth:space-y-6", children: /* @__PURE__ */ jsxRuntimeExports.jsx(
372
- MultiComboboxFieldController,
373
- {
374
- label: "Initial User Roles",
375
- name: "initialUserRoles",
376
- control,
377
- options: roles,
378
- description: "The roles that will be assigned to the initial user."
379
- }
380
- ) })
381
- ] }),
382
- /* @__PURE__ */ jsxRuntimeExports.jsxs(SectionListSection, { children: [
383
- /* @__PURE__ */ jsxRuntimeExports.jsxs(SectionListSectionHeader, { children: [
384
- /* @__PURE__ */ jsxRuntimeExports.jsx(SectionListSectionTitle, { children: "User Management Permissions" }),
385
- /* @__PURE__ */ jsxRuntimeExports.jsx(SectionListSectionDescription, { children: "Configure which roles can manage users and assign roles to other users in the admin interface." })
386
- ] }),
387
- /* @__PURE__ */ jsxRuntimeExports.jsx(SectionListSectionContent, { className: "auth:space-y-6", children: /* @__PURE__ */ jsxRuntimeExports.jsx(
388
- MultiComboboxFieldController,
389
- {
390
- label: "User Admin Roles",
391
- name: "userAdminRoles",
392
- control,
393
- options: roles,
394
- description: "Roles that can manage users and assign roles to other users."
395
- }
396
- ) })
397
- ] })
398
- ] }) }),
399
- /* @__PURE__ */ jsxRuntimeExports.jsx(
400
- FormActionBar,
401
- {
402
- form,
403
- allowSaveWithoutDirty: !pluginMetadata || doesModelMergerResultsHaveChanges(pendingModelChanges)
404
- }
405
- )
406
- ] })
407
- }
408
- )
409
- ] });
410
- }
411
-
412
- const {createPluginModule,webConfigSpec} = await importShared('@baseplate-dev/project-builder-lib');
413
- const web = createPluginModule({
414
- name: "web",
415
- dependencies: {
416
- webConfig: webConfigSpec
417
- },
418
- initialize: ({ webConfig }, { pluginKey }) => {
419
- webConfig.components.set(pluginKey, LocalAuthDefinitionEditor);
420
- }
421
- });
422
-
423
- export { web as default };
424
- //# sourceMappingURL=__federation_expose_local-authCoreWeb-CaR8fx1f.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"__federation_expose_local-authCoreWeb-CaR8fx1f.js","sources":["../../../src/local-auth/core/schema/models.ts","../../../src/local-auth/core/components/local-auth-definition-editor.tsx","../../../src/local-auth/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 { LOCAL_AUTH_MODELS } from '#src/local-auth/constants/model-names.js';\n\nexport function createAuthModels({\n authFeatureRef,\n}: AuthPluginDefinition): Record<\n keyof typeof LOCAL_AUTH_MODELS,\n ModelMergerModelInput\n> {\n return {\n user: {\n name: LOCAL_AUTH_MODELS.user,\n featureRef: authFeatureRef,\n model: {\n fields: [\n {\n name: 'id',\n type: 'uuid',\n options: { genUuid: true },\n },\n {\n name: 'name',\n type: 'string',\n isOptional: true,\n },\n {\n name: 'email',\n type: 'string',\n },\n {\n name: 'emailVerified',\n type: 'boolean',\n options: { default: 'false' },\n },\n {\n name: 'updatedAt',\n type: 'dateTime',\n options: { defaultToNow: true, updatedAt: true },\n },\n {\n name: 'createdAt',\n type: 'dateTime',\n options: { defaultToNow: true },\n },\n ],\n primaryKeyFieldRefs: ['id'],\n uniqueConstraints: [\n {\n fields: [{ fieldRef: 'email' }],\n },\n ],\n },\n graphql: {\n objectType: {\n enabled: true,\n fields: ['id', 'email'],\n },\n },\n },\n userAccount: {\n name: LOCAL_AUTH_MODELS.userAccount,\n featureRef: authFeatureRef,\n model: {\n fields: [\n {\n name: 'id',\n type: 'uuid',\n options: { genUuid: true },\n },\n {\n name: 'userId',\n type: 'uuid',\n },\n {\n name: 'accountId',\n type: 'string',\n },\n {\n name: 'providerId',\n type: 'string',\n },\n {\n name: 'password',\n type: 'string',\n isOptional: true,\n },\n {\n name: 'createdAt',\n type: 'dateTime',\n options: { defaultToNow: true },\n },\n {\n name: 'updatedAt',\n type: 'dateTime',\n options: { defaultToNow: true, updatedAt: true },\n },\n ],\n primaryKeyFieldRefs: ['id'],\n uniqueConstraints: [\n {\n fields: [{ fieldRef: 'accountId' }, { fieldRef: 'providerId' }],\n },\n ],\n relations: [\n {\n name: 'user',\n references: [{ localRef: 'userId', foreignRef: 'id' }],\n modelRef: LOCAL_AUTH_MODELS.user,\n foreignRelationName: 'accounts',\n onDelete: 'Cascade',\n onUpdate: 'Restrict',\n },\n ],\n },\n },\n userRole: {\n name: LOCAL_AUTH_MODELS.userRole,\n featureRef: authFeatureRef,\n model: {\n fields: [\n {\n name: 'userId',\n type: 'uuid',\n },\n {\n name: 'role',\n type: 'string',\n },\n {\n name: 'updatedAt',\n type: 'dateTime',\n options: { defaultToNow: true, updatedAt: true },\n },\n {\n name: 'createdAt',\n type: 'dateTime',\n options: { defaultToNow: true },\n },\n ],\n primaryKeyFieldRefs: ['userId', 'role'],\n relations: [\n {\n name: 'user',\n references: [{ localRef: 'userId', foreignRef: 'id' }],\n modelRef: LOCAL_AUTH_MODELS.user,\n foreignRelationName: 'roles',\n onDelete: 'Cascade',\n onUpdate: 'Restrict',\n },\n ],\n },\n },\n userSession: {\n name: LOCAL_AUTH_MODELS.userSession,\n featureRef: authFeatureRef,\n model: {\n fields: [\n {\n name: 'id',\n type: 'uuid',\n options: { genUuid: true },\n },\n {\n name: 'userId',\n type: 'uuid',\n },\n {\n name: 'token',\n type: 'string',\n },\n {\n name: 'expiresAt',\n type: 'dateTime',\n },\n {\n name: 'renewedAt',\n type: 'dateTime',\n options: { defaultToNow: true },\n },\n {\n name: 'createdAt',\n type: 'dateTime',\n options: { defaultToNow: true },\n },\n {\n name: 'updatedAt',\n type: 'dateTime',\n options: { defaultToNow: true, updatedAt: true },\n },\n ],\n primaryKeyFieldRefs: ['id'],\n uniqueConstraints: [\n {\n fields: [{ fieldRef: 'token' }],\n },\n ],\n relations: [\n {\n name: 'user',\n references: [{ localRef: 'userId', foreignRef: 'id' }],\n modelRef: LOCAL_AUTH_MODELS.user,\n foreignRelationName: 'sessions',\n onDelete: 'Cascade',\n onUpdate: 'Restrict',\n },\n ],\n },\n },\n authVerification: {\n name: LOCAL_AUTH_MODELS.authVerification,\n featureRef: authFeatureRef,\n model: {\n fields: [\n {\n name: 'id',\n type: 'uuid',\n options: { genUuid: true },\n },\n {\n name: 'type',\n type: 'string',\n },\n {\n name: 'identifier',\n type: 'string',\n },\n {\n name: 'value',\n type: 'string',\n },\n {\n name: 'userId',\n type: 'uuid',\n isOptional: true,\n },\n {\n name: 'metadata',\n type: 'json',\n isOptional: true,\n },\n {\n name: 'expiresAt',\n type: 'dateTime',\n },\n {\n name: 'createdAt',\n type: 'dateTime',\n options: { defaultToNow: true },\n },\n ],\n primaryKeyFieldRefs: ['id'],\n uniqueConstraints: [\n {\n fields: [{ fieldRef: 'type' }, { fieldRef: 'identifier' }],\n },\n ],\n relations: [\n {\n name: 'user',\n references: [{ localRef: 'userId', foreignRef: 'id' }],\n modelRef: LOCAL_AUTH_MODELS.user,\n foreignRelationName: 'authVerifications',\n onDelete: 'Cascade',\n onUpdate: 'Restrict',\n },\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 MultiComboboxFieldController,\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 { AuthConfigTabs } from '#src/common/components/auth-config-tabs.js';\nimport { LOCAL_AUTH_MODELS } from '#src/local-auth/constants/model-names.js';\n\nimport type { LocalAuthPluginDefinitionInput } from '../schema/plugin-definition.js';\n\nimport { createAuthModels } from '../schema/models.js';\nimport { createLocalAuthPluginDefinitionSchema } from '../schema/plugin-definition.js';\n\nimport '#src/styles.css';\n\nexport function LocalAuthDefinitionEditor({\n definition: pluginMetadata,\n metadata,\n onSave,\n}: WebConfigProps): React.JSX.Element {\n const { definition, definitionContainer, saveDefinitionWithFeedback } =\n useProjectDefinition();\n\n const authPluginDefinitionSchema = useDefinitionSchema(\n createLocalAuthPluginDefinitionSchema,\n );\n const authDefinition = getAuthPluginDefinition(definition);\n const roles = authDefinition.roles\n .filter((role) => !role.builtIn)\n .map((role) => ({\n label: role.name,\n value: role.id,\n }));\n\n const defaultValues = useMemo(() => {\n if (pluginMetadata?.config) {\n return pluginMetadata.config as LocalAuthPluginDefinitionInput;\n }\n\n return {\n initialUserRoles: [],\n userAdminRoles: [],\n } satisfies LocalAuthPluginDefinitionInput;\n }, [pluginMetadata?.config]);\n\n const form = useResettableForm({\n resolver: zodResolver(authPluginDefinitionSchema),\n defaultValues,\n });\n const { control, reset, handleSubmit } = form;\n\n const pendingModelChanges = useMemo(() => {\n const desiredModels = createAuthModels(authDefinition);\n\n return createModelMergerResults(\n LOCAL_AUTH_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 LOCAL_AUTH_MODELS,\n createAuthModels(authDefinition),\n definitionContainer,\n );\n PluginUtils.setPluginConfig(\n draftConfig,\n metadata,\n updatedData,\n definitionContainer,\n );\n },\n {\n successMessage: 'Successfully saved auth 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 Local Auth User Models\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 <SectionListSection>\n <SectionListSectionHeader>\n <SectionListSectionTitle>\n Initial User Setup\n </SectionListSectionTitle>\n <SectionListSectionDescription>\n In order to access the admin panel, an initial user must be\n created. To make it easier, the plugin will automatically\n add a seed script to create the initial user provided a\n .seed.env exists with the INTIIAL_USER_EMAIL and\n INTIIAL_USER_PASSWORD variables.\n </SectionListSectionDescription>\n </SectionListSectionHeader>\n <SectionListSectionContent className=\"auth:space-y-6\">\n <MultiComboboxFieldController\n label=\"Initial User Roles\"\n name=\"initialUserRoles\"\n control={control}\n options={roles}\n description=\"The roles that will be assigned to the initial user.\"\n />\n </SectionListSectionContent>\n </SectionListSection>\n <SectionListSection>\n <SectionListSectionHeader>\n <SectionListSectionTitle>\n User Management Permissions\n </SectionListSectionTitle>\n <SectionListSectionDescription>\n Configure which roles can manage users and assign roles to\n other users in the admin interface.\n </SectionListSectionDescription>\n </SectionListSectionHeader>\n <SectionListSectionContent className=\"auth:space-y-6\">\n <MultiComboboxFieldController\n label=\"User Admin Roles\"\n name=\"userAdminRoles\"\n control={control}\n options={roles}\n description=\"Roles that can manage users and assign roles to other users.\"\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 { LocalAuthDefinitionEditor } from './components/local-auth-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, LocalAuthDefinitionEditor);\n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KAAM;AAC5C,IAAA,SAAA,CAAU,UAAA,CAAW,GAAA,CAAI,SAAA,EAAW,yBAAyB,CAAA;AAAA,EAC/D;AACF,CAAC,CAAA;;;;"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"__federation_expose_placeholder-authCoreWeb-VZzvid5j.js","sources":["../../../src/placeholder-auth/core/schema/models.ts","../../../src/placeholder-auth/core/components/placeholder-auth-definition-editor.tsx","../../../src/placeholder-auth/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 { PLACEHOLDER_AUTH_MODELS } from '#src/placeholder-auth/constants/model-names.js';\n\nexport function createAuthModels({\n authFeatureRef,\n}: AuthPluginDefinition): Record<\n keyof typeof PLACEHOLDER_AUTH_MODELS,\n ModelMergerModelInput\n> {\n return {\n user: {\n name: PLACEHOLDER_AUTH_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 isOptional: true,\n },\n ],\n primaryKeyFieldRefs: ['id'],\n uniqueConstraints: [\n {\n fields: [{ fieldRef: 'email' }],\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/index.js';\nimport { AuthConfigTabs } from '#src/common/components/auth-config-tabs.js';\nimport { PLACEHOLDER_AUTH_MODELS } from '#src/placeholder-auth/constants/model-names.js';\n\nimport type { PlaceholderAuthPluginDefinitionInput } from '../schema/plugin-definition.js';\n\nimport { createAuthModels } from '../schema/models.js';\nimport { createPlaceholderAuthPluginDefinitionSchema } from '../schema/plugin-definition.js';\n\nimport '#src/styles.css';\n\nexport function PlaceholderAuthDefinitionEditor({\n definition: pluginMetadata,\n metadata,\n onSave,\n}: WebConfigProps): React.JSX.Element {\n const { definition, definitionContainer, saveDefinitionWithFeedback } =\n useProjectDefinition();\n\n const authDefinition = getAuthPluginDefinition(definition);\n\n const authPluginDefinitionSchema = useDefinitionSchema(\n createPlaceholderAuthPluginDefinitionSchema,\n );\n\n const defaultValues = useMemo(() => {\n if (pluginMetadata?.config) {\n return pluginMetadata.config as PlaceholderAuthPluginDefinitionInput;\n }\n\n return {} satisfies PlaceholderAuthPluginDefinitionInput;\n }, [pluginMetadata?.config]);\n\n const form = useResettableForm({\n resolver: zodResolver(authPluginDefinitionSchema),\n defaultValues,\n });\n const { control, reset, handleSubmit } = form;\n\n const pendingModelChanges = useMemo(() => {\n const desiredModels = createAuthModels(authDefinition);\n\n return createModelMergerResults(\n PLACEHOLDER_AUTH_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 PLACEHOLDER_AUTH_MODELS,\n createAuthModels(authDefinition),\n definitionContainer,\n );\n PluginUtils.setPluginConfig(\n draftConfig,\n metadata,\n updatedData,\n definitionContainer,\n );\n },\n {\n successMessage: 'Successfully saved placeholder auth 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 Placeholder Auth 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 { PlaceholderAuthDefinitionEditor } from './components/placeholder-auth-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, PlaceholderAuthDefinitionEditor);\n },\n});\n"],"names":["zodResolver","jsxs","jsx"],"mappings":";;;;;;AAMO,SAAS,gBAAA,CAAiB;AAAA,EAC/B;AACF,CAAA,EAGE;AACA,EAAA,OAAO;AAAA,IACL,IAAA,EAAM;AAAA,MACJ,MAAM,uBAAA,CAAwB,IAAA;AAAA,MAC9B,UAAA,EAAY,cAAA;AAAA,MACZ,KAAA,EAAO;AAAA,QACL,MAAA,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AAA,aAAA,CAAA,GAAA,MAAA,YAAA,CAAA,oCAAA,CAAA;AASA,YAAe,kBAAA,CAAmB;AAAA,EAChC,IAAA,EAAM,KAAA;AAAA,EACN,YAAA,EAAc;AAAA,IACZ,SAAA,EAAW;AAAA,GACb;AAAA,EACA,YAAY,CAAC,EAAE,WAAU,EAAG,EAAE,WAAU,KAAM;AAC5C,IAAA,SAAA,CAAU,UAAA,CAAW,GAAA,CAAI,SAAA,EAAW,+BAA+B,CAAA;AAAA,EACrE;AACF,CAAC,CAAA;;;;"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"web-BqJ1vSYx.js","sources":["../../../../../../../node_modules/.pnpm/es-toolkit@1.31.0/node_modules/es-toolkit/dist/string/capitalize.mjs","../../../../../../../packages/project-builder-lib/dist/web/hooks/use-project-definition.js","../../../../../../../packages/project-builder-lib/dist/web/components/feature-combobox-field.js","../../../../../../../packages/project-builder-lib/dist/web/components/model-combobox-field.js","../../../../../../../packages/project-builder-lib/dist/web/components/model-merger-result-alert.js","../../../../../../../packages/project-builder-lib/dist/web/contexts/error-handler.js","../../../../../../../packages/project-builder-lib/dist/web/hooks/use-blocker-dialog.js","../../../../../../../packages/project-builder-lib/dist/web/hooks/use-block-dirty-form-navigate.js","../../../../../../../packages/project-builder-lib/dist/web/hooks/use-block-unsaved-changes-navigate.js","../../../../../../../packages/project-builder-lib/dist/web/hooks/use-definition-schema.js","../../../../../../../packages/project-builder-lib/dist/web/hooks/use-error-handler.js","../../../../../../../packages/project-builder-lib/dist/web/hooks/use-resettable-form.js","../../../../../../../packages/project-builder-lib/dist/web/specs/admin-crud-action-web-spec.js","../../../../../../../packages/project-builder-lib/dist/web/specs/admin-crud-column-web-spec.js","../../../../../../../packages/project-builder-lib/dist/web/specs/admin-crud-input-web-spec.js","../../../../../../../packages/project-builder-lib/dist/web/specs/model-transformer-web-spec.js","../../../../../../../packages/project-builder-lib/dist/web/utils/form.js"],"sourcesContent":["function capitalize(str) {\n return (str.charAt(0).toUpperCase() + str.slice(1).toLowerCase());\n}\n\nexport { capitalize };\n","import React from 'react';\nexport const ProjectDefinitionContext = React.createContext(null);\nexport function useProjectDefinition() {\n const result = React.useContext(ProjectDefinitionContext);\n if (!result) {\n throw new Error(`useProjectDefinition must be used within a <ProjectDefinitionProvider>`);\n }\n return result;\n}\n//# sourceMappingURL=use-project-definition.js.map","import { jsx as _jsx } from \"react/jsx-runtime\";\nimport { ComboboxField, useControllerMerged, } from '@baseplate-dev/ui-components';\nimport { useMemo, useState } from 'react';\nimport { FeatureUtils } from '#src/definition/index.js';\nimport { useProjectDefinition } from '../hooks/use-project-definition.js';\nfunction createCreateOption(value) {\n return {\n label: `Create \"${value}\"`,\n value,\n };\n}\nfunction FeatureComboboxField({ canCreate, value, ...rest }) {\n const { definition } = useProjectDefinition();\n const [searchQuery, setSearchQuery] = useState('');\n const featureOptions = useMemo(() => {\n const baseFeatures = definition.features.map((feature) => ({\n label: feature.name,\n value: feature.id,\n }));\n if (!canCreate)\n return baseFeatures;\n const newFeatureName = searchQuery ? searchQuery : value;\n const doesNewFeatureExist = baseFeatures.some((option) => option.label === newFeatureName || option.value === newFeatureName);\n return !doesNewFeatureExist &&\n newFeatureName &&\n FeatureUtils.validateFeatureName(newFeatureName)\n ? [...baseFeatures, createCreateOption(newFeatureName)]\n : baseFeatures;\n }, [definition.features, searchQuery, value, canCreate]);\n return (_jsx(ComboboxField, { placeholder: \"Select a feature\", ...rest, searchQuery: canCreate ? searchQuery : undefined, onSearchQueryChange: setSearchQuery, options: featureOptions, value: value }));\n}\nfunction FeatureComboboxFieldController({ name, control, ...rest }) {\n const { field, fieldState: { error }, } = useControllerMerged({ name, control }, rest);\n const restProps = rest;\n return (_jsx(FeatureComboboxField, { error: error?.message, ...restProps, ...field, value: field.value ?? null }));\n}\nexport { FeatureComboboxField, FeatureComboboxFieldController };\n//# sourceMappingURL=feature-combobox-field.js.map","import { jsx as _jsx } from \"react/jsx-runtime\";\nimport { ComboboxField, useControllerMerged, } from '@baseplate-dev/ui-components';\nimport { useMemo, useState } from 'react';\nimport { ModelUtils } from '#src/definition/index.js';\nimport { useProjectDefinition } from '../hooks/use-project-definition.js';\nfunction createCreateOption(value) {\n return {\n label: `Create \"${value}\"`,\n value,\n };\n}\nfunction ModelComboboxField({ canCreate, value, ...rest }) {\n const { definition } = useProjectDefinition();\n const [searchQuery, setSearchQuery] = useState('');\n const modelOptions = useMemo(() => {\n const baseModels = definition.models.map((model) => ({\n label: model.name,\n value: model.id,\n }));\n if (!canCreate)\n return baseModels;\n const newModelName = searchQuery ? searchQuery : value;\n const doesNewModelExist = baseModels.some((option) => option.label === newModelName || option.value === newModelName);\n return !doesNewModelExist &&\n newModelName &&\n ModelUtils.validateModelName(newModelName)\n ? [...baseModels, createCreateOption(newModelName)]\n : baseModels;\n }, [definition.models, searchQuery, value, canCreate]);\n return (_jsx(ComboboxField, { placeholder: \"Select a model\", ...rest, searchQuery: canCreate ? searchQuery : undefined, onSearchQueryChange: setSearchQuery, options: modelOptions, value: value }));\n}\nfunction ModelComboboxFieldController({ name, control, ...rest }) {\n const { field, fieldState: { error }, } = useControllerMerged({ name, control }, rest);\n const restProps = rest;\n return (_jsx(ModelComboboxField, { error: error?.message, ...restProps, ...field, value: field.value ?? null }));\n}\nexport { ModelComboboxField, ModelComboboxFieldController };\n//# sourceMappingURL=model-combobox-field.js.map","import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from \"react/jsx-runtime\";\nimport { Alert, AlertDescription, AlertTitle, } from '@baseplate-dev/ui-components';\nimport { capitalize } from 'es-toolkit';\nimport { modelMergerDefinitionDiffConfig } from '#src/tools/index.js';\nexport function ModelMergerResultAlert({ pendingModelChanges, }) {\n const changes = Object.values(pendingModelChanges).filter((change) => change !== undefined);\n if (changes.length === 0) {\n return (_jsxs(Alert, { variant: \"default\", children: [_jsx(AlertTitle, { children: \"Models Up to Date\" }), _jsx(AlertDescription, { children: \"All required models are already configured correctly. No changes needed.\" })] }));\n }\n return (_jsx(\"div\", { className: \"space-y-4\", children: changes.map((change) => (_jsxs(Alert, { variant: change.isNewModel ? 'default' : 'warning', children: [_jsxs(AlertTitle, { children: [change.isNewModel ? 'New Model' : 'Model Changes', \": \", change.name] }), _jsx(AlertDescription, { children: _jsxs(\"div\", { className: \"mt-2 space-y-2\", children: [change.isNewModel ? (_jsx(\"p\", { children: \"This is a new model that will be created with the following configuration:\" })) : (_jsx(\"p\", { children: \"The following changes will be applied to the model:\" })), _jsx(\"ul\", { className: \"list-disc space-y-1 pl-4\", children: Object.entries(change.changes).map(([key, value]) => {\n const field = modelMergerDefinitionDiffConfig[key];\n if (!field) {\n return null;\n }\n if (value?.length) {\n return (_jsxs(\"li\", { children: [value.length === 1 ? (capitalize(field.name)) : (_jsxs(_Fragment, { children: [_jsx(\"span\", { className: \"font-medium\", children: value.length }), ' ', field.name, \"(s)\"] })), ' ', \"will be \", field.getActionVerb(change.isNewModel)] }, key));\n }\n }) })] }) })] }, change.name))) }));\n}\n//# sourceMappingURL=model-merger-result-alert.js.map","import { createContext } from 'react';\nexport const ErrorHandlerContext = createContext(null);\n//# sourceMappingURL=error-handler.js.map","import { useEffect, useId } from 'react';\nimport { create } from 'zustand';\nexport const useBlockerDialogState = create((set) => ({\n activeBlockers: [],\n addBlocker: (options) => {\n set((state) => ({\n activeBlockers: [...state.activeBlockers, options],\n }));\n },\n removeBlocker: (id) => {\n set((state) => ({\n activeBlockers: state.activeBlockers.filter((blocker) => blocker.id !== id),\n }));\n },\n requestedBlockers: [],\n requestBlocker(options) {\n set((state) => ({\n requestedBlockers: [...state.requestedBlockers, options],\n }));\n },\n clearRequestedBlockers: () => {\n set(() => ({\n requestedBlockers: [],\n }));\n },\n}));\nexport function useBlockBeforeContinue() {\n const hasActiveBlockers = useBlockerDialogState((state) => state.activeBlockers.length > 0);\n const clearRequestedBlockers = useBlockerDialogState((state) => state.clearRequestedBlockers);\n // make sure we clear any blocker requests if we navigate away\n useEffect(() => () => {\n clearRequestedBlockers();\n }, [clearRequestedBlockers]);\n const requestBlocker = useBlockerDialogState((state) => state.requestBlocker);\n // if no blockers, continue immediately\n if (!hasActiveBlockers) {\n return ({ onContinue }) => {\n onContinue();\n };\n }\n return requestBlocker;\n}\nexport function useBlockerDialog(options) {\n const id = useId();\n const addBlocker = useBlockerDialogState((state) => state.addBlocker);\n const removeBlocker = useBlockerDialogState((state) => state.removeBlocker);\n useEffect(() => {\n if (options.disableBlock) {\n return;\n }\n addBlocker({\n disableBlock: options.disableBlock,\n title: options.title,\n content: options.content,\n buttonContinueWithoutSaveText: options.buttonContinueWithoutSaveText,\n onContinueWithoutSave: options.onContinueWithoutSave,\n buttonContinueText: options.buttonContinueText,\n onContinue: options.onContinue,\n id,\n });\n return () => {\n removeBlocker(id);\n };\n }, [\n addBlocker,\n removeBlocker,\n options.disableBlock,\n options.buttonContinueWithoutSaveText,\n options.onContinueWithoutSave,\n options.buttonContinueText,\n options.content,\n options.title,\n options.onContinue,\n id,\n ]);\n}\n//# sourceMappingURL=use-blocker-dialog.js.map","import { useBlockerDialog } from './use-blocker-dialog.js';\nexport function useBlockDirtyFormNavigate(formState, reset) {\n useBlockerDialog({\n disableBlock: !formState.isDirty,\n title: 'Unsaved Changes',\n content: 'You have unsaved changes. Are you sure you want to continue?',\n buttonContinueText: 'Discard Changes',\n onContinue: () => {\n reset();\n return true;\n },\n });\n}\n//# sourceMappingURL=use-block-dirty-form-navigate.js.map","import { toast } from '@baseplate-dev/ui-components';\nimport { flattenObject } from 'es-toolkit';\nimport { useEffect, useRef } from 'react';\nimport { useFormState } from 'react-hook-form';\nimport { useBlockerDialog } from './use-blocker-dialog.js';\nexport function useBlockUnsavedChangesNavigate({ control, reset, onSubmit, }) {\n const isDirtyRef = useRef(false);\n const formState = useFormState({ control });\n isDirtyRef.current = formState.isDirty;\n if (import.meta.env.DEV) {\n // eslint-disable-next-line react-hooks/rules-of-hooks -- only want to run this check in dev mode for performance/usability reasons\n useEffect(() => {\n if (Object.keys(formState.dirtyFields).length === 0 &&\n formState.isDirty) {\n // a bit of a hack to figure out what the issue is but OK since we only do this in dev mode\n const { _formValues, _defaultValues } = control;\n const formValueKeys = Object.keys(flattenObject(_formValues));\n const defaultValueKeys = Object.keys(flattenObject(_defaultValues));\n const missingKeys = formValueKeys.filter((key) => !defaultValueKeys.includes(key));\n toast.error(`Form is dirty but no fields are marked as dirty. This implies that there is likely a field ` +\n `is controlled but not set in defaultValues. This can be fixed by setting the default value to the field. ` +\n `Note: You will only see this error if you are running the app in dev mode. ` +\n `Missing fields: ${missingKeys.join(', ')}`);\n }\n }, [formState.dirtyFields, formState.isDirty, control]);\n }\n useBlockerDialog({\n disableBlock: !formState.isDirty,\n title: 'Unsaved Changes',\n content: 'You have unsaved changes. Do you want to save your changes?',\n buttonContinueWithoutSaveText: 'Discard Changes',\n onContinueWithoutSave: () => {\n reset();\n return true;\n },\n buttonContinueText: 'Save',\n onContinue: async () => {\n await onSubmit();\n // a bit of a hack to make sure we get the latest form state before continuing\n // there's not an easy way of figuring out if the submission was successful or not\n // so we wait for a React re-render and then check if the form is still dirty\n await new Promise((resolve) => setTimeout(resolve, 1));\n return !isDirtyRef.current;\n },\n });\n}\n//# sourceMappingURL=use-block-unsaved-changes-navigate.js.map","import { useMemo } from 'react';\nimport { withPlaceholderSlots } from '#src/schema/index.js';\nimport { useProjectDefinition } from './use-project-definition.js';\nexport function useDefinitionSchema(schemaCreator) {\n const { definitionSchemaParserContext } = useProjectDefinition();\n return useMemo(() => {\n if ('slotDefinition' in schemaCreator) {\n return withPlaceholderSlots(schemaCreator)(definitionSchemaParserContext);\n }\n return schemaCreator(definitionSchemaParserContext);\n }, [definitionSchemaParserContext, schemaCreator]);\n}\n//# sourceMappingURL=use-definition-schema.js.map","import { useContext } from 'react';\nimport { ErrorHandlerContext } from '../contexts/error-handler.js';\nexport function useErrorHandler() {\n const context = useContext(ErrorHandlerContext);\n if (!context) {\n throw new Error('useErrorHandler must be used within an ErrorHandlerContext');\n }\n return context;\n}\n//# sourceMappingURL=use-error-handler.js.map","import { toast } from '@baseplate-dev/ui-components';\nimport { isEqual } from 'es-toolkit';\nimport { useEffect, useRef } from 'react';\nimport { useForm } from 'react-hook-form';\nimport { useProjectDefinition } from './use-project-definition.js';\nexport function useResettableForm(props) {\n const formProps = useForm(props);\n const { reset, formState } = formProps;\n const { isDirty } = formState;\n const { updatedExternally } = useProjectDefinition();\n const oldValues = useRef(undefined);\n useEffect(() => {\n if (oldValues.current &&\n !isEqual(oldValues.current.oldDefaultValues, props?.defaultValues)) {\n reset(props?.defaultValues);\n if (isDirty && updatedExternally) {\n toast.warning('Contents were updated externally so form was reset!');\n }\n }\n if (!oldValues.current ||\n !isEqual(oldValues.current.oldDefaultValues, props?.defaultValues)) {\n oldValues.current = {\n oldDefaultValues: props?.defaultValues,\n };\n }\n }, [props?.defaultValues, reset, updatedExternally, isDirty]);\n return formProps;\n}\n//# sourceMappingURL=use-resettable-form.js.map","import { createFieldMapSpec } from '#src/plugins/utils/create-field-map-spec.js';\nexport function createAdminCrudActionWebConfig(config) {\n return config;\n}\n/**\n * Spec for registering admin CRUD action web configs\n */\nexport const adminCrudActionWebSpec = createFieldMapSpec('core/admin-crud-action-web', (t) => ({\n // eslint-disable-next-line @typescript-eslint/no-explicit-any -- plugins register varying action types at runtime\n actions: t.namedArrayToMap(),\n}));\n//# sourceMappingURL=admin-crud-action-web-spec.js.map","import { createFieldMapSpec } from '#src/plugins/utils/create-field-map-spec.js';\nexport function createAdminCrudColumnWebConfig(config) {\n return config;\n}\n/**\n * Spec for registering admin CRUD column web configs\n */\nexport const adminCrudColumnWebSpec = createFieldMapSpec('core/admin-crud-column-web', (t) => ({\n // eslint-disable-next-line @typescript-eslint/no-explicit-any -- plugins register varying column types at runtime\n columns: t.namedArrayToMap(),\n}));\n//# sourceMappingURL=admin-crud-column-web-spec.js.map","import { createFieldMapSpec } from '#src/plugins/utils/create-field-map-spec.js';\nexport function createAdminCrudInputWebConfig(config) {\n return config;\n}\n/**\n * Spec for registering admin CRUD input web configs\n */\nexport const adminCrudInputWebSpec = createFieldMapSpec('core/admin-crud-input-web', (t) => ({\n // eslint-disable-next-line @typescript-eslint/no-explicit-any -- plugins register varying input types at runtime\n inputs: t.namedArrayToMap(),\n}));\n//# sourceMappingURL=admin-crud-input-web-spec.js.map","import { createFieldMapSpec } from '#src/plugins/utils/create-field-map-spec.js';\nexport function createModelTransformerWebConfig(config) {\n return config;\n}\n/**\n * Spec for adding web config for transformers\n */\nexport const modelTransformerWebSpec = createFieldMapSpec('core/model-transformer-web', (t) => ({\n // eslint-disable-next-line @typescript-eslint/no-explicit-any -- plugins register varying transformer types at runtime\n transformers: t.namedArrayToMap(),\n}), {\n use: (values) => ({\n getWebConfigOrThrow(name) {\n const transformer = values.transformers.get(name);\n if (!transformer) {\n throw new Error(`Transformer ${name} not found`);\n }\n return transformer;\n },\n getWebConfigs: () => [...values.transformers.values()],\n }),\n});\n//# sourceMappingURL=model-transformer-web-spec.js.map","export function setUndefinedIfEmpty(value) {\n if (value === '')\n return undefined;\n return value;\n}\n//# sourceMappingURL=form.js.map"],"names":["ComboboxField","useControllerMerged","useMemo","useState","createCreateOption","_jsx","_jsxs","_Fragment","useEffect","toast","useRef"],"mappings":";;;;;;;AAAA,SAAS,UAAU,CAAC,GAAG,EAAE;AACzB,IAAI,QAAQ,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,GAAG,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE;AACpE;;ACFA,MAAA,KAAA,GAAA,MAAA,YAAA,CAAA,OAAA,CAAA;;AACY,MAAC,wBAAwB,GAAG,KAAK,CAAC,aAAa,CAAC,IAAI;AACzD,SAAS,oBAAoB,GAAG;AACvC,IAAI,MAAM,MAAM,GAAG,KAAK,CAAC,UAAU,CAAC,wBAAwB,CAAC;AAC7D,IAAI,IAAI,CAAC,MAAM,EAAE;AACjB,QAAQ,MAAM,IAAI,KAAK,CAAC,CAAC,s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