@selfcommunity/react-core 0.4.0-alpha.11 → 0.4.0-alpha.111

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 (565) hide show
  1. package/lib/cjs/components/provider/SCAlertMessagesProvider/index.d.ts +0 -1
  2. package/lib/cjs/components/provider/SCAlertMessagesProvider/index.js +2 -25
  3. package/lib/cjs/components/provider/SCContextProvider/index.d.ts +0 -1
  4. package/lib/cjs/components/provider/SCContextProvider/index.js +3 -29
  5. package/lib/cjs/components/provider/SCLocaleProvider/index.d.ts +0 -1
  6. package/lib/cjs/components/provider/SCLocaleProvider/index.js +2 -25
  7. package/lib/cjs/components/provider/SCNotificationProvider/index.d.ts +0 -1
  8. package/lib/cjs/components/provider/SCNotificationProvider/index.js +7 -31
  9. package/lib/cjs/components/provider/SCPreferencesProvider/index.d.ts +0 -1
  10. package/lib/cjs/components/provider/SCPreferencesProvider/index.js +2 -25
  11. package/lib/cjs/components/provider/SCRoutingProvider/index.d.ts +0 -1
  12. package/lib/cjs/components/provider/SCRoutingProvider/index.js +4 -27
  13. package/lib/cjs/components/provider/SCThemeProvider/index.d.ts +0 -1
  14. package/lib/cjs/components/provider/SCThemeProvider/index.js +6 -32
  15. package/lib/cjs/components/provider/SCUserProvider/index.d.ts +0 -1
  16. package/lib/cjs/components/provider/SCUserProvider/index.js +32 -49
  17. package/lib/cjs/components/provider/SCVoteProvider/index.d.ts +37 -0
  18. package/lib/cjs/components/provider/SCVoteProvider/index.js +112 -0
  19. package/lib/cjs/components/router/index.d.ts +0 -1
  20. package/lib/cjs/components/router/index.js +5 -39
  21. package/lib/cjs/constants/Actions.d.ts +0 -1
  22. package/lib/cjs/constants/Actions.js +0 -1
  23. package/lib/cjs/constants/Cache.d.ts +23 -15
  24. package/lib/cjs/constants/Cache.js +28 -17
  25. package/lib/cjs/constants/ContextProviders.d.ts +0 -1
  26. package/lib/cjs/constants/ContextProviders.js +12 -13
  27. package/lib/cjs/constants/Device.d.ts +22 -1
  28. package/lib/cjs/constants/Device.js +27 -2
  29. package/lib/cjs/constants/Errors.d.ts +0 -1
  30. package/lib/cjs/constants/Errors.js +0 -1
  31. package/lib/cjs/constants/Features.d.ts +0 -43
  32. package/lib/cjs/constants/Features.js +1 -44
  33. package/lib/cjs/constants/Locale.d.ts +0 -1
  34. package/lib/cjs/constants/Locale.js +0 -1
  35. package/lib/cjs/constants/Notification.d.ts +0 -1
  36. package/lib/cjs/constants/Notification.js +0 -1
  37. package/lib/cjs/constants/Notifications.d.ts +3 -1
  38. package/lib/cjs/constants/Notifications.js +7 -2
  39. package/lib/cjs/constants/Preferences.d.ts +13 -2
  40. package/lib/cjs/constants/Preferences.js +21 -5
  41. package/lib/cjs/constants/Routes.d.ts +3 -1
  42. package/lib/cjs/constants/Routes.js +8 -3
  43. package/lib/cjs/constants/Session.d.ts +0 -1
  44. package/lib/cjs/constants/Session.js +0 -1
  45. package/lib/cjs/constants/Theme.d.ts +0 -1
  46. package/lib/cjs/constants/Theme.js +0 -1
  47. package/lib/cjs/constants/Vote.d.ts +6 -0
  48. package/lib/cjs/constants/Vote.js +9 -0
  49. package/lib/cjs/constants/WebSocket.d.ts +0 -1
  50. package/lib/cjs/constants/WebSocket.js +0 -1
  51. package/lib/cjs/hooks/useSCAuth.d.ts +0 -1
  52. package/lib/cjs/hooks/useSCAuth.js +34 -51
  53. package/lib/cjs/hooks/useSCBlockedUsersManager.d.ts +30 -0
  54. package/lib/cjs/hooks/useSCBlockedUsersManager.js +108 -0
  55. package/lib/cjs/hooks/useSCCachingManager.d.ts +5 -5
  56. package/lib/cjs/hooks/useSCCachingManager.js +21 -6
  57. package/lib/cjs/hooks/useSCConnectionsManager.d.ts +8 -5
  58. package/lib/cjs/hooks/useSCConnectionsManager.js +141 -91
  59. package/lib/cjs/hooks/useSCFetchAddressingTagList.d.ts +0 -1
  60. package/lib/cjs/hooks/useSCFetchAddressingTagList.js +2 -26
  61. package/lib/cjs/hooks/useSCFetchBroadcastMessages.d.ts +30 -0
  62. package/lib/cjs/hooks/useSCFetchBroadcastMessages.js +91 -0
  63. package/lib/cjs/hooks/useSCFetchCategories.d.ts +0 -1
  64. package/lib/cjs/hooks/useSCFetchCategories.js +2 -11
  65. package/lib/cjs/hooks/useSCFetchCategory.d.ts +0 -1
  66. package/lib/cjs/hooks/useSCFetchCategory.js +13 -12
  67. package/lib/cjs/hooks/useSCFetchCommentObject.d.ts +0 -1
  68. package/lib/cjs/hooks/useSCFetchCommentObject.js +1 -2
  69. package/lib/cjs/hooks/useSCFetchCommentObjects.d.ts +0 -1
  70. package/lib/cjs/hooks/useSCFetchCommentObjects.js +2 -5
  71. package/lib/cjs/hooks/useSCFetchContributors.d.ts +0 -1
  72. package/lib/cjs/hooks/useSCFetchContributors.js +2 -5
  73. package/lib/cjs/hooks/useSCFetchCustomAdv.d.ts +0 -1
  74. package/lib/cjs/hooks/useSCFetchCustomAdv.js +2 -5
  75. package/lib/cjs/hooks/useSCFetchFeed.d.ts +0 -1
  76. package/lib/cjs/hooks/useSCFetchFeed.js +3 -6
  77. package/lib/cjs/hooks/useSCFetchFeedObject.d.ts +0 -1
  78. package/lib/cjs/hooks/useSCFetchFeedObject.js +0 -1
  79. package/lib/cjs/hooks/useSCFetchIncubator.d.ts +4 -2
  80. package/lib/cjs/hooks/useSCFetchIncubator.js +28 -8
  81. package/lib/cjs/hooks/useSCFetchPrivateMessageSnippets.d.ts +0 -1
  82. package/lib/cjs/hooks/useSCFetchPrivateMessageSnippets.js +16 -26
  83. package/lib/cjs/hooks/useSCFetchReactions.d.ts +0 -1
  84. package/lib/cjs/hooks/useSCFetchReactions.js +3 -50
  85. package/lib/cjs/hooks/useSCFetchTag.d.ts +0 -1
  86. package/lib/cjs/hooks/useSCFetchTag.js +0 -1
  87. package/lib/cjs/hooks/useSCFetchUser.d.ts +2 -1
  88. package/lib/cjs/hooks/useSCFetchUser.js +33 -8
  89. package/lib/cjs/hooks/useSCFetchUserBlockedBy.d.ts +17 -0
  90. package/lib/cjs/hooks/useSCFetchUserBlockedBy.js +83 -0
  91. package/lib/cjs/hooks/useSCFetchUserProviders.d.ts +0 -1
  92. package/lib/cjs/hooks/useSCFetchUserProviders.js +0 -1
  93. package/lib/cjs/hooks/useSCFetchVote.d.ts +2 -3
  94. package/lib/cjs/hooks/useSCFetchVote.js +58 -77
  95. package/lib/cjs/hooks/useSCFollowedCategoriesManager.d.ts +4 -5
  96. package/lib/cjs/hooks/useSCFollowedCategoriesManager.js +26 -17
  97. package/lib/cjs/hooks/useSCFollowedManager.d.ts +4 -5
  98. package/lib/cjs/hooks/useSCFollowedManager.js +38 -24
  99. package/lib/cjs/hooks/useSCFollowersManager.d.ts +4 -5
  100. package/lib/cjs/hooks/useSCFollowersManager.js +7 -10
  101. package/lib/cjs/hooks/useSCMediaClick.d.ts +0 -1
  102. package/lib/cjs/hooks/useSCMediaClick.js +0 -1
  103. package/lib/cjs/hooks/useSCMobileNativePushMessaging.d.ts +19 -0
  104. package/lib/cjs/hooks/useSCMobileNativePushMessaging.js +143 -0
  105. package/lib/cjs/hooks/useSCSettingsManager.d.ts +0 -1
  106. package/lib/cjs/hooks/useSCSettingsManager.js +0 -1
  107. package/lib/cjs/hooks/useSCSubscribedIncubatorsManager.d.ts +12 -3
  108. package/lib/cjs/hooks/useSCSubscribedIncubatorsManager.js +39 -32
  109. package/lib/cjs/hooks/useSCUserIsBlocked.d.ts +18 -0
  110. package/lib/cjs/hooks/useSCUserIsBlocked.js +33 -0
  111. package/lib/cjs/hooks/useSCWebPushMessaging.d.ts +12 -2
  112. package/lib/cjs/hooks/useSCWebPushMessaging.js +188 -106
  113. package/lib/cjs/hooks/useSCWebSocket.d.ts +1 -2
  114. package/lib/cjs/hooks/useSCWebSocket.js +3 -6
  115. package/lib/cjs/index.d.ts +4 -2
  116. package/lib/cjs/index.js +41 -61
  117. package/lib/cjs/themes/theme.d.ts +0 -1
  118. package/lib/cjs/themes/theme.js +4 -80
  119. package/lib/cjs/types/context.d.ts +96 -6
  120. package/lib/cjs/types/context.js +0 -1
  121. package/lib/cjs/types/index.d.ts +2 -3
  122. package/lib/cjs/types/index.js +0 -1
  123. package/lib/cjs/types/theme.d.ts +1 -2
  124. package/lib/cjs/types/theme.js +0 -1
  125. package/lib/cjs/utils/errors.d.ts +5 -6
  126. package/lib/cjs/utils/errors.js +13 -34
  127. package/lib/cjs/utils/hooks/index.d.ts +0 -1
  128. package/lib/cjs/utils/hooks/index.js +6 -9
  129. package/lib/cjs/utils/hooks/useEffectOnce.d.ts +0 -1
  130. package/lib/cjs/utils/hooks/useEffectOnce.js +0 -1
  131. package/lib/cjs/utils/hooks/useIsComponentMountedRef.d.ts +0 -1
  132. package/lib/cjs/utils/hooks/useIsComponentMountedRef.js +0 -1
  133. package/lib/cjs/utils/hooks/useIsomorphicLayoutEffect.d.ts +0 -1
  134. package/lib/cjs/utils/hooks/useIsomorphicLayoutEffect.js +0 -1
  135. package/lib/cjs/utils/hooks/useNoInitialEffect.d.ts +0 -1
  136. package/lib/cjs/utils/hooks/useNoInitialEffect.js +0 -1
  137. package/lib/cjs/utils/hooks/usePreviousValue.d.ts +0 -1
  138. package/lib/cjs/utils/hooks/usePreviousValue.js +0 -1
  139. package/lib/cjs/utils/locale.d.ts +0 -1
  140. package/lib/cjs/utils/locale.js +2 -5
  141. package/lib/cjs/utils/notification.d.ts +8 -0
  142. package/lib/cjs/utils/notification.js +20 -0
  143. package/lib/cjs/utils/pagination.d.ts +0 -1
  144. package/lib/cjs/utils/pagination.js +0 -1
  145. package/lib/cjs/utils/user.d.ts +0 -1
  146. package/lib/cjs/utils/user.js +0 -1
  147. package/lib/cjs/utils/validator.d.ts +49 -3
  148. package/lib/cjs/utils/validator.js +144 -41
  149. package/lib/esm/components/provider/SCAlertMessagesProvider/index.d.ts +0 -1
  150. package/lib/esm/components/provider/SCAlertMessagesProvider/index.js +0 -1
  151. package/lib/esm/components/provider/SCContextProvider/index.d.ts +0 -1
  152. package/lib/esm/components/provider/SCContextProvider/index.js +0 -1
  153. package/lib/esm/components/provider/SCLocaleProvider/index.d.ts +0 -1
  154. package/lib/esm/components/provider/SCLocaleProvider/index.js +0 -1
  155. package/lib/esm/components/provider/SCNotificationProvider/index.d.ts +0 -1
  156. package/lib/esm/components/provider/SCNotificationProvider/index.js +3 -2
  157. package/lib/esm/components/provider/SCPreferencesProvider/index.d.ts +0 -1
  158. package/lib/esm/components/provider/SCPreferencesProvider/index.js +0 -1
  159. package/lib/esm/components/provider/SCRoutingProvider/index.d.ts +0 -1
  160. package/lib/esm/components/provider/SCRoutingProvider/index.js +1 -2
  161. package/lib/esm/components/provider/SCThemeProvider/index.d.ts +0 -1
  162. package/lib/esm/components/provider/SCThemeProvider/index.js +1 -2
  163. package/lib/esm/components/provider/SCUserProvider/index.d.ts +0 -1
  164. package/lib/esm/components/provider/SCUserProvider/index.js +22 -14
  165. package/lib/esm/components/provider/SCVoteProvider/index.d.ts +37 -0
  166. package/lib/esm/components/provider/SCVoteProvider/index.js +106 -0
  167. package/lib/esm/components/router/index.d.ts +0 -1
  168. package/lib/esm/components/router/index.js +2 -13
  169. package/lib/esm/constants/Actions.d.ts +0 -1
  170. package/lib/esm/constants/Actions.js +0 -1
  171. package/lib/esm/constants/Cache.d.ts +23 -15
  172. package/lib/esm/constants/Cache.js +23 -15
  173. package/lib/esm/constants/ContextProviders.d.ts +0 -1
  174. package/lib/esm/constants/ContextProviders.js +4 -3
  175. package/lib/esm/constants/Device.d.ts +22 -1
  176. package/lib/esm/constants/Device.js +26 -1
  177. package/lib/esm/constants/Errors.d.ts +0 -1
  178. package/lib/esm/constants/Errors.js +0 -1
  179. package/lib/esm/constants/Features.d.ts +0 -43
  180. package/lib/esm/constants/Features.js +0 -43
  181. package/lib/esm/constants/Locale.d.ts +0 -1
  182. package/lib/esm/constants/Locale.js +0 -1
  183. package/lib/esm/constants/Notification.d.ts +0 -1
  184. package/lib/esm/constants/Notification.js +0 -1
  185. package/lib/esm/constants/Notifications.d.ts +3 -1
  186. package/lib/esm/constants/Notifications.js +6 -1
  187. package/lib/esm/constants/Preferences.d.ts +13 -2
  188. package/lib/esm/constants/Preferences.js +18 -3
  189. package/lib/esm/constants/Routes.d.ts +3 -1
  190. package/lib/esm/constants/Routes.js +7 -2
  191. package/lib/esm/constants/Session.d.ts +0 -1
  192. package/lib/esm/constants/Session.js +0 -1
  193. package/lib/esm/constants/Theme.d.ts +0 -1
  194. package/lib/esm/constants/Theme.js +0 -1
  195. package/lib/esm/constants/Vote.d.ts +6 -0
  196. package/lib/esm/constants/Vote.js +6 -0
  197. package/lib/esm/constants/WebSocket.d.ts +0 -1
  198. package/lib/esm/constants/WebSocket.js +0 -1
  199. package/lib/esm/hooks/useSCAuth.d.ts +0 -1
  200. package/lib/esm/hooks/useSCAuth.js +31 -22
  201. package/lib/esm/hooks/useSCBlockedUsersManager.d.ts +30 -0
  202. package/lib/esm/hooks/useSCBlockedUsersManager.js +105 -0
  203. package/lib/esm/hooks/useSCCachingManager.d.ts +5 -5
  204. package/lib/esm/hooks/useSCCachingManager.js +21 -6
  205. package/lib/esm/hooks/useSCConnectionsManager.d.ts +8 -5
  206. package/lib/esm/hooks/useSCConnectionsManager.js +138 -86
  207. package/lib/esm/hooks/useSCFetchAddressingTagList.d.ts +0 -1
  208. package/lib/esm/hooks/useSCFetchAddressingTagList.js +3 -4
  209. package/lib/esm/hooks/useSCFetchBroadcastMessages.d.ts +30 -0
  210. package/lib/esm/hooks/useSCFetchBroadcastMessages.js +89 -0
  211. package/lib/esm/hooks/useSCFetchCategories.d.ts +0 -1
  212. package/lib/esm/hooks/useSCFetchCategories.js +1 -10
  213. package/lib/esm/hooks/useSCFetchCategory.d.ts +0 -1
  214. package/lib/esm/hooks/useSCFetchCategory.js +15 -14
  215. package/lib/esm/hooks/useSCFetchCommentObject.d.ts +0 -1
  216. package/lib/esm/hooks/useSCFetchCommentObject.js +1 -2
  217. package/lib/esm/hooks/useSCFetchCommentObjects.d.ts +0 -1
  218. package/lib/esm/hooks/useSCFetchCommentObjects.js +0 -1
  219. package/lib/esm/hooks/useSCFetchContributors.d.ts +0 -1
  220. package/lib/esm/hooks/useSCFetchContributors.js +0 -1
  221. package/lib/esm/hooks/useSCFetchCustomAdv.d.ts +0 -1
  222. package/lib/esm/hooks/useSCFetchCustomAdv.js +0 -1
  223. package/lib/esm/hooks/useSCFetchFeed.d.ts +0 -1
  224. package/lib/esm/hooks/useSCFetchFeed.js +1 -2
  225. package/lib/esm/hooks/useSCFetchFeedObject.d.ts +0 -1
  226. package/lib/esm/hooks/useSCFetchFeedObject.js +0 -1
  227. package/lib/esm/hooks/useSCFetchIncubator.d.ts +4 -2
  228. package/lib/esm/hooks/useSCFetchIncubator.js +29 -9
  229. package/lib/esm/hooks/useSCFetchPrivateMessageSnippets.d.ts +0 -1
  230. package/lib/esm/hooks/useSCFetchPrivateMessageSnippets.js +15 -25
  231. package/lib/esm/hooks/useSCFetchReactions.d.ts +0 -1
  232. package/lib/esm/hooks/useSCFetchReactions.js +5 -29
  233. package/lib/esm/hooks/useSCFetchTag.d.ts +0 -1
  234. package/lib/esm/hooks/useSCFetchTag.js +0 -1
  235. package/lib/esm/hooks/useSCFetchUser.d.ts +2 -1
  236. package/lib/esm/hooks/useSCFetchUser.js +34 -9
  237. package/lib/esm/hooks/useSCFetchUserBlockedBy.d.ts +17 -0
  238. package/lib/esm/hooks/useSCFetchUserBlockedBy.js +80 -0
  239. package/lib/esm/hooks/useSCFetchUserProviders.d.ts +0 -1
  240. package/lib/esm/hooks/useSCFetchUserProviders.js +0 -1
  241. package/lib/esm/hooks/useSCFetchVote.d.ts +2 -3
  242. package/lib/esm/hooks/useSCFetchVote.js +56 -73
  243. package/lib/esm/hooks/useSCFollowedCategoriesManager.d.ts +4 -5
  244. package/lib/esm/hooks/useSCFollowedCategoriesManager.js +25 -14
  245. package/lib/esm/hooks/useSCFollowedManager.d.ts +4 -5
  246. package/lib/esm/hooks/useSCFollowedManager.js +37 -21
  247. package/lib/esm/hooks/useSCFollowersManager.d.ts +4 -5
  248. package/lib/esm/hooks/useSCFollowersManager.js +4 -5
  249. package/lib/esm/hooks/useSCMediaClick.d.ts +0 -1
  250. package/lib/esm/hooks/useSCMediaClick.js +0 -1
  251. package/lib/esm/hooks/useSCMobileNativePushMessaging.d.ts +19 -0
  252. package/lib/esm/hooks/useSCMobileNativePushMessaging.js +140 -0
  253. package/lib/esm/hooks/useSCSettingsManager.d.ts +0 -1
  254. package/lib/esm/hooks/useSCSettingsManager.js +0 -1
  255. package/lib/esm/hooks/useSCSubscribedIncubatorsManager.d.ts +12 -3
  256. package/lib/esm/hooks/useSCSubscribedIncubatorsManager.js +38 -29
  257. package/lib/esm/hooks/useSCUserIsBlocked.d.ts +18 -0
  258. package/lib/esm/hooks/useSCUserIsBlocked.js +29 -0
  259. package/lib/esm/hooks/useSCWebPushMessaging.d.ts +12 -2
  260. package/lib/esm/hooks/useSCWebPushMessaging.js +185 -82
  261. package/lib/esm/hooks/useSCWebSocket.d.ts +1 -2
  262. package/lib/esm/hooks/useSCWebSocket.js +1 -2
  263. package/lib/esm/index.d.ts +4 -2
  264. package/lib/esm/index.js +4 -2
  265. package/lib/esm/themes/theme.d.ts +0 -1
  266. package/lib/esm/themes/theme.js +1 -75
  267. package/lib/esm/types/context.d.ts +96 -6
  268. package/lib/esm/types/context.js +0 -1
  269. package/lib/esm/types/index.d.ts +2 -3
  270. package/lib/esm/types/index.js +0 -1
  271. package/lib/esm/types/theme.d.ts +1 -2
  272. package/lib/esm/types/theme.js +0 -1
  273. package/lib/esm/utils/errors.d.ts +5 -6
  274. package/lib/esm/utils/errors.js +10 -8
  275. package/lib/esm/utils/hooks/index.d.ts +0 -1
  276. package/lib/esm/utils/hooks/index.js +0 -1
  277. package/lib/esm/utils/hooks/useEffectOnce.d.ts +0 -1
  278. package/lib/esm/utils/hooks/useEffectOnce.js +0 -1
  279. package/lib/esm/utils/hooks/useIsComponentMountedRef.d.ts +0 -1
  280. package/lib/esm/utils/hooks/useIsComponentMountedRef.js +0 -1
  281. package/lib/esm/utils/hooks/useIsomorphicLayoutEffect.d.ts +0 -1
  282. package/lib/esm/utils/hooks/useIsomorphicLayoutEffect.js +0 -1
  283. package/lib/esm/utils/hooks/useNoInitialEffect.d.ts +0 -1
  284. package/lib/esm/utils/hooks/useNoInitialEffect.js +0 -1
  285. package/lib/esm/utils/hooks/usePreviousValue.d.ts +0 -1
  286. package/lib/esm/utils/hooks/usePreviousValue.js +0 -1
  287. package/lib/esm/utils/locale.d.ts +0 -1
  288. package/lib/esm/utils/locale.js +0 -1
  289. package/lib/esm/utils/notification.d.ts +8 -0
  290. package/lib/esm/utils/notification.js +15 -0
  291. package/lib/esm/utils/pagination.d.ts +0 -1
  292. package/lib/esm/utils/pagination.js +0 -1
  293. package/lib/esm/utils/user.d.ts +0 -1
  294. package/lib/esm/utils/user.js +0 -1
  295. package/lib/esm/utils/validator.d.ts +49 -3
  296. package/lib/esm/utils/validator.js +129 -8
  297. package/lib/umd/251.js +2 -0
  298. package/lib/umd/251.js.LICENSE.txt +1 -0
  299. package/lib/umd/react-core.js +1 -1
  300. package/lib/umd/react-core.js.LICENSE.txt +1 -1
  301. package/package.json +25 -24
  302. package/lib/cjs/components/provider/SCAlertMessagesProvider/index.d.ts.map +0 -1
  303. package/lib/cjs/components/provider/SCAlertMessagesProvider/index.js.map +0 -1
  304. package/lib/cjs/components/provider/SCContextProvider/index.d.ts.map +0 -1
  305. package/lib/cjs/components/provider/SCContextProvider/index.js.map +0 -1
  306. package/lib/cjs/components/provider/SCLocaleProvider/index.d.ts.map +0 -1
  307. package/lib/cjs/components/provider/SCLocaleProvider/index.js.map +0 -1
  308. package/lib/cjs/components/provider/SCNotificationProvider/index.d.ts.map +0 -1
  309. package/lib/cjs/components/provider/SCNotificationProvider/index.js.map +0 -1
  310. package/lib/cjs/components/provider/SCPreferencesProvider/index.d.ts.map +0 -1
  311. package/lib/cjs/components/provider/SCPreferencesProvider/index.js.map +0 -1
  312. package/lib/cjs/components/provider/SCRoutingProvider/index.d.ts.map +0 -1
  313. package/lib/cjs/components/provider/SCRoutingProvider/index.js.map +0 -1
  314. package/lib/cjs/components/provider/SCThemeProvider/index.d.ts.map +0 -1
  315. package/lib/cjs/components/provider/SCThemeProvider/index.js.map +0 -1
  316. package/lib/cjs/components/provider/SCUserProvider/index.d.ts.map +0 -1
  317. package/lib/cjs/components/provider/SCUserProvider/index.js.map +0 -1
  318. package/lib/cjs/components/router/index.d.ts.map +0 -1
  319. package/lib/cjs/components/router/index.js.map +0 -1
  320. package/lib/cjs/constants/Actions.d.ts.map +0 -1
  321. package/lib/cjs/constants/Actions.js.map +0 -1
  322. package/lib/cjs/constants/Cache.d.ts.map +0 -1
  323. package/lib/cjs/constants/Cache.js.map +0 -1
  324. package/lib/cjs/constants/ContextProviders.d.ts.map +0 -1
  325. package/lib/cjs/constants/ContextProviders.js.map +0 -1
  326. package/lib/cjs/constants/Device.d.ts.map +0 -1
  327. package/lib/cjs/constants/Device.js.map +0 -1
  328. package/lib/cjs/constants/Errors.d.ts.map +0 -1
  329. package/lib/cjs/constants/Errors.js.map +0 -1
  330. package/lib/cjs/constants/Features.d.ts.map +0 -1
  331. package/lib/cjs/constants/Features.js.map +0 -1
  332. package/lib/cjs/constants/Locale.d.ts.map +0 -1
  333. package/lib/cjs/constants/Locale.js.map +0 -1
  334. package/lib/cjs/constants/Notification.d.ts.map +0 -1
  335. package/lib/cjs/constants/Notification.js.map +0 -1
  336. package/lib/cjs/constants/Notifications.d.ts.map +0 -1
  337. package/lib/cjs/constants/Notifications.js.map +0 -1
  338. package/lib/cjs/constants/Preferences.d.ts.map +0 -1
  339. package/lib/cjs/constants/Preferences.js.map +0 -1
  340. package/lib/cjs/constants/Routes.d.ts.map +0 -1
  341. package/lib/cjs/constants/Routes.js.map +0 -1
  342. package/lib/cjs/constants/Session.d.ts.map +0 -1
  343. package/lib/cjs/constants/Session.js.map +0 -1
  344. package/lib/cjs/constants/Theme.d.ts.map +0 -1
  345. package/lib/cjs/constants/Theme.js.map +0 -1
  346. package/lib/cjs/constants/WebSocket.d.ts.map +0 -1
  347. package/lib/cjs/constants/WebSocket.js.map +0 -1
  348. package/lib/cjs/hooks/useSCAuth.d.ts.map +0 -1
  349. package/lib/cjs/hooks/useSCAuth.js.map +0 -1
  350. package/lib/cjs/hooks/useSCCachingManager.d.ts.map +0 -1
  351. package/lib/cjs/hooks/useSCCachingManager.js.map +0 -1
  352. package/lib/cjs/hooks/useSCConnectionsManager.d.ts.map +0 -1
  353. package/lib/cjs/hooks/useSCConnectionsManager.js.map +0 -1
  354. package/lib/cjs/hooks/useSCFetchAddressingTagList.d.ts.map +0 -1
  355. package/lib/cjs/hooks/useSCFetchAddressingTagList.js.map +0 -1
  356. package/lib/cjs/hooks/useSCFetchCategories.d.ts.map +0 -1
  357. package/lib/cjs/hooks/useSCFetchCategories.js.map +0 -1
  358. package/lib/cjs/hooks/useSCFetchCategory.d.ts.map +0 -1
  359. package/lib/cjs/hooks/useSCFetchCategory.js.map +0 -1
  360. package/lib/cjs/hooks/useSCFetchCommentObject.d.ts.map +0 -1
  361. package/lib/cjs/hooks/useSCFetchCommentObject.js.map +0 -1
  362. package/lib/cjs/hooks/useSCFetchCommentObjects.d.ts.map +0 -1
  363. package/lib/cjs/hooks/useSCFetchCommentObjects.js.map +0 -1
  364. package/lib/cjs/hooks/useSCFetchContributors.d.ts.map +0 -1
  365. package/lib/cjs/hooks/useSCFetchContributors.js.map +0 -1
  366. package/lib/cjs/hooks/useSCFetchCustomAdv.d.ts.map +0 -1
  367. package/lib/cjs/hooks/useSCFetchCustomAdv.js.map +0 -1
  368. package/lib/cjs/hooks/useSCFetchFeed.d.ts.map +0 -1
  369. package/lib/cjs/hooks/useSCFetchFeed.js.map +0 -1
  370. package/lib/cjs/hooks/useSCFetchFeedObject.d.ts.map +0 -1
  371. package/lib/cjs/hooks/useSCFetchFeedObject.js.map +0 -1
  372. package/lib/cjs/hooks/useSCFetchIncubator.d.ts.map +0 -1
  373. package/lib/cjs/hooks/useSCFetchIncubator.js.map +0 -1
  374. package/lib/cjs/hooks/useSCFetchPrivateMessageSnippets.d.ts.map +0 -1
  375. package/lib/cjs/hooks/useSCFetchPrivateMessageSnippets.js.map +0 -1
  376. package/lib/cjs/hooks/useSCFetchReactions.d.ts.map +0 -1
  377. package/lib/cjs/hooks/useSCFetchReactions.js.map +0 -1
  378. package/lib/cjs/hooks/useSCFetchTag.d.ts.map +0 -1
  379. package/lib/cjs/hooks/useSCFetchTag.js.map +0 -1
  380. package/lib/cjs/hooks/useSCFetchUser.d.ts.map +0 -1
  381. package/lib/cjs/hooks/useSCFetchUser.js.map +0 -1
  382. package/lib/cjs/hooks/useSCFetchUserProviders.d.ts.map +0 -1
  383. package/lib/cjs/hooks/useSCFetchUserProviders.js.map +0 -1
  384. package/lib/cjs/hooks/useSCFetchVote.d.ts.map +0 -1
  385. package/lib/cjs/hooks/useSCFetchVote.js.map +0 -1
  386. package/lib/cjs/hooks/useSCFollowedCategoriesManager.d.ts.map +0 -1
  387. package/lib/cjs/hooks/useSCFollowedCategoriesManager.js.map +0 -1
  388. package/lib/cjs/hooks/useSCFollowedManager.d.ts.map +0 -1
  389. package/lib/cjs/hooks/useSCFollowedManager.js.map +0 -1
  390. package/lib/cjs/hooks/useSCFollowersManager.d.ts.map +0 -1
  391. package/lib/cjs/hooks/useSCFollowersManager.js.map +0 -1
  392. package/lib/cjs/hooks/useSCMediaClick.d.ts.map +0 -1
  393. package/lib/cjs/hooks/useSCMediaClick.js.map +0 -1
  394. package/lib/cjs/hooks/useSCSettingsManager.d.ts.map +0 -1
  395. package/lib/cjs/hooks/useSCSettingsManager.js.map +0 -1
  396. package/lib/cjs/hooks/useSCSubscribedIncubatorsManager.d.ts.map +0 -1
  397. package/lib/cjs/hooks/useSCSubscribedIncubatorsManager.js.map +0 -1
  398. package/lib/cjs/hooks/useSCWebPushMessaging.d.ts.map +0 -1
  399. package/lib/cjs/hooks/useSCWebPushMessaging.js.map +0 -1
  400. package/lib/cjs/hooks/useSCWebSocket.d.ts.map +0 -1
  401. package/lib/cjs/hooks/useSCWebSocket.js.map +0 -1
  402. package/lib/cjs/index.d.ts.map +0 -1
  403. package/lib/cjs/index.js.map +0 -1
  404. package/lib/cjs/themes/theme.d.ts.map +0 -1
  405. package/lib/cjs/themes/theme.js.map +0 -1
  406. package/lib/cjs/types/context.d.ts.map +0 -1
  407. package/lib/cjs/types/context.js.map +0 -1
  408. package/lib/cjs/types/index.d.ts.map +0 -1
  409. package/lib/cjs/types/index.js.map +0 -1
  410. package/lib/cjs/types/theme.d.ts.map +0 -1
  411. package/lib/cjs/types/theme.js.map +0 -1
  412. package/lib/cjs/utils/errors.d.ts.map +0 -1
  413. package/lib/cjs/utils/errors.js.map +0 -1
  414. package/lib/cjs/utils/hooks/index.d.ts.map +0 -1
  415. package/lib/cjs/utils/hooks/index.js.map +0 -1
  416. package/lib/cjs/utils/hooks/useEffectOnce.d.ts.map +0 -1
  417. package/lib/cjs/utils/hooks/useEffectOnce.js.map +0 -1
  418. package/lib/cjs/utils/hooks/useIsComponentMountedRef.d.ts.map +0 -1
  419. package/lib/cjs/utils/hooks/useIsComponentMountedRef.js.map +0 -1
  420. package/lib/cjs/utils/hooks/useIsomorphicLayoutEffect.d.ts.map +0 -1
  421. package/lib/cjs/utils/hooks/useIsomorphicLayoutEffect.js.map +0 -1
  422. package/lib/cjs/utils/hooks/useNoInitialEffect.d.ts.map +0 -1
  423. package/lib/cjs/utils/hooks/useNoInitialEffect.js.map +0 -1
  424. package/lib/cjs/utils/hooks/usePreviousValue.d.ts.map +0 -1
  425. package/lib/cjs/utils/hooks/usePreviousValue.js.map +0 -1
  426. package/lib/cjs/utils/locale.d.ts.map +0 -1
  427. package/lib/cjs/utils/locale.js.map +0 -1
  428. package/lib/cjs/utils/pagination.d.ts.map +0 -1
  429. package/lib/cjs/utils/pagination.js.map +0 -1
  430. package/lib/cjs/utils/user.d.ts.map +0 -1
  431. package/lib/cjs/utils/user.js.map +0 -1
  432. package/lib/cjs/utils/validator.d.ts.map +0 -1
  433. package/lib/cjs/utils/validator.js.map +0 -1
  434. package/lib/esm/components/provider/SCAlertMessagesProvider/index.d.ts.map +0 -1
  435. package/lib/esm/components/provider/SCAlertMessagesProvider/index.js.map +0 -1
  436. package/lib/esm/components/provider/SCContextProvider/index.d.ts.map +0 -1
  437. package/lib/esm/components/provider/SCContextProvider/index.js.map +0 -1
  438. package/lib/esm/components/provider/SCLocaleProvider/index.d.ts.map +0 -1
  439. package/lib/esm/components/provider/SCLocaleProvider/index.js.map +0 -1
  440. package/lib/esm/components/provider/SCNotificationProvider/index.d.ts.map +0 -1
  441. package/lib/esm/components/provider/SCNotificationProvider/index.js.map +0 -1
  442. package/lib/esm/components/provider/SCPreferencesProvider/index.d.ts.map +0 -1
  443. package/lib/esm/components/provider/SCPreferencesProvider/index.js.map +0 -1
  444. package/lib/esm/components/provider/SCRoutingProvider/index.d.ts.map +0 -1
  445. package/lib/esm/components/provider/SCRoutingProvider/index.js.map +0 -1
  446. package/lib/esm/components/provider/SCThemeProvider/index.d.ts.map +0 -1
  447. package/lib/esm/components/provider/SCThemeProvider/index.js.map +0 -1
  448. package/lib/esm/components/provider/SCUserProvider/index.d.ts.map +0 -1
  449. package/lib/esm/components/provider/SCUserProvider/index.js.map +0 -1
  450. package/lib/esm/components/router/index.d.ts.map +0 -1
  451. package/lib/esm/components/router/index.js.map +0 -1
  452. package/lib/esm/constants/Actions.d.ts.map +0 -1
  453. package/lib/esm/constants/Actions.js.map +0 -1
  454. package/lib/esm/constants/Cache.d.ts.map +0 -1
  455. package/lib/esm/constants/Cache.js.map +0 -1
  456. package/lib/esm/constants/ContextProviders.d.ts.map +0 -1
  457. package/lib/esm/constants/ContextProviders.js.map +0 -1
  458. package/lib/esm/constants/Device.d.ts.map +0 -1
  459. package/lib/esm/constants/Device.js.map +0 -1
  460. package/lib/esm/constants/Errors.d.ts.map +0 -1
  461. package/lib/esm/constants/Errors.js.map +0 -1
  462. package/lib/esm/constants/Features.d.ts.map +0 -1
  463. package/lib/esm/constants/Features.js.map +0 -1
  464. package/lib/esm/constants/Locale.d.ts.map +0 -1
  465. package/lib/esm/constants/Locale.js.map +0 -1
  466. package/lib/esm/constants/Notification.d.ts.map +0 -1
  467. package/lib/esm/constants/Notification.js.map +0 -1
  468. package/lib/esm/constants/Notifications.d.ts.map +0 -1
  469. package/lib/esm/constants/Notifications.js.map +0 -1
  470. package/lib/esm/constants/Preferences.d.ts.map +0 -1
  471. package/lib/esm/constants/Preferences.js.map +0 -1
  472. package/lib/esm/constants/Routes.d.ts.map +0 -1
  473. package/lib/esm/constants/Routes.js.map +0 -1
  474. package/lib/esm/constants/Session.d.ts.map +0 -1
  475. package/lib/esm/constants/Session.js.map +0 -1
  476. package/lib/esm/constants/Theme.d.ts.map +0 -1
  477. package/lib/esm/constants/Theme.js.map +0 -1
  478. package/lib/esm/constants/WebSocket.d.ts.map +0 -1
  479. package/lib/esm/constants/WebSocket.js.map +0 -1
  480. package/lib/esm/hooks/useSCAuth.d.ts.map +0 -1
  481. package/lib/esm/hooks/useSCAuth.js.map +0 -1
  482. package/lib/esm/hooks/useSCCachingManager.d.ts.map +0 -1
  483. package/lib/esm/hooks/useSCCachingManager.js.map +0 -1
  484. package/lib/esm/hooks/useSCConnectionsManager.d.ts.map +0 -1
  485. package/lib/esm/hooks/useSCConnectionsManager.js.map +0 -1
  486. package/lib/esm/hooks/useSCFetchAddressingTagList.d.ts.map +0 -1
  487. package/lib/esm/hooks/useSCFetchAddressingTagList.js.map +0 -1
  488. package/lib/esm/hooks/useSCFetchCategories.d.ts.map +0 -1
  489. package/lib/esm/hooks/useSCFetchCategories.js.map +0 -1
  490. package/lib/esm/hooks/useSCFetchCategory.d.ts.map +0 -1
  491. package/lib/esm/hooks/useSCFetchCategory.js.map +0 -1
  492. package/lib/esm/hooks/useSCFetchCommentObject.d.ts.map +0 -1
  493. package/lib/esm/hooks/useSCFetchCommentObject.js.map +0 -1
  494. package/lib/esm/hooks/useSCFetchCommentObjects.d.ts.map +0 -1
  495. package/lib/esm/hooks/useSCFetchCommentObjects.js.map +0 -1
  496. package/lib/esm/hooks/useSCFetchContributors.d.ts.map +0 -1
  497. package/lib/esm/hooks/useSCFetchContributors.js.map +0 -1
  498. package/lib/esm/hooks/useSCFetchCustomAdv.d.ts.map +0 -1
  499. package/lib/esm/hooks/useSCFetchCustomAdv.js.map +0 -1
  500. package/lib/esm/hooks/useSCFetchFeed.d.ts.map +0 -1
  501. package/lib/esm/hooks/useSCFetchFeed.js.map +0 -1
  502. package/lib/esm/hooks/useSCFetchFeedObject.d.ts.map +0 -1
  503. package/lib/esm/hooks/useSCFetchFeedObject.js.map +0 -1
  504. package/lib/esm/hooks/useSCFetchIncubator.d.ts.map +0 -1
  505. package/lib/esm/hooks/useSCFetchIncubator.js.map +0 -1
  506. package/lib/esm/hooks/useSCFetchPrivateMessageSnippets.d.ts.map +0 -1
  507. package/lib/esm/hooks/useSCFetchPrivateMessageSnippets.js.map +0 -1
  508. package/lib/esm/hooks/useSCFetchReactions.d.ts.map +0 -1
  509. package/lib/esm/hooks/useSCFetchReactions.js.map +0 -1
  510. package/lib/esm/hooks/useSCFetchTag.d.ts.map +0 -1
  511. package/lib/esm/hooks/useSCFetchTag.js.map +0 -1
  512. package/lib/esm/hooks/useSCFetchUser.d.ts.map +0 -1
  513. package/lib/esm/hooks/useSCFetchUser.js.map +0 -1
  514. package/lib/esm/hooks/useSCFetchUserProviders.d.ts.map +0 -1
  515. package/lib/esm/hooks/useSCFetchUserProviders.js.map +0 -1
  516. package/lib/esm/hooks/useSCFetchVote.d.ts.map +0 -1
  517. package/lib/esm/hooks/useSCFetchVote.js.map +0 -1
  518. package/lib/esm/hooks/useSCFollowedCategoriesManager.d.ts.map +0 -1
  519. package/lib/esm/hooks/useSCFollowedCategoriesManager.js.map +0 -1
  520. package/lib/esm/hooks/useSCFollowedManager.d.ts.map +0 -1
  521. package/lib/esm/hooks/useSCFollowedManager.js.map +0 -1
  522. package/lib/esm/hooks/useSCFollowersManager.d.ts.map +0 -1
  523. package/lib/esm/hooks/useSCFollowersManager.js.map +0 -1
  524. package/lib/esm/hooks/useSCMediaClick.d.ts.map +0 -1
  525. package/lib/esm/hooks/useSCMediaClick.js.map +0 -1
  526. package/lib/esm/hooks/useSCSettingsManager.d.ts.map +0 -1
  527. package/lib/esm/hooks/useSCSettingsManager.js.map +0 -1
  528. package/lib/esm/hooks/useSCSubscribedIncubatorsManager.d.ts.map +0 -1
  529. package/lib/esm/hooks/useSCSubscribedIncubatorsManager.js.map +0 -1
  530. package/lib/esm/hooks/useSCWebPushMessaging.d.ts.map +0 -1
  531. package/lib/esm/hooks/useSCWebPushMessaging.js.map +0 -1
  532. package/lib/esm/hooks/useSCWebSocket.d.ts.map +0 -1
  533. package/lib/esm/hooks/useSCWebSocket.js.map +0 -1
  534. package/lib/esm/index.d.ts.map +0 -1
  535. package/lib/esm/index.js.map +0 -1
  536. package/lib/esm/themes/theme.d.ts.map +0 -1
  537. package/lib/esm/themes/theme.js.map +0 -1
  538. package/lib/esm/types/context.d.ts.map +0 -1
  539. package/lib/esm/types/context.js.map +0 -1
  540. package/lib/esm/types/index.d.ts.map +0 -1
  541. package/lib/esm/types/index.js.map +0 -1
  542. package/lib/esm/types/theme.d.ts.map +0 -1
  543. package/lib/esm/types/theme.js.map +0 -1
  544. package/lib/esm/utils/errors.d.ts.map +0 -1
  545. package/lib/esm/utils/errors.js.map +0 -1
  546. package/lib/esm/utils/hooks/index.d.ts.map +0 -1
  547. package/lib/esm/utils/hooks/index.js.map +0 -1
  548. package/lib/esm/utils/hooks/useEffectOnce.d.ts.map +0 -1
  549. package/lib/esm/utils/hooks/useEffectOnce.js.map +0 -1
  550. package/lib/esm/utils/hooks/useIsComponentMountedRef.d.ts.map +0 -1
  551. package/lib/esm/utils/hooks/useIsComponentMountedRef.js.map +0 -1
  552. package/lib/esm/utils/hooks/useIsomorphicLayoutEffect.d.ts.map +0 -1
  553. package/lib/esm/utils/hooks/useIsomorphicLayoutEffect.js.map +0 -1
  554. package/lib/esm/utils/hooks/useNoInitialEffect.d.ts.map +0 -1
  555. package/lib/esm/utils/hooks/useNoInitialEffect.js.map +0 -1
  556. package/lib/esm/utils/hooks/usePreviousValue.d.ts.map +0 -1
  557. package/lib/esm/utils/hooks/usePreviousValue.js.map +0 -1
  558. package/lib/esm/utils/locale.d.ts.map +0 -1
  559. package/lib/esm/utils/locale.js.map +0 -1
  560. package/lib/esm/utils/pagination.d.ts.map +0 -1
  561. package/lib/esm/utils/pagination.js.map +0 -1
  562. package/lib/esm/utils/user.d.ts.map +0 -1
  563. package/lib/esm/utils/user.js.map +0 -1
  564. package/lib/esm/utils/validator.d.ts.map +0 -1
  565. package/lib/esm/utils/validator.js.map +0 -1
