@contember/react-client-tenant 2.1.0-beta.2 → 2.2.0-alpha.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 (557) hide show
  1. package/dist/development/index.cjs +18 -0
  2. package/dist/development/index.cjs.map +1 -1
  3. package/dist/development/index.js +19 -1
  4. package/dist/development/index.js.map +1 -1
  5. package/dist/development/src/components/IdentityProvider.cjs.map +1 -1
  6. package/dist/development/src/components/IdentityProvider.js.map +1 -1
  7. package/dist/development/src/components/IdentityState.cjs.map +1 -1
  8. package/dist/development/src/components/IdentityState.js.map +1 -1
  9. package/dist/development/src/components/forms/ChangeMyPasswordForm.cjs.map +1 -1
  10. package/dist/development/src/components/forms/ChangeMyPasswordForm.js.map +1 -1
  11. package/dist/development/src/components/forms/ConfirmEmailChangeForm.cjs +52 -0
  12. package/dist/development/src/components/forms/ConfirmEmailChangeForm.cjs.map +1 -0
  13. package/dist/development/src/components/forms/ConfirmEmailChangeForm.js +52 -0
  14. package/dist/development/src/components/forms/ConfirmEmailChangeForm.js.map +1 -0
  15. package/dist/development/src/components/forms/CreateApiKeyForm.cjs.map +1 -1
  16. package/dist/development/src/components/forms/CreateApiKeyForm.js.map +1 -1
  17. package/dist/development/src/components/forms/CreateSessionTokenForm.cjs.map +1 -1
  18. package/dist/development/src/components/forms/CreateSessionTokenForm.js.map +1 -1
  19. package/dist/development/src/components/forms/InviteForm.cjs.map +1 -1
  20. package/dist/development/src/components/forms/InviteForm.js.map +1 -1
  21. package/dist/development/src/components/forms/LoginForm.cjs +3 -1
  22. package/dist/development/src/components/forms/LoginForm.cjs.map +1 -1
  23. package/dist/development/src/components/forms/LoginForm.js +3 -1
  24. package/dist/development/src/components/forms/LoginForm.js.map +1 -1
  25. package/dist/development/src/components/forms/OtpConfirmForm.cjs.map +1 -1
  26. package/dist/development/src/components/forms/OtpConfirmForm.js.map +1 -1
  27. package/dist/development/src/components/forms/OtpPrepareForm.cjs.map +1 -1
  28. package/dist/development/src/components/forms/OtpPrepareForm.js.map +1 -1
  29. package/dist/development/src/components/forms/PasswordResetForm.cjs.map +1 -1
  30. package/dist/development/src/components/forms/PasswordResetForm.js.map +1 -1
  31. package/dist/development/src/components/forms/PasswordResetRequestForm.cjs +3 -1
  32. package/dist/development/src/components/forms/PasswordResetRequestForm.cjs.map +1 -1
  33. package/dist/development/src/components/forms/PasswordResetRequestForm.js +3 -1
  34. package/dist/development/src/components/forms/PasswordResetRequestForm.js.map +1 -1
  35. package/dist/development/src/components/forms/PasswordlessSignInForm.cjs +2 -1
  36. package/dist/development/src/components/forms/PasswordlessSignInForm.cjs.map +1 -1
  37. package/dist/development/src/components/forms/PasswordlessSignInForm.js +2 -1
  38. package/dist/development/src/components/forms/PasswordlessSignInForm.js.map +1 -1
  39. package/dist/development/src/components/forms/PasswordlessSignInInitForm.cjs +3 -1
  40. package/dist/development/src/components/forms/PasswordlessSignInInitForm.cjs.map +1 -1
  41. package/dist/development/src/components/forms/PasswordlessSignInInitForm.js +3 -1
  42. package/dist/development/src/components/forms/PasswordlessSignInInitForm.js.map +1 -1
  43. package/dist/development/src/components/forms/RequestEmailVerificationForm.cjs +50 -0
  44. package/dist/development/src/components/forms/RequestEmailVerificationForm.cjs.map +1 -0
  45. package/dist/development/src/components/forms/RequestEmailVerificationForm.js +50 -0
  46. package/dist/development/src/components/forms/RequestEmailVerificationForm.js.map +1 -0
  47. package/dist/development/src/components/forms/TenantForm.cjs.map +1 -1
  48. package/dist/development/src/components/forms/TenantForm.js.map +1 -1
  49. package/dist/development/src/components/forms/UpdateProjectMemberForm.cjs.map +1 -1
  50. package/dist/development/src/components/forms/UpdateProjectMemberForm.js.map +1 -1
  51. package/dist/development/src/components/forms/VerifyEmailForm.cjs +50 -0
  52. package/dist/development/src/components/forms/VerifyEmailForm.cjs.map +1 -0
  53. package/dist/development/src/components/forms/VerifyEmailForm.js +50 -0
  54. package/dist/development/src/components/forms/VerifyEmailForm.js.map +1 -0
  55. package/dist/development/src/components/idp/IDP.cjs.map +1 -1
  56. package/dist/development/src/components/idp/IDP.js.map +1 -1
  57. package/dist/development/src/components/idp/IDPInitTrigger.cjs.map +1 -1
  58. package/dist/development/src/components/idp/IDPInitTrigger.js.map +1 -1
  59. package/dist/development/src/components/idp/IDPState.cjs.map +1 -1
  60. package/dist/development/src/components/idp/IDPState.js.map +1 -1
  61. package/dist/development/src/components/triggers/DisableOtpTrigger.cjs.map +1 -1
  62. package/dist/development/src/components/triggers/DisableOtpTrigger.js.map +1 -1
  63. package/dist/development/src/components/triggers/LogoutTrigger.cjs +3 -3
  64. package/dist/development/src/components/triggers/LogoutTrigger.cjs.map +1 -1
  65. package/dist/development/src/components/triggers/LogoutTrigger.js +3 -3
  66. package/dist/development/src/components/triggers/LogoutTrigger.js.map +1 -1
  67. package/dist/development/src/components/triggers/RemoveProjectMemberTrigger.cjs.map +1 -1
  68. package/dist/development/src/components/triggers/RemoveProjectMemberTrigger.js.map +1 -1
  69. package/dist/development/src/contexts.cjs.map +1 -1
  70. package/dist/development/src/contexts.js.map +1 -1
  71. package/dist/development/src/hooks/mutations/apiKey/useCreateApiKeyMutation.cjs.map +1 -1
  72. package/dist/development/src/hooks/mutations/apiKey/useCreateApiKeyMutation.js.map +1 -1
  73. package/dist/development/src/hooks/mutations/apiKey/useCreateGlobalApiKeyMutation.cjs.map +1 -1
  74. package/dist/development/src/hooks/mutations/apiKey/useCreateGlobalApiKeyMutation.js.map +1 -1
  75. package/dist/development/src/hooks/mutations/apiKey/useCreateSessionTokenMutation.cjs.map +1 -1
  76. package/dist/development/src/hooks/mutations/apiKey/useCreateSessionTokenMutation.js.map +1 -1
  77. package/dist/development/src/hooks/mutations/apiKey/useDisableApiKeyMutation.cjs.map +1 -1
  78. package/dist/development/src/hooks/mutations/apiKey/useDisableApiKeyMutation.js.map +1 -1
  79. package/dist/development/src/hooks/mutations/auth/useChangeMyPasswordMutation.cjs.map +1 -1
  80. package/dist/development/src/hooks/mutations/auth/useChangeMyPasswordMutation.js.map +1 -1
  81. package/dist/development/src/hooks/mutations/auth/useSignInMutation.cjs.map +1 -1
  82. package/dist/development/src/hooks/mutations/auth/useSignInMutation.js.map +1 -1
  83. package/dist/development/src/hooks/mutations/auth/useSignOutMutation.cjs.map +1 -1
  84. package/dist/development/src/hooks/mutations/auth/useSignOutMutation.js.map +1 -1
  85. package/dist/development/src/hooks/mutations/emailVerification/useConfirmEmailChangeMutation.cjs +32 -0
  86. package/dist/development/src/hooks/mutations/emailVerification/useConfirmEmailChangeMutation.cjs.map +1 -0
  87. package/dist/development/src/hooks/mutations/emailVerification/useConfirmEmailChangeMutation.js +15 -0
  88. package/dist/development/src/hooks/mutations/emailVerification/useConfirmEmailChangeMutation.js.map +1 -0
  89. package/dist/development/src/hooks/mutations/emailVerification/useRequestEmailVerificationMutation.cjs +32 -0
  90. package/dist/development/src/hooks/mutations/emailVerification/useRequestEmailVerificationMutation.cjs.map +1 -0
  91. package/dist/development/src/hooks/mutations/emailVerification/useRequestEmailVerificationMutation.js +15 -0
  92. package/dist/development/src/hooks/mutations/emailVerification/useRequestEmailVerificationMutation.js.map +1 -0
  93. package/dist/development/src/hooks/mutations/emailVerification/useVerifyEmailMutation.cjs +32 -0
  94. package/dist/development/src/hooks/mutations/emailVerification/useVerifyEmailMutation.cjs.map +1 -0
  95. package/dist/development/src/hooks/mutations/emailVerification/useVerifyEmailMutation.js +15 -0
  96. package/dist/development/src/hooks/mutations/emailVerification/useVerifyEmailMutation.js.map +1 -0
  97. package/dist/development/src/hooks/mutations/idp/useInitSignInIDPMutation.cjs.map +1 -1
  98. package/dist/development/src/hooks/mutations/idp/useInitSignInIDPMutation.js.map +1 -1
  99. package/dist/development/src/hooks/mutations/idp/useSignInIdpMutation.cjs.map +1 -1
  100. package/dist/development/src/hooks/mutations/idp/useSignInIdpMutation.js.map +1 -1
  101. package/dist/development/src/hooks/mutations/invite/useInviteMutation.cjs.map +1 -1
  102. package/dist/development/src/hooks/mutations/invite/useInviteMutation.js.map +1 -1
  103. package/dist/development/src/hooks/mutations/memberships/useAddProjectMemberMutation.cjs.map +1 -1
  104. package/dist/development/src/hooks/mutations/memberships/useAddProjectMemberMutation.js.map +1 -1
  105. package/dist/development/src/hooks/mutations/memberships/useRemoveProjectMemberMutation.cjs.map +1 -1
  106. package/dist/development/src/hooks/mutations/memberships/useRemoveProjectMemberMutation.js.map +1 -1
  107. package/dist/development/src/hooks/mutations/memberships/useUpdateProjectMemberMutation.cjs.map +1 -1
  108. package/dist/development/src/hooks/mutations/memberships/useUpdateProjectMemberMutation.js.map +1 -1
  109. package/dist/development/src/hooks/mutations/otp/useConfirmOtpMutation.cjs.map +1 -1
  110. package/dist/development/src/hooks/mutations/otp/useConfirmOtpMutation.js.map +1 -1
  111. package/dist/development/src/hooks/mutations/otp/useDisableOtpMutation.cjs.map +1 -1
  112. package/dist/development/src/hooks/mutations/otp/useDisableOtpMutation.js.map +1 -1
  113. package/dist/development/src/hooks/mutations/otp/usePrepareOtpMutation.cjs.map +1 -1
  114. package/dist/development/src/hooks/mutations/otp/usePrepareOtpMutation.js.map +1 -1
  115. package/dist/development/src/hooks/mutations/passwordReset/useCreateResetPasswordRequestMutation.cjs.map +1 -1
  116. package/dist/development/src/hooks/mutations/passwordReset/useCreateResetPasswordRequestMutation.js.map +1 -1
  117. package/dist/development/src/hooks/mutations/passwordReset/useResetPasswordMutation.cjs.map +1 -1
  118. package/dist/development/src/hooks/mutations/passwordReset/useResetPasswordMutation.js.map +1 -1
  119. package/dist/development/src/hooks/mutations/passwordless/useActivatePasswordlessOtpMutation.cjs.map +1 -1
  120. package/dist/development/src/hooks/mutations/passwordless/useActivatePasswordlessOtpMutation.js.map +1 -1
  121. package/dist/development/src/hooks/mutations/passwordless/useDisableMyPasswordlessMutation.cjs.map +1 -1
  122. package/dist/development/src/hooks/mutations/passwordless/useDisableMyPasswordlessMutation.js.map +1 -1
  123. package/dist/development/src/hooks/mutations/passwordless/useEnableMyPasswordlessMutation.cjs.map +1 -1
  124. package/dist/development/src/hooks/mutations/passwordless/useEnableMyPasswordlessMutation.js.map +1 -1
  125. package/dist/development/src/hooks/mutations/passwordless/useInitSignInPasswordlessMutation.cjs.map +1 -1
  126. package/dist/development/src/hooks/mutations/passwordless/useInitSignInPasswordlessMutation.js.map +1 -1
  127. package/dist/development/src/hooks/mutations/passwordless/useSignInPasswordlessMutation.cjs.map +1 -1
  128. package/dist/development/src/hooks/mutations/passwordless/useSignInPasswordlessMutation.js.map +1 -1
  129. package/dist/development/src/hooks/mutations/profile/useChangeMyProfile.cjs.map +1 -1
  130. package/dist/development/src/hooks/mutations/profile/useChangeMyProfile.js.map +1 -1
  131. package/dist/development/src/hooks/mutations/profile/useChangeProfile.cjs.map +1 -1
  132. package/dist/development/src/hooks/mutations/profile/useChangeProfile.js.map +1 -1
  133. package/dist/development/src/hooks/queries/useMeQuery.cjs.map +1 -1
  134. package/dist/development/src/hooks/queries/useMeQuery.js.map +1 -1
  135. package/dist/development/src/hooks/queries/useProjectMembersQuery.cjs.map +1 -1
  136. package/dist/development/src/hooks/queries/useProjectMembersQuery.js.map +1 -1
  137. package/dist/development/src/hooks/queries/useProjectMembershipsQuery.cjs.map +1 -1
  138. package/dist/development/src/hooks/queries/useProjectMembershipsQuery.js.map +1 -1
  139. package/dist/development/src/hooks/queries/useProjectRolesDefinitionQuery.cjs.map +1 -1
  140. package/dist/development/src/hooks/queries/useProjectRolesDefinitionQuery.js.map +1 -1
  141. package/dist/development/src/hooks/useFetchIdentity.cjs.map +1 -1
  142. package/dist/development/src/hooks/useFetchIdentity.js.map +1 -1
  143. package/dist/development/src/hooks/useLogout.cjs.map +1 -1
  144. package/dist/development/src/hooks/useLogout.js.map +1 -1
  145. package/dist/development/src/hooks/usePasswordlessOtpActivator.cjs.map +1 -1
  146. package/dist/development/src/hooks/usePasswordlessOtpActivator.js.map +1 -1
  147. package/dist/development/src/hooks/useTenantMutation.cjs.map +1 -1
  148. package/dist/development/src/hooks/useTenantMutation.js.map +1 -1
  149. package/dist/development/src/internal/hooks/useHandleIDPResponse.cjs.map +1 -1
  150. package/dist/development/src/internal/hooks/useHandleIDPResponse.js.map +1 -1
  151. package/dist/development/src/internal/hooks/useInitIDPRedirect.cjs.map +1 -1
  152. package/dist/development/src/internal/hooks/useInitIDPRedirect.js.map +1 -1
  153. package/dist/development/src/internal/hooks/useLogoutInternal.cjs +12 -7
  154. package/dist/development/src/internal/hooks/useLogoutInternal.cjs.map +1 -1
  155. package/dist/development/src/internal/hooks/useLogoutInternal.js +13 -8
  156. package/dist/development/src/internal/hooks/useLogoutInternal.js.map +1 -1
  157. package/dist/development/src/internal/hooks/useRedirectToBacklink.cjs.map +1 -1
  158. package/dist/development/src/internal/hooks/useRedirectToBacklink.js.map +1 -1
  159. package/dist/production/index.cjs +18 -0
  160. package/dist/production/index.cjs.map +1 -1
  161. package/dist/production/index.js +19 -1
  162. package/dist/production/index.js.map +1 -1
  163. package/dist/production/src/components/IdentityProvider.cjs.map +1 -1
  164. package/dist/production/src/components/IdentityProvider.js.map +1 -1
  165. package/dist/production/src/components/IdentityState.cjs.map +1 -1
  166. package/dist/production/src/components/IdentityState.js.map +1 -1
  167. package/dist/production/src/components/forms/ChangeMyPasswordForm.cjs.map +1 -1
  168. package/dist/production/src/components/forms/ChangeMyPasswordForm.js.map +1 -1
  169. package/dist/production/src/components/forms/ConfirmEmailChangeForm.cjs +44 -0
  170. package/dist/production/src/components/forms/ConfirmEmailChangeForm.cjs.map +1 -0
  171. package/dist/production/src/components/forms/ConfirmEmailChangeForm.js +44 -0
  172. package/dist/production/src/components/forms/ConfirmEmailChangeForm.js.map +1 -0
  173. package/dist/production/src/components/forms/CreateApiKeyForm.cjs.map +1 -1
  174. package/dist/production/src/components/forms/CreateApiKeyForm.js.map +1 -1
  175. package/dist/production/src/components/forms/CreateSessionTokenForm.cjs.map +1 -1
  176. package/dist/production/src/components/forms/CreateSessionTokenForm.js.map +1 -1
  177. package/dist/production/src/components/forms/InviteForm.cjs.map +1 -1
  178. package/dist/production/src/components/forms/InviteForm.js.map +1 -1
  179. package/dist/production/src/components/forms/LoginForm.cjs +3 -1
  180. package/dist/production/src/components/forms/LoginForm.cjs.map +1 -1
  181. package/dist/production/src/components/forms/LoginForm.js +3 -1
  182. package/dist/production/src/components/forms/LoginForm.js.map +1 -1
  183. package/dist/production/src/components/forms/OtpConfirmForm.cjs.map +1 -1
  184. package/dist/production/src/components/forms/OtpConfirmForm.js.map +1 -1
  185. package/dist/production/src/components/forms/OtpPrepareForm.cjs.map +1 -1
  186. package/dist/production/src/components/forms/OtpPrepareForm.js.map +1 -1
  187. package/dist/production/src/components/forms/PasswordResetForm.cjs.map +1 -1
  188. package/dist/production/src/components/forms/PasswordResetForm.js.map +1 -1
  189. package/dist/production/src/components/forms/PasswordResetRequestForm.cjs +3 -1
  190. package/dist/production/src/components/forms/PasswordResetRequestForm.cjs.map +1 -1
  191. package/dist/production/src/components/forms/PasswordResetRequestForm.js +3 -1
  192. package/dist/production/src/components/forms/PasswordResetRequestForm.js.map +1 -1
  193. package/dist/production/src/components/forms/PasswordlessSignInForm.cjs +2 -1
  194. package/dist/production/src/components/forms/PasswordlessSignInForm.cjs.map +1 -1
  195. package/dist/production/src/components/forms/PasswordlessSignInForm.js +2 -1
  196. package/dist/production/src/components/forms/PasswordlessSignInForm.js.map +1 -1
  197. package/dist/production/src/components/forms/PasswordlessSignInInitForm.cjs +3 -1
  198. package/dist/production/src/components/forms/PasswordlessSignInInitForm.cjs.map +1 -1
  199. package/dist/production/src/components/forms/PasswordlessSignInInitForm.js +3 -1
  200. package/dist/production/src/components/forms/PasswordlessSignInInitForm.js.map +1 -1
  201. package/dist/production/src/components/forms/RequestEmailVerificationForm.cjs +42 -0
  202. package/dist/production/src/components/forms/RequestEmailVerificationForm.cjs.map +1 -0
  203. package/dist/production/src/components/forms/RequestEmailVerificationForm.js +42 -0
  204. package/dist/production/src/components/forms/RequestEmailVerificationForm.js.map +1 -0
  205. package/dist/production/src/components/forms/TenantForm.cjs.map +1 -1
  206. package/dist/production/src/components/forms/TenantForm.js.map +1 -1
  207. package/dist/production/src/components/forms/UpdateProjectMemberForm.cjs.map +1 -1
  208. package/dist/production/src/components/forms/UpdateProjectMemberForm.js.map +1 -1
  209. package/dist/production/src/components/forms/VerifyEmailForm.cjs +42 -0
  210. package/dist/production/src/components/forms/VerifyEmailForm.cjs.map +1 -0
  211. package/dist/production/src/components/forms/VerifyEmailForm.js +42 -0
  212. package/dist/production/src/components/forms/VerifyEmailForm.js.map +1 -0
  213. package/dist/production/src/components/idp/IDP.cjs.map +1 -1
  214. package/dist/production/src/components/idp/IDP.js.map +1 -1
  215. package/dist/production/src/components/idp/IDPInitTrigger.cjs.map +1 -1
  216. package/dist/production/src/components/idp/IDPInitTrigger.js.map +1 -1
  217. package/dist/production/src/components/idp/IDPState.cjs.map +1 -1
  218. package/dist/production/src/components/idp/IDPState.js.map +1 -1
  219. package/dist/production/src/components/triggers/DisableOtpTrigger.cjs.map +1 -1
  220. package/dist/production/src/components/triggers/DisableOtpTrigger.js.map +1 -1
  221. package/dist/production/src/components/triggers/LogoutTrigger.cjs +2 -2
  222. package/dist/production/src/components/triggers/LogoutTrigger.cjs.map +1 -1
  223. package/dist/production/src/components/triggers/LogoutTrigger.js +2 -2
  224. package/dist/production/src/components/triggers/LogoutTrigger.js.map +1 -1
  225. package/dist/production/src/components/triggers/RemoveProjectMemberTrigger.cjs.map +1 -1
  226. package/dist/production/src/components/triggers/RemoveProjectMemberTrigger.js.map +1 -1
  227. package/dist/production/src/contexts.cjs.map +1 -1
  228. package/dist/production/src/contexts.js.map +1 -1
  229. package/dist/production/src/hooks/mutations/apiKey/useCreateApiKeyMutation.cjs.map +1 -1
  230. package/dist/production/src/hooks/mutations/apiKey/useCreateApiKeyMutation.js.map +1 -1
  231. package/dist/production/src/hooks/mutations/apiKey/useCreateGlobalApiKeyMutation.cjs.map +1 -1
  232. package/dist/production/src/hooks/mutations/apiKey/useCreateGlobalApiKeyMutation.js.map +1 -1
  233. package/dist/production/src/hooks/mutations/apiKey/useCreateSessionTokenMutation.cjs.map +1 -1
  234. package/dist/production/src/hooks/mutations/apiKey/useCreateSessionTokenMutation.js.map +1 -1
  235. package/dist/production/src/hooks/mutations/apiKey/useDisableApiKeyMutation.cjs.map +1 -1
  236. package/dist/production/src/hooks/mutations/apiKey/useDisableApiKeyMutation.js.map +1 -1
  237. package/dist/production/src/hooks/mutations/auth/useChangeMyPasswordMutation.cjs.map +1 -1
  238. package/dist/production/src/hooks/mutations/auth/useChangeMyPasswordMutation.js.map +1 -1
  239. package/dist/production/src/hooks/mutations/auth/useSignInMutation.cjs.map +1 -1
  240. package/dist/production/src/hooks/mutations/auth/useSignInMutation.js.map +1 -1
  241. package/dist/production/src/hooks/mutations/auth/useSignOutMutation.cjs.map +1 -1
  242. package/dist/production/src/hooks/mutations/auth/useSignOutMutation.js.map +1 -1
  243. package/dist/production/src/hooks/mutations/emailVerification/useConfirmEmailChangeMutation.cjs +32 -0
  244. package/dist/production/src/hooks/mutations/emailVerification/useConfirmEmailChangeMutation.cjs.map +1 -0
  245. package/dist/production/src/hooks/mutations/emailVerification/useConfirmEmailChangeMutation.js +15 -0
  246. package/dist/production/src/hooks/mutations/emailVerification/useConfirmEmailChangeMutation.js.map +1 -0
  247. package/dist/production/src/hooks/mutations/emailVerification/useRequestEmailVerificationMutation.cjs +32 -0
  248. package/dist/production/src/hooks/mutations/emailVerification/useRequestEmailVerificationMutation.cjs.map +1 -0
  249. package/dist/production/src/hooks/mutations/emailVerification/useRequestEmailVerificationMutation.js +15 -0
  250. package/dist/production/src/hooks/mutations/emailVerification/useRequestEmailVerificationMutation.js.map +1 -0
  251. package/dist/production/src/hooks/mutations/emailVerification/useVerifyEmailMutation.cjs +32 -0
  252. package/dist/production/src/hooks/mutations/emailVerification/useVerifyEmailMutation.cjs.map +1 -0
  253. package/dist/production/src/hooks/mutations/emailVerification/useVerifyEmailMutation.js +15 -0
  254. package/dist/production/src/hooks/mutations/emailVerification/useVerifyEmailMutation.js.map +1 -0
  255. package/dist/production/src/hooks/mutations/idp/useInitSignInIDPMutation.cjs.map +1 -1
  256. package/dist/production/src/hooks/mutations/idp/useInitSignInIDPMutation.js.map +1 -1
  257. package/dist/production/src/hooks/mutations/idp/useSignInIdpMutation.cjs.map +1 -1
  258. package/dist/production/src/hooks/mutations/idp/useSignInIdpMutation.js.map +1 -1
  259. package/dist/production/src/hooks/mutations/invite/useInviteMutation.cjs.map +1 -1
  260. package/dist/production/src/hooks/mutations/invite/useInviteMutation.js.map +1 -1
  261. package/dist/production/src/hooks/mutations/memberships/useAddProjectMemberMutation.cjs.map +1 -1
  262. package/dist/production/src/hooks/mutations/memberships/useAddProjectMemberMutation.js.map +1 -1
  263. package/dist/production/src/hooks/mutations/memberships/useRemoveProjectMemberMutation.cjs.map +1 -1
  264. package/dist/production/src/hooks/mutations/memberships/useRemoveProjectMemberMutation.js.map +1 -1
  265. package/dist/production/src/hooks/mutations/memberships/useUpdateProjectMemberMutation.cjs.map +1 -1
  266. package/dist/production/src/hooks/mutations/memberships/useUpdateProjectMemberMutation.js.map +1 -1
  267. package/dist/production/src/hooks/mutations/otp/useConfirmOtpMutation.cjs.map +1 -1
  268. package/dist/production/src/hooks/mutations/otp/useConfirmOtpMutation.js.map +1 -1
  269. package/dist/production/src/hooks/mutations/otp/useDisableOtpMutation.cjs.map +1 -1
  270. package/dist/production/src/hooks/mutations/otp/useDisableOtpMutation.js.map +1 -1
  271. package/dist/production/src/hooks/mutations/otp/usePrepareOtpMutation.cjs.map +1 -1
  272. package/dist/production/src/hooks/mutations/otp/usePrepareOtpMutation.js.map +1 -1
  273. package/dist/production/src/hooks/mutations/passwordReset/useCreateResetPasswordRequestMutation.cjs.map +1 -1
  274. package/dist/production/src/hooks/mutations/passwordReset/useCreateResetPasswordRequestMutation.js.map +1 -1
  275. package/dist/production/src/hooks/mutations/passwordReset/useResetPasswordMutation.cjs.map +1 -1
  276. package/dist/production/src/hooks/mutations/passwordReset/useResetPasswordMutation.js.map +1 -1
  277. package/dist/production/src/hooks/mutations/passwordless/useActivatePasswordlessOtpMutation.cjs.map +1 -1
  278. package/dist/production/src/hooks/mutations/passwordless/useActivatePasswordlessOtpMutation.js.map +1 -1
  279. package/dist/production/src/hooks/mutations/passwordless/useDisableMyPasswordlessMutation.cjs.map +1 -1
  280. package/dist/production/src/hooks/mutations/passwordless/useDisableMyPasswordlessMutation.js.map +1 -1
  281. package/dist/production/src/hooks/mutations/passwordless/useEnableMyPasswordlessMutation.cjs.map +1 -1
  282. package/dist/production/src/hooks/mutations/passwordless/useEnableMyPasswordlessMutation.js.map +1 -1
  283. package/dist/production/src/hooks/mutations/passwordless/useInitSignInPasswordlessMutation.cjs.map +1 -1
  284. package/dist/production/src/hooks/mutations/passwordless/useInitSignInPasswordlessMutation.js.map +1 -1
  285. package/dist/production/src/hooks/mutations/passwordless/useSignInPasswordlessMutation.cjs.map +1 -1
  286. package/dist/production/src/hooks/mutations/passwordless/useSignInPasswordlessMutation.js.map +1 -1
  287. package/dist/production/src/hooks/mutations/profile/useChangeMyProfile.cjs.map +1 -1
  288. package/dist/production/src/hooks/mutations/profile/useChangeMyProfile.js.map +1 -1
  289. package/dist/production/src/hooks/mutations/profile/useChangeProfile.cjs.map +1 -1
  290. package/dist/production/src/hooks/mutations/profile/useChangeProfile.js.map +1 -1
  291. package/dist/production/src/hooks/queries/useMeQuery.cjs.map +1 -1
  292. package/dist/production/src/hooks/queries/useMeQuery.js.map +1 -1
  293. package/dist/production/src/hooks/queries/useProjectMembersQuery.cjs.map +1 -1
  294. package/dist/production/src/hooks/queries/useProjectMembersQuery.js.map +1 -1
  295. package/dist/production/src/hooks/queries/useProjectMembershipsQuery.cjs.map +1 -1
  296. package/dist/production/src/hooks/queries/useProjectMembershipsQuery.js.map +1 -1
  297. package/dist/production/src/hooks/queries/useProjectRolesDefinitionQuery.cjs.map +1 -1
  298. package/dist/production/src/hooks/queries/useProjectRolesDefinitionQuery.js.map +1 -1
  299. package/dist/production/src/hooks/useFetchIdentity.cjs.map +1 -1
  300. package/dist/production/src/hooks/useFetchIdentity.js.map +1 -1
  301. package/dist/production/src/hooks/useLogout.cjs.map +1 -1
  302. package/dist/production/src/hooks/useLogout.js.map +1 -1
  303. package/dist/production/src/hooks/usePasswordlessOtpActivator.cjs.map +1 -1
  304. package/dist/production/src/hooks/usePasswordlessOtpActivator.js.map +1 -1
  305. package/dist/production/src/hooks/useTenantMutation.cjs.map +1 -1
  306. package/dist/production/src/hooks/useTenantMutation.js.map +1 -1
  307. package/dist/production/src/internal/hooks/useHandleIDPResponse.cjs.map +1 -1
  308. package/dist/production/src/internal/hooks/useHandleIDPResponse.js.map +1 -1
  309. package/dist/production/src/internal/hooks/useInitIDPRedirect.cjs.map +1 -1
  310. package/dist/production/src/internal/hooks/useInitIDPRedirect.js.map +1 -1
  311. package/dist/production/src/internal/hooks/useLogoutInternal.cjs +12 -7
  312. package/dist/production/src/internal/hooks/useLogoutInternal.cjs.map +1 -1
  313. package/dist/production/src/internal/hooks/useLogoutInternal.js +13 -8
  314. package/dist/production/src/internal/hooks/useLogoutInternal.js.map +1 -1
  315. package/dist/production/src/internal/hooks/useRedirectToBacklink.cjs.map +1 -1
  316. package/dist/production/src/internal/hooks/useRedirectToBacklink.js.map +1 -1
  317. package/dist/types/components/IdentityState.d.ts +1 -1
  318. package/dist/types/components/IdentityState.d.ts.map +1 -1
  319. package/dist/types/components/forms/ChangeMyPasswordForm.d.ts +1 -1
  320. package/dist/types/components/forms/ChangeMyPasswordForm.d.ts.map +1 -1
  321. package/dist/types/components/forms/ConfirmEmailChangeForm.d.ts +18 -0
  322. package/dist/types/components/forms/ConfirmEmailChangeForm.d.ts.map +1 -0
  323. package/dist/types/components/forms/CreateApiKeyForm.d.ts +2 -2
  324. package/dist/types/components/forms/CreateApiKeyForm.d.ts.map +1 -1
  325. package/dist/types/components/forms/CreateSessionTokenForm.d.ts +2 -2
  326. package/dist/types/components/forms/CreateSessionTokenForm.d.ts.map +1 -1
  327. package/dist/types/components/forms/InviteForm.d.ts +2 -2
  328. package/dist/types/components/forms/InviteForm.d.ts.map +1 -1
  329. package/dist/types/components/forms/LoginForm.d.ts +1 -1
  330. package/dist/types/components/forms/LoginForm.d.ts.map +1 -1
  331. package/dist/types/components/forms/OtpConfirmForm.d.ts +1 -1
  332. package/dist/types/components/forms/OtpConfirmForm.d.ts.map +1 -1
  333. package/dist/types/components/forms/OtpPrepareForm.d.ts +2 -2
  334. package/dist/types/components/forms/OtpPrepareForm.d.ts.map +1 -1
  335. package/dist/types/components/forms/PasswordResetForm.d.ts +1 -1
  336. package/dist/types/components/forms/PasswordResetForm.d.ts.map +1 -1
  337. package/dist/types/components/forms/PasswordResetRequestForm.d.ts +1 -1
  338. package/dist/types/components/forms/PasswordResetRequestForm.d.ts.map +1 -1
  339. package/dist/types/components/forms/PasswordlessSignInForm.d.ts +1 -1
  340. package/dist/types/components/forms/PasswordlessSignInForm.d.ts.map +1 -1
  341. package/dist/types/components/forms/PasswordlessSignInInitForm.d.ts +2 -2
  342. package/dist/types/components/forms/PasswordlessSignInInitForm.d.ts.map +1 -1
  343. package/dist/types/components/forms/RequestEmailVerificationForm.d.ts +17 -0
  344. package/dist/types/components/forms/RequestEmailVerificationForm.d.ts.map +1 -0
  345. package/dist/types/components/forms/TenantForm.d.ts +1 -1
  346. package/dist/types/components/forms/TenantForm.d.ts.map +1 -1
  347. package/dist/types/components/forms/UpdateProjectMemberForm.d.ts +1 -1
  348. package/dist/types/components/forms/UpdateProjectMemberForm.d.ts.map +1 -1
  349. package/dist/types/components/forms/VerifyEmailForm.d.ts +18 -0
  350. package/dist/types/components/forms/VerifyEmailForm.d.ts.map +1 -0
  351. package/dist/types/components/forms/index.d.ts +15 -12
  352. package/dist/types/components/forms/index.d.ts.map +1 -1
  353. package/dist/types/components/idp/IDP.d.ts +1 -1
  354. package/dist/types/components/idp/IDP.d.ts.map +1 -1
  355. package/dist/types/components/idp/IDPState.d.ts +1 -1
  356. package/dist/types/components/idp/IDPState.d.ts.map +1 -1
  357. package/dist/types/components/idp/index.d.ts +3 -3
  358. package/dist/types/components/idp/index.d.ts.map +1 -1
  359. package/dist/types/components/index.d.ts +5 -5
  360. package/dist/types/components/index.d.ts.map +1 -1
  361. package/dist/types/components/triggers/LogoutTrigger.d.ts +7 -1
  362. package/dist/types/components/triggers/LogoutTrigger.d.ts.map +1 -1
  363. package/dist/types/components/triggers/RemoveProjectMemberTrigger.d.ts +1 -1
  364. package/dist/types/components/triggers/RemoveProjectMemberTrigger.d.ts.map +1 -1
  365. package/dist/types/components/triggers/index.d.ts +3 -3
  366. package/dist/types/components/triggers/index.d.ts.map +1 -1
  367. package/dist/types/contexts.d.ts +1 -1
  368. package/dist/types/contexts.d.ts.map +1 -1
  369. package/dist/types/hooks/index.d.ts +8 -8
  370. package/dist/types/hooks/index.d.ts.map +1 -1
  371. package/dist/types/hooks/mutations/apiKey/index.d.ts +4 -4
  372. package/dist/types/hooks/mutations/apiKey/index.d.ts.map +1 -1
  373. package/dist/types/hooks/mutations/apiKey/useCreateApiKeyMutation.d.ts +4 -2
  374. package/dist/types/hooks/mutations/apiKey/useCreateApiKeyMutation.d.ts.map +1 -1
  375. package/dist/types/hooks/mutations/apiKey/useCreateGlobalApiKeyMutation.d.ts +4 -2
  376. package/dist/types/hooks/mutations/apiKey/useCreateGlobalApiKeyMutation.d.ts.map +1 -1
  377. package/dist/types/hooks/mutations/apiKey/useCreateSessionTokenMutation.d.ts +4 -2
  378. package/dist/types/hooks/mutations/apiKey/useCreateSessionTokenMutation.d.ts.map +1 -1
  379. package/dist/types/hooks/mutations/apiKey/useDisableApiKeyMutation.d.ts +2 -2
  380. package/dist/types/hooks/mutations/apiKey/useDisableApiKeyMutation.d.ts.map +1 -1
  381. package/dist/types/hooks/mutations/auth/index.d.ts +3 -3
  382. package/dist/types/hooks/mutations/auth/index.d.ts.map +1 -1
  383. package/dist/types/hooks/mutations/auth/useChangeMyPasswordMutation.d.ts +2 -2
  384. package/dist/types/hooks/mutations/auth/useChangeMyPasswordMutation.d.ts.map +1 -1
  385. package/dist/types/hooks/mutations/auth/useSignInMutation.d.ts +12 -2
  386. package/dist/types/hooks/mutations/auth/useSignInMutation.d.ts.map +1 -1
  387. package/dist/types/hooks/mutations/auth/useSignOutMutation.d.ts +4 -2
  388. package/dist/types/hooks/mutations/auth/useSignOutMutation.d.ts.map +1 -1
  389. package/dist/types/hooks/mutations/emailVerification/index.d.ts +4 -0
  390. package/dist/types/hooks/mutations/emailVerification/index.d.ts.map +1 -0
  391. package/dist/types/hooks/mutations/emailVerification/useConfirmEmailChangeMutation.d.ts +19 -0
  392. package/dist/types/hooks/mutations/emailVerification/useConfirmEmailChangeMutation.d.ts.map +1 -0
  393. package/dist/types/hooks/mutations/emailVerification/useRequestEmailVerificationMutation.d.ts +23 -0
  394. package/dist/types/hooks/mutations/emailVerification/useRequestEmailVerificationMutation.d.ts.map +1 -0
  395. package/dist/types/hooks/mutations/emailVerification/useVerifyEmailMutation.d.ts +19 -0
  396. package/dist/types/hooks/mutations/emailVerification/useVerifyEmailMutation.d.ts.map +1 -0
  397. package/dist/types/hooks/mutations/idp/index.d.ts +2 -2
  398. package/dist/types/hooks/mutations/idp/index.d.ts.map +1 -1
  399. package/dist/types/hooks/mutations/idp/useInitSignInIDPMutation.d.ts +1 -1
  400. package/dist/types/hooks/mutations/idp/useSignInIdpMutation.d.ts +2 -1
  401. package/dist/types/hooks/mutations/idp/useSignInIdpMutation.d.ts.map +1 -1
  402. package/dist/types/hooks/mutations/index.d.ts +10 -9
  403. package/dist/types/hooks/mutations/index.d.ts.map +1 -1
  404. package/dist/types/hooks/mutations/invite/index.d.ts +1 -1
  405. package/dist/types/hooks/mutations/invite/index.d.ts.map +1 -1
  406. package/dist/types/hooks/mutations/invite/useInviteMutation.d.ts +2 -2
  407. package/dist/types/hooks/mutations/memberships/index.d.ts +3 -3
  408. package/dist/types/hooks/mutations/memberships/index.d.ts.map +1 -1
  409. package/dist/types/hooks/mutations/memberships/useAddProjectMemberMutation.d.ts +2 -2
  410. package/dist/types/hooks/mutations/memberships/useAddProjectMemberMutation.d.ts.map +1 -1
  411. package/dist/types/hooks/mutations/memberships/useRemoveProjectMemberMutation.d.ts +2 -2
  412. package/dist/types/hooks/mutations/memberships/useRemoveProjectMemberMutation.d.ts.map +1 -1
  413. package/dist/types/hooks/mutations/memberships/useUpdateProjectMemberMutation.d.ts +2 -2
  414. package/dist/types/hooks/mutations/memberships/useUpdateProjectMemberMutation.d.ts.map +1 -1
  415. package/dist/types/hooks/mutations/otp/index.d.ts +3 -3
  416. package/dist/types/hooks/mutations/otp/index.d.ts.map +1 -1
  417. package/dist/types/hooks/mutations/otp/useConfirmOtpMutation.d.ts +2 -2
  418. package/dist/types/hooks/mutations/otp/useConfirmOtpMutation.d.ts.map +1 -1
  419. package/dist/types/hooks/mutations/otp/useDisableOtpMutation.d.ts +1 -1
  420. package/dist/types/hooks/mutations/otp/useDisableOtpMutation.d.ts.map +1 -1
  421. package/dist/types/hooks/mutations/otp/usePrepareOtpMutation.d.ts +2 -2
  422. package/dist/types/hooks/mutations/passwordReset/index.d.ts +2 -2
  423. package/dist/types/hooks/mutations/passwordReset/index.d.ts.map +1 -1
  424. package/dist/types/hooks/mutations/passwordReset/useCreateResetPasswordRequestMutation.d.ts +4 -2
  425. package/dist/types/hooks/mutations/passwordReset/useCreateResetPasswordRequestMutation.d.ts.map +1 -1
  426. package/dist/types/hooks/mutations/passwordReset/useResetPasswordMutation.d.ts +2 -2
  427. package/dist/types/hooks/mutations/passwordReset/useResetPasswordMutation.d.ts.map +1 -1
  428. package/dist/types/hooks/mutations/passwordless/index.d.ts +5 -5
  429. package/dist/types/hooks/mutations/passwordless/index.d.ts.map +1 -1
  430. package/dist/types/hooks/mutations/passwordless/useActivatePasswordlessOtpMutation.d.ts +2 -2
  431. package/dist/types/hooks/mutations/passwordless/useActivatePasswordlessOtpMutation.d.ts.map +1 -1
  432. package/dist/types/hooks/mutations/passwordless/useDisableMyPasswordlessMutation.d.ts +1 -1
  433. package/dist/types/hooks/mutations/passwordless/useDisableMyPasswordlessMutation.d.ts.map +1 -1
  434. package/dist/types/hooks/mutations/passwordless/useEnableMyPasswordlessMutation.d.ts +1 -1
  435. package/dist/types/hooks/mutations/passwordless/useEnableMyPasswordlessMutation.d.ts.map +1 -1
  436. package/dist/types/hooks/mutations/passwordless/useInitSignInPasswordlessMutation.d.ts +3 -2
  437. package/dist/types/hooks/mutations/passwordless/useInitSignInPasswordlessMutation.d.ts.map +1 -1
  438. package/dist/types/hooks/mutations/passwordless/useSignInPasswordlessMutation.d.ts +4 -2
  439. package/dist/types/hooks/mutations/passwordless/useSignInPasswordlessMutation.d.ts.map +1 -1
  440. package/dist/types/hooks/mutations/profile/index.d.ts +2 -2
  441. package/dist/types/hooks/mutations/profile/index.d.ts.map +1 -1
  442. package/dist/types/hooks/mutations/profile/useChangeMyProfile.d.ts +2 -2
  443. package/dist/types/hooks/mutations/profile/useChangeMyProfile.d.ts.map +1 -1
  444. package/dist/types/hooks/mutations/profile/useChangeProfile.d.ts +2 -2
  445. package/dist/types/hooks/mutations/profile/useChangeProfile.d.ts.map +1 -1
  446. package/dist/types/hooks/queries/index.d.ts +4 -4
  447. package/dist/types/hooks/queries/index.d.ts.map +1 -1
  448. package/dist/types/hooks/queries/useMeQuery.d.ts +1 -1
  449. package/dist/types/hooks/queries/useMeQuery.d.ts.map +1 -1
  450. package/dist/types/hooks/queries/useProjectMembersQuery.d.ts +15 -3
  451. package/dist/types/hooks/queries/useProjectMembersQuery.d.ts.map +1 -1
  452. package/dist/types/hooks/queries/useProjectMembershipsQuery.d.ts +1 -1
  453. package/dist/types/hooks/queries/useProjectMembershipsQuery.d.ts.map +1 -1
  454. package/dist/types/hooks/queries/useProjectRolesDefinitionQuery.d.ts +1 -1
  455. package/dist/types/hooks/queries/useProjectRolesDefinitionQuery.d.ts.map +1 -1
  456. package/dist/types/hooks/useFetchIdentity.d.ts +1 -1
  457. package/dist/types/hooks/useFetchIdentity.d.ts.map +1 -1
  458. package/dist/types/hooks/useLogout.d.ts +2 -1
  459. package/dist/types/hooks/useLogout.d.ts.map +1 -1
  460. package/dist/types/hooks/useTenantMutation.d.ts +1 -1
  461. package/dist/types/hooks/useTenantMutation.d.ts.map +1 -1
  462. package/dist/types/index.d.ts +4 -4
  463. package/dist/types/index.d.ts.map +1 -1
  464. package/dist/types/internal/hooks/useHandleIDPResponse.d.ts +1 -1
  465. package/dist/types/internal/hooks/useHandleIDPResponse.d.ts.map +1 -1
  466. package/dist/types/internal/hooks/useInitIDPRedirect.d.ts +1 -1
  467. package/dist/types/internal/hooks/useInitIDPRedirect.d.ts.map +1 -1
  468. package/dist/types/internal/hooks/useLogoutInternal.d.ts +2 -1
  469. package/dist/types/internal/hooks/useLogoutInternal.d.ts.map +1 -1
  470. package/dist/types/tsconfig.tsbuildinfo +1 -1
  471. package/dist/types/types/index.d.ts +5 -5
  472. package/dist/types/types/index.d.ts.map +1 -1
  473. package/package.json +4 -4
  474. package/src/components/IdentityProvider.tsx +2 -2
  475. package/src/components/IdentityState.tsx +2 -2
  476. package/src/components/forms/ChangeMyPasswordForm.tsx +4 -4
  477. package/src/components/forms/ConfirmEmailChangeForm.tsx +66 -0
  478. package/src/components/forms/CreateApiKeyForm.tsx +4 -4
  479. package/src/components/forms/CreateSessionTokenForm.tsx +4 -4
  480. package/src/components/forms/InviteForm.tsx +4 -4
  481. package/src/components/forms/LoginForm.tsx +7 -5
  482. package/src/components/forms/OtpConfirmForm.tsx +4 -4
  483. package/src/components/forms/OtpPrepareForm.tsx +4 -4
  484. package/src/components/forms/PasswordResetForm.tsx +4 -4
  485. package/src/components/forms/PasswordResetRequestForm.tsx +6 -4
  486. package/src/components/forms/PasswordlessSignInForm.tsx +6 -5
  487. package/src/components/forms/PasswordlessSignInInitForm.tsx +8 -6
  488. package/src/components/forms/RequestEmailVerificationForm.tsx +62 -0
  489. package/src/components/forms/TenantForm.tsx +2 -2
  490. package/src/components/forms/UpdateProjectMemberForm.tsx +4 -4
  491. package/src/components/forms/VerifyEmailForm.tsx +64 -0
  492. package/src/components/forms/index.ts +15 -12
  493. package/src/components/idp/IDP.tsx +5 -5
  494. package/src/components/idp/IDPInitTrigger.tsx +1 -1
  495. package/src/components/idp/IDPState.tsx +2 -2
  496. package/src/components/idp/index.ts +3 -3
  497. package/src/components/index.ts +5 -5
  498. package/src/components/triggers/DisableOtpTrigger.tsx +3 -3
  499. package/src/components/triggers/LogoutTrigger.tsx +9 -3
  500. package/src/components/triggers/RemoveProjectMemberTrigger.tsx +2 -2
  501. package/src/components/triggers/index.ts +3 -3
  502. package/src/contexts.ts +1 -1
  503. package/src/hooks/index.ts +8 -8
  504. package/src/hooks/mutations/apiKey/index.ts +4 -4
  505. package/src/hooks/mutations/apiKey/useCreateApiKeyMutation.tsx +1 -1
  506. package/src/hooks/mutations/apiKey/useCreateGlobalApiKeyMutation.tsx +1 -1
  507. package/src/hooks/mutations/apiKey/useCreateSessionTokenMutation.tsx +1 -1
  508. package/src/hooks/mutations/apiKey/useDisableApiKeyMutation.tsx +1 -1
  509. package/src/hooks/mutations/auth/index.ts +3 -3
  510. package/src/hooks/mutations/auth/useChangeMyPasswordMutation.ts +1 -1
  511. package/src/hooks/mutations/auth/useSignInMutation.ts +2 -2
  512. package/src/hooks/mutations/auth/useSignOutMutation.ts +1 -1
  513. package/src/hooks/mutations/emailVerification/index.ts +3 -0
  514. package/src/hooks/mutations/emailVerification/useConfirmEmailChangeMutation.ts +17 -0
  515. package/src/hooks/mutations/emailVerification/useRequestEmailVerificationMutation.ts +17 -0
  516. package/src/hooks/mutations/emailVerification/useVerifyEmailMutation.ts +17 -0
  517. package/src/hooks/mutations/idp/index.ts +2 -2
  518. package/src/hooks/mutations/idp/useInitSignInIDPMutation.ts +2 -2
  519. package/src/hooks/mutations/idp/useSignInIdpMutation.ts +2 -2
  520. package/src/hooks/mutations/index.ts +10 -9
  521. package/src/hooks/mutations/invite/index.ts +1 -1
  522. package/src/hooks/mutations/invite/useInviteMutation.tsx +1 -1
  523. package/src/hooks/mutations/memberships/index.ts +3 -3
  524. package/src/hooks/mutations/memberships/useAddProjectMemberMutation.ts +1 -1
  525. package/src/hooks/mutations/memberships/useRemoveProjectMemberMutation.ts +1 -1
  526. package/src/hooks/mutations/memberships/useUpdateProjectMemberMutation.ts +1 -1
  527. package/src/hooks/mutations/otp/index.ts +3 -3
  528. package/src/hooks/mutations/otp/useConfirmOtpMutation.ts +1 -1
  529. package/src/hooks/mutations/otp/useDisableOtpMutation.ts +1 -1
  530. package/src/hooks/mutations/otp/usePrepareOtpMutation.ts +1 -1
  531. package/src/hooks/mutations/passwordReset/index.ts +2 -2
  532. package/src/hooks/mutations/passwordReset/useCreateResetPasswordRequestMutation.ts +2 -2
  533. package/src/hooks/mutations/passwordReset/useResetPasswordMutation.ts +2 -2
  534. package/src/hooks/mutations/passwordless/index.ts +5 -5
  535. package/src/hooks/mutations/passwordless/useActivatePasswordlessOtpMutation.ts +2 -2
  536. package/src/hooks/mutations/passwordless/useDisableMyPasswordlessMutation.ts +1 -1
  537. package/src/hooks/mutations/passwordless/useEnableMyPasswordlessMutation.ts +1 -1
  538. package/src/hooks/mutations/passwordless/useInitSignInPasswordlessMutation.ts +2 -2
  539. package/src/hooks/mutations/passwordless/useSignInPasswordlessMutation.ts +2 -2
  540. package/src/hooks/mutations/profile/index.ts +2 -2
  541. package/src/hooks/mutations/profile/useChangeMyProfile.ts +1 -1
  542. package/src/hooks/mutations/profile/useChangeProfile.ts +1 -1
  543. package/src/hooks/queries/index.ts +4 -4
  544. package/src/hooks/queries/useMeQuery.ts +1 -1
  545. package/src/hooks/queries/useProjectMembersQuery.ts +1 -1
  546. package/src/hooks/queries/useProjectMembershipsQuery.ts +1 -1
  547. package/src/hooks/queries/useProjectRolesDefinitionQuery.ts +1 -1
  548. package/src/hooks/useFetchIdentity.ts +3 -3
  549. package/src/hooks/useLogout.ts +2 -2
  550. package/src/hooks/usePasswordlessOtpActivator.ts +4 -4
  551. package/src/hooks/useTenantMutation.ts +1 -1
  552. package/src/index.ts +4 -4
  553. package/src/internal/hooks/useHandleIDPResponse.ts +5 -5
  554. package/src/internal/hooks/useInitIDPRedirect.ts +5 -5
  555. package/src/internal/hooks/useLogoutInternal.ts +18 -8
  556. package/src/internal/hooks/useRedirectToBacklink.ts +1 -1
  557. package/src/types/index.ts +5 -5
