@baseplate-dev/plugin-auth 0.6.2 → 0.6.4

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 (200) hide show
  1. package/CHANGELOG.md +36 -0
  2. package/LICENSE +114 -123
  3. package/dist/auth/core/common.d.ts.map +1 -1
  4. package/dist/auth/core/common.js +1 -0
  5. package/dist/auth/core/common.js.map +1 -1
  6. package/dist/auth/core/components/role-editor-form/role-dialog.d.ts +1 -3
  7. package/dist/auth/core/components/role-editor-form/role-dialog.d.ts.map +1 -1
  8. package/dist/auth/core/components/role-editor-form/role-dialog.js +10 -10
  9. package/dist/auth/core/components/role-editor-form/role-dialog.js.map +1 -1
  10. package/dist/better-auth/generators/react/better-auth-hooks/templates/src/hooks/use-log-out.ts +2 -4
  11. package/dist/better-auth/generators/react/better-auth-hooks/templates/src/hooks/use-session.ts +1 -2
  12. package/dist/better-auth/generators/react/better-auth-pages/better-auth-pages.generator.d.ts +37 -25
  13. package/dist/better-auth/generators/react/better-auth-pages/better-auth-pages.generator.d.ts.map +1 -1
  14. package/dist/better-auth/generators/react/better-auth-pages/generated/index.d.ts +111 -75
  15. package/dist/better-auth/generators/react/better-auth-pages/generated/index.d.ts.map +1 -1
  16. package/dist/better-auth/generators/react/better-auth-pages/generated/template-renderers.d.ts +37 -25
  17. package/dist/better-auth/generators/react/better-auth-pages/generated/template-renderers.d.ts.map +1 -1
  18. package/dist/better-auth/generators/react/better-auth-pages/generated/typed-templates.d.ts +148 -100
  19. package/dist/better-auth/generators/react/better-auth-pages/generated/typed-templates.d.ts.map +1 -1
  20. package/dist/better-auth/generators/react/better-auth-pages/generated/typed-templates.js +2 -2
  21. package/dist/better-auth/generators/react/better-auth-pages/generated/typed-templates.js.map +1 -1
  22. package/dist/better-auth/generators/react/better-auth-pages/templates/routes/{auth/login.tsx → login.tsx} +11 -13
  23. package/dist/better-auth/generators/react/better-auth-pages/templates/routes/{auth/register.tsx → register.tsx} +11 -13
  24. package/dist/better-auth/generators/react/react-better-auth/generated/index.d.ts +74 -50
  25. package/dist/better-auth/generators/react/react-better-auth/generated/index.d.ts.map +1 -1
  26. package/dist/better-auth/generators/react/react-better-auth/generated/template-renderers.d.ts +37 -25
  27. package/dist/better-auth/generators/react/react-better-auth/generated/template-renderers.d.ts.map +1 -1
  28. package/dist/better-auth/generators/react/react-better-auth/generated/typed-templates.d.ts +37 -25
  29. package/dist/better-auth/generators/react/react-better-auth/generated/typed-templates.d.ts.map +1 -1
  30. package/dist/better-auth/generators/react/react-better-auth/react-better-auth.generator.d.ts +37 -25
  31. package/dist/better-auth/generators/react/react-better-auth/react-better-auth.generator.d.ts.map +1 -1
  32. package/dist/better-auth/generators/react/react-better-auth/templates/src/app/auth-loaded-gate.tsx +3 -6
  33. package/dist/better-auth/generators/react/react-better-auth/templates/src/services/auth-client.ts +0 -2
  34. package/dist/common/components/auth-config-tabs.d.ts.map +1 -1
  35. package/dist/common/components/auth-config-tabs.js +1 -1
  36. package/dist/common/components/auth-config-tabs.js.map +1 -1
  37. package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/admin-crud-manage-roles-action.generator.d.ts +78 -64
  38. package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/admin-crud-manage-roles-action.generator.d.ts.map +1 -1
  39. package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/admin-crud-manage-roles-action.generator.js +5 -3
  40. package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/admin-crud-manage-roles-action.generator.js.map +1 -1
  41. package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/generated/index.d.ts +78 -64
  42. package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/generated/index.d.ts.map +1 -1
  43. package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/generated/template-renderers.d.ts +39 -32
  44. package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/generated/template-renderers.d.ts.map +1 -1
  45. package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/generated/typed-templates.d.ts +39 -32
  46. package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/generated/typed-templates.d.ts.map +1 -1
  47. package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/templates/routes/-components/role-manager-dialog.d.ts +2 -2
  48. package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/templates/routes/-components/role-manager-dialog.d.ts.map +1 -1
  49. package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/templates/routes/-components/role-manager-dialog.js +6 -6
  50. package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/templates/routes/-components/role-manager-dialog.js.map +1 -1
  51. package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/templates/routes/-components/role-manager-dialog.tsx +9 -12
  52. package/dist/local-auth/admin/generators/admin-crud-reset-password-action/admin-crud-reset-password-action.generator.d.ts +78 -64
  53. package/dist/local-auth/admin/generators/admin-crud-reset-password-action/admin-crud-reset-password-action.generator.d.ts.map +1 -1
  54. package/dist/local-auth/admin/generators/admin-crud-reset-password-action/admin-crud-reset-password-action.generator.js +5 -3
  55. package/dist/local-auth/admin/generators/admin-crud-reset-password-action/admin-crud-reset-password-action.generator.js.map +1 -1
  56. package/dist/local-auth/admin/generators/admin-crud-reset-password-action/generated/index.d.ts +78 -64
  57. package/dist/local-auth/admin/generators/admin-crud-reset-password-action/generated/index.d.ts.map +1 -1
  58. package/dist/local-auth/admin/generators/admin-crud-reset-password-action/generated/template-renderers.d.ts +39 -32
  59. package/dist/local-auth/admin/generators/admin-crud-reset-password-action/generated/template-renderers.d.ts.map +1 -1
  60. package/dist/local-auth/admin/generators/admin-crud-reset-password-action/generated/typed-templates.d.ts +78 -64
  61. package/dist/local-auth/admin/generators/admin-crud-reset-password-action/generated/typed-templates.d.ts.map +1 -1
  62. package/dist/local-auth/admin/generators/admin-crud-reset-password-action/templates/routes/-components/password-reset-dialog.d.ts +2 -2
  63. package/dist/local-auth/admin/generators/admin-crud-reset-password-action/templates/routes/-components/password-reset-dialog.d.ts.map +1 -1
  64. package/dist/local-auth/admin/generators/admin-crud-reset-password-action/templates/routes/-components/password-reset-dialog.js +6 -6
  65. package/dist/local-auth/admin/generators/admin-crud-reset-password-action/templates/routes/-components/password-reset-dialog.js.map +1 -1
  66. package/dist/local-auth/admin/generators/admin-crud-reset-password-action/templates/routes/-components/password-reset-dialog.tsx +9 -12
  67. package/dist/local-auth/admin/generators/admin-crud-roles-column/admin-crud-roles-column.generator.d.ts +37 -25
  68. package/dist/local-auth/admin/generators/admin-crud-roles-column/admin-crud-roles-column.generator.d.ts.map +1 -1
  69. package/dist/local-auth/core/components/local-auth-definition-editor.d.ts.map +1 -1
  70. package/dist/local-auth/core/components/local-auth-definition-editor.js +3 -2
  71. package/dist/local-auth/core/components/local-auth-definition-editor.js.map +1 -1
  72. package/dist/local-auth/core/generators/auth-email-password/auth-email-password.generator.d.ts +1 -0
  73. package/dist/local-auth/core/generators/auth-email-password/auth-email-password.generator.d.ts.map +1 -1
  74. package/dist/local-auth/core/generators/auth-email-password/auth-email-password.generator.js +7 -1
  75. package/dist/local-auth/core/generators/auth-email-password/auth-email-password.generator.js.map +1 -1
  76. package/dist/local-auth/core/generators/auth-email-password/generated/index.d.ts +3 -1
  77. package/dist/local-auth/core/generators/auth-email-password/generated/index.d.ts.map +1 -1
  78. package/dist/local-auth/core/generators/auth-email-password/generated/typed-templates.d.ts +6 -2
  79. package/dist/local-auth/core/generators/auth-email-password/generated/typed-templates.d.ts.map +1 -1
  80. package/dist/local-auth/core/generators/auth-email-password/generated/typed-templates.js +1 -1
  81. package/dist/local-auth/core/generators/auth-email-password/generated/typed-templates.js.map +1 -1
  82. package/dist/local-auth/core/generators/auth-email-password/templates/module/schema/user-password.mutations.js +5 -1
  83. package/dist/local-auth/core/generators/auth-email-password/templates/module/schema/user-password.mutations.js.map +1 -1
  84. package/dist/local-auth/core/generators/auth-email-password/templates/module/schema/user-password.mutations.ts +5 -1
  85. package/dist/local-auth/core/generators/auth-email-password/templates/module/services/user-password.service.d.ts +2 -0
  86. package/dist/local-auth/core/generators/auth-email-password/templates/module/services/user-password.service.d.ts.map +1 -1
  87. package/dist/local-auth/core/generators/auth-email-password/templates/module/services/user-password.service.js +4 -1
  88. package/dist/local-auth/core/generators/auth-email-password/templates/module/services/user-password.service.js.map +1 -1
  89. package/dist/local-auth/core/generators/auth-email-password/templates/module/services/user-password.service.ts +6 -1
  90. package/dist/local-auth/core/generators/auth-hooks/auth-hooks.generator.d.ts +2 -7
  91. package/dist/local-auth/core/generators/auth-hooks/auth-hooks.generator.d.ts.map +1 -1
  92. package/dist/local-auth/core/generators/auth-hooks/generated/index.d.ts +6 -21
  93. package/dist/local-auth/core/generators/auth-hooks/generated/index.d.ts.map +1 -1
  94. package/dist/local-auth/core/generators/auth-hooks/generated/template-renderers.d.ts +2 -7
  95. package/dist/local-auth/core/generators/auth-hooks/generated/template-renderers.d.ts.map +1 -1
  96. package/dist/local-auth/core/generators/auth-hooks/generated/typed-templates.d.ts +8 -28
  97. package/dist/local-auth/core/generators/auth-hooks/generated/typed-templates.d.ts.map +1 -1
  98. package/dist/local-auth/core/generators/auth-hooks/templates/src/hooks/use-session.d.ts +2 -2
  99. package/dist/local-auth/core/generators/auth-hooks/templates/src/hooks/use-session.d.ts.map +1 -1
  100. package/dist/local-auth/core/generators/auth-hooks/templates/src/hooks/use-session.js.map +1 -1
  101. package/dist/local-auth/core/generators/auth-hooks/templates/src/hooks/use-session.ts +3 -3
  102. package/dist/local-auth/core/generators/auth-routes/auth-routes.generator.d.ts +43 -33
  103. package/dist/local-auth/core/generators/auth-routes/auth-routes.generator.d.ts.map +1 -1
  104. package/dist/local-auth/core/generators/auth-routes/auth-routes.generator.js +37 -4
  105. package/dist/local-auth/core/generators/auth-routes/auth-routes.generator.js.map +1 -1
  106. package/dist/local-auth/core/generators/auth-routes/generated/index.d.ts +240 -196
  107. package/dist/local-auth/core/generators/auth-routes/generated/index.d.ts.map +1 -1
  108. package/dist/local-auth/core/generators/auth-routes/generated/template-renderers.d.ts +39 -32
  109. package/dist/local-auth/core/generators/auth-routes/generated/template-renderers.d.ts.map +1 -1
  110. package/dist/local-auth/core/generators/auth-routes/generated/typed-templates.d.ts +363 -296
  111. package/dist/local-auth/core/generators/auth-routes/generated/typed-templates.d.ts.map +1 -1
  112. package/dist/local-auth/core/generators/auth-routes/generated/typed-templates.js +5 -2
  113. package/dist/local-auth/core/generators/auth-routes/generated/typed-templates.js.map +1 -1
  114. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/login.js +1 -1
  115. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/login.tsx +1 -1
  116. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/register.d.ts.map +1 -1
  117. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/register.js +3 -10
  118. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/register.js.map +1 -1
  119. package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/register.tsx +6 -10
  120. package/dist/local-auth/core/generators/react-session/generated/index.d.ts +78 -64
  121. package/dist/local-auth/core/generators/react-session/generated/index.d.ts.map +1 -1
  122. package/dist/local-auth/core/generators/react-session/generated/template-renderers.d.ts +39 -32
  123. package/dist/local-auth/core/generators/react-session/generated/template-renderers.d.ts.map +1 -1
  124. package/dist/local-auth/core/generators/react-session/generated/typed-templates.d.ts +78 -64
  125. package/dist/local-auth/core/generators/react-session/generated/typed-templates.d.ts.map +1 -1
  126. package/dist/local-auth/core/generators/react-session/react-session.generator.d.ts +39 -32
  127. package/dist/local-auth/core/generators/react-session/react-session.generator.d.ts.map +1 -1
  128. package/dist/local-auth/core/node.d.ts.map +1 -1
  129. package/dist/local-auth/core/node.js +6 -2
  130. package/dist/local-auth/core/node.js.map +1 -1
  131. package/dist/local-auth/core/schema/plugin-definition.d.ts +1 -0
  132. package/dist/local-auth/core/schema/plugin-definition.d.ts.map +1 -1
  133. package/dist/local-auth/core/schema/plugin-definition.js +1 -0
  134. package/dist/local-auth/core/schema/plugin-definition.js.map +1 -1
  135. package/dist/web/assets/{__federation_expose_authCoreCommon-CIVhaGqo.js → __federation_expose_authCoreCommon-D8SAyij-.js} +4 -3
  136. package/dist/web/assets/__federation_expose_authCoreCommon-D8SAyij-.js.map +1 -0
  137. package/dist/web/assets/{__federation_expose_authCoreWeb-N-mh42Bs.js → __federation_expose_authCoreWeb-BSv8GVI2.js} +60 -65
  138. package/dist/web/assets/__federation_expose_authCoreWeb-BSv8GVI2.js.map +1 -0
  139. package/dist/web/assets/{__federation_expose_better-authCoreCommon-BIU3Fg7K.js → __federation_expose_better-authCoreCommon-BJhkN6zV.js} +3 -3
  140. package/dist/web/assets/{__federation_expose_better-authCoreCommon-BIU3Fg7K.js.map → __federation_expose_better-authCoreCommon-BJhkN6zV.js.map} +1 -1
  141. package/dist/web/assets/{__federation_expose_better-authCoreWeb-CMhPrXPA.js → __federation_expose_better-authCoreWeb-2kA00dBg.js} +5 -5
  142. package/dist/web/assets/{__federation_expose_better-authCoreWeb-CMhPrXPA.js.map → __federation_expose_better-authCoreWeb-2kA00dBg.js.map} +1 -1
  143. package/dist/web/assets/{__federation_expose_local-authAdminCommon-DvHe9w29.js → __federation_expose_local-authAdminCommon-IuYupUXE.js} +2 -2
  144. package/dist/web/assets/{__federation_expose_local-authAdminCommon-DvHe9w29.js.map → __federation_expose_local-authAdminCommon-IuYupUXE.js.map} +1 -1
  145. package/dist/web/assets/{__federation_expose_local-authAdminWeb-CLU9aEy9.js → __federation_expose_local-authAdminWeb-BzhksqwO.js} +2 -2
  146. package/dist/web/assets/{__federation_expose_local-authAdminWeb-CLU9aEy9.js.map → __federation_expose_local-authAdminWeb-BzhksqwO.js.map} +1 -1
  147. package/dist/web/assets/{__federation_expose_local-authCoreCommon-DbuvGG7o.js → __federation_expose_local-authCoreCommon-DO5xRAoM.js} +3 -3
  148. package/dist/web/assets/{__federation_expose_local-authCoreCommon-DbuvGG7o.js.map → __federation_expose_local-authCoreCommon-DO5xRAoM.js.map} +1 -1
  149. package/dist/web/assets/{__federation_expose_local-authCoreWeb-BY-mP3uS.js → __federation_expose_local-authCoreWeb-QdXa2aao.js} +23 -7
  150. package/dist/web/assets/__federation_expose_local-authCoreWeb-QdXa2aao.js.map +1 -0
  151. package/dist/web/assets/{__federation_expose_placeholder-authCoreCommon-BJBCuZvU.js → __federation_expose_placeholder-authCoreCommon-hGIPuBy3.js} +3 -3
  152. package/dist/web/assets/{__federation_expose_placeholder-authCoreCommon-BJBCuZvU.js.map → __federation_expose_placeholder-authCoreCommon-hGIPuBy3.js.map} +1 -1
  153. package/dist/web/assets/{__federation_expose_placeholder-authCoreWeb-BaV-Ko2C.js → __federation_expose_placeholder-authCoreWeb-P4Qq8Zf6.js} +5 -5
  154. package/dist/web/assets/{__federation_expose_placeholder-authCoreWeb-BaV-Ko2C.js.map → __federation_expose_placeholder-authCoreWeb-P4Qq8Zf6.js.map} +1 -1
  155. package/dist/web/assets/{__federation_fn_import-BLFDCY-V.js → __federation_fn_import-CzLgVaFb.js} +2 -2
  156. package/dist/web/assets/{__federation_fn_import-BLFDCY-V.js.map → __federation_fn_import-CzLgVaFb.js.map} +1 -1
  157. package/dist/web/assets/__federation_shared_@baseplate-dev/project-builder-lib/{web-bRU6KpPk.js → web-DA-fkeD5.js} +12 -10
  158. package/dist/web/assets/__federation_shared_@baseplate-dev/project-builder-lib/web-DA-fkeD5.js.map +1 -0
  159. package/dist/web/assets/__federation_shared_@baseplate-dev/{project-builder-lib-CQKLkNsU.js → project-builder-lib-zJirGIS1.js} +321 -36
  160. package/dist/web/assets/__federation_shared_@baseplate-dev/project-builder-lib-zJirGIS1.js.map +1 -0
  161. package/dist/web/assets/__federation_shared_@baseplate-dev/{ui-components-DhyoEUTy.js → ui-components-Ds8y9Suz.js} +49747 -33379
  162. package/dist/web/assets/__federation_shared_@baseplate-dev/ui-components-Ds8y9Suz.js.map +1 -0
  163. package/dist/web/assets/__federation_shared_@baseplate-dev/{utils-9w-0yxVZ.js → utils-DnBM79-7.js} +3 -2
  164. package/dist/web/assets/__federation_shared_@baseplate-dev/utils-DnBM79-7.js.map +1 -0
  165. package/dist/web/assets/__federation_shared_@tanstack/{react-router-CbExBaoL.js → react-router-BoEohCHh.js} +3 -200
  166. package/dist/web/assets/__federation_shared_@tanstack/react-router-BoEohCHh.js.map +1 -0
  167. package/dist/web/assets/{get-auth-plugin-definition-BL50g0cJ.js → get-auth-plugin-definition-DM6kosCC.js} +2 -2
  168. package/dist/web/assets/{get-auth-plugin-definition-BL50g0cJ.js.map → get-auth-plugin-definition-DM6kosCC.js.map} +1 -1
  169. package/dist/web/assets/{index-B_A3cgiy.js → index-EshpyU4T.js} +5 -5
  170. package/dist/web/assets/{index-B_A3cgiy.js.map → index-EshpyU4T.js.map} +1 -1
  171. package/dist/web/assets/{index.esm-BraHxHLB.js → index.esm-CYY7gyrG.js} +2 -2
  172. package/dist/web/assets/{index.esm-BraHxHLB.js.map → index.esm-CYY7gyrG.js.map} +1 -1
  173. package/dist/web/assets/{model-utils-BfcjfzCn.js → model-utils-WWo9T1Zx.js} +30 -2
  174. package/dist/web/assets/{model-utils-BfcjfzCn.js.map → model-utils-WWo9T1Zx.js.map} +1 -1
  175. package/dist/web/assets/{plugin-definition-CXnKUJ1l.js → plugin-definition-BCrs3YSY.js} +2 -2
  176. package/dist/web/assets/{plugin-definition-CXnKUJ1l.js.map → plugin-definition-BCrs3YSY.js.map} +1 -1
  177. package/dist/web/assets/{plugin-definition-Ckl5hjD1.js → plugin-definition-BwAJGzRn.js} +4 -3
  178. package/dist/web/assets/plugin-definition-BwAJGzRn.js.map +1 -0
  179. package/dist/web/assets/{plugin-definition-D26rR8AB.js → plugin-definition-CqP9VmOQ.js} +2 -2
  180. package/dist/web/assets/{plugin-definition-D26rR8AB.js.map → plugin-definition-CqP9VmOQ.js.map} +1 -1
  181. package/dist/web/assets/{plugin-definition-DJzXScRp.js → plugin-definition-y6VVQ5_O.js} +2 -2
  182. package/dist/web/assets/{plugin-definition-DJzXScRp.js.map → plugin-definition-y6VVQ5_O.js.map} +1 -1
  183. package/dist/web/assets/{react-CL9M_wyN.js → react-B6Fz4KB7.js} +2 -2
  184. package/dist/web/assets/{react-CL9M_wyN.js.map → react-B6Fz4KB7.js.map} +1 -1
  185. package/dist/web/assets/remoteEntry.js +10 -10
  186. package/dist/web/assets/{styles-tkrWV-ZE.js → styles-0yxEwdyo.js} +24 -14
  187. package/dist/web/assets/styles-0yxEwdyo.js.map +1 -0
  188. package/dist/web/assets/with-selector-DTXBONcE.js +201 -0
  189. package/dist/web/assets/with-selector-DTXBONcE.js.map +1 -0
  190. package/package.json +19 -22
  191. package/dist/web/assets/__federation_expose_authCoreCommon-CIVhaGqo.js.map +0 -1
  192. package/dist/web/assets/__federation_expose_authCoreWeb-N-mh42Bs.js.map +0 -1
  193. package/dist/web/assets/__federation_expose_local-authCoreWeb-BY-mP3uS.js.map +0 -1
  194. package/dist/web/assets/__federation_shared_@baseplate-dev/project-builder-lib/web-bRU6KpPk.js.map +0 -1
  195. package/dist/web/assets/__federation_shared_@baseplate-dev/project-builder-lib-CQKLkNsU.js.map +0 -1
  196. package/dist/web/assets/__federation_shared_@baseplate-dev/ui-components-DhyoEUTy.js.map +0 -1
  197. package/dist/web/assets/__federation_shared_@baseplate-dev/utils-9w-0yxVZ.js.map +0 -1
  198. package/dist/web/assets/__federation_shared_@tanstack/react-router-CbExBaoL.js.map +0 -1
  199. package/dist/web/assets/plugin-definition-Ckl5hjD1.js.map +0 -1
  200. package/dist/web/assets/styles-tkrWV-ZE.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"typed-templates.d.ts","sourceRoot":"","sources":["../../../../../../src/local-auth/core/generators/auth-routes/generated/typed-templates.ts"],"names":[],"mappings":"AAsHA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;CAA6B,CAAC"}
