@selfcommunity/react-core 0.1.2-alpha.0

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 (285) hide show
  1. package/LICENSE.md +21 -0
  2. package/README.md +13 -0
  3. package/lib/cjs/components/provider/SCAlertMessagesProvider/index.js +67 -0
  4. package/lib/cjs/components/provider/SCContextProvider/index.js +117 -0
  5. package/lib/cjs/components/provider/SCLocaleProvider/index.js +158 -0
  6. package/lib/cjs/components/provider/SCNotificationProvider/index.js +73 -0
  7. package/lib/cjs/components/provider/SCPreferencesProvider/index.js +93 -0
  8. package/lib/cjs/components/provider/SCRoutingProvider/index.js +146 -0
  9. package/lib/cjs/components/provider/SCThemeProvider/index.js +123 -0
  10. package/lib/cjs/components/provider/SCUserProvider/index.js +310 -0
  11. package/lib/cjs/components/router/index.js +91 -0
  12. package/lib/cjs/constants/Actions.js +6 -0
  13. package/lib/cjs/constants/ContextProviders.js +29 -0
  14. package/lib/cjs/constants/Device.js +11 -0
  15. package/lib/cjs/constants/Errors.js +10 -0
  16. package/lib/cjs/constants/Features.js +84 -0
  17. package/lib/cjs/constants/Locale.js +19 -0
  18. package/lib/cjs/constants/Notification.js +67 -0
  19. package/lib/cjs/constants/Notifications.js +27 -0
  20. package/lib/cjs/constants/Preferences.js +344 -0
  21. package/lib/cjs/constants/Routes.js +68 -0
  22. package/lib/cjs/constants/Session.js +22 -0
  23. package/lib/cjs/constants/Theme.js +6 -0
  24. package/lib/cjs/constants/WebSocket.js +10 -0
  25. package/lib/cjs/hooks/useSCAuth.js +340 -0
  26. package/lib/cjs/hooks/useSCCachingManager.js +58 -0
  27. package/lib/cjs/hooks/useSCConnectionsManager.js +285 -0
  28. package/lib/cjs/hooks/useSCFetchCategories.js +71 -0
  29. package/lib/cjs/hooks/useSCFetchCategory.js +68 -0
  30. package/lib/cjs/hooks/useSCFetchCommentObject.js +68 -0
  31. package/lib/cjs/hooks/useSCFetchCommentObjects.js +296 -0
  32. package/lib/cjs/hooks/useSCFetchCustomAdv.js +84 -0
  33. package/lib/cjs/hooks/useSCFetchFeedObject.js +79 -0
  34. package/lib/cjs/hooks/useSCFetchIncubator.js +68 -0
  35. package/lib/cjs/hooks/useSCFetchTag.js +68 -0
  36. package/lib/cjs/hooks/useSCFetchUser.js +68 -0
  37. package/lib/cjs/hooks/useSCFollowedCategoriesManager.js +162 -0
  38. package/lib/cjs/hooks/useSCFollowersManager.js +232 -0
  39. package/lib/cjs/hooks/useSCMediaClick.js +27 -0
  40. package/lib/cjs/hooks/useSCSubscribedIncubatorsManager.js +165 -0
  41. package/lib/cjs/hooks/useSCWebPushMessaging.js +286 -0
  42. package/lib/cjs/hooks/useSCWebSocket.js +120 -0
  43. package/lib/cjs/index.js +169 -0
  44. package/lib/cjs/scss/styles.scss +1 -0
  45. package/lib/cjs/themes/theme.js +165 -0
  46. package/lib/cjs/types/context.js +3 -0
  47. package/lib/cjs/types/index.js +22 -0
  48. package/lib/cjs/utils/errors.js +196 -0
  49. package/lib/cjs/utils/locale.js +56 -0
  50. package/lib/cjs/utils/logger.js +32 -0
  51. package/lib/cjs/utils/object.js +44 -0
  52. package/lib/cjs/utils/session.js +17 -0
  53. package/lib/cjs/utils/string.js +57 -0
  54. package/lib/cjs/utils/url.js +70 -0
  55. package/lib/cjs/utils/user.js +83 -0
  56. package/lib/cjs/utils/validator.js +771 -0
  57. package/lib/cjs/utils/webPushMessaging.js +110 -0
  58. package/lib/cjs/utils/websocket.js +307 -0
  59. package/lib/esm/api-services/src/client/index.d.ts +115 -0
  60. package/lib/esm/api-services/src/client/index.d.ts.map +1 -0
  61. package/lib/esm/api-services/src/constants/Endpoints.d.ts +10 -0
  62. package/lib/esm/api-services/src/constants/Endpoints.d.ts.map +1 -0
  63. package/lib/esm/api-services/src/index.d.ts +24 -0
  64. package/lib/esm/api-services/src/index.d.ts.map +1 -0
  65. package/lib/esm/api-services/src/services/category/index.d.ts +13 -0
  66. package/lib/esm/api-services/src/services/category/index.d.ts.map +1 -0
  67. package/lib/esm/api-services/src/services/feature/index.d.ts +10 -0
  68. package/lib/esm/api-services/src/services/feature/index.d.ts.map +1 -0
  69. package/lib/esm/api-services/src/services/preference/index.d.ts +16 -0
  70. package/lib/esm/api-services/src/services/preference/index.d.ts.map +1 -0
  71. package/lib/esm/api-services/src/services/user/index.d.ts +16 -0
  72. package/lib/esm/api-services/src/services/user/index.d.ts.map +1 -0
  73. package/lib/esm/api-services/src/utils/http.d.ts +6 -0
  74. package/lib/esm/api-services/src/utils/http.d.ts.map +1 -0
  75. package/lib/esm/api-services/src/utils/token.d.ts +16 -0
  76. package/lib/esm/api-services/src/utils/token.d.ts.map +1 -0
  77. package/lib/esm/components/provider/SCAlertMessagesProvider/index.js +67 -0
  78. package/lib/esm/components/provider/SCContextProvider/index.js +117 -0
  79. package/lib/esm/components/provider/SCLocaleProvider/index.js +158 -0
  80. package/lib/esm/components/provider/SCNotificationProvider/index.js +73 -0
  81. package/lib/esm/components/provider/SCPreferencesProvider/index.js +93 -0
  82. package/lib/esm/components/provider/SCRoutingProvider/index.js +146 -0
  83. package/lib/esm/components/provider/SCThemeProvider/index.js +123 -0
  84. package/lib/esm/components/provider/SCUserProvider/index.js +310 -0
  85. package/lib/esm/components/router/index.js +91 -0
  86. package/lib/esm/constants/Actions.js +6 -0
  87. package/lib/esm/constants/ContextProviders.js +29 -0
  88. package/lib/esm/constants/Device.js +11 -0
  89. package/lib/esm/constants/Errors.js +10 -0
  90. package/lib/esm/constants/Features.js +84 -0
  91. package/lib/esm/constants/Locale.js +19 -0
  92. package/lib/esm/constants/Notification.js +67 -0
  93. package/lib/esm/constants/Notifications.js +27 -0
  94. package/lib/esm/constants/Preferences.js +344 -0
  95. package/lib/esm/constants/Routes.js +68 -0
  96. package/lib/esm/constants/Session.js +22 -0
  97. package/lib/esm/constants/Theme.js +6 -0
  98. package/lib/esm/constants/WebSocket.js +10 -0
  99. package/lib/esm/hooks/useSCAuth.js +340 -0
  100. package/lib/esm/hooks/useSCCachingManager.js +58 -0
  101. package/lib/esm/hooks/useSCConnectionsManager.js +285 -0
  102. package/lib/esm/hooks/useSCFetchCategories.js +71 -0
  103. package/lib/esm/hooks/useSCFetchCategory.js +68 -0
  104. package/lib/esm/hooks/useSCFetchCommentObject.js +68 -0
  105. package/lib/esm/hooks/useSCFetchCommentObjects.js +296 -0
  106. package/lib/esm/hooks/useSCFetchCustomAdv.js +84 -0
  107. package/lib/esm/hooks/useSCFetchFeedObject.js +79 -0
  108. package/lib/esm/hooks/useSCFetchIncubator.js +68 -0
  109. package/lib/esm/hooks/useSCFetchTag.js +68 -0
  110. package/lib/esm/hooks/useSCFetchUser.js +68 -0
  111. package/lib/esm/hooks/useSCFollowedCategoriesManager.js +162 -0
  112. package/lib/esm/hooks/useSCFollowersManager.js +232 -0
  113. package/lib/esm/hooks/useSCMediaClick.js +27 -0
  114. package/lib/esm/hooks/useSCSubscribedIncubatorsManager.js +165 -0
  115. package/lib/esm/hooks/useSCWebPushMessaging.js +286 -0
  116. package/lib/esm/hooks/useSCWebSocket.js +120 -0
  117. package/lib/esm/index.js +169 -0
  118. package/lib/esm/react-core/src/components/provider/SCAlertMessagesProvider/index.d.ts +37 -0
  119. package/lib/esm/react-core/src/components/provider/SCAlertMessagesProvider/index.d.ts.map +1 -0
  120. package/lib/esm/react-core/src/components/provider/SCContextProvider/index.d.ts +35 -0
  121. package/lib/esm/react-core/src/components/provider/SCContextProvider/index.d.ts.map +1 -0
  122. package/lib/esm/react-core/src/components/provider/SCLocaleProvider/index.d.ts +42 -0
  123. package/lib/esm/react-core/src/components/provider/SCLocaleProvider/index.d.ts.map +1 -0
  124. package/lib/esm/react-core/src/components/provider/SCNotificationProvider/index.d.ts +37 -0
  125. package/lib/esm/react-core/src/components/provider/SCNotificationProvider/index.d.ts.map +1 -0
  126. package/lib/esm/react-core/src/components/provider/SCPreferencesProvider/index.d.ts +38 -0
  127. package/lib/esm/react-core/src/components/provider/SCPreferencesProvider/index.d.ts.map +1 -0
  128. package/lib/esm/react-core/src/components/provider/SCRoutingProvider/index.d.ts +39 -0
  129. package/lib/esm/react-core/src/components/provider/SCRoutingProvider/index.d.ts.map +1 -0
  130. package/lib/esm/react-core/src/components/provider/SCThemeProvider/index.d.ts +49 -0
  131. package/lib/esm/react-core/src/components/provider/SCThemeProvider/index.d.ts.map +1 -0
  132. package/lib/esm/react-core/src/components/provider/SCUserProvider/index.d.ts +38 -0
  133. package/lib/esm/react-core/src/components/provider/SCUserProvider/index.d.ts.map +1 -0
  134. package/lib/esm/react-core/src/components/router/index.d.ts +34 -0
  135. package/lib/esm/react-core/src/components/router/index.d.ts.map +1 -0
  136. package/lib/esm/react-core/src/constants/Actions.d.ts +2 -0
  137. package/lib/esm/react-core/src/constants/Actions.d.ts.map +1 -0
  138. package/lib/esm/react-core/src/constants/ContextProviders.d.ts +6 -0
  139. package/lib/esm/react-core/src/constants/ContextProviders.d.ts.map +1 -0
  140. package/lib/esm/react-core/src/constants/Device.d.ts +6 -0
  141. package/lib/esm/react-core/src/constants/Device.d.ts.map +1 -0
  142. package/lib/esm/react-core/src/constants/Errors.d.ts +5 -0
  143. package/lib/esm/react-core/src/constants/Errors.d.ts.map +1 -0
  144. package/lib/esm/react-core/src/constants/Features.d.ts +41 -0
  145. package/lib/esm/react-core/src/constants/Features.d.ts.map +1 -0
  146. package/lib/esm/react-core/src/constants/Locale.d.ts +8 -0
  147. package/lib/esm/react-core/src/constants/Locale.d.ts.map +1 -0
  148. package/lib/esm/react-core/src/constants/Notification.d.ts +55 -0
  149. package/lib/esm/react-core/src/constants/Notification.d.ts.map +1 -0
  150. package/lib/esm/react-core/src/constants/Notifications.d.ts +11 -0
  151. package/lib/esm/react-core/src/constants/Notifications.d.ts.map +1 -0
  152. package/lib/esm/react-core/src/constants/Routes.d.ts +29 -0
  153. package/lib/esm/react-core/src/constants/Routes.d.ts.map +1 -0
  154. package/lib/esm/react-core/src/constants/Session.d.ts +10 -0
  155. package/lib/esm/react-core/src/constants/Session.d.ts.map +1 -0
  156. package/lib/esm/react-core/src/constants/Theme.d.ts +2 -0
  157. package/lib/esm/react-core/src/constants/Theme.d.ts.map +1 -0
  158. package/lib/esm/react-core/src/hooks/useSCAuth.d.ts +56 -0
  159. package/lib/esm/react-core/src/hooks/useSCAuth.d.ts.map +1 -0
  160. package/lib/esm/react-core/src/hooks/useSCCachingManager.d.ts +19 -0
  161. package/lib/esm/react-core/src/hooks/useSCCachingManager.d.ts.map +1 -0
  162. package/lib/esm/react-core/src/hooks/useSCConnectionsManager.d.ts +40 -0
  163. package/lib/esm/react-core/src/hooks/useSCConnectionsManager.d.ts.map +1 -0
  164. package/lib/esm/react-core/src/hooks/useSCFetchCategories.d.ts +17 -0
  165. package/lib/esm/react-core/src/hooks/useSCFetchCategories.d.ts.map +1 -0
  166. package/lib/esm/react-core/src/hooks/useSCFetchCategory.d.ts +19 -0
  167. package/lib/esm/react-core/src/hooks/useSCFetchCategory.d.ts.map +1 -0
  168. package/lib/esm/react-core/src/hooks/useSCFetchCommentObject.d.ts +19 -0
  169. package/lib/esm/react-core/src/hooks/useSCFetchCommentObject.d.ts.map +1 -0
  170. package/lib/esm/react-core/src/hooks/useSCFetchCommentObjects.d.ts +54 -0
  171. package/lib/esm/react-core/src/hooks/useSCFetchCommentObjects.d.ts.map +1 -0
  172. package/lib/esm/react-core/src/hooks/useSCFetchCustomAdv.d.ts +19 -0
  173. package/lib/esm/react-core/src/hooks/useSCFetchCustomAdv.d.ts.map +1 -0
  174. package/lib/esm/react-core/src/hooks/useSCFetchFeedObject.d.ts +21 -0
  175. package/lib/esm/react-core/src/hooks/useSCFetchFeedObject.d.ts.map +1 -0
  176. package/lib/esm/react-core/src/hooks/useSCFetchIncubator.d.ts +19 -0
  177. package/lib/esm/react-core/src/hooks/useSCFetchIncubator.d.ts.map +1 -0
  178. package/lib/esm/react-core/src/hooks/useSCFetchTag.d.ts +19 -0
  179. package/lib/esm/react-core/src/hooks/useSCFetchTag.d.ts.map +1 -0
  180. package/lib/esm/react-core/src/hooks/useSCFetchUser.d.ts +19 -0
  181. package/lib/esm/react-core/src/hooks/useSCFetchUser.d.ts.map +1 -0
  182. package/lib/esm/react-core/src/hooks/useSCFollowedCategoriesManager.d.ts +37 -0
  183. package/lib/esm/react-core/src/hooks/useSCFollowedCategoriesManager.d.ts.map +1 -0
  184. package/lib/esm/react-core/src/hooks/useSCFollowersManager.d.ts +37 -0
  185. package/lib/esm/react-core/src/hooks/useSCFollowersManager.d.ts.map +1 -0
  186. package/lib/esm/react-core/src/hooks/useSCMediaClick.d.ts +4 -0
  187. package/lib/esm/react-core/src/hooks/useSCMediaClick.d.ts.map +1 -0
  188. package/lib/esm/react-core/src/hooks/useSCSubscribedIncubatorsManager.d.ts +27 -0
  189. package/lib/esm/react-core/src/hooks/useSCSubscribedIncubatorsManager.d.ts.map +1 -0
  190. package/lib/esm/react-core/src/hooks/useSCWebPushMessaging.d.ts +9 -0
  191. package/lib/esm/react-core/src/hooks/useSCWebPushMessaging.d.ts.map +1 -0
  192. package/lib/esm/react-core/src/hooks/useSCWebSocket.d.ts +12 -0
  193. package/lib/esm/react-core/src/hooks/useSCWebSocket.d.ts.map +1 -0
  194. package/lib/esm/react-core/src/index.d.ts +77 -0
  195. package/lib/esm/react-core/src/index.d.ts.map +1 -0
  196. package/lib/esm/react-core/src/types/context.d.ts +428 -0
  197. package/lib/esm/react-core/src/types/context.d.ts.map +1 -0
  198. package/lib/esm/react-core/src/types/index.d.ts +3 -0
  199. package/lib/esm/react-core/src/types/index.d.ts.map +1 -0
  200. package/lib/esm/react-core/src/utils/errors.d.ts +98 -0
  201. package/lib/esm/react-core/src/utils/errors.d.ts.map +1 -0
  202. package/lib/esm/react-core/src/utils/locale.d.ts +10 -0
  203. package/lib/esm/react-core/src/utils/locale.d.ts.map +1 -0
  204. package/lib/esm/react-core/src/utils/logger.d.ts +11 -0
  205. package/lib/esm/react-core/src/utils/logger.d.ts.map +1 -0
  206. package/lib/esm/react-core/src/utils/object.d.ts +13 -0
  207. package/lib/esm/react-core/src/utils/object.d.ts.map +1 -0
  208. package/lib/esm/react-core/src/utils/session.d.ts +6 -0
  209. package/lib/esm/react-core/src/utils/session.d.ts.map +1 -0
  210. package/lib/esm/react-core/src/utils/string.d.ts +21 -0
  211. package/lib/esm/react-core/src/utils/string.d.ts.map +1 -0
  212. package/lib/esm/react-core/src/utils/url.d.ts +22 -0
  213. package/lib/esm/react-core/src/utils/url.d.ts.map +1 -0
  214. package/lib/esm/react-core/src/utils/user.d.ts +41 -0
  215. package/lib/esm/react-core/src/utils/user.d.ts.map +1 -0
  216. package/lib/esm/react-core/src/utils/validator.d.ts +239 -0
  217. package/lib/esm/react-core/src/utils/validator.d.ts.map +1 -0
  218. package/lib/esm/react-core/src/utils/webPushMessaging.d.ts +14 -0
  219. package/lib/esm/react-core/src/utils/webPushMessaging.d.ts.map +1 -0
  220. package/lib/esm/react-core/src/utils/websocket.d.ts +177 -0
  221. package/lib/esm/react-core/src/utils/websocket.d.ts.map +1 -0
  222. package/lib/esm/react-i18n/src/index.d.ts +815 -0
  223. package/lib/esm/react-i18n/src/index.d.ts.map +1 -0
  224. package/lib/esm/scss/styles.scss +1 -0
  225. package/lib/esm/themes/theme.js +165 -0
  226. package/lib/esm/types/context.js +3 -0
  227. package/lib/esm/types/index.js +22 -0
  228. package/lib/esm/types/src/index.d.ts +9 -0
  229. package/lib/esm/types/src/index.d.ts.map +1 -0
  230. package/lib/esm/types/src/types/auth.d.ts +26 -0
  231. package/lib/esm/types/src/types/auth.d.ts.map +1 -0
  232. package/lib/esm/types/src/types/broadcastMessage.d.ts +73 -0
  233. package/lib/esm/types/src/types/broadcastMessage.d.ts.map +1 -0
  234. package/lib/esm/types/src/types/category.d.ts +100 -0
  235. package/lib/esm/types/src/types/category.d.ts.map +1 -0
  236. package/lib/esm/types/src/types/comment.d.ts +97 -0
  237. package/lib/esm/types/src/types/comment.d.ts.map +1 -0
  238. package/lib/esm/types/src/types/customAdv.d.ts +53 -0
  239. package/lib/esm/types/src/types/customAdv.d.ts.map +1 -0
  240. package/lib/esm/types/src/types/customNotification.d.ts +28 -0
  241. package/lib/esm/types/src/types/customNotification.d.ts.map +1 -0
  242. package/lib/esm/types/src/types/embed.d.ts +33 -0
  243. package/lib/esm/types/src/types/embed.d.ts.map +1 -0
  244. package/lib/esm/types/src/types/feed.d.ts +208 -0
  245. package/lib/esm/types/src/types/feed.d.ts.map +1 -0
  246. package/lib/esm/types/src/types/incubator.d.ts +53 -0
  247. package/lib/esm/types/src/types/incubator.d.ts.map +1 -0
  248. package/lib/esm/types/src/types/index.d.ts +22 -0
  249. package/lib/esm/types/src/types/index.d.ts.map +1 -0
  250. package/lib/esm/types/src/types/location.d.ts +61 -0
  251. package/lib/esm/types/src/types/location.d.ts.map +1 -0
  252. package/lib/esm/types/src/types/media.d.ts +52 -0
  253. package/lib/esm/types/src/types/media.d.ts.map +1 -0
  254. package/lib/esm/types/src/types/notification.d.ts +416 -0
  255. package/lib/esm/types/src/types/notification.d.ts.map +1 -0
  256. package/lib/esm/types/src/types/poll.d.ts +77 -0
  257. package/lib/esm/types/src/types/poll.d.ts.map +1 -0
  258. package/lib/esm/types/src/types/privateMessage.d.ts +109 -0
  259. package/lib/esm/types/src/types/privateMessage.d.ts.map +1 -0
  260. package/lib/esm/types/src/types/prize.d.ts +48 -0
  261. package/lib/esm/types/src/types/prize.d.ts.map +1 -0
  262. package/lib/esm/types/src/types/tag.d.ts +47 -0
  263. package/lib/esm/types/src/types/tag.d.ts.map +1 -0
  264. package/lib/esm/types/src/types/user.d.ts +227 -0
  265. package/lib/esm/types/src/types/user.d.ts.map +1 -0
  266. package/lib/esm/utils/errors.js +196 -0
  267. package/lib/esm/utils/locale.js +56 -0
  268. package/lib/esm/utils/logger.js +32 -0
  269. package/lib/esm/utils/object.js +44 -0
  270. package/lib/esm/utils/session.js +17 -0
  271. package/lib/esm/utils/src/index.d.ts +7 -0
  272. package/lib/esm/utils/src/index.d.ts.map +1 -0
  273. package/lib/esm/utils/src/utils/string.d.ts +21 -0
  274. package/lib/esm/utils/src/utils/string.d.ts.map +1 -0
  275. package/lib/esm/utils/src/utils/url.d.ts +22 -0
  276. package/lib/esm/utils/src/utils/url.d.ts.map +1 -0
  277. package/lib/esm/utils/string.js +57 -0
  278. package/lib/esm/utils/url.js +70 -0
  279. package/lib/esm/utils/user.js +83 -0
  280. package/lib/esm/utils/validator.js +771 -0
  281. package/lib/esm/utils/webPushMessaging.js +110 -0
  282. package/lib/esm/utils/websocket.js +307 -0
  283. package/lib/umd/react-core.js +2 -0
  284. package/lib/umd/react-core.js.LICENSE.txt +1 -0
  285. package/package.json +128 -0