package/lib/cjs/index.js CHANGED
@@ -1,51 +1,26 @@
1
1
  "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
- Object.defineProperty(o, "default", { enumerable: true, value: v });
15
- }) : function(o, v) {
16
- o["default"] = v;
17
- });
18
- var __importStar = (this && this.__importStar) || function (mod) {
19
- if (mod && mod.__esModule) return mod;
20
- var result = {};
21
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
- __setModuleDefault(result, mod);
23
- return result;
24
- };
25
- var __importDefault = (this && this.__importDefault) || function (mod) {
26
- return (mod && mod.__esModule) ? mod : { "default": mod };
27
- };
28
2
  Object.defineProperty(exports, "__esModule", { value: true });
29
3
  exports.useIsComponentMountedRef = exports.useSCFetchFeed = exports.useSCFetchContributors = exports.useSCMediaClick = exports.useSCFetchIncubator = exports.useSCFetchCategories = exports.useSCFetchCategory = exports.useSCFetchAddressingTagList = exports.useSCFetchTag = exports.useSCFetchCustomAdv = exports.useSCFetchCommentObjects = exports.useSCFetchCommentObject = exports.useSCFetchFeedObject = exports.useSCFetchVote = exports.useSCFetchUserProviders = exports.useSCFetchUser = exports.Locale = exports.UserUtils = exports.SCCache = exports.SCRoutes = exports.Link = exports.useSCAlertMessages = exports.SCAlertMessagesContext = exports.SCAlertMessagesProvider = exports.useSCNotification = exports.SCNotificationContext = exports.SCNotificationProvider = exports.SCNotification = exports.SCFeatures = exports.SCPreferences = exports.SCPreferencesProvider = exports.withSCLocale = exports.useSCLocale = exports.SCLocaleProvider = exports.useSCRouting = exports.SCRoutingProvider = exports.withSCTheme = exports.useSCTheme = exports.SCThemeProvider = exports.useSCPreferences = exports.useSCUser = exports.SCUserProvider = exports.SCContextProvider = exports.useSCContext = exports.SCPreferencesContext = exports.SCLocaleContext = exports.SCRoutingContext = exports.SCThemeContext = exports.SCUserContext = exports.SCContext = void 0;
