@selfcommunity/react-core 0.1.7-alpha.1 → 0.1.8-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (395) hide show
  1. package/lib/{types → cjs}/components/provider/SCAlertMessagesProvider/index.d.ts +0 -0
  2. package/lib/{types → cjs}/components/provider/SCAlertMessagesProvider/index.d.ts.map +0 -0
  3. package/lib/cjs/components/provider/SCAlertMessagesProvider/index.js +37 -35
  4. package/lib/cjs/components/provider/SCAlertMessagesProvider/index.js.map +1 -0
  5. package/lib/{types → cjs}/components/provider/SCContextProvider/index.d.ts +0 -0
  6. package/lib/{types → cjs}/components/provider/SCContextProvider/index.d.ts.map +0 -0
  7. package/lib/cjs/components/provider/SCContextProvider/index.js +74 -81
  8. package/lib/cjs/components/provider/SCContextProvider/index.js.map +1 -0
  9. package/lib/{types → cjs}/components/provider/SCLocaleProvider/index.d.ts +0 -0
  10. package/lib/{types → cjs}/components/provider/SCLocaleProvider/index.d.ts.map +0 -0
  11. package/lib/cjs/components/provider/SCLocaleProvider/index.js +86 -121
  12. package/lib/cjs/components/provider/SCLocaleProvider/index.js.map +1 -0
  13. package/lib/{types → cjs}/components/provider/SCNotificationProvider/index.d.ts +0 -0
  14. package/lib/{types → cjs}/components/provider/SCNotificationProvider/index.d.ts.map +0 -0
  15. package/lib/cjs/components/provider/SCNotificationProvider/index.js +41 -41
  16. package/lib/cjs/components/provider/SCNotificationProvider/index.js.map +1 -0
  17. package/lib/{types → cjs}/components/provider/SCPreferencesProvider/index.d.ts +0 -0
  18. package/lib/{types → cjs}/components/provider/SCPreferencesProvider/index.d.ts.map +0 -0
  19. package/lib/cjs/components/provider/SCPreferencesProvider/index.js +61 -62
  20. package/lib/cjs/components/provider/SCPreferencesProvider/index.js.map +1 -0
  21. package/lib/{types → cjs}/components/provider/SCRoutingProvider/index.d.ts +0 -0
  22. package/lib/{types → cjs}/components/provider/SCRoutingProvider/index.d.ts.map +1 -1
  23. package/lib/cjs/components/provider/SCRoutingProvider/index.js +104 -111
  24. package/lib/cjs/components/provider/SCRoutingProvider/index.js.map +1 -0
  25. package/lib/{types → cjs}/components/provider/SCThemeProvider/index.d.ts +0 -0
  26. package/lib/{types → cjs}/components/provider/SCThemeProvider/index.d.ts.map +0 -0
  27. package/lib/cjs/components/provider/SCThemeProvider/index.js +66 -79
  28. package/lib/cjs/components/provider/SCThemeProvider/index.js.map +1 -0
  29. package/lib/{types → cjs}/components/provider/SCUserProvider/index.d.ts +0 -0
  30. package/lib/{types → cjs}/components/provider/SCUserProvider/index.d.ts.map +0 -0
  31. package/lib/cjs/components/provider/SCUserProvider/index.js +215 -270
  32. package/lib/cjs/components/provider/SCUserProvider/index.js.map +1 -0
  33. package/lib/{types → cjs}/components/router/index.d.ts +0 -0
  34. package/lib/{types → cjs}/components/router/index.d.ts.map +0 -0
  35. package/lib/cjs/components/router/index.js +48 -49
  36. package/lib/cjs/components/router/index.js.map +1 -0
  37. package/lib/{types → cjs}/constants/Actions.d.ts +0 -0
  38. package/lib/{types → cjs}/constants/Actions.d.ts.map +0 -0
  39. package/lib/cjs/constants/Actions.js +3 -4
  40. package/lib/cjs/constants/Actions.js.map +1 -0
  41. package/lib/{types → cjs}/constants/ContextProviders.d.ts +0 -0
  42. package/lib/{types → cjs}/constants/ContextProviders.d.ts.map +0 -0
  43. package/lib/cjs/constants/ContextProviders.js +22 -24
  44. package/lib/cjs/constants/ContextProviders.js.map +1 -0
  45. package/lib/{types → cjs}/constants/Device.d.ts +0 -0
  46. package/lib/{types → cjs}/constants/Device.d.ts.map +0 -0
  47. package/lib/cjs/constants/Device.js +3 -5
  48. package/lib/cjs/constants/Device.js.map +1 -0
  49. package/lib/{types → cjs}/constants/Errors.d.ts +0 -0
  50. package/lib/{types → cjs}/constants/Errors.d.ts.map +0 -0
  51. package/lib/cjs/constants/Errors.js +3 -5
  52. package/lib/cjs/constants/Errors.js.map +1 -0
  53. package/lib/{types → cjs}/constants/Features.d.ts +0 -0
  54. package/lib/{types → cjs}/constants/Features.d.ts.map +0 -0
  55. package/lib/cjs/constants/Features.js +43 -83
  56. package/lib/cjs/constants/Features.js.map +1 -0
  57. package/lib/{types → cjs}/constants/Locale.d.ts +0 -0
  58. package/lib/{types → cjs}/constants/Locale.d.ts.map +0 -0
  59. package/lib/cjs/constants/Locale.js +10 -17
  60. package/lib/cjs/constants/Locale.js.map +1 -0
  61. package/lib/{types → cjs}/constants/Notification.d.ts +0 -0
  62. package/lib/{types → cjs}/constants/Notification.d.ts.map +0 -0
  63. package/lib/cjs/constants/Notification.js +44 -53
  64. package/lib/cjs/constants/Notification.js.map +1 -0
  65. package/lib/{types → cjs}/constants/Notifications.d.ts +0 -0
  66. package/lib/{types → cjs}/constants/Notifications.d.ts.map +0 -0
  67. package/lib/cjs/constants/Notifications.js +11 -25
  68. package/lib/cjs/constants/Notifications.js.map +1 -0
  69. package/lib/cjs/constants/Preferences.d.ts +201 -0
  70. package/lib/cjs/constants/Preferences.d.ts.map +1 -0
  71. package/lib/cjs/constants/Preferences.js +184 -292
  72. package/lib/cjs/constants/Preferences.js.map +1 -0
  73. package/lib/{types → cjs}/constants/Routes.d.ts +0 -0
  74. package/lib/{types → cjs}/constants/Routes.d.ts.map +0 -0
  75. package/lib/cjs/constants/Routes.js +38 -59
  76. package/lib/cjs/constants/Routes.js.map +1 -0
  77. package/lib/{types → cjs}/constants/Session.d.ts +0 -0
  78. package/lib/{types → cjs}/constants/Session.d.ts.map +0 -0
  79. package/lib/cjs/constants/Session.js +12 -21
  80. package/lib/cjs/constants/Session.js.map +1 -0
  81. package/lib/{types → cjs}/constants/Theme.d.ts +0 -0
  82. package/lib/{types → cjs}/constants/Theme.d.ts.map +0 -0
  83. package/lib/cjs/constants/Theme.js +3 -4
  84. package/lib/cjs/constants/Theme.js.map +1 -0
  85. package/lib/cjs/constants/WebSocket.d.ts +4 -0
  86. package/lib/cjs/constants/WebSocket.d.ts.map +1 -0
  87. package/lib/cjs/constants/WebSocket.js +6 -9
  88. package/lib/cjs/constants/WebSocket.js.map +1 -0
  89. package/lib/{types → cjs}/hooks/useSCAuth.d.ts +0 -0
  90. package/lib/{types → cjs}/hooks/useSCAuth.d.ts.map +0 -0
  91. package/lib/cjs/hooks/useSCAuth.js +212 -282
  92. package/lib/cjs/hooks/useSCAuth.js.map +1 -0
  93. package/lib/{types → cjs}/hooks/useSCCachingManager.d.ts +0 -0
  94. package/lib/{types → cjs}/hooks/useSCCachingManager.d.ts.map +0 -0
  95. package/lib/cjs/hooks/useSCCachingManager.js +37 -51
  96. package/lib/cjs/hooks/useSCCachingManager.js.map +1 -0
  97. package/lib/{types → cjs}/hooks/useSCConnectionsManager.d.ts +0 -0
  98. package/lib/{types → cjs}/hooks/useSCConnectionsManager.d.ts.map +0 -0
  99. package/lib/cjs/hooks/useSCConnectionsManager.js +190 -254
  100. package/lib/cjs/hooks/useSCConnectionsManager.js.map +1 -0
  101. package/lib/{types → cjs}/hooks/useSCFetchAddressingTagList.d.ts +0 -0
  102. package/lib/{types → cjs}/hooks/useSCFetchAddressingTagList.d.ts.map +0 -0
  103. package/lib/cjs/hooks/useSCFetchAddressingTagList.js +64 -55
  104. package/lib/cjs/hooks/useSCFetchAddressingTagList.js.map +1 -0
  105. package/lib/{types → cjs}/hooks/useSCFetchCategories.d.ts +0 -0
  106. package/lib/{types → cjs}/hooks/useSCFetchCategories.d.ts.map +0 -0
  107. package/lib/cjs/hooks/useSCFetchCategories.js +46 -56
  108. package/lib/cjs/hooks/useSCFetchCategories.js.map +1 -0
  109. package/lib/{types → cjs}/hooks/useSCFetchCategory.d.ts +0 -0
  110. package/lib/{types → cjs}/hooks/useSCFetchCategory.d.ts.map +0 -0
  111. package/lib/cjs/hooks/useSCFetchCategory.js +44 -59
  112. package/lib/cjs/hooks/useSCFetchCategory.js.map +1 -0
  113. package/lib/{types → cjs}/hooks/useSCFetchCommentObject.d.ts +0 -0
  114. package/lib/{types → cjs}/hooks/useSCFetchCommentObject.d.ts.map +0 -0
  115. package/lib/cjs/hooks/useSCFetchCommentObject.js +44 -59
  116. package/lib/cjs/hooks/useSCFetchCommentObject.js.map +1 -0
  117. package/lib/{types → cjs}/hooks/useSCFetchCommentObjects.d.ts +0 -0
  118. package/lib/{types → cjs}/hooks/useSCFetchCommentObjects.d.ts.map +0 -0
  119. package/lib/cjs/hooks/useSCFetchCommentObjects.js +157 -254
  120. package/lib/cjs/hooks/useSCFetchCommentObjects.js.map +1 -0
  121. package/lib/{types → cjs}/hooks/useSCFetchCustomAdv.d.ts +0 -0
  122. package/lib/{types → cjs}/hooks/useSCFetchCustomAdv.d.ts.map +0 -0
  123. package/lib/cjs/hooks/useSCFetchCustomAdv.js +57 -75
  124. package/lib/cjs/hooks/useSCFetchCustomAdv.js.map +1 -0
  125. package/lib/{types → cjs}/hooks/useSCFetchFeedObject.d.ts +0 -0
  126. package/lib/{types → cjs}/hooks/useSCFetchFeedObject.d.ts.map +0 -0
  127. package/lib/cjs/hooks/useSCFetchFeedObject.js +49 -69
  128. package/lib/cjs/hooks/useSCFetchFeedObject.js.map +1 -0
  129. package/lib/{types → cjs}/hooks/useSCFetchIncubator.d.ts +0 -0
  130. package/lib/{types → cjs}/hooks/useSCFetchIncubator.d.ts.map +0 -0
  131. package/lib/cjs/hooks/useSCFetchIncubator.js +44 -59
  132. package/lib/cjs/hooks/useSCFetchIncubator.js.map +1 -0
  133. package/lib/{types → cjs}/hooks/useSCFetchTag.d.ts +0 -0
  134. package/lib/{types → cjs}/hooks/useSCFetchTag.d.ts.map +0 -0
  135. package/lib/cjs/hooks/useSCFetchTag.js +44 -59
  136. package/lib/cjs/hooks/useSCFetchTag.js.map +1 -0
  137. package/lib/{types → cjs}/hooks/useSCFetchUser.d.ts +0 -0
  138. package/lib/{types → cjs}/hooks/useSCFetchUser.d.ts.map +1 -1
  139. package/lib/cjs/hooks/useSCFetchUser.js +47 -59
  140. package/lib/cjs/hooks/useSCFetchUser.js.map +1 -0
  141. package/lib/{types → cjs}/hooks/useSCFollowedCategoriesManager.d.ts +0 -0
  142. package/lib/{types → cjs}/hooks/useSCFollowedCategoriesManager.d.ts.map +0 -0
  143. package/lib/cjs/hooks/useSCFollowedCategoriesManager.js +105 -147
  144. package/lib/cjs/hooks/useSCFollowedCategoriesManager.js.map +1 -0
  145. package/lib/{types → cjs}/hooks/useSCFollowersManager.d.ts +0 -0
  146. package/lib/{types → cjs}/hooks/useSCFollowersManager.d.ts.map +0 -0
  147. package/lib/cjs/hooks/useSCFollowersManager.js +154 -204
  148. package/lib/cjs/hooks/useSCFollowersManager.js.map +1 -0
  149. package/lib/{types → cjs}/hooks/useSCMediaClick.d.ts +0 -0
  150. package/lib/{types → cjs}/hooks/useSCMediaClick.d.ts.map +0 -0
  151. package/lib/cjs/hooks/useSCMediaClick.js +18 -25
  152. package/lib/cjs/hooks/useSCMediaClick.js.map +1 -0
  153. package/lib/{types → cjs}/hooks/useSCSubscribedIncubatorsManager.d.ts +0 -0
  154. package/lib/{types → cjs}/hooks/useSCSubscribedIncubatorsManager.d.ts.map +0 -0
  155. package/lib/cjs/hooks/useSCSubscribedIncubatorsManager.js +118 -148
  156. package/lib/cjs/hooks/useSCSubscribedIncubatorsManager.js.map +1 -0
  157. package/lib/{types → cjs}/hooks/useSCWebPushMessaging.d.ts +0 -0
  158. package/lib/{types → cjs}/hooks/useSCWebPushMessaging.d.ts.map +0 -0
  159. package/lib/cjs/hooks/useSCWebPushMessaging.js +268 -268
  160. package/lib/cjs/hooks/useSCWebPushMessaging.js.map +1 -0
  161. package/lib/{types → cjs}/hooks/useSCWebSocket.d.ts +0 -0
  162. package/lib/{types → cjs}/hooks/useSCWebSocket.d.ts.map +0 -0
  163. package/lib/cjs/hooks/useSCWebSocket.js +103 -125
  164. package/lib/cjs/hooks/useSCWebSocket.js.map +1 -0
  165. package/lib/{types → cjs}/index.d.ts +0 -0
  166. package/lib/{types → cjs}/index.d.ts.map +0 -0
  167. package/lib/cjs/index.js +131 -144
  168. package/lib/cjs/index.js.map +1 -0
  169. package/lib/cjs/themes/theme.d.ts +9 -0
  170. package/lib/cjs/themes/theme.d.ts.map +1 -0
  171. package/lib/cjs/themes/theme.js +132 -143
  172. package/lib/cjs/themes/theme.js.map +1 -0
  173. package/lib/{types → cjs}/types/context.d.ts +0 -0
  174. package/lib/{types → cjs}/types/context.d.ts.map +0 -0
  175. package/lib/cjs/types/context.js +2 -2
  176. package/lib/cjs/types/context.js.map +1 -0
  177. package/lib/{types → cjs}/types/index.d.ts +0 -0
  178. package/lib/{types → cjs}/types/index.d.ts.map +0 -0
  179. package/lib/cjs/types/index.js +2 -21
  180. package/lib/cjs/types/index.js.map +1 -0
  181. package/lib/{types → cjs}/utils/errors.d.ts +0 -0
  182. package/lib/{types → cjs}/utils/errors.d.ts.map +0 -0
  183. package/lib/cjs/utils/errors.js +138 -149
  184. package/lib/cjs/utils/errors.js.map +1 -0
  185. package/lib/{types → cjs}/utils/locale.d.ts +0 -0
  186. package/lib/{types → cjs}/utils/locale.d.ts.map +0 -0
  187. package/lib/cjs/utils/locale.js +32 -48
  188. package/lib/cjs/utils/locale.js.map +1 -0
  189. package/lib/{types → cjs}/utils/user.d.ts +0 -0
  190. package/lib/{types → cjs}/utils/user.d.ts.map +0 -0
  191. package/lib/cjs/utils/user.js +25 -40
  192. package/lib/cjs/utils/user.js.map +1 -0
  193. package/lib/{types → cjs}/utils/validator.d.ts +0 -0
  194. package/lib/{types → cjs}/utils/validator.d.ts.map +0 -0
  195. package/lib/cjs/utils/validator.js +386 -576
  196. package/lib/cjs/utils/validator.js.map +1 -0
  197. package/lib/esm/components/provider/SCAlertMessagesProvider/index.d.ts +37 -0
  198. package/lib/esm/components/provider/SCAlertMessagesProvider/index.d.ts.map +1 -0
  199. package/lib/esm/components/provider/SCAlertMessagesProvider/index.js +11 -37
  200. package/lib/esm/components/provider/SCAlertMessagesProvider/index.js.map +1 -0
  201. package/lib/esm/components/provider/SCContextProvider/index.d.ts +35 -0
  202. package/lib/esm/components/provider/SCContextProvider/index.d.ts.map +1 -0
  203. package/lib/esm/components/provider/SCContextProvider/index.js +48 -83
  204. package/lib/esm/components/provider/SCContextProvider/index.js.map +1 -0
  205. package/lib/esm/components/provider/SCLocaleProvider/index.d.ts +42 -0
  206. package/lib/esm/components/provider/SCLocaleProvider/index.d.ts.map +1 -0
  207. package/lib/esm/components/provider/SCLocaleProvider/index.js +59 -123
  208. package/lib/esm/components/provider/SCLocaleProvider/index.js.map +1 -0
  209. package/lib/esm/components/provider/SCNotificationProvider/index.d.ts +37 -0
  210. package/lib/esm/components/provider/SCNotificationProvider/index.d.ts.map +1 -0
  211. package/lib/esm/components/provider/SCNotificationProvider/index.js +12 -43
  212. package/lib/esm/components/provider/SCNotificationProvider/index.js.map +1 -0
  213. package/lib/esm/components/provider/SCPreferencesProvider/index.d.ts +38 -0
  214. package/lib/esm/components/provider/SCPreferencesProvider/index.d.ts.map +1 -0
  215. package/lib/esm/components/provider/SCPreferencesProvider/index.js +35 -64
  216. package/lib/esm/components/provider/SCPreferencesProvider/index.js.map +1 -0
  217. package/lib/esm/components/provider/SCRoutingProvider/index.d.ts +39 -0
  218. package/lib/esm/components/provider/SCRoutingProvider/index.d.ts.map +1 -0
  219. package/lib/esm/components/provider/SCRoutingProvider/index.js +78 -113
  220. package/lib/esm/components/provider/SCRoutingProvider/index.js.map +1 -0
  221. package/lib/esm/components/provider/SCThemeProvider/index.d.ts +49 -0
  222. package/lib/esm/components/provider/SCThemeProvider/index.d.ts.map +1 -0
  223. package/lib/esm/components/provider/SCThemeProvider/index.js +36 -81
  224. package/lib/esm/components/provider/SCThemeProvider/index.js.map +1 -0
  225. package/lib/esm/components/provider/SCUserProvider/index.d.ts +38 -0
  226. package/lib/esm/components/provider/SCUserProvider/index.d.ts.map +1 -0
  227. package/lib/esm/components/provider/SCUserProvider/index.js +186 -272
  228. package/lib/esm/components/provider/SCUserProvider/index.js.map +1 -0
  229. package/lib/esm/components/router/index.d.ts +34 -0
  230. package/lib/esm/components/router/index.d.ts.map +1 -0
  231. package/lib/esm/components/router/index.js +24 -50
  232. package/lib/esm/components/router/index.js.map +1 -0
  233. package/lib/esm/constants/Actions.d.ts +2 -0
  234. package/lib/esm/constants/Actions.d.ts.map +1 -0
  235. package/lib/esm/constants/Actions.js +2 -6
  236. package/lib/esm/constants/Actions.js.map +1 -0
  237. package/lib/esm/constants/ContextProviders.d.ts +6 -0
  238. package/lib/esm/constants/ContextProviders.d.ts.map +1 -0
  239. package/lib/esm/constants/ContextProviders.js +18 -26
  240. package/lib/esm/constants/ContextProviders.js.map +1 -0
  241. package/lib/esm/constants/Device.d.ts +6 -0
  242. package/lib/esm/constants/Device.d.ts.map +1 -0
  243. package/lib/esm/constants/Device.js +2 -7
  244. package/lib/esm/constants/Device.js.map +1 -0
  245. package/lib/esm/constants/Errors.d.ts +5 -0
  246. package/lib/esm/constants/Errors.d.ts.map +1 -0
  247. package/lib/esm/constants/Errors.js +2 -7
  248. package/lib/esm/constants/Errors.js.map +1 -0
  249. package/lib/esm/constants/Features.d.ts +41 -0
  250. package/lib/esm/constants/Features.d.ts.map +1 -0
  251. package/lib/esm/constants/Features.js +41 -84
  252. package/lib/esm/constants/Features.js.map +1 -0
  253. package/lib/esm/constants/Locale.d.ts +8 -0
  254. package/lib/esm/constants/Locale.d.ts.map +1 -0
  255. package/lib/esm/constants/Locale.js +8 -18
  256. package/lib/esm/constants/Locale.js.map +1 -0
  257. package/lib/esm/constants/Notification.d.ts +55 -0
  258. package/lib/esm/constants/Notification.d.ts.map +1 -0
  259. package/lib/esm/constants/Notification.js +42 -54
  260. package/lib/esm/constants/Notification.js.map +1 -0
  261. package/lib/esm/constants/Notifications.d.ts +11 -0
  262. package/lib/esm/constants/Notifications.d.ts.map +1 -0
  263. package/lib/esm/constants/Notifications.js +9 -26
  264. package/lib/esm/constants/Notifications.js.map +1 -0
  265. package/lib/esm/constants/Preferences.d.ts +201 -0
  266. package/lib/esm/constants/Preferences.d.ts.map +1 -0
  267. package/lib/esm/constants/Preferences.js +181 -296
  268. package/lib/esm/constants/Preferences.js.map +1 -0
  269. package/lib/esm/constants/Routes.d.ts +29 -0
  270. package/lib/esm/constants/Routes.d.ts.map +1 -0
  271. package/lib/esm/constants/Routes.js +36 -60
  272. package/lib/esm/constants/Routes.js.map +1 -0
  273. package/lib/esm/constants/Session.d.ts +10 -0
  274. package/lib/esm/constants/Session.d.ts.map +1 -0
  275. package/lib/esm/constants/Session.js +10 -22
  276. package/lib/esm/constants/Session.js.map +1 -0
  277. package/lib/esm/constants/Theme.d.ts +2 -0
  278. package/lib/esm/constants/Theme.d.ts.map +1 -0
  279. package/lib/esm/constants/Theme.js +2 -6
  280. package/lib/esm/constants/Theme.js.map +1 -0
  281. package/lib/esm/constants/WebSocket.d.ts +4 -0
  282. package/lib/esm/constants/WebSocket.d.ts.map +1 -0
  283. package/lib/esm/constants/WebSocket.js +4 -10
  284. package/lib/esm/constants/WebSocket.js.map +1 -0
  285. package/lib/esm/hooks/useSCAuth.d.ts +56 -0
  286. package/lib/esm/hooks/useSCAuth.d.ts.map +1 -0
  287. package/lib/esm/hooks/useSCAuth.js +185 -285
  288. package/lib/esm/hooks/useSCAuth.js.map +1 -0
  289. package/lib/esm/hooks/useSCCachingManager.d.ts +19 -0
  290. package/lib/esm/hooks/useSCCachingManager.d.ts.map +1 -0
  291. package/lib/esm/hooks/useSCCachingManager.js +36 -53
  292. package/lib/esm/hooks/useSCCachingManager.js.map +1 -0
  293. package/lib/esm/hooks/useSCConnectionsManager.d.ts +40 -0
  294. package/lib/esm/hooks/useSCConnectionsManager.d.ts.map +1 -0
  295. package/lib/esm/hooks/useSCConnectionsManager.js +186 -256
  296. package/lib/esm/hooks/useSCConnectionsManager.js.map +1 -0
  297. package/lib/esm/hooks/useSCFetchAddressingTagList.d.ts +14 -0
  298. package/lib/esm/hooks/useSCFetchAddressingTagList.d.ts.map +1 -0
  299. package/lib/esm/hooks/useSCFetchAddressingTagList.js +39 -56
  300. package/lib/esm/hooks/useSCFetchAddressingTagList.js.map +1 -0
  301. package/lib/esm/hooks/useSCFetchCategories.d.ts +17 -0
  302. package/lib/esm/hooks/useSCFetchCategories.d.ts.map +1 -0
  303. package/lib/esm/hooks/useSCFetchCategories.js +45 -57
  304. package/lib/esm/hooks/useSCFetchCategories.js.map +1 -0
  305. package/lib/esm/hooks/useSCFetchCategory.d.ts +19 -0
  306. package/lib/esm/hooks/useSCFetchCategory.d.ts.map +1 -0
  307. package/lib/esm/hooks/useSCFetchCategory.js +42 -60
  308. package/lib/esm/hooks/useSCFetchCategory.js.map +1 -0
  309. package/lib/esm/hooks/useSCFetchCommentObject.d.ts +19 -0
  310. package/lib/esm/hooks/useSCFetchCommentObject.d.ts.map +1 -0
  311. package/lib/esm/hooks/useSCFetchCommentObject.js +42 -60
  312. package/lib/esm/hooks/useSCFetchCommentObject.js.map +1 -0
  313. package/lib/esm/hooks/useSCFetchCommentObjects.d.ts +53 -0
  314. package/lib/esm/hooks/useSCFetchCommentObjects.d.ts.map +1 -0
  315. package/lib/esm/hooks/useSCFetchCommentObjects.js +153 -257
  316. package/lib/esm/hooks/useSCFetchCommentObjects.js.map +1 -0
  317. package/lib/esm/hooks/useSCFetchCustomAdv.d.ts +19 -0
  318. package/lib/esm/hooks/useSCFetchCustomAdv.d.ts.map +1 -0
  319. package/lib/esm/hooks/useSCFetchCustomAdv.js +55 -76
  320. package/lib/esm/hooks/useSCFetchCustomAdv.js.map +1 -0
  321. package/lib/esm/hooks/useSCFetchFeedObject.d.ts +21 -0
  322. package/lib/esm/hooks/useSCFetchFeedObject.d.ts.map +1 -0
  323. package/lib/esm/hooks/useSCFetchFeedObject.js +47 -70
  324. package/lib/esm/hooks/useSCFetchFeedObject.js.map +1 -0
  325. package/lib/esm/hooks/useSCFetchIncubator.d.ts +19 -0
  326. package/lib/esm/hooks/useSCFetchIncubator.d.ts.map +1 -0
  327. package/lib/esm/hooks/useSCFetchIncubator.js +42 -60
  328. package/lib/esm/hooks/useSCFetchIncubator.js.map +1 -0
  329. package/lib/esm/hooks/useSCFetchTag.d.ts +19 -0
  330. package/lib/esm/hooks/useSCFetchTag.d.ts.map +1 -0
  331. package/lib/esm/hooks/useSCFetchTag.js +42 -60
  332. package/lib/esm/hooks/useSCFetchTag.js.map +1 -0
  333. package/lib/esm/hooks/useSCFetchUser.d.ts +19 -0
  334. package/lib/esm/hooks/useSCFetchUser.d.ts.map +1 -0
  335. package/lib/esm/hooks/useSCFetchUser.js +45 -60
  336. package/lib/esm/hooks/useSCFetchUser.js.map +1 -0
  337. package/lib/esm/hooks/useSCFollowedCategoriesManager.d.ts +37 -0
  338. package/lib/esm/hooks/useSCFollowedCategoriesManager.d.ts.map +1 -0
  339. package/lib/esm/hooks/useSCFollowedCategoriesManager.js +101 -149
  340. package/lib/esm/hooks/useSCFollowedCategoriesManager.js.map +1 -0
  341. package/lib/esm/hooks/useSCFollowersManager.d.ts +37 -0
  342. package/lib/esm/hooks/useSCFollowersManager.d.ts.map +1 -0
  343. package/lib/esm/hooks/useSCFollowersManager.js +150 -206
  344. package/lib/esm/hooks/useSCFollowersManager.js.map +1 -0
  345. package/lib/esm/hooks/useSCMediaClick.d.ts +4 -0
  346. package/lib/esm/hooks/useSCMediaClick.d.ts.map +1 -0
  347. package/lib/esm/hooks/useSCMediaClick.js +17 -27
  348. package/lib/esm/hooks/useSCMediaClick.js.map +1 -0
  349. package/lib/esm/hooks/useSCSubscribedIncubatorsManager.d.ts +27 -0
  350. package/lib/esm/hooks/useSCSubscribedIncubatorsManager.d.ts.map +1 -0
  351. package/lib/esm/hooks/useSCSubscribedIncubatorsManager.js +114 -150
  352. package/lib/esm/hooks/useSCSubscribedIncubatorsManager.js.map +1 -0
  353. package/lib/esm/hooks/useSCWebPushMessaging.d.ts +9 -0
  354. package/lib/esm/hooks/useSCWebPushMessaging.d.ts.map +1 -0
  355. package/lib/esm/hooks/useSCWebPushMessaging.js +244 -270
  356. package/lib/esm/hooks/useSCWebPushMessaging.js.map +1 -0
  357. package/lib/esm/hooks/useSCWebSocket.d.ts +12 -0
  358. package/lib/esm/hooks/useSCWebSocket.d.ts.map +1 -0
  359. package/lib/esm/hooks/useSCWebSocket.js +99 -127
  360. package/lib/esm/hooks/useSCWebSocket.js.map +1 -0
  361. package/lib/esm/index.d.ts +73 -0
  362. package/lib/esm/index.d.ts.map +1 -0
  363. package/lib/esm/index.js +69 -151
  364. package/lib/esm/index.js.map +1 -0
  365. package/lib/esm/themes/theme.d.ts +9 -0
  366. package/lib/esm/themes/theme.d.ts.map +1 -0
  367. package/lib/esm/themes/theme.js +128 -144
  368. package/lib/esm/themes/theme.js.map +1 -0
  369. package/lib/esm/types/context.d.ts +428 -0
  370. package/lib/esm/types/context.d.ts.map +1 -0
  371. package/lib/esm/types/context.js +2 -3
  372. package/lib/esm/types/context.js.map +1 -0
  373. package/lib/esm/types/index.d.ts +3 -0
  374. package/lib/esm/types/index.d.ts.map +1 -0
  375. package/lib/esm/types/index.js +2 -22
  376. package/lib/esm/types/index.js.map +1 -0
  377. package/lib/esm/utils/errors.d.ts +98 -0
  378. package/lib/esm/utils/errors.d.ts.map +1 -0
  379. package/lib/esm/utils/errors.js +114 -155
  380. package/lib/esm/utils/errors.js.map +1 -0
  381. package/lib/esm/utils/locale.d.ts +10 -0
  382. package/lib/esm/utils/locale.d.ts.map +1 -0
  383. package/lib/esm/utils/locale.js +27 -50
  384. package/lib/esm/utils/locale.js.map +1 -0
  385. package/lib/esm/utils/user.d.ts +41 -0
  386. package/lib/esm/utils/user.d.ts.map +1 -0
  387. package/lib/esm/utils/user.js +23 -46
  388. package/lib/esm/utils/user.js.map +1 -0
  389. package/lib/esm/utils/validator.d.ts +239 -0
  390. package/lib/esm/utils/validator.d.ts.map +1 -0
  391. package/lib/esm/utils/validator.js +352 -588
  392. package/lib/esm/utils/validator.js.map +1 -0
  393. package/lib/umd/react-core.js +1 -1
  394. package/package.json +9 -11
  395. package/lib/types/tsconfig.build.tsbuildinfo +0 -1