@@ -0,0 +1,8 @@
1
+ export declare const LOCALE_OPTION = "locale";
2
+ export declare const LOCALE_DEFAULT_OPTION = "default";
3
+ export declare const LOCALE_MESSAGES_OPTION = "messages";
4
+ export declare const LOCALE_EN = "en";
5
+ export declare const LOCALE_IT = "it";
6
+ export declare const LOCALES: string[];
7
+ export declare const DEFAULT_LANGUAGE_UI = "en";
8
+ //# sourceMappingURL=Locale.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Locale.d.ts","sourceRoot":"","sources":["../../../../../src/constants/Locale.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,aAAa,WAAW,CAAC;AACtC,eAAO,MAAM,qBAAqB,YAAY,CAAC;AAC/C,eAAO,MAAM,sBAAsB,aAAa,CAAC;AACjD,eAAO,MAAM,SAAS,OAAO,CAAC;AAC9B,eAAO,MAAM,SAAS,OAAO,CAAC;AAC9B,eAAO,MAAM,OAAO,UAAyB,CAAC;AAC9C,eAAO,MAAM,mBAAmB,OAAY,CAAC"}
@@ -0,0 +1,55 @@
1
+ import { SCNotificationTopicType, SCNotificationTypologyType } from '@selfcommunity/types';
2
+ /**
3
+ * List of all possible topics
4
+ */
5
+ export declare const SCNotificationTopics: SCNotificationTopicType[];
6
+ /**
7
+ * Notification mapping
8
+ */
9
+ export declare const SCNotificationMapping: {
10
+ 2: SCNotificationTypologyType;
11
+ 4: SCNotificationTypologyType;
12
+ 55: SCNotificationTypologyType;
13
+ 56: SCNotificationTypologyType;
14
+ 57: SCNotificationTypologyType;
15
+ 58: SCNotificationTypologyType;
16
+ 59: SCNotificationTypologyType;
17
+ 60: SCNotificationTypologyType;
18
+ 19: SCNotificationTypologyType;
19
+ 9: SCNotificationTypologyType;
20
+ 16: SCNotificationTypologyType;
21
+ 37: SCNotificationTypologyType;
22
+ 105: SCNotificationTypologyType;
23
+ 50: SCNotificationTypologyType;
24
+ 51: SCNotificationTypologyType;
25
+ 52: SCNotificationTypologyType;
26
+ 65: SCNotificationTypologyType;
27
+ 66: SCNotificationTypologyType;
28
+ 54: SCNotificationTypologyType;
29
+ 75: SCNotificationTypologyType;
30
+ 76: SCNotificationTypologyType;
31
+ 77: SCNotificationTypologyType;
32
+ 78: SCNotificationTypologyType;
33
+ 79: SCNotificationTypologyType;
34
+ 97: SCNotificationTypologyType;
35
+ 98: SCNotificationTypologyType;
36
+ 67: SCNotificationTypologyType;
37
+ 68: SCNotificationTypologyType;
38
+ 69: SCNotificationTypologyType;
39
+ 70: SCNotificationTypologyType;
40
+ 71: SCNotificationTypologyType;
41
+ 73: SCNotificationTypologyType;
42
+ 74: SCNotificationTypologyType;
43
+ 83: SCNotificationTypologyType;
44
+ 96: SCNotificationTypologyType;
45
+ 99: SCNotificationTypologyType;
46
+ };
47
+ /**
48
+ * Silent Snippet Notifications
49
+ */
50
+ export declare const SCSilentSnippetNotifications: number[];
51
+ /**
52
+ * Silent Toast Notifications
53
+ */
54
+ export declare const SCSilentToastNotifications: number[];
55
+ //# sourceMappingURL=Notification.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Notification.d.ts","sourceRoot":"","sources":["../../../../../src/constants/Notification.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,uBAAuB,EAAE,0BAA0B,EAAC,MAAM,sBAAsB,CAAC;AAEzF;;GAEG;AACH,eAAO,MAAM,oBAAoB,2BAAsE,CAAC;AAExG;;GAEG;AACH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqCjC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,4BAA4B,EAAE,MAAM,EAAkC,CAAC;AAEpF;;GAEG;AACH,eAAO,MAAM,0BAA0B,EAAE,MAAM,EAAkG,CAAC"}
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Notifications conf
3
+ */
4
+ import { SCNotificationsType } from '../types/context';
5
+ export declare const NOTIFICATIONS_OPTION = "notifications";
6
+ export declare const NOTIFICATIONS_WEB_SOCKET_OPTION = "webSocket";
7
+ export declare const NOTIFICATIONS_WEB_PUSH_MESSAGING_OPTION = "webPushMessaging";
8
+ export declare const NOTIFICATIONS_DISABLE_TOAST_MESSAGE_OPTION = "disableToastMessage";
9
+ export declare const NOTIFICATIONS_APPLICATION_SERVER_KEY_OPTION = "applicationServerKey";
10
+ export declare const DEFAULT_NOTIFICATIONS: SCNotificationsType;
11
+ //# sourceMappingURL=Notifications.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Notifications.d.ts","sourceRoot":"","sources":["../../../../../src/constants/Notifications.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAC,mBAAmB,EAAC,MAAM,kBAAkB,CAAC;AAErD,eAAO,MAAM,oBAAoB,kBAAkB,CAAC;AACpD,eAAO,MAAM,+BAA+B,cAAc,CAAC;AAC3D,eAAO,MAAM,uCAAuC,qBAAqB,CAAC;AAC1E,eAAO,MAAM,0CAA0C,wBAAwB,CAAC;AAChF,eAAO,MAAM,2CAA2C,yBAAyB,CAAC;AAClF,eAAO,MAAM,qBAAqB,EAAE,mBAGnC,CAAC"}
@@ -0,0 +1,29 @@
1
+ export declare const PORTAL_OPTION = "portal";
2
+ export declare const ROUTER_OPTION = "router";
3
+ /**
4
+ * Routes name
5
+ */
6
+ export declare const POST_ROUTE_NAME = "post";
7
+ export declare const DISCUSSION_ROUTE_NAME = "discussion";
8
+ export declare const STATUS_ROUTE_NAME = "status";
9
+ export declare const COMMENT_ROUTE_NAME = "comment";
10
+ export declare const CATEGORY_ROUTE_NAME = "category";
11
+ export declare const CATEGORIES_LIST_ROUTE_NAME = "categories";
12
+ export declare const USER_PROFILE_ROUTE_NAME = "user_profile";
13
+ export declare const USER_PROFILE_SETTINGS_ROUTE_NAME = "user_profile_settings";
14
+ export declare const USER_NOTIFICATIONS_ROUTE_NAME = "user_notifications";
15
+ export declare const USER_PRIVATE_MESSAGES_ROUTE_NAME = "user_messages";
16
+ export declare const LOYALTY_ROUTE_NAME = "loyalty";
17
+ export declare const INCUBATOR_ROUTE_NAME = "incubator";
18
+ export declare const SIGNIN_ROUTE_NAME = "signin";
19
+ export declare const SIGNUP_ROUTE_NAME = "signup";
20
+ export declare const RECOVER_ROUTE_NAME = "recover";
21
+ export declare const CUSTOM_PAGES_ROUTE_NAME = "custom_pages";
22
+ /**
23
+ * Default Routes
24
+ * @type {{[p: string]: string, '[POST_ROUTE_NAME]': string, '[INCUBATOR_ROUTE_NAME]': string, '[LOYALTY_ROUTE_NAME]': string, '[USER_NOTIFICATION_ROUTE_NAME]': string, '[USER_PRIVATE_MESSAGES_ROUTE_NAME]': string, '[COMMENT_ROUTE_NAME]': string, '[DISCUSSION_ROUTE_NAME]': string, '[CATEGORIES_ROUTE_NAME]': string, '[USER_PROFILE_ROUTE_NAME]': string, '[CATEGORY_ROUTE_NAME]': string, '[USER_PROFILE_SETTINGS_ROUTE_NAME]': string, '[STATUS_ROUTE_NAME]': string}}
25
+ */
26
+ export declare const defaultRoutes: {
27
+ [k: string]: string;
28
+ };
29
+ //# sourceMappingURL=Routes.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Routes.d.ts","sourceRoot":"","sources":["../../../../../src/constants/Routes.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,aAAa,WAAW,CAAC;AACtC,eAAO,MAAM,aAAa,WAAW,CAAC;AAEtC;;GAEG;AACH,eAAO,MAAM,eAAe,SAAS,CAAC;AACtC,eAAO,MAAM,qBAAqB,eAAe,CAAC;AAClD,eAAO,MAAM,iBAAiB,WAAW,CAAC;AAC1C,eAAO,MAAM,kBAAkB,YAAY,CAAC;AAC5C,eAAO,MAAM,mBAAmB,aAAa,CAAC;AAC9C,eAAO,MAAM,0BAA0B,eAAe,CAAC;AACvD,eAAO,MAAM,uBAAuB,iBAAiB,CAAC;AACtD,eAAO,MAAM,gCAAgC,0BAA0B,CAAC;AACxE,eAAO,MAAM,6BAA6B,uBAAuB,CAAC;AAClE,eAAO,MAAM,gCAAgC,kBAAkB,CAAC;AAChE,eAAO,MAAM,kBAAkB,YAAY,CAAC;AAC5C,eAAO,MAAM,oBAAoB,cAAc,CAAC;AAChD,eAAO,MAAM,iBAAiB,WAAW,CAAC;AAC1C,eAAO,MAAM,iBAAiB,WAAW,CAAC;AAC1C,eAAO,MAAM,kBAAkB,YAAY,CAAC;AAC5C,eAAO,MAAM,uBAAuB,iBAAiB,CAAC;AAEtD;;;GAGG;AACH,eAAO,MAAM,aAAa,EAAE;IAAC,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;CAiB/C,CAAC"}
@@ -0,0 +1,10 @@
1
+ export declare const SESSION_OPTION = "session";
2
+ export declare const SESSION_TYPE_OPTION = "type";
3
+ export declare const SESSION_CLIENT_ID_OPTION = "clientId";
4
+ export declare const SESSION_AUTH_TOKEN_OPTION = "authToken";
5
+ export declare const SESSION_HANDLE_REFRESH_TOKEN_OPTION = "handleRefreshToken";
6
+ export declare const COOKIE_SESSION = "Cookie";
7
+ export declare const JWT_SESSION = "JWT";
8
+ export declare const OAUTH_SESSION = "OAuth";
9
+ export declare const sessionTypes: string[];
10
+ //# sourceMappingURL=Session.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Session.d.ts","sourceRoot":"","sources":["../../../../../src/constants/Session.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,cAAc,YAAY,CAAC;AACxC,eAAO,MAAM,mBAAmB,SAAS,CAAC;AAC1C,eAAO,MAAM,wBAAwB,aAAa,CAAC;AACnD,eAAO,MAAM,yBAAyB,cAAc,CAAC;AACrD,eAAO,MAAM,mCAAmC,uBAAuB,CAAC;AAExE,eAAO,MAAM,cAAc,WAAW,CAAC;AACvC,eAAO,MAAM,WAAW,QAAQ,CAAC;AACjC,eAAO,MAAM,aAAa,UAAU,CAAC;AACrC,eAAO,MAAM,YAAY,UAA+C,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare const THEME_OPTION = "theme";
2
+ //# sourceMappingURL=Theme.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Theme.d.ts","sourceRoot":"","sources":["../../../../../src/constants/Theme.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,YAAY,UAAU,CAAC"}
@@ -0,0 +1,56 @@
1
+ /// <reference types="react" />
2
+ import { SCSessionType } from '../types';
3
+ import { SCAuthTokenType } from '@selfcommunity/types';
4
+ /**
5
+ * @hidden
6
+ * We have complex state logic that involves multiple sub-values,
7
+ * so useReducer is preferable to useState.
8
+ * Define all possible auth action types label
9
+ * Use this to export actions and dispatch an action
10
+ */
11
+ export declare const userActionTypes: {
12
+ LOGIN_LOADING: string;
13
+ LOGIN_SUCCESS: string;
14
+ LOGIN_FAILURE: string;
15
+ LOGOUT: string;
16
+ REFRESH_TOKEN_SUCCESS: string;
17
+ REFRESH_TOKEN_FAILURE: string;
18
+ REFRESH_SESSION: string;
19
+ UPDATE_USER: string;
20
+ };
21
+ /**
22
+ :::info
23
+ This component is used to navigate through the application.
24
+ :::
25
+
26
+ #### Usage
27
+
28
+ In order to use router you need to import this components first:
29
+
30
+ ```jsx
31
+ import {SCRoutingContextType, useSCRouting, Link, SCRoutes} from '@selfcommunity/react-core';
32
+ ````
33
+
34
+ :::tipUsage Example:
35
+
36
+ ```jsx
37
+ const scRoutingContext: SCRoutingContextType = useSCRouting();
38
+ <Button component={Link} to={scRoutingContext.url(SCRoutes.USER_PROFILE_ROUTE_NAME, {id: user.id})>Go to profile</Button>
39
+ ````
40
+ or
41
+
42
+ ```jsx
43
+ const scRoutingContext: SCRoutingContextType = useSCRouting();
44
+ <Link to={scRoutingContext.url('profile', {id: user.id})}>Go to profile</Link>
45
+ ````
46
+ :::
47
+ * @param initialSession
48
+ */
49
+ export default function useAuth(initialSession: SCSessionType): {
50
+ state: any;
51
+ dispatch: import("react").Dispatch<any>;
52
+ helpers: {
53
+ refreshSession: () => Promise<SCAuthTokenType>;
54
+ };
55
+ };
56
+ //# sourceMappingURL=useSCAuth.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useSCAuth.d.ts","sourceRoot":"","sources":["../../../../../src/hooks/useSCAuth.ts"],"names":[],"mappings":";AAEA,OAAO,EAAC,aAAa,EAAC,MAAM,UAAU,CAAC;AACvC,OAAO,EAAC,eAAe,EAAC,MAAM,sBAAsB,CAAC;AAMrD;;;;;;GAMG;AACH,eAAO,MAAM,eAAe;;;;;;;;;CAS3B,CAAC;AAsEF;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,MAAM,CAAC,OAAO,UAAU,OAAO,CAAC,cAAc,EAAE,aAAa;;;;;;EA8I5D"}
@@ -0,0 +1,19 @@
1
+ /// <reference types="react" />
2
+ /**
3
+ :::info
4
+ This custom hook manages cached data and the loading state.
5
+ :::
6
+ */
7
+ export default function useSCCachingManager(): {
8
+ cache: number[];
9
+ updateCache: (ids: number[]) => void;
10
+ emptyCache: () => void;
11
+ data: any[];
12
+ setData: import("react").Dispatch<import("react").SetStateAction<any[]>>;
13
+ loading: number[];
14
+ setLoading: import("react").Dispatch<import("react").SetStateAction<number[]>>;
15
+ isLoading: (obj: {
16
+ id: number;
17
+ }) => boolean;
18
+ };
19
+ //# sourceMappingURL=useSCCachingManager.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useSCCachingManager.d.ts","sourceRoot":"","sources":["../../../../../src/hooks/useSCCachingManager.ts"],"names":[],"mappings":";AAEA;;;;GAIG;AACH,MAAM,CAAC,OAAO,UAAU,mBAAmB;;uBAW/B,MAAM,EAAE,KAAG,IAAI;sBAgBb,IAAI;;;;;qBAcN;QAAC,EAAE,EAAE,MAAM,CAAA;KAAC,KAAG,OAAO;EAOjC"}
@@ -0,0 +1,40 @@
1
+ import { SCUserType } from '@selfcommunity/types';
2
+ /**
3
+ :::info
4
+ This custom hook is used to manage to manage friends.
5
+ :::
6
+
7
+ :::tipHow to use it:
8
+
9
+ Follow these steps:
10
+ ```jsx
11
+ 1. const scUserContext: SCUserContextType = useSCUser();
12
+ 2. const scConnectionsManager: SCConnectionsManagerType = scUserContext.manager.connections;
13
+ 3. scConnectionsManager.status(user)
14
+ ```
15
+ :::
16
+ */
17
+ export default function useSCConnectionsManager(user?: SCUserType): {
18
+ connections: any[];
19
+ loading: number[];
20
+ isLoading: (obj: {
21
+ id: number;
22
+ }) => boolean;
23
+ status?: undefined;
24
+ requestConnection?: undefined;
25
+ acceptConnection?: undefined;
26
+ refresh?: undefined;
27
+ emptyCache?: undefined;
28
+ } | {
29
+ connections: any[];
30
+ loading: number[];
31
+ isLoading: (obj: {
32
+ id: number;
33
+ }) => boolean;
34
+ status: (user: SCUserType) => string;
35
+ requestConnection: (user: SCUserType) => Promise<any>;
36
+ acceptConnection: (user: SCUserType) => Promise<any>;
37
+ refresh: () => void;
38
+ emptyCache: () => void;
39
+ };
40
+ //# sourceMappingURL=useSCConnectionsManager.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useSCConnectionsManager.d.ts","sourceRoot":"","sources":["../../../../../src/hooks/useSCConnectionsManager.ts"],"names":[],"mappings":"AAGA,OAAO,EAAsD,UAAU,EAAC,MAAM,sBAAsB,CAAC;AAmBrG;;;;;;;;;;;;;;GAcG;AACH,MAAM,CAAC,OAAO,UAAU,uBAAuB,CAAC,IAAI,CAAC,EAAE,UAAU;;;;;;;;;;;;;;;;;mBAyMpD,UAAU,KAAG,MAAM;8BApGnB,UAAU,KAAG,QAAQ,GAAG,CAAC;6BA+BzB,UAAU,KAAG,QAAQ,GAAG,CAAC;mBAnExB,IAAI;;EAwJjB"}
@@ -0,0 +1,17 @@
1
+ /**
2
+ :::info
3
+ This custom hook is used to fetch categories.
4
+
5
+ :::tipContext can be consumed in this way:
6
+
7
+ ```jsx
8
+ const {categories, isLoading} = useSCFetchCategories();
9
+ ```
10
+ :::
11
+ */
12
+ declare const useSCFetchCategories: () => {
13
+ categories: any[];
14
+ isLoading: boolean;
15
+ };
16
+ export default useSCFetchCategories;
17
+ //# sourceMappingURL=useSCFetchCategories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useSCFetchCategories.d.ts","sourceRoot":"","sources":["../../../../../src/hooks/useSCFetchCategories.ts"],"names":[],"mappings":"AASA;;;;;;;;;;GAUG;AACH,QAAA,MAAM,oBAAoB;;;CAiCxB,CAAC;AAEH,eAAe,oBAAoB,CAAC"}
@@ -0,0 +1,19 @@
1
+ /// <reference types="react" />
2
+ import { SCCategoryType } from '@selfcommunity/types';
3
+ /**
4
+ :::info
5
+ This custom hook is used to fetch a category object.
6
+ :::
7
+ * @param object
8
+ * @param object.id
9
+ * @param object.category
10
+ */
11
+ export default function useSCFetchCategory({ id, category }: {
12
+ id?: number;
13
+ category?: SCCategoryType;
14
+ }): {
15
+ scCategory: SCCategoryType;
16
+ setSCCategory: import("react").Dispatch<import("react").SetStateAction<SCCategoryType>>;
17
+ error: string;
18
+ };
19
+ //# sourceMappingURL=useSCFetchCategory.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useSCFetchCategory.d.ts","sourceRoot":"","sources":["../../../../../src/hooks/useSCFetchCategory.ts"],"names":[],"mappings":";AAEA,OAAO,EAAC,cAAc,EAAY,MAAM,sBAAsB,CAAC;AAI/D;;;;;;;GAOG;AACH,MAAM,CAAC,OAAO,UAAU,kBAAkB,CAAC,EAAC,EAAS,EAAE,QAAe,EAAC,EAAE;IAAC,EAAE,CAAC,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,EAAE,cAAc,CAAA;CAAC;;;;EA0ChH"}
@@ -0,0 +1,19 @@
1
+ /// <reference types="react" />
2
+ import { SCCommentType } from '@selfcommunity/types';
3
+ /**
4
+ :::info
5
+ This custom hooks is used to fetch a comment.
6
+ :::
7
+ * @param object
8
+ * @param object.id
9
+ * @param object.commentObject
10
+ */
11
+ export default function useSCFetchCommentObject({ id, commentObject }: {
12
+ id?: number;
13
+ commentObject?: SCCommentType;
14
+ }): {
15
+ obj: SCCommentType;
16
+ setObj: import("react").Dispatch<import("react").SetStateAction<SCCommentType>>;
17
+ error: string;
18
+ };
19
+ //# sourceMappingURL=useSCFetchCommentObject.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useSCFetchCommentObject.d.ts","sourceRoot":"","sources":["../../../../../src/hooks/useSCFetchCommentObject.ts"],"names":[],"mappings":";AAEA,OAAO,EAAC,aAAa,EAAC,MAAM,sBAAsB,CAAC;AAInD;;;;;;;GAOG;AACH,MAAM,CAAC,OAAO,UAAU,uBAAuB,CAAC,EAAC,EAAS,EAAE,aAAoB,EAAC,EAAE;IAAC,EAAE,CAAC,EAAE,MAAM,CAAC;IAAC,aAAa,CAAC,EAAE,aAAa,CAAA;CAAC;;;;EA0C9H"}
@@ -0,0 +1,54 @@
1
+ import { SCCommentsOrderBy, SCCommentType } from '@selfcommunity/types';
2
+ import { SCFeedObjectType, SCFeedObjectTypologyType } from '@selfcommunity/types';
3
+ /**
4
+ * Interface SCCommentsObjectType
5
+ */
6
+ export interface SCCommentsObjectType {
7
+ componentLoaded: boolean;
8
+ comments: SCCommentType[];
9
+ total: number;
10
+ next: string;
11
+ previous: string;
12
+ isLoadingNext: boolean;
13
+ isLoadingPrevious: boolean;
14
+ page: number;
15
+ reload: boolean;
16
+ }
17
+ /**
18
+ * @hidden
19
+ * We have complex state logic that involves multiple sub-values,
20
+ * so useReducer is preferable to useState.
21
+ * Define all possible auth action types label
22
+ * Use this to export actions and dispatch an action
23
+ */
24
+ export declare const commentsObjectActionTypes: {
25
+ LOADING_NEXT: string;
26
+ LOADING_PREVIOUS: string;
27
+ DATA_NEXT_LOADED: string;
28
+ DATA_PREVIOUS_LOADED: string;
29
+ DATA_RELOAD: string;
30
+ DATA_RELOADED: string;
31
+ };
32
+ /**
33
+ :::info
34
+ This custom hooks is used to fetch paginated comments.
35
+ :::
36
+ * @param id
37
+ * @param feedObject
38
+ * @param feedObjectType
39
+ * @param offset
40
+ * @param pageSize
41
+ * @param orderBy
42
+ * @param parent
43
+ */
44
+ export default function useSCFetchCommentObjects(props: {
45
+ id?: number;
46
+ feedObject?: SCFeedObjectType;
47
+ feedObjectType: SCFeedObjectTypologyType;
48
+ offset?: number;
49
+ pageSize?: number;
50
+ orderBy?: SCCommentsOrderBy;
51
+ parent?: number;
52
+ onChangePage?: (page: any) => any;
53
+ }): any;
54
+ //# sourceMappingURL=useSCFetchCommentObjects.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useSCFetchCommentObjects.d.ts","sourceRoot":"","sources":["../../../../../src/hooks/useSCFetchCommentObjects.ts"],"names":[],"mappings":"AAEA,OAAO,EAAC,iBAAiB,EAAE,aAAa,EAAC,MAAM,sBAAsB,CAAC;AAGtE,OAAO,EAAC,gBAAgB,EAAE,wBAAwB,EAAC,MAAM,sBAAsB,CAAC;AAGhF;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACnC,eAAe,EAAE,OAAO,CAAC;IACzB,QAAQ,EAAE,aAAa,EAAE,CAAC;IAC1B,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,aAAa,EAAE,OAAO,CAAC;IACvB,iBAAiB,EAAE,OAAO,CAAC;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,OAAO,CAAC;CACjB;AAED;;;;;;GAMG;AACH,eAAO,MAAM,yBAAyB;;;;;;;CAOrC,CAAC;AAwEF;;;;;;;;;;;GAWG;AACH,MAAM,CAAC,OAAO,UAAU,wBAAwB,CAAC,KAAK,EAAE;IACtD,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,UAAU,CAAC,EAAE,gBAAgB,CAAC;IAC9B,cAAc,EAAE,wBAAwB,CAAC;IACzC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,iBAAiB,CAAC;IAC5B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,YAAY,CAAC,EAAE,CAAC,IAAI,KAAA,KAAK,GAAG,CAAC;CAC9B,OAyIA"}
@@ -0,0 +1,19 @@
1
+ /// <reference types="react" />
2
+ import { SCCustomAdvPosition, SCCustomAdvType } from '@selfcommunity/types';
3
+ /**
4
+ :::info
5
+ This custom hook is used to fetch a custom adv object.
6
+ :::
7
+ * @param object
8
+ * @param object.position
9
+ * @param object.categoryId
10
+ */
11
+ export default function useSCFetchCustomAdv({ position, categoriesId }: {
12
+ position?: SCCustomAdvPosition;
13
+ categoriesId?: Array<number>;
14
+ }): {
15
+ scCustomAdv: SCCustomAdvType;
16
+ setSCCustomAdv: import("react").Dispatch<import("react").SetStateAction<SCCustomAdvType>>;
17
+ error: string;
18
+ };
19
+ //# sourceMappingURL=useSCFetchCustomAdv.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useSCFetchCustomAdv.d.ts","sourceRoot":"","sources":["../../../../../src/hooks/useSCFetchCustomAdv.ts"],"names":[],"mappings":";AAIA,OAAO,EAAC,mBAAmB,EAAE,eAAe,EAAC,MAAM,sBAAsB,CAAC;AAE1E;;;;;;;GAOG;AACH,MAAM,CAAC,OAAO,UAAU,mBAAmB,CAAC,EAAC,QAAe,EAAE,YAAmB,EAAC,EAAE;IAAC,QAAQ,CAAC,EAAE,mBAAmB,CAAC;IAAC,YAAY,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAA;CAAC;;;;EA2DjJ"}
@@ -0,0 +1,21 @@
1
+ /// <reference types="react" />
2
+ import { SCFeedDiscussionType, SCFeedObjectType, SCFeedObjectTypologyType, SCFeedPostType } from '@selfcommunity/types';
3
+ /**
4
+ :::info
5
+ This custom hook is used to fetch a feed object.
6
+ :::
7
+ * @param object
8
+ * @param object.id
9
+ * @param object.feedObject
10
+ * @param object.feedObjectType
11
+ */
12
+ export default function useSCFetchFeedObject({ id, feedObject, feedObjectType, }: {
13
+ id?: number;
14
+ feedObject?: SCFeedObjectType;
15
+ feedObjectType?: SCFeedObjectTypologyType;
16
+ }): {
17
+ obj: SCFeedDiscussionType | SCFeedObjectType | SCFeedPostType;
18
+ setObj: import("react").Dispatch<import("react").SetStateAction<SCFeedDiscussionType | SCFeedObjectType | SCFeedPostType>>;
19
+ error: string;
20
+ };
21
+ //# sourceMappingURL=useSCFetchFeedObject.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useSCFetchFeedObject.d.ts","sourceRoot":"","sources":["../../../../../src/hooks/useSCFetchFeedObject.ts"],"names":[],"mappings":";AAIA,OAAO,EAAC,oBAAoB,EAAE,gBAAgB,EAAE,wBAAwB,EAAE,cAAc,EAAmB,MAAM,sBAAsB,CAAC;AAGxI;;;;;;;;GAQG;AACH,MAAM,CAAC,OAAO,UAAU,oBAAoB,CAAC,EAC3C,EAAS,EACT,UAAiB,EACjB,cAAwH,GACzH,EAAE;IACD,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,UAAU,CAAC,EAAE,gBAAgB,CAAC;IAC9B,cAAc,CAAC,EAAE,wBAAwB,CAAC;CAC3C;;;;EA2CA"}
@@ -0,0 +1,19 @@
1
+ /// <reference types="react" />
2
+ import { SCIncubatorType } from '@selfcommunity/types';
3
+ /**
4
+ :::info
5
+ This custom hook is used to fetch an incubator object.
6
+ :::
7
+ * @param object
8
+ * @param object.id
9
+ * @param object.incubator
10
+ */
11
+ export default function useSCFetchIncubator({ id, incubator }: {
12
+ id?: number;
13
+ incubator?: SCIncubatorType;
14
+ }): {
15
+ scIncubator: SCIncubatorType;
16
+ setSCIncubator: import("react").Dispatch<import("react").SetStateAction<SCIncubatorType>>;
17
+ error: string;
18
+ };
19
+ //# sourceMappingURL=useSCFetchIncubator.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useSCFetchIncubator.d.ts","sourceRoot":"","sources":["../../../../../src/hooks/useSCFetchIncubator.ts"],"names":[],"mappings":";AAEA,OAAO,EAAC,eAAe,EAAC,MAAM,sBAAsB,CAAC;AAIrD;;;;;;;GAOG;AACH,MAAM,CAAC,OAAO,UAAU,mBAAmB,CAAC,EAAC,EAAS,EAAE,SAAgB,EAAC,EAAE;IAAC,EAAE,CAAC,EAAE,MAAM,CAAC;IAAC,SAAS,CAAC,EAAE,eAAe,CAAA;CAAC;;;;EA0CpH"}
@@ -0,0 +1,19 @@
1
+ /// <reference types="react" />
2
+ import { SCTagType } from '@selfcommunity/types';
3
+ /**
4
+ :::info
5
+ This custom hook is used to fetch a tag object.
6
+ :::
7
+ * @param object
8
+ * @param object.id
9
+ * @param object.tag
10
+ */
11
+ export default function useSCFetchTag({ id, tag }: {
12
+ id?: number;
13
+ tag?: SCTagType;
14
+ }): {
15
+ scTag: SCTagType;
16
+ setSCTag: import("react").Dispatch<import("react").SetStateAction<SCTagType>>;
17
+ error: string;
18
+ };
19
+ //# sourceMappingURL=useSCFetchTag.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useSCFetchTag.d.ts","sourceRoot":"","sources":["../../../../../src/hooks/useSCFetchTag.ts"],"names":[],"mappings":";AAEA,OAAO,EAAC,SAAS,EAAC,MAAM,sBAAsB,CAAC;AAI/C;;;;;;;GAOG;AACH,MAAM,CAAC,OAAO,UAAU,aAAa,CAAC,EAAC,EAAS,EAAE,GAAU,EAAC,EAAE;IAAC,EAAE,CAAC,EAAE,MAAM,CAAC;IAAC,GAAG,CAAC,EAAE,SAAS,CAAA;CAAC;;;;EA0C5F"}
@@ -0,0 +1,19 @@
1
+ /// <reference types="react" />
2
+ import { SCUserType } from '@selfcommunity/types';
3
+ /**
4
+ :::info
5
+ This custom hook is used to fetch a user object.
6
+ :::
7
+ * @param object
8
+ * @param object.id
9
+ * @param object.user
10
+ */
11
+ export default function useSCFetchUser({ id, user }: {
12
+ id?: number;
13
+ user?: SCUserType;
14
+ }): {
15
+ scUser: SCUserType;
16
+ setSCUser: import("react").Dispatch<import("react").SetStateAction<SCUserType>>;
17
+ error: string;
18
+ };
19
+ //# sourceMappingURL=useSCFetchUser.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useSCFetchUser.d.ts","sourceRoot":"","sources":["../../../../../src/hooks/useSCFetchUser.ts"],"names":[],"mappings":";AAEA,OAAO,EAAC,UAAU,EAAC,MAAM,sBAAsB,CAAC;AAIhD;;;;;;;GAOG;AACH,MAAM,CAAC,OAAO,UAAU,cAAc,CAAC,EAAC,EAAS,EAAE,IAAW,EAAC,EAAE;IAAC,EAAE,CAAC,EAAE,MAAM,CAAC;IAAC,IAAI,CAAC,EAAE,UAAU,CAAA;CAAC;;;;EA0ChG"}
@@ -0,0 +1,37 @@
1
+ import { SCCategoryType, SCUserType } from '@selfcommunity/types';
2
+ /**
3
+ :::info
4
+ This custom hook is used to manage the categories followed.
5
+ :::
6
+
7
+ :::tipHow to use it:
8
+ Follow these steps:
9
+ ```jsx
10
+ 1. const scUserContext: SCUserContextType = useSCUser();
11
+ 2. const scFollowedCategoriesManager: SCFollowedCategoriesManagerType = scUserContext.manager.categories;
12
+ 3. scFollowedCategoriesManager.isFollowed(category)
13
+ ```
14
+ :::
15
+ */
16
+ export default function useSCFollowedCategoriesManager(user?: SCUserType): {
17
+ categories: any[];
18
+ loading: number[];
19
+ isLoading: (obj: {
20
+ id: number;
21
+ }) => boolean;
22
+ follow?: undefined;
23
+ isFollowed?: undefined;
24
+ refresh?: undefined;
25
+ emptyCache?: undefined;
26
+ } | {
27
+ categories: any[];
28
+ loading: number[];
29
+ isLoading: (obj: {
30
+ id: number;
31
+ }) => boolean;
32
+ follow: (category: SCCategoryType) => Promise<any>;
33
+ isFollowed: (category: SCCategoryType) => boolean;
34
+ refresh: () => void;
35
+ emptyCache: () => void;
36
+ };
37
+ //# sourceMappingURL=useSCFollowedCategoriesManager.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useSCFollowedCategoriesManager.d.ts","sourceRoot":"","sources":["../../../../../src/hooks/useSCFollowedCategoriesManager.ts"],"names":[],"mappings":"AAEA,OAAO,EAAC,cAAc,EAAE,UAAU,EAAC,MAAM,sBAAsB,CAAC;AAKhE;;;;;;;;;;;;;GAaG;AACH,MAAM,CAAC,OAAO,UAAU,8BAA8B,CAAC,IAAI,CAAC,EAAE,UAAU;;;;;;;;;;;;;;;;uBA2CvD,cAAc,KAAG,QAAQ,GAAG,CAAC;2BAoD7B,cAAc,KAAG,OAAO;mBArF3B,IAAI;;EAqGjB"}
@@ -0,0 +1,37 @@
1
+ import { SCUserType } from '@selfcommunity/types';
2
+ /**
3
+ :::info
4
+ This custom hook is used to manage to manage followed users.
5
+ :::
6
+ :::tipHow to use it:
7
+
8
+ Follow these steps:
9
+ ```jsx
10
+ 1. const scUserContext: SCUserContextType = useSCUser();
11
+ 2. const scFollowedManager: SCFollowedManagerType = scUserContext.manager.followed;
12
+ 3. scFollowedManager.isFollowed(user)
13
+ ```
14
+ :::
15
+ */
16
+ export default function useSCFollowedManager(user?: SCUserType): {
17
+ followed: any[];
18
+ loading: number[];
19
+ isLoading: (obj: {
20
+ id: number;
21
+ }) => boolean;
22
+ follow?: undefined;
23
+ isFollowed?: undefined;
24
+ refresh?: undefined;
25
+ emptyCache?: undefined;
26
+ } | {
27
+ followed: any[];
28
+ loading: number[];
29
+ isLoading: (obj: {
30
+ id: number;
31
+ }) => boolean;
32
+ follow: (user: SCUserType) => Promise<any>;
33
+ isFollowed: (user: SCUserType) => boolean;
34
+ refresh: () => void;
35
+ emptyCache: () => void;
36
+ };
37
+ //# sourceMappingURL=useSCFollowersManager.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useSCFollowersManager.d.ts","sourceRoot":"","sources":["../../../../../src/hooks/useSCFollowersManager.ts"],"names":[],"mappings":"AAGA,OAAO,EAAsD,UAAU,EAAC,MAAM,sBAAsB,CAAC;AAgBrG;;;;;;;;;;;;;GAaG;AACH,MAAM,CAAC,OAAO,UAAU,oBAAoB,CAAC,IAAI,CAAC,EAAE,UAAU;;;;;;;;;;;;;;;;mBA0FjD,UAAU,KAAG,QAAQ,GAAG,CAAC;uBAiEzB,UAAU,KAAG,OAAO;mBAtGnB,IAAI;;EAyHjB"}
@@ -0,0 +1,4 @@
1
+ export default function useSCMediaClick(): {
2
+ handleMediaClick: (mediaObj: any) => void;
3
+ };
4
+ //# sourceMappingURL=useSCMediaClick.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useSCMediaClick.d.ts","sourceRoot":"","sources":["../../../../../src/hooks/useSCMediaClick.ts"],"names":[],"mappings":"AAIA,MAAM,CAAC,OAAO,UAAU,eAAe;;EAatC"}