@selfcommunity/react-ui 0.1.4 → 0.1.5-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 (211) hide show
  1. package/lib/cjs/components/AccountSignIn/AccountSignIn.js +3 -1
  2. package/lib/cjs/components/BroadcastMessages/BroadcastMessages.js +3 -1
  3. package/lib/cjs/components/BroadcastMessages/Message.js +3 -1
  4. package/lib/cjs/components/CategoriesFollowed/CategoriesFollowed.js +3 -1
  5. package/lib/cjs/components/CategoriesPopular/CategoriesPopular.js +2 -2
  6. package/lib/cjs/components/ChangeCover/ChangeCover.js +2 -2
  7. package/lib/cjs/components/CommentObject/CommentObject.js +5 -3
  8. package/lib/cjs/components/CommentObject/Votes/VotesDialog/VotesDialog.js +3 -1
  9. package/lib/cjs/components/CommentsFeedObject/CommentsFeedObject.js +3 -1
  10. package/lib/cjs/components/CommentsObject/CommentsObject.js +3 -3
  11. package/lib/cjs/components/Composer/Composer.js +4 -4
  12. package/lib/cjs/components/Feed/Feed.js +4 -4
  13. package/lib/cjs/components/FeedObject/Actions/Follow/Follow.js +3 -1
  14. package/lib/cjs/components/FeedObject/Actions/Share/Share.js +3 -1
  15. package/lib/cjs/components/FeedObject/Actions/Share/SharesDialog/SharesDialog.js +3 -1
  16. package/lib/cjs/components/FeedObject/Actions/Vote/Vote.js +4 -2
  17. package/lib/cjs/components/FeedObject/Activities/ActivitiesMenu/ActivitiesMenu.js +3 -1
  18. package/lib/cjs/components/FeedObject/Contributors/Contributors.js +3 -1
  19. package/lib/cjs/components/FeedObject/FeedObject.js +3 -1
  20. package/lib/cjs/components/FeedObject/Poll/Poll.js +2 -2
  21. package/lib/cjs/components/FollowCategoryButton/FollowCategoryButton.js +3 -1
  22. package/lib/cjs/components/FollowUserButton/FollowUserButton.js +3 -1
  23. package/lib/cjs/components/Footer/Footer.js +4 -2
  24. package/lib/cjs/components/Incubator/SubscribeButton/SubscribeButton.js +3 -1
  25. package/lib/cjs/components/IncubatorDetail/IncubatorDetail.js +3 -1
  26. package/lib/cjs/components/IncubatorSuggestion/IncubatorSuggestion.js +3 -1
  27. package/lib/cjs/components/IncubatorsList/CreateIncubatorDialog/CreateIncubatorDialog.js +3 -1
  28. package/lib/cjs/components/IncubatorsList/IncubatorsList.js +2 -2
  29. package/lib/cjs/components/Notification/CollapsedFor/CollapsedFor.js +5 -3
  30. package/lib/cjs/components/Notification/DeletedFor/DeletedFor.js +5 -3
  31. package/lib/cjs/components/Notification/KindlyNoticeFlag/KindlyNoticeFlag.js +3 -1
  32. package/lib/cjs/components/Notification/KindlyNoticeFor/KindlyNoticeFor.js +5 -3
  33. package/lib/cjs/components/Notification/Notification.js +4 -2
  34. package/lib/cjs/components/PollSuggestion/PollSuggestion.js +3 -1
  35. package/lib/cjs/components/RelatedFeedObjects/RelatedFeedObjects.js +4 -2
  36. package/lib/cjs/components/SnippetNotifications/SnippetNotifications.js +3 -1
  37. package/lib/cjs/components/TrendingFeed/TrendingFeed.js +2 -2
  38. package/lib/cjs/components/UserFollowers/UserFollowers.js +3 -1
  39. package/lib/cjs/components/UserProfileEdit/Section/PublicInfo.js +6 -5
  40. package/lib/cjs/components/UserProfileInfo/UserProfileInfo.js +3 -1
  41. package/lib/cjs/components/UsersFollowed/UsersFollowed.js +3 -1
  42. package/lib/cjs/shared/ContributionActionsMenu/index.js +10 -10
  43. package/lib/cjs/shared/Lightbox/Lightbox.js +5 -5
  44. package/lib/cjs/shared/Media/Link/UrlTextField/index.js +3 -3
  45. package/lib/esm/api-services/src/constants/Endpoints.d.ts.map +1 -1
  46. package/lib/esm/api-services/src/index.d.ts +26 -3
  47. package/lib/esm/api-services/src/index.d.ts.map +1 -1
  48. package/lib/esm/api-services/src/services/category/index.d.ts +42 -0
  49. package/lib/esm/api-services/src/services/category/index.d.ts.map +1 -1
  50. package/lib/esm/api-services/src/services/comment/index.d.ts +40 -0
  51. package/lib/esm/api-services/src/services/comment/index.d.ts.map +1 -0
  52. package/lib/esm/api-services/src/services/custom_adv/index.d.ts +16 -0
  53. package/lib/esm/api-services/src/services/custom_adv/index.d.ts.map +1 -0
  54. package/lib/esm/api-services/src/services/custom_page/index.d.ts +16 -0
  55. package/lib/esm/api-services/src/services/custom_page/index.d.ts.map +1 -0
  56. package/lib/esm/api-services/src/services/data_portability/index.d.ts +16 -0
  57. package/lib/esm/api-services/src/services/data_portability/index.d.ts.map +1 -0
  58. package/lib/esm/api-services/src/services/dynamic_preference/index.d.ts +16 -0
  59. package/lib/esm/api-services/src/services/dynamic_preference/index.d.ts.map +1 -0
  60. package/lib/esm/api-services/src/services/embed/index.d.ts +31 -0
  61. package/lib/esm/api-services/src/services/embed/index.d.ts.map +1 -0
  62. package/lib/esm/api-services/src/services/feed/index.d.ts +22 -0
  63. package/lib/esm/api-services/src/services/feed/index.d.ts.map +1 -0
  64. package/lib/esm/api-services/src/services/feed_object/index.d.ts +88 -0
  65. package/lib/esm/api-services/src/services/feed_object/index.d.ts.map +1 -0
  66. package/lib/esm/api-services/src/services/incubator/index.d.ts +28 -0
  67. package/lib/esm/api-services/src/services/incubator/index.d.ts.map +1 -0
  68. package/lib/esm/api-services/src/services/insight/index.d.ts +25 -0
  69. package/lib/esm/api-services/src/services/insight/index.d.ts.map +1 -0
  70. package/lib/esm/api-services/src/services/legal_page/index.d.ts +25 -0
  71. package/lib/esm/api-services/src/services/legal_page/index.d.ts.map +1 -0
  72. package/lib/esm/api-services/src/services/locality/index.d.ts +13 -0
  73. package/lib/esm/api-services/src/services/locality/index.d.ts.map +1 -0
  74. package/lib/esm/api-services/src/services/loyalty/index.d.ts +34 -0
  75. package/lib/esm/api-services/src/services/loyalty/index.d.ts.map +1 -0
  76. package/lib/esm/api-services/src/services/media/index.d.ts +28 -0
  77. package/lib/esm/api-services/src/services/media/index.d.ts.map +1 -0
  78. package/lib/esm/api-services/src/services/moderation/index.d.ts +25 -0
  79. package/lib/esm/api-services/src/services/moderation/index.d.ts.map +1 -0
  80. package/lib/esm/api-services/src/services/notification/index.d.ts +34 -0
  81. package/lib/esm/api-services/src/services/notification/index.d.ts.map +1 -0
  82. package/lib/esm/api-services/src/services/private_message/index.d.ts +37 -0
  83. package/lib/esm/api-services/src/services/private_message/index.d.ts.map +1 -0
  84. package/lib/esm/api-services/src/services/score/index.d.ts +16 -0
  85. package/lib/esm/api-services/src/services/score/index.d.ts.map +1 -0
  86. package/lib/esm/api-services/src/services/sso/index.d.ts +13 -0
  87. package/lib/esm/api-services/src/services/sso/index.d.ts.map +1 -0
  88. package/lib/esm/api-services/src/services/suggestion/index.d.ts +19 -0
  89. package/lib/esm/api-services/src/services/suggestion/index.d.ts.map +1 -0
  90. package/lib/esm/api-services/src/services/tag/index.d.ts +28 -0
  91. package/lib/esm/api-services/src/services/tag/index.d.ts.map +1 -0
  92. package/lib/esm/api-services/src/services/user/index.d.ts +132 -0
  93. package/lib/esm/api-services/src/services/user/index.d.ts.map +1 -1
  94. package/lib/esm/api-services/src/services/webhook/index.d.ts +43 -0
  95. package/lib/esm/api-services/src/services/webhook/index.d.ts.map +1 -0
  96. package/lib/esm/api-services/src/utils/token.d.ts +5 -0
  97. package/lib/esm/api-services/src/utils/token.d.ts.map +1 -1
  98. package/lib/esm/components/AccountSignIn/AccountSignIn.js +3 -1
  99. package/lib/esm/components/BroadcastMessages/BroadcastMessages.js +3 -1
  100. package/lib/esm/components/BroadcastMessages/Message.js +3 -1
  101. package/lib/esm/components/CategoriesFollowed/CategoriesFollowed.js +3 -1
  102. package/lib/esm/components/CategoriesPopular/CategoriesPopular.js +2 -2
  103. package/lib/esm/components/ChangeCover/ChangeCover.js +2 -2
  104. package/lib/esm/components/CommentObject/CommentObject.js +5 -3
  105. package/lib/esm/components/CommentObject/Votes/VotesDialog/VotesDialog.js +3 -1
  106. package/lib/esm/components/CommentsFeedObject/CommentsFeedObject.js +3 -1
  107. package/lib/esm/components/CommentsObject/CommentsObject.js +3 -3
  108. package/lib/esm/components/Composer/Composer.js +4 -4
  109. package/lib/esm/components/Feed/Feed.js +4 -4
  110. package/lib/esm/components/FeedObject/Actions/Follow/Follow.js +3 -1
  111. package/lib/esm/components/FeedObject/Actions/Share/Share.js +3 -1
  112. package/lib/esm/components/FeedObject/Actions/Share/SharesDialog/SharesDialog.js +3 -1
  113. package/lib/esm/components/FeedObject/Actions/Vote/Vote.js +4 -2
  114. package/lib/esm/components/FeedObject/Activities/ActivitiesMenu/ActivitiesMenu.js +3 -1
  115. package/lib/esm/components/FeedObject/Contributors/Contributors.js +3 -1
  116. package/lib/esm/components/FeedObject/FeedObject.js +3 -1
  117. package/lib/esm/components/FeedObject/Poll/Poll.js +2 -2
  118. package/lib/esm/components/FollowCategoryButton/FollowCategoryButton.js +3 -1
  119. package/lib/esm/components/FollowUserButton/FollowUserButton.js +3 -1
  120. package/lib/esm/components/Footer/Footer.js +4 -2
  121. package/lib/esm/components/Incubator/SubscribeButton/SubscribeButton.js +3 -1
  122. package/lib/esm/components/IncubatorDetail/IncubatorDetail.js +3 -1
  123. package/lib/esm/components/IncubatorSuggestion/IncubatorSuggestion.js +3 -1
  124. package/lib/esm/components/IncubatorsList/CreateIncubatorDialog/CreateIncubatorDialog.js +3 -1
  125. package/lib/esm/components/IncubatorsList/IncubatorsList.js +2 -2
  126. package/lib/esm/components/Notification/CollapsedFor/CollapsedFor.js +5 -3
  127. package/lib/esm/components/Notification/DeletedFor/DeletedFor.js +5 -3
  128. package/lib/esm/components/Notification/KindlyNoticeFlag/KindlyNoticeFlag.js +3 -1
  129. package/lib/esm/components/Notification/KindlyNoticeFor/KindlyNoticeFor.js +5 -3
  130. package/lib/esm/components/Notification/Notification.js +4 -2
  131. package/lib/esm/components/PollSuggestion/PollSuggestion.js +3 -1
  132. package/lib/esm/components/RelatedFeedObjects/RelatedFeedObjects.js +4 -2
  133. package/lib/esm/components/SnippetNotifications/SnippetNotifications.js +3 -1
  134. package/lib/esm/components/TrendingFeed/TrendingFeed.js +2 -2
  135. package/lib/esm/components/UserFollowers/UserFollowers.js +3 -1
  136. package/lib/esm/components/UserProfileEdit/Section/PublicInfo.js +6 -5
  137. package/lib/esm/components/UserProfileInfo/UserProfileInfo.js +3 -1
  138. package/lib/esm/components/UsersFollowed/UsersFollowed.js +3 -1
  139. package/lib/esm/react-core/src/hooks/useSCFetchAddressingTagList.d.ts.map +1 -1
  140. package/lib/esm/react-core/src/hooks/useSCFetchCommentObjects.d.ts +1 -2
  141. package/lib/esm/react-core/src/hooks/useSCFetchCommentObjects.d.ts.map +1 -1
  142. package/lib/esm/react-core/src/hooks/useSCWebSocket.d.ts +1 -1
  143. package/lib/esm/react-core/src/hooks/useSCWebSocket.d.ts.map +1 -1
  144. package/lib/esm/react-core/src/index.d.ts +2 -7
  145. package/lib/esm/react-core/src/index.d.ts.map +1 -1
  146. package/lib/esm/react-core/src/utils/validator.d.ts.map +1 -1
  147. package/lib/esm/react-ui/src/components/AccountSignIn/AccountSignIn.d.ts.map +1 -1
  148. package/lib/esm/react-ui/src/components/BroadcastMessages/BroadcastMessages.d.ts.map +1 -1
  149. package/lib/esm/react-ui/src/components/CategoriesFollowed/CategoriesFollowed.d.ts.map +1 -1
  150. package/lib/esm/react-ui/src/components/CommentObject/Votes/VotesDialog/VotesDialog.d.ts.map +1 -1
  151. package/lib/esm/react-ui/src/components/CommentsFeedObject/CommentsFeedObject.d.ts.map +1 -1
  152. package/lib/esm/react-ui/src/components/Feed/Feed.d.ts.map +1 -1
  153. package/lib/esm/react-ui/src/components/FeedObject/Actions/Follow/Follow.d.ts.map +1 -1
  154. package/lib/esm/react-ui/src/components/FeedObject/Actions/Share/SharesDialog/SharesDialog.d.ts.map +1 -1
  155. package/lib/esm/react-ui/src/components/FeedObject/Actions/Vote/Vote.d.ts.map +1 -1
  156. package/lib/esm/react-ui/src/components/FeedObject/Activities/ActivitiesMenu/ActivitiesMenu.d.ts.map +1 -1
  157. package/lib/esm/react-ui/src/components/FeedObject/Contributors/Contributors.d.ts.map +1 -1
  158. package/lib/esm/react-ui/src/components/IncubatorSuggestion/IncubatorSuggestion.d.ts.map +1 -1
  159. package/lib/esm/react-ui/src/components/IncubatorsList/CreateIncubatorDialog/CreateIncubatorDialog.d.ts.map +1 -1
  160. package/lib/esm/react-ui/src/components/Notification/CollapsedFor/CollapsedFor.d.ts.map +1 -1
  161. package/lib/esm/react-ui/src/components/Notification/DeletedFor/DeletedFor.d.ts.map +1 -1
  162. package/lib/esm/react-ui/src/components/Notification/KindlyNoticeFlag/KindlyNoticeFlag.d.ts.map +1 -1
  163. package/lib/esm/react-ui/src/components/Notification/KindlyNoticeFor/KindlyNoticeFor.d.ts.map +1 -1
  164. package/lib/esm/react-ui/src/components/Notification/Notification.d.ts.map +1 -1
  165. package/lib/esm/react-ui/src/components/PollSuggestion/PollSuggestion.d.ts.map +1 -1
  166. package/lib/esm/react-ui/src/components/RelatedFeedObjects/RelatedFeedObjects.d.ts.map +1 -1
  167. package/lib/esm/react-ui/src/components/SnippetNotifications/SnippetNotifications.d.ts.map +1 -1
  168. package/lib/esm/react-ui/src/components/UserFollowers/UserFollowers.d.ts.map +1 -1
  169. package/lib/esm/react-ui/src/components/UserProfileEdit/Section/PublicInfo.d.ts.map +1 -1
  170. package/lib/esm/react-ui/src/components/UserProfileInfo/UserProfileInfo.d.ts.map +1 -1
  171. package/lib/esm/react-ui/src/components/UsersFollowed/UsersFollowed.d.ts.map +1 -1
  172. package/lib/esm/react-ui/src/shared/ContributionActionsMenu/index.d.ts.map +1 -1
  173. package/lib/esm/shared/ContributionActionsMenu/index.js +10 -10
  174. package/lib/esm/shared/Lightbox/Lightbox.js +5 -5
  175. package/lib/esm/shared/Media/Link/UrlTextField/index.js +3 -3
  176. package/lib/esm/utils/src/index.d.ts +8 -3
  177. package/lib/esm/utils/src/index.d.ts.map +1 -1
  178. package/lib/esm/utils/src/utils/browser.d.ts +9 -0
  179. package/lib/esm/utils/src/utils/browser.d.ts.map +1 -0
  180. package/lib/esm/{react-core → utils}/src/utils/logger.d.ts +0 -0
  181. package/lib/esm/utils/src/utils/logger.d.ts.map +1 -0
  182. package/lib/esm/{react-core → utils}/src/utils/object.d.ts +0 -0
  183. package/lib/esm/utils/src/utils/object.d.ts.map +1 -0
  184. package/lib/esm/utils/src/utils/string.d.ts +22 -0
  185. package/lib/esm/utils/src/utils/string.d.ts.map +1 -1
  186. package/lib/esm/utils/src/utils/url.d.ts +11 -0
  187. package/lib/esm/utils/src/utils/url.d.ts.map +1 -1
  188. package/lib/esm/{react-core → utils}/src/utils/websocket.d.ts +0 -0
  189. package/lib/esm/utils/src/utils/websocket.d.ts.map +1 -0
  190. package/lib/umd/react-ui.js +14 -14
  191. package/lib/umd/react-ui.js.map +1 -1
  192. package/package.json +6 -6
  193. package/lib/cjs/scss/styles.scss +0 -0
  194. package/lib/cjs/utils/string.js +0 -65
  195. package/lib/cjs/utils/url.js +0 -24
  196. package/lib/cjs/utils/window.js +0 -41
  197. package/lib/esm/react-core/src/utils/logger.d.ts.map +0 -1
  198. package/lib/esm/react-core/src/utils/object.d.ts.map +0 -1
  199. package/lib/esm/react-core/src/utils/string.d.ts +0 -21
  200. package/lib/esm/react-core/src/utils/string.d.ts.map +0 -1
  201. package/lib/esm/react-core/src/utils/url.d.ts +0 -22
  202. package/lib/esm/react-core/src/utils/url.d.ts.map +0 -1
  203. package/lib/esm/react-core/src/utils/webPushMessaging.d.ts +0 -14
  204. package/lib/esm/react-core/src/utils/webPushMessaging.d.ts.map +0 -1
  205. package/lib/esm/react-core/src/utils/websocket.d.ts.map +0 -1
  206. package/lib/esm/react-ui/src/utils/url.d.ts +0 -7
  207. package/lib/esm/react-ui/src/utils/url.d.ts.map +0 -1
  208. package/lib/esm/scss/styles.scss +0 -0
  209. package/lib/esm/utils/string.js +0 -65
  210. package/lib/esm/utils/url.js +0 -24
  211. package/lib/esm/utils/window.js +0 -41
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../api-services/src/services/tag/index.ts"],"names":[],"mappings":"AAGA,MAAM,W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AAE,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC;WAGnC,QAAQ,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC;WAGlC,UAAU,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC;CAGlD"}
@@ -1,16 +1,148 @@
1
1
  export interface UserApiClientInterface {
2
2
  getAllUsers(): Promise<any>;
3
+ getHiddenUsers(): Promise<any>;
4
+ userAutocomplete(): Promise<any>;
5
+ userSearch(): Promise<any>;
3
6
  getSpecificUser(id: number): Promise<any>;
7
+ getUserCounters(id: number): Promise<any>;
8
+ userUpdate(id: number): Promise<any>;
9
+ userPatch(id: number): Promise<any>;
10
+ userDelete(id: number): Promise<any>;
11
+ changeUserMail(id: number): Promise<any>;
12
+ confirmChangeUserMail(id: number): Promise<any>;
13
+ changeUserPassword(id: number): Promise<any>;
14
+ userSettings(id: number): Promise<any>;
15
+ userSettingsPatch(id: number): Promise<any>;
4
16
  getCurrentUser(): Promise<any>;
17
+ getCurrentUserAvatar(): Promise<any>;
18
+ getCurrentUserPermission(): Promise<any>;
19
+ getCurrentUserPlatform(): Promise<any>;
20
+ getUserFollowedCategories(id: number): Promise<any>;
21
+ getUserFeed(id: number): Promise<any>;
22
+ getUserFollowers(id: number): Promise<any>;
23
+ getUserFollowed(id: number): Promise<any>;
24
+ followUser(id: number): Promise<any>;
25
+ checkUserFollowed(id: number): Promise<any>;
26
+ checkUserFollower(id: number): Promise<any>;
27
+ getUserConnections(id: number): Promise<any>;
28
+ checkUserConnections(id: number): Promise<any>;
29
+ getUserConnectionRequests(id: number): Promise<any>;
30
+ getUserRequestConnectionsSent(id: number): Promise<any>;
31
+ userAcceptRequestConnection(id: number): Promise<any>;
32
+ userRequestConnection(id: number): Promise<any>;
33
+ userRemoveConnection(id: number): Promise<any>;
34
+ userCancelRejectConnectionRequest(id: number): Promise<any>;
35
+ userCancelRequestConnection(id: number): Promise<any>;
36
+ userRejectConnectionRequest(id: number): Promise<any>;
37
+ userMarkSeenConnectionRequest(id: number): Promise<any>;
38
+ showHideUser(id: number): Promise<any>;
39
+ checkUserHidden(id: number): Promise<any>;
40
+ checkUserHiddenBy(id: number): Promise<any>;
41
+ getUserLoyaltyPoints(id: number): Promise<any>;
42
+ getUserConnectionStatuses(): Promise<any>;
43
+ userTagToAddressContribution(): Promise<any>;
44
+ checkUserEmailToken(): Promise<any>;
45
+ addUserAvatar(): Promise<any>;
46
+ getUserAvatars(): Promise<any>;
47
+ removeUserAvatar(): Promise<any>;
48
+ setUserPrimaryAvatar(): Promise<any>;
5
49
  }