30
- exports.useSCFetchPrivateMessageSnippets = exports.useSCFetchReactions = exports.useNoInitialEffect = exports.useEffectOnce = exports.useIsomorphicLayoutEffect = exports.usePreviousValue = void 0;
4
+ exports.useSCUserIsBlocked = exports.useSCFetchUserBlockedBy = exports.useSCFetchBroadcastMessages = exports.useSCFetchPrivateMessageSnippets = exports.useSCFetchReactions = exports.useNoInitialEffect = exports.useEffectOnce = exports.useIsomorphicLayoutEffect = exports.usePreviousValue = void 0;
5
+ const tslib_1 = require("tslib");
31
6
  /**
32
7
  * ContextProvider component
33
8
  */
34
- const SCContextProvider_1 = __importStar(require("./components/provider/SCContextProvider"));
9
+ const SCContextProvider_1 = tslib_1.__importStar(require("./components/provider/SCContextProvider"));
35
10
  exports.SCContextProvider = SCContextProvider_1.default;
36
11
  Object.defineProperty(exports, "SCContext", { enumerable: true, get: function () { return SCContextProvider_1.SCContext; } });
37
12
  Object.defineProperty(exports, "useSCContext", { enumerable: true, get: function () { return SCContextProvider_1.useSCContext; } });