1
+ {"version":3,"file":"typed-templates.d.ts","sourceRoot":"","sources":["../../../../../../src/local-auth/core/generators/auth-routes/generated/typed-templates.ts"],"names":[],"mappings":"AAyHA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAA6B,CAAC"}
@@ -59,11 +59,14 @@ const register = createTsTemplateFile({
59
59
  reactSessionImports: reactSessionImportsProvider,
60
60
  },
61
61
  name: 'register',
62
- referencedGeneratorTemplates: { constants: {} },
63
62
  source: {
64
63
  path: path.join(import.meta.dirname, '../templates/routes/auth_/register.tsx'),
65
64
  },
66
- variables: {},
65
+ variables: {
66
+ TPL_NAME_FORM_CONTROL: {},
67
+ TPL_REGISTER_INPUT: {},
68
+ TPL_REGISTER_SCHEMA: {},
69
+ },
67
70
  });
68
71
  const resetPassword = createTsTemplateFile({
69
72
  fileOptions: { kind: 'singleton' },
@@ -1 +1 @@
1
- {"version":3,"file":"typed-templates.js","sourceRoot":"","sources":["../../../../../../src/local-auth/core/generators/auth-routes/generated/typed-templates.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,gCAAgC,CAAC;AACtE,OAAO,EACL,0BAA0B,EAC1B,sBAAsB,EACtB,8BAA8B,EAC9B,yBAAyB,GAC1B,MAAM,iCAAiC,CAAC;AACzC,OAAO,IAAI,MAAM,WAAW,CAAC;AAE7B,OAAO,EAAE,2BAA2B,EAAE,MAAM,gFAAgF,CAAC;AAE7H,MAAM,SAAS,GAAG,oBAAoB,CAAC;IACrC,WAAW,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE;IAClC,KAAK,EAAE,MAAM;IACb,kBAA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E,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,EAAE,qCAAqC,CAAC;KAC5E;IACD,SAAS,EAAE,EAAE;CACd,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,SAAS,GAAG;IACvB,SAAS;IACT,cAAc;IACd,KAAK;IACL,QAAQ;IACR,aAAa;IACb,KAAK;CACN,CAAC;AAEF,MAAM,WAAW,GAAG,oBAAoB,CAAC;IACvC,WAAW,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE;IAClC,kBAAkB,EAAE;QAClB,kBAAkB,EAAE,0BAA0B;QAC9C,cAAc,EAAE,sBAAsB;QACtC,sBAAsB,EAAE,8BAA8B;QACtD,iBAAiB,EAAE,yBAAyB;KAC7C;IACD,IAAI,EAAE,cAAc;IACpB,MAAM,EAAE;QACN,IAAI,EAAE,IAAI,CAAC,IAAI,CACb,MAAM,CAAC,IAAI,CAAC,OAAO,EACnB,4CAA4C,CAC7C;KACF;IACD,SAAS,EAAE,EAAE;CACd,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,+BAA+B,GAAG,EAAE,SAAS,EAAE,WAAW,EAAE,CAAC"}
1
+ {"version":3,"file":"typed-templates.js","sourceRoot":"","sources":["../../../../../../src/local-auth/core/generators/auth-routes/generated/typed-templates.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,gCAAgC,CAAC;AACtE,OAAO,EACL,0BAA0B,EAC1B,sBAAsB,EACtB,8BAA8B,EAC9B,yBAAyB,GAC1B,MAAM,iCAAiC,CAAC;AACzC,OAAO,IAAI,MAAM,WAAW,CAAC;AAE7B,OAAO,EAAE,2BAA2B,EAAE,MAAM,gFAAgF,CAAC;AAE7H,MAAM,SAAS,GAAG,oBAAoB,CAAC;IACrC,WAAW,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE;IAClC,KAAK,EAAE,MAAM;IACb,kBAAkB,EAAE,EAAE;IACtB,IAAI,EAAE,WAAW;IACjB,cA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AAC,MAAM,CAAC,IAAI,CAAC,OAAO,EAAE,qCAAqC,CAAC;KAC5E;IACD,SAAS,EAAE,EAAE;CACd,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,SAAS,GAAG;IACvB,SAAS;IACT,cAAc;IACd,KAAK;IACL,QAAQ;IACR,aAAa;IACb,KAAK;CACN,CAAC;AAEF,MAAM,WAAW,GAAG,oBAAoB,CAAC;IACvC,WAAW,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE;IAClC,kBAAkB,EAAE;QAClB,kBAAkB,EAAE,0BAA0B;QAC9C,cAAc,EAAE,sBAAsB;QACtC,sBAAsB,EAAE,8BAA8B;QACtD,iBAAiB,EAAE,yBAAyB;KAC7C;IACD,IAAI,EAAE,cAAc;IACpB,MAAM,EAAE;QACN,IAAI,EAAE,IAAI,CAAC,IAAI,CACb,MAAM,CAAC,IAAI,CAAC,OAAO,EACnB,4CAA4C,CAC7C;KACF;IACD,SAAS,EAAE,EAAE;CACd,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,+BAA+B,GAAG,EAAE,SAAS,EAAE,WAAW,EAAE,CAAC"}
@@ -80,6 +80,6 @@ function LoginPage() {
80
80
  }
81
81
  });
82
82
  };
83
- return (_jsxs(Card, { children: [_jsxs(CardHeader, { children: [_jsx(CardTitle, { children: "Login to your account" }), _jsx(CardDescription, { children: "Enter your email below to login to your account" })] }), _jsx(CardContent, { children: _jsxs("form", { onSubmit: handleSubmit(onSubmit), children: [_jsxs("div", { className: "flex flex-col gap-6", children: [_jsx(InputFieldController, { control: control, name: "email", type: "email", autoComplete: "email", placeholder: "user@example.com" }), _jsx(InputFieldController, { control: control, name: "password", type: "password", autoComplete: "current-password", placeholder: "Password" }), _jsx(Button, { type: "submit", className: "w-full", disabled: loading, children: "Login" })] }), _jsxs("div", { className: "mt-4 flex flex-col gap-4 text-center text-sm", children: [_jsx(Link, { to: "/auth/forgot-password", className: "text-muted-foreground underline-offset-4 hover:underline", children: "Forgot your password?" }), _jsxs("div", { children: ["Don't have an account?", ' ', _jsx(Link, { to: "/auth/register", className: "underline underline-offset-4", children: "Sign up" })] })] })] }) })] }));
83
+ return (_jsxs(Card, { children: [_jsxs(CardHeader, { children: [_jsx(CardTitle, { children: "Login to your account" }), _jsx(CardDescription, { children: "Enter your email below to login to your account" })] }), _jsx(CardContent, { children: _jsxs("form", { onSubmit: handleSubmit(onSubmit), children: [_jsxs("div", { className: "flex flex-col gap-4", children: [_jsx(InputFieldController, { control: control, name: "email", type: "email", autoComplete: "email", placeholder: "user@example.com" }), _jsx(InputFieldController, { control: control, name: "password", type: "password", autoComplete: "current-password", placeholder: "Password" }), _jsx(Button, { type: "submit", className: "w-full", disabled: loading, children: "Login" })] }), _jsxs("div", { className: "mt-4 flex flex-col gap-4 text-center text-sm", children: [_jsx(Link, { to: "/auth/forgot-password", className: "text-muted-foreground underline-offset-4 hover:underline", children: "Forgot your password?" }), _jsxs("div", { children: ["Don't have an account?", ' ', _jsx(Link, { to: "/auth/register", className: "underline underline-offset-4", children: "Sign up" })] })] })] }) })] }));
84
84
  }