6
50
  export declare class UserApiClient {
7
51
  static getAllUsers(): Promise<any>;
52
+ static getHiddenUsers(): Promise<any>;
53
+ static userAutocomplete(): Promise<any>;
54
+ static userSearch(): Promise<any>;
8
55
  static getSpecificUser(id: number): Promise<any>;
56
+ static getUserCounters(id: number): Promise<any>;
57
+ static userUpdate(id: number): Promise<any>;
58
+ static userPatch(id: number): Promise<any>;
59
+ static userDelete(id: number): Promise<any>;
60
+ static changeUserMail(id: number): Promise<any>;
61
+ static confirmChangeUserMail(id: number): Promise<any>;
62
+ static changeUserPassword(id: number): Promise<any>;
63
+ static userSettings(id: number): Promise<any>;
64
+ static userSettingsPatch(id: number): Promise<any>;
9
65
  static getCurrentUser(): Promise<any>;
66
+ static getCurrentUserAvatar(): Promise<any>;
67
+ static getCurrentUserPermission(): Promise<any>;
68
+ static getCurrentUserPlatform(): Promise<any>;
69
+ static getUserFollowedCategories(id: number): Promise<any>;
70
+ static getUserFeed(id: number): Promise<any>;
71
+ static getUserFollowers(id: number): Promise<any>;
72
+ static getUserFollowed(id: number): Promise<any>;
73
+ static followUser(id: number): Promise<any>;
74
+ static checkUserFollowed(id: number): Promise<any>;
75
+ static checkUserFollower(id: number): Promise<any>;
76
+ static getUserConnections(id: number): Promise<any>;
77
+ static checkUserConnections(id: number): Promise<any>;
78
+ static getUserConnectionRequests(id: number): Promise<any>;
79
+ static getUserRequestConnectionsSent(id: number): Promise<any>;
80
+ static userAcceptRequestConnection(id: number): Promise<any>;
81
+ static userRequestConnection(id: number): Promise<any>;
82
+ static userRemoveConnection(id: number): Promise<any>;
83
+ static userCancelRejectConnectionRequest(id: number): Promise<any>;
84
+ static userCancelRequestConnection(id: number): Promise<any>;
85
+ static userRejectConnectionRequest(id: number): Promise<any>;
86
+ static userMarkSeenConnectionRequest(id: number): Promise<any>;
87
+ static showHideUser(id: number): Promise<any>;
88
+ static checkUserHidden(id: number): Promise<any>;
89
+ static checkUserHiddenBy(id: number): Promise<any>;
90
+ static getUserLoyaltyPoints(id: number): Promise<any>;
91
+ static getUserConnectionStatuses(): Promise<any>;
92
+ static userTagToAddressContribution(): Promise<any>;
93
+ static checkUserEmailToken(): Promise<any>;
94
+ static addUserAvatar(): Promise<any>;
95
+ static getUserAvatars(): Promise<any>;
96
+ static removeUserAvatar(): Promise<any>;
97
+ static setUserPrimaryAvatar(): Promise<any>;
10
98
  }