@@ -1 +1 @@
1
- {"version":3,"file":"useLogoutInternal.cjs","sources":["../../../../../../packages/react-client-tenant/src/internal/hooks/useLogoutInternal.ts"],"sourcesContent":["import { useSetSessionToken } from '@contember/react-client'\nimport { useCallback } from 'react'\nimport { useSignOutMutation } from '../../hooks'\n\nexport const useLogoutInternal = (clearIdentity?: () => void) => {\n\tconst tenantLogout = useSignOutMutation()\n\tconst setSessionToken = useSetSessionToken()\n\n\treturn useCallback(\n\t\tasync ({ noRedirect = false }: { noRedirect?: boolean } = {}) => {\n\t\t\tif (navigator.credentials?.preventSilentAccess) {\n\t\t\t\ttry {\n\t\t\t\t\tawait navigator.credentials.preventSilentAccess()\n\t\t\t\t} catch {\n\t\t\t\t\t// actually, not implemented in safari:\n\t\t\t\t\t// https://github.com/WebKit/WebKit/blob/414f4e45b0e82bbfcee783d08a9642be1afa8f72/Source/WebCore/Modules/credentialmanagement/CredentialsContainer.cpp#L132\n\t\t\t\t}\n\t\t\t}\n\t\t\tclearIdentity?.()\n\t\t\tsetSessionToken(undefined)\n\t\t\ttry {\n\t\t\t\tconst response = await tenantLogout({})\n\t\t\t\tif (!response?.ok) {\n\t\t\t\t\tconsole.warn(response?.error)\n\t\t\t\t}\n\t\t\t} catch (e) {\n\t\t\t\tconsole.warn(e)\n\t\t\t}\n\t\t\tif (!noRedirect) {\n\t\t\t\twindow.location.href = '/' // todo better redirect?\n\t\t\t}\n\t\t},\n\t\t[clearIdentity, setSessionToken, tenantLogout],\n\t)\n}\n"],"names":["useSignOutMutation","useSetSessionToken","useCallback"],"mappings":";;;;;AAIO,MAAM,oBAAoB,CAAC,kBAA+B;AAChE,QAAM,eAAeA,mBAAAA,mBAAA;AACrB,QAAM,kBAAkBC,YAAAA,mBAAA;AAExB,SAAOC,MAAAA;AAAAA,IACN,OAAO,EAAE,aAAa,MAAA,IAAoC,OAAO;AAChE,UAAI,UAAU,aAAa,qBAAqB;AAC/C,YAAI;AACH,gBAAM,UAAU,YAAY,oBAAA;AAAA,QAC7B,QAAQ;AAAA,QAGR;AAAA,MACD;AACA,sBAAA;AACA,sBAAgB,MAAS;AACzB,UAAI;AACH,cAAM,WAAW,MAAM,aAAa,EAAE;AACtC,YAAI,CAAC,UAAU,IAAI;AAClB,kBAAQ,KAAK,UAAU,KAAK;AAAA,QAC7B;AAAA,MACD,SAAS,GAAG;AACX,gBAAQ,KAAK,CAAC;AAAA,MACf;AACA,UAAI,CAAC,YAAY;AAChB,eAAO,SAAS,OAAO;AAAA,MACxB;AAAA,IACD;AAAA,IACA,CAAC,eAAe,iBAAiB,YAAY;AAAA,EAAA;AAE/C;;"}
1
+ {"version":3,"file":"useLogoutInternal.cjs","sources":["../../../../../../packages/react-client-tenant/src/internal/hooks/useLogoutInternal.ts"],"sourcesContent":["import { useSetSessionToken } from '@contember/react-client'\nimport { useCallback } from 'react'\nimport { signOutMutation, useTenantApi } from '../../hooks/index.js'\n\nexport const useLogoutInternal = (clearIdentity?: () => void) => {\n\tconst tenantApi = useTenantApi()\n\tconst setSessionToken = useSetSessionToken()\n\n\treturn useCallback(\n\t\tasync ({ noRedirect = false, idpLogout = false }: { noRedirect?: boolean; idpLogout?: boolean } = {}) => {\n\t\t\tif (navigator.credentials?.preventSilentAccess) {\n\t\t\t\ttry {\n\t\t\t\t\tawait navigator.credentials.preventSilentAccess()\n\t\t\t\t} catch {\n\t\t\t\t\t// actually, not implemented in safari:\n\t\t\t\t\t// https://github.com/WebKit/WebKit/blob/414f4e45b0e82bbfcee783d08a9642be1afa8f72/Source/WebCore/Modules/credentialmanagement/CredentialsContainer.cpp#L132\n\t\t\t\t}\n\t\t\t}\n\t\t\tclearIdentity?.()\n\t\t\tsetSessionToken(undefined)\n\t\t\t// RP-initiated (front-channel) Single Logout: when the session was federated via an OIDC\n\t\t\t// IdP that advertises an end_session_endpoint, `signOut` returns the URL to send the\n\t\t\t// browser to so the user is also signed out at the IdP. Opt-in via `idpLogout` — by\n\t\t\t// default we keep the existing local-only redirect to `/`. We call the tenant API\n\t\t\t// directly (not useSignOutMutation) because the generic mutation wrapper only surfaces a\n\t\t\t// `result` payload, whereas `logoutUrl` is a top-level field on SignOutResponse.\n\t\t\tlet idpLogoutUrl: string | undefined\n\t\t\ttry {\n\t\t\t\tconst { mutation } = await tenantApi(signOutMutation)\n\t\t\t\tif (!mutation?.ok) {\n\t\t\t\t\tconsole.warn(mutation?.error)\n\t\t\t\t}\n\t\t\t\tif (idpLogout) {\n\t\t\t\t\tidpLogoutUrl = mutation?.logoutUrl ?? undefined\n\t\t\t\t}\n\t\t\t} catch (e) {\n\t\t\t\tconsole.warn(e)\n\t\t\t}\n\t\t\tif (!noRedirect) {\n\t\t\t\twindow.location.href = idpLogoutUrl ?? '/' // todo better redirect?\n\t\t\t}\n\t\t},\n\t\t[clearIdentity, setSessionToken, tenantApi],\n\t)\n}\n"],"names":["useTenantApi","useSetSessionToken","useCallback","signOutMutation"],"mappings":";;;;;;AAIO,MAAM,oBAAoB,CAAC,kBAA+B;AAChE,QAAM,YAAYA,aAAAA,aAAA;AAClB,QAAM,kBAAkBC,YAAAA,mBAAA;AAExB,SAAOC,MAAAA;AAAAA,IACN,OAAO,EAAE,aAAa,OAAO,YAAY,MAAA,IAAyD,CAAA,MAAO;AACxG,UAAI,UAAU,aAAa,qBAAqB;AAC/C,YAAI;AACH,gBAAM,UAAU,YAAY,oBAAA;AAAA,QAC7B,QAAQ;AAAA,QAGR;AAAA,MACD;AACA,sBAAA;AACA,sBAAgB,MAAS;AAOzB,UAAI;AACJ,UAAI;AACH,cAAM,EAAE,SAAA,IAAa,MAAM,UAAUC,mBAAAA,eAAe;AACpD,YAAI,CAAC,UAAU,IAAI;AAClB,kBAAQ,KAAK,UAAU,KAAK;AAAA,QAC7B;AACA,YAAI,WAAW;AACd,yBAAe,UAAU,aAAa;AAAA,QACvC;AAAA,MACD,SAAS,GAAG;AACX,gBAAQ,KAAK,CAAC;AAAA,MACf;AACA,UAAI,CAAC,YAAY;AAChB,eAAO,SAAS,OAAO,gBAAgB;AAAA,MACxC;AAAA,IACD;AAAA,IACA,CAAC,eAAe,iBAAiB,SAAS;AAAA,EAAA;AAE5C;;"}
@@ -1,11 +1,12 @@
1
1
  import { useSetSessionToken } from "@contember/react-client";
