@replyke/core 5.1.6-beta.0 → 5.1.6-beta.10

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 (419) hide show
  1. package/dist/cjs/context/index.d.ts +0 -2
  2. package/dist/cjs/context/index.js +1 -5
  3. package/dist/cjs/context/index.js.map +1 -1
  4. package/dist/cjs/helpers/addNotificationsMessages.js +7 -7
  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/entities/index.d.ts +1 -3
  13. package/dist/cjs/hooks/entities/index.js +2 -6
  14. package/dist/cjs/hooks/entities/index.js.map +1 -1
  15. package/dist/cjs/hooks/entities/useEntityData.js +2 -2
  16. package/dist/cjs/hooks/entities/useEntityData.js.map +1 -1
  17. package/dist/cjs/hooks/entity-lists/useFetchManyEntities.js.map +1 -0
  18. package/dist/cjs/hooks/entity-lists/useInfusedData.js.map +1 -0
  19. package/dist/cjs/hooks/entity-lists-redux/index.d.ts +2 -0
  20. package/dist/cjs/hooks/entity-lists-redux/index.js +9 -0
  21. package/dist/cjs/hooks/entity-lists-redux/index.js.map +1 -0
  22. package/dist/cjs/hooks/entity-lists-redux/useEntityListRedux.d.ts +66 -0
  23. package/dist/cjs/hooks/entity-lists-redux/useEntityListRedux.js +366 -0
  24. package/dist/cjs/hooks/entity-lists-redux/useEntityListRedux.js.map +1 -0
  25. package/dist/cjs/hooks/lists-redux/index.d.ts +3 -0
  26. package/dist/cjs/hooks/lists-redux/index.js +14 -0
  27. package/dist/cjs/hooks/lists-redux/index.js.map +1 -0
  28. package/dist/cjs/hooks/{lists → lists-redux}/useIsEntitySaved.js +4 -4
  29. package/dist/cjs/hooks/lists-redux/useIsEntitySaved.js.map +1 -0
  30. package/dist/cjs/hooks/lists-redux/useListsActionsRedux.d.ts +21 -0
  31. package/dist/cjs/hooks/lists-redux/useListsActionsRedux.js +329 -0
  32. package/dist/cjs/hooks/lists-redux/useListsActionsRedux.js.map +1 -0
  33. package/dist/cjs/hooks/{lists/useListsData.d.ts → lists-redux/useListsRedux.d.ts} +9 -5
  34. package/dist/cjs/hooks/lists-redux/useListsRedux.js +239 -0
  35. package/dist/cjs/hooks/lists-redux/useListsRedux.js.map +1 -0
  36. package/dist/cjs/hooks/user-redux/index.d.ts +2 -0
  37. package/dist/cjs/hooks/user-redux/index.js +12 -0
  38. package/dist/cjs/hooks/user-redux/index.js.map +1 -0
  39. package/dist/cjs/hooks/user-redux/useUserActionsRedux.d.ts +12 -0
  40. package/dist/cjs/hooks/user-redux/useUserActionsRedux.js +125 -0
  41. package/dist/cjs/hooks/user-redux/useUserActionsRedux.js.map +1 -0
  42. package/dist/cjs/hooks/user-redux/useUserRedux.d.ts +18 -0
  43. package/dist/cjs/hooks/user-redux/useUserRedux.js +116 -0
  44. package/dist/cjs/hooks/user-redux/useUserRedux.js.map +1 -0
  45. package/dist/cjs/hooks/users/index.d.ts +0 -2
  46. package/dist/cjs/hooks/users/index.js +4 -5
  47. package/dist/cjs/hooks/users/index.js.map +1 -1
  48. package/dist/cjs/index.d.ts +10 -8
  49. package/dist/cjs/index.js +22 -22
  50. package/dist/cjs/index.js.map +1 -1
  51. package/dist/cjs/interfaces/models/Entity.d.ts +1 -0
  52. package/dist/cjs/{context → legacy/context}/entity-list-context.d.ts +1 -1
  53. package/dist/cjs/{context → legacy/context}/entity-list-context.js +1 -1
  54. package/dist/cjs/legacy/context/entity-list-context.js.map +1 -0
  55. package/dist/cjs/legacy/hooks/entity-lists/useEntityList.js.map +1 -0
  56. package/dist/cjs/{hooks/entities → legacy/hooks/entity-lists}/useEntityListData.d.ts +9 -9
  57. package/dist/cjs/{hooks/entities → legacy/hooks/entity-lists}/useEntityListData.js +5 -5
  58. package/dist/cjs/legacy/hooks/entity-lists/useEntityListData.js.map +1 -0
  59. package/dist/cjs/store/api/appNotificationsApi.d.ts +144 -141
  60. package/dist/cjs/store/api/appNotificationsApi.js +11 -0
  61. package/dist/cjs/store/api/appNotificationsApi.js.map +1 -1
  62. package/dist/cjs/store/api/baseApi.d.ts +1 -1
  63. package/dist/cjs/store/api/baseApi.js +4 -3
  64. package/dist/cjs/store/api/baseApi.js.map +1 -1
  65. package/dist/cjs/store/api/index.d.ts +1 -0
  66. package/dist/cjs/store/api/index.js +2 -1
  67. package/dist/cjs/store/api/index.js.map +1 -1
  68. package/dist/cjs/store/api/listsApi.d.ts +3044 -0
  69. package/dist/cjs/store/api/listsApi.js +288 -0
  70. package/dist/cjs/store/api/listsApi.js.map +1 -0
  71. package/dist/cjs/store/api/userApi.d.ts +183 -0
  72. package/dist/cjs/store/api/userApi.js +38 -0
  73. package/dist/cjs/store/api/userApi.js.map +1 -0
  74. package/dist/cjs/store/index.d.ts +10 -4
  75. package/dist/cjs/store/index.js +2 -1
  76. package/dist/cjs/store/index.js.map +1 -1
  77. package/dist/cjs/store/middleware.js +3 -2
  78. package/dist/cjs/store/middleware.js.map +1 -1
  79. package/dist/cjs/store/rootReducer.d.ts +8 -2
  80. package/dist/cjs/store/rootReducer.js +6 -0
  81. package/dist/cjs/store/rootReducer.js.map +1 -1
  82. package/dist/cjs/store/slices/authThunks.js +6 -0
  83. package/dist/cjs/store/slices/authThunks.js.map +1 -1
  84. package/dist/cjs/store/slices/entityListsSlice.d.ts +360 -0
  85. package/dist/cjs/store/slices/entityListsSlice.js +294 -0
  86. package/dist/cjs/store/slices/entityListsSlice.js.map +1 -0
  87. package/dist/cjs/store/slices/index.d.ts +0 -1
  88. package/dist/cjs/store/slices/index.js +2 -18
  89. package/dist/cjs/store/slices/index.js.map +1 -1
  90. package/dist/cjs/store/slices/listsSlice.d.ts +73 -0
  91. package/dist/cjs/store/slices/listsSlice.js +212 -0
  92. package/dist/cjs/store/slices/listsSlice.js.map +1 -0
  93. package/dist/cjs/store/slices/userSlice.d.ts +29 -0
  94. package/dist/cjs/store/slices/userSlice.js +87 -0
  95. package/dist/cjs/store/slices/userSlice.js.map +1 -0
  96. package/dist/cjs/utils/env.d.ts +19 -0
  97. package/dist/cjs/utils/env.js +102 -0
  98. package/dist/cjs/utils/env.js.map +1 -0
  99. package/dist/cjs/utils/keywordHelpers.d.ts +30 -0
  100. package/dist/cjs/utils/keywordHelpers.js +101 -0
  101. package/dist/cjs/utils/keywordHelpers.js.map +1 -0
  102. package/dist/esm/context/index.d.ts +0 -2
  103. package/dist/esm/context/index.js +0 -2
  104. package/dist/esm/context/index.js.map +1 -1
  105. package/dist/esm/helpers/addNotificationsMessages.js +7 -7
  106. package/dist/esm/helpers/addNotificationsMessages.js.map +1 -1
  107. package/dist/esm/hooks/app-notifications-redux/index.d.ts +1 -2
  108. package/dist/esm/hooks/app-notifications-redux/index.js +0 -1
  109. package/dist/esm/hooks/app-notifications-redux/index.js.map +1 -1
  110. package/dist/esm/hooks/app-notifications-redux/useAppNotificationsRedux.d.ts +18 -4
  111. package/dist/esm/hooks/app-notifications-redux/useAppNotificationsRedux.js +77 -9
  112. package/dist/esm/hooks/app-notifications-redux/useAppNotificationsRedux.js.map +1 -1
  113. package/dist/esm/hooks/entities/index.d.ts +1 -3
  114. package/dist/esm/hooks/entities/index.js +1 -3
  115. package/dist/esm/hooks/entities/index.js.map +1 -1
  116. package/dist/esm/hooks/entities/useEntityData.js +2 -2
  117. package/dist/esm/hooks/entities/useEntityData.js.map +1 -1
  118. package/dist/esm/hooks/entity-lists/useFetchManyEntities.js.map +1 -0
  119. package/dist/esm/hooks/entity-lists/useInfusedData.js.map +1 -0
  120. package/dist/esm/hooks/entity-lists-redux/index.d.ts +2 -0
  121. package/dist/esm/hooks/entity-lists-redux/index.js +2 -0
  122. package/dist/esm/hooks/entity-lists-redux/index.js.map +1 -0
  123. package/dist/esm/hooks/entity-lists-redux/useEntityListRedux.d.ts +66 -0
  124. package/dist/esm/hooks/entity-lists-redux/useEntityListRedux.js +361 -0
  125. package/dist/esm/hooks/entity-lists-redux/useEntityListRedux.js.map +1 -0
  126. package/dist/esm/hooks/lists-redux/index.d.ts +3 -0
  127. package/dist/esm/hooks/lists-redux/index.js +5 -0
  128. package/dist/esm/hooks/lists-redux/index.js.map +1 -0
  129. package/dist/esm/hooks/{lists → lists-redux}/useIsEntitySaved.js +4 -4
  130. package/dist/esm/hooks/lists-redux/useIsEntitySaved.js.map +1 -0
  131. package/dist/esm/hooks/lists-redux/useListsActionsRedux.d.ts +21 -0
  132. package/dist/esm/hooks/lists-redux/useListsActionsRedux.js +326 -0
  133. package/dist/esm/hooks/lists-redux/useListsActionsRedux.js.map +1 -0
  134. package/dist/esm/hooks/{lists/useListsData.d.ts → lists-redux/useListsRedux.d.ts} +9 -5
  135. package/dist/esm/hooks/lists-redux/useListsRedux.js +234 -0
  136. package/dist/esm/hooks/lists-redux/useListsRedux.js.map +1 -0
  137. package/dist/esm/hooks/user-redux/index.d.ts +2 -0
  138. package/dist/esm/hooks/user-redux/index.js +4 -0
  139. package/dist/esm/hooks/user-redux/index.js.map +1 -0
  140. package/dist/esm/hooks/user-redux/useUserActionsRedux.d.ts +12 -0
  141. package/dist/esm/hooks/user-redux/useUserActionsRedux.js +122 -0
  142. package/dist/esm/hooks/user-redux/useUserActionsRedux.js.map +1 -0
  143. package/dist/esm/hooks/user-redux/useUserRedux.d.ts +18 -0
  144. package/dist/esm/hooks/user-redux/useUserRedux.js +111 -0
  145. package/dist/esm/hooks/user-redux/useUserRedux.js.map +1 -0
  146. package/dist/esm/hooks/users/index.d.ts +0 -2
  147. package/dist/esm/hooks/users/index.js +3 -2
  148. package/dist/esm/hooks/users/index.js.map +1 -1
  149. package/dist/esm/index.d.ts +10 -8
  150. package/dist/esm/index.js +13 -9
  151. package/dist/esm/index.js.map +1 -1
  152. package/dist/esm/interfaces/models/Entity.d.ts +1 -0
  153. package/dist/esm/{context → legacy/context}/entity-list-context.d.ts +1 -1
  154. package/dist/esm/{context → legacy/context}/entity-list-context.js +1 -1
  155. package/dist/esm/legacy/context/entity-list-context.js.map +1 -0
  156. package/dist/esm/legacy/hooks/entity-lists/useEntityList.js.map +1 -0
  157. package/dist/esm/{hooks/entities → legacy/hooks/entity-lists}/useEntityListData.d.ts +9 -9
  158. package/dist/esm/{hooks/entities → legacy/hooks/entity-lists}/useEntityListData.js +5 -5
  159. package/dist/esm/legacy/hooks/entity-lists/useEntityListData.js.map +1 -0
  160. package/dist/esm/store/api/appNotificationsApi.d.ts +144 -141
  161. package/dist/esm/store/api/appNotificationsApi.js +11 -0
  162. package/dist/esm/store/api/appNotificationsApi.js.map +1 -1
  163. package/dist/esm/store/api/baseApi.d.ts +1 -1
  164. package/dist/esm/store/api/baseApi.js +4 -3
  165. package/dist/esm/store/api/baseApi.js.map +1 -1
  166. package/dist/esm/store/api/index.d.ts +1 -0
  167. package/dist/esm/store/api/index.js +2 -1
  168. package/dist/esm/store/api/index.js.map +1 -1
  169. package/dist/esm/store/api/listsApi.d.ts +3044 -0
  170. package/dist/esm/store/api/listsApi.js +285 -0
  171. package/dist/esm/store/api/listsApi.js.map +1 -0
  172. package/dist/esm/store/api/userApi.d.ts +183 -0
  173. package/dist/esm/store/api/userApi.js +35 -0
  174. package/dist/esm/store/api/userApi.js.map +1 -0
  175. package/dist/esm/store/index.d.ts +10 -4
  176. package/dist/esm/store/index.js +2 -1
  177. package/dist/esm/store/index.js.map +1 -1
  178. package/dist/esm/store/middleware.js +3 -2
  179. package/dist/esm/store/middleware.js.map +1 -1
  180. package/dist/esm/store/rootReducer.d.ts +8 -2
  181. package/dist/esm/store/rootReducer.js +6 -0
  182. package/dist/esm/store/rootReducer.js.map +1 -1
  183. package/dist/esm/store/slices/authThunks.js +6 -0
  184. package/dist/esm/store/slices/authThunks.js.map +1 -1
  185. package/dist/esm/store/slices/entityListsSlice.d.ts +360 -0
  186. package/dist/esm/store/slices/entityListsSlice.js +291 -0
  187. package/dist/esm/store/slices/entityListsSlice.js.map +1 -0
  188. package/dist/esm/store/slices/index.d.ts +0 -1
  189. package/dist/esm/store/slices/index.js +3 -3
  190. package/dist/esm/store/slices/index.js.map +1 -1
  191. package/dist/esm/store/slices/listsSlice.d.ts +73 -0
  192. package/dist/esm/store/slices/listsSlice.js +201 -0
  193. package/dist/esm/store/slices/listsSlice.js.map +1 -0
  194. package/dist/esm/store/slices/userSlice.d.ts +29 -0
  195. package/dist/esm/store/slices/userSlice.js +78 -0
  196. package/dist/esm/store/slices/userSlice.js.map +1 -0
  197. package/dist/esm/utils/env.d.ts +19 -0
  198. package/dist/esm/utils/env.js +96 -0
  199. package/dist/esm/utils/env.js.map +1 -0
  200. package/dist/esm/utils/keywordHelpers.d.ts +30 -0
  201. package/dist/esm/utils/keywordHelpers.js +98 -0
  202. package/dist/esm/utils/keywordHelpers.js.map +1 -0
  203. package/package.json +1 -1
  204. package/dist/cjs/context/entity-list-context.js.map +0 -1
  205. package/dist/cjs/context/lists-context.d.ts +0 -9
  206. package/dist/cjs/context/lists-context.js +0 -17
  207. package/dist/cjs/context/lists-context.js.map +0 -1
  208. package/dist/cjs/context/user-context.d.ts +0 -8
  209. package/dist/cjs/context/user-context.js +0 -28
  210. package/dist/cjs/context/user-context.js.map +0 -1
  211. package/dist/cjs/hooks/app-notifications-redux/useAppNotificationsDataRedux.d.ts +0 -21
  212. package/dist/cjs/hooks/app-notifications-redux/useAppNotificationsDataRedux.js +0 -108
  213. package/dist/cjs/hooks/app-notifications-redux/useAppNotificationsDataRedux.js.map +0 -1
  214. package/dist/cjs/hooks/entities/useEntityList.js.map +0 -1
  215. package/dist/cjs/hooks/entities/useEntityListData.js.map +0 -1
  216. package/dist/cjs/hooks/entities/useFetchManyEntities.js.map +0 -1
  217. package/dist/cjs/hooks/entities/useInfusedData.js.map +0 -1
  218. package/dist/cjs/hooks/lists/index.d.ts +0 -10
  219. package/dist/cjs/hooks/lists/index.js +0 -27
  220. package/dist/cjs/hooks/lists/index.js.map +0 -1
  221. package/dist/cjs/hooks/lists/useAddToList.d.ts +0 -6
  222. package/dist/cjs/hooks/lists/useAddToList.js +0 -70
  223. package/dist/cjs/hooks/lists/useAddToList.js.map +0 -1
  224. package/dist/cjs/hooks/lists/useCreateList.d.ts +0 -6
  225. package/dist/cjs/hooks/lists/useCreateList.js +0 -70
  226. package/dist/cjs/hooks/lists/useCreateList.js.map +0 -1
  227. package/dist/cjs/hooks/lists/useDeleteList.d.ts +0 -4
  228. package/dist/cjs/hooks/lists/useDeleteList.js +0 -69
  229. package/dist/cjs/hooks/lists/useDeleteList.js.map +0 -1
  230. package/dist/cjs/hooks/lists/useFetchRootList.d.ts +0 -3
  231. package/dist/cjs/hooks/lists/useFetchRootList.js +0 -69
  232. package/dist/cjs/hooks/lists/useFetchRootList.js.map +0 -1
  233. package/dist/cjs/hooks/lists/useFetchSubLists.d.ts +0 -5
  234. package/dist/cjs/hooks/lists/useFetchSubLists.js +0 -68
  235. package/dist/cjs/hooks/lists/useFetchSubLists.js.map +0 -1
  236. package/dist/cjs/hooks/lists/useIsEntitySaved.js.map +0 -1
  237. package/dist/cjs/hooks/lists/useLists.d.ts +0 -2
  238. package/dist/cjs/hooks/lists/useLists.js +0 -9
  239. package/dist/cjs/hooks/lists/useLists.js.map +0 -1
  240. package/dist/cjs/hooks/lists/useListsData.js +0 -391
  241. package/dist/cjs/hooks/lists/useListsData.js.map +0 -1
  242. package/dist/cjs/hooks/lists/useRemoveFromList.d.ts +0 -6
  243. package/dist/cjs/hooks/lists/useRemoveFromList.js +0 -70
  244. package/dist/cjs/hooks/lists/useRemoveFromList.js.map +0 -1
  245. package/dist/cjs/hooks/lists/useUpdateList.d.ts +0 -8
  246. package/dist/cjs/hooks/lists/useUpdateList.js +0 -70
  247. package/dist/cjs/hooks/lists/useUpdateList.js.map +0 -1
  248. package/dist/cjs/hooks/users/useUser.d.ts +0 -2
  249. package/dist/cjs/hooks/users/useUser.js +0 -9
  250. package/dist/cjs/hooks/users/useUser.js.map +0 -1
  251. package/dist/cjs/hooks/users/useUserData.d.ts +0 -12
  252. package/dist/cjs/hooks/users/useUserData.js +0 -76
  253. package/dist/cjs/hooks/users/useUserData.js.map +0 -1
  254. package/dist/cjs/legacy/context/app-notifications-context.d.ts +0 -8
  255. package/dist/cjs/legacy/context/app-notifications-context.js +0 -28
  256. package/dist/cjs/legacy/context/app-notifications-context.js.map +0 -1
  257. package/dist/cjs/legacy/context/auth-context.d.ts +0 -8
  258. package/dist/cjs/legacy/context/auth-context.js +0 -29
  259. package/dist/cjs/legacy/context/auth-context.js.map +0 -1
  260. package/dist/cjs/legacy/hooks/app-notifications/index.d.ts +0 -5
  261. package/dist/cjs/legacy/hooks/app-notifications/index.js +0 -17
  262. package/dist/cjs/legacy/hooks/app-notifications/index.js.map +0 -1
  263. package/dist/cjs/legacy/hooks/app-notifications/useAppNotifications.d.ts +0 -2
  264. package/dist/cjs/legacy/hooks/app-notifications/useAppNotifications.js +0 -9
  265. package/dist/cjs/legacy/hooks/app-notifications/useAppNotifications.js.map +0 -1
  266. package/dist/cjs/legacy/hooks/app-notifications/useAppNotificationsData.d.ts +0 -16
  267. package/dist/cjs/legacy/hooks/app-notifications/useAppNotificationsData.js +0 -225
  268. package/dist/cjs/legacy/hooks/app-notifications/useAppNotificationsData.js.map +0 -1
  269. package/dist/cjs/legacy/hooks/app-notifications/useCountUnreadNotifications.d.ts +0 -2
  270. package/dist/cjs/legacy/hooks/app-notifications/useCountUnreadNotifications.js +0 -72
  271. package/dist/cjs/legacy/hooks/app-notifications/useCountUnreadNotifications.js.map +0 -1
  272. package/dist/cjs/legacy/hooks/app-notifications/useFetchAppNotifications.d.ts +0 -6
  273. package/dist/cjs/legacy/hooks/app-notifications/useFetchAppNotifications.js +0 -79
  274. package/dist/cjs/legacy/hooks/app-notifications/useFetchAppNotifications.js.map +0 -1
  275. package/dist/cjs/legacy/hooks/app-notifications/useMarkNotificationAsRead.d.ts +0 -2
  276. package/dist/cjs/legacy/hooks/app-notifications/useMarkNotificationAsRead.js +0 -74
  277. package/dist/cjs/legacy/hooks/app-notifications/useMarkNotificationAsRead.js.map +0 -1
  278. package/dist/cjs/legacy/hooks/auth/index.d.ts +0 -8
  279. package/dist/cjs/legacy/hooks/auth/index.js +0 -23
  280. package/dist/cjs/legacy/hooks/auth/index.js.map +0 -1
  281. package/dist/cjs/legacy/hooks/auth/useAuth.d.ts +0 -2
  282. package/dist/cjs/legacy/hooks/auth/useAuth.js +0 -9
  283. package/dist/cjs/legacy/hooks/auth/useAuth.js.map +0 -1
  284. package/dist/cjs/legacy/hooks/auth/useAuthData.d.ts +0 -41
  285. package/dist/cjs/legacy/hooks/auth/useAuthData.js +0 -271
  286. package/dist/cjs/legacy/hooks/auth/useAuthData.js.map +0 -1
  287. package/dist/cjs/legacy/hooks/auth/useChangePassword.d.ts +0 -5
  288. package/dist/cjs/legacy/hooks/auth/useChangePassword.js +0 -70
  289. package/dist/cjs/legacy/hooks/auth/useChangePassword.js.map +0 -1
  290. package/dist/cjs/legacy/hooks/auth/useRequestNewAccessToken.d.ts +0 -7
  291. package/dist/cjs/legacy/hooks/auth/useRequestNewAccessToken.js +0 -71
  292. package/dist/cjs/legacy/hooks/auth/useRequestNewAccessToken.js.map +0 -1
  293. package/dist/cjs/legacy/hooks/auth/useSignInWithEmailAndPassword.d.ts +0 -9
  294. package/dist/cjs/legacy/hooks/auth/useSignInWithEmailAndPassword.js +0 -72
  295. package/dist/cjs/legacy/hooks/auth/useSignInWithEmailAndPassword.js.map +0 -1
  296. package/dist/cjs/legacy/hooks/auth/useSignOut.d.ts +0 -4
  297. package/dist/cjs/legacy/hooks/auth/useSignOut.js +0 -67
  298. package/dist/cjs/legacy/hooks/auth/useSignOut.js.map +0 -1
  299. package/dist/cjs/legacy/hooks/auth/useSignUpWithEmailAndPassword.d.ts +0 -20
  300. package/dist/cjs/legacy/hooks/auth/useSignUpWithEmailAndPassword.js +0 -80
  301. package/dist/cjs/legacy/hooks/auth/useSignUpWithEmailAndPassword.js.map +0 -1
  302. package/dist/cjs/legacy/hooks/auth/useVerifyExternalUser.d.ts +0 -8
  303. package/dist/cjs/legacy/hooks/auth/useVerifyExternalUser.js +0 -70
  304. package/dist/cjs/legacy/hooks/auth/useVerifyExternalUser.js.map +0 -1
  305. package/dist/esm/context/entity-list-context.js.map +0 -1
  306. package/dist/esm/context/lists-context.d.ts +0 -9
  307. package/dist/esm/context/lists-context.js +0 -10
  308. package/dist/esm/context/lists-context.js.map +0 -1
  309. package/dist/esm/context/user-context.d.ts +0 -8
  310. package/dist/esm/context/user-context.js +0 -21
  311. package/dist/esm/context/user-context.js.map +0 -1
  312. package/dist/esm/hooks/app-notifications-redux/useAppNotificationsDataRedux.d.ts +0 -21
  313. package/dist/esm/hooks/app-notifications-redux/useAppNotificationsDataRedux.js +0 -103
  314. package/dist/esm/hooks/app-notifications-redux/useAppNotificationsDataRedux.js.map +0 -1
  315. package/dist/esm/hooks/entities/useEntityList.js.map +0 -1
  316. package/dist/esm/hooks/entities/useEntityListData.js.map +0 -1
  317. package/dist/esm/hooks/entities/useFetchManyEntities.js.map +0 -1
  318. package/dist/esm/hooks/entities/useInfusedData.js.map +0 -1
  319. package/dist/esm/hooks/lists/index.d.ts +0 -10
  320. package/dist/esm/hooks/lists/index.js +0 -11
  321. package/dist/esm/hooks/lists/index.js.map +0 -1
  322. package/dist/esm/hooks/lists/useAddToList.d.ts +0 -6
  323. package/dist/esm/hooks/lists/useAddToList.js +0 -65
  324. package/dist/esm/hooks/lists/useAddToList.js.map +0 -1
  325. package/dist/esm/hooks/lists/useCreateList.d.ts +0 -6
  326. package/dist/esm/hooks/lists/useCreateList.js +0 -65
  327. package/dist/esm/hooks/lists/useCreateList.js.map +0 -1
  328. package/dist/esm/hooks/lists/useDeleteList.d.ts +0 -4
  329. package/dist/esm/hooks/lists/useDeleteList.js +0 -64
  330. package/dist/esm/hooks/lists/useDeleteList.js.map +0 -1
  331. package/dist/esm/hooks/lists/useFetchRootList.d.ts +0 -3
  332. package/dist/esm/hooks/lists/useFetchRootList.js +0 -64
  333. package/dist/esm/hooks/lists/useFetchRootList.js.map +0 -1
  334. package/dist/esm/hooks/lists/useFetchSubLists.d.ts +0 -5
  335. package/dist/esm/hooks/lists/useFetchSubLists.js +0 -63
  336. package/dist/esm/hooks/lists/useFetchSubLists.js.map +0 -1
  337. package/dist/esm/hooks/lists/useIsEntitySaved.js.map +0 -1
  338. package/dist/esm/hooks/lists/useLists.d.ts +0 -2
  339. package/dist/esm/hooks/lists/useLists.js +0 -6
  340. package/dist/esm/hooks/lists/useLists.js.map +0 -1
  341. package/dist/esm/hooks/lists/useListsData.js +0 -386
  342. package/dist/esm/hooks/lists/useListsData.js.map +0 -1
  343. package/dist/esm/hooks/lists/useRemoveFromList.d.ts +0 -6
  344. package/dist/esm/hooks/lists/useRemoveFromList.js +0 -65
  345. package/dist/esm/hooks/lists/useRemoveFromList.js.map +0 -1
  346. package/dist/esm/hooks/lists/useUpdateList.d.ts +0 -8
  347. package/dist/esm/hooks/lists/useUpdateList.js +0 -65
  348. package/dist/esm/hooks/lists/useUpdateList.js.map +0 -1
  349. package/dist/esm/hooks/users/useUser.d.ts +0 -2
  350. package/dist/esm/hooks/users/useUser.js +0 -6
  351. package/dist/esm/hooks/users/useUser.js.map +0 -1
  352. package/dist/esm/hooks/users/useUserData.d.ts +0 -12
  353. package/dist/esm/hooks/users/useUserData.js +0 -71
  354. package/dist/esm/hooks/users/useUserData.js.map +0 -1
  355. package/dist/esm/legacy/context/app-notifications-context.d.ts +0 -8
  356. package/dist/esm/legacy/context/app-notifications-context.js +0 -21
  357. package/dist/esm/legacy/context/app-notifications-context.js.map +0 -1
  358. package/dist/esm/legacy/context/auth-context.d.ts +0 -8
  359. package/dist/esm/legacy/context/auth-context.js +0 -22
  360. package/dist/esm/legacy/context/auth-context.js.map +0 -1
  361. package/dist/esm/legacy/hooks/app-notifications/index.d.ts +0 -5
  362. package/dist/esm/legacy/hooks/app-notifications/index.js +0 -6
  363. package/dist/esm/legacy/hooks/app-notifications/index.js.map +0 -1
  364. package/dist/esm/legacy/hooks/app-notifications/useAppNotifications.d.ts +0 -2
  365. package/dist/esm/legacy/hooks/app-notifications/useAppNotifications.js +0 -6
  366. package/dist/esm/legacy/hooks/app-notifications/useAppNotifications.js.map +0 -1
  367. package/dist/esm/legacy/hooks/app-notifications/useAppNotificationsData.d.ts +0 -16
  368. package/dist/esm/legacy/hooks/app-notifications/useAppNotificationsData.js +0 -220
  369. package/dist/esm/legacy/hooks/app-notifications/useAppNotificationsData.js.map +0 -1
  370. package/dist/esm/legacy/hooks/app-notifications/useCountUnreadNotifications.d.ts +0 -2
  371. package/dist/esm/legacy/hooks/app-notifications/useCountUnreadNotifications.js +0 -67
  372. package/dist/esm/legacy/hooks/app-notifications/useCountUnreadNotifications.js.map +0 -1
  373. package/dist/esm/legacy/hooks/app-notifications/useFetchAppNotifications.d.ts +0 -6
  374. package/dist/esm/legacy/hooks/app-notifications/useFetchAppNotifications.js +0 -74
  375. package/dist/esm/legacy/hooks/app-notifications/useFetchAppNotifications.js.map +0 -1
  376. package/dist/esm/legacy/hooks/app-notifications/useMarkNotificationAsRead.d.ts +0 -2
  377. package/dist/esm/legacy/hooks/app-notifications/useMarkNotificationAsRead.js +0 -69
  378. package/dist/esm/legacy/hooks/app-notifications/useMarkNotificationAsRead.js.map +0 -1
  379. package/dist/esm/legacy/hooks/auth/index.d.ts +0 -8
  380. package/dist/esm/legacy/hooks/auth/index.js +0 -9
  381. package/dist/esm/legacy/hooks/auth/index.js.map +0 -1
  382. package/dist/esm/legacy/hooks/auth/useAuth.d.ts +0 -2
  383. package/dist/esm/legacy/hooks/auth/useAuth.js +0 -6
  384. package/dist/esm/legacy/hooks/auth/useAuth.js.map +0 -1
  385. package/dist/esm/legacy/hooks/auth/useAuthData.d.ts +0 -41
  386. package/dist/esm/legacy/hooks/auth/useAuthData.js +0 -266
  387. package/dist/esm/legacy/hooks/auth/useAuthData.js.map +0 -1
  388. package/dist/esm/legacy/hooks/auth/useChangePassword.d.ts +0 -5
  389. package/dist/esm/legacy/hooks/auth/useChangePassword.js +0 -65
  390. package/dist/esm/legacy/hooks/auth/useChangePassword.js.map +0 -1
  391. package/dist/esm/legacy/hooks/auth/useRequestNewAccessToken.d.ts +0 -7
  392. package/dist/esm/legacy/hooks/auth/useRequestNewAccessToken.js +0 -66
  393. package/dist/esm/legacy/hooks/auth/useRequestNewAccessToken.js.map +0 -1
  394. package/dist/esm/legacy/hooks/auth/useSignInWithEmailAndPassword.d.ts +0 -9
  395. package/dist/esm/legacy/hooks/auth/useSignInWithEmailAndPassword.js +0 -67
  396. package/dist/esm/legacy/hooks/auth/useSignInWithEmailAndPassword.js.map +0 -1
  397. package/dist/esm/legacy/hooks/auth/useSignOut.d.ts +0 -4
  398. package/dist/esm/legacy/hooks/auth/useSignOut.js +0 -62
  399. package/dist/esm/legacy/hooks/auth/useSignOut.js.map +0 -1
  400. package/dist/esm/legacy/hooks/auth/useSignUpWithEmailAndPassword.d.ts +0 -20
  401. package/dist/esm/legacy/hooks/auth/useSignUpWithEmailAndPassword.js +0 -75
  402. package/dist/esm/legacy/hooks/auth/useSignUpWithEmailAndPassword.js.map +0 -1
  403. package/dist/esm/legacy/hooks/auth/useVerifyExternalUser.d.ts +0 -8
  404. package/dist/esm/legacy/hooks/auth/useVerifyExternalUser.js +0 -65
  405. package/dist/esm/legacy/hooks/auth/useVerifyExternalUser.js.map +0 -1
  406. /package/dist/cjs/hooks/{entities → entity-lists}/useFetchManyEntities.d.ts +0 -0
  407. /package/dist/cjs/hooks/{entities → entity-lists}/useFetchManyEntities.js +0 -0
  408. /package/dist/cjs/hooks/{entities → entity-lists}/useInfusedData.d.ts +0 -0
  409. /package/dist/cjs/hooks/{entities → entity-lists}/useInfusedData.js +0 -0
  410. /package/dist/cjs/hooks/{lists → lists-redux}/useIsEntitySaved.d.ts +0 -0
  411. /package/dist/cjs/{hooks/entities → legacy/hooks/entity-lists}/useEntityList.d.ts +0 -0
  412. /package/dist/cjs/{hooks/entities → legacy/hooks/entity-lists}/useEntityList.js +0 -0
  413. /package/dist/esm/hooks/{entities → entity-lists}/useFetchManyEntities.d.ts +0 -0
  414. /package/dist/esm/hooks/{entities → entity-lists}/useFetchManyEntities.js +0 -0
  415. /package/dist/esm/hooks/{entities → entity-lists}/useInfusedData.d.ts +0 -0
  416. /package/dist/esm/hooks/{entities → entity-lists}/useInfusedData.js +0 -0
  417. /package/dist/esm/hooks/{lists → lists-redux}/useIsEntitySaved.d.ts +0 -0
  418. /package/dist/esm/{hooks/entities → legacy/hooks/entity-lists}/useEntityList.d.ts +0 -0
  419. /package/dist/esm/{hooks/entities → legacy/hooks/entity-lists}/useEntityList.js +0 -0