@@ -1,135 +1,107 @@
1
- "use strict";
2
-
3
- exports.__esModule = true;
4
- exports.default = useSCWebSocket;
5
-
6
- var _react = require("react");
7
-
8
- var _types = require("@selfcommunity/types");
9
-
10
- var _SCContextProvider = require("../components/provider/SCContextProvider");
11
-
12
- var _SCUserProvider = require("../components/provider/SCUserProvider");
13
-
14
- var _utils = require("@selfcommunity/utils");
15
-
16
- var _Notification = require("../constants/Notification");
17
-
18
- var _WebSocket = require("../constants/WebSocket");
19
-
20
- var _pubsubJs = _interopRequireDefault(require("pubsub-js"));
21
-
22
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
23
-
1
+ import { useEffect, useState } from 'react';
2
+ import { SCNotificationTopicType, SCNotificationTypologyType } from '@selfcommunity/types';
3
+ import { useSCContext } from '../components/provider/SCContextProvider';
4
+ import { useSCUser } from '../components/provider/SCUserProvider';
5
+ import { WSClient } from '@selfcommunity/utils';
6
+ import { SCNotificationMapping, SCNotificationTopics } from '../constants/Notification';
7
+ import { WS_FACILITY_NOTIFY, WS_PROTOCOL_PREFIX, WS_HEARTBEAT_MESSAGE } from '../constants/WebSocket';
8
+ import PubSub from 'pubsub-js';
24
9
  /**
25
10
  :::info
26
11
  This custom hook is used to to init web socket.
27
12
  :::
28
13
  */