11
99
  export default class UserService {
12
100
  static getAllUsers(): Promise<any>;
101
+ static getHiddenUsers(): Promise<any>;
102
+ static userAutocomplete(): Promise<any>;
103
+ static userSearch(): Promise<any>;
13
104
  static getSpecificUser(id: number): Promise<any>;
105
+ static getUserCounters(id: number): Promise<any>;
106
+ static userUpdate(id: number): Promise<any>;
107
+ static userPatch(id: number): Promise<any>;
108
+ static userDelete(id: number): Promise<any>;
109
+ static changeUserMail(id: number): Promise<any>;
110
+ static confirmChangeUserMail(id: number): Promise<any>;
111
+ static changeUserPassword(id: number): Promise<any>;
112
+ static userSettings(id: number): Promise<any>;
113
+ static userSettingsPatch(id: number): Promise<any>;
14
114
  static getCurrentUser(): Promise<any>;
115
+ static getCurrentUserAvatar(): Promise<any>;
116
+ static getCurrentUserPermission(): Promise<any>;
117
+ static getCurrentUserPlatform(): Promise<any>;
118
+ static getUserFollowedCategories(id: number): Promise<any>;
119
+ static getUserFeed(id: number): Promise<any>;
120
+ static getUserFollowers(id: number): Promise<any>;
121
+ static getUserFollowed(id: number): Promise<any>;
122
+ static followUser(id: number): Promise<any>;
123
+ static checkUserFollowed(id: number): Promise<any>;
124
+ static checkUserFollower(id: number): Promise<any>;
125
+ static getUserConnections(id: number): Promise<any>;
126
+ static checkUserConnections(id: number): Promise<any>;
127
+ static getUserConnectionRequests(id: number): Promise<any>;
128
+ static getUserRequestConnectionsSent(id: number): Promise<any>;
129
+ static userAcceptRequestConnection(id: number): Promise<any>;
130
+ static userRequestConnection(id: number): Promise<any>;
131
+ static userRemoveConnection(id: number): Promise<any>;
132
+ static userCancelRejectConnectionRequest(id: number): Promise<any>;
133
+ static userCancelRequestConnection(id: number): Promise<any>;
134
+ static userRejectConnectionRequest(id: number): Promise<any>;
135
+ static userMarkSeenConnectionRequest(id: number): Promise<any>;
136
+ static showHideUser(id: number): Promise<any>;
137
+ static checkUserHidden(id: number): Promise<any>;
138
+ static checkUserHiddenBy(id: number): Promise<any>;
139
+ static getUserLoyaltyPoints(id: number): Promise<any>;
140
+ static getUserConnectionStatuses(): Promise<any>;
141
+ static userTagToAddressContribution(): Promise<any>;
142
+ static checkUserEmailToken(): Promise<any>;
143
+ static addUserAvatar(): Promise<any>;
144
+ static getUserAvatars(): Promise<any>;
145
+ static removeUserAvatar(): Promise<any>;
146
+ static setUserPrimaryAvatar(): Promise<any>;
15
147
  }