38
13
  /**
39
14
  * AuthProvider component
40
15
  */
41
- const SCUserProvider_1 = __importStar(require("./components/provider/SCUserProvider"));
16
+ const SCUserProvider_1 = tslib_1.__importStar(require("./components/provider/SCUserProvider"));
42
17
  exports.SCUserProvider = SCUserProvider_1.default;
43
18
  Object.defineProperty(exports, "SCUserContext", { enumerable: true, get: function () { return SCUserProvider_1.SCUserContext; } });
44
19
  Object.defineProperty(exports, "useSCUser", { enumerable: true, get: function () { return SCUserProvider_1.useSCUser; } });
45
20
  /**
46
21
  * ThemeProvider component
47
22
  */
48
- const SCThemeProvider_1 = __importStar(require("./components/provider/SCThemeProvider"));
23
+ const SCThemeProvider_1 = tslib_1.__importStar(require("./components/provider/SCThemeProvider"));
49
24
  exports.SCThemeProvider = SCThemeProvider_1.default;
50
25
  Object.defineProperty(exports, "SCThemeContext", { enumerable: true, get: function () { return SCThemeProvider_1.SCThemeContext; } });
51
26
  Object.defineProperty(exports, "useSCTheme", { enumerable: true, get: function () { return SCThemeProvider_1.useSCTheme; } });
