@replyke/core 5.1.6-beta.1 → 5.1.6-beta.3

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 (323) hide show
  1. package/dist/cjs/context/index.d.ts +0 -1
  2. package/dist/cjs/context/index.js +3 -3
  3. package/dist/cjs/context/index.js.map +1 -1
  4. package/dist/cjs/helpers/addNotificationsMessages.js +1 -1
  5. package/dist/cjs/helpers/addNotificationsMessages.js.map +1 -1
  6. package/dist/cjs/hooks/app-notifications-redux/index.d.ts +1 -2
  7. package/dist/cjs/hooks/app-notifications-redux/index.js +1 -3
  8. package/dist/cjs/hooks/app-notifications-redux/index.js.map +1 -1
  9. package/dist/cjs/hooks/app-notifications-redux/useAppNotificationsRedux.d.ts +18 -4
  10. package/dist/cjs/hooks/app-notifications-redux/useAppNotificationsRedux.js +78 -8
  11. package/dist/cjs/hooks/app-notifications-redux/useAppNotificationsRedux.js.map +1 -1
  12. package/dist/cjs/hooks/lists-redux/index.d.ts +3 -0
  13. package/dist/cjs/hooks/lists-redux/index.js +14 -0
  14. package/dist/cjs/hooks/lists-redux/index.js.map +1 -0
  15. package/dist/cjs/hooks/lists-redux/useIsEntitySaved.js.map +1 -0
  16. package/dist/cjs/hooks/lists-redux/useListsActionsRedux.d.ts +21 -0
  17. package/dist/cjs/hooks/lists-redux/useListsActionsRedux.js +329 -0
  18. package/dist/cjs/hooks/lists-redux/useListsActionsRedux.js.map +1 -0
  19. package/dist/cjs/hooks/{lists/useListsData.d.ts → lists-redux/useListsRedux.d.ts} +9 -5
  20. package/dist/cjs/hooks/lists-redux/useListsRedux.js +239 -0
  21. package/dist/cjs/hooks/lists-redux/useListsRedux.js.map +1 -0
  22. package/dist/cjs/hooks/user-redux/index.d.ts +2 -0
  23. package/dist/cjs/hooks/user-redux/index.js +12 -0
  24. package/dist/cjs/hooks/user-redux/index.js.map +1 -0
  25. package/dist/cjs/hooks/user-redux/useUserActionsRedux.d.ts +12 -0
  26. package/dist/cjs/hooks/user-redux/useUserActionsRedux.js +125 -0
  27. package/dist/cjs/hooks/user-redux/useUserActionsRedux.js.map +1 -0
  28. package/dist/cjs/hooks/user-redux/useUserRedux.d.ts +18 -0
  29. package/dist/cjs/hooks/user-redux/useUserRedux.js +116 -0
  30. package/dist/cjs/hooks/user-redux/useUserRedux.js.map +1 -0
  31. package/dist/cjs/hooks/users/index.d.ts +0 -2
  32. package/dist/cjs/hooks/users/index.js +4 -5
  33. package/dist/cjs/hooks/users/index.js.map +1 -1
  34. package/dist/cjs/index.d.ts +7 -6
  35. package/dist/cjs/index.js +12 -18
  36. package/dist/cjs/index.js.map +1 -1
  37. package/dist/cjs/store/api/appNotificationsApi.d.ts +144 -141
  38. package/dist/cjs/store/api/appNotificationsApi.js +11 -0
  39. package/dist/cjs/store/api/appNotificationsApi.js.map +1 -1
  40. package/dist/cjs/store/api/baseApi.d.ts +1 -1
  41. package/dist/cjs/store/api/baseApi.js +2 -2
  42. package/dist/cjs/store/api/baseApi.js.map +1 -1
  43. package/dist/cjs/store/api/index.d.ts +1 -0
  44. package/dist/cjs/store/api/index.js +2 -1
  45. package/dist/cjs/store/api/index.js.map +1 -1
  46. package/dist/cjs/store/api/listsApi.d.ts +3044 -0
  47. package/dist/cjs/store/api/listsApi.js +288 -0
  48. package/dist/cjs/store/api/listsApi.js.map +1 -0
  49. package/dist/cjs/store/api/userApi.d.ts +183 -0
  50. package/dist/cjs/store/api/userApi.js +38 -0
  51. package/dist/cjs/store/api/userApi.js.map +1 -0
  52. package/dist/cjs/store/index.d.ts +6 -2
  53. package/dist/cjs/store/rootReducer.d.ts +6 -2
  54. package/dist/cjs/store/rootReducer.js +4 -0
  55. package/dist/cjs/store/rootReducer.js.map +1 -1
  56. package/dist/cjs/store/slices/authThunks.js +6 -0
  57. package/dist/cjs/store/slices/authThunks.js.map +1 -1
  58. package/dist/cjs/store/slices/listsSlice.d.ts +63 -0
  59. package/dist/cjs/store/slices/listsSlice.js +204 -0
  60. package/dist/cjs/store/slices/listsSlice.js.map +1 -0
  61. package/dist/cjs/store/slices/userSlice.d.ts +29 -0
  62. package/dist/cjs/store/slices/userSlice.js +87 -0
  63. package/dist/cjs/store/slices/userSlice.js.map +1 -0
  64. package/dist/esm/context/index.d.ts +0 -1
  65. package/dist/esm/context/index.js +2 -1
  66. package/dist/esm/context/index.js.map +1 -1
  67. package/dist/esm/helpers/addNotificationsMessages.js +1 -1
  68. package/dist/esm/helpers/addNotificationsMessages.js.map +1 -1
  69. package/dist/esm/hooks/app-notifications-redux/index.d.ts +1 -2
  70. package/dist/esm/hooks/app-notifications-redux/index.js +0 -1
  71. package/dist/esm/hooks/app-notifications-redux/index.js.map +1 -1
  72. package/dist/esm/hooks/app-notifications-redux/useAppNotificationsRedux.d.ts +18 -4
  73. package/dist/esm/hooks/app-notifications-redux/useAppNotificationsRedux.js +77 -9
  74. package/dist/esm/hooks/app-notifications-redux/useAppNotificationsRedux.js.map +1 -1
  75. package/dist/esm/hooks/lists-redux/index.d.ts +3 -0
  76. package/dist/esm/hooks/lists-redux/index.js +5 -0
  77. package/dist/esm/hooks/lists-redux/index.js.map +1 -0
  78. package/dist/esm/hooks/lists-redux/useIsEntitySaved.js.map +1 -0
  79. package/dist/esm/hooks/lists-redux/useListsActionsRedux.d.ts +21 -0
  80. package/dist/esm/hooks/lists-redux/useListsActionsRedux.js +326 -0
  81. package/dist/esm/hooks/lists-redux/useListsActionsRedux.js.map +1 -0
  82. package/dist/esm/hooks/{lists/useListsData.d.ts → lists-redux/useListsRedux.d.ts} +9 -5
  83. package/dist/esm/hooks/lists-redux/useListsRedux.js +234 -0
  84. package/dist/esm/hooks/lists-redux/useListsRedux.js.map +1 -0
  85. package/dist/esm/hooks/user-redux/index.d.ts +2 -0
  86. package/dist/esm/hooks/user-redux/index.js +4 -0
  87. package/dist/esm/hooks/user-redux/index.js.map +1 -0
  88. package/dist/esm/hooks/user-redux/useUserActionsRedux.d.ts +12 -0
  89. package/dist/esm/hooks/user-redux/useUserActionsRedux.js +122 -0
  90. package/dist/esm/hooks/user-redux/useUserActionsRedux.js.map +1 -0
  91. package/dist/esm/hooks/user-redux/useUserRedux.d.ts +18 -0
  92. package/dist/esm/hooks/user-redux/useUserRedux.js +111 -0
  93. package/dist/esm/hooks/user-redux/useUserRedux.js.map +1 -0
  94. package/dist/esm/hooks/users/index.d.ts +0 -2
  95. package/dist/esm/hooks/users/index.js +3 -2
  96. package/dist/esm/hooks/users/index.js.map +1 -1
  97. package/dist/esm/index.d.ts +7 -6
  98. package/dist/esm/index.js +9 -7
  99. package/dist/esm/index.js.map +1 -1
  100. package/dist/esm/store/api/appNotificationsApi.d.ts +144 -141
  101. package/dist/esm/store/api/appNotificationsApi.js +11 -0
  102. package/dist/esm/store/api/appNotificationsApi.js.map +1 -1
  103. package/dist/esm/store/api/baseApi.d.ts +1 -1
  104. package/dist/esm/store/api/baseApi.js +2 -2
  105. package/dist/esm/store/api/baseApi.js.map +1 -1
  106. package/dist/esm/store/api/index.d.ts +1 -0
  107. package/dist/esm/store/api/index.js +2 -1
  108. package/dist/esm/store/api/index.js.map +1 -1
  109. package/dist/esm/store/api/listsApi.d.ts +3044 -0
  110. package/dist/esm/store/api/listsApi.js +285 -0
  111. package/dist/esm/store/api/listsApi.js.map +1 -0
  112. package/dist/esm/store/api/userApi.d.ts +183 -0
  113. package/dist/esm/store/api/userApi.js +35 -0
  114. package/dist/esm/store/api/userApi.js.map +1 -0
  115. package/dist/esm/store/index.d.ts +6 -2
  116. package/dist/esm/store/rootReducer.d.ts +6 -2
  117. package/dist/esm/store/rootReducer.js +4 -0
  118. package/dist/esm/store/rootReducer.js.map +1 -1
  119. package/dist/esm/store/slices/authThunks.js +6 -0
  120. package/dist/esm/store/slices/authThunks.js.map +1 -1
  121. package/dist/esm/store/slices/listsSlice.d.ts +63 -0
  122. package/dist/esm/store/slices/listsSlice.js +195 -0
  123. package/dist/esm/store/slices/listsSlice.js.map +1 -0
  124. package/dist/esm/store/slices/userSlice.d.ts +29 -0
  125. package/dist/esm/store/slices/userSlice.js +78 -0
  126. package/dist/esm/store/slices/userSlice.js.map +1 -0
  127. package/package.json +1 -1
  128. package/dist/cjs/context/lists-context.d.ts +0 -9
  129. package/dist/cjs/context/lists-context.js +0 -17
  130. package/dist/cjs/context/lists-context.js.map +0 -1
  131. package/dist/cjs/context/user-context.d.ts +0 -8
  132. package/dist/cjs/context/user-context.js +0 -28
  133. package/dist/cjs/context/user-context.js.map +0 -1
  134. package/dist/cjs/hooks/app-notifications-redux/useAppNotificationsDataRedux.d.ts +0 -21
  135. package/dist/cjs/hooks/app-notifications-redux/useAppNotificationsDataRedux.js +0 -108
  136. package/dist/cjs/hooks/app-notifications-redux/useAppNotificationsDataRedux.js.map +0 -1
  137. package/dist/cjs/hooks/lists/index.d.ts +0 -10
  138. package/dist/cjs/hooks/lists/index.js +0 -27
  139. package/dist/cjs/hooks/lists/index.js.map +0 -1
  140. package/dist/cjs/hooks/lists/useAddToList.d.ts +0 -6
  141. package/dist/cjs/hooks/lists/useAddToList.js +0 -70
  142. package/dist/cjs/hooks/lists/useAddToList.js.map +0 -1
  143. package/dist/cjs/hooks/lists/useCreateList.d.ts +0 -6
  144. package/dist/cjs/hooks/lists/useCreateList.js +0 -70
  145. package/dist/cjs/hooks/lists/useCreateList.js.map +0 -1
  146. package/dist/cjs/hooks/lists/useDeleteList.d.ts +0 -4
  147. package/dist/cjs/hooks/lists/useDeleteList.js +0 -69
  148. package/dist/cjs/hooks/lists/useDeleteList.js.map +0 -1
  149. package/dist/cjs/hooks/lists/useFetchRootList.d.ts +0 -3
  150. package/dist/cjs/hooks/lists/useFetchRootList.js +0 -69
  151. package/dist/cjs/hooks/lists/useFetchRootList.js.map +0 -1
  152. package/dist/cjs/hooks/lists/useFetchSubLists.d.ts +0 -5
  153. package/dist/cjs/hooks/lists/useFetchSubLists.js +0 -68
  154. package/dist/cjs/hooks/lists/useFetchSubLists.js.map +0 -1
  155. package/dist/cjs/hooks/lists/useIsEntitySaved.js.map +0 -1
  156. package/dist/cjs/hooks/lists/useLists.d.ts +0 -2
  157. package/dist/cjs/hooks/lists/useLists.js +0 -9
  158. package/dist/cjs/hooks/lists/useLists.js.map +0 -1
  159. package/dist/cjs/hooks/lists/useListsData.js +0 -391
  160. package/dist/cjs/hooks/lists/useListsData.js.map +0 -1
  161. package/dist/cjs/hooks/lists/useRemoveFromList.d.ts +0 -6
  162. package/dist/cjs/hooks/lists/useRemoveFromList.js +0 -70
  163. package/dist/cjs/hooks/lists/useRemoveFromList.js.map +0 -1
  164. package/dist/cjs/hooks/lists/useUpdateList.d.ts +0 -8
  165. package/dist/cjs/hooks/lists/useUpdateList.js +0 -70
  166. package/dist/cjs/hooks/lists/useUpdateList.js.map +0 -1
  167. package/dist/cjs/hooks/users/useUser.d.ts +0 -2
  168. package/dist/cjs/hooks/users/useUser.js +0 -9
  169. package/dist/cjs/hooks/users/useUser.js.map +0 -1
  170. package/dist/cjs/hooks/users/useUserData.d.ts +0 -12
  171. package/dist/cjs/hooks/users/useUserData.js +0 -76
  172. package/dist/cjs/hooks/users/useUserData.js.map +0 -1
  173. package/dist/cjs/legacy/context/app-notifications-context.d.ts +0 -8
  174. package/dist/cjs/legacy/context/app-notifications-context.js +0 -28
  175. package/dist/cjs/legacy/context/app-notifications-context.js.map +0 -1
  176. package/dist/cjs/legacy/context/auth-context.d.ts +0 -8
  177. package/dist/cjs/legacy/context/auth-context.js +0 -29
  178. package/dist/cjs/legacy/context/auth-context.js.map +0 -1
  179. package/dist/cjs/legacy/hooks/app-notifications/index.d.ts +0 -5
  180. package/dist/cjs/legacy/hooks/app-notifications/index.js +0 -17
  181. package/dist/cjs/legacy/hooks/app-notifications/index.js.map +0 -1
  182. package/dist/cjs/legacy/hooks/app-notifications/useAppNotifications.d.ts +0 -2
  183. package/dist/cjs/legacy/hooks/app-notifications/useAppNotifications.js +0 -9
  184. package/dist/cjs/legacy/hooks/app-notifications/useAppNotifications.js.map +0 -1
  185. package/dist/cjs/legacy/hooks/app-notifications/useAppNotificationsData.d.ts +0 -16
  186. package/dist/cjs/legacy/hooks/app-notifications/useAppNotificationsData.js +0 -225
  187. package/dist/cjs/legacy/hooks/app-notifications/useAppNotificationsData.js.map +0 -1
  188. package/dist/cjs/legacy/hooks/app-notifications/useCountUnreadNotifications.d.ts +0 -2
  189. package/dist/cjs/legacy/hooks/app-notifications/useCountUnreadNotifications.js +0 -72
  190. package/dist/cjs/legacy/hooks/app-notifications/useCountUnreadNotifications.js.map +0 -1
  191. package/dist/cjs/legacy/hooks/app-notifications/useFetchAppNotifications.d.ts +0 -6
  192. package/dist/cjs/legacy/hooks/app-notifications/useFetchAppNotifications.js +0 -79
  193. package/dist/cjs/legacy/hooks/app-notifications/useFetchAppNotifications.js.map +0 -1
  194. package/dist/cjs/legacy/hooks/app-notifications/useMarkNotificationAsRead.d.ts +0 -2
  195. package/dist/cjs/legacy/hooks/app-notifications/useMarkNotificationAsRead.js +0 -74
  196. package/dist/cjs/legacy/hooks/app-notifications/useMarkNotificationAsRead.js.map +0 -1
  197. package/dist/cjs/legacy/hooks/auth/index.d.ts +0 -8
  198. package/dist/cjs/legacy/hooks/auth/index.js +0 -23
  199. package/dist/cjs/legacy/hooks/auth/index.js.map +0 -1
  200. package/dist/cjs/legacy/hooks/auth/useAuth.d.ts +0 -2
  201. package/dist/cjs/legacy/hooks/auth/useAuth.js +0 -9
  202. package/dist/cjs/legacy/hooks/auth/useAuth.js.map +0 -1
  203. package/dist/cjs/legacy/hooks/auth/useAuthData.d.ts +0 -41
  204. package/dist/cjs/legacy/hooks/auth/useAuthData.js +0 -271
  205. package/dist/cjs/legacy/hooks/auth/useAuthData.js.map +0 -1
  206. package/dist/cjs/legacy/hooks/auth/useChangePassword.d.ts +0 -5
  207. package/dist/cjs/legacy/hooks/auth/useChangePassword.js +0 -70
  208. package/dist/cjs/legacy/hooks/auth/useChangePassword.js.map +0 -1
  209. package/dist/cjs/legacy/hooks/auth/useRequestNewAccessToken.d.ts +0 -7
  210. package/dist/cjs/legacy/hooks/auth/useRequestNewAccessToken.js +0 -71
  211. package/dist/cjs/legacy/hooks/auth/useRequestNewAccessToken.js.map +0 -1
  212. package/dist/cjs/legacy/hooks/auth/useSignInWithEmailAndPassword.d.ts +0 -9
  213. package/dist/cjs/legacy/hooks/auth/useSignInWithEmailAndPassword.js +0 -72
  214. package/dist/cjs/legacy/hooks/auth/useSignInWithEmailAndPassword.js.map +0 -1
  215. package/dist/cjs/legacy/hooks/auth/useSignOut.d.ts +0 -4
  216. package/dist/cjs/legacy/hooks/auth/useSignOut.js +0 -67
  217. package/dist/cjs/legacy/hooks/auth/useSignOut.js.map +0 -1
  218. package/dist/cjs/legacy/hooks/auth/useSignUpWithEmailAndPassword.d.ts +0 -20
  219. package/dist/cjs/legacy/hooks/auth/useSignUpWithEmailAndPassword.js +0 -80
  220. package/dist/cjs/legacy/hooks/auth/useSignUpWithEmailAndPassword.js.map +0 -1
  221. package/dist/cjs/legacy/hooks/auth/useVerifyExternalUser.d.ts +0 -8
  222. package/dist/cjs/legacy/hooks/auth/useVerifyExternalUser.js +0 -70
  223. package/dist/cjs/legacy/hooks/auth/useVerifyExternalUser.js.map +0 -1
  224. package/dist/esm/context/lists-context.d.ts +0 -9
  225. package/dist/esm/context/lists-context.js +0 -10
  226. package/dist/esm/context/lists-context.js.map +0 -1
  227. package/dist/esm/context/user-context.d.ts +0 -8
  228. package/dist/esm/context/user-context.js +0 -21
  229. package/dist/esm/context/user-context.js.map +0 -1
  230. package/dist/esm/hooks/app-notifications-redux/useAppNotificationsDataRedux.d.ts +0 -21
  231. package/dist/esm/hooks/app-notifications-redux/useAppNotificationsDataRedux.js +0 -103
  232. package/dist/esm/hooks/app-notifications-redux/useAppNotificationsDataRedux.js.map +0 -1
  233. package/dist/esm/hooks/lists/index.d.ts +0 -10
  234. package/dist/esm/hooks/lists/index.js +0 -11
  235. package/dist/esm/hooks/lists/index.js.map +0 -1
  236. package/dist/esm/hooks/lists/useAddToList.d.ts +0 -6
  237. package/dist/esm/hooks/lists/useAddToList.js +0 -65
  238. package/dist/esm/hooks/lists/useAddToList.js.map +0 -1
  239. package/dist/esm/hooks/lists/useCreateList.d.ts +0 -6
  240. package/dist/esm/hooks/lists/useCreateList.js +0 -65
  241. package/dist/esm/hooks/lists/useCreateList.js.map +0 -1
  242. package/dist/esm/hooks/lists/useDeleteList.d.ts +0 -4
  243. package/dist/esm/hooks/lists/useDeleteList.js +0 -64
  244. package/dist/esm/hooks/lists/useDeleteList.js.map +0 -1
  245. package/dist/esm/hooks/lists/useFetchRootList.d.ts +0 -3
  246. package/dist/esm/hooks/lists/useFetchRootList.js +0 -64
  247. package/dist/esm/hooks/lists/useFetchRootList.js.map +0 -1
  248. package/dist/esm/hooks/lists/useFetchSubLists.d.ts +0 -5
  249. package/dist/esm/hooks/lists/useFetchSubLists.js +0 -63
  250. package/dist/esm/hooks/lists/useFetchSubLists.js.map +0 -1
  251. package/dist/esm/hooks/lists/useIsEntitySaved.js.map +0 -1
  252. package/dist/esm/hooks/lists/useLists.d.ts +0 -2
  253. package/dist/esm/hooks/lists/useLists.js +0 -6
  254. package/dist/esm/hooks/lists/useLists.js.map +0 -1
  255. package/dist/esm/hooks/lists/useListsData.js +0 -386
  256. package/dist/esm/hooks/lists/useListsData.js.map +0 -1
  257. package/dist/esm/hooks/lists/useRemoveFromList.d.ts +0 -6
  258. package/dist/esm/hooks/lists/useRemoveFromList.js +0 -65
  259. package/dist/esm/hooks/lists/useRemoveFromList.js.map +0 -1
  260. package/dist/esm/hooks/lists/useUpdateList.d.ts +0 -8
  261. package/dist/esm/hooks/lists/useUpdateList.js +0 -65
  262. package/dist/esm/hooks/lists/useUpdateList.js.map +0 -1
  263. package/dist/esm/hooks/users/useUser.d.ts +0 -2
  264. package/dist/esm/hooks/users/useUser.js +0 -6
  265. package/dist/esm/hooks/users/useUser.js.map +0 -1
  266. package/dist/esm/hooks/users/useUserData.d.ts +0 -12
  267. package/dist/esm/hooks/users/useUserData.js +0 -71
  268. package/dist/esm/hooks/users/useUserData.js.map +0 -1
  269. package/dist/esm/legacy/context/app-notifications-context.d.ts +0 -8
  270. package/dist/esm/legacy/context/app-notifications-context.js +0 -21
  271. package/dist/esm/legacy/context/app-notifications-context.js.map +0 -1
  272. package/dist/esm/legacy/context/auth-context.d.ts +0 -8
  273. package/dist/esm/legacy/context/auth-context.js +0 -22
  274. package/dist/esm/legacy/context/auth-context.js.map +0 -1
  275. package/dist/esm/legacy/hooks/app-notifications/index.d.ts +0 -5
  276. package/dist/esm/legacy/hooks/app-notifications/index.js +0 -6
  277. package/dist/esm/legacy/hooks/app-notifications/index.js.map +0 -1
  278. package/dist/esm/legacy/hooks/app-notifications/useAppNotifications.d.ts +0 -2
  279. package/dist/esm/legacy/hooks/app-notifications/useAppNotifications.js +0 -6
  280. package/dist/esm/legacy/hooks/app-notifications/useAppNotifications.js.map +0 -1
  281. package/dist/esm/legacy/hooks/app-notifications/useAppNotificationsData.d.ts +0 -16
  282. package/dist/esm/legacy/hooks/app-notifications/useAppNotificationsData.js +0 -220
  283. package/dist/esm/legacy/hooks/app-notifications/useAppNotificationsData.js.map +0 -1
  284. package/dist/esm/legacy/hooks/app-notifications/useCountUnreadNotifications.d.ts +0 -2
  285. package/dist/esm/legacy/hooks/app-notifications/useCountUnreadNotifications.js +0 -67
  286. package/dist/esm/legacy/hooks/app-notifications/useCountUnreadNotifications.js.map +0 -1
  287. package/dist/esm/legacy/hooks/app-notifications/useFetchAppNotifications.d.ts +0 -6
  288. package/dist/esm/legacy/hooks/app-notifications/useFetchAppNotifications.js +0 -74
  289. package/dist/esm/legacy/hooks/app-notifications/useFetchAppNotifications.js.map +0 -1
  290. package/dist/esm/legacy/hooks/app-notifications/useMarkNotificationAsRead.d.ts +0 -2
  291. package/dist/esm/legacy/hooks/app-notifications/useMarkNotificationAsRead.js +0 -69
  292. package/dist/esm/legacy/hooks/app-notifications/useMarkNotificationAsRead.js.map +0 -1
  293. package/dist/esm/legacy/hooks/auth/index.d.ts +0 -8
  294. package/dist/esm/legacy/hooks/auth/index.js +0 -9
  295. package/dist/esm/legacy/hooks/auth/index.js.map +0 -1
  296. package/dist/esm/legacy/hooks/auth/useAuth.d.ts +0 -2
  297. package/dist/esm/legacy/hooks/auth/useAuth.js +0 -6
  298. package/dist/esm/legacy/hooks/auth/useAuth.js.map +0 -1
  299. package/dist/esm/legacy/hooks/auth/useAuthData.d.ts +0 -41
  300. package/dist/esm/legacy/hooks/auth/useAuthData.js +0 -266
  301. package/dist/esm/legacy/hooks/auth/useAuthData.js.map +0 -1
  302. package/dist/esm/legacy/hooks/auth/useChangePassword.d.ts +0 -5
  303. package/dist/esm/legacy/hooks/auth/useChangePassword.js +0 -65
  304. package/dist/esm/legacy/hooks/auth/useChangePassword.js.map +0 -1
  305. package/dist/esm/legacy/hooks/auth/useRequestNewAccessToken.d.ts +0 -7
  306. package/dist/esm/legacy/hooks/auth/useRequestNewAccessToken.js +0 -66
  307. package/dist/esm/legacy/hooks/auth/useRequestNewAccessToken.js.map +0 -1
  308. package/dist/esm/legacy/hooks/auth/useSignInWithEmailAndPassword.d.ts +0 -9
  309. package/dist/esm/legacy/hooks/auth/useSignInWithEmailAndPassword.js +0 -67
  310. package/dist/esm/legacy/hooks/auth/useSignInWithEmailAndPassword.js.map +0 -1
  311. package/dist/esm/legacy/hooks/auth/useSignOut.d.ts +0 -4
  312. package/dist/esm/legacy/hooks/auth/useSignOut.js +0 -62
  313. package/dist/esm/legacy/hooks/auth/useSignOut.js.map +0 -1
  314. package/dist/esm/legacy/hooks/auth/useSignUpWithEmailAndPassword.d.ts +0 -20
  315. package/dist/esm/legacy/hooks/auth/useSignUpWithEmailAndPassword.js +0 -75
  316. package/dist/esm/legacy/hooks/auth/useSignUpWithEmailAndPassword.js.map +0 -1
  317. package/dist/esm/legacy/hooks/auth/useVerifyExternalUser.d.ts +0 -8
  318. package/dist/esm/legacy/hooks/auth/useVerifyExternalUser.js +0 -65
  319. package/dist/esm/legacy/hooks/auth/useVerifyExternalUser.js.map +0 -1
  320. /package/dist/cjs/hooks/{lists → lists-redux}/useIsEntitySaved.d.ts +0 -0
  321. /package/dist/cjs/hooks/{lists → lists-redux}/useIsEntitySaved.js +0 -0
  322. /package/dist/esm/hooks/{lists → lists-redux}/useIsEntitySaved.d.ts +0 -0
  323. /package/dist/esm/hooks/{lists → lists-redux}/useIsEntitySaved.js +0 -0
