@contember/react-client-tenant 2.1.0-alpha.9 → 2.1.0-beta.2

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 (469) hide show
  1. package/dist/development/index.cjs +80 -80
  2. package/dist/development/index.js +31 -31
  3. package/dist/development/src/components/IdentityProvider.cjs +3 -3
  4. package/dist/development/src/components/IdentityProvider.cjs.map +1 -1
  5. package/dist/development/src/components/IdentityProvider.js +3 -3
  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/CreateApiKeyForm.cjs.map +1 -1
  12. package/dist/development/src/components/forms/CreateApiKeyForm.js.map +1 -1
  13. package/dist/development/src/components/forms/CreateSessionTokenForm.cjs.map +1 -1
  14. package/dist/development/src/components/forms/CreateSessionTokenForm.js.map +1 -1
  15. package/dist/development/src/components/forms/InviteForm.cjs.map +1 -1
  16. package/dist/development/src/components/forms/InviteForm.js.map +1 -1
  17. package/dist/development/src/components/forms/LoginForm.cjs +3 -1
  18. package/dist/development/src/components/forms/LoginForm.cjs.map +1 -1
  19. package/dist/development/src/components/forms/LoginForm.js +3 -1
  20. package/dist/development/src/components/forms/LoginForm.js.map +1 -1
  21. package/dist/development/src/components/forms/OtpConfirmForm.cjs.map +1 -1
  22. package/dist/development/src/components/forms/OtpConfirmForm.js.map +1 -1
  23. package/dist/development/src/components/forms/OtpPrepareForm.cjs +1 -1
  24. package/dist/development/src/components/forms/OtpPrepareForm.cjs.map +1 -1
  25. package/dist/development/src/components/forms/OtpPrepareForm.js +1 -1
  26. package/dist/development/src/components/forms/OtpPrepareForm.js.map +1 -1
  27. package/dist/development/src/components/forms/PasswordResetForm.cjs.map +1 -1
  28. package/dist/development/src/components/forms/PasswordResetForm.js.map +1 -1
  29. package/dist/development/src/components/forms/PasswordResetRequestForm.cjs +1 -1
  30. package/dist/development/src/components/forms/PasswordResetRequestForm.cjs.map +1 -1
  31. package/dist/development/src/components/forms/PasswordResetRequestForm.js +2 -2
  32. package/dist/development/src/components/forms/PasswordResetRequestForm.js.map +1 -1
  33. package/dist/development/src/components/forms/PasswordlessSignInForm.cjs +3 -3
  34. package/dist/development/src/components/forms/PasswordlessSignInForm.cjs.map +1 -1
  35. package/dist/development/src/components/forms/PasswordlessSignInForm.js +4 -4
  36. package/dist/development/src/components/forms/PasswordlessSignInForm.js.map +1 -1
  37. package/dist/development/src/components/forms/PasswordlessSignInInitForm.cjs +6 -1
  38. package/dist/development/src/components/forms/PasswordlessSignInInitForm.cjs.map +1 -1
  39. package/dist/development/src/components/forms/PasswordlessSignInInitForm.js +7 -2
  40. package/dist/development/src/components/forms/PasswordlessSignInInitForm.js.map +1 -1
  41. package/dist/development/src/components/forms/TenantForm.cjs +25 -15
  42. package/dist/development/src/components/forms/TenantForm.cjs.map +1 -1
  43. package/dist/development/src/components/forms/TenantForm.js +25 -15
  44. package/dist/development/src/components/forms/TenantForm.js.map +1 -1
  45. package/dist/development/src/components/forms/UpdateProjectMemberForm.cjs.map +1 -1
  46. package/dist/development/src/components/forms/UpdateProjectMemberForm.js.map +1 -1
  47. package/dist/development/src/components/idp/IDP.cjs +5 -5
  48. package/dist/development/src/components/idp/IDP.cjs.map +1 -1
  49. package/dist/development/src/components/idp/IDP.js +5 -5
  50. package/dist/development/src/components/idp/IDP.js.map +1 -1
  51. package/dist/development/src/components/idp/IDPInitTrigger.cjs +2 -2
  52. package/dist/development/src/components/idp/IDPInitTrigger.cjs.map +1 -1
  53. package/dist/development/src/components/idp/IDPInitTrigger.js +2 -2
  54. package/dist/development/src/components/idp/IDPInitTrigger.js.map +1 -1
  55. package/dist/development/src/components/idp/IDPState.cjs.map +1 -1
  56. package/dist/development/src/components/idp/IDPState.js.map +1 -1
  57. package/dist/development/src/components/triggers/DisableOtpTrigger.cjs.map +1 -1
  58. package/dist/development/src/components/triggers/DisableOtpTrigger.js.map +1 -1
  59. package/dist/development/src/components/triggers/LogoutTrigger.cjs.map +1 -1
  60. package/dist/development/src/components/triggers/LogoutTrigger.js.map +1 -1
  61. package/dist/development/src/components/triggers/RemoveProjectMemberTrigger.cjs +1 -1
  62. package/dist/development/src/components/triggers/RemoveProjectMemberTrigger.cjs.map +1 -1
  63. package/dist/development/src/components/triggers/RemoveProjectMemberTrigger.js +1 -1
  64. package/dist/development/src/components/triggers/RemoveProjectMemberTrigger.js.map +1 -1
  65. package/dist/development/src/components/triggers/TenantActionTrigger.cjs +1 -1
  66. package/dist/development/src/components/triggers/TenantActionTrigger.cjs.map +1 -1
  67. package/dist/development/src/components/triggers/TenantActionTrigger.js +1 -1
  68. package/dist/development/src/components/triggers/TenantActionTrigger.js.map +1 -1
  69. package/dist/development/src/contexts.cjs.map +1 -1
  70. package/dist/development/src/contexts.js +1 -1
  71. package/dist/development/src/contexts.js.map +1 -1
  72. package/dist/development/src/hooks/mutations/apiKey/useCreateApiKeyMutation.cjs.map +1 -1
  73. package/dist/development/src/hooks/mutations/apiKey/useCreateApiKeyMutation.js.map +1 -1
  74. package/dist/development/src/hooks/mutations/apiKey/useCreateGlobalApiKeyMutation.cjs.map +1 -1
  75. package/dist/development/src/hooks/mutations/apiKey/useCreateGlobalApiKeyMutation.js.map +1 -1
  76. package/dist/development/src/hooks/mutations/apiKey/useCreateSessionTokenMutation.cjs.map +1 -1
  77. package/dist/development/src/hooks/mutations/apiKey/useCreateSessionTokenMutation.js.map +1 -1
  78. package/dist/development/src/hooks/mutations/apiKey/useDisableApiKeyMutation.cjs.map +1 -1
  79. package/dist/development/src/hooks/mutations/apiKey/useDisableApiKeyMutation.js.map +1 -1
  80. package/dist/development/src/hooks/mutations/auth/useChangeMyPasswordMutation.cjs.map +1 -1
  81. package/dist/development/src/hooks/mutations/auth/useChangeMyPasswordMutation.js.map +1 -1
  82. package/dist/development/src/hooks/mutations/auth/useSignInMutation.cjs.map +1 -1
  83. package/dist/development/src/hooks/mutations/auth/useSignInMutation.js.map +1 -1
  84. package/dist/development/src/hooks/mutations/auth/useSignOutMutation.cjs.map +1 -1
  85. package/dist/development/src/hooks/mutations/auth/useSignOutMutation.js.map +1 -1
  86. package/dist/development/src/hooks/mutations/idp/useInitSignInIDPMutation.cjs.map +1 -1
  87. package/dist/development/src/hooks/mutations/idp/useInitSignInIDPMutation.js.map +1 -1
  88. package/dist/development/src/hooks/mutations/idp/useSignInIdpMutation.cjs +6 -3
  89. package/dist/development/src/hooks/mutations/idp/useSignInIdpMutation.cjs.map +1 -1
  90. package/dist/development/src/hooks/mutations/idp/useSignInIdpMutation.js +6 -3
  91. package/dist/development/src/hooks/mutations/idp/useSignInIdpMutation.js.map +1 -1
  92. package/dist/development/src/hooks/mutations/invite/useInviteMutation.cjs.map +1 -1
  93. package/dist/development/src/hooks/mutations/invite/useInviteMutation.js.map +1 -1
  94. package/dist/development/src/hooks/mutations/memberships/useAddProjectMemberMutation.cjs.map +1 -1
  95. package/dist/development/src/hooks/mutations/memberships/useAddProjectMemberMutation.js.map +1 -1
  96. package/dist/development/src/hooks/mutations/memberships/useRemoveProjectMemberMutation.cjs.map +1 -1
  97. package/dist/development/src/hooks/mutations/memberships/useRemoveProjectMemberMutation.js.map +1 -1
  98. package/dist/development/src/hooks/mutations/memberships/useUpdateProjectMemberMutation.cjs.map +1 -1
  99. package/dist/development/src/hooks/mutations/memberships/useUpdateProjectMemberMutation.js.map +1 -1
  100. package/dist/development/src/hooks/mutations/otp/useConfirmOtpMutation.cjs.map +1 -1
  101. package/dist/development/src/hooks/mutations/otp/useConfirmOtpMutation.js.map +1 -1
  102. package/dist/development/src/hooks/mutations/otp/useDisableOtpMutation.cjs.map +1 -1
  103. package/dist/development/src/hooks/mutations/otp/useDisableOtpMutation.js.map +1 -1
  104. package/dist/development/src/hooks/mutations/otp/usePrepareOtpMutation.cjs.map +1 -1
  105. package/dist/development/src/hooks/mutations/otp/usePrepareOtpMutation.js.map +1 -1
  106. package/dist/development/src/hooks/mutations/passwordReset/useCreateResetPasswordRequestMutation.cjs.map +1 -1
  107. package/dist/development/src/hooks/mutations/passwordReset/useCreateResetPasswordRequestMutation.js.map +1 -1
  108. package/dist/development/src/hooks/mutations/passwordReset/useResetPasswordMutation.cjs.map +1 -1
  109. package/dist/development/src/hooks/mutations/passwordReset/useResetPasswordMutation.js.map +1 -1
  110. package/dist/development/src/hooks/mutations/passwordless/useActivatePasswordlessOtpMutation.cjs.map +1 -1
  111. package/dist/development/src/hooks/mutations/passwordless/useActivatePasswordlessOtpMutation.js.map +1 -1
  112. package/dist/development/src/hooks/mutations/passwordless/useDisableMyPasswordlessMutation.cjs.map +1 -1
  113. package/dist/development/src/hooks/mutations/passwordless/useDisableMyPasswordlessMutation.js.map +1 -1
  114. package/dist/development/src/hooks/mutations/passwordless/useEnableMyPasswordlessMutation.cjs.map +1 -1
  115. package/dist/development/src/hooks/mutations/passwordless/useEnableMyPasswordlessMutation.js.map +1 -1
  116. package/dist/development/src/hooks/mutations/passwordless/useInitSignInPasswordlessMutation.cjs.map +1 -1
  117. package/dist/development/src/hooks/mutations/passwordless/useInitSignInPasswordlessMutation.js.map +1 -1
  118. package/dist/development/src/hooks/mutations/passwordless/useSignInPasswordlessMutation.cjs.map +1 -1
  119. package/dist/development/src/hooks/mutations/passwordless/useSignInPasswordlessMutation.js.map +1 -1
  120. package/dist/development/src/hooks/mutations/profile/useChangeMyProfile.cjs.map +1 -1
  121. package/dist/development/src/hooks/mutations/profile/useChangeMyProfile.js.map +1 -1
  122. package/dist/development/src/hooks/mutations/profile/useChangeProfile.cjs.map +1 -1
  123. package/dist/development/src/hooks/mutations/profile/useChangeProfile.js.map +1 -1
  124. package/dist/development/src/hooks/queries/useMeQuery.cjs.map +1 -1
  125. package/dist/development/src/hooks/queries/useMeQuery.js.map +1 -1
  126. package/dist/development/src/hooks/queries/useProjectMembersQuery.cjs +15 -9
  127. package/dist/development/src/hooks/queries/useProjectMembersQuery.cjs.map +1 -1
  128. package/dist/development/src/hooks/queries/useProjectMembersQuery.js +15 -9
  129. package/dist/development/src/hooks/queries/useProjectMembersQuery.js.map +1 -1
  130. package/dist/development/src/hooks/queries/useProjectMembershipsQuery.cjs.map +1 -1
  131. package/dist/development/src/hooks/queries/useProjectMembershipsQuery.js.map +1 -1
  132. package/dist/development/src/hooks/queries/useProjectRolesDefinitionQuery.cjs.map +1 -1
  133. package/dist/development/src/hooks/queries/useProjectRolesDefinitionQuery.js.map +1 -1
  134. package/dist/development/src/hooks/useFetchIdentity.cjs +4 -1
  135. package/dist/development/src/hooks/useFetchIdentity.cjs.map +1 -1
  136. package/dist/development/src/hooks/useFetchIdentity.js +4 -1
  137. package/dist/development/src/hooks/useFetchIdentity.js.map +1 -1
  138. package/dist/development/src/hooks/useLogout.cjs.map +1 -1
  139. package/dist/development/src/hooks/useLogout.js.map +1 -1
  140. package/dist/development/src/hooks/usePasswordlessOtpActivator.cjs.map +1 -1
  141. package/dist/development/src/hooks/usePasswordlessOtpActivator.js.map +1 -1
  142. package/dist/development/src/hooks/useTenantApi.cjs +1 -1
  143. package/dist/development/src/hooks/useTenantApi.cjs.map +1 -1
  144. package/dist/development/src/hooks/useTenantApi.js +1 -1
  145. package/dist/development/src/hooks/useTenantApi.js.map +1 -1
  146. package/dist/development/src/hooks/useTenantMutation.cjs.map +1 -1
  147. package/dist/development/src/hooks/useTenantMutation.js +1 -1
  148. package/dist/development/src/hooks/useTenantMutation.js.map +1 -1
  149. package/dist/development/src/hooks/useTenantQueryLoader.cjs.map +1 -1
  150. package/dist/development/src/hooks/useTenantQueryLoader.js.map +1 -1
  151. package/dist/development/src/internal/hooks/useHandleIDPResponse.cjs +3 -3
  152. package/dist/development/src/internal/hooks/useHandleIDPResponse.cjs.map +1 -1
  153. package/dist/development/src/internal/hooks/useHandleIDPResponse.js +3 -3
  154. package/dist/development/src/internal/hooks/useHandleIDPResponse.js.map +1 -1
  155. package/dist/development/src/internal/hooks/useIDPAutoInit.cjs.map +1 -1
  156. package/dist/development/src/internal/hooks/useIDPAutoInit.js.map +1 -1
  157. package/dist/development/src/internal/hooks/useIDPStateStore.cjs.map +1 -1
  158. package/dist/development/src/internal/hooks/useIDPStateStore.js.map +1 -1
  159. package/dist/development/src/internal/hooks/useInitIDPRedirect.cjs +3 -3
  160. package/dist/development/src/internal/hooks/useInitIDPRedirect.cjs.map +1 -1
  161. package/dist/development/src/internal/hooks/useInitIDPRedirect.js +3 -3
  162. package/dist/development/src/internal/hooks/useInitIDPRedirect.js.map +1 -1
  163. package/dist/development/src/internal/hooks/useLogoutInternal.cjs +1 -1
  164. package/dist/development/src/internal/hooks/useLogoutInternal.cjs.map +1 -1
  165. package/dist/development/src/internal/hooks/useLogoutInternal.js +1 -1
  166. package/dist/development/src/internal/hooks/useLogoutInternal.js.map +1 -1
  167. package/dist/development/src/internal/hooks/useRedirectToBacklink.cjs +9 -4
  168. package/dist/development/src/internal/hooks/useRedirectToBacklink.cjs.map +1 -1
  169. package/dist/development/src/internal/hooks/useRedirectToBacklink.js +9 -4
  170. package/dist/development/src/internal/hooks/useRedirectToBacklink.js.map +1 -1
  171. package/dist/development/src/internal/utils/getBaseHref.cjs.map +1 -1
  172. package/dist/development/src/internal/utils/getBaseHref.js.map +1 -1
  173. package/dist/development/src/internal/utils/hashing.cjs.map +1 -1
  174. package/dist/development/src/internal/utils/hashing.js.map +1 -1
  175. package/dist/development/src/internal/utils/randomInt.cjs.map +1 -1
  176. package/dist/development/src/internal/utils/randomInt.js.map +1 -1
  177. package/dist/production/index.cjs +80 -80
  178. package/dist/production/index.js +31 -31
  179. package/dist/production/src/components/IdentityProvider.cjs.map +1 -1
  180. package/dist/production/src/components/IdentityProvider.js.map +1 -1
  181. package/dist/production/src/components/IdentityState.cjs.map +1 -1
  182. package/dist/production/src/components/IdentityState.js.map +1 -1
  183. package/dist/production/src/components/forms/ChangeMyPasswordForm.cjs.map +1 -1
  184. package/dist/production/src/components/forms/ChangeMyPasswordForm.js.map +1 -1
  185. package/dist/production/src/components/forms/CreateApiKeyForm.cjs.map +1 -1
  186. package/dist/production/src/components/forms/CreateApiKeyForm.js.map +1 -1
  187. package/dist/production/src/components/forms/CreateSessionTokenForm.cjs.map +1 -1
  188. package/dist/production/src/components/forms/CreateSessionTokenForm.js.map +1 -1
  189. package/dist/production/src/components/forms/InviteForm.cjs.map +1 -1
  190. package/dist/production/src/components/forms/InviteForm.js.map +1 -1
  191. package/dist/production/src/components/forms/LoginForm.cjs +2 -0
  192. package/dist/production/src/components/forms/LoginForm.cjs.map +1 -1
  193. package/dist/production/src/components/forms/LoginForm.js +2 -0
  194. package/dist/production/src/components/forms/LoginForm.js.map +1 -1
  195. package/dist/production/src/components/forms/OtpConfirmForm.cjs.map +1 -1
  196. package/dist/production/src/components/forms/OtpConfirmForm.js.map +1 -1
  197. package/dist/production/src/components/forms/OtpPrepareForm.cjs.map +1 -1
  198. package/dist/production/src/components/forms/OtpPrepareForm.js.map +1 -1
  199. package/dist/production/src/components/forms/PasswordResetForm.cjs.map +1 -1
  200. package/dist/production/src/components/forms/PasswordResetForm.js.map +1 -1
  201. package/dist/production/src/components/forms/PasswordResetRequestForm.cjs.map +1 -1
  202. package/dist/production/src/components/forms/PasswordResetRequestForm.js +1 -1
  203. package/dist/production/src/components/forms/PasswordResetRequestForm.js.map +1 -1
  204. package/dist/production/src/components/forms/PasswordlessSignInForm.cjs +2 -2
  205. package/dist/production/src/components/forms/PasswordlessSignInForm.cjs.map +1 -1
  206. package/dist/production/src/components/forms/PasswordlessSignInForm.js +3 -3
  207. package/dist/production/src/components/forms/PasswordlessSignInForm.js.map +1 -1
  208. package/dist/production/src/components/forms/PasswordlessSignInInitForm.cjs +5 -0
  209. package/dist/production/src/components/forms/PasswordlessSignInInitForm.cjs.map +1 -1
  210. package/dist/production/src/components/forms/PasswordlessSignInInitForm.js +6 -1
  211. package/dist/production/src/components/forms/PasswordlessSignInInitForm.js.map +1 -1
  212. package/dist/production/src/components/forms/TenantForm.cjs +13 -7
  213. package/dist/production/src/components/forms/TenantForm.cjs.map +1 -1
  214. package/dist/production/src/components/forms/TenantForm.js +13 -7
  215. package/dist/production/src/components/forms/TenantForm.js.map +1 -1
  216. package/dist/production/src/components/forms/UpdateProjectMemberForm.cjs.map +1 -1
  217. package/dist/production/src/components/forms/UpdateProjectMemberForm.js.map +1 -1
  218. package/dist/production/src/components/idp/IDP.cjs +3 -3
  219. package/dist/production/src/components/idp/IDP.cjs.map +1 -1
  220. package/dist/production/src/components/idp/IDP.js +3 -3
  221. package/dist/production/src/components/idp/IDP.js.map +1 -1
  222. package/dist/production/src/components/idp/IDPInitTrigger.cjs.map +1 -1
  223. package/dist/production/src/components/idp/IDPInitTrigger.js.map +1 -1
  224. package/dist/production/src/components/idp/IDPState.cjs.map +1 -1
  225. package/dist/production/src/components/idp/IDPState.js.map +1 -1
  226. package/dist/production/src/components/triggers/DisableOtpTrigger.cjs.map +1 -1
  227. package/dist/production/src/components/triggers/DisableOtpTrigger.js.map +1 -1
  228. package/dist/production/src/components/triggers/LogoutTrigger.cjs.map +1 -1
  229. package/dist/production/src/components/triggers/LogoutTrigger.js.map +1 -1
  230. package/dist/production/src/components/triggers/RemoveProjectMemberTrigger.cjs.map +1 -1
  231. package/dist/production/src/components/triggers/RemoveProjectMemberTrigger.js.map +1 -1
  232. package/dist/production/src/components/triggers/TenantActionTrigger.cjs.map +1 -1
  233. package/dist/production/src/components/triggers/TenantActionTrigger.js.map +1 -1
  234. package/dist/production/src/contexts.cjs.map +1 -1
  235. package/dist/production/src/contexts.js +1 -1
  236. package/dist/production/src/contexts.js.map +1 -1
  237. package/dist/production/src/hooks/mutations/apiKey/useCreateApiKeyMutation.cjs.map +1 -1
  238. package/dist/production/src/hooks/mutations/apiKey/useCreateApiKeyMutation.js.map +1 -1
  239. package/dist/production/src/hooks/mutations/apiKey/useCreateGlobalApiKeyMutation.cjs.map +1 -1
  240. package/dist/production/src/hooks/mutations/apiKey/useCreateGlobalApiKeyMutation.js.map +1 -1
  241. package/dist/production/src/hooks/mutations/apiKey/useCreateSessionTokenMutation.cjs.map +1 -1
  242. package/dist/production/src/hooks/mutations/apiKey/useCreateSessionTokenMutation.js.map +1 -1
  243. package/dist/production/src/hooks/mutations/apiKey/useDisableApiKeyMutation.cjs.map +1 -1
  244. package/dist/production/src/hooks/mutations/apiKey/useDisableApiKeyMutation.js.map +1 -1
  245. package/dist/production/src/hooks/mutations/auth/useChangeMyPasswordMutation.cjs.map +1 -1
  246. package/dist/production/src/hooks/mutations/auth/useChangeMyPasswordMutation.js.map +1 -1
  247. package/dist/production/src/hooks/mutations/auth/useSignInMutation.cjs.map +1 -1
  248. package/dist/production/src/hooks/mutations/auth/useSignInMutation.js.map +1 -1
  249. package/dist/production/src/hooks/mutations/auth/useSignOutMutation.cjs.map +1 -1
  250. package/dist/production/src/hooks/mutations/auth/useSignOutMutation.js.map +1 -1
  251. package/dist/production/src/hooks/mutations/idp/useInitSignInIDPMutation.cjs.map +1 -1
  252. package/dist/production/src/hooks/mutations/idp/useInitSignInIDPMutation.js.map +1 -1
  253. package/dist/production/src/hooks/mutations/idp/useSignInIdpMutation.cjs +6 -3
  254. package/dist/production/src/hooks/mutations/idp/useSignInIdpMutation.cjs.map +1 -1
  255. package/dist/production/src/hooks/mutations/idp/useSignInIdpMutation.js +6 -3
  256. package/dist/production/src/hooks/mutations/idp/useSignInIdpMutation.js.map +1 -1
  257. package/dist/production/src/hooks/mutations/invite/useInviteMutation.cjs.map +1 -1
  258. package/dist/production/src/hooks/mutations/invite/useInviteMutation.js.map +1 -1
  259. package/dist/production/src/hooks/mutations/memberships/useAddProjectMemberMutation.cjs.map +1 -1
  260. package/dist/production/src/hooks/mutations/memberships/useAddProjectMemberMutation.js.map +1 -1
  261. package/dist/production/src/hooks/mutations/memberships/useRemoveProjectMemberMutation.cjs.map +1 -1
  262. package/dist/production/src/hooks/mutations/memberships/useRemoveProjectMemberMutation.js.map +1 -1
  263. package/dist/production/src/hooks/mutations/memberships/useUpdateProjectMemberMutation.cjs.map +1 -1
  264. package/dist/production/src/hooks/mutations/memberships/useUpdateProjectMemberMutation.js.map +1 -1
  265. package/dist/production/src/hooks/mutations/otp/useConfirmOtpMutation.cjs.map +1 -1
  266. package/dist/production/src/hooks/mutations/otp/useConfirmOtpMutation.js.map +1 -1
  267. package/dist/production/src/hooks/mutations/otp/useDisableOtpMutation.cjs.map +1 -1
  268. package/dist/production/src/hooks/mutations/otp/useDisableOtpMutation.js.map +1 -1
  269. package/dist/production/src/hooks/mutations/otp/usePrepareOtpMutation.cjs.map +1 -1
  270. package/dist/production/src/hooks/mutations/otp/usePrepareOtpMutation.js.map +1 -1
  271. package/dist/production/src/hooks/mutations/passwordReset/useCreateResetPasswordRequestMutation.cjs.map +1 -1
  272. package/dist/production/src/hooks/mutations/passwordReset/useCreateResetPasswordRequestMutation.js.map +1 -1
  273. package/dist/production/src/hooks/mutations/passwordReset/useResetPasswordMutation.cjs.map +1 -1
  274. package/dist/production/src/hooks/mutations/passwordReset/useResetPasswordMutation.js.map +1 -1
  275. package/dist/production/src/hooks/mutations/passwordless/useActivatePasswordlessOtpMutation.cjs.map +1 -1
  276. package/dist/production/src/hooks/mutations/passwordless/useActivatePasswordlessOtpMutation.js.map +1 -1
  277. package/dist/production/src/hooks/mutations/passwordless/useDisableMyPasswordlessMutation.cjs.map +1 -1
  278. package/dist/production/src/hooks/mutations/passwordless/useDisableMyPasswordlessMutation.js.map +1 -1
  279. package/dist/production/src/hooks/mutations/passwordless/useEnableMyPasswordlessMutation.cjs.map +1 -1
  280. package/dist/production/src/hooks/mutations/passwordless/useEnableMyPasswordlessMutation.js.map +1 -1
  281. package/dist/production/src/hooks/mutations/passwordless/useInitSignInPasswordlessMutation.cjs.map +1 -1
  282. package/dist/production/src/hooks/mutations/passwordless/useInitSignInPasswordlessMutation.js.map +1 -1
  283. package/dist/production/src/hooks/mutations/passwordless/useSignInPasswordlessMutation.cjs.map +1 -1
  284. package/dist/production/src/hooks/mutations/passwordless/useSignInPasswordlessMutation.js.map +1 -1
  285. package/dist/production/src/hooks/mutations/profile/useChangeMyProfile.cjs.map +1 -1
  286. package/dist/production/src/hooks/mutations/profile/useChangeMyProfile.js.map +1 -1
  287. package/dist/production/src/hooks/mutations/profile/useChangeProfile.cjs.map +1 -1
  288. package/dist/production/src/hooks/mutations/profile/useChangeProfile.js.map +1 -1
  289. package/dist/production/src/hooks/queries/useMeQuery.cjs.map +1 -1
  290. package/dist/production/src/hooks/queries/useMeQuery.js.map +1 -1
  291. package/dist/production/src/hooks/queries/useProjectMembersQuery.cjs +15 -9
  292. package/dist/production/src/hooks/queries/useProjectMembersQuery.cjs.map +1 -1
  293. package/dist/production/src/hooks/queries/useProjectMembersQuery.js +15 -9
  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 +4 -1
  300. package/dist/production/src/hooks/useFetchIdentity.cjs.map +1 -1
  301. package/dist/production/src/hooks/useFetchIdentity.js +4 -1
  302. package/dist/production/src/hooks/useFetchIdentity.js.map +1 -1
  303. package/dist/production/src/hooks/useLogout.cjs.map +1 -1
  304. package/dist/production/src/hooks/useLogout.js.map +1 -1
  305. package/dist/production/src/hooks/usePasswordlessOtpActivator.cjs.map +1 -1
  306. package/dist/production/src/hooks/usePasswordlessOtpActivator.js.map +1 -1
  307. package/dist/production/src/hooks/useTenantApi.cjs +1 -1
  308. package/dist/production/src/hooks/useTenantApi.cjs.map +1 -1
  309. package/dist/production/src/hooks/useTenantApi.js +1 -1
  310. package/dist/production/src/hooks/useTenantApi.js.map +1 -1
  311. package/dist/production/src/hooks/useTenantMutation.cjs.map +1 -1
  312. package/dist/production/src/hooks/useTenantMutation.js +1 -1
  313. package/dist/production/src/hooks/useTenantMutation.js.map +1 -1
  314. package/dist/production/src/hooks/useTenantQueryLoader.cjs.map +1 -1
  315. package/dist/production/src/hooks/useTenantQueryLoader.js.map +1 -1
  316. package/dist/production/src/internal/hooks/useHandleIDPResponse.cjs +3 -3
  317. package/dist/production/src/internal/hooks/useHandleIDPResponse.cjs.map +1 -1
  318. package/dist/production/src/internal/hooks/useHandleIDPResponse.js +3 -3
  319. package/dist/production/src/internal/hooks/useHandleIDPResponse.js.map +1 -1
  320. package/dist/production/src/internal/hooks/useIDPAutoInit.cjs.map +1 -1
  321. package/dist/production/src/internal/hooks/useIDPAutoInit.js.map +1 -1
  322. package/dist/production/src/internal/hooks/useIDPStateStore.cjs.map +1 -1
  323. package/dist/production/src/internal/hooks/useIDPStateStore.js.map +1 -1
  324. package/dist/production/src/internal/hooks/useInitIDPRedirect.cjs +3 -3
  325. package/dist/production/src/internal/hooks/useInitIDPRedirect.cjs.map +1 -1
  326. package/dist/production/src/internal/hooks/useInitIDPRedirect.js +3 -3
  327. package/dist/production/src/internal/hooks/useInitIDPRedirect.js.map +1 -1
  328. package/dist/production/src/internal/hooks/useLogoutInternal.cjs +1 -1
  329. package/dist/production/src/internal/hooks/useLogoutInternal.cjs.map +1 -1
  330. package/dist/production/src/internal/hooks/useLogoutInternal.js +1 -1
  331. package/dist/production/src/internal/hooks/useLogoutInternal.js.map +1 -1
  332. package/dist/production/src/internal/hooks/useRedirectToBacklink.cjs +9 -4
  333. package/dist/production/src/internal/hooks/useRedirectToBacklink.cjs.map +1 -1
  334. package/dist/production/src/internal/hooks/useRedirectToBacklink.js +9 -4
  335. package/dist/production/src/internal/hooks/useRedirectToBacklink.js.map +1 -1
  336. package/dist/production/src/internal/utils/getBaseHref.cjs.map +1 -1
  337. package/dist/production/src/internal/utils/getBaseHref.js.map +1 -1
  338. package/dist/production/src/internal/utils/hashing.cjs.map +1 -1
  339. package/dist/production/src/internal/utils/hashing.js.map +1 -1
  340. package/dist/production/src/internal/utils/randomInt.cjs.map +1 -1
  341. package/dist/production/src/internal/utils/randomInt.js.map +1 -1
  342. package/dist/types/components/IdentityProvider.d.ts.map +1 -1
  343. package/dist/types/components/forms/ChangeMyPasswordForm.d.ts.map +1 -1
  344. package/dist/types/components/forms/LoginForm.d.ts.map +1 -1
  345. package/dist/types/components/forms/OtpPrepareForm.d.ts.map +1 -1
  346. package/dist/types/components/forms/PasswordResetForm.d.ts.map +1 -1
  347. package/dist/types/components/forms/PasswordResetRequestForm.d.ts.map +1 -1
  348. package/dist/types/components/forms/PasswordlessSignInForm.d.ts +1 -1
  349. package/dist/types/components/forms/PasswordlessSignInForm.d.ts.map +1 -1
  350. package/dist/types/components/forms/PasswordlessSignInInitForm.d.ts.map +1 -1
  351. package/dist/types/components/forms/TenantForm.d.ts.map +1 -1
  352. package/dist/types/components/forms/UpdateProjectMemberForm.d.ts +1 -1
  353. package/dist/types/components/forms/UpdateProjectMemberForm.d.ts.map +1 -1
  354. package/dist/types/components/idp/IDP.d.ts +3 -1
  355. package/dist/types/components/idp/IDP.d.ts.map +1 -1
  356. package/dist/types/components/idp/IDPInitTrigger.d.ts.map +1 -1
  357. package/dist/types/components/triggers/DisableOtpTrigger.d.ts.map +1 -1
  358. package/dist/types/components/triggers/RemoveProjectMemberTrigger.d.ts.map +1 -1
  359. package/dist/types/components/triggers/TenantActionTrigger.d.ts.map +1 -1
  360. package/dist/types/contexts.d.ts.map +1 -1
  361. package/dist/types/hooks/mutations/apiKey/useCreateApiKeyMutation.d.ts +1 -1
  362. package/dist/types/hooks/mutations/apiKey/useCreateGlobalApiKeyMutation.d.ts +1 -1
  363. package/dist/types/hooks/mutations/apiKey/useCreateSessionTokenMutation.d.ts +1 -1
  364. package/dist/types/hooks/mutations/apiKey/useDisableApiKeyMutation.d.ts +1 -1
  365. package/dist/types/hooks/mutations/apiKey/useDisableApiKeyMutation.d.ts.map +1 -1
  366. package/dist/types/hooks/mutations/auth/useChangeMyPasswordMutation.d.ts +3 -1
  367. package/dist/types/hooks/mutations/auth/useChangeMyPasswordMutation.d.ts.map +1 -1
  368. package/dist/types/hooks/mutations/auth/useSignInMutation.d.ts +4 -2
  369. package/dist/types/hooks/mutations/auth/useSignInMutation.d.ts.map +1 -1
  370. package/dist/types/hooks/mutations/auth/useSignOutMutation.d.ts +1 -1
  371. package/dist/types/hooks/mutations/auth/useSignOutMutation.d.ts.map +1 -1
  372. package/dist/types/hooks/mutations/idp/useInitSignInIDPMutation.d.ts +1 -1
  373. package/dist/types/hooks/mutations/idp/useInitSignInIDPMutation.d.ts.map +1 -1
  374. package/dist/types/hooks/mutations/idp/useSignInIdpMutation.d.ts +1 -1
  375. package/dist/types/hooks/mutations/idp/useSignInIdpMutation.d.ts.map +1 -1
  376. package/dist/types/hooks/mutations/invite/useInviteMutation.d.ts +1 -1
  377. package/dist/types/hooks/mutations/memberships/useAddProjectMemberMutation.d.ts +1 -1
  378. package/dist/types/hooks/mutations/memberships/useAddProjectMemberMutation.d.ts.map +1 -1
  379. package/dist/types/hooks/mutations/memberships/useRemoveProjectMemberMutation.d.ts +1 -1
  380. package/dist/types/hooks/mutations/memberships/useRemoveProjectMemberMutation.d.ts.map +1 -1
  381. package/dist/types/hooks/mutations/memberships/useUpdateProjectMemberMutation.d.ts +1 -1
  382. package/dist/types/hooks/mutations/memberships/useUpdateProjectMemberMutation.d.ts.map +1 -1
  383. package/dist/types/hooks/mutations/otp/useConfirmOtpMutation.d.ts +1 -1
  384. package/dist/types/hooks/mutations/otp/useConfirmOtpMutation.d.ts.map +1 -1
  385. package/dist/types/hooks/mutations/otp/useDisableOtpMutation.d.ts +1 -1
  386. package/dist/types/hooks/mutations/otp/useDisableOtpMutation.d.ts.map +1 -1
  387. package/dist/types/hooks/mutations/otp/usePrepareOtpMutation.d.ts +1 -1
  388. package/dist/types/hooks/mutations/otp/usePrepareOtpMutation.d.ts.map +1 -1
  389. package/dist/types/hooks/mutations/passwordReset/useCreateResetPasswordRequestMutation.d.ts +2 -2
  390. package/dist/types/hooks/mutations/passwordReset/useCreateResetPasswordRequestMutation.d.ts.map +1 -1
  391. package/dist/types/hooks/mutations/passwordReset/useResetPasswordMutation.d.ts +4 -2
  392. package/dist/types/hooks/mutations/passwordReset/useResetPasswordMutation.d.ts.map +1 -1
  393. package/dist/types/hooks/mutations/passwordless/useActivatePasswordlessOtpMutation.d.ts +2 -2
  394. package/dist/types/hooks/mutations/passwordless/useActivatePasswordlessOtpMutation.d.ts.map +1 -1
  395. package/dist/types/hooks/mutations/passwordless/useDisableMyPasswordlessMutation.d.ts +1 -1
  396. package/dist/types/hooks/mutations/passwordless/useDisableMyPasswordlessMutation.d.ts.map +1 -1
  397. package/dist/types/hooks/mutations/passwordless/useEnableMyPasswordlessMutation.d.ts +1 -1
  398. package/dist/types/hooks/mutations/passwordless/useEnableMyPasswordlessMutation.d.ts.map +1 -1
  399. package/dist/types/hooks/mutations/passwordless/useInitSignInPasswordlessMutation.d.ts +2 -2
  400. package/dist/types/hooks/mutations/passwordless/useSignInPasswordlessMutation.d.ts +2 -2
  401. package/dist/types/hooks/mutations/profile/useChangeMyProfile.d.ts +1 -1
  402. package/dist/types/hooks/mutations/profile/useChangeMyProfile.d.ts.map +1 -1
  403. package/dist/types/hooks/mutations/profile/useChangeProfile.d.ts +1 -1
  404. package/dist/types/hooks/mutations/profile/useChangeProfile.d.ts.map +1 -1
  405. package/dist/types/hooks/queries/useMeQuery.d.ts.map +1 -1
  406. package/dist/types/hooks/queries/useProjectMembersQuery.d.ts.map +1 -1
  407. package/dist/types/hooks/queries/useProjectMembershipsQuery.d.ts.map +1 -1
  408. package/dist/types/hooks/queries/useProjectRolesDefinitionQuery.d.ts.map +1 -1
  409. package/dist/types/hooks/useFetchIdentity.d.ts.map +1 -1
  410. package/dist/types/hooks/usePasswordlessOtpActivator.d.ts.map +1 -1
  411. package/dist/types/hooks/useTenantApi.d.ts.map +1 -1
  412. package/dist/types/hooks/useTenantMutation.d.ts.map +1 -1
  413. package/dist/types/hooks/useTenantQueryLoader.d.ts.map +1 -1
  414. package/dist/types/internal/hooks/useHandleIDPResponse.d.ts +2 -1
  415. package/dist/types/internal/hooks/useHandleIDPResponse.d.ts.map +1 -1
  416. package/dist/types/internal/hooks/useIDPStateStore.d.ts.map +1 -1
  417. package/dist/types/internal/hooks/useInitIDPRedirect.d.ts +2 -1
  418. package/dist/types/internal/hooks/useInitIDPRedirect.d.ts.map +1 -1
  419. package/dist/types/internal/hooks/useRedirectToBacklink.d.ts +3 -1
  420. package/dist/types/internal/hooks/useRedirectToBacklink.d.ts.map +1 -1
  421. package/dist/types/internal/utils/randomInt.d.ts.map +1 -1
  422. package/dist/types/tsconfig.tsbuildinfo +1 -1
  423. package/dist/types/types/idp.d.ts.map +1 -1
  424. package/package.json +11 -11
  425. package/src/components/IdentityProvider.tsx +0 -2
  426. package/src/components/forms/ChangeMyPasswordForm.tsx +0 -1
  427. package/src/components/forms/LoginForm.tsx +2 -2
  428. package/src/components/forms/OtpConfirmForm.tsx +1 -2
  429. package/src/components/forms/OtpPrepareForm.tsx +1 -3
  430. package/src/components/forms/PasswordResetForm.tsx +0 -1
  431. package/src/components/forms/PasswordResetRequestForm.tsx +0 -3
  432. package/src/components/forms/PasswordlessSignInForm.tsx +12 -9
  433. package/src/components/forms/PasswordlessSignInInitForm.tsx +6 -3
  434. package/src/components/forms/TenantForm.tsx +14 -10
  435. package/src/components/forms/UpdateProjectMemberForm.tsx +2 -2
  436. package/src/components/idp/IDP.tsx +5 -5
  437. package/src/components/idp/IDPInitTrigger.tsx +1 -3
  438. package/src/components/triggers/DisableOtpTrigger.tsx +2 -1
  439. package/src/components/triggers/RemoveProjectMemberTrigger.tsx +0 -1
  440. package/src/components/triggers/TenantActionTrigger.tsx +4 -2
  441. package/src/contexts.ts +0 -2
  442. package/src/hooks/mutations/apiKey/useDisableApiKeyMutation.tsx +0 -1
  443. package/src/hooks/mutations/auth/useSignInMutation.ts +0 -1
  444. package/src/hooks/mutations/idp/useInitSignInIDPMutation.ts +5 -2
  445. package/src/hooks/mutations/idp/useSignInIdpMutation.ts +6 -4
  446. package/src/hooks/mutations/otp/useConfirmOtpMutation.ts +5 -5
  447. package/src/hooks/mutations/otp/usePrepareOtpMutation.ts +0 -1
  448. package/src/hooks/mutations/passwordless/useActivatePasswordlessOtpMutation.ts +0 -1
  449. package/src/hooks/mutations/passwordless/useDisableMyPasswordlessMutation.ts +0 -1
  450. package/src/hooks/mutations/passwordless/useEnableMyPasswordlessMutation.ts +0 -1
  451. package/src/hooks/mutations/profile/useChangeMyProfile.ts +2 -2
  452. package/src/hooks/mutations/profile/useChangeProfile.ts +2 -2
  453. package/src/hooks/queries/useMeQuery.ts +5 -4
  454. package/src/hooks/queries/useProjectMembersQuery.ts +19 -14
  455. package/src/hooks/queries/useProjectMembershipsQuery.ts +0 -1
  456. package/src/hooks/queries/useProjectRolesDefinitionQuery.ts +1 -2
  457. package/src/hooks/useFetchIdentity.ts +4 -1
  458. package/src/hooks/usePasswordlessOtpActivator.ts +4 -3
  459. package/src/hooks/useTenantApi.ts +0 -1
  460. package/src/hooks/useTenantMutation.ts +8 -6
  461. package/src/hooks/useTenantQueryLoader.ts +4 -3
  462. package/src/internal/hooks/useHandleIDPResponse.ts +6 -3
  463. package/src/internal/hooks/useIDPAutoInit.ts +0 -1
  464. package/src/internal/hooks/useIDPStateStore.ts +1 -1
  465. package/src/internal/hooks/useInitIDPRedirect.ts +4 -3
  466. package/src/internal/hooks/useLogoutInternal.ts +1 -1
  467. package/src/internal/hooks/useRedirectToBacklink.ts +11 -5
  468. package/src/internal/utils/randomInt.ts +0 -1
  469. package/src/types/idp.ts +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"idp.d.ts","sourceRoot":"","sources":["../../../src/types/idp.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAA;AAE7F,MAAM,MAAM,aAAa,GACtB;IAAE,IAAI,EAAE,SAAS,CAAA;CAAE,GACnB;IAAE,IAAI,EAAE,iBAAiB,CAAA;CAAE,GAC3B;IAAE,IAAI,EAAE,qBAAqB,CAAA;CAAE,GAC/B;IAAE,IAAI,EAAE,SAAS,CAAA;CAAE,GACnB;IAAE,IAAI,EAAE,aAAa,CAAC;IAAC,KAAK,EAAE,YAAY,CAAA;CAAE,GAC5C;IAAE,IAAI,EAAE,iBAAiB,CAAC;IAAC,KAAK,EAAE,gBAAgB,CAAA;CAAE,CAAA;AAEvD,MAAM,MAAM,YAAY,GAAG,aAAa,CAAC,MAAM,CAAC,CAAA;AAEhD,MAAM,MAAM,YAAY,GACrB,sBAAsB,GACtB,eAAe,CAAA;AAElB,MAAM,MAAM,gBAAgB,GACzB,kBAAkB,GAClB,qBAAqB,GACrB,eAAe,CAAA;AAGlB,MAAM,MAAM,UAAU,GAAG;IACxB,YAAY,EAAE,CAAC,IAAI,EAAE;QAAE,QAAQ,EAAE,MAAM,CAAA;KAAE,KAAK,OAAO,CAAC;QAAE,EAAE,EAAE,IAAI,CAAA;KAAE,GAAG;QAAE,EAAE,EAAE,KAAK,CAAC;QAAC,KAAK,EAAE,YAAY,CAAA;KAAE,CAAC,CAAA;CACxG,CAAA"}