16
148
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../api-services/src/services/user/index.ts"],"names":[],"mappings":"AAGA,MAAM,WAAW,sBAAsB;IACrC,WAAW,IAAI,OAAO,CAAC,GAAG,CAAC,CAAC;IAC5B,eAAe,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,CAAC;IAC1C,cAAc,IAAI,OAAO,CAAC,GAAG,CAAC,CAAC;CAChC;AAED,qBAAa,aAAa;IACxB,MAAM,CAAC,WAAW,IAAI,OAAO,CAAC,GAAG,CAAC;IAmBlC,MAAM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,GAAG,CAAC;WAG7B,cAAc,IAAI,OAAO,CAAC,GAAG,CAAC;WAG9B,gBAAgB,IAAI,OAAO,CAAC,GAAG,CAAC;WAGhC,oBAAoB,IAAI,OAAO,CAAC,GAAG,CAAC;CAGlD"}
@@ -0,0 +1,43 @@
1
+ export interface WebhookApiClientInterface {
2
+ getAllWebhookEndpoints(): Promise<any>;
3
+ getAllWebhookEvents(): Promise<any>;
4
+ createWebhookEndpoint(): Promise<any>;
5
+ getASpecificWebhookEndpoint(id: number): Promise<any>;
6
+ updateASpecificWebhookEndpoint(id: number): Promise<any>;
7
+ updateASingleWebhookEndpointField(id: number): Promise<any>;
8
+ deleteWebhookEndpoint(id: number): Promise<any>;
9
+ getAllWebhookEndpointAttempts(): Promise<any>;
10
+ expireWebhookSigningSecret(id: number): Promise<any>;
11
+ revealWebhookSigningSecret(id: number): Promise<any>;
12
+ resendWebhookEndpointEvent(id: number): Promise<any>;
13
+ resendMultipleWebhookEndpointEvent(id: number): Promise<any>;
14
+ }
15
+ export declare class WebhookApiClient {
16
+ static getAllWebhookEndpoints(): Promise<any>;
17
+ static getAllWebhookEvents(): Promise<any>;
18
+ static createWebhookEndpoint(): Promise<any>;
19
+ static getASpecificWebhookEndpoint(id: number): Promise<any>;
20
+ static updateASpecificWebhookEndpoint(id: number): Promise<any>;
21
+ static updateASingleWebhookEndpointField(id: number): Promise<any>;
22
+ static deleteWebhookEndpoint(id: number): Promise<any>;
23
+ static getAllWebhookEndpointAttempts(id: number): Promise<any>;
24
+ static expireWebhookSigningSecret(id: number): Promise<any>;
25
+ static revealWebhookSigningSecret(id: number): Promise<any>;
26
+ static resendWebhookEndpointEvent(id: number): Promise<any>;
27
+ static resendMultipleWebhookEndpointEvent(id: number): Promise<any>;
28
+ }
29
+ export default class WebhookService {
30
+ static getAllWebhookEndpoints(): Promise<any>;
31
+ static getAllWebhookEvents(): Promise<any>;
32
+ static createWebhookEndpoint(): Promise<any>;
33
+ static getASpecificWebhookEndpoint(id: number): Promise<any>;
34
+ static updateASpecificWebhookEndpoint(id: number): Promise<any>;
35
+ static updateASingleWebhookEndpointField(id: number): Promise<any>;
36
+ static deleteWebhookEndpoint(id: number): Promise<any>;
37
+ static getAllWebhookEndpointAttempts(id: number): Promise<any>;
38
+ static expireWebhookSigningSecret(id: number): Promise<any>;
39
+ static revealWebhookSigningSecret(id: number): Promise<any>;
40
+ static resendWebhookEndpointEvent(id: number): Promise<any>;
41
+ static resendMultipleWebhookEndpointEvent(id: number): Promise<any>;
42
+ }
43
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../api-services/src/services/webhook/index.ts"],"names":[],"mappings":"AAGA,MAAM,WAAW,yBAAyB;IACxC,sBAAsB,IAAI,OAAO,CAAC,GAAG,CAAC,CAAC;IACvC,mBAAmB,IAAI,OAAO,CAAC,GAAG,CAAC,CAAC;IACpC,qBAAqB,IAAI,OAAO,CAAC,GAAG,CAAC,CAAC;IACtC,2BAA2B,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,CAAC;IACtD,8BAA8B,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,CAAC;IACzD,iCAAiC,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,CAAC;IAC5D,qBAAqB,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,CAAC;IAChD,6BAA6B,IAAI,OAAO,CAAC,GAAG,CAAC,CAAC;IAC9C,0BAA0B,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,CAAC;IACrD,0BAA0B,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,CAAC;IACrD,0BAA0B,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,CAAC;IACrD,kCAAkC,CAAC,EAAE,E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C,GAAG,CAAC;WAGrD,8BAA8B,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC;WAGxD,iCAAiC,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC;WAG3D,qBAAqB,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC;WAG/C,6BAA6B,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC;WAGvD,0BAA0B,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC;WAGpD,0BAA0B,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC;WAGpD,0BAA0B,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC;WAGpD,kCAAkC,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC;CAG1E"}
@@ -13,4 +13,9 @@
13
13
  * @param expirationTime