29
- function useSCWebSocket() {
30
- const scContext = (0, _SCContextProvider.useSCContext)();
31
- const scUserContext = (0, _SCUserProvider.useSCUser)();
32
- const [wsInstance, setWsInstance] = (0, _react.useState)(null); // Websocket uri and protocols
33
-
34
- const _wsUri = `wss://${new URL(scContext.settings.portal).hostname}/ws/${_WebSocket.WS_FACILITY_NOTIFY}?subscribe-user`;
35
-
36
- const _wsProtocol = scContext.settings.session.authToken && scContext.settings.session.authToken.accessToken ? `${_WebSocket.WS_PROTOCOL_PREFIX}${scContext.settings.session.authToken.accessToken}` : null;
37
- /**
38
- * Before document unload handler
39
- * Close webSocket
40
- */
41
-
42
-
43
- const handleBeforeUnload = () => {
44
- wsInstance && wsInstance.close();
45
- };
46
- /**
47
- * Check if there is a currently active session and a
48
- * wsInstance connection when the provider is mounted for the first time.
49
- * If there is an error, it means there is no session.
50
- */
51
-
52
-
53
- (0, _react.useEffect)(() => {
54
- if (scUserContext.user && !wsInstance && _wsUri && _wsProtocol) {
55
- setWsInstance(_utils.WSClient.getInstance({
56
- uri: _wsUri,
57
- heartbeatMsg: _WebSocket.WS_HEARTBEAT_MESSAGE,
58
- protocols: [_wsProtocol],
59
- receiveMessage: receiveMessage
60
- })); // Close the socket channel before window unload
61
-
62
- window.addEventListener('beforeunload', handleBeforeUnload);
63
- }
64
-
65
- if (!scUserContext.user && wsInstance) {
66
- // Disconnect the socket
67
- window.removeEventListener('beforeunload', handleBeforeUnload);
68
- wsInstance && wsInstance.close();
69
- }
70
- }, [scUserContext.user]);
71
- /**
72
- * Receive a message from wsInstance.
73
- */
74
-
75
- const receiveMessage = data => {
76
- // receive a message though the websocket from the server
77
- let _data = JSON.parse(data);
78
-
79
- if (_data && _data.type && _Notification.SCNotificationTopics.includes(_data.type)) {
80
- if (_data.type === _types.SCNotificationTopicType.INTERACTION) {
81
- /**
82
- * With topic interaction there are two types of notifications group:
83
- * - notification_banner
84
- * - comment, nested_comment, follow, etc..
85
- */
86
- if (_data.data.activity_type === _types.SCNotificationTypologyType.NOTIFICATION_BANNER) {
87
- /**
88
- * Notification of type 'notification_banner'
89
- * It is a special case of notifications with topic 'interaction'
90
- */
91
- _pubsubJs.default.publish(`${_data.type}.${_types.SCNotificationTypologyType.NOTIFICATION_BANNER}`, _data);
92
- } else if (_Notification.SCNotificationMapping[_data.data.activity_type]) {
93
- /**
94
- * Notification of type 'comment', 'nested_comment', etc...
95
- */
96
- _pubsubJs.default.publish(`${_data.type}.${_Notification.SCNotificationMapping[_data.data.activity_type]}`, _data);
14
+ export default function useSCWebSocket() {
15
+ const scContext = useSCContext();
16
+ const scUserContext = useSCUser();
17
+ const [wsInstance, setWsInstance] = useState(null);
18
+ // Websocket uri and protocols
19
+ const _wsUri = `wss://${new URL(scContext.settings.portal).hostname}/ws/${WS_FACILITY_NOTIFY}?subscribe-user`;
20
+ const _wsProtocol = scContext.settings.session.authToken && scContext.settings.session.authToken.accessToken
21
+ ? `${WS_PROTOCOL_PREFIX}${scContext.settings.session.authToken.accessToken}`
22
+ : null;
23
+ /**
24
+ * Before document unload handler
25
+ * Close webSocket
26
+ */
27
+ const handleBeforeUnload = () => {
28
+ wsInstance && wsInstance.close();
29
+ };
30
+ /**
31
+ * Check if there is a currently active session and a
32
+ * wsInstance connection when the provider is mounted for the first time.
33
+ * If there is an error, it means there is no session.
34
+ */
35
+ useEffect(() => {
36
+ if (scUserContext.user && !wsInstance && _wsUri && _wsProtocol) {
37
+ setWsInstance(WSClient.getInstance({
38
+ uri: _wsUri,
39
+ heartbeatMsg: WS_HEARTBEAT_MESSAGE,
40
+ protocols: [_wsProtocol],
41
+ receiveMessage: receiveMessage,
42
+ }));
43
+ // Close the socket channel before window unload
44
+ window.addEventListener('beforeunload', handleBeforeUnload);
45
+ }
46
+ if (!scUserContext.user && wsInstance) {
47
+ // Disconnect the socket
48
+ window.removeEventListener('beforeunload', handleBeforeUnload);
49
+ wsInstance && wsInstance.close();
97
50
  }
98
-
99
- setNotificationCounters(_data.data);
100
- } else {
101
- _pubsubJs.default.publish(`${_data.type}`, _data);
102
- }
103
- }
104
- };
105
- /**
106
- * Update user context counters
107
- * @param payload
108
- */
109
-
110
-
111
- const setNotificationCounters = payload => {
51
+ }, [scUserContext.user]);
112
52
  /**
113
- * The counter count_interactions includes pure interactions and notification banners,
114
- * so unseen_interactions_counter = payload.count_interactions - payload.count_notification_banners
115
- * if payload.count_notification_banners exists (was added later in the payload of the message ws)
53
+ * Receive a message from wsInstance.
116
54
  */
117
- let unseen_interactions_counter = 0;
118
-
119
- if (payload.count_interactions !== undefined) {
120
- unseen_interactions_counter = payload.count_interactions;
121
- }
122
-
123
- if (payload.count_notification_banners !== undefined) {
124
- unseen_interactions_counter = Math.max(unseen_interactions_counter - payload.count_notification_banners, 0);
125
- scUserContext.setUnseenInteractionsCounter(payload.count_notification_banners);
126
- }
127
-
128
- payload.count_interactions !== undefined && scUserContext.setUnseenInteractionsCounter(unseen_interactions_counter);
129
- };
130
-
131
- return {
132
- wsInstance,
133
- setWsInstance
134
- };
135
- }
55
+ const receiveMessage = (data) => {
56
+ // receive a message though the websocket from the server
57
+ let _data = JSON.parse(data);
58
+ if (_data && _data.type && SCNotificationTopics.includes(_data.type)) {
59
+ if (_data.type === SCNotificationTopicType.INTERACTION) {
60
+ /**
61
+ * With topic interaction there are two types of notifications group:
62
+ * - notification_banner
63
+ * - comment, nested_comment, follow, etc..
64
+ */
65
+ if (_data.data.activity_type === SCNotificationTypologyType.NOTIFICATION_BANNER) {
66
+ /**
67
+ * Notification of type 'notification_banner'
68
+ * It is a special case of notifications with topic 'interaction'
69
+ */
70
+ PubSub.publish(`${_data.type}.${SCNotificationTypologyType.NOTIFICATION_BANNER}`, _data);
71
+ }
72
+ else if (SCNotificationMapping[_data.data.activity_type]) {
73
+ /**
74
+ * Notification of type 'comment', 'nested_comment', etc...
75
+ */
76
+ PubSub.publish(`${_data.type}.${SCNotificationMapping[_data.data.activity_type]}`, _data);
77
+ }
78
+ setNotificationCounters(_data.data);
79
+ }
80
+ else {
81
+ PubSub.publish(`${_data.type}`, _data);
82
+ }
83
+ }
84
+ };
85
+ /**
86
+ * Update user context counters
87
+ * @param payload
88
+ */
89
+ const setNotificationCounters = (payload) => {
90
+ /**
91
+ * The counter count_interactions includes pure interactions and notification banners,
92
+ * so unseen_interactions_counter = payload.count_interactions - payload.count_notification_banners
93
+ * if payload.count_notification_banners exists (was added later in the payload of the message ws)
94
+ */
95
+ let unseen_interactions_counter = 0;
96
+ if (payload.count_interactions !== undefined) {
97
+ unseen_interactions_counter = payload.count_interactions;
98
+ }
99
+ if (payload.count_notification_banners !== undefined) {
100
+ unseen_interactions_counter = Math.max(unseen_interactions_counter - payload.count_notification_banners, 0);
101
+ scUserContext.setUnseenInteractionsCounter(payload.count_notification_banners);
102
+ }
103
+ payload.count_interactions !== undefined && scUserContext.setUnseenInteractionsCounter(unseen_interactions_counter);
104
+ };
105
+ return { wsInstance, setWsInstance };
106
+ }
107
+ //# sourceMappingURL=useSCWebSocket.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useSCWebSocket.js","sourceRoot":"","sources":["../../../src/hooks/useSCWebSocket.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAE,QAAQ,EAAC,MAAM,OAAO,CAAC;AAE1C,OAAO,EAAC,uBAAuB,EAAE,0BAA0B,EAAC,MAAM,sBAAsB,CAAC;AACzF,OAAO,EAAC,YAAY,EAAC,MAAM,0CAA0C,CAAC;AACtE,OAAO,EAAC,SAAS,EAAC,MAAM,uCAAuC,CAAC;AAEhE,OAAO,EAAC,QAAQ,EAAC,MAAM,sBAAsB,CAAC;AAC9C,OAAO,EAAC,qBAAqB,EAAE,oBAAoB,EAAC,MAAM,2BAA2B,CAAC;AACtF,OAAO,EAAC,kBAAkB,EAAE,kBAAkB,EAAE,oBAAoB,EAAC,MAAM,wBAAwB,CAAC;AACpG,OAAO,MAAM,MAAM,WAAW,CAAC;AAE/B;;;;GAIG;AACH,MAAM,CAAC,OAAO,UAAU,cAAc;IACpC,MAAM,SAAS,GAAkB,YAAY,EAAE,CAAC;IAChD,MAAM,aAAa,GAAsB,SAAS,EAAE,CAAC;IACrD,MAAM,CAAC,UAAU,EAAE,aAAa,CAAC,GAAG,QAAQ,CAAe,IAAI,CAAC,CAAC;IAEjE,8BAA8B;IAC9B,MAAM,MAAM,GAAG,SAAS,IAAI,GAAG,CAAC,SAAS,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,QAAQ,OAAO,kBAAkB,iBAAiB,CAAC;IAC9G,MAAM,WAAW,GACf,SAAS,CAAC,QAAQ,CAAC,OAAO,CAAC,SAAS,IAAI,SAAS,CAAC,QAAQ,CAAC,OAAO,CAAC,SAAS,CAAC,WAAW;QACtF,CAAC,CAAC,GAAG,kBA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2
+ * Types
3
+ */
4
+ import { SCUserContextType, SCFollowedCategoriesManagerType, SCContextProviderType, SCContextType, SCSettingsType, SCSessionType, SCFollowedManagerType, SCConnectionsManagerType, SCSubscribedIncubatorsManagerType, SCLocaleType, SCNotificationContextType, SCPreferencesContextType, SCThemeContextType, SCRoutingContextType, SCLocaleContextType, SCAlertMessagesContextType } from './types';
5
+ /**
6
+ * ContextProvider component
7
+ */
8
+ import SCContextProvider, { SCContext, useSCContext } from './components/provider/SCContextProvider';
9
+ /**
10
+ * AuthProvider component
11
+ */
12
+ import SCUserProvider, { SCUserContext, useSCUser } from './components/provider/SCUserProvider';
13
+ /**
14
+ * ThemeProvider component
15
+ */
16
+ import SCThemeProvider, { SCThemeContext, useSCTheme, withSCTheme } from './components/provider/SCThemeProvider';
17
+ /**
18
+ * RoutingProvider component
19
+ */
20
+ import SCRoutingProvider, { SCRoutingContext, useSCRouting } from './components/provider/SCRoutingProvider';
21
+ /**
22
+ * LocaleProvider component
23
+ */
24
+ import SCLocaleProvider, { SCLocaleContext, useSCLocale, withSCLocale } from './components/provider/SCLocaleProvider';
25
+ /**
26
+ * NotificationProvider component
27
+ */
28
+ import SCNotificationProvider, { SCNotificationContext, useSCNotification } from './components/provider/SCNotificationProvider';
29
+ /**
30
+ * AlertMessagesProvider component
31
+ */
32
+ import SCAlertMessagesProvider, { SCAlertMessagesContext, useSCAlertMessages } from './components/provider/SCAlertMessagesProvider';
33
+ /**
34
+ * PreferencesProvider component
35
+ */
36
+ import SCPreferencesProvider, { SCPreferencesContext, useSCPreferences } from './components/provider/SCPreferencesProvider';
37
+ import * as SCPreferences from './constants/Preferences';
38
+ import * as SCFeatures from './constants/Features';
39
+ import * as SCNotification from './constants/Notification';
40
+ /**
41
+ * Custom Hooks
42
+ */
43
+ import useSCFetchUser from './hooks/useSCFetchUser';
44
+ import useSCFetchFeedObject from './hooks/useSCFetchFeedObject';
45
+ import useSCFetchCommentObject from './hooks/useSCFetchCommentObject';
46
+ import useSCFetchCommentObjects from './hooks/useSCFetchCommentObjects';
47
+ import useSCFetchCustomAdv from './hooks/useSCFetchCustomAdv';
48
+ import useSCFetchTag from './hooks/useSCFetchTag';
49
+ import useSCFetchAddressingTagList from './hooks/useSCFetchAddressingTagList';
50
+ import useSCFetchCategory from './hooks/useSCFetchCategory';
51
+ import useSCFetchCategories from './hooks/useSCFetchCategories';
52
+ import useSCFetchIncubator from './hooks/useSCFetchIncubator';
53
+ import useSCMediaClick from './hooks/useSCMediaClick';
54
+ /**
55
+ * Routing component
56
+ */
57
+ import Link from './components/router';
58
+ import * as SCRoutes from './constants/Routes';
59
+ /**
60
+ * Utilities:
61
+ * User
62
+ */
63
+ import * as UserUtils from './utils/user';
64
+ /**
65
+ * Constants:
66
+ * Locale
67
+ */
68
+ import * as Locale from './constants/Locale';
69
+ /**
70
+ * List all exports
71
+ */
72
+ export { SCUserContextType, SCFollowedCategoriesManagerType, SCContextProviderType, SCContextType, SCSettingsType, SCSessionType, SCFollowedManagerType, SCConnectionsManagerType, SCSubscribedIncubatorsManagerType, SCLocaleType, SCNotificationContextType, SCPreferencesContextType, SCThemeContextType, SCRoutingContextType, SCLocaleContextType, SCAlertMessagesContextType, SCContext, SCUserContext, SCThemeContext, SCRoutingContext, SCLocaleContext, SCPreferencesContext, useSCContext, SCContextProvider, SCUserProvider, useSCUser, useSCPreferences, SCThemeProvider, useSCTheme, withSCTheme, SCRoutingProvider, useSCRouting, SCLocaleProvider, useSCLocale, withSCLocale, SCPreferencesProvider, SCPreferences, SCFeatures, SCNotification, SCNotificationProvider, SCNotificationContext, useSCNotification, SCAlertMessagesProvider, SCAlertMessagesContext, useSCAlertMessages, Link, SCRoutes, UserUtils, Locale, useSCFetchUser, useSCFetchFeedObject, useSCFetchCommentObject, useSCFetchCommentObjects, useSCFetchCustomAdv, useSCFetchTag, useSCFetchAddressingTagList, useSCFetchCategory, useSCFetchCategories, useSCFetchIncubator, useSCMediaClick };
73
+ //# sourceMappingURL=index.d.ts.map
@@ -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rB,iBAAiB,EACjB,uBAAuB,EACvB,sBAAsB,EACtB,kBAAkB,EAClB,IAAI,EACJ,QAAQ,EACR,SAAS,EACT,MAAM,EACN,cAAc,EACd,oBAAoB,EACpB,uBAAuB,EACvB,wBAAwB,EACxB,mBAAmB,EACnB,aAAa,EACb,2BAA2B,EAC3B,kBAAkB,EAClB,oBAAoB,EACpB,mBAAmB,EACnB,eAAe,EAChB,CAAC"}
package/lib/esm/index.js CHANGED
@@ -1,151 +1,69 @@
1
- "use strict";
2
-
3
- exports.__esModule = true;
4
- exports.UserUtils = exports.SCRoutes = exports.SCPreferences = exports.SCNotification = exports.SCFeatures = exports.Locale = void 0;
5
-
6
- var _types = require("./types");
7
-
8
- exports.SCUserContextType = _types.SCUserContextType;
9
- exports.SCFollowedCategoriesManagerType = _types.SCFollowedCategoriesManagerType;
10
- exports.SCContextProviderType = _types.SCContextProviderType;
11
- exports.SCContextType = _types.SCContextType;
12
- exports.SCSettingsType = _types.SCSettingsType;
13
- exports.SCSessionType = _types.SCSessionType;
14
- exports.SCFollowedManagerType = _types.SCFollowedManagerType;
15
- exports.SCConnectionsManagerType = _types.SCConnectionsManagerType;
16
- exports.SCSubscribedIncubatorsManagerType = _types.SCSubscribedIncubatorsManagerType;
17
- exports.SCLocaleType = _types.SCLocaleType;
18
- exports.SCNotificationContextType = _types.SCNotificationContextType;
19
- exports.SCPreferencesContextType = _types.SCPreferencesContextType;
20
- exports.SCThemeContextType = _types.SCThemeContextType;
21
- exports.SCRoutingContextType = _types.SCRoutingContextType;
22
- exports.SCLocaleContextType = _types.SCLocaleContextType;
23
- exports.SCAlertMessagesContextType = _types.SCAlertMessagesContextType;
24
-
25
- var _SCContextProvider = _interopRequireWildcard(require("./components/provider/SCContextProvider"));
26
-
27
- exports.SCContextProvider = _SCContextProvider.default;
28
- exports.SCContext = _SCContextProvider.SCContext;
29
- exports.useSCContext = _SCContextProvider.useSCContext;
30
-
31
- var _SCUserProvider = _interopRequireWildcard(require("./components/provider/SCUserProvider"));
32
-
33
- exports.SCUserProvider = _SCUserProvider.default;
34
- exports.SCUserContext = _SCUserProvider.SCUserContext;
35
- exports.useSCUser = _SCUserProvider.useSCUser;
36
-
37
- var _SCThemeProvider = _interopRequireWildcard(require("./components/provider/SCThemeProvider"));
38
-
39
- exports.SCThemeProvider = _SCThemeProvider.default;
40
- exports.SCThemeContext = _SCThemeProvider.SCThemeContext;
41
- exports.useSCTheme = _SCThemeProvider.useSCTheme;
42
- exports.withSCTheme = _SCThemeProvider.withSCTheme;
43
-
44
- var _SCRoutingProvider = _interopRequireWildcard(require("./components/provider/SCRoutingProvider"));
45
-
46
- exports.SCRoutingProvider = _SCRoutingProvider.default;
47
- exports.SCRoutingContext = _SCRoutingProvider.SCRoutingContext;
48
- exports.useSCRouting = _SCRoutingProvider.useSCRouting;
49
-
50
- var _SCLocaleProvider = _interopRequireWildcard(require("./components/provider/SCLocaleProvider"));
51
-
52
- exports.SCLocaleProvider = _SCLocaleProvider.default;
53
- exports.SCLocaleContext = _SCLocaleProvider.SCLocaleContext;
54
- exports.useSCLocale = _SCLocaleProvider.useSCLocale;
55
- exports.withSCLocale = _SCLocaleProvider.withSCLocale;
56
-
57
- var _SCNotificationProvider = _interopRequireWildcard(require("./components/provider/SCNotificationProvider"));
58
-
59
- exports.SCNotificationProvider = _SCNotificationProvider.default;
60
- exports.SCNotificationContext = _SCNotificationProvider.SCNotificationContext;
61
- exports.useSCNotification = _SCNotificationProvider.useSCNotification;
62
-
63
- var _SCAlertMessagesProvider = _interopRequireWildcard(require("./components/provider/SCAlertMessagesProvider"));
64
-
65
- exports.SCAlertMessagesProvider = _SCAlertMessagesProvider.default;
66
- exports.SCAlertMessagesContext = _SCAlertMessagesProvider.SCAlertMessagesContext;
67
- exports.useSCAlertMessages = _SCAlertMessagesProvider.useSCAlertMessages;
68
-
69
- var _SCPreferencesProvider = _interopRequireWildcard(require("./components/provider/SCPreferencesProvider"));
70
-
71
- exports.SCPreferencesProvider = _SCPreferencesProvider.default;
72
- exports.SCPreferencesContext = _SCPreferencesProvider.SCPreferencesContext;
73
- exports.useSCPreferences = _SCPreferencesProvider.useSCPreferences;
74
-
75
- var SCPreferences = _interopRequireWildcard(require("./constants/Preferences"));
76
-
77
- exports.SCPreferences = SCPreferences;
78
-
79
- var SCFeatures = _interopRequireWildcard(require("./constants/Features"));
80
-
81
- exports.SCFeatures = SCFeatures;
82
-
83
- var SCNotification = _interopRequireWildcard(require("./constants/Notification"));
84
-
85
- exports.SCNotification = SCNotification;
86
-
87
- var _useSCFetchUser = _interopRequireDefault(require("./hooks/useSCFetchUser"));
88
-
89
- exports.useSCFetchUser = _useSCFetchUser.default;
90
-
91
- var _useSCFetchFeedObject = _interopRequireDefault(require("./hooks/useSCFetchFeedObject"));
92
-
93
- exports.useSCFetchFeedObject = _useSCFetchFeedObject.default;
94
-
95
- var _useSCFetchCommentObject = _interopRequireDefault(require("./hooks/useSCFetchCommentObject"));
96
-
97
- exports.useSCFetchCommentObject = _useSCFetchCommentObject.default;
98
-
99
- var _useSCFetchCommentObjects = _interopRequireDefault(require("./hooks/useSCFetchCommentObjects"));
100
-
101
- exports.useSCFetchCommentObjects = _useSCFetchCommentObjects.default;
102
-
103
- var _useSCFetchCustomAdv = _interopRequireDefault(require("./hooks/useSCFetchCustomAdv"));
104
-
105
- exports.useSCFetchCustomAdv = _useSCFetchCustomAdv.default;
106
-
107
- var _useSCFetchTag = _interopRequireDefault(require("./hooks/useSCFetchTag"));
108
-
109
- exports.useSCFetchTag = _useSCFetchTag.default;
110
-
111
- var _useSCFetchAddressingTagList = _interopRequireDefault(require("./hooks/useSCFetchAddressingTagList"));
112
-
113
- exports.useSCFetchAddressingTagList = _useSCFetchAddressingTagList.default;
114
-
115
- var _useSCFetchCategory = _interopRequireDefault(require("./hooks/useSCFetchCategory"));
116
-
117
- exports.useSCFetchCategory = _useSCFetchCategory.default;
118
-
119
- var _useSCFetchCategories = _interopRequireDefault(require("./hooks/useSCFetchCategories"));
120
-
121
- exports.useSCFetchCategories = _useSCFetchCategories.default;
122
-
123
- var _useSCFetchIncubator = _interopRequireDefault(require("./hooks/useSCFetchIncubator"));
124
-
125
- exports.useSCFetchIncubator = _useSCFetchIncubator.default;
126
-
127
- var _useSCMediaClick = _interopRequireDefault(require("./hooks/useSCMediaClick"));
128
-
129
- exports.useSCMediaClick = _useSCMediaClick.default;
130
-
131
- var _router = _interopRequireDefault(require("./components/router"));
132
-
133
- exports.Link = _router.default;
134
-
135
- var SCRoutes = _interopRequireWildcard(require("./constants/Routes"));
136
-
137
- exports.SCRoutes = SCRoutes;
138
-
139
- var UserUtils = _interopRequireWildcard(require("./utils/user"));
140
-
141
- exports.UserUtils = UserUtils;
142
-
143
- var Locale = _interopRequireWildcard(require("./constants/Locale"));
144
-
145
- exports.Locale = Locale;
146
-
147
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
148
-
149
- function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
150
-
151
- function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
1
+ /**
2
+ * ContextProvider component
3
+ */
4
+ import SCContextProvider, { SCContext, useSCContext } from './components/provider/SCContextProvider';
5
+ /**
6
+ * AuthProvider component
7
+ */
8
+ import SCUserProvider, { SCUserContext, useSCUser } from './components/provider/SCUserProvider';
9
+ /**
10
+ * ThemeProvider component
11
+ */
12
+ import SCThemeProvider, { SCThemeContext, useSCTheme, withSCTheme } from './components/provider/SCThemeProvider';
13
+ /**
14
+ * RoutingProvider component
15
+ */
16
+ import SCRoutingProvider, { SCRoutingContext, useSCRouting } from './components/provider/SCRoutingProvider';
17
+ /**
18
+ * LocaleProvider component
19
+ */
20
+ import SCLocaleProvider, { SCLocaleContext, useSCLocale, withSCLocale } from './components/provider/SCLocaleProvider';
21
+ /**
22
+ * NotificationProvider component
23
+ */
24
+ import SCNotificationProvider, { SCNotificationContext, useSCNotification } from './components/provider/SCNotificationProvider';
25
+ /**
26
+ * AlertMessagesProvider component
27
+ */
28
+ import SCAlertMessagesProvider, { SCAlertMessagesContext, useSCAlertMessages } from './components/provider/SCAlertMessagesProvider';
29
+ /**
30
+ * PreferencesProvider component
31
+ */
32
+ import SCPreferencesProvider, { SCPreferencesContext, useSCPreferences } from './components/provider/SCPreferencesProvider';
33
+ import * as SCPreferences from './constants/Preferences';
34
+ import * as SCFeatures from './constants/Features';
35
+ import * as SCNotification from './constants/Notification';
36
+ /**
37
+ * Custom Hooks
38
+ */
39
+ import useSCFetchUser from './hooks/useSCFetchUser';
40
+ import useSCFetchFeedObject from './hooks/useSCFetchFeedObject';
41
+ import useSCFetchCommentObject from './hooks/useSCFetchCommentObject';
42
+ import useSCFetchCommentObjects from './hooks/useSCFetchCommentObjects';
43
+ import useSCFetchCustomAdv from './hooks/useSCFetchCustomAdv';
44
+ import useSCFetchTag from './hooks/useSCFetchTag';
45
+ import useSCFetchAddressingTagList from './hooks/useSCFetchAddressingTagList';
46
+ import useSCFetchCategory from './hooks/useSCFetchCategory';
47
+ import useSCFetchCategories from './hooks/useSCFetchCategories';
48
+ import useSCFetchIncubator from './hooks/useSCFetchIncubator';
49
+ import useSCMediaClick from './hooks/useSCMediaClick';
50
+ /**
51
+ * Routing component
52
+ */
53
+ import Link from './components/router';
54
+ import * as SCRoutes from './constants/Routes';
55
+ /**
56
+ * Utilities:
57
+ * User
58
+ */
59
+ import * as UserUtils from './utils/user';
60
+ /**
61
+ * Constants:
62
+ * Locale
63
+ */
64
+ import * as Locale from './constants/Locale';
65
+ /**
66
+ * List all exports
67
+ */
68
+ export { SCContext, SCUserContext, SCThemeContext, SCRoutingContext, SCLocaleContext, SCPreferencesContext, useSCContext, SCContextProvider, SCUserProvider, useSCUser, useSCPreferences, SCThemeProvider, useSCTheme, withSCTheme, SCRoutingProvider, useSCRouting, SCLocaleProvider, useSCLocale, withSCLocale, SCPreferencesProvider, SCPreferences, SCFeatures, SCNotification, SCNotificationProvider, SCNotificationContext, useSCNotification, SCAlertMessagesProvider, SCAlertMessagesContext, useSCAlertMessages, Link, SCRoutes, UserUtils, Locale, useSCFetchUser, useSCFetchFeedObject, useSCFetchCommentObject, useSCFetchCommentObjects, useSCFetchCustomAdv, useSCFetchTag, useSCFetchAddressingTagList, useSCFetchCategory, useSCFetchCategories, useSCFetchIncubator, useSCMediaClick };
69
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAsBA;;GAEG;AACH,OAAO,iBAAiB,EAAE,EAAC,SAAS,EAAE,YAAY,EAAC,MAAM,yCAAyC,CAAC;AAEnG;;GAEG;AACH,OAAO,cAAc,EAAE,EAAC,aAAa,EAAE,SAAS,EAAC,MAAM,sCAAsC,CAAC;AAE9F;;GAEG;AACH,OAAO,eAAe,EAAE,EAAC,cAAc,EAAE,UAAU,EAAE,WAAW,EAAC,MAAM,uCAAuC,CAAC;AAE/G;;GAEG;AACH,OAAO,iBAAiB,EAAE,EAAC,gBAAgB,EAAE,YAAY,EAAC,MAAM,yCAAyC,CAAC;AAE1G;;GAEG;AACH,OAAO,gBAAgB,EAAE,EAAC,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e,EACf,oBAAoB,EACpB,YAAY,EACZ,iBAAiB,EACjB,cAAc,EACd,SAAS,EACT,gBAAgB,EAChB,eAAe,EACf,UAAU,EACV,WAAW,EACX,iBAAiB,EACjB,YAAY,EACZ,gBAAgB,EAChB,WAAW,EACX,YAAY,EACZ,qBAAqB,EACrB,aAAa,EACb,UAAU,EACV,cAAc,EACd,sBAAsB,EACtB,qBAAqB,EACrB,iBAAiB,EACjB,uBAAuB,EACvB,sBAAsB,EACtB,kBAAkB,EAClB,IAAI,EACJ,QAAQ,EACR,SAAS,EACT,MAAM,EACN,cAAc,EACd,oBAAoB,EACpB,uBAAuB,EACvB,wBAAwB,EACxB,mBAAmB,EACnB,aAAa,EACb,2BAA2B,EAC3B,kBAAkB,EAClB,oBAAoB,EACpB,mBAAmB,EACnB,eAAe,EAChB,CAAC"}
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Overrides theme properties
3
+ * @param options: store.settings.theme
4
+ * @param preferences: community global preferences
5
+ * @return {Theme}
6
+ */
7
+ declare const getTheme: (options: any, preferences: any) => import("@mui/material/styles").Theme;
8
+ export default getTheme;
9
+ //# sourceMappingURL=theme.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../../src/themes/theme.ts"],"names":[],"mappings":"AAqBA;;;;;GAKG;AACH,QAAA,MAAM,QAAQ,0EAgIb,CAAC;AAEF,eAAe,QAAQ,CAAC"}