2
2
  import { useCallback } from "react";
3
- import { useSignOutMutation } from "../../hooks/mutations/auth/useSignOutMutation.js";
3
+ import { useTenantApi } from "../../hooks/useTenantApi.js";
4
+ import { signOutMutation } from "../../hooks/mutations/auth/useSignOutMutation.js";
4
5
  const useLogoutInternal = (clearIdentity) => {
5
- const tenantLogout = useSignOutMutation();
6
+ const tenantApi = useTenantApi();
6
7
  const setSessionToken = useSetSessionToken();
7
8
  return useCallback(
8
- async ({ noRedirect = false } = {}) => {
9
+ async ({ noRedirect = false, idpLogout = false } = {}) => {
9
10
  if (navigator.credentials?.preventSilentAccess) {
10
11
  try {
11
12
  await navigator.credentials.preventSilentAccess();
@@ -14,19 +15,23 @@ const useLogoutInternal = (clearIdentity) => {
14
15
  }
15
16
  clearIdentity?.();
16
17
  setSessionToken(void 0);
18
+ let idpLogoutUrl;
17
19
  try {
18
- const response = await tenantLogout({});
19
- if (!response?.ok) {
20
- console.warn(response?.error);
20
+ const { mutation } = await tenantApi(signOutMutation);
21
+ if (!mutation?.ok) {
22
+ console.warn(mutation?.error);
23
+ }
24
+ if (idpLogout) {
25
+ idpLogoutUrl = mutation?.logoutUrl ?? void 0;
21
26
  }
22
27
  } catch (e) {
23
28
  console.warn(e);
24
29
  }
25
30
  if (!noRedirect) {
26
- window.location.href = "/";
31
+ window.location.href = idpLogoutUrl ?? "/";
27
32
  }
28
33
  },
29
- [clearIdentity, setSessionToken, tenantLogout]
34
+ [clearIdentity, setSessionToken, tenantApi]
30
35
  );
31
36
  };
32
37
  export {
@@ -1 +1 @@
1
- {"version":3,"file":"useLogoutInternal.js","sources":["../../../../../../packages/react-client-tenant/src/internal/hooks/useLogoutInternal.ts"],"sourcesContent":["import { useSetSessionToken } from '@contember/react-client'\nimport { useCallback } from 'react'\nimport { useSignOutMutation } from '../../hooks'\n\nexport const useLogoutInternal = (clearIdentity?: () => void) => {\n\tconst tenantLogout = useSignOutMutation()\n\tconst setSessionToken = useSetSessionToken()\n\n\treturn useCallback(\n\t\tasync ({ noRedirect = false }: { noRedirect?: boolean } = {}) => {\n\t\t\tif (navigator.credentials?.preventSilentAccess) {\n\t\t\t\ttry {\n\t\t\t\t\tawait navigator.credentials.preventSilentAccess()\n\t\t\t\t} catch {\n\t\t\t\t\t// actually, not implemented in safari:\n\t\t\t\t\t// https://github.com/WebKit/WebKit/blob/414f4e45b0e82bbfcee783d08a9642be1afa8f72/Source/WebCore/Modules/credentialmanagement/CredentialsContainer.cpp#L132\n\t\t\t\t}\n\t\t\t}\n\t\t\tclearIdentity?.()\n\t\t\tsetSessionToken(undefined)\n\t\t\ttry {\n\t\t\t\tconst response = await tenantLogout({})\n\t\t\t\tif (!response?.ok) {\n\t\t\t\t\tconsole.warn(response?.error)\n\t\t\t\t}\n\t\t\t} catch (e) {\n\t\t\t\tconsole.warn(e)\n\t\t\t}\n\t\t\tif (!noRedirect) {\n\t\t\t\twindow.location.href = '/' // todo better redirect?\n\t\t\t}\n\t\t},\n\t\t[clearIdentity, setSessionToken, tenantLogout],\n\t)\n}\n"],"names":[],"mappings":";;;AAIO,MAAM,oBAAoB,CAAC,kBAA+B;AAChE,QAAM,eAAe,mBAAA;AACrB,QAAM,kBAAkB,mBAAA;AAExB,SAAO;AAAA,IACN,OAAO,EAAE,aAAa,MAAA,IAAoC,OAAO;AAChE,UAAI,UAAU,aAAa,qBAAqB;AAC/C,YAAI;AACH,gBAAM,UAAU,YAAY,oBAAA;AAAA,QAC7B,QAAQ;AAAA,QAGR;AAAA,MACD;AACA,sBAAA;AACA,sBAAgB,MAAS;AACzB,UAAI;AACH,cAAM,WAAW,MAAM,aAAa,EAAE;AACtC,YAAI,CAAC,UAAU,IAAI;AAClB,kBAAQ,KAAK,UAAU,KAAK;AAAA,QAC7B;AAAA,MACD,SAAS,GAAG;AACX,gBAAQ,KAAK,CAAC;AAAA,MACf;AACA,UAAI,CAAC,YAAY;AAChB,eAAO,SAAS,OAAO;AAAA,MACxB;AAAA,IACD;AAAA,IACA,CAAC,eAAe,iBAAiB,YAAY;AAAA,EAAA;AAE/C;"}
1
+ {"version":3,"file":"useLogoutInternal.js","sources":["../../../../../../packages/react-client-tenant/src/internal/hooks/useLogoutInternal.ts"],"sourcesContent":["import { useSetSessionToken } from '@contember/react-client'\nimport { useCallback } from 'react'\nimport { signOutMutation, useTenantApi } from '../../hooks/index.js'\n\nexport const useLogoutInternal = (clearIdentity?: () => void) => {\n\tconst tenantApi = useTenantApi()\n\tconst setSessionToken = useSetSessionToken()\n\n\treturn useCallback(\n\t\tasync ({ noRedirect = false, idpLogout = false }: { noRedirect?: boolean; idpLogout?: boolean } = {}) => {\n\t\t\tif (navigator.credentials?.preventSilentAccess) {\n\t\t\t\ttry {\n\t\t\t\t\tawait navigator.credentials.preventSilentAccess()\n\t\t\t\t} catch {\n\t\t\t\t\t// actually, not implemented in safari:\n\t\t\t\t\t// https://github.com/WebKit/WebKit/blob/414f4e45b0e82bbfcee783d08a9642be1afa8f72/Source/WebCore/Modules/credentialmanagement/CredentialsContainer.cpp#L132\n\t\t\t\t}\n\t\t\t}\n\t\t\tclearIdentity?.()\n\t\t\tsetSessionToken(undefined)\n\t\t\t// RP-initiated (front-channel) Single Logout: when the session was federated via an OIDC\n\t\t\t// IdP that advertises an end_session_endpoint, `signOut` returns the URL to send the\n\t\t\t// browser to so the user is also signed out at the IdP. Opt-in via `idpLogout` — by\n\t\t\t// default we keep the existing local-only redirect to `/`. We call the tenant API\n\t\t\t// directly (not useSignOutMutation) because the generic mutation wrapper only surfaces a\n\t\t\t// `result` payload, whereas `logoutUrl` is a top-level field on SignOutResponse.\n\t\t\tlet idpLogoutUrl: string | undefined\n\t\t\ttry {\n\t\t\t\tconst { mutation } = await tenantApi(signOutMutation)\n\t\t\t\tif (!mutation?.ok) {\n\t\t\t\t\tconsole.warn(mutation?.error)\n\t\t\t\t}\n\t\t\t\tif (idpLogout) {\n\t\t\t\t\tidpLogoutUrl = mutation?.logoutUrl ?? undefined\n\t\t\t\t}\n\t\t\t} catch (e) {\n\t\t\t\tconsole.warn(e)\n\t\t\t}\n\t\t\tif (!noRedirect) {\n\t\t\t\twindow.location.href = idpLogoutUrl ?? '/' // todo better redirect?\n\t\t\t}\n\t\t},\n\t\t[clearIdentity, setSessionToken, tenantApi],\n\t)\n}\n"],"names":[],"mappings":";;;;AAIO,MAAM,oBAAoB,CAAC,kBAA+B;AAChE,QAAM,YAAY,aAAA;AAClB,QAAM,kBAAkB,mBAAA;AAExB,SAAO;AAAA,IACN,OAAO,EAAE,aAAa,OAAO,YAAY,MAAA,IAAyD,CAAA,MAAO;AACxG,UAAI,UAAU,aAAa,qBAAqB;AAC/C,YAAI;AACH,gBAAM,UAAU,YAAY,oBAAA;AAAA,QAC7B,QAAQ;AAAA,QAGR;AAAA,MACD;AACA,sBAAA;AACA,sBAAgB,MAAS;AAOzB,UAAI;AACJ,UAAI;AACH,cAAM,EAAE,SAAA,IAAa,MAAM,UAAU,eAAe;AACpD,YAAI,CAAC,UAAU,IAAI;AAClB,kBAAQ,KAAK,UAAU,KAAK;AAAA,QAC7B;AACA,YAAI,WAAW;AACd,yBAAe,UAAU,aAAa;AAAA,QACvC;AAAA,MACD,SAAS,GAAG;AACX,gBAAQ,KAAK,CAAC;AAAA,MACf;AACA,UAAI,CAAC,YAAY;AAChB,eAAO,SAAS,OAAO,gBAAgB;AAAA,MACxC;AAAA,IACD;AAAA,IACA,CAAC,eAAe,iBAAiB,SAAS;AAAA,EAAA;AAE5C;"}
@@ -1 +1 @@
1
- {"version":3,"file":"useRedirectToBacklink.cjs","sources":["../../../../../../packages/react-client-tenant/src/internal/hooks/useRedirectToBacklink.ts"],"sourcesContent":["import { useCallback, useEffect } from 'react'\nimport { useIdentity } from '../../contexts'\n\nconst getBacklinkFromUrl = () => {\n\treturn new URLSearchParams(window.location.search).get('backlink')\n}\n\nexport const useSaveBacklink = ({ storage = 'session' }: {\n\tstorage?: 'session' | 'local'\n} = {}) => {\n\treturn useCallback(() => {\n\t\tconst backlink = getBacklinkFromUrl()\n\t\tif (!backlink) {\n\t\t\treturn\n\t\t}\n\t\tif (storage === 'local') {\n\t\t\tlocalStorage.setItem('backlink', backlink)\n\t\t} else {\n\t\t\tsessionStorage.setItem('backlink', backlink)\n\t\t}\n\t}, [storage])\n}\n\nexport const useRedirectToBacklinkCallback = () => {\n\treturn useCallback(() => {\n\t\tconst backlink = getBacklinkFromUrl() ?? sessionStorage.getItem('backlink') ?? localStorage.getItem('backlink')\n\t\tif (!backlink) {\n\t\t\treturn\n\t\t}\n\t\tsessionStorage.removeItem('backlink')\n\t\tlocalStorage.removeItem('backlink')\n\t\tconst resolvedBacklink = new URL(backlink, window.location.href)\n\t\tif (resolvedBacklink.origin === window.location.origin) {\n\t\t\twindow.location.href = resolvedBacklink.toString()\n\t\t}\n\t}, [])\n}\n\nexport const useRedirectToBacklink = () => {\n\tconst identity = useIdentity()\n\tconst redirect = useRedirectToBacklinkCallback()\n\tuseEffect(() => {\n\t\tif (!identity) {\n\t\t\treturn\n\t\t}\n\t\tredirect()\n\t}, [identity, redirect])\n}\n"],"names":["useCallback"],"mappings":";;;AAGA,MAAM,qBAAqB,MAAM;AAChC,SAAO,IAAI,gBAAgB,OAAO,SAAS,MAAM,EAAE,IAAI,UAAU;AAClE;AAEO,MAAM,kBAAkB,CAAC,EAAE,UAAU,UAAA,IAExC,CAAA,MAAO;AACV,SAAOA,MAAAA,YAAY,MAAM;AACxB,UAAM,WAAW,mBAAA;AACjB,QAAI,CAAC,UAAU;AACd;AAAA,IACD;AACA,QAAI,YAAY,SAAS;AACxB,mBAAa,QAAQ,YAAY,QAAQ;AAAA,IAC1C,OAAO;AACN,qBAAe,QAAQ,YAAY,QAAQ;AAAA,IAC5C;AAAA,EACD,GAAG,CAAC,OAAO,CAAC;AACb;AAEO,MAAM,gCAAgC,MAAM;AAClD,SAAOA,MAAAA,YAAY,MAAM;AACxB,UAAM,WAAW,wBAAwB,eAAe,QAAQ,UAAU,KAAK,aAAa,QAAQ,UAAU;AAC9G,QAAI,CAAC,UAAU;AACd;AAAA,IACD;AACA,mBAAe,WAAW,UAAU;AACpC,iBAAa,WAAW,UAAU;AAClC,UAAM,mBAAmB,IAAI,IAAI,UAAU,OAAO,SAAS,IAAI;AAC/D,QAAI,iBAAiB,WAAW,OAAO,SAAS,QAAQ;AACvD,aAAO,SAAS,OAAO,iBAAiB,SAAA;AAAA,IACzC;AAAA,EACD,GAAG,CAAA,CAAE;AACN;;;"}
1
+ {"version":3,"file":"useRedirectToBacklink.cjs","sources":["../../../../../../packages/react-client-tenant/src/internal/hooks/useRedirectToBacklink.ts"],"sourcesContent":["import { useCallback, useEffect } from 'react'\nimport { useIdentity } from '../../contexts.js'\n\nconst getBacklinkFromUrl = () => {\n\treturn new URLSearchParams(window.location.search).get('backlink')\n}\n\nexport const useSaveBacklink = ({ storage = 'session' }: {\n\tstorage?: 'session' | 'local'\n} = {}) => {\n\treturn useCallback(() => {\n\t\tconst backlink = getBacklinkFromUrl()\n\t\tif (!backlink) {\n\t\t\treturn\n\t\t}\n\t\tif (storage === 'local') {\n\t\t\tlocalStorage.setItem('backlink', backlink)\n\t\t} else {\n\t\t\tsessionStorage.setItem('backlink', backlink)\n\t\t}\n\t}, [storage])\n}\n\nexport const useRedirectToBacklinkCallback = () => {\n\treturn useCallback(() => {\n\t\tconst backlink = getBacklinkFromUrl() ?? sessionStorage.getItem('backlink') ?? localStorage.getItem('backlink')\n\t\tif (!backlink) {\n\t\t\treturn\n\t\t}\n\t\tsessionStorage.removeItem('backlink')\n\t\tlocalStorage.removeItem('backlink')\n\t\tconst resolvedBacklink = new URL(backlink, window.location.href)\n\t\tif (resolvedBacklink.origin === window.location.origin) {\n\t\t\twindow.location.href = resolvedBacklink.toString()\n\t\t}\n\t}, [])\n}\n\nexport const useRedirectToBacklink = () => {\n\tconst identity = useIdentity()\n\tconst redirect = useRedirectToBacklinkCallback()\n\tuseEffect(() => {\n\t\tif (!identity) {\n\t\t\treturn\n\t\t}\n\t\tredirect()\n\t}, [identity, redirect])\n}\n"],"names":["useCallback"],"mappings":";;;AAGA,MAAM,qBAAqB,MAAM;AAChC,SAAO,IAAI,gBAAgB,OAAO,SAAS,MAAM,EAAE,IAAI,UAAU;AAClE;AAEO,MAAM,kBAAkB,CAAC,EAAE,UAAU,UAAA,IAExC,CAAA,MAAO;AACV,SAAOA,MAAAA,YAAY,MAAM;AACxB,UAAM,WAAW,mBAAA;AACjB,QAAI,CAAC,UAAU;AACd;AAAA,IACD;AACA,QAAI,YAAY,SAAS;AACxB,mBAAa,QAAQ,YAAY,QAAQ;AAAA,IAC1C,OAAO;AACN,qBAAe,QAAQ,YAAY,QAAQ;AAAA,IAC5C;AAAA,EACD,GAAG,CAAC,OAAO,CAAC;AACb;AAEO,MAAM,gCAAgC,MAAM;AAClD,SAAOA,MAAAA,YAAY,MAAM;AACxB,UAAM,WAAW,wBAAwB,eAAe,QAAQ,UAAU,KAAK,aAAa,QAAQ,UAAU;AAC9G,QAAI,CAAC,UAAU;AACd;AAAA,IACD;AACA,mBAAe,WAAW,UAAU;AACpC,iBAAa,WAAW,UAAU;AAClC,UAAM,mBAAmB,IAAI,IAAI,UAAU,OAAO,SAAS,IAAI;AAC/D,QAAI,iBAAiB,WAAW,OAAO,SAAS,QAAQ;AACvD,aAAO,SAAS,OAAO,iBAAiB,SAAA;AAAA,IACzC;AAAA,EACD,GAAG,CAAA,CAAE;AACN;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"useRedirectToBacklink.js","sources":["../../../../../../packages/react-client-tenant/src/internal/hooks/useRedirectToBacklink.ts"],"sourcesContent":["import { useCallback, useEffect } from 'react'\nimport { useIdentity } from '../../contexts'\n\nconst getBacklinkFromUrl = () => {\n\treturn new URLSearchParams(window.location.search).get('backlink')\n}\n\nexport const useSaveBacklink = ({ storage = 'session' }: {\n\tstorage?: 'session' | 'local'\n} = {}) => {\n\treturn useCallback(() => {\n\t\tconst backlink = getBacklinkFromUrl()\n\t\tif (!backlink) {\n\t\t\treturn\n\t\t}\n\t\tif (storage === 'local') {\n\t\t\tlocalStorage.setItem('backlink', backlink)\n\t\t} else {\n\t\t\tsessionStorage.setItem('backlink', backlink)\n\t\t}\n\t}, [storage])\n}\n\nexport const useRedirectToBacklinkCallback = () => {\n\treturn useCallback(() => {\n\t\tconst backlink = getBacklinkFromUrl() ?? sessionStorage.getItem('backlink') ?? localStorage.getItem('backlink')\n\t\tif (!backlink) {\n\t\t\treturn\n\t\t}\n\t\tsessionStorage.removeItem('backlink')\n\t\tlocalStorage.removeItem('backlink')\n\t\tconst resolvedBacklink = new URL(backlink, window.location.href)\n\t\tif (resolvedBacklink.origin === window.location.origin) {\n\t\t\twindow.location.href = resolvedBacklink.toString()\n\t\t}\n\t}, [])\n}\n\nexport const useRedirectToBacklink = () => {\n\tconst identity = useIdentity()\n\tconst redirect = useRedirectToBacklinkCallback()\n\tuseEffect(() => {\n\t\tif (!identity) {\n\t\t\treturn\n\t\t}\n\t\tredirect()\n\t}, [identity, redirect])\n}\n"],"names":[],"mappings":";AAGA,MAAM,qBAAqB,MAAM;AAChC,SAAO,IAAI,gBAAgB,OAAO,SAAS,MAAM,EAAE,IAAI,UAAU;AAClE;AAEO,MAAM,kBAAkB,CAAC,EAAE,UAAU,UAAA,IAExC,CAAA,MAAO;AACV,SAAO,YAAY,MAAM;AACxB,UAAM,WAAW,mBAAA;AACjB,QAAI,CAAC,UAAU;AACd;AAAA,IACD;AACA,QAAI,YAAY,SAAS;AACxB,mBAAa,QAAQ,YAAY,QAAQ;AAAA,IAC1C,OAAO;AACN,qBAAe,QAAQ,YAAY,QAAQ;AAAA,IAC5C;AAAA,EACD,GAAG,CAAC,OAAO,CAAC;AACb;AAEO,MAAM,gCAAgC,MAAM;AAClD,SAAO,YAAY,MAAM;AACxB,UAAM,WAAW,wBAAwB,eAAe,QAAQ,UAAU,KAAK,aAAa,QAAQ,UAAU;AAC9G,QAAI,CAAC,UAAU;AACd;AAAA,IACD;AACA,mBAAe,WAAW,UAAU;AACpC,iBAAa,WAAW,UAAU;AAClC,UAAM,mBAAmB,IAAI,IAAI,UAAU,OAAO,SAAS,IAAI;AAC/D,QAAI,iBAAiB,WAAW,OAAO,SAAS,QAAQ;AACvD,aAAO,SAAS,OAAO,iBAAiB,SAAA;AAAA,IACzC;AAAA,EACD,GAAG,CAAA,CAAE;AACN;"}
1
+ {"version":3,"file":"useRedirectToBacklink.js","sources":["../../../../../../packages/react-client-tenant/src/internal/hooks/useRedirectToBacklink.ts"],"sourcesContent":["import { useCallback, useEffect } from 'react'\nimport { useIdentity } from '../../contexts.js'\n\nconst getBacklinkFromUrl = () => {\n\treturn new URLSearchParams(window.location.search).get('backlink')\n}\n\nexport const useSaveBacklink = ({ storage = 'session' }: {\n\tstorage?: 'session' | 'local'\n} = {}) => {\n\treturn useCallback(() => {\n\t\tconst backlink = getBacklinkFromUrl()\n\t\tif (!backlink) {\n\t\t\treturn\n\t\t}\n\t\tif (storage === 'local') {\n\t\t\tlocalStorage.setItem('backlink', backlink)\n\t\t} else {\n\t\t\tsessionStorage.setItem('backlink', backlink)\n\t\t}\n\t}, [storage])\n}\n\nexport const useRedirectToBacklinkCallback = () => {\n\treturn useCallback(() => {\n\t\tconst backlink = getBacklinkFromUrl() ?? sessionStorage.getItem('backlink') ?? localStorage.getItem('backlink')\n\t\tif (!backlink) {\n\t\t\treturn\n\t\t}\n\t\tsessionStorage.removeItem('backlink')\n\t\tlocalStorage.removeItem('backlink')\n\t\tconst resolvedBacklink = new URL(backlink, window.location.href)\n\t\tif (resolvedBacklink.origin === window.location.origin) {\n\t\t\twindow.location.href = resolvedBacklink.toString()\n\t\t}\n\t}, [])\n}\n\nexport const useRedirectToBacklink = () => {\n\tconst identity = useIdentity()\n\tconst redirect = useRedirectToBacklinkCallback()\n\tuseEffect(() => {\n\t\tif (!identity) {\n\t\t\treturn\n\t\t}\n\t\tredirect()\n\t}, [identity, redirect])\n}\n"],"names":[],"mappings":";AAGA,MAAM,qBAAqB,MAAM;AAChC,SAAO,IAAI,gBAAgB,OAAO,SAAS,MAAM,EAAE,IAAI,UAAU;AAClE;AAEO,MAAM,kBAAkB,CAAC,EAAE,UAAU,UAAA,IAExC,CAAA,MAAO;AACV,SAAO,YAAY,MAAM;AACxB,UAAM,WAAW,mBAAA;AACjB,QAAI,CAAC,UAAU;AACd;AAAA,IACD;AACA,QAAI,YAAY,SAAS;AACxB,mBAAa,QAAQ,YAAY,QAAQ;AAAA,IAC1C,OAAO;AACN,qBAAe,QAAQ,YAAY,QAAQ;AAAA,IAC5C;AAAA,EACD,GAAG,CAAC,OAAO,CAAC;AACb;AAEO,MAAM,gCAAgC,MAAM;AAClD,SAAO,YAAY,MAAM;AACxB,UAAM,WAAW,wBAAwB,eAAe,QAAQ,UAAU,KAAK,aAAa,QAAQ,UAAU;AAC9G,QAAI,CAAC,UAAU;AACd;AAAA,IACD;AACA,mBAAe,WAAW,UAAU;AACpC,iBAAa,WAAW,UAAU;AAClC,UAAM,mBAAmB,IAAI,IAAI,UAAU,OAAO,SAAS,IAAI;AAC/D,QAAI,iBAAiB,WAAW,OAAO,SAAS,QAAQ;AACvD,aAAO,SAAS,OAAO,iBAAiB,SAAA;AAAA,IACzC;AAAA,EACD,GAAG,CAAA,CAAE;AACN;"}
@@ -1,5 +1,5 @@
1
1
  import { ReactNode } from 'react';
2
- import { IdentityStateValue } from '../types';
2
+ import { IdentityStateValue } from '../types/index.js';
3
3
  export interface IdentityStateProps {
4
4
  state: IdentityStateValue | IdentityStateValue[];
5
5
  children: ReactNode;
@@ -1 +1 @@
1
- {"version":3,"file":"IdentityState.d.ts","sourceRoot":"","sources":["../../../src/components/IdentityState.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AACxC,OAAO,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAA;AAG7C,MAAM,WAAW,kBAAkB;IAClC,KAAK,EAAE,kBAAkB,GAAG,kBAAkB,EAAE,CAAA;IAChD,QAAQ,EAAE,SAAS,CAAA;CACnB;AAED,eAAO,MAAM,aAAa,GAAI,qBAAqB,kBAAkB,mDAIpE,CAAA"}
1
+ {"version":3,"file":"IdentityState.d.ts","sourceRoot":"","sources":["../../../src/components/IdentityState.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AACxC,OAAO,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAA;AAGtD,MAAM,WAAW,kBAAkB;IAClC,KAAK,EAAE,kBAAkB,GAAG,kBAAkB,EAAE,CAAA;IAChD,QAAQ,EAAE,SAAS,CAAA;CACnB;AAED,eAAO,MAAM,aAAa,GAAI,qBAAqB,kBAAkB,mDAIpE,CAAA"}
@@ -1,6 +1,6 @@
1
1
  import { ReactElement } from 'react';
2
2
  import { ChangeMyPasswordErrorCode } from '@contember/graphql-client-tenant';
3
- import { FormContextValue, FormError, FormState } from '../../types';
3
+ import { FormContextValue, FormError, FormState } from '../../types/index.js';
4
4
  export type ChangeMyPasswordFormValues = {
5
5
  currentPassword: string;
6
6
  newPassword: string;
@@ -1 +1 @@
1
- {"version":3,"file":"ChangeMyPasswordForm.d.ts","sourceRoot":"","sources":["../../../../src/components/forms/ChangeMyPasswordForm.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,OAAO,CAAA;AACpC,OAAO,EAAE,yBAAyB,EAAE,MAAM,kCAAkC,CAAA;AAE5E,OAAO,EAAE,gBAAgB,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AAIpE,MAAM,MAAM,0BAA0B,GAAG;IACxC,eAAe,EAAE,MAAM,CAAA;IACvB,WAAW,EAAE,MAAM,CAAA;IACnB,oBAAoB,EAAE,MAAM,CAAA;CAC5B,CAAA;AAED,MAAM,MAAM,6BAA6B,GACtC,yBAAyB,GACzB,gBAAgB,GAChB,eAAe,GACf,mBAAmB,GACnB,eAAe,CAAA;AAElB,MAAM,MAAM,yBAAyB,GAAG,SAAS,CAAA;AAEjD,MAAM,MAAM,yBAAyB,GAAG,SAAS,CAAC,0BAA0B,EAAE,6BAA6B,CAAC,CAAA;AAE5G,MAAM,MAAM,gCAAgC,GAAG,gBAAgB,CAAC,0BAA0B,EAAE,6BAA6B,CAAC,CAAA;AAE1H,MAAM,WAAW,yBAAyB;IACzC,QAAQ,EAAE,YAAY,CAAA;IACtB,SAAS,CAAC,EAAE,MAAM,IAAI,CAAA;CACtB;AAED,eAAO,MAAM,uBAAuB,EAAc,MAAM,gCAAgC,CAAA;AAExF,eAAO,MAAM,oBAAoB,GAAI,yBAAyB,yBAAyB,4CAkCtF,CAAA"}
1
+ {"version":3,"file":"ChangeMyPasswordForm.d.ts","sourceRoot":"","sources":["../../../../src/components/forms/ChangeMyPasswordForm.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,OAAO,CAAA;AACpC,OAAO,EAAE,yBAAyB,EAAE,MAAM,kCAAkC,CAAA;AAE5E,OAAO,EAAE,gBAAgB,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAA;AAI7E,MAAM,MAAM,0BAA0B,GAAG;IACxC,eAAe,EAAE,MAAM,CAAA;IACvB,WAAW,EAAE,MAAM,CAAA;IACnB,oBAAoB,EAAE,MAAM,CAAA;CAC5B,CAAA;AAED,MAAM,MAAM,6BAA6B,GACtC,yBAAyB,GACzB,gBAAgB,GAChB,eAAe,GACf,mBAAmB,GACnB,eAAe,CAAA;AAElB,MAAM,MAAM,yBAAyB,GAAG,SAAS,CAAA;AAEjD,MAAM,MAAM,yBAAyB,GAAG,SAAS,CAAC,0BAA0B,EAAE,6BAA6B,CAAC,CAAA;AAE5G,MAAM,MAAM,gCAAgC,GAAG,gBAAgB,CAAC,0BAA0B,EAAE,6BAA6B,CAAC,CAAA;AAE1H,MAAM,WAAW,yBAAyB;IACzC,QAAQ,EAAE,YAAY,CAAA;IACtB,SAAS,CAAC,EAAE,MAAM,IAAI,CAAA;CACtB;AAED,eAAO,MAAM,uBAAuB,EAAc,MAAM,gCAAgC,CAAA;AAExF,eAAO,MAAM,oBAAoB,GAAI,yBAAyB,yBAAyB,4CAkCtF,CAAA"}
@@ -0,0 +1,18 @@
1
+ import { ReactElement } from 'react';
2
+ import { ConfirmEmailChangeErrorCode } from '@contember/graphql-client-tenant';
3
+ import { FormContextValue, FormError, FormState } from '../../types/index.js';
4
+ export type ConfirmEmailChangeFormValues = {
5
+ token: string;
6
+ };
7
+ export type ConfirmEmailChangeFormErrorCode = ConfirmEmailChangeErrorCode | 'FIELD_REQUIRED' | 'INVALID_VALUE' | 'UNKNOWN_ERROR';
8
+ export type ConfirmEmailChangeFormState = FormState;
9
+ export type ConfirmEmailChangeFormError = FormError<ConfirmEmailChangeFormValues, ConfirmEmailChangeFormErrorCode>;
10
+ export type ConfirmEmailChangeFormContextValue = FormContextValue<ConfirmEmailChangeFormValues, ConfirmEmailChangeFormErrorCode>;
11
+ export interface ConfirmEmailChangeFormProps {
12
+ children: ReactElement;
13
+ onSuccess?: () => void;
14
+ token?: string;
15
+ }
16
+ export declare const useConfirmEmailChangeForm: () => ConfirmEmailChangeFormContextValue;
17
+ export declare const ConfirmEmailChangeForm: ({ children, onSuccess, token }: ConfirmEmailChangeFormProps) => import("react/jsx-runtime").JSX.Element;
18
+ //# sourceMappingURL=ConfirmEmailChangeForm.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ConfirmEmailChangeForm.d.ts","sourceRoot":"","sources":["../../../../src/components/forms/ConfirmEmailChangeForm.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,OAAO,CAAA;AAEpC,OAAO,EAAE,2BAA2B,EAAE,MAAM,kCAAkC,CAAA;AAE9E,OAAO,EAAE,gBAAgB,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAA;AAI7E,MAAM,MAAM,4BAA4B,GAAG;IAC1C,KAAK,EAAE,MAAM,CAAA;CACb,CAAA;AAED,MAAM,MAAM,+BAA+B,GACxC,2BAA2B,GAC3B,gBAAgB,GAChB,eAAe,GACf,eAAe,CAAA;AAElB,MAAM,MAAM,2BAA2B,GAAG,SAAS,CAAA;AAEnD,MAAM,MAAM,2BAA2B,GAAG,SAAS,CAAC,4BAA4B,EAAE,+BAA+B,CAAC,CAAA;AAElH,MAAM,MAAM,kCAAkC,GAAG,gBAAgB,CAAC,4BAA4B,EAAE,+BAA+B,CAAC,CAAA;AAEhI,MAAM,WAAW,2BAA2B;IAC3C,QAAQ,EAAE,YAAY,CAAA;IACtB,SAAS,CAAC,EAAE,MAAM,IAAI,CAAA;IACtB,KAAK,CAAC,EAAE,MAAM,CAAA;CACd;AAED,eAAO,MAAM,yBAAyB,EAAc,MAAM,kCAAkC,CAAA;AAE5F,eAAO,MAAM,sBAAsB,GAAI,gCAAgC,2BAA2B,4CAyBjG,CAAA"}
@@ -1,7 +1,7 @@
1
1
  import { ReactElement } from 'react';
2
- import { FormContextValue, FormError, FormState } from '../../types';
2
+ import { FormContextValue, FormError, FormState } from '../../types/index.js';
3
3
  import { CreateApiKeyErrorCode, MembershipInput } from '@contember/graphql-client-tenant';
4
- import { CreateApiKeyMutationResult } from '../../hooks';
4
+ import { CreateApiKeyMutationResult } from '../../hooks/index.js';
5
5
  export type CreateApiKeyFormValues = {
6
6
  description: string;
7
7
  memberships: readonly MembershipInput[];
@@ -1 +1 @@
1
- {"version":3,"file":"CreateApiKeyForm.d.ts","sourceRoot":"","sources":["../../../../src/components/forms/CreateApiKeyForm.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,OAAO,CAAA;AAEpC,OAAO,EAAE,gBAAgB,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AAEpE,OAAO,EAAE,qBAAqB,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAA;AACzF,OAAO,EAAE,0BAA0B,EAA2B,MAAM,aAAa,CAAA;AAEjF,MAAM,MAAM,sBAAsB,GAAG;IACpC,WAAW,EAAE,MAAM,CAAA;IACnB,WAAW,EAAE,SAAS,eAAe,EAAE,CAAA;CACvC,CAAA;AAED,MAAM,MAAM,yBAAyB,GAClC,qBAAqB,GACrB,eAAe,GACf,gBAAgB,CAAA;AAEnB,MAAM,MAAM,qBAAqB,GAAG,SAAS,CAAA;AAE7C,MAAM,MAAM,qBAAqB,GAAG,SAAS,CAAC,sBAAsB,EAAE,yBAAyB,CAAC,CAAA;AAEhG,MAAM,MAAM,4BAA4B,GAAG,gBAAgB,CAAC,sBAAsB,EAAE,yBAAyB,CAAC,CAAA;AAE9G,MAAM,WAAW,qBAAqB;IACrC,QAAQ,EAAE,YAAY,CAAA;IACtB,WAAW,EAAE,MAAM,CAAA;IACnB,kBAAkB,CAAC,EAAE,SAAS,eAAe,EAAE,CAAA;IAC/C,SAAS,CAAC,EAAE,CAAC,IAAI,EAAE;QAAE,MAAM,EAAE,0BAA0B,CAAA;KAAE,KAAK,IAAI,CAAA;CAClE;AAED,eAAO,MAAM,mBAAmB,EAAc,MAAM,4BAA4B,CAAA;AAEhF,eAAO,MAAM,gBAAgB,GAAI,0DAA0D,qBAAqB,4CA+B/G,CAAA"}
1
+ {"version":3,"file":"CreateApiKeyForm.d.ts","sourceRoot":"","sources":["../../../../src/components/forms/CreateApiKeyForm.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,OAAO,CAAA;AAEpC,OAAO,EAAE,gBAAgB,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAA;AAE7E,OAAO,EAAE,qBAAqB,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAA;AACzF,OAAO,EAAE,0BAA0B,EAA2B,MAAM,sBAAsB,CAAA;AAE1F,MAAM,MAAM,sBAAsB,GAAG;IACpC,WAAW,EAAE,MAAM,CAAA;IACnB,WAAW,EAAE,SAAS,eAAe,EAAE,CAAA;CACvC,CAAA;AAED,MAAM,MAAM,yBAAyB,GAClC,qBAAqB,GACrB,eAAe,GACf,gBAAgB,CAAA;AAEnB,MAAM,MAAM,qBAAqB,GAAG,SAAS,CAAA;AAE7C,MAAM,MAAM,qBAAqB,GAAG,SAAS,CAAC,sBAAsB,EAAE,yBAAyB,CAAC,CAAA;AAEhG,MAAM,MAAM,4BAA4B,GAAG,gBAAgB,CAAC,sBAAsB,EAAE,yBAAyB,CAAC,CAAA;AAE9G,MAAM,WAAW,qBAAqB;IACrC,QAAQ,EAAE,YAAY,CAAA;IACtB,WAAW,EAAE,MAAM,CAAA;IACnB,kBAAkB,CAAC,EAAE,SAAS,eAAe,EAAE,CAAA;IAC/C,SAAS,CAAC,EAAE,CAAC,IAAI,EAAE;QAAE,MAAM,EAAE,0BAA0B,CAAA;KAAE,KAAK,IAAI,CAAA;CAClE;AAED,eAAO,MAAM,mBAAmB,EAAc,MAAM,4BAA4B,CAAA;AAEhF,eAAO,MAAM,gBAAgB,GAAI,0DAA0D,qBAAqB,4CA+B/G,CAAA"}
@@ -1,7 +1,7 @@
1
1
  import { ReactElement } from 'react';
2
- import { FormContextValue, FormError, FormState } from '../../types';
2
+ import { FormContextValue, FormError, FormState } from '../../types/index.js';
3
3
  import { CreateSessionTokenErrorCode } from '@contember/graphql-client-tenant';
4
- import { CreateSessionTokenMutationResult } from '../../hooks';
4
+ import { CreateSessionTokenMutationResult } from '../../hooks/index.js';
5
5
  export type CreateSessionTokenFormValues = {
6
6
  email: string;
7
7
  };
@@ -1 +1 @@
1
- {"version":3,"file":"CreateSessionTokenForm.d.ts","sourceRoot":"","sources":["../../../../src/components/forms/CreateSessionTokenForm.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,OAAO,CAAA;AAEpC,OAAO,EAAE,gBAAgB,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AAEpE,OAAO,EAAE,2BAA2B,EAAE,MAAM,kCAAkC,CAAA;AAC9E,OAAO,EAAE,gCAAgC,EAAiC,MAAM,aAAa,CAAA;AAE7F,MAAM,MAAM,4BAA4B,GAAG;IAC1C,KAAK,EAAE,MAAM,CAAA;CACb,CAAA;AAED,MAAM,MAAM,+BAA+B,GACxC,2BAA2B,GAC3B,eAAe,GACf,gBAAgB,CAAA;AAEnB,MAAM,MAAM,2BAA2B,GAAG,SAAS,CAAA;AAEnD,MAAM,MAAM,2BAA2B,GAAG,SAAS,CAAC,4BAA4B,EAAE,+BAA+B,CAAC,CAAA;AAElH,MAAM,MAAM,kCAAkC,GAAG,gBAAgB,CAAC,4BAA4B,EAAE,+BAA+B,CAAC,CAAA;AAEhI,MAAM,WAAW,2BAA2B;IAC3C,QAAQ,EAAE,YAAY,CAAA;IACtB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,SAAS,CAAC,EAAE,CAAC,IAAI,EAAE;QAAE,MAAM,EAAE,gCAAgC,CAAA;KAAE,KAAK,IAAI,CAAA;CACxE;AAED,eAAO,MAAM,yBAAyB,EAAc,MAAM,kCAAkC,CAAA;AAE5F,eAAO,MAAM,sBAAsB,GAAI,+CAA+C,2BAA2B,4CA0BhH,CAAA"}
1
+ {"version":3,"file":"CreateSessionTokenForm.d.ts","sourceRoot":"","sources":["../../../../src/components/forms/CreateSessionTokenForm.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,OAAO,CAAA;AAEpC,OAAO,EAAE,gBAAgB,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAA;AAE7E,OAAO,EAAE,2BAA2B,EAAE,MAAM,kCAAkC,CAAA;AAC9E,OAAO,EAAE,gCAAgC,EAAiC,MAAM,sBAAsB,CAAA;AAEtG,MAAM,MAAM,4BAA4B,GAAG;IAC1C,KAAK,EAAE,MAAM,CAAA;CACb,CAAA;AAED,MAAM,MAAM,+BAA+B,GACxC,2BAA2B,GAC3B,eAAe,GACf,gBAAgB,CAAA;AAEnB,MAAM,MAAM,2BAA2B,GAAG,SAAS,CAAA;AAEnD,MAAM,MAAM,2BAA2B,GAAG,SAAS,CAAC,4BAA4B,EAAE,+BAA+B,CAAC,CAAA;AAElH,MAAM,MAAM,kCAAkC,GAAG,gBAAgB,CAAC,4BAA4B,EAAE,+BAA+B,CAAC,CAAA;AAEhI,MAAM,WAAW,2BAA2B;IAC3C,QAAQ,EAAE,YAAY,CAAA;IACtB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,SAAS,CAAC,EAAE,CAAC,IAAI,EAAE;QAAE,MAAM,EAAE,gCAAgC,CAAA;KAAE,KAAK,IAAI,CAAA;CACxE;AAED,eAAO,MAAM,yBAAyB,EAAc,MAAM,kCAAkC,CAAA;AAE5F,eAAO,MAAM,sBAAsB,GAAI,+CAA+C,2BAA2B,4CA0BhH,CAAA"}
@@ -1,7 +1,7 @@
1
1
  import { ReactElement } from 'react';
2
- import { FormContextValue, FormError, FormState } from '../../types';
2
+ import { FormContextValue, FormError, FormState } from '../../types/index.js';
3
3
  import { InviteErrorCode, InviteOptions, MembershipInput } from '@contember/graphql-client-tenant';
4
- import { InviteMutationResult } from '../../hooks';
4
+ import { InviteMutationResult } from '../../hooks/index.js';
5
5
  export type InviteFormValues = {
6
6
  email: string;
7
7
  name: string;
@@ -1 +1 @@
1
- {"version":3,"file":"InviteForm.d.ts","sourceRoot":"","sources":["../../../../src/components/forms/InviteForm.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,OAAO,CAAA;AAEpC,OAAO,EAAE,gBAAgB,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AAEpE,OAAO,EAAE,eAAe,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAA;AAClG,OAAO,EAAE,oBAAoB,EAAqB,MAAM,aAAa,CAAA;AAErE,MAAM,MAAM,gBAAgB,GAAG;IAC9B,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,EAAE,MAAM,CAAA;IACZ,WAAW,EAAE,SAAS,eAAe,EAAE,CAAA;CACvC,CAAA;AAED,MAAM,MAAM,mBAAmB,GAC5B,eAAe,GACf,eAAe,GACf,gBAAgB,CAAA;AAEnB,MAAM,MAAM,eAAe,GAAG,SAAS,CAAA;AAEvC,MAAM,MAAM,eAAe,GAAG,SAAS,CAAC,gBAAgB,EAAE,mBAAmB,CAAC,CAAA;AAE9E,MAAM,MAAM,sBAAsB,GAAG,gBAAgB,CAAC,gBAAgB,EAAE,mBAAmB,CAAC,CAAA;AAE5F,MAAM,WAAW,eAAe;IAC/B,QAAQ,EAAE,YAAY,CAAA;IACtB,WAAW,EAAE,MAAM,CAAA;IACnB,aAAa,CAAC,EAAE,aAAa,CAAA;IAC7B,kBAAkB,CAAC,EAAE,SAAS,eAAe,EAAE,CAAA;IAC/C,SAAS,CAAC,EAAE,CAAC,IAAI,EAAE;QAAE,MAAM,EAAE,oBAAoB,CAAA;KAAE,KAAK,IAAI,CAAA;CAC5D;AAED,eAAO,MAAM,aAAa,EAAc,MAAM,sBAAsB,CAAA;AAEpE,eAAO,MAAM,UAAU,GAAI,yEAAyE,eAAe,4CAkClH,CAAA"}
1
+ {"version":3,"file":"InviteForm.d.ts","sourceRoot":"","sources":["../../../../src/components/forms/InviteForm.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,OAAO,CAAA;AAEpC,OAAO,EAAE,gBAAgB,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAA;AAE7E,OAAO,EAAE,eAAe,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAA;AAClG,OAAO,EAAE,oBAAoB,EAAqB,MAAM,sBAAsB,CAAA;AAE9E,MAAM,MAAM,gBAAgB,GAAG;IAC9B,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,EAAE,MAAM,CAAA;IACZ,WAAW,EAAE,SAAS,eAAe,EAAE,CAAA;CACvC,CAAA;AAED,MAAM,MAAM,mBAAmB,GAC5B,eAAe,GACf,eAAe,GACf,gBAAgB,CAAA;AAEnB,MAAM,MAAM,eAAe,GAAG,SAAS,CAAA;AAEvC,MAAM,MAAM,eAAe,GAAG,SAAS,CAAC,gBAAgB,EAAE,mBAAmB,CAAC,CAAA;AAE9E,MAAM,MAAM,sBAAsB,GAAG,gBAAgB,CAAC,gBAAgB,EAAE,mBAAmB,CAAC,CAAA;AAE5F,MAAM,WAAW,eAAe;IAC/B,QAAQ,EAAE,YAAY,CAAA;IACtB,WAAW,EAAE,MAAM,CAAA;IACnB,aAAa,CAAC,EAAE,aAAa,CAAA;IAC7B,kBAAkB,CAAC,EAAE,SAAS,eAAe,EAAE,CAAA;IAC/C,SAAS,CAAC,EAAE,CAAC,IAAI,EAAE;QAAE,MAAM,EAAE,oBAAoB,CAAA;KAAE,KAAK,IAAI,CAAA;CAC5D;AAED,eAAO,MAAM,aAAa,EAAc,MAAM,sBAAsB,CAAA;AAEpE,eAAO,MAAM,UAAU,GAAI,yEAAyE,eAAe,4CAkClH,CAAA"}
@@ -1,6 +1,6 @@
1
1
  import { ReactElement } from 'react';
2
2
  import { SignInErrorCode } from '@contember/graphql-client-tenant';
3
- import { FormContextValue, FormError, FormState } from '../../types';
3
+ import { FormContextValue, FormError, FormState } from '../../types/index.js';
4
4
  export type LoginFormValues = {
5
5
  email: string;
6
6
  password: string;
@@ -1 +1 @@
1
- {"version":3,"file":"LoginForm.d.ts","sourceRoot":"","sources":["../../../../src/components/forms/LoginForm.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAwB,MAAM,OAAO,CAAA;AAG1D,OAAO,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAA;AAClE,OAAO,EAAE,gBAAgB,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AAMpE,MAAM,MAAM,eAAe,GAAG;IAC7B,KAAK,EAAE,MAAM,CAAA;IACb,QAAQ,EAAE,MAAM,CAAA;IAChB,QAAQ,EAAE,MAAM,CAAA;CAChB,CAAA;AAED,MAAM,MAAM,kBAAkB,GAC3B,eAAe,GACf,gBAAgB,GAChB,eAAe,GACf,eAAe,CAAA;AAElB,MAAM,MAAM,cAAc,GACvB,SAAS,GACT,cAAc,CAAA;AAEjB,MAAM,MAAM,cAAc,GAAG,SAAS,CAAC,eAAe,EAAE,kBAAkB,CAAC,CAAA;AAE3E,MAAM,MAAM,qBAAqB,GAAG,gBAAgB,CAAC,eAAe,EAAE,kBAAkB,EAAE,cAAc,CAAC,CAAA;AAEzG,MAAM,WAAW,cAAc;IAC9B,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,QAAQ,EAAE,YAAY,CAAA;IACtB,SAAS,CAAC,EAAE,MAAM,IAAI,CAAA;CACtB;AAED,eAAO,MAAM,YAAY,EAAc,MAAM,qBAAqB,CAAA;AAQlE,eAAO,MAAM,SAAS,GAAI,qCAAgE,cAAc,4CAuDvG,CAAA"}
1
+ {"version":3,"file":"LoginForm.d.ts","sourceRoot":"","sources":["../../../../src/components/forms/LoginForm.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAwB,MAAM,OAAO,CAAA;AAG1D,OAAO,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAA;AAClE,OAAO,EAAE,gBAAgB,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAA;AAM7E,MAAM,MAAM,eAAe,GAAG;IAC7B,KAAK,EAAE,MAAM,CAAA;IACb,QAAQ,EAAE,MAAM,CAAA;IAChB,QAAQ,EAAE,MAAM,CAAA;CAChB,CAAA;AAED,MAAM,MAAM,kBAAkB,GAC3B,eAAe,GACf,gBAAgB,GAChB,eAAe,GACf,eAAe,CAAA;AAElB,MAAM,MAAM,cAAc,GACvB,SAAS,GACT,cAAc,CAAA;AAEjB,MAAM,MAAM,cAAc,GAAG,SAAS,CAAC,eAAe,EAAE,kBAAkB,CAAC,CAAA;AAE3E,MAAM,MAAM,qBAAqB,GAAG,gBAAgB,CAAC,eAAe,EAAE,kBAAkB,EAAE,cAAc,CAAC,CAAA;AAEzG,MAAM,WAAW,cAAc;IAC9B,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,QAAQ,EAAE,YAAY,CAAA;IACtB,SAAS,CAAC,EAAE,MAAM,IAAI,CAAA;CACtB;AAED,eAAO,MAAM,YAAY,EAAc,MAAM,qBAAqB,CAAA;AAQlE,eAAO,MAAM,SAAS,GAAI,qCAAgE,cAAc,4CAuDvG,CAAA"}
@@ -1,5 +1,5 @@
1
1
  import { ReactElement } from 'react';
2
- import { FormContextValue, FormError, FormState } from '../../types';
2
+ import { FormContextValue, FormError, FormState } from '../../types/index.js';
3
3
  import { ConfirmOtpErrorCode } from '@contember/graphql-client-tenant';
4
4
  export type OtpConfirmFormValues = {
5
5
  otpToken: string;
@@ -1 +1 @@
1
- {"version":3,"file":"OtpConfirmForm.d.ts","sourceRoot":"","sources":["../../../../src/components/forms/OtpConfirmForm.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,OAAO,CAAA;AAEpC,OAAO,EAAE,gBAAgB,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AAEpE,OAAO,EAAE,mBAAmB,EAAE,MAAM,kCAAkC,CAAA;AAGtE,MAAM,MAAM,oBAAoB,GAAG;IAClC,QAAQ,EAAE,MAAM,CAAA;CAChB,CAAA;AAED,MAAM,MAAM,uBAAuB,GAChC,mBAAmB,GACnB,gBAAgB,GAChB,eAAe,CAAA;AAElB,MAAM,MAAM,mBAAmB,GAAG,SAAS,CAAA;AAE3C,MAAM,MAAM,mBAAmB,GAAG,SAAS,CAAC,oBAAoB,EAAE,uBAAuB,CAAC,CAAA;AAE1F,MAAM,MAAM,0BAA0B,GAAG,gBAAgB,CAAC,oBAAoB,EAAE,uBAAuB,CAAC,CAAA;AAExG,MAAM,WAAW,mBAAmB;IACnC,QAAQ,EAAE,YAAY,CAAA;IACtB,SAAS,CAAC,EAAE,MAAM,IAAI,CAAA;CACtB;AAED,eAAO,MAAM,iBAAiB,EAAc,MAAM,0BAA0B,CAAA;AAE5E,eAAO,MAAM,cAAc,GAAI,yBAAyB,mBAAmB,4CA8B1E,CAAA"}
1
+ {"version":3,"file":"OtpConfirmForm.d.ts","sourceRoot":"","sources":["../../../../src/components/forms/OtpConfirmForm.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,OAAO,CAAA;AAEpC,OAAO,EAAE,gBAAgB,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAA;AAE7E,OAAO,EAAE,mBAAmB,EAAE,MAAM,kCAAkC,CAAA;AAGtE,MAAM,MAAM,oBAAoB,GAAG;IAClC,QAAQ,EAAE,MAAM,CAAA;CAChB,CAAA;AAED,MAAM,MAAM,uBAAuB,GAChC,mBAAmB,GACnB,gBAAgB,GAChB,eAAe,CAAA;AAElB,MAAM,MAAM,mBAAmB,GAAG,SAAS,CAAA;AAE3C,MAAM,MAAM,mBAAmB,GAAG,SAAS,CAAC,oBAAoB,EAAE,uBAAuB,CAAC,CAAA;AAE1F,MAAM,MAAM,0BAA0B,GAAG,gBAAgB,CAAC,oBAAoB,EAAE,uBAAuB,CAAC,CAAA;AAExG,MAAM,WAAW,mBAAmB;IACnC,QAAQ,EAAE,YAAY,CAAA;IACtB,SAAS,CAAC,EAAE,MAAM,IAAI,CAAA;CACtB;AAED,eAAO,MAAM,iBAAiB,EAAc,MAAM,0BAA0B,CAAA;AAE5E,eAAO,MAAM,cAAc,GAAI,yBAAyB,mBAAmB,4CA8B1E,CAAA"}
@@ -1,6 +1,6 @@
1
1
  import { ReactElement } from 'react';
2
- import { FormContextValue, FormError, FormState } from '../../types';
3
- import { PrepareOtpMutationResult } from '../../hooks';
2
+ import { FormContextValue, FormError, FormState } from '../../types/index.js';
3
+ import { PrepareOtpMutationResult } from '../../hooks/index.js';
4
4
  export type OtpPrepareFormValues = {
5
5
  label: string;
6
6
  };
@@ -1 +1 @@
1
- {"version":3,"file":"OtpPrepareForm.d.ts","sourceRoot":"","sources":["../../../../src/components/forms/OtpPrepareForm.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAwB,MAAM,OAAO,CAAA;AAE1D,OAAO,EAAE,gBAAgB,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AAEpE,OAAO,EAAE,wBAAwB,EAAyB,MAAM,aAAa,CAAA;AAE7E,MAAM,MAAM,oBAAoB,GAAG;IAClC,KAAK,EAAE,MAAM,CAAA;CACb,CAAA;AAED,MAAM,MAAM,uBAAuB,GAAG,eAAe,CAAA;AAErD,MAAM,MAAM,mBAAmB,GAAG,SAAS,CAAA;AAE3C,MAAM,MAAM,mBAAmB,GAAG,SAAS,CAAC,oBAAoB,EAAE,uBAAuB,CAAC,CAAA;AAE1F,MAAM,MAAM,0BAA0B,GAAG,gBAAgB,CAAC,oBAAoB,EAAE,uBAAuB,CAAC,CAAA;AAExG,MAAM,WAAW,mBAAmB;IACnC,QAAQ,EAAE,YAAY,CAAA;IACtB,SAAS,CAAC,EAAE,CAAC,IAAI,EAAE;QAAE,MAAM,EAAE,wBAAwB,CAAA;KAAE,KAAK,IAAI,CAAA;CAChE;AAED,eAAO,MAAM,iBAAiB,EAAc,MAAM,0BAA0B,CAAA;AAE5E,eAAO,MAAM,cAAc,GAAI,yBAAyB,mBAAmB,4CAiB1E,CAAA"}
1
+ {"version":3,"file":"OtpPrepareForm.d.ts","sourceRoot":"","sources":["../../../../src/components/forms/OtpPrepareForm.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAwB,MAAM,OAAO,CAAA;AAE1D,OAAO,EAAE,gBAAgB,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAA;AAE7E,OAAO,EAAE,wBAAwB,EAAyB,MAAM,sBAAsB,CAAA;AAEtF,MAAM,MAAM,oBAAoB,GAAG;IAClC,KAAK,EAAE,MAAM,CAAA;CACb,CAAA;AAED,MAAM,MAAM,uBAAuB,GAAG,eAAe,CAAA;AAErD,MAAM,MAAM,mBAAmB,GAAG,SAAS,CAAA;AAE3C,MAAM,MAAM,mBAAmB,GAAG,SAAS,CAAC,oBAAoB,EAAE,uBAAuB,CAAC,CAAA;AAE1F,MAAM,MAAM,0BAA0B,GAAG,gBAAgB,CAAC,oBAAoB,EAAE,uBAAuB,CAAC,CAAA;AAExG,MAAM,WAAW,mBAAmB;IACnC,QAAQ,EAAE,YAAY,CAAA;IACtB,SAAS,CAAC,EAAE,CAAC,IAAI,EAAE;QAAE,MAAM,EAAE,wBAAwB,CAAA;KAAE,KAAK,IAAI,CAAA;CAChE;AAED,eAAO,MAAM,iBAAiB,EAAc,MAAM,0BAA0B,CAAA;AAE5E,eAAO,MAAM,cAAc,GAAI,yBAAyB,mBAAmB,4CAiB1E,CAAA"}
@@ -1,6 +1,6 @@
1
1
  import { ReactElement } from 'react';
2
2
  import { ResetPasswordErrorCode } from '@contember/graphql-client-tenant';
3
- import { FormContextValue, FormError, FormState } from '../../types';
3
+ import { FormContextValue, FormError, FormState } from '../../types/index.js';
4
4
  export type PasswordResetFormValues = {
5
5
  token: string;
6
6
  password: string;
@@ -1 +1 @@
1
- {"version":3,"file":"PasswordResetForm.d.ts","sourceRoot":"","sources":["../../../../src/components/forms/PasswordResetForm.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,OAAO,CAAA;AAEpC,OAAO,EAAE,sBAAsB,EAAE,MAAM,kCAAkC,CAAA;AAEzE,OAAO,EAAE,gBAAgB,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AAIpE,MAAM,MAAM,uBAAuB,GAAG;IACrC,KAAK,EAAE,MAAM,CAAA;IACb,QAAQ,EAAE,MAAM,CAAA;IAChB,oBAAoB,EAAE,MAAM,CAAA;CAC5B,CAAA;AAED,MAAM,MAAM,0BAA0B,GACnC,sBAAsB,GACtB,gBAAgB,GAChB,eAAe,GACf,mBAAmB,GACnB,eAAe,CAAA;AAElB,MAAM,MAAM,sBAAsB,GAAG,SAAS,CAAA;AAE9C,MAAM,MAAM,sBAAsB,GAAG,SAAS,CAAC,uBAAuB,EAAE,0BAA0B,CAAC,CAAA;AAEnG,MAAM,MAAM,6BAA6B,GAAG,gBAAgB,CAAC,uBAAuB,EAAE,0BAA0B,CAAC,CAAA;AAEjH,MAAM,WAAW,sBAAsB;IACtC,QAAQ,EAAE,YAAY,CAAA;IACtB,SAAS,CAAC,EAAE,MAAM,IAAI,CAAA;IACtB,KAAK,CAAC,EAAE,MAAM,CAAA;CACd;AAED,eAAO,MAAM,oBAAoB,EAAc,MAAM,6BAA6B,CAAA;AAElF,eAAO,MAAM,iBAAiB,GAAI,gCAAgC,sBAAsB,4CAqCvF,CAAA"}
1
+ {"version":3,"file":"PasswordResetForm.d.ts","sourceRoot":"","sources":["../../../../src/components/forms/PasswordResetForm.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,OAAO,CAAA;AAEpC,OAAO,EAAE,sBAAsB,EAAE,MAAM,kCAAkC,CAAA;AAEzE,OAAO,EAAE,gBAAgB,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAA;AAI7E,MAAM,MAAM,uBAAuB,GAAG;IACrC,KAAK,EAAE,MAAM,CAAA;IACb,QAAQ,EAAE,MAAM,CAAA;IAChB,oBAAoB,EAAE,MAAM,CAAA;CAC5B,CAAA;AAED,MAAM,MAAM,0BAA0B,GACnC,sBAAsB,GACtB,gBAAgB,GAChB,eAAe,GACf,mBAAmB,GACnB,eAAe,CAAA;AAElB,MAAM,MAAM,sBAAsB,GAAG,SAAS,CAAA;AAE9C,MAAM,MAAM,sBAAsB,GAAG,SAAS,CAAC,uBAAuB,EAAE,0BAA0B,CAAC,CAAA;AAEnG,MAAM,MAAM,6BAA6B,GAAG,gBAAgB,CAAC,uBAAuB,EAAE,0BAA0B,CAAC,CAAA;AAEjH,MAAM,WAAW,sBAAsB;IACtC,QAAQ,EAAE,YAAY,CAAA;IACtB,SAAS,CAAC,EAAE,MAAM,IAAI,CAAA;IACtB,KAAK,CAAC,EAAE,MAAM,CAAA;CACd;AAED,eAAO,MAAM,oBAAoB,EAAc,MAAM,6BAA6B,CAAA;AAElF,eAAO,MAAM,iBAAiB,GAAI,gCAAgC,sBAAsB,4CAqCvF,CAAA"}
@@ -1,6 +1,6 @@
1
1
  import { ReactElement } from 'react';
2
2
  import { CreatePasswordResetRequestErrorCode } from '@contember/graphql-client-tenant';
3
- import { FormContextValue, FormError, FormState } from '../../types/forms';
3
+ import { FormContextValue, FormError, FormState } from '../../types/forms.js';
4
4
  export type PasswordResetRequestFormValues = {
5
5
  email: string;
6
6
  };
@@ -1 +1 @@
1
- {"version":3,"file":"PasswordResetRequestForm.d.ts","sourceRoot":"","sources":["../../../../src/components/forms/PasswordResetRequestForm.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAwB,MAAM,OAAO,CAAA;AAE1D,OAAO,EAAE,mCAAmC,EAAE,MAAM,kCAAkC,CAAA;AAEtF,OAAO,EAAE,gBAAgB,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAA;AAI1E,MAAM,MAAM,8BAA8B,GAAG;IAC5C,KAAK,EAAE,MAAM,CAAA;CACb,CAAA;AAED,MAAM,MAAM,iCAAiC,GAC1C,mCAAmC,GACnC,gBAAgB,GAChB,eAAe,GACf,eAAe,CAAA;AAElB,MAAM,MAAM,6BAA6B,GAAG,SAAS,CAAA;AAErD,MAAM,MAAM,6BAA6B,GAAG,SAAS,CAAC,8BAA8B,EAAE,iCAAiC,CAAC,CAAA;AAExH,MAAM,MAAM,oCAAoC,GAAG,gBAAgB,CAAC,8BAA8B,EAAE,iCAAiC,CAAC,CAAA;AAEtI,MAAM,WAAW,6BAA6B;IAC7C,QAAQ,EAAE,YAAY,CAAA;IACtB,SAAS,CAAC,EAAE,MAAM,IAAI,CAAA;CACtB;AAED,eAAO,MAAM,2BAA2B,EAAc,MAAM,oCAAoC,CAAA;AAEhG,eAAO,MAAM,wBAAwB,GAAI,yBAAyB,6BAA6B,4CA0B9F,CAAA"}
1
+ {"version":3,"file":"PasswordResetRequestForm.d.ts","sourceRoot":"","sources":["../../../../src/components/forms/PasswordResetRequestForm.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAwB,MAAM,OAAO,CAAA;AAE1D,OAAO,EAAE,mCAAmC,EAAE,MAAM,kCAAkC,CAAA;AAEtF,OAAO,EAAE,gBAAgB,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAA;AAI7E,MAAM,MAAM,8BAA8B,GAAG;IAC5C,KAAK,EAAE,MAAM,CAAA;CACb,CAAA;AAED,MAAM,MAAM,iCAAiC,GAC1C,mCAAmC,GACnC,gBAAgB,GAChB,eAAe,GACf,eAAe,CAAA;AAElB,MAAM,MAAM,6BAA6B,GAAG,SAAS,CAAA;AAErD,MAAM,MAAM,6BAA6B,GAAG,SAAS,CAAC,8BAA8B,EAAE,iCAAiC,CAAC,CAAA;AAExH,MAAM,MAAM,oCAAoC,GAAG,gBAAgB,CAAC,8BAA8B,EAAE,iCAAiC,CAAC,CAAA;AAEtI,MAAM,WAAW,6BAA6B;IAC7C,QAAQ,EAAE,YAAY,CAAA;IACtB,SAAS,CAAC,EAAE,MAAM,IAAI,CAAA;CACtB;AAED,eAAO,MAAM,2BAA2B,EAAc,MAAM,oCAAoC,CAAA;AAEhG,eAAO,MAAM,wBAAwB,GAAI,yBAAyB,6BAA6B,4CA0B9F,CAAA"}
@@ -1,6 +1,6 @@
1
1
  import * as TenantApi from '@contember/graphql-client-tenant';
2
2
  import { ReactElement } from 'react';
3
- import { FormContextValue, FormError, FormState } from '../../types/forms';
3
+ import { FormContextValue, FormError, FormState } from '../../types/forms.js';
4
4
  export type PasswordlessSignInFormValues = {
5
5
  token: string;
6
6
  otpToken: string;
@@ -1 +1 @@
1
- {"version":3,"file":"PasswordlessSignInForm.d.ts","sourceRoot":"","sources":["../../../../src/components/forms/PasswordlessSignInForm.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,SAAS,MAAM,kCAAkC,CAAA;AAE7D,OAAO,EAAE,YAAY,EAAwB,MAAM,OAAO,CAAA;AAI1D,OAAO,EAAE,gBAAgB,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAA;AAG1E,MAAM,MAAM,4BAA4B,GAAG;IAC1C,KAAK,EAAE,MAAM,CAAA;IACb,QAAQ,EAAE,MAAM,CAAA;CAChB,CAAA;AAED,MAAM,MAAM,+BAA+B,GACxC,SAAS,CAAC,2BAA2B,GACrC,gBAAgB,GAChB,eAAe,GACf,eAAe,CAAA;AAElB,MAAM,MAAM,2BAA2B,GACpC,SAAS,GACT,cAAc,CAAA;AAEjB,MAAM,MAAM,2BAA2B,GAAG,SAAS,CAAC,4BAA4B,EAAE,+BAA+B,CAAC,CAAA;AAElH,MAAM,MAAM,kCAAkC,GAAG,gBAAgB,CAChE,4BAA4B,EAC5B,+BAA+B,EAC/B,2BAA2B,CAC3B,CAAA;AAED,MAAM,WAAW,2BAA2B;IAC3C,SAAS,EAAE,MAAM,CAAA;IACjB,cAAc,EAAE,SAAS,CAAC,0BAA0B,CAAA;IACpD,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,QAAQ,EAAE,YAAY,CAAA;IACtB,SAAS,CAAC,EAAE,MAAM,IAAI,CAAA;CACtB;AAED,eAAO,MAAM,yBAAyB,EAAc,MAAM,kCAAkC,CAAA;AAO5F,eAAO,MAAM,sBAAsB,GAClC,uEAAkG,2BAA2B,4CA8C7H,CAAA"}
1
+ {"version":3,"file":"PasswordlessSignInForm.d.ts","sourceRoot":"","sources":["../../../../src/components/forms/PasswordlessSignInForm.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,SAAS,MAAM,kCAAkC,CAAA;AAE7D,OAAO,EAAE,YAAY,EAAwB,MAAM,OAAO,CAAA;AAI1D,OAAO,EAAE,gBAAgB,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAA;AAG7E,MAAM,MAAM,4BAA4B,GAAG;IAC1C,KAAK,EAAE,MAAM,CAAA;IACb,QAAQ,EAAE,MAAM,CAAA;CAChB,CAAA;AAED,MAAM,MAAM,+BAA+B,GACxC,SAAS,CAAC,2BAA2B,GACrC,gBAAgB,GAChB,eAAe,GACf,eAAe,CAAA;AAElB,MAAM,MAAM,2BAA2B,GACpC,SAAS,GACT,cAAc,CAAA;AAEjB,MAAM,MAAM,2BAA2B,GAAG,SAAS,CAAC,4BAA4B,EAAE,+BAA+B,CAAC,CAAA;AAElH,MAAM,MAAM,kCAAkC,GAAG,gBAAgB,CAChE,4BAA4B,EAC5B,+BAA+B,EAC/B,2BAA2B,CAC3B,CAAA;AAED,MAAM,WAAW,2BAA2B;IAC3C,SAAS,EAAE,MAAM,CAAA;IACjB,cAAc,EAAE,SAAS,CAAC,0BAA0B,CAAA;IACpD,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,QAAQ,EAAE,YAAY,CAAA;IACtB,SAAS,CAAC,EAAE,MAAM,IAAI,CAAA;CACtB;AAED,eAAO,MAAM,yBAAyB,EAAc,MAAM,kCAAkC,CAAA;AAO5F,eAAO,MAAM,sBAAsB,GAClC,uEAAkG,2BAA2B,4CA8C7H,CAAA"}
@@ -1,7 +1,7 @@
1
1
  import { ReactElement } from 'react';
2
2
  import * as TenantApi from '@contember/graphql-client-tenant';
3
- import { FormContextValue, FormError, FormState } from '../../types/forms';
4
- import { InitSignInPasswordlessMutationResult } from '../../hooks';
3
+ import { FormContextValue, FormError, FormState } from '../../types/forms.js';
4
+ import { InitSignInPasswordlessMutationResult } from '../../hooks/index.js';
5
5
  export type PasswordlessSignInInitFormValues = {
6
6
  email: string;
7
7
  };
@@ -1 +1 @@
1
- {"version":3,"file":"PasswordlessSignInInitForm.d.ts","sourceRoot":"","sources":["../../../../src/components/forms/PasswordlessSignInInitForm.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAwB,MAAM,OAAO,CAAA;AAC1D,OAAO,KAAK,SAAS,MAAM,kCAAkC,CAAA;AAE7D,OAAO,EAAE,gBAAgB,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAA;AAE1E,OAAO,EAAE,oCAAoC,EAAqC,MAAM,aAAa,CAAA;AAIrG,MAAM,MAAM,gCAAgC,GAAG;IAC9C,KAAK,EAAE,MAAM,CAAA;CACb,CAAA;AAED,MAAM,MAAM,mCAAmC,GAC5C,SAAS,CAAC,+BAA+B,GACzC,gBAAgB,GAChB,eAAe,GACf,eAAe,CAAA;AAElB,MAAM,MAAM,+BAA+B,GAAG,SAAS,CAAA;AAEvD,MAAM,MAAM,+BAA+B,GAAG,SAAS,CAAC,gCAAgC,EAAE,mCAAmC,CAAC,CAAA;AAE9H,MAAM,MAAM,sCAAsC,GAAG,gBAAgB,CAAC,gCAAgC,EAAE,mCAAmC,CAAC,CAAA;AAE5I,MAAM,WAAW,+BAA+B;IAC/C,QAAQ,EAAE,YAAY,CAAA;IACtB,SAAS,CAAC,EAAE,CAAC,IAAI,EAAE;QAAE,MAAM,EAAE,oCAAoC,CAAA;KAAE,KAAK,IAAI,CAAA;CAC5E;AAED,eAAO,MAAM,6BAA6B,EAAc,MAAM,sCAAsC,CAAA;AAEpG,eAAO,MAAM,0BAA0B,GAAI,yBAAyB,+BAA+B,4CAkClG,CAAA"}
1
+ {"version":3,"file":"PasswordlessSignInInitForm.d.ts","sourceRoot":"","sources":["../../../../src/components/forms/PasswordlessSignInInitForm.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAwB,MAAM,OAAO,CAAA;AAC1D,OAAO,KAAK,SAAS,MAAM,kCAAkC,CAAA;AAE7D,OAAO,EAAE,gBAAgB,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAA;AAE7E,OAAO,EAAE,oCAAoC,EAAqC,MAAM,sBAAsB,CAAA;AAI9G,MAAM,MAAM,gCAAgC,GAAG;IAC9C,KAAK,EAAE,MAAM,CAAA;CACb,CAAA;AAED,MAAM,MAAM,mCAAmC,GAC5C,SAAS,CAAC,+BAA+B,GACzC,gBAAgB,GAChB,eAAe,GACf,eAAe,CAAA;AAElB,MAAM,MAAM,+BAA+B,GAAG,SAAS,CAAA;AAEvD,MAAM,MAAM,+BAA+B,GAAG,SAAS,CAAC,gCAAgC,EAAE,mCAAmC,CAAC,CAAA;AAE9H,MAAM,MAAM,sCAAsC,GAAG,gBAAgB,CAAC,gCAAgC,EAAE,mCAAmC,CAAC,CAAA;AAE5I,MAAM,WAAW,+BAA+B;IAC/C,QAAQ,EAAE,YAAY,CAAA;IACtB,SAAS,CAAC,EAAE,CAAC,IAAI,EAAE;QAAE,MAAM,EAAE,oCAAoC,CAAA;KAAE,KAAK,IAAI,CAAA;CAC5E;AAED,eAAO,MAAM,6BAA6B,EAAc,MAAM,sCAAsC,CAAA;AAEpG,eAAO,MAAM,0BAA0B,GAAI,yBAAyB,+BAA+B,4CAkClG,CAAA"}
@@ -0,0 +1,17 @@
1
+ import { ReactElement } from 'react';
2
+ import { RequestEmailVerificationErrorCode } from '@contember/graphql-client-tenant';
3
+ import { FormContextValue, FormError, FormState } from '../../types/forms.js';
4
+ export type RequestEmailVerificationFormValues = {
5
+ email: string;
6
+ };
7
+ export type RequestEmailVerificationFormErrorCode = RequestEmailVerificationErrorCode | 'FIELD_REQUIRED' | 'INVALID_VALUE' | 'UNKNOWN_ERROR';
8
+ export type RequestEmailVerificationFormState = FormState;
9
+ export type RequestEmailVerificationFormError = FormError<RequestEmailVerificationFormValues, RequestEmailVerificationFormErrorCode>;
10
+ export type RequestEmailVerificationFormContextValue = FormContextValue<RequestEmailVerificationFormValues, RequestEmailVerificationFormErrorCode>;
11
+ export interface RequestEmailVerificationFormProps {
12
+ children: ReactElement;
13
+ onSuccess?: () => void;
14
+ }
15
+ export declare const useRequestEmailVerificationForm: () => RequestEmailVerificationFormContextValue;
16
+ export declare const RequestEmailVerificationForm: ({ children, onSuccess }: RequestEmailVerificationFormProps) => import("react/jsx-runtime").JSX.Element;
17
+ //# sourceMappingURL=RequestEmailVerificationForm.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RequestEmailVerificationForm.d.ts","sourceRoot":"","sources":["../../../../src/components/forms/RequestEmailVerificationForm.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAwB,MAAM,OAAO,CAAA;AAE1D,OAAO,EAAE,iCAAiC,EAAE,MAAM,kCAAkC,CAAA;AAEpF,OAAO,EAAE,gBAAgB,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAA;AAI7E,MAAM,MAAM,kCAAkC,GAAG;IAChD,KAAK,EAAE,MAAM,CAAA;CACb,CAAA;AAED,MAAM,MAAM,qCAAqC,GAC9C,iCAAiC,GACjC,gBAAgB,GAChB,eAAe,GACf,eAAe,CAAA;AAElB,MAAM,MAAM,iCAAiC,GAAG,SAAS,CAAA;AAEzD,MAAM,MAAM,iCAAiC,GAAG,SAAS,CAAC,kCAAkC,EAAE,qCAAqC,CAAC,CAAA;AAEpI,MAAM,MAAM,wCAAwC,GAAG,gBAAgB,CAAC,kCAAkC,EAAE,qCAAqC,CAAC,CAAA;AAElJ,MAAM,WAAW,iCAAiC;IACjD,QAAQ,EAAE,YAAY,CAAA;IACtB,SAAS,CAAC,EAAE,MAAM,IAAI,CAAA;CACtB;AAED,eAAO,MAAM,+BAA+B,EAAc,MAAM,wCAAwC,CAAA;AAExG,eAAO,MAAM,4BAA4B,GAAI,yBAAyB,iCAAiC,4CA0BtG,CAAA"}
@@ -1,5 +1,5 @@
1
1
  import { ReactElement } from 'react';
2
- import { FormContextValue } from '../../types/forms';
2
+ import { FormContextValue } from '../../types/forms.js';
3
3
  type ExecuteResult<T extends FormContextValue<any, any, any>, OkResult = undefined> = ({
4
4
  ok: true;
5
5
  } & (OkResult extends undefined ? {} : {
@@ -1 +1 @@
1
- {"version":3,"file":"TenantForm.d.ts","sourceRoot":"","sources":["../../../../src/components/forms/TenantForm.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAiB,YAAY,EAAoC,MAAM,OAAO,CAAA;AAErF,OAAO,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAA;AAMpD,KAAK,aAAa,CAAC,CAAC,SAAS,gBAAgB,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,EAAE,QAAQ,GAAG,SAAS,IAC/E,CAAC;IAAE,EAAE,EAAE,IAAI,CAAA;CAAE,GAAG,CAAC,QAAQ,SAAS,SAAS,GAAG,EAAE,GAAG;IAAE,MAAM,EAAE,QAAQ,CAAA;CAAE,CAAC,CAAC,GACzE;IAAE,EAAE,EAAE,KAAK,CAAC;IAAC,KAAK,CAAC,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,MAAM,CAAC,CAAC,MAAM,CAAC,CAAC;IAAC,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAAC,KAAK,CAAC,EAAE,CAAC,CAAC,OAAO,CAAC,CAAA;CAAE,CAAA;AAEpG,MAAM,WAAW,eAAe,CAAC,CAAC,SAAS,gBAAgB,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,EAAE,QAAQ,GAAG,SAAS;IAC/F,QAAQ,EAAE,YAAY,CAAA;IACtB,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,aAAa,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAA;IAC1B,YAAY,CAAC,EAAE,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,MAAM,CAAC,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAA;IAC9E,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE;QAAE,MAAM,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC;QAAC,KAAK,EAAE,CAAC,CAAC,OAAO,CAAC,CAAA;KAAE,KAAK,CAAC,CAAC,QAAQ,CAAC,GAAG,SAAS,CAAA;IACxF,OAAO,EAAE,CAAC,IAAI,EAAE;QAAE,MAAM,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC;QAAC,KAAK,EAAE,CAAC,CAAC,OAAO,CAAC,CAAA;KAAE,KAAK,OAAO,CAAC,aAAa,CAAC,CAAC,EAAE,QAAQ,CAAC,CAAC,CAAA;IAClG,SAAS,CAAC,EAAE,CAAC,IAAI,EAAE;QAAE,MAAM,EAAE,QAAQ,CAAA;KAAE,KAAK,IAAI,CAAA;IAChD,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE;QAAE,MAAM,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC;QAAC,KAAK,EAAE,CAAC,CAAC,OAAO,CAAC,CAAC;QAAC,MAAM,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAA;KAAE,KAAK,IAAI,CAAA;CAClG;AAED,eAAO,MAAM,UAAU,GAAI,CAAC,SAAS,gBAAgB,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,EAAE,QAAQ,GAAG,SAAS,EAAE,6IASzF,eAAe,CAAC,CAAC,EAAE,QAAQ,CAAC,4CAuF9B,CAAA"}
1
+ {"version":3,"file":"TenantForm.d.ts","sourceRoot":"","sources":["../../../../src/components/forms/TenantForm.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAiB,YAAY,EAAoC,MAAM,OAAO,CAAA;AAErF,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAA;AAMvD,KAAK,aAAa,CAAC,CAAC,SAAS,gBAAgB,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,EAAE,QAAQ,GAAG,SAAS,IAC/E,CAAC;IAAE,EAAE,EAAE,IAAI,CAAA;CAAE,GAAG,CAAC,QAAQ,SAAS,SAAS,GAAG,EAAE,GAAG;IAAE,MAAM,EAAE,QAAQ,CAAA;CAAE,CAAC,CAAC,GACzE;IAAE,EAAE,EAAE,KAAK,CAAC;IAAC,KAAK,CAAC,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,MAAM,CAAC,CAAC,MAAM,CAAC,CAAC;IAAC,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAAC,KAAK,CAAC,EAAE,CAAC,CAAC,OAAO,CAAC,CAAA;CAAE,CAAA;AAEpG,MAAM,WAAW,eAAe,CAAC,CAAC,SAAS,gBAAgB,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,EAAE,QAAQ,GAAG,SAAS;IAC/F,QAAQ,EAAE,YAAY,CAAA;IACtB,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,aAAa,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAA;IAC1B,YAAY,CAAC,EAAE,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,MAAM,CAAC,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAA;IAC9E,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE;QAAE,MAAM,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC;QAAC,KAAK,EAAE,CAAC,CAAC,OAAO,CAAC,CAAA;KAAE,KAAK,CAAC,CAAC,QAAQ,CAAC,GAAG,SAAS,CAAA;IACxF,OAAO,EAAE,CAAC,IAAI,EAAE;QAAE,MAAM,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC;QAAC,KAAK,EAAE,CAAC,CAAC,OAAO,CAAC,CAAA;KAAE,KAAK,OAAO,CAAC,aAAa,CAAC,CAAC,EAAE,QAAQ,CAAC,CAAC,CAAA;IAClG,SAAS,CAAC,EAAE,CAAC,IAAI,EAAE;QAAE,MAAM,EAAE,QAAQ,CAAA;KAAE,KAAK,IAAI,CAAA;IAChD,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE;QAAE,MAAM,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC;QAAC,KAAK,EAAE,CAAC,CAAC,OAAO,CAAC,CAAC;QAAC,MAAM,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAA;KAAE,KAAK,IAAI,CAAA;CAClG;AAED,eAAO,MAAM,UAAU,GAAI,CAAC,SAAS,gBAAgB,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,EAAE,QAAQ,GAAG,SAAS,EAAE,6IASzF,eAAe,CAAC,CAAC,EAAE,QAAQ,CAAC,4CAuF9B,CAAA"}
@@ -1,5 +1,5 @@
1
1
  import { ReactElement } from 'react';
2
- import { FormContextValue, FormError, FormState } from '../../types';
2
+ import { FormContextValue, FormError, FormState } from '../../types/index.js';
3
3
  import { MembershipInput, UpdateProjectMemberErrorCode } from '@contember/graphql-client-tenant';
4
4
  export type UpdateProjectMemberFormValues = {
5
5
  memberships: readonly MembershipInput[];
@@ -1 +1 @@
1
- {"version":3,"file":"UpdateProjectMemberForm.d.ts","sourceRoot":"","sources":["../../../../src/components/forms/UpdateProjectMemberForm.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAuB,MAAM,OAAO,CAAA;AAEzD,OAAO,EAAE,gBAAgB,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AAEpE,OAAO,EAAE,eAAe,EAAE,4BAA4B,EAAE,MAAM,kCAAkC,CAAA;AAGhG,MAAM,MAAM,6BAA6B,GAAG;IAC3C,WAAW,EAAE,SAAS,eAAe,EAAE,CAAA;CACvC,CAAA;AAED,MAAM,MAAM,gCAAgC,GACzC,4BAA4B,GAC5B,eAAe,GACf,gBAAgB,CAAA;AAEnB,MAAM,MAAM,4BAA4B,GAAG,SAAS,CAAA;AAEpD,MAAM,MAAM,4BAA4B,GAAG,SAAS,CAAC,6BAA6B,EAAE,gCAAgC,CAAC,CAAA;AAErH,MAAM,MAAM,mCAAmC,GAAG,gBAAgB,CAAC,6BAA6B,EAAE,gCAAgC,CAAC,CAAA;AAEnI,MAAM,WAAW,4BAA4B;IAC5C,QAAQ,EAAE,YAAY,CAAA;IACtB,UAAU,EAAE,MAAM,CAAA;IAClB,WAAW,EAAE,MAAM,CAAA;IACnB,SAAS,CAAC,EAAE,CAAC,IAAI,EAAE,EAAE,KAAK,IAAI,CAAA;CAC9B;AAED,eAAO,MAAM,0BAA0B,EAAc,MAAM,mCAAmC,CAAA;AAE9F,eAAO,MAAM,uBAAuB,GAAI,kDAAkD,4BAA4B,4CAoCrH,CAAA"}
1
+ {"version":3,"file":"UpdateProjectMemberForm.d.ts","sourceRoot":"","sources":["../../../../src/components/forms/UpdateProjectMemberForm.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAuB,MAAM,OAAO,CAAA;AAEzD,OAAO,EAAE,gBAAgB,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAA;AAE7E,OAAO,EAAE,eAAe,EAAE,4BAA4B,EAAE,MAAM,kCAAkC,CAAA;AAGhG,MAAM,MAAM,6BAA6B,GAAG;IAC3C,WAAW,EAAE,SAAS,eAAe,EAAE,CAAA;CACvC,CAAA;AAED,MAAM,MAAM,gCAAgC,GACzC,4BAA4B,GAC5B,eAAe,GACf,gBAAgB,CAAA;AAEnB,MAAM,MAAM,4BAA4B,GAAG,SAAS,CAAA;AAEpD,MAAM,MAAM,4BAA4B,GAAG,SAAS,CAAC,6BAA6B,EAAE,gCAAgC,CAAC,CAAA;AAErH,MAAM,MAAM,mCAAmC,GAAG,gBAAgB,CAAC,6BAA6B,EAAE,gCAAgC,CAAC,CAAA;AAEnI,MAAM,WAAW,4BAA4B;IAC5C,QAAQ,EAAE,YAAY,CAAA;IACtB,UAAU,EAAE,MAAM,CAAA;IAClB,WAAW,EAAE,MAAM,CAAA;IACnB,SAAS,CAAC,EAAE,CAAC,IAAI,EAAE,EAAE,KAAK,IAAI,CAAA;CAC9B;AAED,eAAO,MAAM,0BAA0B,EAAc,MAAM,mCAAmC,CAAA;AAE9F,eAAO,MAAM,uBAAuB,GAAI,kDAAkD,4BAA4B,4CAoCrH,CAAA"}
@@ -0,0 +1,18 @@
1
+ import { ReactElement } from 'react';
2
+ import { VerifyEmailErrorCode } from '@contember/graphql-client-tenant';
3
+ import { FormContextValue, FormError, FormState } from '../../types/index.js';
4
+ export type VerifyEmailFormValues = {
5
+ token: string;
6
+ };
7
+ export type VerifyEmailFormErrorCode = VerifyEmailErrorCode | 'FIELD_REQUIRED' | 'INVALID_VALUE' | 'UNKNOWN_ERROR';
8
+ export type VerifyEmailFormState = FormState;
9
+ export type VerifyEmailFormError = FormError<VerifyEmailFormValues, VerifyEmailFormErrorCode>;
10
+ export type VerifyEmailFormContextValue = FormContextValue<VerifyEmailFormValues, VerifyEmailFormErrorCode>;
11
+ export interface VerifyEmailFormProps {
12
+ children: ReactElement;
13
+ onSuccess?: () => void;
14
+ token?: string;
15
+ }
16
+ export declare const useVerifyEmailForm: () => VerifyEmailFormContextValue;
17
+ export declare const VerifyEmailForm: ({ children, onSuccess, token }: VerifyEmailFormProps) => import("react/jsx-runtime").JSX.Element;
18
+ //# sourceMappingURL=VerifyEmailForm.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"VerifyEmailForm.d.ts","sourceRoot":"","sources":["../../../../src/components/forms/VerifyEmailForm.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,OAAO,CAAA;AAEpC,OAAO,EAAE,oBAAoB,EAAE,MAAM,kCAAkC,CAAA;AAEvE,OAAO,EAAE,gBAAgB,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAA;AAI7E,MAAM,MAAM,qBAAqB,GAAG;IACnC,KAAK,EAAE,MAAM,CAAA;CACb,CAAA;AAED,MAAM,MAAM,wBAAwB,GACjC,oBAAoB,GACpB,gBAAgB,GAChB,eAAe,GACf,eAAe,CAAA;AAElB,MAAM,MAAM,oBAAoB,GAAG,SAAS,CAAA;AAE5C,MAAM,MAAM,oBAAoB,GAAG,SAAS,CAAC,qBAAqB,EAAE,wBAAwB,CAAC,CAAA;AAE7F,MAAM,MAAM,2BAA2B,GAAG,gBAAgB,CAAC,qBAAqB,EAAE,wBAAwB,CAAC,CAAA;AAE3G,MAAM,WAAW,oBAAoB;IACpC,QAAQ,EAAE,YAAY,CAAA;IACtB,SAAS,CAAC,EAAE,MAAM,IAAI,CAAA;IACtB,KAAK,CAAC,EAAE,MAAM,CAAA;CACd;AAED,eAAO,MAAM,kBAAkB,EAAc,MAAM,2BAA2B,CAAA;AAE9E,eAAO,MAAM,eAAe,GAAI,gCAAgC,oBAAoB,4CAyBnF,CAAA"}
@@ -1,13 +1,16 @@
1
- export * from './CreateApiKeyForm';
2
- export * from './CreateSessionTokenForm';
3
- export * from './ChangeMyPasswordForm';
4
- export * from './InviteForm';
5
- export * from './LoginForm';
6
- export * from './PasswordResetForm';
7
- export * from './PasswordResetRequestForm';
8
- export * from './PasswordlessSignInForm';
9
- export * from './PasswordlessSignInInitForm';
10
- export * from './OtpPrepareForm';
11
- export * from './OtpConfirmForm';
12
- export * from './UpdateProjectMemberForm';
1
+ export * from './CreateApiKeyForm.js';
2
+ export * from './CreateSessionTokenForm.js';
3
+ export * from './ChangeMyPasswordForm.js';
4
+ export * from './InviteForm.js';
5
+ export * from './LoginForm.js';
6
+ export * from './PasswordResetForm.js';
7
+ export * from './PasswordResetRequestForm.js';
8
+ export * from './VerifyEmailForm.js';
9
+ export * from './ConfirmEmailChangeForm.js';
10
+ export * from './RequestEmailVerificationForm.js';
11
+ export * from './PasswordlessSignInForm.js';
12
+ export * from './PasswordlessSignInInitForm.js';
13
+ export * from './OtpPrepareForm.js';
14
+ export * from './OtpConfirmForm.js';
15
+ export * from './UpdateProjectMemberForm.js';
13
16
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/forms/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAA;AAClC,cAAc,0BAA0B,CAAA;AACxC,cAAc,wBAAwB,CAAA;AACtC,cAAc,cAAc,CAAA;AAC5B,cAAc,aAAa,CAAA;AAC3B,cAAc,qBAAqB,CAAA;AACnC,cAAc,4BAA4B,CAAA;AAC1C,cAAc,0BAA0B,CAAA;AACxC,cAAc,8BAA8B,CAAA;AAC5C,cAAc,kBAAkB,CAAA;AAChC,cAAc,kBAAkB,CAAA;AAChC,cAAc,2BAA2B,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/forms/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAA;AACrC,cAAc,6BAA6B,CAAA;AAC3C,cAAc,2BAA2B,CAAA;AACzC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,wBAAwB,CAAA;AACtC,cAAc,+BAA+B,CAAA;AAC7C,cAAc,sBAAsB,CAAA;AACpC,cAAc,6BAA6B,CAAA;AAC3C,cAAc,mCAAmC,CAAA;AACjD,cAAc,6BAA6B,CAAA;AAC3C,cAAc,iCAAiC,CAAA;AAC/C,cAAc,qBAAqB,CAAA;AACnC,cAAc,qBAAqB,CAAA;AACnC,cAAc,8BAA8B,CAAA"}
@@ -1,5 +1,5 @@
1
1
  import { ReactNode } from 'react';
2
- import { IDPInitError, IDPResponseError } from '../../types/idp';
2
+ import { IDPInitError, IDPResponseError } from '../../types/idp.js';
3
3
  export interface IDPProps {
4
4
  children: ReactNode;
5
5
  onLogin?: () => void;
@@ -1 +1 @@
1
- {"version":3,"file":"IDP.d.ts","sourceRoot":"","sources":["../../../../src/components/idp/IDP.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAwC,MAAM,OAAO,CAAA;AAEvE,OAAO,EAAE,YAAY,EAAE,gBAAgB,EAAiB,MAAM,iBAAiB,CAAA;AAK/E,MAAM,WAAW,QAAQ;IACxB,QAAQ,EAAE,SAAS,CAAA;IACnB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAA;IACpB,WAAW,CAAC,EAAE,CAAC,KAAK,EAAE,YAAY,KAAK,IAAI,CAAA;IAC3C,eAAe,CAAC,EAAE,CAAC,KAAK,EAAE,gBAAgB,KAAK,IAAI,CAAA;IACnD,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,WAAW,CAAC,EAAE,MAAM,CAAA;CACpB;AAED,eAAO,MAAM,GAAG,GAAI,8EAA8E,QAAQ,4CAgDzG,CAAA"}
1
+ {"version":3,"file":"IDP.d.ts","sourceRoot":"","sources":["../../../../src/components/idp/IDP.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAwC,MAAM,OAAO,CAAA;AAEvE,OAAO,EAAE,YAAY,EAAE,gBAAgB,EAAiB,MAAM,oBAAoB,CAAA;AAKlF,MAAM,WAAW,QAAQ;IACxB,QAAQ,EAAE,SAAS,CAAA;IACnB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAA;IACpB,WAAW,CAAC,EAAE,CAAC,KAAK,EAAE,YAAY,KAAK,IAAI,CAAA;IAC3C,eAAe,CAAC,EAAE,CAAC,KAAK,EAAE,gBAAgB,KAAK,IAAI,CAAA;IACnD,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,WAAW,CAAC,EAAE,MAAM,CAAA;CACpB;AAED,eAAO,MAAM,GAAG,GAAI,8EAA8E,QAAQ,4CAgDzG,CAAA"}
@@ -1,5 +1,5 @@
1
1
  import { ReactNode } from 'react';
2
- import { IDPStateType } from '../../types';
2
+ import { IDPStateType } from '../../types/index.js';
3
3
  export interface IDPStateProps {
4
4
  state: IDPStateType | IDPStateType[];
5
5
  children: ReactNode;
@@ -1 +1 @@
1
- {"version":3,"file":"IDPState.d.ts","sourceRoot":"","sources":["../../../../src/components/idp/IDPState.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AACxC,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAG1C,MAAM,WAAW,aAAa;IAC7B,KAAK,EAAE,YAAY,GAAG,YAAY,EAAE,CAAA;IACpC,QAAQ,EAAE,SAAS,CAAA;CACnB;AAED,eAAO,MAAM,QAAQ,GAAI,qBAAqB,aAAa,mDAI1D,CAAA"}
1
+ {"version":3,"file":"IDPState.d.ts","sourceRoot":"","sources":["../../../../src/components/idp/IDPState.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AACxC,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AAGnD,MAAM,WAAW,aAAa;IAC7B,KAAK,EAAE,YAAY,GAAG,YAAY,EAAE,CAAA;IACpC,QAAQ,EAAE,SAAS,CAAA;CACnB;AAED,eAAO,MAAM,QAAQ,GAAI,qBAAqB,aAAa,mDAI1D,CAAA"}
@@ -1,4 +1,4 @@
1
- export * from './IDPState';
2
- export * from './IDP';
3
- export * from './IDPInitTrigger';
1
+ export * from './IDPState.js';
2
+ export * from './IDP.js';
3
+ export * from './IDPInitTrigger.js';
4
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/idp/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAA;AAC1B,cAAc,OAAO,CAAA;AACrB,cAAc,kBAAkB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/idp/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAA;AAC7B,cAAc,UAAU,CAAA;AACxB,cAAc,qBAAqB,CAAA"}
@@ -1,6 +1,6 @@
1
- export * from './IdentityProvider';
2
- export * from './IdentityState';
3
- export * from './forms';
4
- export * from './idp';
5
- export * from './triggers';
1
+ export * from './IdentityProvider.js';
2
+ export * from './IdentityState.js';
3
+ export * from './forms/index.js';
4
+ export * from './idp/index.js';
5
+ export * from './triggers/index.js';
6
6
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAA;AAClC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,SAAS,CAAA;AACvB,cAAc,OAAO,CAAA;AACrB,cAAc,YAAY,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAA;AACrC,cAAc,oBAAoB,CAAA;AAClC,cAAc,kBAAkB,CAAA;AAChC,cAAc,gBAAgB,CAAA;AAC9B,cAAc,qBAAqB,CAAA"}
@@ -1,5 +1,11 @@
1
1
  import { ReactNode } from 'react';
2
- export declare const LogoutTrigger: ({ children }: {
2
+ export declare const LogoutTrigger: ({ children, idpLogout }: {
3
3
  children: ReactNode;
4
+ /**
5
+ * Opt in to OIDC front-channel Single Logout: when the session was federated via an OIDC IdP
6
+ * that advertises an end_session_endpoint, redirect the browser to the IdP's logout URL so the
7
+ * user is also signed out at the IdP. Defaults to a local-only logout.
8
+ */
9
+ idpLogout?: boolean;
4
10
  }) => import("react/jsx-runtime").JSX.Element;
5
11
  //# sourceMappingURL=LogoutTrigger.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"LogoutTrigger.d.ts","sourceRoot":"","sources":["../../../../src/components/triggers/LogoutTrigger.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAe,MAAM,OAAO,CAAA;AAI9C,eAAO,MAAM,aAAa,GAAI,cAAc;IAC3C,QAAQ,EAAE,SAAS,CAAA;CACnB,4CAGA,CAAA"}
1
+ {"version":3,"file":"LogoutTrigger.d.ts","sourceRoot":"","sources":["../../../../src/components/triggers/LogoutTrigger.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAe,MAAM,OAAO,CAAA;AAI9C,eAAO,MAAM,aAAa,GAAI,yBAAyB;IACtD,QAAQ,EAAE,SAAS,CAAA;IACnB;;;;OAIG;IACH,SAAS,CAAC,EAAE,OAAO,CAAA;CACnB,4CAGA,CAAA"}
@@ -1,5 +1,5 @@
1
1
  import { ReactElement } from 'react';
2
- import { RemoveProjectMemberMutationVariables } from '../../hooks';
2
+ import { RemoveProjectMemberMutationVariables } from '../../hooks/index.js';
3
3
  export type RemoveProjectMemberTriggerProps = RemoveProjectMemberMutationVariables & {
4
4
  children: ReactElement;
5
5
  onSuccess?: () => void;
@@ -1 +1 @@
1
- {"version":3,"file":"RemoveProjectMemberTrigger.d.ts","sourceRoot":"","sources":["../../../../src/components/triggers/RemoveProjectMemberTrigger.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAe,MAAM,OAAO,CAAA;AAEjD,OAAO,EAAE,oCAAoC,EAAkC,MAAM,aAAa,CAAA;AAElG,MAAM,MAAM,+BAA+B,GACxC,oCAAoC,GACpC;IACD,QAAQ,EAAE,YAAY,CAAA;IACtB,SAAS,CAAC,EAAE,MAAM,IAAI,CAAA;IACtB,OAAO,CAAC,EAAE,CAAC,CAAC,EAAE,OAAO,KAAK,IAAI,CAAA;CAC9B,CAAA;AAEF,eAAO,MAAM,0BAA0B,GAAI,uCAAuC,+BAA+B,4CAIhH,CAAA"}
1
+ {"version":3,"file":"RemoveProjectMemberTrigger.d.ts","sourceRoot":"","sources":["../../../../src/components/triggers/RemoveProjectMemberTrigger.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAe,MAAM,OAAO,CAAA;AAEjD,OAAO,EAAE,oCAAoC,EAAkC,MAAM,sBAAsB,CAAA;AAE3G,MAAM,MAAM,+BAA+B,GACxC,oCAAoC,GACpC;IACD,QAAQ,EAAE,YAAY,CAAA;IACtB,SAAS,CAAC,EAAE,MAAM,IAAI,CAAA;IACtB,OAAO,CAAC,EAAE,CAAC,CAAC,EAAE,OAAO,KAAK,IAAI,CAAA;CAC9B,CAAA;AAEF,eAAO,MAAM,0BAA0B,GAAI,uCAAuC,+BAA+B,4CAIhH,CAAA"}
@@ -1,4 +1,4 @@
1
- export * from './DisableOtpTrigger';
2
- export * from './LogoutTrigger';
3
- export * from './RemoveProjectMemberTrigger';
1
+ export * from './DisableOtpTrigger.js';
2
+ export * from './LogoutTrigger.js';
3
+ export * from './RemoveProjectMemberTrigger.js';
4
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/triggers/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAA;AACnC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,8BAA8B,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/triggers/index.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAA;AACtC,cAAc,oBAAoB,CAAA;AAClC,cAAc,iCAAiC,CAAA"}