14
14
  */
15
15
  export declare function generateJWTToken(userId: any, secretKey: any, expirationTime: any): Promise<string>;
16
+ /**
17
+ * Extract from a jwt token payload
18
+ * @param token
19
+ */
20
+ export declare function parseJwt(token: any): any;
16
21
  //# sourceMappingURL=token.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"token.d.ts","sourceRoot":"","sources":["../../../../../../api-services/src/utils/token.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;GAaG;AACH,wBAAsB,gBAAgB,CAAC,MAAM,KAAA,EAAE,SAAS,KAAA,EAAE,cAAc,KAAA,mBAWvE"}
1
+ {"version":3,"file":"token.d.ts","sourceRoot":"","sources":["../../../../../../api-services/src/utils/token.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;GAaG;AACH,wBAAsB,gBAAgB,CAAC,MAAM,KAAA,EAAE,SAAS,KAAA,EAAE,cAAc,KAAA,mBAWvE;AAED;;;GAGG;AACH,wBAAgB,QAAQ,CAAC,KAAK,KAAA,OAY7B"}
@@ -9,6 +9,8 @@ var _styles = require("@mui/material/styles");
9
9
 
10
10
  var _apiServices = require("@selfcommunity/api-services");
11
11
 
12
+ var _utils = require("@selfcommunity/utils");
13
+
12
14
  var _reactCore = require("@selfcommunity/react-core");
13
15
 
14
16
  var _material = require("@mui/material");
@@ -135,7 +137,7 @@ function AccountSignIn(inProps) {
135
137
  }).catch(error => {
136
138
  setIsSubmitting(false);
137
139
 
138
- _reactCore.Logger.error(_Errors.SCOPE_SC_UI, error);
140
+ _utils.Logger.error(_Errors.SCOPE_SC_UI, error);
139
141
  });