1
+ {"version":3,"file":"idp.d.ts","sourceRoot":"","sources":["../../../src/types/idp.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAA;AAE7F,MAAM,MAAM,aAAa,GACtB;IAAE,IAAI,EAAE,SAAS,CAAA;CAAE,GACnB;IAAE,IAAI,EAAE,iBAAiB,CAAA;CAAE,GAC3B;IAAE,IAAI,EAAE,qBAAqB,CAAA;CAAE,GAC/B;IAAE,IAAI,EAAE,SAAS,CAAA;CAAE,GACnB;IAAE,IAAI,EAAE,aAAa,CAAC;IAAC,KAAK,EAAE,YAAY,CAAA;CAAE,GAC5C;IAAE,IAAI,EAAE,iBAAiB,CAAC;IAAC,KAAK,EAAE,gBAAgB,CAAA;CAAE,CAAA;AAEvD,MAAM,MAAM,YAAY,GAAG,aAAa,CAAC,MAAM,CAAC,CAAA;AAEhD,MAAM,MAAM,YAAY,GACrB,sBAAsB,GACtB,eAAe,CAAA;AAElB,MAAM,MAAM,gBAAgB,GACzB,kBAAkB,GAClB,qBAAqB,GACrB,eAAe,CAAA;AAElB,MAAM,MAAM,UAAU,GAAG;IACxB,YAAY,EAAE,CAAC,IAAI,EAAE;QAAE,QAAQ,EAAE,MAAM,CAAA;KAAE,KAAK,OAAO,CAAC;QAAE,EAAE,EAAE,IAAI,CAAA;KAAE,GAAG;QAAE,EAAE,EAAE,KAAK,CAAC;QAAC,KAAK,EAAE,YAAY,CAAA;KAAE,CAAC,CAAA;CACxG,CAAA"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@contember/react-client-tenant",
3
3
  "license": "Apache-2.0",
4
- "version": "2.1.0-alpha.9",
4
+ "version": "2.1.0-beta.2",
5
5
  "type": "module",
6
6
  "sideEffects": false,
7
7
  "main": "./dist/production/index.js",
@@ -30,23 +30,23 @@
30
30
  },
31
31
  "repository": {
32
32
  "type": "git",
33
- "url": "https://github.com/contember/interface.git",
33
+ "url": "git+https://github.com/contember/contember.git",
34
34
  "directory": "packages/react-client-tenant"
35
35
  },
36
36
  "dependencies": {
37
- "@contember/graphql-client-tenant": "2.1.0-alpha.9",
38
- "@contember/react-client": "2.1.0-alpha.9",
39
- "@contember/react-utils": "2.1.0-alpha.9",
40
- "@radix-ui/primitive": "^1.1.0",
41
- "@radix-ui/react-slot": "^1.1.0",
37
+ "@contember/graphql-client-tenant": "2.1.0-beta.1",
38
+ "@contember/react-client": "2.1.0-beta.1",
39
+ "@contember/react-utils": "2.1.0-beta.1",
40
+ "@radix-ui/primitive": "^1.1.3",
41
+ "@radix-ui/react-slot": "^1.2.4",
42
42
  "graphql-ts-client-api": "^3.1.17"
43
43
  },
44
44
  "peerDependencies": {
45
- "react": "^18 || ^19",
46
- "react-dom": "^18 || ^19"
45
+ "react": "^19.2.4",
46
+ "react-dom": "^19.2.4"
47
47
  },
48
48
  "devDependencies": {
49
- "react": "^18.3.1",
50
- "react-dom": "^18.3.1"
49
+ "react": "^19.2.4",
50
+ "react-dom": "^19.2.4"
51
51
  }
52
52
  }