@@ -53,14 +28,14 @@ Object.defineProperty(exports, "withSCTheme", { enumerable: true, get: function
53
28
  /**
54
29
  * RoutingProvider component
55
30
  */
56
- const SCRoutingProvider_1 = __importStar(require("./components/provider/SCRoutingProvider"));
31
+ const SCRoutingProvider_1 = tslib_1.__importStar(require("./components/provider/SCRoutingProvider"));
57
32
  exports.SCRoutingProvider = SCRoutingProvider_1.default;
58
33
  Object.defineProperty(exports, "SCRoutingContext", { enumerable: true, get: function () { return SCRoutingProvider_1.SCRoutingContext; } });
59
34
  Object.defineProperty(exports, "useSCRouting", { enumerable: true, get: function () { return SCRoutingProvider_1.useSCRouting; } });
60
35
  /**
61
36
  * LocaleProvider component
62
37
  */
63
- const SCLocaleProvider_1 = __importStar(require("./components/provider/SCLocaleProvider"));
38
+ const SCLocaleProvider_1 = tslib_1.__importStar(require("./components/provider/SCLocaleProvider"));
64
39
  exports.SCLocaleProvider = SCLocaleProvider_1.default;
65
40
  Object.defineProperty(exports, "SCLocaleContext", { enumerable: true, get: function () { return SCLocaleProvider_1.SCLocaleContext; } });
66
41
  Object.defineProperty(exports, "useSCLocale", { enumerable: true, get: function () { return SCLocaleProvider_1.useSCLocale; } });
@@ -68,81 +43,87 @@ Object.defineProperty(exports, "withSCLocale", { enumerable: true, get: function
68
43
  /**
69
44
  * NotificationProvider component
70
45
  */
71
- const SCNotificationProvider_1 = __importStar(require("./components/provider/SCNotificationProvider"));
46
+ const SCNotificationProvider_1 = tslib_1.__importStar(require("./components/provider/SCNotificationProvider"));
72
47
  exports.SCNotificationProvider = SCNotificationProvider_1.default;
73
48
  Object.defineProperty(exports, "SCNotificationContext", { enumerable: true, get: function () { return SCNotificationProvider_1.SCNotificationContext; } });
74
49
  Object.defineProperty(exports, "useSCNotification", { enumerable: true, get: function () { return SCNotificationProvider_1.useSCNotification; } });
75
50
  /**
76
51
  * AlertMessagesProvider component
77
52
  */
78
- const SCAlertMessagesProvider_1 = __importStar(require("./components/provider/SCAlertMessagesProvider"));
53
+ const SCAlertMessagesProvider_1 = tslib_1.__importStar(require("./components/provider/SCAlertMessagesProvider"));
79
54
  exports.SCAlertMessagesProvider = SCAlertMessagesProvider_1.default;
80
55
  Object.defineProperty(exports, "SCAlertMessagesContext", { enumerable: true, get: function () { return SCAlertMessagesProvider_1.SCAlertMessagesContext; } });
81
56
  Object.defineProperty(exports, "useSCAlertMessages", { enumerable: true, get: function () { return SCAlertMessagesProvider_1.useSCAlertMessages; } });
82
57
  /**
83
58
  * PreferencesProvider component
84
59
  */
85
- const SCPreferencesProvider_1 = __importStar(require("./components/provider/SCPreferencesProvider"));
60
+ const SCPreferencesProvider_1 = tslib_1.__importStar(require("./components/provider/SCPreferencesProvider"));
86
61
  exports.SCPreferencesProvider = SCPreferencesProvider_1.default;
87
62
  Object.defineProperty(exports, "SCPreferencesContext", { enumerable: true, get: function () { return SCPreferencesProvider_1.SCPreferencesContext; } });
88
63
  Object.defineProperty(exports, "useSCPreferences", { enumerable: true, get: function () { return SCPreferencesProvider_1.useSCPreferences; } });
89
- const SCPreferences = __importStar(require("./constants/Preferences"));
64
+ const SCPreferences = tslib_1.__importStar(require("./constants/Preferences"));
90
65
  exports.SCPreferences = SCPreferences;
91
- const SCFeatures = __importStar(require("./constants/Features"));
66
+ const SCFeatures = tslib_1.__importStar(require("./constants/Features"));
92
67
  exports.SCFeatures = SCFeatures;
93
- const SCNotification = __importStar(require("./constants/Notification"));
68
+ const SCNotification = tslib_1.__importStar(require("./constants/Notification"));
94
69
  exports.SCNotification = SCNotification;
95
- const SCCache = __importStar(require("./constants/Cache"));
70
+ const SCCache = tslib_1.__importStar(require("./constants/Cache"));
96
71
  exports.SCCache = SCCache;
97
72
  /**
98
73
  * Custom Hooks
99
74
  */
100
- const useSCFetchUser_1 = __importDefault(require("./hooks/useSCFetchUser"));
75
+ const useSCFetchUser_1 = tslib_1.__importDefault(require("./hooks/useSCFetchUser"));
101
76
  exports.useSCFetchUser = useSCFetchUser_1.default;
102
- const useSCFetchUserProviders_1 = __importDefault(require("./hooks/useSCFetchUserProviders"));
77
+ const useSCFetchUserProviders_1 = tslib_1.__importDefault(require("./hooks/useSCFetchUserProviders"));
103
78
  exports.useSCFetchUserProviders = useSCFetchUserProviders_1.default;
104
- const useSCFetchVote_1 = __importDefault(require("./hooks/useSCFetchVote"));
79
+ const useSCFetchVote_1 = tslib_1.__importDefault(require("./hooks/useSCFetchVote"));
105
80
  exports.useSCFetchVote = useSCFetchVote_1.default;
106
- const useSCFetchFeedObject_1 = __importDefault(require("./hooks/useSCFetchFeedObject"));
81
+ const useSCFetchFeedObject_1 = tslib_1.__importDefault(require("./hooks/useSCFetchFeedObject"));
107
82
  exports.useSCFetchFeedObject = useSCFetchFeedObject_1.default;
108
- const useSCFetchCommentObject_1 = __importDefault(require("./hooks/useSCFetchCommentObject"));
83
+ const useSCFetchCommentObject_1 = tslib_1.__importDefault(require("./hooks/useSCFetchCommentObject"));
109
84
  exports.useSCFetchCommentObject = useSCFetchCommentObject_1.default;
110
- const useSCFetchCommentObjects_1 = __importDefault(require("./hooks/useSCFetchCommentObjects"));
85
+ const useSCFetchCommentObjects_1 = tslib_1.__importDefault(require("./hooks/useSCFetchCommentObjects"));
111
86
  exports.useSCFetchCommentObjects = useSCFetchCommentObjects_1.default;
112
- const useSCFetchCustomAdv_1 = __importDefault(require("./hooks/useSCFetchCustomAdv"));
87
+ const useSCFetchCustomAdv_1 = tslib_1.__importDefault(require("./hooks/useSCFetchCustomAdv"));
113
88
  exports.useSCFetchCustomAdv = useSCFetchCustomAdv_1.default;
114
- const useSCFetchTag_1 = __importDefault(require("./hooks/useSCFetchTag"));
89
+ const useSCFetchTag_1 = tslib_1.__importDefault(require("./hooks/useSCFetchTag"));
115
90
  exports.useSCFetchTag = useSCFetchTag_1.default;
116
- const useSCFetchAddressingTagList_1 = __importDefault(require("./hooks/useSCFetchAddressingTagList"));
91
+ const useSCFetchAddressingTagList_1 = tslib_1.__importDefault(require("./hooks/useSCFetchAddressingTagList"));
117
92
  exports.useSCFetchAddressingTagList = useSCFetchAddressingTagList_1.default;
118
- const useSCFetchCategory_1 = __importDefault(require("./hooks/useSCFetchCategory"));
93
+ const useSCFetchCategory_1 = tslib_1.__importDefault(require("./hooks/useSCFetchCategory"));
119
94
  exports.useSCFetchCategory = useSCFetchCategory_1.default;
120
- const useSCFetchCategories_1 = __importDefault(require("./hooks/useSCFetchCategories"));
95
+ const useSCFetchCategories_1 = tslib_1.__importDefault(require("./hooks/useSCFetchCategories"));
121
96
  exports.useSCFetchCategories = useSCFetchCategories_1.default;
122
- const useSCFetchIncubator_1 = __importDefault(require("./hooks/useSCFetchIncubator"));
97
+ const useSCFetchIncubator_1 = tslib_1.__importDefault(require("./hooks/useSCFetchIncubator"));
123
98
  exports.useSCFetchIncubator = useSCFetchIncubator_1.default;
124
- const useSCMediaClick_1 = __importDefault(require("./hooks/useSCMediaClick"));
99
+ const useSCMediaClick_1 = tslib_1.__importDefault(require("./hooks/useSCMediaClick"));
125
100
  exports.useSCMediaClick = useSCMediaClick_1.default;
126
- const useSCFetchContributors_1 = __importDefault(require("./hooks/useSCFetchContributors"));
101
+ const useSCFetchContributors_1 = tslib_1.__importDefault(require("./hooks/useSCFetchContributors"));
127
102
  exports.useSCFetchContributors = useSCFetchContributors_1.default;
128
- const useSCFetchFeed_1 = __importDefault(require("./hooks/useSCFetchFeed"));
103
+ const useSCFetchFeed_1 = tslib_1.__importDefault(require("./hooks/useSCFetchFeed"));
129
104
  exports.useSCFetchFeed = useSCFetchFeed_1.default;
130
- const useSCFetchReactions_1 = __importDefault(require("./hooks/useSCFetchReactions"));
105
+ const useSCFetchReactions_1 = tslib_1.__importDefault(require("./hooks/useSCFetchReactions"));
131
106
  exports.useSCFetchReactions = useSCFetchReactions_1.default;
132
- const useSCFetchPrivateMessageSnippets_1 = __importDefault(require("./hooks/useSCFetchPrivateMessageSnippets"));
107
+ const useSCFetchPrivateMessageSnippets_1 = tslib_1.__importDefault(require("./hooks/useSCFetchPrivateMessageSnippets"));
133
108
  exports.useSCFetchPrivateMessageSnippets = useSCFetchPrivateMessageSnippets_1.default;
109
+ const useSCFetchBroadcastMessages_1 = tslib_1.__importDefault(require("./hooks/useSCFetchBroadcastMessages"));
110
+ exports.useSCFetchBroadcastMessages = useSCFetchBroadcastMessages_1.default;
111
+ const useSCFetchUserBlockedBy_1 = tslib_1.__importDefault(require("./hooks/useSCFetchUserBlockedBy"));
112
+ exports.useSCFetchUserBlockedBy = useSCFetchUserBlockedBy_1.default;
113
+ const useSCUserIsBlocked_1 = tslib_1.__importDefault(require("./hooks/useSCUserIsBlocked"));
114
+ exports.useSCUserIsBlocked = useSCUserIsBlocked_1.default;
134
115
  /**
135
116
  * Routing component
136
117
  */
137
- const router_1 = __importDefault(require("./components/router"));
118
+ const router_1 = tslib_1.__importDefault(require("./components/router"));
138
119
  exports.Link = router_1.default;
139
- const SCRoutes = __importStar(require("./constants/Routes"));
120
+ const SCRoutes = tslib_1.__importStar(require("./constants/Routes"));
140
121
  exports.SCRoutes = SCRoutes;
141
122
  /**
142
123
  * Utilities:
143
124
  * User, hooks (useIsComponentMountedRef)
144
125
  */
145
- const UserUtils = __importStar(require("./utils/user"));
126
+ const UserUtils = tslib_1.__importStar(require("./utils/user"));
146
127
  exports.UserUtils = UserUtils;
147
128
  const hooks_1 = require("./utils/hooks");
148
129
  Object.defineProperty(exports, "useIsComponentMountedRef", { enumerable: true, get: function () { return hooks_1.useIsComponentMountedRef; } });
@@ -154,6 +135,5 @@ Object.defineProperty(exports, "useNoInitialEffect", { enumerable: true, get: fu
154
135
  * Constants:
155
136
  * Locale
156
137
  */
157
- const Locale = __importStar(require("./constants/Locale"));
138
+ const Locale = tslib_1.__importStar(require("./constants/Locale"));
158
139
  exports.Locale = Locale;
159
- //# sourceMappingURL=index.js.map
@@ -7,4 +7,3 @@ import { SCThemeType } from '../types';
7
7
  */
8
8
  declare const getTheme: (options: any, preferences: any) => SCThemeType;
9
9
  export default getTheme;
10
- //# sourceMappingURL=theme.d.ts.map
@@ -1,11 +1,9 @@
1
1
  "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
2
  Object.defineProperty(exports, "__esModule", { value: true });
6
- const styles_1 = require("@mui/material/styles");
3
+ const tslib_1 = require("tslib");
4
+ const createTheme_1 = tslib_1.__importDefault(require("@mui/material/styles/createTheme"));
7
5
  const utils_1 = require("@selfcommunity/utils");
8
- const validate_color_1 = __importDefault(require("validate-color"));
6
+ const validate_color_1 = tslib_1.__importDefault(require("validate-color"));
9
7
  const Preferences_1 = require("../constants/Preferences");
10
8
  const utils_2 = require("@selfcommunity/utils");
11
9
  /**
@@ -50,82 +48,8 @@ const getTheme = (options, preferences) => {
50
48
  ? {
51
49
  palette: Object.assign(Object.assign(Object.assign(Object.assign({}, (isValidPreference(preferences, Preferences_1.COLORS_COLORBACK, validate_color_1.default) && { background: { default: preferences[Preferences_1.COLORS_COLORBACK].value } })), (isValidPreference(preferences, Preferences_1.COLORS_COLORFONT, validate_color_1.default) && { text: { primary: preferences[Preferences_1.COLORS_COLORFONT].value } })), (isValidPreference(preferences, Preferences_1.COLORS_COLORPRIMARY, validate_color_1.default) && { primary: { main: preferences[Preferences_1.COLORS_COLORPRIMARY].value } })), (isValidPreference(preferences, Preferences_1.COLORS_COLORSECONDARY, validate_color_1.default) && Object.assign({ secondary: { main: preferences[Preferences_1.COLORS_COLORSECONDARY].value } }, (isValidPreference(preferences, Preferences_1.COLORS_NAVBARBACK, validate_color_1.default) && { navbar: { main: preferences[Preferences_1.COLORS_NAVBARBACK].value } })))),
52
50
  typography: Object.assign({}, (isValidPreference(preferences, Preferences_1.STYLE_FONT_FAMILY, utils_2.isString) && { fontFamily: preferences[Preferences_1.STYLE_FONT_FAMILY].value })),
53
- components: {
54
- MuiPaper: {
55
- // styleOverrides: {
56
- // rounded: {
57
- // borderRadius: 3,
58
- // },
59
- // },
60
- },
61
- SCWidget: {
62
- // variants: [
63
- // {
64
- // props: {elevation: 0},
65
- // style: {
66
- // border: 0,
67
- // boxShadow: 'none',
68
- // marginBottom: '0 !important',
69
- // },
70
- // },
71
- // {
72
- // props: {variant: 'outlined'},
73
- // style: {
74
- // border: '1px solid rgba(0, 0, 0, 0.12)',
75
- // boxShadow: 'none',
76
- // },
77
- // },
78
- // ],
79
- // styleOverrides: {
80
- // root: {
81
- // border: '0 none',
82
- // boxShadow: '0px 5px 20px rgba(0, 0, 0, 0.1)',
83
- // borderRadius: '15px',
84
- // },
85
- // },
86
- },
87
- SCNotificationItem: {
88
- // styleOverrides: {
89
- // root: {
90
- // '&.SCNotificationItem-new-snippet': {
91
- // '&::before': {
92
- // backgroundColor: 'yellow',
93
- // },
94
- // },
95
- // },
96
- // },
97
- },
98
- SCSnippetNotifications: {
99
- styleOverrides: {
100
- root: {
101
- '& .SCSnippetNotifications-list': {
102
- // wrap notifications list (ul)
103
- },
104
- '& .SCSnippetNotifications-item': {
105
- // single notification item (li)
106
- },
107
- ['& .SCUserFollowNotification-username, .SCUserFollowNotification-username, .SCCommentNotification-username,' +
108
- 'SCContributionFollowNotification-username, .SCContributionFollowNotification-username, .SCUserNotificationMention-username,' +
109
- '.SCUserNotificationMention-username, .SCUserNotificationPrivateMessage-message-sender, .SCVoteUpNotification-username']: {
110
- // username for notification types: user follow, comment/nested comment,
111
- // follow contribution, mention, private message, vote up
112
- },
113
- ['& .SCUserFollowNotification-list-item-snippet-new, .SCVoteUpNotification-list-item-snippet-new, ' +
114
- '.SCUserBlockedNotification-list-item-snippet-new, .SCUndeletedForNotification-list-item-snippet-new, ' +
115
- '.SCUserNotificationPrivateMessage-list-item-snippet-new, .SCUserNotificationMention-list-item-snippet-new,' +
116
- '.SCKindlyNoticeForNotification-list-item-snippet-new, .SCKindlyNoticeFlagNotification-list-item-snippet-new,' +
117
- '.SCIncubatorApprovedNotification-list-item-snippet-new, .SCDeletedForNotification-list-item-snippet-new,' +
118
- '.SCContributionFollowNotification-list-item-snippet-new, .SCCommentNotification-list-item-snippet-new,' +
119
- '.SCCollapsedForNotification-list-item-snippet-new']: {
120
- // border left indicate new notification of various type
121
- },
122
- },
123
- },
124
- },
125
- },
126
51
  }
127
52
  : {};
128
- return (0, styles_1.createTheme)((0, utils_1.mergeDeep)(Object.assign({ selfcommunity }, defaultOptions), options));
53
+ return (0, createTheme_1.default)((0, utils_1.mergeDeep)(Object.assign({ selfcommunity }, defaultOptions), options));
129
54
  };
130
55
  exports.default = getTheme;
131
- //# sourceMappingURL=theme.js.map
@@ -1,5 +1,5 @@
1
1
  import React, { ReactNode } from 'react';
2
- import { SCAuthTokenType, SCIncubatorType, SCCategoryType, SCUserType, SCUserSettingsType } from '@selfcommunity/types';
2
+ import { SCAuthTokenType, SCIncubatorType, SCCategoryType, SCUserType, SCUserSettingsType, SCReactionType } from "@selfcommunity/types";
3
3
  import { SCThemeType } from './theme';
4
4
  /**
5
5
  * Interface SCSettingsType
@@ -28,7 +28,11 @@ export interface SCSettingsType {
28
28
  /**
29
29
  * Object conf of preferences.
30
30
  */
31
- preferences?: SCPreferencesContextType;
31
+ preferences?: SCPreferencesType;
32
+ /**
33
+ * Vote conf
34
+ */
35
+ vote?: SCVoteType;
32
36
  /**
33
37
  * Object conf of notification.
34
38
  */
@@ -60,6 +64,28 @@ export interface SCLocaleType {
60
64
  */
61
65
  messages?: Record<string, any>;
62
66
  }
67
+ /**
68
+ * Interface SCPreferencesType
69
+ */
70
+ export interface SCPreferencesType {
71
+ /**
72
+ * List of all community preferences
73
+ */
74
+ preferences: Record<string, any>;
75
+ /**
76
+ * List of all community enabled features
77
+ */
78
+ features: string[];
79
+ }
80
+ /**
81
+ * Interface SCVoteType
82
+ */
83
+ export interface SCVoteType {
84
+ /**
85
+ * List of all reactions
86
+ */
87
+ reactions: SCReactionType[];
88
+ }
63
89
  /**
64
90
  * Interface SCUserContextType
65
91
  */
@@ -102,9 +128,9 @@ export interface SCUserContextType {
102
128
  setUnseenNotificationBannersCounter: (counter: number) => void;
103
129
  /**
104
130
  * Handle refresh user notification counters
105
- * Interactions, BroadcastMessages
131
+ * Interactions, BroadcastMessages, Followers, Followings, Categories, etc.
106
132
  */
107
- refreshNotificationCounters: () => Promise<any>;
133
+ refreshCounters: () => Promise<any>;
108
134
  /**
109
135
  * Managers: followed, connections, categories, incubators, etc...
110
136
  */
@@ -115,6 +141,7 @@ export interface SCUserContextType {
115
141
  connections?: SCConnectionsManagerType;
116
142
  categories: SCFollowedCategoriesManagerType;
117
143
  incubators?: SCSubscribedIncubatorsManagerType;
144
+ blockedUsers?: SCBlockedUsersManagerType;
118
145
  };
119
146
  }
120
147
  export interface SCSettingsManagerType {
@@ -238,6 +265,14 @@ export interface SCConnectionsManagerType {
238
265
  * Handle request connection
239
266
  */
240
267
  requestConnection?: (user: SCUserType) => Promise<any>;
268
+ /**
269
+ * Handle cancel request connection
270
+ */
271
+ cancelRequestConnection?: (user: SCUserType) => Promise<any>;
272
+ /**
273
+ * Handle remove connection
274
+ */
275
+ removeConnection?: (user: SCUserType) => Promise<any>;
241
276
  /**
242
277
  * Handle accept connection
243
278
  */
@@ -255,6 +290,32 @@ export interface SCConnectionsManagerType {
255
290
  */
256
291
  emptyCache?: () => void;
257
292
  }
293
+ export interface SCBlockedUsersManagerType {
294
+ /**
295
+ * List of all blocked users
296
+ */
297
+ blocked: number[];
298
+ /**
299
+ * Loading state
300
+ */
301
+ loading: boolean;
302
+ /**
303
+ * List of current user in loading state
304
+ */
305
+ isLoading: () => boolean;
306
+ /**
307
+ * Handle user block/unblock
308
+ */
309
+ block?: (user: SCUserType) => Promise<any>;
310
+ /**
311
+ * Handle check if a user is blocked
312
+ */
313
+ isBlocked?: (user: SCUserType) => boolean;
314
+ /**
315
+ * Refresh blocked user list
316
+ */
317
+ refresh?: () => Promise<any>;
318
+ }
258
319
  export interface SCSubscribedIncubatorsManagerType {
259
320
  /**
260
321
  * List of all incubators ids subscribed by the authenticated user
@@ -337,7 +398,7 @@ export interface SCContextProviderType {
337
398
  children: ReactNode;
338
399
  }
339
400
  /**
340
- * Interface SCPreferencesType
401
+ * Interface SCPreferencesContextType
341
402
  */
342
403
  export interface SCPreferencesContextType {
343
404
  /**
@@ -349,6 +410,19 @@ export interface SCPreferencesContextType {
349
410
  */
350
411
  features: string[];
351
412
  }
413
+ /**
414
+ * Interface SCVoteContextType
415
+ */
416
+ export interface SCVoteContextType {
417
+ /**
418
+ * List of all reactions
419
+ */
420
+ reactions: SCReactionType[];
421
+ /**
422
+ * Refresh reactions
423
+ */
424
+ refreshReactions: () => Promise<SCReactionType[]>;
425
+ }
352
426
  /**
353
427
  * Interface SCThemeContextType
354
428
  */
@@ -397,6 +471,10 @@ export interface SCNotificationsType {
397
471
  * Web push messaging notification
398
472
  */
399
473
  webPushMessaging?: SCNotificationsWebPushMessagingType;
474
+ /**
475
+ * Mobile native push messaging
476
+ */
477
+ mobileNativePushMessaging?: SCNotificationsMobileNativePushMessagingType;
400
478
  }
401
479
  /**
402
480
  * Interface SCNotificationsWebSocketType
@@ -430,6 +508,15 @@ export interface SCNotificationsWebPushMessagingType {
430
508
  */
431
509
  applicationServerKey?: boolean;
432
510
  }
511
+ /**
512
+ * Interface SCNotificationsMobileNativePushMessagingType
513
+ */
514
+ export interface SCNotificationsMobileNativePushMessagingType {
515
+ /**
516
+ * Disable
517
+ */
518
+ disable?: boolean;
519
+ }
433
520
  /**
434
521
  * Interface SCRoutingContextType
435
522
  */
@@ -459,6 +546,10 @@ export interface SCNotificationContextType {
459
546
  * wp subscription
460
547
  */
461
548
  wpSubscription: any;
549
+ /**
550
+ * mobile native push instance
551
+ */
552
+ mnpmInstance?: any;
462
553
  }
463
554
  /**
464
555
  * Interface SCLocaleContextType
@@ -490,4 +581,3 @@ export interface SCAlertMessagesContextType {
490
581
  */
491
582
  setOptions: (options: any) => void;
492
583
  }
493
- //# sourceMappingURL=context.d.ts.map
@@ -1,3 +1,2 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=context.js.map
@@ -1,4 +1,3 @@
1
- import { SCUserContextType, SCFollowedManagerType, SCFollowersManagerType, SCFollowedCategoriesManagerType, SCSettingsManagerType, SCSubscribedIncubatorsManagerType, SCConnectionsManagerType, SCContextProviderType, SCContextType, SCSettingsType, SCSessionType, SCPreferencesContextType, SCNotificationContextType, SCLocaleType, SCThemeContextType, SCRoutingContextType, SCLocaleContextType, SCAlertMessagesContextType } from './context';
1
+ import { SCUserContextType, SCFollowedManagerType, SCFollowersManagerType, SCFollowedCategoriesManagerType, SCSettingsManagerType, SCSubscribedIncubatorsManagerType, SCConnectionsManagerType, SCBlockedUsersManagerType, SCContextProviderType, SCContextType, SCSettingsType, SCSessionType, SCPreferencesContextType, SCNotificationContextType, SCLocaleType, SCVoteType, SCVoteContextType, SCThemeContextType, SCRoutingContextType, SCLocaleContextType, SCAlertMessagesContextType } from './context';
2
2
  import { SCThemeAvatarVariableType, SCThemeUserVariableType, SCThemeCategoryIconVariableType, SCThemeCategoryVariableType, SCThemeVariablesType, SCThemeType } from './theme';
3
- export { SCUserContextType, SCFollowedCategoriesManagerType, SCSettingsManagerType, SCContextProviderType, SCContextType, SCSettingsType, SCSessionType, SCFollowedManagerType, SCFollowersManagerType, SCConnectionsManagerType, SCSubscribedIncubatorsManagerType, SCLocaleType, SCNotificationContextType, SCPreferencesContextType, SCThemeContextType, SCRoutingContextType, SCLocaleContextType, SCAlertMessagesContextType, SCThemeAvatarVariableType, SCThemeUserVariableType, SCThemeCategoryIconVariableType, SCThemeCategoryVariableType, SCThemeVariablesType, SCThemeType, };
4
- //# sourceMappingURL=index.d.ts.map
3
+ export { SCUserContextType, SCFollowedCategoriesManagerType, SCSettingsManagerType, SCContextProviderType, SCContextType, SCSettingsType, SCSessionType, SCFollowedManagerType, SCFollowersManagerType, SCConnectionsManagerType, SCBlockedUsersManagerType, SCSubscribedIncubatorsManagerType, SCLocaleType, SCVoteType, SCVoteContextType, SCNotificationContextType, SCPreferencesContextType, SCThemeContextType, SCRoutingContextType, SCLocaleContextType, SCAlertMessagesContextType, SCThemeAvatarVariableType, SCThemeUserVariableType, SCThemeCategoryIconVariableType, SCThemeCategoryVariableType, SCThemeVariablesType, SCThemeType, };
@@ -1,3 +1,2 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=index.js.map
@@ -1,4 +1,4 @@
1
- import { Theme as MuiTheme } from '@mui/material';
1
+ import { Theme as MuiTheme } from '@mui/material/styles/createTheme';
2
2
  /**
3
3
  * Interface SCThemeAvatarVariableType
4
4
  */
@@ -74,4 +74,3 @@ export interface SCThemeType extends MuiTheme {
74
74
  **/
75
75
  selfcommunity: SCThemeVariablesType;
76
76
  }
77
- //# sourceMappingURL=theme.d.ts.map
@@ -1,3 +1,2 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=theme.js.map
@@ -24,9 +24,14 @@ export declare class ValidationError {
24
24
  static ERROR_INVALID_NOTIFICATIONS_WEB_PUSH_MESSAGING: number;
25
25
  static ERROR_INVALID_NOTIFICATIONS_WEB_PUSH_MESSAGING_DISABLE_TOAST_MESSAGE: number;
26
26
  static ERROR_INVALID_NOTIFICATIONS_WEB_PUSH_MESSAGING_APPLICATION_SERVER_KEY: number;
27
+ static ERROR_INVALID_NOTIFICATIONS_MOBILE_PUSH_MESSAGING_DISABLE: number;
28
+ static ERROR_INVALID_NOTIFICATIONS_MOBILE_NATIVE_PUSH_MESSAGING: number;
27
29
  static ERROR_INVALID_PREFERENCES: number;
28
30
  static ERROR_INVALID_GLOBAL_PREFERENCES: number;
29
31
  static ERROR_INVALID_PREFERENCES_FEATURES: number;
32
+ static ERROR_INVALID_VOTE: number;
33
+ static ERROR_INVALID_VOTE_REACTIONS: number;
34
+ static ERROR_INVALID_VOTE_REACTIONS_STRUCTURE: number;
30
35
  static defaultErrorMessageMap: {
31
36
  [x: number]: string;
32
37
  };
@@ -95,9 +100,3 @@ export declare class ValidationResult {
95
100
  */
96
101
  emit(): void;
97
102
  }
98
- /**
99
- * Check if v is a func
100
- * @param v
101
- */
102
- export declare function isFunc(v: any): boolean;
103
- //# sourceMappingURL=errors.d.ts.map
@@ -1,31 +1,9 @@
1
1
  "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
- Object.defineProperty(o, "default", { enumerable: true, value: v });
15
- }) : function(o, v) {
16
- o["default"] = v;
17
- });
18
- var __importStar = (this && this.__importStar) || function (mod) {
19
- if (mod && mod.__esModule) return mod;
20
- var result = {};
21
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
- __setModuleDefault(result, mod);
23
- return result;
24
- };
25
2
  Object.defineProperty(exports, "__esModule", { value: true });
26
- exports.isFunc = exports.ValidationResult = exports.ValidationWarnings = exports.ValidationError = void 0;
3
+ exports.ValidationResult = exports.ValidationWarnings = exports.ValidationError = void 0;
4
+ const tslib_1 = require("tslib");
27
5
  const Locale_1 = require("../constants/Locale");
28
- const Session = __importStar(require("../constants/Session"));
6
+ const Session = tslib_1.__importStar(require("../constants/Session"));
29
7
  const utils_1 = require("@selfcommunity/utils");
30
8
  /**
31
9
  * Manage Validation Error
@@ -63,9 +41,14 @@ ValidationError.ERROR_INVALID_NOTIFICATIONS_WEBSOCKET_SECURE = 4903;
63
41
  ValidationError.ERROR_INVALID_NOTIFICATIONS_WEB_PUSH_MESSAGING = 4921;
64
42
  ValidationError.ERROR_INVALID_NOTIFICATIONS_WEB_PUSH_MESSAGING_DISABLE_TOAST_MESSAGE = 4922;
65
43
  ValidationError.ERROR_INVALID_NOTIFICATIONS_WEB_PUSH_MESSAGING_APPLICATION_SERVER_KEY = 4923;
44
+ ValidationError.ERROR_INVALID_NOTIFICATIONS_MOBILE_PUSH_MESSAGING_DISABLE = 4924;
45
+ ValidationError.ERROR_INVALID_NOTIFICATIONS_MOBILE_NATIVE_PUSH_MESSAGING = 4931;
66
46
  ValidationError.ERROR_INVALID_PREFERENCES = 5000;
67
47
  ValidationError.ERROR_INVALID_GLOBAL_PREFERENCES = 5001;
68
48
  ValidationError.ERROR_INVALID_PREFERENCES_FEATURES = 5002;
49
+ ValidationError.ERROR_INVALID_VOTE = 6000;
50
+ ValidationError.ERROR_INVALID_VOTE_REACTIONS = 6001;
51
+ ValidationError.ERROR_INVALID_VOTE_REACTIONS_STRUCTURE = 6002;
69
52
  ValidationError.defaultErrorMessageMap = {
70
53
  [ValidationError.ERROR_INVALID_CONF]: 'Invalid or missing library configuration. Check the configuration that is passed to the SCContextProvider.',
71
54
  [ValidationError.ERROR_INVALID_SESSION]: 'Invalid session format.',
@@ -88,9 +71,14 @@ ValidationError.defaultErrorMessageMap = {
88
71
  [ValidationError.ERROR_INVALID_NOTIFICATIONS_WEB_PUSH_MESSAGING]: 'Invalid notifications (web push messaging) option.',
89
72
  [ValidationError.ERROR_INVALID_NOTIFICATIONS_WEB_PUSH_MESSAGING_DISABLE_TOAST_MESSAGE]: "Invalid notifications web push messaging option. 'disableToastMessage' must be a boolean value.",
90
73
  [ValidationError.ERROR_INVALID_NOTIFICATIONS_WEB_PUSH_MESSAGING_APPLICATION_SERVER_KEY]: "Invalid notifications web push messaging option. 'applicationServerKey' must be a string value.",
74
+ [ValidationError.ERROR_INVALID_NOTIFICATIONS_MOBILE_NATIVE_PUSH_MESSAGING]: 'Invalid notifications (mobile native push messaging) option.',
75
+ [ValidationError.ERROR_INVALID_NOTIFICATIONS_MOBILE_PUSH_MESSAGING_DISABLE]: "Invalid notifications mobile native push messaging option. 'disable' must be a boolean value.",
91
76
  [ValidationError.ERROR_INVALID_PREFERENCES]: 'Invalid preferences option.',
92
77
  [ValidationError.ERROR_INVALID_GLOBAL_PREFERENCES]: "Invalid preferences option. 'preferences' inside preferences must be a valid array of global preferences.",
93
78
  [ValidationError.ERROR_INVALID_PREFERENCES_FEATURES]: "Invalid preferences option. 'features' must be a valid array of features.",
79
+ [ValidationError.ERROR_INVALID_VOTE]: 'Invalid vote option.',
80
+ [ValidationError.ERROR_INVALID_VOTE_REACTIONS]: "Invalid vote option. 'reactions' must be a valid array of reaction objects.",
81
+ [ValidationError.ERROR_INVALID_VOTE_REACTIONS_STRUCTURE]: "Invalid vote option. 'reactions' must be a valid array of reaction with attributes (id, label, sentiment, image, active).",
94
82
  };
95
83
  /**
96
84
  * Manage Validation Warnings
@@ -184,12 +172,3 @@ class ValidationResult {
184
172
  }
185
173
  }
186
174
  exports.ValidationResult = ValidationResult;
187
- /**
188
- * Check if v is a func
189
- * @param v
190
- */
191
- function isFunc(v) {
192
- return typeof v === 'function';
193
- }
194
- exports.isFunc = isFunc;
195
- //# sourceMappingURL=errors.js.map
@@ -4,4 +4,3 @@ import useIsomorphicLayoutEffect from './useIsomorphicLayoutEffect';
4
4
  import useEffectOnce from './useEffectOnce';
5
5
  import useNoInitialEffect from './useNoInitialEffect';
6
6
  export { useIsComponentMountedRef, usePreviousValue, useIsomorphicLayoutEffect, useEffectOnce, useNoInitialEffect };
7
- //# sourceMappingURL=index.d.ts.map