140
142
  }
141
143
 
@@ -13,6 +13,8 @@ var _types = require("@selfcommunity/types");
13
13
 
14
14
  var _apiServices = require("@selfcommunity/api-services");
15
15
 
16
+ var _utils = require("@selfcommunity/utils");
17
+
16
18
  var _reactCore = require("@selfcommunity/react-core");
17
19
 
18
20
  var _Errors = require("../../constants/Errors");
@@ -163,7 +165,7 @@ function BroadcastMessages(inProps) {
163
165
  setNext(res.next);
164
166
  setLoading(false);
165
167
  }).catch(error => {
166
- _reactCore.Logger.error(_Errors.SCOPE_SC_UI, error);
168
+ _utils.Logger.error(_Errors.SCOPE_SC_UI, error);
167
169
  });
168
170
  };
169
171
  /**
@@ -27,6 +27,8 @@ var _colors = require("@mui/material/colors");
27
27
 
28
28
  var _apiServices = require("@selfcommunity/api-services");
29
29
 
30
+ var _utils = require("@selfcommunity/utils");
31
+
30
32
  var _reactCore = require("@selfcommunity/react-core");
31
33
 
32
34
  const _excluded = ["id", "className", "message", "onClose", "onRead", "template"];
@@ -127,7 +129,7 @@ function Message(props) {
127
129
  setClosing(false);
128
130
  onClose && onClose(message);
129
131
  }).catch(error => {
130
- _reactCore.Logger.error(_Errors.SCOPE_SC_UI, error);
132
+ _utils.Logger.error(_Errors.SCOPE_SC_UI, error);
131
133
  });
132
134
  }; // RENDER
133
135
 
@@ -13,6 +13,8 @@ var _material = require("@mui/material");
13
13
 
14
14
  var _apiServices = require("@selfcommunity/api-services");
15
15
 
16
+ var _utils = require("@selfcommunity/utils");
17
+
16
18
  var _reactCore = require("@selfcommunity/react-core");
17
19
 
18
20
  var _Category = _interopRequireDefault(require("../Category"));
@@ -166,7 +168,7 @@ function CategoriesFollowed(inProps) {
166
168
  }).catch(error => {
167
169
  setLoading(false);
168
170
 
169
- _reactCore.Logger.error(_Errors.SCOPE_SC_UI, error);
171
+ _utils.Logger.error(_Errors.SCOPE_SC_UI, error);
170
172
  });
171
173
  }
172
174
  }
@@ -11,7 +11,7 @@ var _material = require("@mui/material");
11
11
 
12
12
  var _apiServices = require("@selfcommunity/api-services");
13
13
 
14
- var _reactCore = require("@selfcommunity/react-core");
14
+ var _utils = require("@selfcommunity/utils");
15
15
 
16
16
  var _Skeleton = _interopRequireDefault(require("./Skeleton"));
17
17
 
@@ -129,7 +129,7 @@ function CategoriesPopular(inProps) {
129
129
  }).catch(error => {
130
130
  setLoading(false);
131
131
 
132
- _reactCore.Logger.error(_Errors.SCOPE_SC_UI, error);
132
+ _utils.Logger.error(_Errors.SCOPE_SC_UI, error);
133
133
  });
134
134
  }
135
135
  }, [categories, next, loading]);
@@ -168,10 +168,10 @@ function ChangeCover(inProps) {
168
168
  }
169
169
 
170
170
  _apiServices.http.request({
171
- url: _apiServices.Endpoints.UpdateUser.url({
171
+ url: _apiServices.Endpoints.UserPatch.url({
172
172
  id: scUserContext.user['id']
173
173
  }),
174
- method: _apiServices.Endpoints.UpdateUser.method,
174
+ method: _apiServices.Endpoints.UserPatch.method,
175
175
  headers: {
176
176
  'Content-Type': 'multipart/form-data'
177
177
  },
@@ -49,6 +49,8 @@ var _types = require("@selfcommunity/types");
49
49
 
50
50
  var _apiServices = require("@selfcommunity/api-services");
51
51
 
52
+ var _utils = require("@selfcommunity/utils");
53
+
52
54
  var _reactCore = require("@selfcommunity/react-core");
53
55
 
54
56
  const _excluded = ["id", "className", "commentObjectId", "commentObject", "feedObjectId", "feedObject", "feedObjectType", "commentReply", "onOpenReply", "onDelete", "onVote", "elevation", "CommentObjectSkeletonProps", "ReplyCommentObjectProps", "linkableCommentDateTime"];
@@ -423,7 +425,7 @@ function CommentObject(inProps) {
423
425
  setLoadingVote(false);
424
426
  onVote && onVote(comment);
425
427
  }).catch(error => {
426
- _reactCore.Logger.error(_Errors.SCOPE_SC_UI, error);
428
+ _utils.Logger.error(_Errors.SCOPE_SC_UI, error);
427
429
 
428
430
  enqueueSnackbar( /*#__PURE__*/_react.default.createElement(_reactIntl.FormattedMessage, {
429
431
  id: "ui.common.error.action",
@@ -486,7 +488,7 @@ function CommentObject(inProps) {
486
488
  setReplyComment(null);
487
489
  setIsReplying(false);
488
490
  }).catch(error => {
489
- _reactCore.Logger.error(_Errors.SCOPE_SC_UI, error);
491
+ _utils.Logger.error(_Errors.SCOPE_SC_UI, error);
490
492
 
491
493
  enqueueSnackbar( /*#__PURE__*/_react.default.createElement(_reactIntl.FormattedMessage, {
492
494
  id: "ui.common.error.action",
@@ -636,7 +638,7 @@ function CommentObject(inProps) {
636
638
  setEditComment(null);
637
639
  setIsSavingComment(false);
638
640
  }).catch(error => {
639
- _reactCore.Logger.error(_Errors.SCOPE_SC_UI, error);
641
+ _utils.Logger.error(_Errors.SCOPE_SC_UI, error);
640
642
 
641
643
  enqueueSnackbar( /*#__PURE__*/_react.default.createElement(_reactIntl.FormattedMessage, {
642
644
  id: "ui.common.error.action",
@@ -15,6 +15,8 @@ var _Typography = _interopRequireDefault(require("@mui/material/Typography"));
15
15
 
16
16
  var _apiServices = require("@selfcommunity/api-services");
17
17
 
18
+ var _utils = require("@selfcommunity/utils");
19
+
18
20
  var _reactCore = require("@selfcommunity/react-core");
19
21
 
20
22
  var _types = require("@selfcommunity/types");
@@ -92,7 +94,7 @@ function CommentObjectVotesDialog(inProps) {
92
94
  setIsLoading(false);
93
95
  setNext(data.next !== null ? data.next : null);
94
96
  }).catch(error => {
95
- _reactCore.Logger.error(_Errors.SCOPE_SC_UI, error);
97
+ _utils.Logger.error(_Errors.SCOPE_SC_UI, error);
96
98
  });
97
99
  }
98
100
 
@@ -29,6 +29,8 @@ var _contribution = require("../../utils/contribution");
29
29
 
30
30
  var _apiServices = require("@selfcommunity/api-services");
31
31
 
32
+ var _utils = require("@selfcommunity/utils");
33
+
32
34
  var _reactCore = require("@selfcommunity/react-core");
33
35
 
34
36
  var _types = require("@selfcommunity/types");
@@ -268,7 +270,7 @@ function CommentsFeedObject(inProps) {
268
270
  // Comment not found
269
271
  setIsLoading(false);
270
272
 
271
- _reactCore.Logger.error(_Errors.SCOPE_SC_UI, error);
273
+ _utils.Logger.error(_Errors.SCOPE_SC_UI, error);
272
274
  });
273
275
  } else {
274
276
  if ((0, _contribution.getContribution)(commentObj).id === commentsObject.feedObject.id) {
@@ -31,7 +31,7 @@ var _reactCore = require("@selfcommunity/react-core");
31
31
 
32
32
  var _types = require("@selfcommunity/types");
33
33
 
34
- var _url = require("../../utils/url");
34
+ var _utils = require("@selfcommunity/utils");
35
35
 
36
36
  const _excluded = ["id", "className", "feedObjectId", "feedObject", "feedObjectType", "CommentComponent", "CommentComponentProps", "CommentObjectSkeletonProps", "CommentsObjectSkeletonProps", "next", "isLoadingNext", "handleNext", "previous", "isLoadingPrevious", "handlePrevious", "totalLoadedComments", "totalComments", "page", "comments", "startComments", "endComments", "infiniteScrolling", "hideAdvertising"];
37
37
 
@@ -244,7 +244,7 @@ function CommentsObject(inProps) {
244
244
  id: "ui.commentsObject.loadPreviousComments",
245
245
  defaultMessage: "ui.commentsObject.loadPreviousComments"
246
246
  })), page && /*#__PURE__*/_react.default.createElement(_reactCore.Link, {
247
- to: `${(0, _url.appendURLSearchParams)(scRoutingContext.url((0, _contribution.getContributionRouteName)(feedObject), (0, _contribution.getRouteData)(feedObject)), [{
247
+ to: `${(0, _utils.appendURLSearchParams)(scRoutingContext.url((0, _contribution.getContributionRouteName)(feedObject), (0, _contribution.getRouteData)(feedObject)), [{
248
248
  page: page - 1
249
249
  }])}`,
250
250
  className: classes.paginationLink
@@ -282,7 +282,7 @@ function CommentsObject(inProps) {
282
282
  id: "ui.commentsObject.loadMoreComments",
283
283
  defaultMessage: "ui.commentsObject.loadMoreComments"
284
284
  })), page && /*#__PURE__*/_react.default.createElement(_reactCore.Link, {
285
- to: `${(0, _url.appendURLSearchParams)(scRoutingContext.url((0, _contribution.getContributionRouteName)(feedObject), (0, _contribution.getRouteData)(feedObject)), [{
285
+ to: `${(0, _utils.appendURLSearchParams)(scRoutingContext.url((0, _contribution.getContributionRouteName)(feedObject), (0, _contribution.getRouteData)(feedObject)), [{
286
286
  page: page + 1
287
287
  }])}`,
288
288
  className: classes.paginationLink
@@ -28,7 +28,7 @@ var _Audience = _interopRequireDefault(require("./Audience"));
28
28
 
29
29
  var _Categories = _interopRequireDefault(require("./Categories"));
30
30
 
31
- var _string = require("../../utils/string");
31
+ var _utils = require("@selfcommunity/utils");
32
32
 
33
33
  var _classnames = _interopRequireDefault(require("classnames"));
34
34
 
@@ -262,7 +262,7 @@ const reducer = (state, action) => {
262
262
  switch (action.type) {
263
263
  case 'reset':
264
264
  return Object.assign({}, COMPOSER_INITIAL_STATE, {
265
- key: (0, _string.random)()
265
+ key: (0, _utils.random)()
266
266
  });
267
267
 
268
268
  case 'multiple':
@@ -355,7 +355,7 @@ function Composer(inProps) {
355
355
  const [mediaChunks, setMediaChunks] = (0, _react.useState)([]);
356
356
  const [state, dispatch] = (0, _react.useReducer)(reducer, Object.assign({}, COMPOSER_INITIAL_STATE, defaultValue, {
357
357
  view,
358
- key: (0, _string.random)()
358
+ key: (0, _utils.random)()
359
359
  }));
360
360
  const {
361
361
  key,
@@ -516,7 +516,7 @@ function Composer(inProps) {
516
516
  };
517
517
 
518
518
  const canSubmit = () => {
519
- return type === _Composer.COMPOSER_TYPE_DISCUSSION && title.length > 0 || type === _Composer.COMPOSER_TYPE_POST && ((0, _string.stripHtml)(text).length > 0 || medias.length > 0 || hasPoll());
519
+ return type === _Composer.COMPOSER_TYPE_DISCUSSION && title.length > 0 || type === _Composer.COMPOSER_TYPE_POST && ((0, _utils.stripHtml)(text).length > 0 || medias.length > 0 || hasPoll());
520
520
  };
521
521
  /* Handlers */
522
522
 
@@ -27,6 +27,8 @@ var _types = require("@selfcommunity/types");
27
27
 
28
28
  var _apiServices = require("@selfcommunity/api-services");
29
29
 
30
+ var _utils = require("@selfcommunity/utils");
31
+
30
32
  var _reactCore = require("@selfcommunity/react-core");
31
33
 
32
34
  var _classnames = _interopRequireDefault(require("classnames"));
@@ -35,8 +37,6 @@ var _pubsubJs = _interopRequireDefault(require("pubsub-js"));
35
37
 
36
38
  var _useThemeProps = _interopRequireDefault(require("@mui/material/styles/useThemeProps"));
37
39
 
38
- var _url = require("../../utils/url");
39
-
40
40
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
41
41
 
42
42
  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); }
@@ -140,7 +140,7 @@ const Feed = (inProps, ref) => {
140
140
 
141
141
  const [feedData, setFeedData] = (0, _react.useState)([]);
142
142
  const [loading, setLoading] = (0, _react.useState)(false);
143
- const [next, setNext] = (0, _react.useState)((0, _url.appendURLSearchParams)(endpoint.url({}), endpointQueryParams)); // CONTEXT
143
+ const [next, setNext] = (0, _react.useState)((0, _utils.appendURLSearchParams)(endpoint.url({}), endpointQueryParams)); // CONTEXT
144
144
 
145
145
  const scPreferences = (0, _reactCore.useSCPreferences)();
146
146
  const scUserContext = (0, _react.useContext)(_reactCore.SCUserContext); // CONST
@@ -208,7 +208,7 @@ const Feed = (inProps, ref) => {
208
208
  setLoading(false);
209
209
  onFetchData && onFetchData(res.data);
210
210
  }).catch(error => {
211
- _reactCore.Logger.error(_Errors.SCOPE_SC_UI, error);
211
+ _utils.Logger.error(_Errors.SCOPE_SC_UI, error);
212
212
  });
213
213
  }
214
214
  };
@@ -25,6 +25,8 @@ var _types = require("@selfcommunity/types");
25
25
 
26
26
  var _apiServices = require("@selfcommunity/api-services");
27
27
 
28
+ var _utils = require("@selfcommunity/utils");
29
+
28
30
  var _reactCore = require("@selfcommunity/react-core");
29
31
 
30
32
  var _useThemeProps = _interopRequireDefault(require("@mui/material/styles/useThemeProps"));
@@ -139,7 +141,7 @@ function Follow(inProps) {
139
141
  setIsFollowing(false);
140
142
  handleFollow && handleFollow(isFollow);
141
143
  }).catch(error => {
142
- _reactCore.Logger.error(_Errors.SCOPE_SC_UI, error);
144
+ _utils.Logger.error(_Errors.SCOPE_SC_UI, error);
143
145
 
144
146
  enqueueSnackbar( /*#__PURE__*/_react.default.createElement(_reactIntl.FormattedMessage, {
145
147
  id: "ui.common.error.action",
@@ -37,6 +37,8 @@ var _types = require("@selfcommunity/types");
37
37
 
38
38
  var _apiServices = require("@selfcommunity/api-services");
39
39
 
40
+ var _utils = require("@selfcommunity/utils");
41
+
40
42
  var _reactCore = require("@selfcommunity/react-core");
41
43
 
42
44
  var _useThemeProps = _interopRequireDefault(require("@mui/material/styles/useThemeProps"));
@@ -256,7 +258,7 @@ function Share(inProps) {
256
258
  } : {}));
257
259
  setIsComposerOpen(true);
258
260
  }).catch(error => {
259
- _reactCore.Logger.error(_Errors.SCOPE_SC_UI, error);
261
+ _utils.Logger.error(_Errors.SCOPE_SC_UI, error);
260
262
 
261
263
  setIsSharing(false);
262
264
  });
@@ -15,6 +15,8 @@ var _Typography = _interopRequireDefault(require("@mui/material/Typography"));
15
15
 
16
16
  var _apiServices = require("@selfcommunity/api-services");
17
17
 
18
+ var _utils = require("@selfcommunity/utils");
19
+
18
20
  var _reactCore = require("@selfcommunity/react-core");
19
21
 
20
22
  var _types = require("@selfcommunity/types");
@@ -93,7 +95,7 @@ function SharesDialog(props) {
93
95
  setIsLoading(false);
94
96
  setNext(data.next !== null ? data.next : null);
95
97
  }).catch(error => {
96
- _reactCore.Logger.error(_Errors.SCOPE_SC_UI, error);
98
+ _utils.Logger.error(_Errors.SCOPE_SC_UI, error);
97
99
  });
98
100
  }
99
101
  /**
@@ -36,6 +36,8 @@ var _types = require("@selfcommunity/types");
36
36
 
37
37
  var _apiServices = require("@selfcommunity/api-services");
38
38
 
39
+ var _utils = require("@selfcommunity/utils");
40
+
39
41
  var _reactCore = require("@selfcommunity/react-core");
40
42
 
41
43
  var _useThemeProps = _interopRequireDefault(require("@mui/material/styles/useThemeProps"));
@@ -278,7 +280,7 @@ function Vote(inProps) {
278
280
  }
279
281
  });
280
282
  }).catch(error => {
281
- _reactCore.Logger.error(_Errors.SCOPE_SC_UI, error);
283
+ _utils.Logger.error(_Errors.SCOPE_SC_UI, error);
282
284
  });
283
285
  }
284
286
  }, [state.openVotesDialog]);
@@ -355,7 +357,7 @@ function Vote(inProps) {
355
357
  vote_count: obj.voted ? obj.vote_count - 1 : obj.vote_count + 1
356
358
  }));
357
359
  }).catch(error => {
358
- _reactCore.Logger.error(_Errors.SCOPE_SC_UI, error);
360
+ _utils.Logger.error(_Errors.SCOPE_SC_UI, error);
359
361
  });
360
362
  }
361
363
  }
@@ -21,6 +21,8 @@ var _feedObject = require("../../../../types/feedObject");
21
21
 
22
22
  var _reactIntl = require("react-intl");
23
23
 
24
+ var _utils = require("@selfcommunity/utils");
25
+
24
26
  var _reactCore = require("@selfcommunity/react-core");
25
27
 
26
28
  var _classnames = _interopRequireDefault(require("classnames"));
@@ -143,7 +145,7 @@ function ActivitiesMenu(inProps) {
143
145
  onClick: handleClick,
144
146
  endIcon: /*#__PURE__*/React.createElement(_Icon.default, null, "expand_more"),
145
147
  color: "inherit"
146
- }, selectedActivities === _feedObject.SCFeedObjectActivitiesType.CONNECTIONS_COMMENTS && followEnabled ? intl.formatMessage(messages.followedComments) : intl.formatMessage(messages[`${_reactCore.StringUtils.camelCase(selectedActivities)}`])))), /*#__PURE__*/React.createElement(_Menu.default, {
148
+ }, selectedActivities === _feedObject.SCFeedObjectActivitiesType.CONNECTIONS_COMMENTS && followEnabled ? intl.formatMessage(messages.followedComments) : intl.formatMessage(messages[`${(0, _utils.camelCase)(selectedActivities)}`])))), /*#__PURE__*/React.createElement(_Menu.default, {
147
149
  anchorEl: anchorEl,
148
150
  open: open,
149
151
  onClose: handleClose,