@@ -3,7 +3,6 @@ import { ReactNode, useEffect } from 'react'
3
3
  import { useFetchIdentity } from '../hooks'
4
4
  import { IdentityContext, IdentityMethodsContext, IdentityStateContext } from '../contexts'
5
5
 
6
-
7
6
  export interface IdentityProviderProps {
8
7
  children: ReactNode
9
8
  }
@@ -19,7 +18,6 @@ export const IdentityProvider: React.FC<IdentityProviderProps> = ({ children })
19
18
  }
20
19
  }, [sessionToken, refreshIdentity])
21
20
 
22
-
23
21
  const hasIdentity = identity !== undefined
24
22
  useEffect(() => {
25
23
  if (sessionToken === undefined && hasIdentity) {
@@ -65,7 +65,6 @@ export const ChangeMyPasswordForm = ({ children, onSuccess }: ChangeMyPasswordFo
65
65
  {children}
66
66
  </TenantForm>
67
67
  )
68
-
69
68
  }
70
69
  const errorToField: Partial<Record<ChangeMyPasswordFormErrorCode, keyof ChangeMyPasswordFormValues | undefined>> = {
71
70
  PASSWORD_MISMATCH: 'passwordConfirmation',
@@ -8,7 +8,6 @@ import { useSetSessionToken } from '@contember/react-client'
8
8
  import { SignInMutationResult, useSignInMutation } from '../../hooks'
9
9
  import { useRedirectToBacklinkCallback } from '../../internal/hooks/useRedirectToBacklink'
10
10
 
11
-
12
11
  export type LoginFormValues = {
13
12
  email: string
14
13
  password: string
@@ -98,7 +97,6 @@ export const LoginForm = ({ children, expiration = DEFAULT_LOGIN_EXPIRATION, onS
98
97
  {children}
99
98
  </TenantForm>
100
99
  )
101
-
102
100
  }
103
101
  const errorToField: Record<TenantApi.SignInErrorCode, keyof LoginFormValues | undefined> = {
104
102
  'INVALID_PASSWORD': 'password',
@@ -106,5 +104,7 @@ const errorToField: Record<TenantApi.SignInErrorCode, keyof LoginFormValues | un
106
104
  'UNKNOWN_EMAIL': 'email',
107
105
  'PERSON_DISABLED': 'email',
108
106
  'INVALID_OTP_TOKEN': 'otpToken',
107
+ 'INVALID_CREDENTIALS': 'password',
108
+ 'RATE_LIMIT_EXCEEDED': 'password',
109
109
  'OTP_REQUIRED': undefined,
110
110
  }
@@ -46,7 +46,7 @@ export const OtpConfirmForm = ({ children, onSuccess }: OtpConfirmFormProps) =>
46
46
  }}
47
47
  execute={async ({ values }) => {
48
48
  return await confirmOtp({
49
- otpToken: values.otpToken,
49
+ otpToken: values.otpToken,
50
50
  })
51
51
  }}
52
52
  errorMapping={{
@@ -58,4 +58,3 @@ export const OtpConfirmForm = ({ children, onSuccess }: OtpConfirmFormProps) =>
58
58
  </TenantForm>
59
59
  )
60
60
  }
61
-
@@ -8,8 +8,7 @@ export type OtpPrepareFormValues = {
8
8
  label: string
9
9
  }
10
10
 
11
- export type OtpPrepareFormErrorCode =
12
- | 'UNKNOWN_ERROR'
11
+ export type OtpPrepareFormErrorCode = 'UNKNOWN_ERROR'
13
12
 
14
13
  export type OtpPrepareFormState = FormState
15
14
 
@@ -42,4 +41,3 @@ export const OtpPrepareForm = ({ children, onSuccess }: OtpPrepareFormProps) =>
42
41
  </TenantForm>
43
42
  )
44
43
  }