@@ -1,71 +0,0 @@
1
- "use strict";
2
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
- return new (P || (P = Promise))(function (resolve, reject) {
5
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
- step((generator = generator.apply(thisArg, _arguments || [])).next());
9
- });
10
- };
11
- var __generator = (this && this.__generator) || function (thisArg, body) {
12
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
13
- return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
14
- function verb(n) { return function (v) { return step([n, v]); }; }
15
- function step(op) {
16
- if (f) throw new TypeError("Generator is already executing.");
17
- while (g && (g = 0, op[0] && (_ = 0)), _) try {
18
- if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
19
- if (y = 0, t) op = [op[0] & 2, t.value];
20
- switch (op[0]) {
21
- case 0: case 1: t = op; break;
22
- case 4: _.label++; return { value: op[1], done: false };
23
- case 5: _.label++; y = op[1]; op = [0]; continue;
24
- case 7: op = _.ops.pop(); _.trys.pop(); continue;
25
- default:
26
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
27
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
28
- if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
29
- if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
30
- if (t[2]) _.ops.pop();
31
- _.trys.pop(); continue;
32
- }
33
- op = body.call(thisArg, _);
34
- } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
35
- if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
36
- }
37
- };
38
- var __importDefault = (this && this.__importDefault) || function (mod) {
39
- return (mod && mod.__esModule) ? mod : { "default": mod };
40
- };
41
- Object.defineProperty(exports, "__esModule", { value: true });
42
- var react_1 = require("react");
43
- var useProject_1 = __importDefault(require("../../../hooks/projects/useProject"));
44
- var axios_1 = __importDefault(require("../../../config/axios"));
45
- var isReactNative_1 = require("../../../utils/isReactNative");
46
- function useRequestNewAccessToken() {
47
- var _this = this;
48
- var projectId = (0, useProject_1.default)().projectId;
49
- var requestNewAccessToken = (0, react_1.useCallback)(function (_a) { return __awaiter(_this, [_a], void 0, function (_b) {
50
- var response, _c, accessToken, user;
51
- var refreshToken = _b.refreshToken;
52
- return __generator(this, function (_d) {
53
- switch (_d.label) {
54
- case 0:
55
- if (!projectId) {
56
- throw new Error("No projectId available.");
57
- }
58
- return [4 /*yield*/, axios_1.default.post("/".concat(projectId, "/auth/request-new-access-token"), { refreshToken: refreshToken }, {
59
- withCredentials: !(0, isReactNative_1.isReactNative)(), // Only use cookies for web
60
- })];
61
- case 1:
62
- response = _d.sent();
63
- _c = response.data, accessToken = _c.accessToken, user = _c.user;
64
- return [2 /*return*/, { accessToken: accessToken, user: user }];
65
- }
66
- });
67
- }); }, [projectId]);
68
- return requestNewAccessToken;
69
- }
70
- exports.default = useRequestNewAccessToken;
71
- //# sourceMappingURL=useRequestNewAccessToken.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useRequestNewAccessToken.js","sourceRoot":"","sources":["../../../../../src/legacy/hooks/auth/useRequestNewAccessToken.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+BAAoC;AACpC,kFAA4D;AAC5D,gEAA0C;AAC1C,8DAA6D;AAE7D,SAAS,wBAAwB;IAAjC,iBAwBC;IAvBS,IAAA,SAAS,GAAK,IAAA,oBAAU,GAAE,UAAjB,CAAkB;IAEnC,IAAM,qBAAqB,GAAG,IAAA,mBAAW,EACvC,gEAAO,EAAiD;;YAA/C,YAAY,kBAAA;;;;oBACnB,IAAI,CAAC,SAAS,EAAE,CAAC;wBACf,MAAM,IAAI,KAAK,CAAC,yBAAyB,CAAC,CAAC;oBAC7C,CAAC;oBAEgB,qBAAM,eAAK,CAAC,IAAI,CAC/B,WAAI,SAAS,mCAAgC,EAC7C,EAAE,YAAY,cAAA,EAAE,EAChB;4BACE,eAAe,EAAE,CAAC,IAAA,6BAAa,GAAE,EAAE,2BAA2B;yBAC/D,CACF,EAAA;;oBANK,QAAQ,GAAG,SAMhB;oBAEK,KAAwB,QAAQ,CAAC,IAAI,EAAnC,WAAW,iBAAA,EAAE,IAAI,UAAA,CAAmB;oBAC5C,sBAAO,EAAE,WAAW,aAAA,EAAE,IAAI,MAAA,EAAE,EAAC;;;SAC9B,EACD,CAAC,SAAS,CAAC,CACZ,CAAC;IAEF,OAAO,qBAAqB,CAAC;AAC/B,CAAC;AAED,kBAAe,wBAAwB,CAAC"}
@@ -1,9 +0,0 @@
1
- declare function useSignInWithEmailAndPassword(): ({ email, password }: {
2
- email: string;
3
- password: string;
4
- }) => Promise<{
5
- accessToken: any;
6
- refreshToken: any;
7
- user: any;
8
- }>;
9
- export default useSignInWithEmailAndPassword;
@@ -1,72 +0,0 @@
1
- "use strict";
2
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
- return new (P || (P = Promise))(function (resolve, reject) {
5
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
- step((generator = generator.apply(thisArg, _arguments || [])).next());
9
- });
10
- };
11
- var __generator = (this && this.__generator) || function (thisArg, body) {
12
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
13
- return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
14
- function verb(n) { return function (v) { return step([n, v]); }; }
15
- function step(op) {
16
- if (f) throw new TypeError("Generator is already executing.");
17
- while (g && (g = 0, op[0] && (_ = 0)), _) try {
18
- if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
19
- if (y = 0, t) op = [op[0] & 2, t.value];
20
- switch (op[0]) {
21
- case 0: case 1: t = op; break;
22
- case 4: _.label++; return { value: op[1], done: false };
23
- case 5: _.label++; y = op[1]; op = [0]; continue;
24
- case 7: op = _.ops.pop(); _.trys.pop(); continue;
25
- default:
26
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
27
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
28
- if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
29
- if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
30
- if (t[2]) _.ops.pop();
31
- _.trys.pop(); continue;
32
- }
33
- op = body.call(thisArg, _);
34
- } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
35
- if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
36
- }
37
- };
38
- var __importDefault = (this && this.__importDefault) || function (mod) {
39
- return (mod && mod.__esModule) ? mod : { "default": mod };
40
- };
41
- Object.defineProperty(exports, "__esModule", { value: true });
42
- var react_1 = require("react");
43
- var useProject_1 = __importDefault(require("../../../hooks/projects/useProject"));
44
- var axios_1 = __importDefault(require("../../../config/axios"));
45
- var isReactNative_1 = require("../../../utils/isReactNative");
46
- function useSignInWithEmailAndPassword() {
47
- var _this = this;
48
- var projectId = (0, useProject_1.default)().projectId;
49
- var signInWithEmailAndPassword = (0, react_1.useCallback)(function (_a) { return __awaiter(_this, [_a], void 0, function (_b) {
50
- var response, _c, accessToken, refreshToken, user;
51
- var email = _b.email, password = _b.password;
52
- return __generator(this, function (_d) {
53
- switch (_d.label) {
54
- case 0:
55
- if (!projectId) {
56
- throw new Error("No projectId available.");
57
- }
58
- return [4 /*yield*/, axios_1.default.post("/".concat(projectId, "/auth/sign-in"), {
59
- email: email,
60
- password: password,
61
- }, { withCredentials: !(0, isReactNative_1.isReactNative)() })];
62
- case 1:
63
- response = _d.sent();
64
- _c = response.data, accessToken = _c.accessToken, refreshToken = _c.refreshToken, user = _c.user;
65
- return [2 /*return*/, { accessToken: accessToken, refreshToken: refreshToken, user: user }];
66
- }
67
- });
68
- }); }, [projectId]);
69
- return signInWithEmailAndPassword;
70
- }
71
- exports.default = useSignInWithEmailAndPassword;
72
- //# sourceMappingURL=useSignInWithEmailAndPassword.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useSignInWithEmailAndPassword.js","sourceRoot":"","sources":["../../../../../src/legacy/hooks/auth/useSignInWithEmailAndPassword.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+BAAoC;AACpC,kFAA4D;AAC5D,gEAA0C;AAC1C,8DAA6D;AAE7D,SAAS,6BAA6B;IAAtC,iBA0BC;IAzBS,IAAA,SAAS,GAAK,IAAA,oBAAU,GAAE,UAAjB,CAAkB;IAEnC,IAAM,0BAA0B,GAAG,IAAA,mBAAW,EAC5C,gEAAO,EAAwD;;YAAtD,KAAK,WAAA,EAAE,QAAQ,cAAA;;;;oBACtB,IAAI,CAAC,SAAS,EAAE,CAAC;wBACf,MAAM,IAAI,KAAK,CAAC,yBAAyB,CAAC,CAAC;oBAC7C,CAAC;oBAEgB,qBAAM,eAAK,CAAC,IAAI,CAC/B,WAAI,SAAS,kBAAe,EAC5B;4BACE,KAAK,OAAA;4BACL,QAAQ,UAAA;yBACT,EACD,EAAE,eAAe,EAAE,CAAC,IAAA,6BAAa,GAAE,EAAE,CACtC,EAAA;;oBAPK,QAAQ,GAAG,SAOhB;oBAEK,KAAsC,QAAQ,CAAC,IAAI,EAAjD,WAAW,iBAAA,EAAE,YAAY,kBAAA,EAAE,IAAI,UAAA,CAAmB;oBAE1D,sBAAO,EAAE,WAAW,aAAA,EAAE,YAAY,cAAA,EAAE,IAAI,MAAA,EAAE,EAAC;;;SAC5C,EACD,CAAC,SAAS,CAAC,CACZ,CAAC;IAEF,OAAO,0BAA0B,CAAC;AACpC,CAAC;AAED,kBAAe,6BAA6B,CAAC"}
@@ -1,4 +0,0 @@
1
- declare function useSignOut(): ({ refreshToken }: {
2
- refreshToken: string | null;
3
- }) => Promise<void>;
4
- export default useSignOut;
@@ -1,67 +0,0 @@
1
- "use strict";
2
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
- return new (P || (P = Promise))(function (resolve, reject) {
5
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
- step((generator = generator.apply(thisArg, _arguments || [])).next());
9
- });
10
- };
11
- var __generator = (this && this.__generator) || function (thisArg, body) {
12
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
13
- return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
14
- function verb(n) { return function (v) { return step([n, v]); }; }
15
- function step(op) {
16
- if (f) throw new TypeError("Generator is already executing.");
17
- while (g && (g = 0, op[0] && (_ = 0)), _) try {
18
- if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
19
- if (y = 0, t) op = [op[0] & 2, t.value];
20
- switch (op[0]) {
21
- case 0: case 1: t = op; break;
22
- case 4: _.label++; return { value: op[1], done: false };
23
- case 5: _.label++; y = op[1]; op = [0]; continue;
24
- case 7: op = _.ops.pop(); _.trys.pop(); continue;
25
- default:
26
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
27
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
28
- if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
29
- if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
30
- if (t[2]) _.ops.pop();
31
- _.trys.pop(); continue;
32
- }
33
- op = body.call(thisArg, _);
34
- } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
35
- if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
36
- }
37
- };
38
- var __importDefault = (this && this.__importDefault) || function (mod) {
39
- return (mod && mod.__esModule) ? mod : { "default": mod };
40
- };
41
- Object.defineProperty(exports, "__esModule", { value: true });
42
- var react_1 = require("react");
43
- var useProject_1 = __importDefault(require("../../../hooks/projects/useProject"));
44
- var axios_1 = __importDefault(require("../../../config/axios"));
45
- var isReactNative_1 = require("../../../utils/isReactNative");
46
- function useSignOut() {
47
- var _this = this;
48
- var projectId = (0, useProject_1.default)().projectId;
49
- var signOut = (0, react_1.useCallback)(function (_a) { return __awaiter(_this, [_a], void 0, function (_b) {
50
- var refreshToken = _b.refreshToken;
51
- return __generator(this, function (_c) {
52
- switch (_c.label) {
53
- case 0:
54
- if (!projectId) {
55
- throw new Error("No projectId available.");
56
- }
57
- return [4 /*yield*/, axios_1.default.post("/".concat(projectId, "/auth/sign-out"), { refreshToken: refreshToken }, { withCredentials: !(0, isReactNative_1.isReactNative)() })];
58
- case 1:
59
- _c.sent();
60
- return [2 /*return*/];
61
- }
62
- });
63
- }); }, [projectId]);
64
- return signOut;
65
- }
66
- exports.default = useSignOut;
67
- //# sourceMappingURL=useSignOut.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useSignOut.js","sourceRoot":"","sources":["../../../../../src/legacy/hooks/auth/useSignOut.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+BAAoC;AACpC,kFAA4D;AAC5D,gEAA0C;AAC1C,8DAA6D;AAE7D,SAAS,UAAU;IAAnB,iBAmBC;IAlBS,IAAA,SAAS,GAAK,IAAA,oBAAU,GAAE,UAAjB,CAAkB;IAEnC,IAAM,OAAO,GAAG,IAAA,mBAAW,EACzB,gEAAO,EAAiD;YAA/C,YAAY,kBAAA;;;;oBACnB,IAAI,CAAC,SAAS,EAAE,CAAC;wBACf,MAAM,IAAI,KAAK,CAAC,yBAAyB,CAAC,CAAC;oBAC7C,CAAC;oBAED,qBAAM,eAAK,CAAC,IAAI,CACd,WAAI,SAAS,mBAAgB,EAC7B,EAAE,YAAY,cAAA,EAAE,EAChB,EAAE,eAAe,EAAE,CAAC,IAAA,6BAAa,GAAE,EAAE,CACtC,EAAA;;oBAJD,SAIC,CAAC;;;;SACH,EACD,CAAC,SAAS,CAAC,CACZ,CAAC;IAEF,OAAO,OAAO,CAAC;AACjB,CAAC;AAED,kBAAe,UAAU,CAAC"}
@@ -1,20 +0,0 @@
1
- declare function useSignUpWithEmailAndPassword(): ({ email, password, name, username, avatar, bio, location, birthdate, metadata, secureMetadata, }: {
2
- email: string;
3
- password: string;
4
- name?: string;
5
- username?: string;
6
- avatar?: string;
7
- bio?: string;
8
- location?: {
9
- latitude: number;
10
- longitude: number;
11
- };
12
- birthdate?: Date;
13
- metadata?: Record<string, any>;
14
- secureMetadata?: Record<string, any>;
15
- }) => Promise<{
16
- accessToken: any;
17
- refreshToken: any;
18
- user: any;
19
- }>;
20
- export default useSignUpWithEmailAndPassword;
@@ -1,80 +0,0 @@
1
- "use strict";
2
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
- return new (P || (P = Promise))(function (resolve, reject) {
5
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
- step((generator = generator.apply(thisArg, _arguments || [])).next());
9
- });
10
- };
11
- var __generator = (this && this.__generator) || function (thisArg, body) {
12
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
13
- return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
14
- function verb(n) { return function (v) { return step([n, v]); }; }
15
- function step(op) {
16
- if (f) throw new TypeError("Generator is already executing.");
17
- while (g && (g = 0, op[0] && (_ = 0)), _) try {
18
- if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
19
- if (y = 0, t) op = [op[0] & 2, t.value];
20
- switch (op[0]) {
21
- case 0: case 1: t = op; break;
22
- case 4: _.label++; return { value: op[1], done: false };
23
- case 5: _.label++; y = op[1]; op = [0]; continue;
24
- case 7: op = _.ops.pop(); _.trys.pop(); continue;
25
- default:
26
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
27
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
28
- if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
29
- if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
30
- if (t[2]) _.ops.pop();
31
- _.trys.pop(); continue;
32
- }
33
- op = body.call(thisArg, _);
34
- } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
35
- if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
36
- }
37
- };
38
- var __importDefault = (this && this.__importDefault) || function (mod) {
39
- return (mod && mod.__esModule) ? mod : { "default": mod };
40
- };
41
- Object.defineProperty(exports, "__esModule", { value: true });
42
- var react_1 = require("react");
43
- var useProject_1 = __importDefault(require("../../../hooks/projects/useProject"));
44
- var axios_1 = __importDefault(require("../../../config/axios"));
45
- var isReactNative_1 = require("../../../utils/isReactNative");
46
- function useSignUpWithEmailAndPassword() {
47
- var _this = this;
48
- var projectId = (0, useProject_1.default)().projectId;
49
- var signUpWithEmailAndPassword = (0, react_1.useCallback)(function (_a) { return __awaiter(_this, [_a], void 0, function (_b) {
50
- var response, _c, accessToken, refreshToken, user;
51
- var email = _b.email, password = _b.password, name = _b.name, username = _b.username, avatar = _b.avatar, bio = _b.bio, location = _b.location, birthdate = _b.birthdate, metadata = _b.metadata, secureMetadata = _b.secureMetadata;
52
- return __generator(this, function (_d) {
53
- switch (_d.label) {
54
- case 0:
55
- if (!projectId) {
56
- throw new Error("No projectId available.");
57
- }
58
- return [4 /*yield*/, axios_1.default.post("/".concat(projectId, "/auth/sign-up"), {
59
- email: email,
60
- password: password,
61
- name: name === null || name === void 0 ? void 0 : name.trim(),
62
- username: username === null || username === void 0 ? void 0 : username.trim(),
63
- avatar: avatar,
64
- bio: bio === null || bio === void 0 ? void 0 : bio.trim(),
65
- location: location,
66
- birthdate: birthdate,
67
- metadata: metadata,
68
- secureMetadata: secureMetadata,
69
- }, { withCredentials: !(0, isReactNative_1.isReactNative)() })];
70
- case 1:
71
- response = _d.sent();
72
- _c = response.data, accessToken = _c.accessToken, refreshToken = _c.refreshToken, user = _c.user;
73
- return [2 /*return*/, { accessToken: accessToken, refreshToken: refreshToken, user: user }];
74
- }
75
- });
76
- }); }, [projectId]);
77
- return signUpWithEmailAndPassword;
78
- }
79
- exports.default = useSignUpWithEmailAndPassword;
80
- //# sourceMappingURL=useSignUpWithEmailAndPassword.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useSignUpWithEmailAndPassword.js","sourceRoot":"","sources":["../../../../../src/legacy/hooks/auth/useSignUpWithEmailAndPassword.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+BAAoC;AACpC,kFAA4D;AAC5D,gEAA0C;AAC1C,8DAA6D;AAE7D,SAAS,6BAA6B;IAAtC,iBA2DC;IA1DS,IAAA,SAAS,GAAK,IAAA,oBAAU,GAAE,UAAjB,CAAkB;IAEnC,IAAM,0BAA0B,GAAG,IAAA,mBAAW,EAC5C,gEAAO,EAyBN;;YAxBC,KAAK,WAAA,EACL,QAAQ,cAAA,EACR,IAAI,UAAA,EACJ,QAAQ,cAAA,EACR,MAAM,YAAA,EACN,GAAG,SAAA,EACH,QAAQ,cAAA,EACR,SAAS,eAAA,EACT,QAAQ,cAAA,EACR,cAAc,oBAAA;;;;oBAgBd,IAAI,CAAC,SAAS,EAAE,CAAC;wBACf,MAAM,IAAI,KAAK,CAAC,yBAAyB,CAAC,CAAC;oBAC7C,CAAC;oBAEgB,qBAAM,eAAK,CAAC,IAAI,CAC/B,WAAI,SAAS,kBAAe,EAC5B;4BACE,KAAK,OAAA;4BACL,QAAQ,UAAA;4BACR,IAAI,EAAE,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,IAAI,EAAE;4BAClB,QAAQ,EAAE,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,IAAI,EAAE;4BAC1B,MAAM,QAAA;4BACN,GAAG,EAAE,GAAG,aAAH,GAAG,uBAAH,GAAG,CAAE,IAAI,EAAE;4BAChB,QAAQ,UAAA;4BACR,SAAS,WAAA;4BACT,QAAQ,UAAA;4BACR,cAAc,gBAAA;yBACf,EACD,EAAE,eAAe,EAAE,CAAC,IAAA,6BAAa,GAAE,EAAE,CACtC,EAAA;;oBAfK,QAAQ,GAAG,SAehB;oBAEK,KAAsC,QAAQ,CAAC,IAAI,EAAjD,WAAW,iBAAA,EAAE,YAAY,kBAAA,EAAE,IAAI,UAAA,CAAmB;oBAE1D,sBAAO,EAAE,WAAW,aAAA,EAAE,YAAY,cAAA,EAAE,IAAI,MAAA,EAAE,EAAC;;;SAC5C,EACD,CAAC,SAAS,CAAC,CACZ,CAAC;IAEF,OAAO,0BAA0B,CAAC;AACpC,CAAC;AAED,kBAAe,6BAA6B,CAAC"}
@@ -1,8 +0,0 @@
1
- declare function useVerifyExternalUser(): ({ userJwt }: {
2
- userJwt: string;
3
- }) => Promise<{
4
- accessToken: any;
5
- refreshToken: any;
6
- user: any;
7
- }>;
8
- export default useVerifyExternalUser;
@@ -1,70 +0,0 @@
1
- "use strict";
2
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
- return new (P || (P = Promise))(function (resolve, reject) {
5
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
- step((generator = generator.apply(thisArg, _arguments || [])).next());
9
- });
10
- };
11
- var __generator = (this && this.__generator) || function (thisArg, body) {
12
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
13
- return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
14
- function verb(n) { return function (v) { return step([n, v]); }; }
15
- function step(op) {
16
- if (f) throw new TypeError("Generator is already executing.");
17
- while (g && (g = 0, op[0] && (_ = 0)), _) try {
18
- if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
19
- if (y = 0, t) op = [op[0] & 2, t.value];
20
- switch (op[0]) {
21
- case 0: case 1: t = op; break;
22
- case 4: _.label++; return { value: op[1], done: false };
23
- case 5: _.label++; y = op[1]; op = [0]; continue;
24
- case 7: op = _.ops.pop(); _.trys.pop(); continue;
25
- default:
26
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
27
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
28
- if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
29
- if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
30
- if (t[2]) _.ops.pop();
31
- _.trys.pop(); continue;
32
- }
33
- op = body.call(thisArg, _);
34
- } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
35
- if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
36
- }
37
- };
38
- var __importDefault = (this && this.__importDefault) || function (mod) {
39
- return (mod && mod.__esModule) ? mod : { "default": mod };
40
- };
41
- Object.defineProperty(exports, "__esModule", { value: true });
42
- var react_1 = require("react");
43
- var useProject_1 = __importDefault(require("../../../hooks/projects/useProject"));
44
- var axios_1 = __importDefault(require("../../../config/axios"));
45
- function useVerifyExternalUser() {
46
- var _this = this;
47
- var projectId = (0, useProject_1.default)().projectId;
48
- var verifyExternalUser = (0, react_1.useCallback)(function (_a) { return __awaiter(_this, [_a], void 0, function (_b) {
49
- var response, _c, accessToken, refreshToken, user;
50
- var userJwt = _b.userJwt;
51
- return __generator(this, function (_d) {
52
- switch (_d.label) {
53
- case 0:
54
- if (!projectId) {
55
- throw new Error("No projectId available.");
56
- }
57
- return [4 /*yield*/, axios_1.default.post("/".concat(projectId, "/auth/verify-external-user"), {
58
- userJwt: userJwt,
59
- })];
60
- case 1:
61
- response = _d.sent();
62
- _c = response.data, accessToken = _c.accessToken, refreshToken = _c.refreshToken, user = _c.user;
63
- return [2 /*return*/, { accessToken: accessToken, refreshToken: refreshToken, user: user }];
64
- }
65
- });
66
- }); }, [projectId]);
67
- return verifyExternalUser;
68
- }
69
- exports.default = useVerifyExternalUser;
70
- //# sourceMappingURL=useVerifyExternalUser.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useVerifyExternalUser.js","sourceRoot":"","sources":["../../../../../src/legacy/hooks/auth/useVerifyExternalUser.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+BAAoC;AACpC,kFAA4D;AAC5D,gEAA0C;AAE1C,SAAS,qBAAqB;IAA9B,iBAwBC;IAvBS,IAAA,SAAS,GAAK,IAAA,oBAAU,GAAE,UAAjB,CAAkB;IAEnC,IAAM,kBAAkB,GAAG,IAAA,mBAAW,EACpC,gEAAO,EAAgC;;YAA9B,OAAO,aAAA;;;;oBACd,IAAI,CAAC,SAAS,EAAE,CAAC;wBACf,MAAM,IAAI,KAAK,CAAC,yBAAyB,CAAC,CAAC;oBAC7C,CAAC;oBAEgB,qBAAM,eAAK,CAAC,IAAI,CAC/B,WAAI,SAAS,+BAA4B,EACzC;4BACE,OAAO,SAAA;yBACR,CACF,EAAA;;oBALK,QAAQ,GAAG,SAKhB;oBAEK,KAAsC,QAAQ,CAAC,IAAI,EAAjD,WAAW,iBAAA,EAAE,YAAY,kBAAA,EAAE,IAAI,UAAA,CAAmB;oBAE1D,sBAAO,EAAE,WAAW,aAAA,EAAE,YAAY,cAAA,EAAE,IAAI,MAAA,EAAE,EAAC;;;SAC5C,EACD,CAAC,SAAS,CAAC,CACZ,CAAC;IAEF,OAAO,kBAAkB,CAAC;AAC5B,CAAC;AAED,kBAAe,qBAAqB,CAAC"}
@@ -1,9 +0,0 @@
1
- import React from "react";
2
- import { UseListsDataProps, UseListsDataValues } from "../hooks/lists/useListsData";
3
- export interface ListsContextProps extends UseListsDataProps {
4
- children: React.ReactNode;
5
- }
6
- export interface ListsContextValues extends UseListsDataValues {
7
- }
8
- export declare const ListsContext: React.Context<Partial<ListsContextValues>>;
9
- export declare const ListsProvider: React.FC<ListsContextProps>;
@@ -1,10 +0,0 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import { createContext } from "react";
3
- import useListsData from "../hooks/lists/useListsData";
4
- export var ListsContext = createContext({});
5
- export var ListsProvider = function (_a) {
6
- var children = _a.children;
7
- var data = useListsData({});
8
- return _jsx(ListsContext.Provider, { value: data, children: children });
9
- };
10
- //# sourceMappingURL=lists-context.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"lists-context.js","sourceRoot":"","sources":["../../../src/context/lists-context.tsx"],"names":[],"mappings":";AAAA,OAAc,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAC7C,OAAO,YAGN,MAAM,6BAA6B,CAAC;AAOrC,MAAM,CAAC,IAAM,YAAY,GAAG,aAAa,CAA8B,EAAE,CAAC,CAAC;AAE3E,MAAM,CAAC,IAAM,aAAa,GAAgC,UAAC,EAEvC;QADlB,QAAQ,cAAA;IAER,IAAM,IAAI,GAAG,YAAY,CAAC,EAAE,CAAC,CAAC;IAE9B,OAAO,KAAC,YAAY,CAAC,QAAQ,IAAC,KAAK,EAAE,IAAI,YAAG,QAAQ,GAAyB,CAAC;AAChF,CAAC,CAAC"}
@@ -1,8 +0,0 @@
1
- import { UseUserDataProps, UseUserDataValues } from "../hooks/users/useUserData";
2
- export interface UserContextProps extends UseUserDataProps {
3
- children: React.ReactNode;
4
- }
5
- export interface UserContextValues extends UseUserDataValues {
6
- }
7
- export declare const UserContext: import("react").Context<Partial<UserContextValues>>;
8
- export declare const UserProvider: React.FC<UserContextProps>;
@@ -1,21 +0,0 @@
1
- var __rest = (this && this.__rest) || function (s, e) {
2
- var t = {};
3
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
4
- t[p] = s[p];
5
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
6
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
7
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
8
- t[p[i]] = s[p[i]];
9
- }
10
- return t;
11
- };
12
- import { jsx as _jsx } from "react/jsx-runtime";
13
- import { createContext } from "react";
14
- import useUserData from "../hooks/users/useUserData";
15
- export var UserContext = createContext({});
16
- export var UserProvider = function (_a) {
17
- var children = _a.children, restOfProps = __rest(_a, ["children"]);
18
- var data = useUserData(restOfProps);
19
- return _jsx(UserContext.Provider, { value: data, children: children });
20
- };
21
- //# sourceMappingURL=user-context.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"user-context.js","sourceRoot":"","sources":["../../../src/context/user-context.tsx"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AACtC,OAAO,WAGN,MAAM,4BAA4B,CAAC;AAQpC,MAAM,CAAC,IAAM,WAAW,GAAG,aAAa,CAA6B,EAAE,CAAC,CAAC;AAEzE,MAAM,CAAC,IAAM,YAAY,GAA+B,UAAC,EAGtC;IAFjB,IAAA,QAAQ,cAAA,EACL,WAAW,cAFyC,YAGxD,CADe;IAEd,IAAM,IAAI,GAAG,WAAW,CAAC,WAAW,CAAC,CAAC;IAEtC,OAAO,KAAC,WAAW,CAAC,QAAQ,IAAC,KAAK,EAAE,IAAI,YAAG,QAAQ,GAAwB,CAAC;AAC9E,CAAC,CAAC"}
@@ -1,21 +0,0 @@
1
- import { NotificationTemplates, UnifiedAppNotification } from "../../interfaces/models/AppNotification";
2
- export interface UseAppNotificationsDataProps {
3
- limit?: number;
4
- notificationTemplates?: Partial<NotificationTemplates>;
5
- }
6
- export interface UseAppNotificationsDataValues {
7
- appNotifications: UnifiedAppNotification[];
8
- unreadAppNotificationsCount: number;
9
- loading: boolean;
10
- hasMore: boolean;
11
- loadMore: () => void;
12
- markNotificationAsRead: (notificationId: string) => Promise<void>;
13
- markAllNotificationsAsRead: () => Promise<void>;
14
- resetAppNotifications: () => Promise<void>;
15
- }
16
- /**
17
- * Redux-powered hook that provides the exact same interface as useAppNotificationsData()
18
- * This is a drop-in replacement for the Context-based hook
19
- */
20
- declare function useAppNotificationsDataRedux({ limit, notificationTemplates, }?: UseAppNotificationsDataProps): UseAppNotificationsDataValues;
21
- export default useAppNotificationsDataRedux;
@@ -1,103 +0,0 @@
1
- import { useEffect, useMemo } from "react";
2
- import { useDispatch, useSelector } from "react-redux";
3
- import { setProjectContext, setLimit, setNotificationTemplates, selectAppNotifications, selectUnreadCount, selectAppNotificationsLoading, selectAppNotificationsHasMore, selectAppNotificationsPage, selectCurrentProjectId, selectNotificationTemplates, } from "../../store/slices/appNotificationsSlice";
4
- import { useAppNotificationsActionsRedux } from "./useAppNotificationsActionsRedux";
5
- import useProject from "../projects/useProject";
6
- import { useUserRedux } from "../auth-redux";
7
- /**
8
- * Redux-powered hook that provides the exact same interface as useAppNotificationsData()
9
- * This is a drop-in replacement for the Context-based hook
10
- */
11
- function useAppNotificationsDataRedux(_a) {
12
- var _b = _a === void 0 ? {} : _a, _c = _b.limit, limit = _c === void 0 ? 10 : _c, notificationTemplates = _b.notificationTemplates;
13
- var dispatch = useDispatch();
14
- // Get external context
15
- var projectId = useProject().projectId;
16
- var user = useUserRedux().user;
17
- // Get Redux state
18
- var appNotifications = useSelector(function (state) {
19
- return selectAppNotifications(state);
20
- });
21
- var unreadAppNotificationsCount = useSelector(function (state) {
22
- return selectUnreadCount(state);
23
- });
24
- var loading = useSelector(function (state) {
25
- return selectAppNotificationsLoading(state);
26
- });
27
- var hasMore = useSelector(function (state) {
28
- return selectAppNotificationsHasMore(state);
29
- });
30
- var currentPage = useSelector(function (state) {
31
- return selectAppNotificationsPage(state);
32
- });
33
- var currentProjectId = useSelector(function (state) {
34
- return selectCurrentProjectId(state);
35
- });
36
- // Get actions
37
- var _d = useAppNotificationsActionsRedux(), loadMore = _d.loadMore, markNotificationAsRead = _d.markNotificationAsRead, markAllNotificationsAsRead = _d.markAllNotificationsAsRead, resetAppNotifications = _d.resetAppNotifications, fetchMoreNotifications = _d.fetchMoreNotifications, updateUnreadCount = _d.updateUnreadCount;
38
- // Update Redux state when props change
39
- useEffect(function () {
40
- if (projectId && projectId !== currentProjectId) {
41
- dispatch(setProjectContext(projectId));
42
- }
43
- }, [dispatch, projectId, currentProjectId]);
44
- useEffect(function () {
45
- dispatch(setLimit(limit));
46
- }, [dispatch, limit]);
47
- // Prevent infinite re-renders by comparing current vs new templates
48
- var currentTemplates = useSelector(function (state) {
49
- return selectNotificationTemplates(state);
50
- });
51
- var templatesChanged = useMemo(function () {
52
- // If no templates provided, skip comparison
53
- if (!notificationTemplates)
54
- return false;
55
- // Deep comparison using JSON stringify
56
- return (JSON.stringify(currentTemplates) !== JSON.stringify(notificationTemplates));
57
- }, [currentTemplates, notificationTemplates]);
58
- useEffect(function () {
59
- if (notificationTemplates && templatesChanged) {
60
- dispatch(setNotificationTemplates(notificationTemplates));
61
- }
62
- }, [dispatch, notificationTemplates, templatesChanged]);
63
- // Fetch unread count on mount and when dependencies change
64
- useEffect(function () {
65
- if (projectId && user) {
66
- updateUnreadCount();
67
- }
68
- }, [updateUnreadCount, projectId, user]);
69
- // Reset and fetch initial notifications when dependencies change
70
- useEffect(function () {
71
- if (projectId && user) {
72
- resetAppNotifications();
73
- }
74
- }, [resetAppNotifications, projectId, user]);
75
- // Handle page changes (load more notifications)
76
- useEffect(function () {
77
- if (currentPage > 1 && projectId && user) {
78
- fetchMoreNotifications(currentPage);
79
- }
80
- }, [currentPage, fetchMoreNotifications, projectId, user]);
81
- // Return the same interface as the original hook
82
- return useMemo(function () { return ({
83
- appNotifications: appNotifications,
84
- unreadAppNotificationsCount: unreadAppNotificationsCount,
85
- loading: loading,
86
- hasMore: hasMore,
87
- loadMore: loadMore,
88
- markNotificationAsRead: markNotificationAsRead,
89
- markAllNotificationsAsRead: markAllNotificationsAsRead,
90
- resetAppNotifications: resetAppNotifications,
91
- }); }, [
92
- appNotifications,
93
- unreadAppNotificationsCount,
94
- loading,
95
- hasMore,
96
- loadMore,
97
- markNotificationAsRead,
98
- markAllNotificationsAsRead,
99
- resetAppNotifications,
100
- ]);
101
- }
102
- export default useAppNotificationsDataRedux;
103
- //# sourceMappingURL=useAppNotificationsDataRedux.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useAppNotificationsDataRedux.js","sourceRoot":"","sources":["../../../../src/hooks/app-notifications-redux/useAppNotificationsDataRedux.ts"],"names":[],"mappings":"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"}