@@ -0,0 +1,29 @@
1
+ import { PayloadAction } from '@reduxjs/toolkit';
2
+ import type { RootState } from '../index';
3
+ import type { AuthUser } from '../../interfaces/models/User';
4
+ export interface UserState {
5
+ user: AuthUser | null;
6
+ loading: boolean;
7
+ updating: boolean;
8
+ currentProjectId?: string;
9
+ error: string | null;
10
+ }
11
+ declare const userSlice: import("@reduxjs/toolkit").Slice<UserState, {
12
+ setUser: (state: import("@reduxjs/toolkit").WritableDraft<UserState>, action: PayloadAction<AuthUser | null>) => void;
13
+ clearUser: (state: import("@reduxjs/toolkit").WritableDraft<UserState>) => void;
14
+ setProjectContext: (state: import("@reduxjs/toolkit").WritableDraft<UserState>, action: PayloadAction<string>) => void;
15
+ setLoading: (state: import("@reduxjs/toolkit").WritableDraft<UserState>, action: PayloadAction<boolean>) => void;
16
+ setUpdating: (state: import("@reduxjs/toolkit").WritableDraft<UserState>, action: PayloadAction<boolean>) => void;
17
+ setError: (state: import("@reduxjs/toolkit").WritableDraft<UserState>, action: PayloadAction<string | null>) => void;
18
+ clearError: (state: import("@reduxjs/toolkit").WritableDraft<UserState>) => void;
19
+ updateUserOptimistic: (state: import("@reduxjs/toolkit").WritableDraft<UserState>, action: PayloadAction<Partial<AuthUser>>) => void;
20
+ }, "user", "user", import("@reduxjs/toolkit").SliceSelectors<UserState>>;
21
+ export declare const setUser: import("@reduxjs/toolkit").ActionCreatorWithPayload<AuthUser | null, "user/setUser">, clearUser: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"user/clearUser">, setProjectContext: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, "user/setProjectContext">, setLoading: import("@reduxjs/toolkit").ActionCreatorWithPayload<boolean, "user/setLoading">, setUpdating: import("@reduxjs/toolkit").ActionCreatorWithPayload<boolean, "user/setUpdating">, setError: import("@reduxjs/toolkit").ActionCreatorWithPayload<string | null, "user/setError">, clearError: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"user/clearError">, updateUserOptimistic: import("@reduxjs/toolkit").ActionCreatorWithPayload<Partial<AuthUser>, "user/updateUserOptimistic">;
22
+ export declare const selectUser: (state: RootState) => AuthUser | null;
23
+ export declare const selectUserLoading: (state: RootState) => boolean;
24
+ export declare const selectUserUpdating: (state: RootState) => boolean;
25
+ export declare const selectCurrentProjectId: (state: RootState) => string | undefined;
26
+ export declare const selectUserError: (state: RootState) => string | null;
27
+ export declare const selectUserById: (userId: string) => (state: RootState) => AuthUser | null;
28
+ export declare const userReducer: import("@reduxjs/toolkit").Reducer<UserState>;
29
+ export default userSlice;
@@ -0,0 +1,87 @@
1
+ "use strict";
2
+ var __assign = (this && this.__assign) || function () {
3
+ __assign = Object.assign || function(t) {
4
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
5
+ s = arguments[i];
6
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7
+ t[p] = s[p];
8
+ }
9
+ return t;
10
+ };
11
+ return __assign.apply(this, arguments);
12
+ };
13
+ var _a;
14
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ exports.userReducer = exports.selectUserById = exports.selectUserError = exports.selectCurrentProjectId = exports.selectUserUpdating = exports.selectUserLoading = exports.selectUser = exports.updateUserOptimistic = exports.clearError = exports.setError = exports.setUpdating = exports.setLoading = exports.setProjectContext = exports.clearUser = exports.setUser = void 0;
16
+ var toolkit_1 = require("@reduxjs/toolkit");
17
+ var initialState = {
18
+ user: null,
19
+ loading: false,
20
+ updating: false,
21
+ currentProjectId: undefined,
22
+ error: null,
23
+ };
24
+ var userSlice = (0, toolkit_1.createSlice)({
25
+ name: 'user',
26
+ initialState: initialState,
27
+ reducers: {
28
+ // User data management
29
+ setUser: function (state, action) {
30
+ state.user = action.payload;
31
+ state.error = null;
32
+ },
33
+ clearUser: function (state) {
34
+ state.user = null;
35
+ state.error = null;
36
+ },
37
+ // Project context
38
+ setProjectContext: function (state, action) {
39
+ if (state.currentProjectId !== action.payload) {
40
+ state.currentProjectId = action.payload;
41
+ }
42
+ },
43
+ // Loading states
44
+ setLoading: function (state, action) {
45
+ state.loading = action.payload;
46
+ },
47
+ setUpdating: function (state, action) {
48
+ state.updating = action.payload;
49
+ },
50
+ // Error handling
51
+ setError: function (state, action) {
52
+ state.error = action.payload;
53
+ },
54
+ clearError: function (state) {
55
+ state.error = null;
56
+ },
57
+ // Optimistic updates (will be used by RTK Query)
58
+ updateUserOptimistic: function (state, action) {
59
+ if (state.user) {
60
+ state.user = __assign(__assign({}, state.user), action.payload);
61
+ }
62
+ },
63
+ },
64
+ });
65
+ // Actions
66
+ exports.setUser = (_a = userSlice.actions, _a.setUser), exports.clearUser = _a.clearUser, exports.setProjectContext = _a.setProjectContext, exports.setLoading = _a.setLoading, exports.setUpdating = _a.setUpdating, exports.setError = _a.setError, exports.clearError = _a.clearError, exports.updateUserOptimistic = _a.updateUserOptimistic;
67
+ // Selectors
68
+ var selectUser = function (state) { return state.user.user; };
69
+ exports.selectUser = selectUser;
70
+ var selectUserLoading = function (state) { return state.user.loading; };
71
+ exports.selectUserLoading = selectUserLoading;
72
+ var selectUserUpdating = function (state) { return state.user.updating; };
73
+ exports.selectUserUpdating = selectUserUpdating;
74
+ var selectCurrentProjectId = function (state) { return state.user.currentProjectId; };
75
+ exports.selectCurrentProjectId = selectCurrentProjectId;
76
+ var selectUserError = function (state) { return state.user.error; };
77
+ exports.selectUserError = selectUserError;
78
+ // Complex selectors
79
+ var selectUserById = function (userId) { return function (state) {
80
+ var user = (0, exports.selectUser)(state);
81
+ return (user === null || user === void 0 ? void 0 : user.id) === userId ? user : null;
82
+ }; };
83
+ exports.selectUserById = selectUserById;
84
+ // Reducer
85
+ exports.userReducer = userSlice.reducer;
86
+ exports.default = userSlice;
87
+ //# sourceMappingURL=userSlice.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"userSlice.js","sourceRoot":"","sources":["../../../../src/store/slices/userSlice.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,4CAA8D;AAmB9D,IAAM,YAAY,GAAc;IAC9B,IAAI,EAAE,IAAI;IACV,OAAO,EAAE,KAAK;IACd,QAAQ,EAAE,KAAK;IACf,gBAAgB,EAAE,SAAS;IAC3B,KAAK,EAAE,IAAI;CACZ,CAAC;AAEF,IAAM,SAAS,GAAG,IAAA,qBAAW,EAAC;IAC5B,IAAI,EAAE,MAAM;IACZ,YAAY,cAAA;IACZ,QAAQ,EAAE;QACR,uBAAuB;QACvB,OAAO,EAAE,UAAC,KAAK,EAAE,MAAsC;YACrD,KAAK,CAAC,IAAI,GAAG,MAAM,CAAC,OAAO,CAAC;YAC5B,KAAK,CAAC,KAAK,GAAG,IAAI,CAAC;QACrB,CAAC;QAED,SAAS,EAAE,UAAC,KAAK;YACf,KAAK,CAAC,IAAI,GAAG,IAAI,CAAC;YAClB,KAAK,CAAC,KAAK,GAAG,IAAI,CAAC;QACrB,CAAC;QAED,kBAAkB;QAClB,iBAAiB,EAAE,UAAC,KAAK,EAAE,MAA6B;YACtD,IAAI,KAAK,CAAC,gBAAgB,KAAK,MAAM,CAAC,OAAO,EAAE,CA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AAM,kBAAkB,GAAG,UAAC,KAAgB,IAAK,OAAA,KAAK,CAAC,IAAI,CAAC,QAAQ,EAAnB,CAAmB,CAAC;AAA/D,QAAA,kBAAkB,sBAA6C;AACrE,IAAM,sBAAsB,GAAG,UAAC,KAAgB,IAAK,OAAA,KAAK,CAAC,IAAI,CAAC,gBAAgB,EAA3B,CAA2B,CAAC;AAA3E,QAAA,sBAAsB,0BAAqD;AACjF,IAAM,eAAe,GAAG,UAAC,KAAgB,IAAK,OAAA,KAAK,CAAC,IAAI,CAAC,KAAK,EAAhB,CAAgB,CAAC;AAAzD,QAAA,eAAe,mBAA0C;AAEtE,oBAAoB;AACb,IAAM,cAAc,GAAG,UAAC,MAAc,IAAK,OAAA,UAAC,KAAgB;IACjE,IAAM,IAAI,GAAG,IAAA,kBAAU,EAAC,KAAK,CAAC,CAAC;IAC/B,OAAO,CAAA,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,EAAE,MAAK,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC;AAC3C,CAAC,EAHiD,CAGjD,CAAC;AAHW,QAAA,cAAc,kBAGzB;AAEF,UAAU;AACG,QAAA,WAAW,GAAG,SAAS,CAAC,OAAO,CAAC;AAC7C,kBAAe,SAAS,CAAC"}
@@ -0,0 +1,19 @@
1
+ /**
2
+ * Safe way to check if we're in development mode
3
+ * Works with both Node.js process.env and Vite import.meta.env
4
+ */
5
+ export declare function isDevelopment(): boolean;
6
+ /**
7
+ * Safe way to check if we're in production mode
8
+ */
9
+ export declare function isProduction(): boolean;
10
+ /**
11
+ * Get API base URL from environment variables
12
+ * Supports both REACT_APP_ and VITE_ prefixes
13
+ */
14
+ export declare function getApiBaseUrl(): string;
15
+ /**
16
+ * Get any environment variable with fallback
17
+ * Tries both VITE_ and REACT_APP_ prefixes
18
+ */
19
+ export declare function getEnvVar(name: string, defaultValue?: string): string;
@@ -0,0 +1,102 @@
1
+ "use strict";
2
+ // Environment detection utility for cross-platform compatibility
3
+ // Works with both traditional React apps and Vite-based apps
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports.isDevelopment = isDevelopment;
6
+ exports.isProduction = isProduction;
7
+ exports.getApiBaseUrl = getApiBaseUrl;
8
+ exports.getEnvVar = getEnvVar;
9
+ // Helper function to safely access Vite's import.meta.env
10
+ function getViteEnv() {
11
+ try {
12
+ // Use dynamic access to avoid TypeScript import.meta issues
13
+ var globalThis_ = globalThis;
14
+ if (typeof window !== 'undefined' && globalThis_.__vite_env) {
15
+ return globalThis_.__vite_env;
16
+ }
17
+ // Try to access import.meta via eval to avoid compile-time issues
18
+ if (typeof window !== 'undefined') {
19
+ try {
20
+ var importMeta = new Function('return typeof import !== "undefined" && import.meta')();
21
+ if (importMeta && importMeta.env) {
22
+ return importMeta.env;
23
+ }
24
+ }
25
+ catch (_a) {
26
+ // Ignore errors when import.meta is not available
27
+ }
28
+ }
29
+ return null;
30
+ }
31
+ catch (_b) {
32
+ return null;
33
+ }
34
+ }
35
+ /**
36
+ * Safe way to check if we're in development mode
37
+ * Works with both Node.js process.env and Vite import.meta.env
38
+ */
39
+ function isDevelopment() {
40
+ // Check if we have process.env (Node.js or bundler that provides it)
41
+ if (typeof process !== 'undefined' && process.env) {
42
+ return process.env.NODE_ENV === 'development';
43
+ }
44
+ // Check Vite environment
45
+ var viteEnv = getViteEnv();
46
+ if (viteEnv) {
47
+ return viteEnv.MODE === 'development';
48
+ }
49
+ // Fallback to false (assume production for safety)
50
+ return false;
51
+ }
52
+ /**
53
+ * Safe way to check if we're in production mode
54
+ */
55
+ function isProduction() {
56
+ // Check if we have process.env (Node.js or bundler that provides it)
57
+ if (typeof process !== 'undefined' && process.env) {
58
+ return process.env.NODE_ENV === 'production';
59
+ }
60
+ // Check Vite environment
61
+ var viteEnv = getViteEnv();
62
+ if (viteEnv) {
63
+ return viteEnv.MODE === 'production';
64
+ }
65
+ // Fallback to true (assume production for safety)
66
+ return true;
67
+ }
68
+ /**
69
+ * Get API base URL from environment variables
70
+ * Supports both REACT_APP_ and VITE_ prefixes
71
+ */
72
+ function getApiBaseUrl() {
73
+ // Check process.env (traditional React apps)
74
+ if (typeof process !== 'undefined' && process.env) {
75
+ return process.env.REACT_APP_API_BASE_URL || 'https://api.replyke.com/api/v5';
76
+ }
77
+ // Check Vite environment
78
+ var viteEnv = getViteEnv();
79
+ if (viteEnv) {
80
+ return viteEnv.VITE_API_BASE_URL || 'https://api.replyke.com/api/v5';
81
+ }
82
+ // Fallback to default
83
+ return 'https://api.replyke.com/api/v5';
84
+ }
85
+ /**
86
+ * Get any environment variable with fallback
87
+ * Tries both VITE_ and REACT_APP_ prefixes
88
+ */
89
+ function getEnvVar(name, defaultValue) {
90
+ if (defaultValue === void 0) { defaultValue = ''; }
91
+ // Check process.env
92
+ if (typeof process !== 'undefined' && process.env) {
93
+ return process.env["REACT_APP_".concat(name)] || process.env["VITE_".concat(name)] || defaultValue;
94
+ }
95
+ // Check Vite environment
96
+ var viteEnv = getViteEnv();
97
+ if (viteEnv) {
98
+ return viteEnv["VITE_".concat(name)] || viteEnv["REACT_APP_".concat(name)] || defaultValue;
99
+ }
100
+ return defaultValue;
101
+ }
102
+ //# sourceMappingURL=env.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"env.js","sourceRoot":"","sources":["../../../src/utils/env.ts"],"names":[],"mappings":";AAAA,iEAAiE;AACjE,6DAA6D;;AAiC7D,sCAcC;AAKD,oCAcC;AAMD,sCAcC;AAMD,8BAaC;AAvGD,0DAA0D;AAC1D,SAAS,UAAU;IACjB,IAAI,CAAC;QACH,4DAA4D;QAC5D,IAAM,WAAW,GAAG,UAAiB,CAAC;QACtC,IAAI,OAAO,MAAM,KAAK,WAAW,IAAI,WAAW,CAAC,UAAU,EAAE,CAAC;YAC5D,OAAO,WAAW,CAAC,UAAU,CAAC;QAChC,CAAC;QAED,kEAAkE;QAClE,IAAI,OAAO,MAAM,KAAK,WAAW,EAAE,CAAC;YAClC,IAAI,CA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AAC;QAClD,OAAO,OAAO,CAAC,GAAG,CAAC,sBAAsB,IAAI,gCAAgC,CAAC;IAChF,CAAC;IAED,yBAAyB;IACzB,IAAM,OAAO,GAAG,UAAU,EAAE,CAAC;IAC7B,IAAI,OAAO,EAAE,CAAC;QACZ,OAAO,OAAO,CAAC,iBAAiB,IAAI,gCAAgC,CAAC;IACvE,CAAC;IAED,sBAAsB;IACtB,OAAO,gCAAgC,CAAC;AAC1C,CAAC;AAED;;;GAGG;AACH,SAAgB,SAAS,CAAC,IAAY,EAAE,YAAyB;IAAzB,6BAAA,EAAA,iBAAyB;IAC/D,oBAAoB;IACpB,IAAI,OAAO,OAAO,KAAK,WAAW,IAAI,OAAO,CAAC,GAAG,EAAE,CAAC;QAClD,OAAO,OAAO,CAAC,GAAG,CAAC,oBAAa,IAAI,CAAE,CAAC,IAAI,OAAO,CAAC,GAAG,CAAC,eAAQ,IAAI,CAAE,CAAC,IAAI,YAAY,CAAC;IACzF,CAAC;IAED,yBAAyB;IACzB,IAAM,OAAO,GAAG,UAAU,EAAE,CAAC;IAC7B,IAAI,OAAO,EAAE,CAAC;QACZ,OAAO,OAAO,CAAC,eAAQ,IAAI,CAAE,CAAC,IAAI,OAAO,CAAC,oBAAa,IAAI,CAAE,CAAC,IAAI,YAAY,CAAC;IACjF,CAAC;IAED,OAAO,YAAY,CAAC;AACtB,CAAC"}
@@ -0,0 +1,30 @@
1
+ import { KeywordsFilters } from "../interfaces/entity-filters/KeywordsFilters";
2
+ /**
3
+ * Helper utilities for managing keywords filters in entity lists
4
+ */
5
+ export declare const keywordHelpers: {
6
+ /**
7
+ * Add keywords to a specific filter type
8
+ */
9
+ addKeywords: (current: KeywordsFilters | null, type: "includes" | "doesNotInclude", values: string[]) => KeywordsFilters;
10
+ /**
11
+ * Remove keywords from a specific filter type
12
+ */
13
+ removeKeywords: (current: KeywordsFilters | null, type: "includes" | "doesNotInclude", values: string[]) => KeywordsFilters | null;
14
+ /**
15
+ * Remove keywords from both filter types
16
+ */
17
+ removeKeywordsFromBoth: (current: KeywordsFilters | null, values: string[]) => KeywordsFilters | null;
18
+ /**
19
+ * Reset keywords for a specific filter type
20
+ */
21
+ resetKeywords: (current: KeywordsFilters | null, type: "includes" | "doesNotInclude") => KeywordsFilters | null;
22
+ /**
23
+ * Reset all keywords filters
24
+ */
25
+ resetAllKeywords: () => null;
26
+ /**
27
+ * Replace keywords for a specific filter type
28
+ */
29
+ replaceKeywords: (current: KeywordsFilters | null, type: "includes" | "doesNotInclude", values: string[]) => KeywordsFilters | null;
30
+ };
@@ -0,0 +1,101 @@
1
+ "use strict";
2
+ var __assign = (this && this.__assign) || function () {
3
+ __assign = Object.assign || function(t) {
4
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
5
+ s = arguments[i];
6
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7
+ t[p] = s[p];
8
+ }
9
+ return t;
10
+ };
11
+ return __assign.apply(this, arguments);
12
+ };
13
+ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
14
+ if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
15
+ if (ar || !(i in from)) {
16
+ if (!ar) ar = Array.prototype.slice.call(from, 0, i);
17
+ ar[i] = from[i];
18
+ }
19
+ }
20
+ return to.concat(ar || Array.prototype.slice.call(from));
21
+ };
22
+ Object.defineProperty(exports, "__esModule", { value: true });
23
+ exports.keywordHelpers = void 0;
24
+ /**
25
+ * Helper utilities for managing keywords filters in entity lists
26
+ */
27
+ exports.keywordHelpers = {
28
+ /**
29
+ * Add keywords to a specific filter type
30
+ */
31
+ addKeywords: function (current, type, values) {
32
+ var _a;
33
+ var existing = current || {};
34
+ return __assign(__assign({}, existing), (_a = {}, _a[type] = Array.from(new Set(__spreadArray(__spreadArray([], (existing[type] || []), true), values, true))), _a));
35
+ },
36
+ /**
37
+ * Remove keywords from a specific filter type
38
+ */
39
+ removeKeywords: function (current, type, values) {
40
+ var _a;
41
+ if (!current)
42
+ return null;
43
+ var updated = __assign(__assign({}, current), (_a = {}, _a[type] = (current[type] || []).filter(function (item) { return !values.includes(item); }), _a));
44
+ // Return null if both arrays are empty
45
+ if ((!updated.includes || updated.includes.length === 0) &&
46
+ (!updated.doesNotInclude || updated.doesNotInclude.length === 0)) {
47
+ return null;
48
+ }
49
+ return updated;
50
+ },
51
+ /**
52
+ * Remove keywords from both filter types
53
+ */
54
+ removeKeywordsFromBoth: function (current, values) {
55
+ if (!current)
56
+ return null;
57
+ var updated = {
58
+ includes: (current.includes || []).filter(function (item) { return !values.includes(item); }),
59
+ doesNotInclude: (current.doesNotInclude || []).filter(function (item) { return !values.includes(item); }),
60
+ };
61
+ // Return null if both arrays are empty
62
+ if (updated.includes.length === 0 && updated.doesNotInclude.length === 0) {
63
+ return null;
64
+ }
65
+ return updated;
66
+ },
67
+ /**
68
+ * Reset keywords for a specific filter type
69
+ */
70
+ resetKeywords: function (current, type) {
71
+ var _a;
72
+ if (!current)
73
+ return null;
74
+ var updated = __assign(__assign({}, current), (_a = {}, _a[type] = undefined, _a));
75
+ // Return null if both arrays are empty/undefined
76
+ if (!updated.includes && !updated.doesNotInclude) {
77
+ return null;
78
+ }
79
+ return updated;
80
+ },
81
+ /**
82
+ * Reset all keywords filters
83
+ */
84
+ resetAllKeywords: function () {
85
+ return null;
86
+ },
87
+ /**
88
+ * Replace keywords for a specific filter type
89
+ */
90
+ replaceKeywords: function (current, type, values) {
91
+ var _a;
92
+ var existing = current || {};
93
+ var updated = __assign(__assign({}, existing), (_a = {}, _a[type] = values.length > 0 ? values : undefined, _a));
94
+ // Return null if both arrays are empty/undefined
95
+ if (!updated.includes && !updated.doesNotInclude) {
96
+ return null;
97
+ }
98
+ return updated;
99
+ },
100
+ };
101
+ //# sourceMappingURL=keywordHelpers.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"keywordHelpers.js","sourceRoot":"","sources":["../../../src/utils/keywordHelpers.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;A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}
@@ -1,6 +1,4 @@
1
1
  export { ReplykeProvider } from "./replyke-context";