85
85
  //# sourceMappingURL=login.js.map
@@ -125,7 +125,7 @@ function LoginPage(): React.JSX.Element {
125
125
  </CardHeader>
126
126
  <CardContent>
127
127
  <form onSubmit={handleSubmit(onSubmit)}>
128
- <div className="flex flex-col gap-6">
128
+ <div className="flex flex-col gap-4">
129
129
  <InputFieldController
130
130
  control={control}
131
131
  name="email"
@@ -1 +1 @@
1
- {"version":3,"file":"register.d.ts","sourceRoot":"","sources":["../../../../../../../../src/local-auth/core/generators/auth-routes/templates/routes/auth_/register.tsx"],"names":[],"mappings":"AA0BA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,KAAK;;;;sQAahB,CAAC"}
1
+ {"version":3,"file":"register.d.ts","sourceRoot":"","sources":["../../../../../../../../src/local-auth/core/generators/auth-routes/templates/routes/auth_/register.tsx"],"names":[],"mappings":"AAyBA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,KAAK;;;;sQAahB,CAAC"}
@@ -1,6 +1,5 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  // @ts-nocheck
3
- import { PASSWORD_MAX_LENGTH, PASSWORD_MIN_LENGTH } from '$constants';
4
3
  import { getApolloErrorCode } from '%apolloErrorImports';
5
4
  import { graphql } from '%graphqlImports';
6
5
  import { Button, Card, CardContent, CardDescription, CardHeader, CardTitle, InputFieldController, } from '%reactComponentsImports';
@@ -26,10 +25,7 @@ export const Route = createFileRoute('/auth_/register')({
26
25
  }
27
26
  },
28
27
  });