45
-
@@ -70,7 +70,6 @@ export const PasswordResetForm = ({ children, onSuccess, token }: PasswordResetF
70
70
  {children}
71
71
  </TenantForm>
72
72
  )
73
-
74
73
  }
75
74
  const errorToField: Record<TenantApi.ResetPasswordErrorCode, keyof PasswordResetFormValues | undefined> = {
76
75
  PASSWORD_TOO_WEAK: 'password',
@@ -22,7 +22,6 @@ export type PasswordResetRequestFormError = FormError<PasswordResetRequestFormVa
22
22
 
23
23
  export type PasswordResetRequestFormContextValue = FormContextValue<PasswordResetRequestFormValues, PasswordResetRequestFormErrorCode>
24
24
 
25
-
26
25
  export interface PasswordResetRequestFormProps {
27
26
  children: ReactElement
28
27
  onSuccess?: () => void
@@ -31,7 +30,6 @@ export interface PasswordResetRequestFormProps {
31
30
  export const usePasswordResetRequestForm = useForm as () => PasswordResetRequestFormContextValue
32
31
 
33
32
  export const PasswordResetRequestForm = ({ children, onSuccess }: PasswordResetRequestFormProps) => {
34
-
35
33
  const createResetRequest = useCreateResetPasswordRequestMutation()
36
34
  return (
37
35
  <TenantForm<PasswordResetRequestFormContextValue>
@@ -57,7 +55,6 @@ export const PasswordResetRequestForm = ({ children, onSuccess }: PasswordResetR
57
55
  {children}
58
56
  </TenantForm>
59
57
  )
60
-
61
58
  }
62
59
  const errorToField: Record<TenantApi.CreatePasswordResetRequestErrorCode, keyof PasswordResetRequestFormValues | undefined> = {
63
60
  PERSON_NOT_FOUND: 'email',
@@ -1,11 +1,11 @@
1
- import { ReactElement, useCallback, useMemo } from 'react'
2
1
  import * as TenantApi from '@contember/graphql-client-tenant'
3
- import { TenantForm } from './TenantForm'
4
- import { FormContextValue, FormError, FormState } from '../../types/forms'
2
+ import { useSetSessionToken } from '@contember/react-client'
3
+ import { ReactElement, useCallback, useMemo } from 'react'
5
4
  import { useForm } from '../../contexts'
6
5
  import { SignInPasswordlessMutationResult, useSignInPasswordlessMutation } from '../../hooks'
7
6
  import { useRedirectToBacklinkCallback } from '../../internal/hooks/useRedirectToBacklink'
8
- import { useSetSessionToken } from '@contember/react-client'
7
+ import { FormContextValue, FormError, FormState } from '../../types/forms'
8
+ import { TenantForm } from './TenantForm'
9
9
 
10
10
  export type PasswordlessSignInFormValues = {
11
11
  token: string
@@ -24,8 +24,11 @@ export type PasswordlessSignInFormState =
24
24
 
25
25
  export type PasswordlessSignInFormError = FormError<PasswordlessSignInFormValues, PasswordlessSignInFormErrorCode>
26
26
 
27
- export type PasswordlessSignInFormContextValue = FormContextValue<PasswordlessSignInFormValues, PasswordlessSignInFormErrorCode, PasswordlessSignInFormState>
28
-
27
+ export type PasswordlessSignInFormContextValue = FormContextValue<
28
+ PasswordlessSignInFormValues,
29
+ PasswordlessSignInFormErrorCode,
30
+ PasswordlessSignInFormState
31
+ >
29
32
 
30
33
  export interface PasswordlessSignInFormProps {
31
34
  requestId: string
@@ -43,8 +46,9 @@ const headers = {
43
46
  }
44
47
  const DEFAULT_LOGIN_EXPIRATION = 14 * 24 * 60 // 14 days
45
48
 
46
- export const PasswordlessSignInForm = ({ children, onSuccess, requestId, validationType, token, expiration = DEFAULT_LOGIN_EXPIRATION }: PasswordlessSignInFormProps) => {
47
-
49
+ export const PasswordlessSignInForm = (
50
+ { children, onSuccess, requestId, validationType, token, expiration = DEFAULT_LOGIN_EXPIRATION }: PasswordlessSignInFormProps,
51
+ ) => {
48
52
  const signIn = useSignInPasswordlessMutation({ headers })
49
53
  const redirectToBacklink = useRedirectToBacklinkCallback()
50
54
  const setSessionToken = useSetSessionToken()
@@ -89,7 +93,6 @@ export const PasswordlessSignInForm = ({ children, onSuccess, requestId, validat
89
93
  {children}
90
94
  </TenantForm>
91
95
  )
92
-
93
96
  }
94
97
  const errorToField: Record<TenantApi.SignInPasswordlessErrorCode, keyof PasswordlessSignInFormValues | undefined> = {
95
98
  PERSON_DISABLED: undefined,
@@ -5,6 +5,7 @@ import { FormContextValue, FormError, FormState } from '../../types/forms'
5
5
  import { useForm } from '../../contexts'
6
6
  import { InitSignInPasswordlessMutationResult, useInitSignInPasswordlessMutation } from '../../hooks'
7
7
  import { PASSWORDLESS_REQUEST_STORAGE_KEY } from '../../consts'
8
+ import { useSaveBacklink } from '../../internal/hooks/useRedirectToBacklink'
8
9
 
9
10
  export type PasswordlessSignInInitFormValues = {
10
11
  email: string
@@ -22,7 +23,6 @@ export type PasswordlessSignInInitFormError = FormError<PasswordlessSignInInitFo
22
23
 
23
24
  export type PasswordlessSignInInitFormContextValue = FormContextValue<PasswordlessSignInInitFormValues, PasswordlessSignInInitFormErrorCode>
24
25
 
25
-
26
26
  export interface PasswordlessSignInInitFormProps {
27
27
  children: ReactElement
28
28
  onSuccess?: (args: { result: InitSignInPasswordlessMutationResult }) => void
@@ -31,12 +31,16 @@ export interface PasswordlessSignInInitFormProps {
31
31
  export const usePasswordlessSignInInitForm = useForm as () => PasswordlessSignInInitFormContextValue
32
32
 
33
33
  export const PasswordlessSignInInitForm = ({ children, onSuccess }: PasswordlessSignInInitFormProps) => {
34
-
35
34
  const initSignIn = useInitSignInPasswordlessMutation()
35
+ const saveBacklink = useSaveBacklink({
36
+ storage: 'local',
37
+ })
38
+
36
39
  return (
37
40
  <TenantForm<PasswordlessSignInInitFormContextValue, InitSignInPasswordlessMutationResult>
38
41
  onSuccess={res => {
39
42
  localStorage.setItem(PASSWORDLESS_REQUEST_STORAGE_KEY, res.result.requestId)
43
+ saveBacklink()
40
44
  onSuccess?.(res)
41
45
  }}
42
46
  errorMapping={errorToField}
@@ -60,7 +64,6 @@ export const PasswordlessSignInInitForm = ({ children, onSuccess }: Passwordless
60
64
  {children}
61
65
  </TenantForm>
62
66
  )
63
-
64
67
  }
65
68
  const errorToField: Record<TenantApi.InitSignInPasswordlessErrorCode, keyof PasswordlessSignInInitFormValues | undefined> = {
66
69
  PERSON_NOT_FOUND: 'email',
@@ -6,7 +6,6 @@ import { useReferentiallyStableCallback } from '@contember/react-utils'
6
6
 
7
7
  const SlotForm = Slot as ComponentType<React.FormHTMLAttributes<HTMLFormElement>>
8
8
 
9
-
10
9
  type ExecuteResult<T extends FormContextValue<any, any, any>, OkResult = undefined> =
11
10
  | ({ ok: true } & (OkResult extends undefined ? {} : { result: OkResult }))
12
11
  | { ok: false; error?: T['errors'][number]['code']; developerMessage?: string; state?: T['state'] }
@@ -87,12 +86,15 @@ export const TenantForm = <T extends FormContextValue<any, any, any>, OkResult =
87
86
  setState('error')
88
87
  setErrors([{
89
88
  code: 'UNKNOWN_ERROR',
90
- developerMessage: typeof e === 'string' ? e : (e && typeof e === 'object' && 'message' in e && typeof e.message === 'string') ? e.message : undefined,
89
+ developerMessage: typeof e === 'string'
90
+ ? e
91
+ : (e && typeof e === 'object' && 'message' in e && typeof e.message === 'string')
92
+ ? e.message
93
+ : undefined,
91
94
  }])
92
95
  }
93
96
  })
94
97
 
95
-
96
98
  const onChange = useReferentiallyStableCallback(onChangeIn || (() => undefined))
97
99
  useEffect(() => {
98
100
  onChange?.({ values, state, submit })
@@ -101,13 +103,15 @@ export const TenantForm = <T extends FormContextValue<any, any, any>, OkResult =
101
103
  const setValue = useCallback((field: string, value: string) => setValues(values => ({ ...values, [field]: value })), [])
102
104
 
103
105
  return (
104
- <FormContext.Provider value={{
105
- values,
106
- setValues,
107
- state,
108
- errors,
109
- setValue: setValue,
110
- } as unknown as T}>
106
+ <FormContext.Provider
107
+ value={{
108
+ values,
109
+ setValues,
110
+ state,
111
+ errors,
112
+ setValue: setValue,
113
+ } as unknown as T}
114
+ >
111
115
  <SlotForm onSubmit={submit}>
112
116
  {children}
113
117
  </SlotForm>
@@ -2,7 +2,7 @@ import { ReactElement, useEffect, useState } from 'react'
2
2
  import { TenantForm } from './TenantForm'
3
3
  import { FormContextValue, FormError, FormState } from '../../types'
4
4
  import { useForm } from '../../contexts'
5
- import { UpdateProjectMemberErrorCode, MembershipInput } from '@contember/graphql-client-tenant'
5
+ import { MembershipInput, UpdateProjectMemberErrorCode } from '@contember/graphql-client-tenant'
6
6
  import { useProjectMembershipsQuery, useTenantQueryLoader, useUpdateProjectMemberMutation } from '../../hooks'
7
7
 
8
8
  export type UpdateProjectMemberFormValues = {
@@ -24,7 +24,7 @@ export interface UpdateProjectMemberFormProps {
24
24
  children: ReactElement
25
25
  identityId: string
26
26
  projectSlug: string
27
- onSuccess?: (args: { }) => void
27
+ onSuccess?: (args: {}) => void
28
28
  }
29
29
 
30
30
  export const useUpdateProjectMemberForm = useForm as () => UpdateProjectMemberFormContextValue
@@ -10,9 +10,11 @@ export interface IDPProps {
10
10
  onLogin?: () => void
11
11
  onInitError?: (error: IDPInitError) => void
12
12
  onResponseError?: (error: IDPResponseError) => void
13
+ expiration?: number
14
+ redirectUrl?: string
13
15
  }
14
16
 
15
- export const IDP = ({ children, onResponseError, onInitError, onLogin }: IDPProps) => {
17
+ export const IDP = ({ children, onResponseError, onInitError, onLogin, expiration, redirectUrl }: IDPProps) => {
16
18
  const hasOauthResponse = useMemo(() => {
17
19
  const params = new URLSearchParams(window.location.search)
18
20
  return params.has('state') && (params.has('code') || params.has('id_token'))
@@ -28,9 +30,9 @@ export const IDP = ({ children, onResponseError, onInitError, onLogin }: IDPProp
28
30
  }
29
31
  return { type: 'nothing' }
30
32
  })
31
- useHandleIDPResponse({ hasOauthResponse, setState, onLogin })
33
+ useHandleIDPResponse({ hasOauthResponse, setState, onLogin, expiration: expiration, redirectUrl })
32
34
 
33
- const initRedirect = useInitIDPRedirect({ setState })
35
+ const initRedirect = useInitIDPRedirect({ setState, redirectUrl })
34
36
 
35
37
  const isFirstRender = useRef(true)
36
38
  useEffect(() => {
@@ -53,7 +55,6 @@ export const IDP = ({ children, onResponseError, onInitError, onLogin }: IDPProp
53
55
  }
54
56
  }, [onInitError, onResponseError, state])
55
57
 
56
-
57
58
  return (
58
59
  <IDPStateContextProvider.Provider value={state}>
59
60
  <IDPMethodsContextProvider.Provider value={{ initRedirect }}>
@@ -61,5 +62,4 @@ export const IDP = ({ children, onResponseError, onInitError, onLogin }: IDPProp
61
62
  </IDPMethodsContextProvider.Provider>
62
63
  </IDPStateContextProvider.Provider>
63
64
  )
64
-
65
65
  }
@@ -11,7 +11,5 @@ export interface IDPInitTriggerProps {
11
11
 
12
12
  export const IDPInitTrigger = ({ identityProvider, ...props }: IDPInitTriggerProps) => {
13
13
  const initIdp = useIDPMethods().initRedirect
14
- return (
15
- <SlotButton onClick={() => initIdp({ provider: identityProvider })} {...props} />
16
- )
14
+ return <SlotButton onClick={() => initIdp({ provider: identityProvider })} {...props} />
17
15
  }
@@ -19,7 +19,8 @@ export const DisableOtpTrigger = ({ onSuccess, ...props }: DisableOtpTriggerProp
19
19
  onSuccess={() => {
20
20
  refreshIdentity()
21
21
  onSuccess?.()
22
- }} {...props}
22
+ }}
23
+ {...props}
23
24
  />
24
25
  )
25
26
  }
@@ -10,7 +10,6 @@ export type RemoveProjectMemberTriggerProps =
10
10
  onError?: (e: unknown) => void
11
11
  }
12
12
 
13
-
14
13
  export const RemoveProjectMemberTrigger = ({ identityId, projectSlug, ...props }: RemoveProjectMemberTriggerProps) => {
15
14
  const removeProjectMember = useRemoveProjectMemberMutation()
16
15
  const execute = useCallback(async () => await removeProjectMember({ projectSlug, identityId }), [identityId, projectSlug, removeProjectMember])
@@ -8,12 +8,14 @@ const SlotButton = Slot as ComponentType<React.ButtonHTMLAttributes<HTMLButtonEl
8
8
  export interface TenantActionTriggerProps<OkResult, Error extends string> {
9
9
  children: ReactElement
10
10
  onClick?: MouseEventHandler<HTMLButtonElement>
11
- onSuccess?: (args: {result: OkResult}) => void
11
+ onSuccess?: (args: { result: OkResult }) => void
12
12
  onError?: (args: { code: Error | 'UNKNOWN_ERROR'; error: unknown }) => void
13
13
  execute: () => Promise<({ ok: true } & (OkResult extends undefined ? {} : { result: OkResult })) | { ok: false; error?: Error }>
14
14
  }
15
15
 
16
- export const TenantActionTrigger = <OkResult, Error extends string>({ onError: onErrorIn, onSuccess: onSuccessIn, onClick: onClickProp, execute: executeIn, ...props }: TenantActionTriggerProps<OkResult, Error>) => {
16
+ export const TenantActionTrigger = <OkResult, Error extends string>(
17
+ { onError: onErrorIn, onSuccess: onSuccessIn, onClick: onClickProp, execute: executeIn, ...props }: TenantActionTriggerProps<OkResult, Error>,
18
+ ) => {
17
19
  const [submitting, setSubmitting] = useState(false)
18
20
 
19
21
  const onSuccess = useReferentiallyStableCallback(onSuccessIn || (() => undefined))
package/src/contexts.ts CHANGED
@@ -16,13 +16,11 @@ const IdentityStateContext_ = createRequiredContext<IdentityStateValue>('Identit
16
16
  export const IdentityStateContext = IdentityStateContext_[0]
17
17
  export const useIdentityState = IdentityStateContext_[1]
18
18
 
19
-
20
19
  const FormContext_ = createRequiredContext<FormContextValue<any, any, any>>('FormContext')
21
20
  /** @internal */
22
21
  export const FormContext = FormContext_[0]
23
22
  export const useForm = FormContext_[1]
24
23
 
25
-
26
24
  const IDPStateContext = createRequiredContext<IDPStateValue>('IDPStateContext')
27
25
  /** @internal */
28
26
  export const IDPStateContextProvider = IDPStateContext[0]
@@ -1,7 +1,6 @@
1
1
  import * as TenantApi from '@contember/graphql-client-tenant'
2
2
  import { createTenantMutation } from '../../useTenantMutation'
3
3
 
4
-
5
4
  export const disableApiKeyMutation = TenantApi.mutation$
6
5
  .disableApiKey(
7
6
  TenantApi
@@ -17,7 +17,6 @@ export const signInMutation = TenantApi
17
17
  options => options.alias('mutation'),
18
18
  )
19
19
 
20
-
21
20
  export const useSignInMutation = createTenantMutation(signInMutation, {
22
21
  apiToken: LoginToken,
23
22
  })
@@ -3,7 +3,6 @@ import { LoginToken } from '../../useTenantApi'
3
3
  import { createTenantMutation } from '../../useTenantMutation'
4
4
  import { ModelType } from 'graphql-ts-client-api'
5
5
 
6
-
7
6
  export type InitSignInIDPMutationVariables = {
8
7
  identityProvider: string
9
8
  data: {
@@ -24,6 +23,10 @@ const InitSignInIDPMutation = TenantApi
24
23
  options => options.alias('mutation'),
25
24
  )
26
25
 
27
- export const useInitSignInIDPMutation = createTenantMutation<InitSignInIDPMutationResult, TenantApi.InitSignInIDPErrorCode, InitSignInIDPMutationVariables>(InitSignInIDPMutation, {
26
+ export const useInitSignInIDPMutation = createTenantMutation<
27
+ InitSignInIDPMutationResult,
28
+ TenantApi.InitSignInIDPErrorCode,
29
+ InitSignInIDPMutationVariables
30
+ >(InitSignInIDPMutation, {
28
31
  apiToken: LoginToken,
29
32
  })
@@ -29,7 +29,9 @@ export type SignInIDPMutationVariables = {
29
29
  & { [key: string]: any }
30
30
  }
31
31
 
32
-
33
- export const useSignInIDPMutation = createTenantMutation<SignInIDPMutationResult, TenantApi.SignInIDPErrorCode, SignInIDPMutationVariables>(signInIDPMutation, {
34
- apiToken: LoginToken,
35
- })
32
+ export const useSignInIDPMutation = createTenantMutation<SignInIDPMutationResult, TenantApi.SignInIDPErrorCode, SignInIDPMutationVariables>(
33
+ signInIDPMutation,
34
+ {
35
+ apiToken: LoginToken,
36
+ },
37
+ )
@@ -2,12 +2,12 @@ import * as TenantApi from '@contember/graphql-client-tenant'
2
2
  import { createTenantMutation } from '../../useTenantMutation'
3
3
 
4
4
  export const confirmOtpMutation = TenantApi.mutation$
5
- .confirmOtp(TenantApi
6
- .confirmOtpResponse$$
7
- .error(TenantApi.confirmOtpError$$),
8
- options => options.alias('mutation'),
5
+ .confirmOtp(
6
+ TenantApi
7
+ .confirmOtpResponse$$
8
+ .error(TenantApi.confirmOtpError$$),
9
+ options => options.alias('mutation'),
9
10
  )
10
11
 
11
-
12
12
  export const useConfirmOtpMutation = createTenantMutation(confirmOtpMutation)
13
13
  export type ConfirmOtpMutationVariables = Parameters<ReturnType<typeof useConfirmOtpMutation>>[0]
@@ -11,6 +11,5 @@ export const prepareOtpMutation = TenantApi.mutation$.prepareOtp(
11
11
  options => options.alias('mutation'),
12
12
  )
13
13
 
14
-
15
14
  export const usePrepareOtpMutation = createTenantMutation(prepareOtpMutation)
16
15
  export type PrepareOtpMutationVariables = Parameters<ReturnType<typeof usePrepareOtpMutation>>[0]
@@ -2,7 +2,6 @@ import * as TenantApi from '@contember/graphql-client-tenant'
2
2
  import { LoginToken } from '../../useTenantApi'
3
3
  import { createTenantMutation } from '../../useTenantMutation'
4
4
 
5
-
6
5
  const ActivatePasswordlessOtpMutation = TenantApi
7
6
  .mutation$
8
7
  .activatePasswordlessOtp(
@@ -1,7 +1,6 @@
1
1
  import * as TenantApi from '@contember/graphql-client-tenant'
2
2
  import { createTenantMutation } from '../../useTenantMutation'
3
3
 
4
-
5
4
  const DisableMyPasswordlessMutation = TenantApi
6
5
  .mutation$
7
6
  .disableMyPasswordless(
@@ -1,7 +1,6 @@
1
1
  import * as TenantApi from '@contember/graphql-client-tenant'
2
2
  import { createTenantMutation } from '../../useTenantMutation'
3
3
 
4
-
5
4
  const EnableMyPasswordlessMutation = TenantApi
6
5
  .mutation$
7
6
  .enableMyPasswordless(
@@ -4,8 +4,8 @@ import { createTenantMutation } from '../../useTenantMutation'
4
4
  export const changeMyProfile = TenantApi.mutation$
5
5
  .changeMyProfile(
6
6
  TenantApi
7
- .changeMyProfileResponse$$
8
- .error(TenantApi.changeMyProfileError$$),
7
+ .changeMyProfileResponse$$
8
+ .error(TenantApi.changeMyProfileError$$),
9
9
  options => options.alias('mutation'),
10
10
  )
11
11
 
@@ -4,8 +4,8 @@ import { createTenantMutation } from '../../useTenantMutation'
4
4
  export const changeProfile = TenantApi.mutation$
5
5
  .changeProfile(
6
6
  TenantApi
7
- .changeProfileResponse$$
8
- .error(TenantApi.changeProfileError$$),
7
+ .changeProfileResponse$$
8
+ .error(TenantApi.changeProfileError$$),
9
9
  options => options.alias('mutation'),
10
10
  )
11
11
 
@@ -6,10 +6,11 @@ import { useCallback } from 'react'
6
6
  const identityFragment = TenantApi
7
7
  .identity$$
8
8
  .person(TenantApi.person$.id.email.name.otpEnabled)
9
- .projects(TenantApi
10
- .identityProjectRelation$
11
- .project(TenantApi.project$$)
12
- .memberships(TenantApi.membership$$.variables(TenantApi.variableEntry$$)),
9
+ .projects(
10
+ TenantApi
11
+ .identityProjectRelation$
12
+ .project(TenantApi.project$$)
13
+ .memberships(TenantApi.membership$$.variables(TenantApi.variableEntry$$)),
13
14
  )
14
15
  .permissions(TenantApi.identityGlobalPermissions$$)
15
16
 
@@ -5,10 +5,10 @@ import { useCallback } from 'react'
5
5
 
6
6
  const projectIdentityRelationFragment = TenantApi
7
7
  .projectIdentityRelation$
8
- .identity(TenantApi.identity$$
9
- .person(TenantApi.person$.id.email.name.otpEnabled)
10
- .apiKey(TenantApi.apiKey$$)
11
- ,
8
+ .identity(
9
+ TenantApi.identity$$
10
+ .person(TenantApi.person$.id.email.name.otpEnabled)
11
+ .apiKey(TenantApi.apiKey$$),
12
12
  )
13
13
  .memberships(TenantApi.membership$$.variables(TenantApi.variableEntry$$))
14
14
 
@@ -20,23 +20,28 @@ export type ProjectMembersQueryVariables =
20
20
  }
21
21
  & TenantApi.ProjectMembersInput
22
22
 
23
-
24
23
  export const useProjectMembersQuery = ({ headers, apiToken }: TenantApiOptions = {}) => {
25
24
  const executor = useTenantApi({
26
25
  headers,
27
26
  apiToken,
28
27
  })
29
28
  return useCallback(async ({ projectSlug, ...membersInput }: ProjectMembersQueryVariables): Promise<ProjectMembersQueryResult> => {
30
- const result = await executor(TenantApi.query$.projectBySlug({
31
- slug: ParameterRef.of('projectSlug'),
32
- }, TenantApi.project$.members({
33
- input: ParameterRef.of('membersInput'),
34
- }, projectIdentityRelationFragment)), {
35
- variables: {
36
- projectSlug,
37
- membersInput,
29
+ const result = await executor(
30
+ TenantApi.query$.projectBySlug(
31
+ {
32
+ slug: ParameterRef.of('projectSlug'),
33
+ },
34
+ TenantApi.project$.members({
35
+ input: ParameterRef.of('membersInput'),
36
+ }, projectIdentityRelationFragment),
37
+ ),
38
+ {
39
+ variables: {
40
+ projectSlug,
41
+ membersInput,
42
+ },
38
43
  },
39
- })
44
+ )
40
45
 
41
46
  return result.projectBySlug?.members ?? []
42
47
  }, [executor])
@@ -12,7 +12,6 @@ export type ProjectMembershipsQueryVariables = {
12
12
  identityId: string
13
13
  }
14
14
 
15
-
16
15
  export const useProjectMembershipsQuery = (options: TenantApiOptions = {}) => {
17
16
  const executor = useTenantApi(options)
18
17
  return useCallback(async (input: ProjectMembershipsQueryVariables): Promise<ProjectMembershipsQueryResult> => {