2
2
  export { ReplykeStoreProvider } from "./replyke-store-context";
3
- export { EntityListProvider } from "./entity-list-context";
4
3
  export { EntityProvider } from "./entity-context";
5
- export { ListsProvider } from "./lists-context";
6
4
  export { CommentSectionProvider } from "./comment-section-context";
@@ -1,7 +1,5 @@
1
1
  export { ReplykeProvider } from "./replyke-context";
2
2
  export { ReplykeStoreProvider } from "./replyke-store-context";
3
- export { EntityListProvider } from "./entity-list-context";
4
3
  export { EntityProvider } from "./entity-context";
5
- export { ListsProvider } from "./lists-context";
6
4
  export { CommentSectionProvider } from "./comment-section-context";
7
5
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/context/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAC/D,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAC3D,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,sBAAsB,EAAE,MAAM,2BAA2B,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/context/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAC/D,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,sBAAsB,EAAE,MAAM,2BAA2B,CAAC"}
@@ -56,25 +56,25 @@ export default (function (notifications, notificationTemplates) {
56
56
  var content;
57
57
  switch (notification.type) {
58
58
  case "entity-comment":
59
- (_a = configureMessage(notification, "$userName commented on your post", "$commentContent", notificationTemplates === null || notificationTemplates === void 0 ? void 0 : notificationTemplates.entityComment), title = _a.title, content = _a.content);
59
+ (_a = configureMessage(notification, "$initiatorUsername commented on your post", "$commentContent", notificationTemplates === null || notificationTemplates === void 0 ? void 0 : notificationTemplates.entityComment), title = _a.title, content = _a.content);
60
60
  break;
61
61
  case "comment-reply":
62
- (_b = configureMessage(notification, "$userName replied to your comment", "$replyContent", notificationTemplates === null || notificationTemplates === void 0 ? void 0 : notificationTemplates.commentReply), title = _b.title, content = _b.content);
62
+ (_b = configureMessage(notification, "$initiatorUsername replied to your comment", "$replyContent", notificationTemplates === null || notificationTemplates === void 0 ? void 0 : notificationTemplates.commentReply), title = _b.title, content = _b.content);
63
63
  break;
64
64
  case "entity-mention":
65
- (_c = configureMessage(notification, "$userName mentioned you in their post", "$entityTitle", notificationTemplates === null || notificationTemplates === void 0 ? void 0 : notificationTemplates.entityMention), title = _c.title, content = _c.content);
65
+ (_c = configureMessage(notification, "$initiatorUsername mentioned you in their post", "$entityTitle", notificationTemplates === null || notificationTemplates === void 0 ? void 0 : notificationTemplates.entityMention), title = _c.title, content = _c.content);
66
66
  break;
67
67
  case "comment-mention":
68
- (_d = configureMessage(notification, "$userName mentioned you in their comment", "$commentContent", notificationTemplates === null || notificationTemplates === void 0 ? void 0 : notificationTemplates.commentMention), title = _d.title, content = _d.content);
68
+ (_d = configureMessage(notification, "$initiatorUsername mentioned you in their comment", "$commentContent", notificationTemplates === null || notificationTemplates === void 0 ? void 0 : notificationTemplates.commentMention), title = _d.title, content = _d.content);
69
69
  break;
70
70
  case "entity-upvote":
71
- (_e = configureMessage(notification, "$userName upvoted your post", "", notificationTemplates === null || notificationTemplates === void 0 ? void 0 : notificationTemplates.entityUpvote), title = _e.title, content = _e.content);
71
+ (_e = configureMessage(notification, "$initiatorUsername upvoted your post", "", notificationTemplates === null || notificationTemplates === void 0 ? void 0 : notificationTemplates.entityUpvote), title = _e.title, content = _e.content);
72
72
  break;
73
73
  case "comment-upvote":
74
- (_f = configureMessage(notification, "$userName upvoted your comment on", "$commentContent", notificationTemplates === null || notificationTemplates === void 0 ? void 0 : notificationTemplates.commentUpvote), title = _f.title, content = _f.content);
74
+ (_f = configureMessage(notification, "$initiatorUsername upvoted your comment", "$commentContent", notificationTemplates === null || notificationTemplates === void 0 ? void 0 : notificationTemplates.commentUpvote), title = _f.title, content = _f.content);
75
75
  break;
76
76
  case "new-follow":
77
- (_g = configureMessage(notification, "$userName started following you", "", notificationTemplates === null || notificationTemplates === void 0 ? void 0 : notificationTemplates.newFollow), title = _g.title, content = _g.content);
77
+ (_g = configureMessage(notification, "$initiatorUsername started following you", "", notificationTemplates === null || notificationTemplates === void 0 ? void 0 : notificationTemplates.newFollow), title = _g.title, content = _g.content);
78
78
  break;
79
79
  default:
80
80
  break;
@@ -1 +1 @@
1
- {"version":3,"file":"addNotificationsMessages.js","sourceRoot":"","sources":["../../../src/helpers/addNotificationsMessages.ts"],"names":[],"mappings":";;;;;;;;;;;AAKA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAE5C,sDAAsD;AACtD,IAAM,wBAAwB,GAAG,UAC/B,QAAgB,EAChB,SAAiC;IAEjC,OAAO,MAAM,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC,MAAM,CACrC,UAAC,MAAM,EAAE,EAAY;YAAX,GAAG,QAAA,EAAE,KAAK,QAAA;QAClB,OAAA,MAAM,CAAC,OAAO,CAAC,IAAI,MAAM,CAAC,aAAM,GAAG,CAAE,EAAE,GAAG,CAAC,EAAE,KAAK,CAAC;IAAnD,CAAmD,EACrD,QAAQ,CACT,CAAC;AACJ,CAAC,CAAC;AAEF,mDAAmD;AACnD,IAAM,uBAAuB,GAAG,UAAC,YAAiB;IAChD,OAAO;QACL,aAAa,EAAE,WAAW,CACxB;YACE,EAAE,EAAE,YAAY,CAAC,QAAQ,CAAC,WAAW;YACrC,IAAI,EAAE,YAAY,CAAC,QAAQ,CAAC,aAAa;YACzC,QAAQ,EAAE,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ACH,MAAM;YACR,KAAK,gBAAgB;gBACnB,CAAC,KAAqB,gBAAgB,CACpC,YAAY,EACZ,mCAAmC,EACnC,iBAAiB,EACjB,qBAAqB,aAArB,qBAAqB,uBAArB,qBAAqB,CAAE,aAAa,CACrC,EALE,KAAK,WAAA,EAAE,OAAO,aAAA,CAKf,CAAC;gBACH,MAAM;YACR,KAAK,YAAY;gBACf,CAAC,KAAqB,gBAAgB,CACpC,YAAY,EACZ,iCAAiC,EACjC,EAAE,EACF,qBAAqB,aAArB,qBAAqB,uBAArB,qBAAqB,CAAE,SAAS,CACjC,EALE,KAAK,WAAA,EAAE,OAAO,aAAA,CAKf,CAAC;gBACH,MAAM;YACR;gBACE,MAAM;QACV,CAAC;QAED,OAAO,sBACF,YAAY,KACf,KAAK,OAAA,EACL,OAAO,SAAA,GACkB,CAAC;IAC9B,CAAC,CAAC,CAAC;AACL,CAAC,EAAC"}
1
+ {"version":3,"file":"addNotificationsMessages.js","sourceRoot":"","sources":["../../../src/helpers/addNotificationsMessages.ts"],"names":[],"mappings":";;;;;;;;;;;AAKA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAE5C,sDAAsD;AACtD,IAAM,wBAAwB,GAAG,UAC/B,QAAgB,EAChB,SAAiC;IAEjC,OAAO,MAAM,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC,MAAM,CACrC,UAAC,MAAM,EAAE,EAAY;YAAX,GAAG,QAAA,EAAE,KAAK,QAAA;QAClB,OAAA,MAAM,CAAC,OAAO,CAAC,IAAI,MAAM,CAAC,aAAM,GAAG,CAAE,EAAE,GAAG,CAAC,EAAE,KAAK,CAAC;IAAnD,CAAmD,EACrD,QAAQ,CACT,CAAC;AACJ,CAAC,CAAC;AAEF,mDAAmD;AACnD,IAAM,uBAAuB,GAAG,UAAC,YAAiB;IAChD,OAAO;QACL,aAAa,EAAE,WAAW,CACxB;YACE,EAAE,EAAE,YAAY,CAAC,QAAQ,CAAC,WAAW;YACrC,IAAI,EA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ACpC,EALE,KAAK,WAAA,EAAE,OAAO,aAAA,CAKf,CAAC;gBACH,MAAM;YACR,KAAK,gBAAgB;gBACnB,CAAC,KAAqB,gBAAgB,CACpC,YAAY,EACZ,yCAAyC,EACzC,iBAAiB,EACjB,qBAAqB,aAArB,qBAAqB,uBAArB,qBAAqB,CAAE,aAAa,CACrC,EALE,KAAK,WAAA,EAAE,OAAO,aAAA,CAKf,CAAC;gBACH,MAAM;YACR,KAAK,YAAY;gBACf,CAAC,KAAqB,gBAAgB,CACpC,YAAY,EACZ,0CAA0C,EAC1C,EAAE,EACF,qBAAqB,aAArB,qBAAqB,uBAArB,qBAAqB,CAAE,SAAS,CACjC,EALE,KAAK,WAAA,EAAE,OAAO,aAAA,CAKf,CAAC;gBACH,MAAM;YACR;gBACE,MAAM;QACV,CAAC;QAED,OAAO,sBACF,YAAY,KACf,KAAK,OAAA,EACL,OAAO,SAAA,GACkB,CAAC;IAC9B,CAAC,CAAC,CAAC;AACL,CAAC,EAAC"}
@@ -1,4 +1,3 @@
1
1
  export { default as useAppNotificationsRedux } from "./useAppNotificationsRedux";
2
- export { default as useAppNotificationsDataRedux } from "./useAppNotificationsDataRedux";
3
2
  export { default as useAppNotificationsActionsRedux } from "./useAppNotificationsActionsRedux";
4
- export type { UseAppNotificationsDataProps, UseAppNotificationsDataValues, } from "./useAppNotificationsDataRedux";
3
+ export type { UseAppNotificationsReduxProps, UseAppNotificationsReduxValues, } from "./useAppNotificationsRedux";
@@ -1,5 +1,4 @@
1
1
  // Export Redux-powered app notifications hooks
2
2
  export { default as useAppNotificationsRedux } from "./useAppNotificationsRedux";
3
- export { default as useAppNotificationsDataRedux } from "./useAppNotificationsDataRedux";
4
3
  export { default as useAppNotificationsActionsRedux } from "./useAppNotificationsActionsRedux";
5
4
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/hooks/app-notifications-redux/index.ts"],"names":[],"mappings":"AAAA,+CAA+C;AAC/C,OAAO,EAAE,OAAO,IAAI,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;AACjF,OAAO,EAAE,OAAO,IAAI,4BAA4B,EAAE,MAAM,gCAAgC,CAAC;AACzF,OAAO,EAAE,OAAO,IAAI,+BAA+B,EAAE,MAAM,mCAAmC,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/hooks/app-notifications-redux/index.ts"],"names":[],"mappings":"AAAA,+CAA+C;AAC/C,OAAO,EAAE,OAAO,IAAI,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;AACjF,OAAO,EAAE,OAAO,IAAI,+BAA+B,EAAE,MAAM,mCAAmC,CAAC"}
@@ -1,7 +1,21 @@
1
- import type { UseAppNotificationsDataValues } from "./useAppNotificationsDataRedux";
1
+ import { NotificationTemplates, UnifiedAppNotification } from "../../interfaces/models/AppNotification";
2
+ export interface UseAppNotificationsReduxProps {
3
+ limit?: number;
4
+ notificationTemplates?: Partial<NotificationTemplates>;
5
+ }
6
+ export interface UseAppNotificationsReduxValues {
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
+ }
2
16
  /**
3
- * Redux-powered hook that provides the same interface as useAppNotifications()
4
- * Returns the current app notifications state and actions
17
+ * Redux-powered hook that provides the exact same interface as useAppNotificationsData()
18
+ * This is a drop-in replacement for the Context-based hook
5
19
  */
6
- export declare function useAppNotificationsRedux(): Partial<UseAppNotificationsDataValues>;
20
+ declare function useAppNotificationsRedux({ limit, notificationTemplates, }?: UseAppNotificationsReduxProps): UseAppNotificationsReduxValues;
7
21
  export default useAppNotificationsRedux;
@@ -1,12 +1,20 @@
1
- import { useSelector } from "react-redux";
2
- import { selectAppNotifications, selectUnreadCount, selectAppNotificationsLoading, selectAppNotificationsHasMore, } from "../../store/slices/appNotificationsSlice";
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";
3
4
  import { useAppNotificationsActionsRedux } from "./useAppNotificationsActionsRedux";
5
+ import useProject from "../projects/useProject";
6
+ import { useUserRedux } from "../auth-redux";
4
7
  /**
5
- * Redux-powered hook that provides the same interface as useAppNotifications()
6
- * Returns the current app notifications state and actions
8
+ * Redux-powered hook that provides the exact same interface as useAppNotificationsData()
9
+ * This is a drop-in replacement for the Context-based hook
7
10
  */
8
- export function useAppNotificationsRedux() {
9
- // Select data from Redux store
11
+ function useAppNotificationsRedux(_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
10
18
  var appNotifications = useSelector(function (state) {
11
19
  return selectAppNotifications(state);
12
20
  });
@@ -19,17 +27,77 @@ export function useAppNotificationsRedux() {
19
27
  var hasMore = useSelector(function (state) {
20
28
  return selectAppNotificationsHasMore(state);
21
29
  });
30
+ var currentPage = useSelector(function (state) {
31
+ return selectAppNotificationsPage(state);
32
+ });
33
+ var currentProjectId = useSelector(function (state) {
34
+ return selectCurrentProjectId(state);
35
+ });
22
36
  // Get actions
23
- var _a = useAppNotificationsActionsRedux(), loadMore = _a.loadMore, markNotificationAsRead = _a.markNotificationAsRead, resetAppNotifications = _a.resetAppNotifications;
24
- return {
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 ({
25
83
  appNotifications: appNotifications,
26
84
  unreadAppNotificationsCount: unreadAppNotificationsCount,
27
85
  loading: loading,
28
86
  hasMore: hasMore,
29
87
  loadMore: loadMore,
30
88
  markNotificationAsRead: markNotificationAsRead,
89
+ markAllNotificationsAsRead: markAllNotificationsAsRead,
31
90
  resetAppNotifications: resetAppNotifications,
32
- };
91
+ }); }, [
92
+ appNotifications,
93
+ unreadAppNotificationsCount,
94
+ loading,
95
+ hasMore,
96
+ loadMore,
97
+ markNotificationAsRead,
98
+ markAllNotificationsAsRead,
99
+ resetAppNotifications,
100
+ ]);
33
101
  }
34
102
  export default useAppNotificationsRedux;
35
103
  //# sourceMappingURL=useAppNotificationsRedux.js.map