29
- const formSchema = z.object({
30
- email: z.email().transform((value) => value.toLowerCase()),
31
- password: z.string().min(PASSWORD_MIN_LENGTH).max(PASSWORD_MAX_LENGTH),
32
- });
28
+ const formSchema = TPL_REGISTER_SCHEMA;
33
29
  const registerWithEmailPasswordMutation = graphql(`
34
30
  mutation RegisterWithEmailPassword($input: RegisterWithEmailPasswordInput!) {
35
31
  registerWithEmailPassword(input: $input) {
@@ -50,10 +46,7 @@ function RegisterPage() {
50
46
  const onSubmit = (data) => {
51
47
  registerWithEmailPassword({
52
48
  variables: {
53
- input: {
54
- email: data.email,
55
- password: data.password,
56
- },
49
+ input: TPL_REGISTER_INPUT,
57
50
  },
58
51
  })
59
52
  .then(({ data }) => {
@@ -77,6 +70,6 @@ function RegisterPage() {
77
70
  }
78
71
  });
79
72
  };
80
- return (_jsxs(Card, { children: [_jsxs(CardHeader, { children: [_jsx(CardTitle, { children: "Register to your account" }), _jsx(CardDescription, { children: "Enter your email below to register for an account" })] }), _jsx(CardContent, { children: _jsxs("form", { onSubmit: handleSubmit(onSubmit), children: [_jsxs("div", { className: "flex flex-col gap-6", children: [_jsx(InputFieldController, { control: control, name: "email", type: "email", autoComplete: "email", placeholder: "user@example.com" }), _jsx(InputFieldController, { control: control, name: "password", type: "password", autoComplete: "new-password", placeholder: "Password" }), _jsx(Button, { type: "submit", className: "w-full", disabled: loading, children: "Register" })] }), _jsxs("div", { className: "mt-4 text-center text-sm", children: ["Already have an account?", ' ', _jsx(Link, { to: "/auth/login", className: "underline underline-offset-4", children: "Login" })] })] }) })] }));
73
+ return (_jsxs(Card, { children: [_jsxs(CardHeader, { children: [_jsx(CardTitle, { children: "Register to your account" }), _jsx(CardDescription, { children: "Enter your email below to register for an account" })] }), _jsx(CardContent, { children: _jsxs("form", { onSubmit: handleSubmit(onSubmit), children: [_jsxs("div", { className: "flex flex-col gap-4", children: [_jsx(InputFieldController, { control: control, name: "email", type: "email", autoComplete: "email", placeholder: "user@example.com", label: "Email" }), _jsx(InputFieldController, { control: control, name: "password", type: "password", autoComplete: "new-password", placeholder: "Password", label: "Password" }), _jsx(TPL_NAME_FORM_CONTROL, {}), _jsx(Button, { type: "submit", className: "w-full", disabled: loading, children: "Register" })] }), _jsxs("div", { className: "mt-4 text-center text-sm", children: ["Already have an account?", ' ', _jsx(Link, { to: "/auth/login", className: "underline underline-offset-4", children: "Login" })] })] }) })] }));
81
74
  }
82
75
  //# sourceMappingURL=register.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"register.js","sourceRoot":"","sources":["../../../../../../../../src/local-auth/core/generators/auth-routes/templates/routes/auth_/register.tsx"],"names":[],"mappings":";AAAA,cAAc;AAEd,OAAO,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AACtE,OAAO,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AACzD,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAC1C,OAAO,EACL,MAAM,EACN,IAAI,EACJ,WAAW,EACX,eAAe,EACf,UAAU,EACV,SAAS,EACT,oBAAoB,GACrB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,iBAAiB,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AACjE,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AACzD,OAAO,EAAE,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;gBAClB,KAAK,aAAa,CAAC,CAAC,CAAC;oBACnB,YAAY,CACV,OAAO,EACP,EAAE,OAAO,EAAE,qBAAqB,EAAE,EAClC,EAAE,WAAW,EAAE,IAAI,EAAE,CACtB,CAAC;oBACF,MAAM;gBACR,CAAC;gBACD,OAAO,CAAC,CAAC,CAAC;oBACR,KAAK,CAAC,KAAK,CACT,iBAAiB,CAAC,GAAG,EAAE,mCAAmC,CAAC,CAC5D,CAAC;gBACJ,CAAC;YACH,CAAC;QACH,CAAC,CAAC,CAAC;IACP,CAAC,CAAC;IAEF,OAAO,CACL,MAAC,IAAI,eACH,MAAC,UAAU,eACT,KAAC,SAAS,2CAAqC,EAC/C,KAAC,eAAe,oEAEE,IACP,EACb,KAAC,WAAW,cACV,gBAAM,QAAQ,EAAE,YAAY,CAAC,QAAQ,CAAC,aACpC,eAAK,SAAS,EAAC,qBAAqB,aAClC,KAAC,oBAAoB,IACnB,OAAO,EAAE,OAAO,EAChB,IAAI,EAAC,OAAO,EACZ,IAAI,EAAC,OAAO,EACZ,YAAY,EAAC,OAAO,EACpB,WAAW,EAAC,kBAAkB,GAC9B,EACF,KAAC,oBAAoB,IACnB,OAAO,EAAE,OAAO,EAChB,IAAI,EAAC,UAAU,EACf,IAAI,EAAC,UAAU,EACf,YAAY,EAAC,cAAc,EAC3B,WAAW,EAAC,UAAU,GACtB,EACF,KAAC,MAAM,IAAC,IAAI,EAAC,QAAQ,EAAC,SAAS,EAAC,QAAQ,EAAC,QAAQ,EAAE,OAAO,yBAEjD,IACL,EACN,eAAK,SAAS,EAAC,0BAA0B,yCACd,GAAG,EAC5B,KAAC,IAAI,IAAC,EAAE,EAAC,aAAa,EAAC,SAAS,EAAC,8BAA8B,sBAExD,IACH,IACD,GACK,IACT,CACR,CAAC;AACJ,CAAC"}
1
+ {"version":3,"file":"register.js","sourceRoot":"","sources":["../../../../../../../../src/local-auth/core/generators/auth-routes/templates/routes/auth_/register.tsx"],"names":[],"mappings":";AAAA,cAAc;A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5 @@
1
1
  // @ts-nocheck
2
2
 
3
- import { PASSWORD_MAX_LENGTH, PASSWORD_MIN_LENGTH } from '$constants';
4
3
  import { getApolloErrorCode } from '%apolloErrorImports';
5
4
  import { graphql } from '%graphqlImports';
6
5
  import {
@@ -41,10 +40,7 @@ export const Route = createFileRoute('/auth_/register')({
41
40
  },
42
41
  });
43
42
 
44
- const formSchema = z.object({
45
- email: z.email().transform((value) => value.toLowerCase()),
46
- password: z.string().min(PASSWORD_MIN_LENGTH).max(PASSWORD_MAX_LENGTH),
47
- });
43
+ const formSchema = TPL_REGISTER_SCHEMA;
48
44
 
49
45
  type FormData = z.infer<typeof formSchema>;
50
46
 
@@ -76,10 +72,7 @@ function RegisterPage(): React.JSX.Element {
76
72
  const onSubmit = (data: FormData): void => {
77
73
  registerWithEmailPassword({
78
74
  variables: {
79
- input: {
80
- email: data.email,
81
- password: data.password,
82
- },
75
+ input: TPL_REGISTER_INPUT,
83
76
  },
84
77
  })
85
78
  .then(({ data }) => {
@@ -121,13 +114,14 @@ function RegisterPage(): React.JSX.Element {
121
114
  </CardHeader>
122
115
  <CardContent>
123
116
  <form onSubmit={handleSubmit(onSubmit)}>
124
- <div className="flex flex-col gap-6">
117
+ <div className="flex flex-col gap-4">
125
118
  <InputFieldController
126
119
  control={control}
127
120
  name="email"
128
121
  type="email"
129
122
  autoComplete="email"
130
123
  placeholder="user@example.com"
124
+ label="Email"
131
125
  />
132
126
  <InputFieldController
133
127
  control={control}
@@ -135,7 +129,9 @@ function RegisterPage(): React.JSX.Element {
135
129
  type="password"
136
130
  autoComplete="new-password"
137
131
  placeholder="Password"
132
+ label="Password"
138
133
  />
134
+ <TPL_NAME_FORM_CONTROL />
139
135
  <Button type="submit" className="w-full" disabled={loading}>
140
136
  Register
141
137
  </Button>
@@ -34,15 +34,10 @@ export declare const LOCAL_AUTH_CORE_REACT_SESSION_GENERATED: {
34
34
  };
35
35
  }>>;
36
36
  graphqlImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
37
+ '*': {};
37
38
  graphql: {};
38
39
  readFragment: {};
39
- FragmentOf: {
40
- isTypeOnly: true;
41
- };
42
- ResultOf: {
43
- isTypeOnly: true;
44
- };
45
- VariablesOf: {
40
+ FragmentType: {
46
41
  isTypeOnly: true;
47
42
  };
48
43
  }>>;
@@ -57,6 +52,20 @@ export declare const LOCAL_AUTH_CORE_REACT_SESSION_GENERATED: {
57
52
  Alert: {};
58
53
  AlertDescription: {};
59
54
  AlertTitle: {};
55
+ Autocomplete: {};
56
+ AutocompleteClear: {};
57
+ AutocompleteCollection: {};
58
+ AutocompleteContent: {};
59
+ AutocompleteEmpty: {};
60
+ AutocompleteGroup: {};
61
+ AutocompleteInput: {};
62
+ AutocompleteItem: {};
63
+ AutocompleteLabel: {};
64
+ AutocompleteList: {};
65
+ AutocompleteSeparator: {};
66
+ AutocompleteStatus: {};
67
+ AutocompleteTrigger: {};
68
+ AutocompleteValue: {};
60
69
  Badge: {};
61
70
  badgeVariants: {};
62
71
  BadgeWithIcon: {};
@@ -85,18 +94,12 @@ export declare const LOCAL_AUTH_CORE_REACT_SESSION_GENERATED: {
85
94
  CheckedInput: {};
86
95
  CircularProgress: {};
87
96
  cn: {};
97
+ Collapsible: {};
98
+ CollapsibleContent: {};
99
+ CollapsibleTrigger: {};
88
100
  Combobox: {};
89
101
  ComboboxField: {};
90
102
  ComboboxFieldController: {};
91
- Command: {};
92
- CommandDialog: {};
93
- CommandEmpty: {};
94
- CommandGroup: {};
95
- CommandInput: {};
96
- CommandItem: {};
97
- CommandList: {};
98
- CommandSeparator: {};
99
- CommandShortcut: {};
100
103
  ConfirmDialog: {};
101
104
  DatePickerField: {};
102
105
  DatePickerFieldController: {};
@@ -133,37 +136,43 @@ export declare const LOCAL_AUTH_CORE_REACT_SESSION_GENERATED: {
133
136
  EmptyDisplay: {};
134
137
  ErrorableLoader: {};
135
138
  ErrorDisplay: {};
136
- FormControl: {};
137
- FormDescription: {};
139
+ Field: {};
140
+ FieldContent: {};
141
+ FieldDescription: {};
142
+ FieldError: {};
143
+ FieldGroup: {};
144
+ FieldLabel: {};
145
+ FieldLegend: {};
146
+ FieldSeparator: {};
147
+ FieldSet: {};
148
+ FieldTitle: {};
149
+ fieldVariants: {};
138
150
  FormFieldProps: {
139
151
  isTypeOnly: true;
140
152
  };
141
- FormItem: {};
142
- FormLabel: {};
143
- FormMessage: {};
144
153
  IconElement: {
145
154
  isTypeOnly: true;
146
155
  };
147
156
  Input: {};
148
157
  InputField: {};
149
158
  InputFieldController: {};
159
+ InputGroup: {};
160
+ InputGroupAddon: {};
161
+ InputGroupButton: {};
162
+ InputGroupInput: {};
163
+ InputGroupText: {};
164
+ InputGroupTextarea: {};
150
165
  inputVariants: {};
151
166
  Label: {};
152
167
  LinkButton: {};
153
168
  Loader: {};
154
169
  mergeRefs: {};
155
170
  Modal: {};
156
- MultiCombobox: {};
157
- MultiComboboxContent: {};
158
- MultiComboboxEmpty: {};
159
171
  MultiComboboxField: {};
160
172
  MultiComboboxFieldController: {};
161
173
  MultiComboboxFieldProps: {
162
174
  isTypeOnly: true;
163
175
  };
164
- MultiComboboxGroup: {};
165
- MultiComboboxInput: {};
166
- MultiComboboxItem: {};
167
176
  MultiSelectOptionProps: {
168
177
  isTypeOnly: true;
169
178
  };
@@ -186,16 +195,12 @@ export declare const LOCAL_AUTH_CORE_REACT_SESSION_GENERATED: {
186
195
  ReactSelectInput: {};
187
196
  ScrollArea: {};
188
197
  Select: {};
189
- selectCheckVariants: {};
190
- selectContentVariants: {};
191
198
  SelectField: {};
192
199
  SelectFieldController: {};
193
200
  SelectInput: {};
194
- selectItemVariants: {};
195
201
  SelectOptionProps: {
196
202
  isTypeOnly: true;
197
203
  };
198
- selectTriggerVariants: {};
199
204
  Separator: {};
200
205
  Sheet: {};
201
206
  SheetClose: {};
@@ -229,6 +234,8 @@ export declare const LOCAL_AUTH_CORE_REACT_SESSION_GENERATED: {
229
234
  SidebarSeparator: {};
230
235
  SidebarTrigger: {};
231
236
  Skeleton: {};
237
+ Slider: {};
238
+ Spinner: {};
232
239
  Switch: {};
233
240
  SwitchField: {};
234
241
  SwitchFieldController: {};
@@ -250,6 +257,7 @@ export declare const LOCAL_AUTH_CORE_REACT_SESSION_GENERATED: {
250
257
  TooltipContent: {};
251
258
  TooltipProvider: {};
252
259
  TooltipTrigger: {};
260
+ useAutocompleteFilter: {};
253
261
  useConfirmDialog: {};
254
262
  UseConfirmDialogRequestOptions: {
255
263
  isTypeOnly: true;
@@ -258,7 +266,6 @@ export declare const LOCAL_AUTH_CORE_REACT_SESSION_GENERATED: {
258
266
  useControlledState: {};
259
267
  useControllerMerged: {};
260
268
  useIsMobile: {};
261
- useMultiComboboxContext: {};
262
269
  useSidebar: {};
263
270
  }>>;
264
271
  reactErrorImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
@@ -292,15 +299,10 @@ export declare const LOCAL_AUTH_CORE_REACT_SESSION_GENERATED: {
292
299
  };
293
300
  }>>;
294
301
  graphqlImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
302
+ '*': {};
295
303
  graphql: {};
296
304
  readFragment: {};
297
- FragmentOf: {
298
- isTypeOnly: true;
299
- };
300
- ResultOf: {
301
- isTypeOnly: true;
302
- };
303
- VariablesOf: {
305
+ FragmentType: {
304
306
  isTypeOnly: true;
305
307
  };
306
308
  }>>;
@@ -314,6 +316,20 @@ export declare const LOCAL_AUTH_CORE_REACT_SESSION_GENERATED: {
314
316
  Alert: {};
315
317
  AlertDescription: {};
316
318
  AlertTitle: {};
319
+ Autocomplete: {};
320
+ AutocompleteClear: {};
321
+ AutocompleteCollection: {};
322
+ AutocompleteContent: {};
323
+ AutocompleteEmpty: {};
324
+ AutocompleteGroup: {};
325
+ AutocompleteInput: {};
326
+ AutocompleteItem: {};
327
+ AutocompleteLabel: {};
328
+ AutocompleteList: {};
329
+ AutocompleteSeparator: {};
330
+ AutocompleteStatus: {};
331
+ AutocompleteTrigger: {};
332
+ AutocompleteValue: {};
317
333
  Badge: {};
318
334
  badgeVariants: {};
319
335
  BadgeWithIcon: {};
@@ -342,18 +358,12 @@ export declare const LOCAL_AUTH_CORE_REACT_SESSION_GENERATED: {
342
358
  CheckedInput: {};
343
359
  CircularProgress: {};
344
360
  cn: {};
361
+ Collapsible: {};
362
+ CollapsibleContent: {};
363
+ CollapsibleTrigger: {};
345
364
  Combobox: {};
346
365
  ComboboxField: {};
347
366
  ComboboxFieldController: {};
348
- Command: {};
349
- CommandDialog: {};
350
- CommandEmpty: {};
351
- CommandGroup: {};
352
- CommandInput: {};
353
- CommandItem: {};
354
- CommandList: {};
355
- CommandSeparator: {};
356
- CommandShortcut: {};
357
367
  ConfirmDialog: {};
358
368
  DatePickerField: {};
359
369
  DatePickerFieldController: {};
@@ -390,37 +400,43 @@ export declare const LOCAL_AUTH_CORE_REACT_SESSION_GENERATED: {
390
400
  EmptyDisplay: {};
391
401
  ErrorableLoader: {};
392
402
  ErrorDisplay: {};
393
- FormControl: {};
394
- FormDescription: {};
403
+ Field: {};
404
+ FieldContent: {};
405
+ FieldDescription: {};
406
+ FieldError: {};
407
+ FieldGroup: {};
408
+ FieldLabel: {};
409
+ FieldLegend: {};
410
+ FieldSeparator: {};
411
+ FieldSet: {};
412
+ FieldTitle: {};
413
+ fieldVariants: {};
395
414
  FormFieldProps: {
396
415
  isTypeOnly: true;
397
416
  };
398
- FormItem: {};
399
- FormLabel: {};
400
- FormMessage: {};
401
417
  IconElement: {
402
418
  isTypeOnly: true;
403
419
  };
404
420
  Input: {};
405
421
  InputField: {};
406
422
  InputFieldController: {};
423
+ InputGroup: {};
424
+ InputGroupAddon: {};
425
+ InputGroupButton: {};
426
+ InputGroupInput: {};
427
+ InputGroupText: {};
428
+ InputGroupTextarea: {};
407
429
  inputVariants: {};
408
430
  Label: {};
409
431
  LinkButton: {};
410
432
  Loader: {};
411
433
  mergeRefs: {};
412
434
  Modal: {};
413
- MultiCombobox: {};
414
- MultiComboboxContent: {};
415
- MultiComboboxEmpty: {};
416
435
  MultiComboboxField: {};
417
436
  MultiComboboxFieldController: {};
418
437
  MultiComboboxFieldProps: {
419
438
  isTypeOnly: true;
420
439
  };
421
- MultiComboboxGroup: {};
422
- MultiComboboxInput: {};
423
- MultiComboboxItem: {};
424
440
  MultiSelectOptionProps: {
425
441
  isTypeOnly: true;
426
442
  };
@@ -443,16 +459,12 @@ export declare const LOCAL_AUTH_CORE_REACT_SESSION_GENERATED: {
443
459
  ReactSelectInput: {};
444
460
  ScrollArea: {};
445
461
  Select: {};
446
- selectCheckVariants: {};
447
- selectContentVariants: {};
448
462
  SelectField: {};
449
463
  SelectFieldController: {};
450
464
  SelectInput: {};
451
- selectItemVariants: {};
452
465
  SelectOptionProps: {
453
466
  isTypeOnly: true;
454
467
  };
455
- selectTriggerVariants: {};
456
468
  Separator: {};
457
469
  Sheet: {};
458
470
  SheetClose: {};
@@ -486,6 +498,8 @@ export declare const LOCAL_AUTH_CORE_REACT_SESSION_GENERATED: {
486
498
  SidebarSeparator: {};
487
499
  SidebarTrigger: {};
488
500
  Skeleton: {};
501
+ Slider: {};
502
+ Spinner: {};
489
503
  Switch: {};
490
504
  SwitchField: {};
491
505
  SwitchFieldController: {};
@@ -507,6 +521,7 @@ export declare const LOCAL_AUTH_CORE_REACT_SESSION_GENERATED: {
507
521
  TooltipContent: {};
508
522
  TooltipProvider: {};
509
523
  TooltipTrigger: {};
524
+ useAutocompleteFilter: {};
510
525
  useConfirmDialog: {};
511
526
  UseConfirmDialogRequestOptions: {
512
527
  isTypeOnly: true;
@@ -515,7 +530,6 @@ export declare const LOCAL_AUTH_CORE_REACT_SESSION_GENERATED: {
515
530
  useControlledState: {};
516
531
  useControllerMerged: {};
517
532
  useIsMobile: {};
518
- useMultiComboboxContext: {};
519
533
  useSidebar: {};
520
534
  }>>;
521
535
  reactErrorImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/local-auth/core/generators/react-session/generated/index.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,uCAAuC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAKnD,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/local-auth/core/generators/react-session/generated/index.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,uCAAuC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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