@selfcommunity/react-ui 0.7.0-alpha.137 → 0.7.0-alpha.139

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 (322) hide show
  1. package/lib/cjs/components/CommentObject/CommentObject.d.ts +5 -5
  2. package/lib/cjs/components/CommentObject/CommentObject.d.ts.map +1 -1
  3. package/lib/cjs/components/CommentObject/CommentObject.js +14 -252
  4. package/lib/cjs/components/CommentObject/CommentObject.js.map +1 -1
  5. package/lib/cjs/components/CommentsFeedObject/CommentsFeedObject.d.ts +3 -3
  6. package/lib/cjs/components/CommentsFeedObject/CommentsFeedObject.d.ts.map +1 -1
  7. package/lib/cjs/components/CommentsFeedObject/CommentsFeedObject.js +1 -1
  8. package/lib/cjs/components/CommentsFeedObject/CommentsFeedObject.js.map +1 -1
  9. package/lib/cjs/components/CommentsObject/CommentsObject.d.ts +3 -3
  10. package/lib/cjs/components/CommentsObject/CommentsObject.d.ts.map +1 -1
  11. package/lib/cjs/components/CommentsObject/CommentsObject.js +1 -1
  12. package/lib/cjs/components/CommentsObject/CommentsObject.js.map +1 -1
  13. package/lib/cjs/components/Composer/Composer.d.ts +2 -2
  14. package/lib/cjs/components/Composer/Composer.d.ts.map +1 -1
  15. package/lib/cjs/components/Composer/Composer.js +1 -125
  16. package/lib/cjs/components/Composer/Composer.js.map +1 -1
  17. package/lib/cjs/components/FeedObject/Actions/Actions.d.ts +2 -2
  18. package/lib/cjs/components/FeedObject/Actions/Actions.d.ts.map +1 -1
  19. package/lib/cjs/components/FeedObject/Actions/Actions.js +4 -7
  20. package/lib/cjs/components/FeedObject/Actions/Actions.js.map +1 -1
  21. package/lib/cjs/components/FeedObject/Actions/Comment/Comment.d.ts +2 -2
  22. package/lib/cjs/components/FeedObject/Actions/Comment/Comment.d.ts.map +1 -1
  23. package/lib/cjs/components/FeedObject/Actions/Comment/Comment.js +1 -1
  24. package/lib/cjs/components/FeedObject/Actions/Comment/Comment.js.map +1 -1
  25. package/lib/cjs/components/FeedObject/Actions/Follow/Follow.d.ts +2 -2
  26. package/lib/cjs/components/FeedObject/Actions/Follow/Follow.d.ts.map +1 -1
  27. package/lib/cjs/components/FeedObject/Actions/Follow/Follow.js +1 -1
  28. package/lib/cjs/components/FeedObject/Actions/Follow/Follow.js.map +1 -1
  29. package/lib/cjs/components/FeedObject/Actions/Share/Share.d.ts +2 -2
  30. package/lib/cjs/components/FeedObject/Actions/Share/Share.d.ts.map +1 -1
  31. package/lib/cjs/components/FeedObject/Actions/Share/Share.js +1 -1
  32. package/lib/cjs/components/FeedObject/Actions/Share/Share.js.map +1 -1
  33. package/lib/cjs/components/FeedObject/Actions/Share/SharesDialog/SharesDialog.d.ts +2 -2
  34. package/lib/cjs/components/FeedObject/Actions/Share/SharesDialog/SharesDialog.d.ts.map +1 -1
  35. package/lib/cjs/components/FeedObject/Actions/Share/SharesDialog/SharesDialog.js +1 -1
  36. package/lib/cjs/components/FeedObject/Actions/Share/SharesDialog/SharesDialog.js.map +1 -1
  37. package/lib/cjs/components/FeedObject/Actions/Vote/Vote.d.ts +2 -18
  38. package/lib/cjs/components/FeedObject/Actions/Vote/Vote.d.ts.map +1 -1
  39. package/lib/cjs/components/FeedObject/Actions/Vote/Vote.js +10 -277
  40. package/lib/cjs/components/FeedObject/Actions/Vote/Vote.js.map +1 -1
  41. package/lib/cjs/components/FeedObject/Activities/Activities.d.ts +4 -4
  42. package/lib/cjs/components/FeedObject/Activities/Activities.d.ts.map +1 -1
  43. package/lib/cjs/components/FeedObject/Activities/Activities.js +1 -1
  44. package/lib/cjs/components/FeedObject/Activities/Activities.js.map +1 -1
  45. package/lib/cjs/components/FeedObject/Contributors/Contributors.d.ts +2 -2
  46. package/lib/cjs/components/FeedObject/Contributors/Contributors.d.ts.map +1 -1
  47. package/lib/cjs/components/FeedObject/FeedObject.d.ts +2 -2
  48. package/lib/cjs/components/FeedObject/FeedObject.d.ts.map +1 -1
  49. package/lib/cjs/components/FeedObject/FeedObject.js +8 -9
  50. package/lib/cjs/components/FeedObject/FeedObject.js.map +1 -1
  51. package/lib/cjs/components/FeedObject/Poll/Poll.d.ts.map +1 -1
  52. package/lib/cjs/components/FeedObject/Poll/Poll.js +1 -1
  53. package/lib/cjs/components/FeedObject/Poll/Poll.js.map +1 -1
  54. package/lib/cjs/components/InlineComposer/InlineComposer.d.ts.map +1 -1
  55. package/lib/cjs/components/InlineComposer/InlineComposer.js +1 -20
  56. package/lib/cjs/components/InlineComposer/InlineComposer.js.map +1 -1
  57. package/lib/cjs/components/Notification/Comment/Comment.d.ts +2 -12
  58. package/lib/cjs/components/Notification/Comment/Comment.d.ts.map +1 -1
  59. package/lib/cjs/components/Notification/Comment/Comment.js +7 -12
  60. package/lib/cjs/components/Notification/Comment/Comment.js.map +1 -1
  61. package/lib/cjs/components/Notification/Contribution/Contribution.d.ts +2 -12
  62. package/lib/cjs/components/Notification/Contribution/Contribution.d.ts.map +1 -1
  63. package/lib/cjs/components/Notification/Contribution/Contribution.js +11 -16
  64. package/lib/cjs/components/Notification/Contribution/Contribution.js.map +1 -1
  65. package/lib/cjs/components/Notification/Notification.d.ts.map +1 -1
  66. package/lib/cjs/components/Notification/Notification.js +7 -33
  67. package/lib/cjs/components/Notification/Notification.js.map +1 -1
  68. package/lib/cjs/components/PrivateMessageComponent/Skeleton.d.ts.map +1 -1
  69. package/lib/cjs/components/PrivateMessageComponent/Skeleton.js +4 -2
  70. package/lib/cjs/components/PrivateMessageComponent/Skeleton.js.map +1 -1
  71. package/lib/cjs/components/PrivateMessageThread/PrivateMessageThread.d.ts.map +1 -1
  72. package/lib/cjs/components/PrivateMessageThread/PrivateMessageThread.js +0 -1
  73. package/lib/cjs/components/PrivateMessageThread/PrivateMessageThread.js.map +1 -1
  74. package/lib/cjs/components/PrivateMessageThread/Skeleton.js +2 -2
  75. package/lib/cjs/components/PrivateMessageThread/Skeleton.js.map +1 -1
  76. package/lib/cjs/components/PrivateMessageThreadItem/Skeleton.d.ts.map +1 -1
  77. package/lib/cjs/components/PrivateMessageThreadItem/Skeleton.js +2 -4
  78. package/lib/cjs/components/PrivateMessageThreadItem/Skeleton.js.map +1 -1
  79. package/lib/cjs/components/RelatedFeedObjects/RelatedFeedObjects.d.ts +2 -2
  80. package/lib/cjs/components/RelatedFeedObjects/RelatedFeedObjects.d.ts.map +1 -1
  81. package/lib/cjs/components/RelatedFeedObjects/RelatedFeedObjects.js.map +1 -1
  82. package/lib/cjs/components/User/User.d.ts +3 -8
  83. package/lib/cjs/components/User/User.d.ts.map +1 -1
  84. package/lib/cjs/components/User/User.js +6 -28
  85. package/lib/cjs/components/User/User.js.map +1 -1
  86. package/lib/cjs/components/UserInfoDialog/UserInfoDialog.d.ts +1 -1
  87. package/lib/cjs/components/UserInfoDialog/UserInfoDialog.d.ts.map +1 -1
  88. package/lib/cjs/components/VoteAudienceButton/VoteAudienceButton.d.ts +50 -0
  89. package/lib/cjs/components/VoteAudienceButton/VoteAudienceButton.d.ts.map +1 -0
  90. package/lib/cjs/components/VoteAudienceButton/VoteAudienceButton.js +174 -0
  91. package/lib/cjs/components/VoteAudienceButton/VoteAudienceButton.js.map +1 -0
  92. package/lib/cjs/components/VoteAudienceButton/index.d.ts +4 -0
  93. package/lib/cjs/components/VoteAudienceButton/index.d.ts.map +1 -0
  94. package/lib/cjs/components/{CommentObject/Reactions/ReactionsDialog → VoteAudienceButton}/index.js +2 -2
  95. package/lib/cjs/components/VoteAudienceButton/index.js.map +1 -0
  96. package/lib/cjs/components/VoteButton/VoteButton.d.ts +53 -0
  97. package/lib/cjs/components/VoteButton/VoteButton.d.ts.map +1 -0
  98. package/lib/cjs/components/VoteButton/VoteButton.js +152 -0
  99. package/lib/cjs/components/VoteButton/VoteButton.js.map +1 -0
  100. package/lib/cjs/components/VoteButton/index.d.ts +4 -0
  101. package/lib/cjs/components/VoteButton/index.d.ts.map +1 -0
  102. package/lib/cjs/components/{FeedObject/Actions/Reaction → VoteButton}/index.js +2 -2
  103. package/lib/cjs/components/VoteButton/index.js.map +1 -0
  104. package/lib/cjs/shared/BaseDialog/BaseDialog.d.ts +11 -0
  105. package/lib/cjs/shared/BaseDialog/BaseDialog.d.ts.map +1 -1
  106. package/lib/cjs/shared/BaseDialog/BaseDialog.js +3 -8
  107. package/lib/cjs/shared/BaseDialog/BaseDialog.js.map +1 -1
  108. package/lib/cjs/shared/ContributionActionsMenu/index.d.ts +2 -2
  109. package/lib/cjs/shared/ContributionActionsMenu/index.d.ts.map +1 -1
  110. package/lib/cjs/shared/ContributionActionsMenu/index.js +14 -15
  111. package/lib/cjs/shared/ContributionActionsMenu/index.js.map +1 -1
  112. package/lib/cjs/utils/contribution.d.ts +2 -2
  113. package/lib/cjs/utils/contribution.d.ts.map +1 -1
  114. package/lib/cjs/utils/contribution.js +15 -17
  115. package/lib/cjs/utils/contribution.js.map +1 -1
  116. package/lib/esm/components/CommentObject/CommentObject.d.ts +5 -5
  117. package/lib/esm/components/CommentObject/CommentObject.d.ts.map +1 -1
  118. package/lib/esm/components/CommentObject/CommentObject.js +20 -258
  119. package/lib/esm/components/CommentObject/CommentObject.js.map +1 -1
  120. package/lib/esm/components/CommentsFeedObject/CommentsFeedObject.d.ts +3 -3
  121. package/lib/esm/components/CommentsFeedObject/CommentsFeedObject.d.ts.map +1 -1
  122. package/lib/esm/components/CommentsFeedObject/CommentsFeedObject.js +3 -3
  123. package/lib/esm/components/CommentsFeedObject/CommentsFeedObject.js.map +1 -1
  124. package/lib/esm/components/CommentsObject/CommentsObject.d.ts +3 -3
  125. package/lib/esm/components/CommentsObject/CommentsObject.d.ts.map +1 -1
  126. package/lib/esm/components/CommentsObject/CommentsObject.js +2 -2
  127. package/lib/esm/components/CommentsObject/CommentsObject.js.map +1 -1
  128. package/lib/esm/components/Composer/Composer.d.ts +2 -2
  129. package/lib/esm/components/Composer/Composer.d.ts.map +1 -1
  130. package/lib/esm/components/Composer/Composer.js +2 -126
  131. package/lib/esm/components/Composer/Composer.js.map +1 -1
  132. package/lib/esm/components/Editor/plugins/ImagePlugin.js +1 -1
  133. package/lib/esm/components/Editor/plugins/ImagePlugin.js.map +1 -1
  134. package/lib/esm/components/FeedObject/Actions/Actions.d.ts +2 -2
  135. package/lib/esm/components/FeedObject/Actions/Actions.d.ts.map +1 -1
  136. package/lib/esm/components/FeedObject/Actions/Actions.js +6 -9
  137. package/lib/esm/components/FeedObject/Actions/Actions.js.map +1 -1
  138. package/lib/esm/components/FeedObject/Actions/Comment/Comment.d.ts +2 -2
  139. package/lib/esm/components/FeedObject/Actions/Comment/Comment.d.ts.map +1 -1
  140. package/lib/esm/components/FeedObject/Actions/Comment/Comment.js +3 -3
  141. package/lib/esm/components/FeedObject/Actions/Comment/Comment.js.map +1 -1
  142. package/lib/esm/components/FeedObject/Actions/Follow/Follow.d.ts +2 -2
  143. package/lib/esm/components/FeedObject/Actions/Follow/Follow.d.ts.map +1 -1
  144. package/lib/esm/components/FeedObject/Actions/Follow/Follow.js +3 -3
  145. package/lib/esm/components/FeedObject/Actions/Follow/Follow.js.map +1 -1
  146. package/lib/esm/components/FeedObject/Actions/Share/Share.d.ts +2 -2
  147. package/lib/esm/components/FeedObject/Actions/Share/Share.d.ts.map +1 -1
  148. package/lib/esm/components/FeedObject/Actions/Share/Share.js +2 -2
  149. package/lib/esm/components/FeedObject/Actions/Share/Share.js.map +1 -1
  150. package/lib/esm/components/FeedObject/Actions/Share/SharesDialog/SharesDialog.d.ts +2 -2
  151. package/lib/esm/components/FeedObject/Actions/Share/SharesDialog/SharesDialog.d.ts.map +1 -1
  152. package/lib/esm/components/FeedObject/Actions/Share/SharesDialog/SharesDialog.js +2 -2
  153. package/lib/esm/components/FeedObject/Actions/Share/SharesDialog/SharesDialog.js.map +1 -1
  154. package/lib/esm/components/FeedObject/Actions/Vote/Vote.d.ts +2 -18
  155. package/lib/esm/components/FeedObject/Actions/Vote/Vote.d.ts.map +1 -1
  156. package/lib/esm/components/FeedObject/Actions/Vote/Vote.js +12 -255
  157. package/lib/esm/components/FeedObject/Actions/Vote/Vote.js.map +1 -1
  158. package/lib/esm/components/FeedObject/Activities/Activities.d.ts +4 -4
  159. package/lib/esm/components/FeedObject/Activities/Activities.d.ts.map +1 -1
  160. package/lib/esm/components/FeedObject/Activities/Activities.js +2 -2
  161. package/lib/esm/components/FeedObject/Activities/Activities.js.map +1 -1
  162. package/lib/esm/components/FeedObject/Contributors/Contributors.d.ts +2 -2
  163. package/lib/esm/components/FeedObject/Contributors/Contributors.d.ts.map +1 -1
  164. package/lib/esm/components/FeedObject/FeedObject.d.ts +2 -2
  165. package/lib/esm/components/FeedObject/FeedObject.d.ts.map +1 -1
  166. package/lib/esm/components/FeedObject/FeedObject.js +10 -11
  167. package/lib/esm/components/FeedObject/FeedObject.js.map +1 -1
  168. package/lib/esm/components/FeedObject/Poll/Poll.d.ts.map +1 -1
  169. package/lib/esm/components/FeedObject/Poll/Poll.js +2 -2
  170. package/lib/esm/components/FeedObject/Poll/Poll.js.map +1 -1
  171. package/lib/esm/components/InlineComposer/InlineComposer.d.ts.map +1 -1
  172. package/lib/esm/components/InlineComposer/InlineComposer.js +1 -20
  173. package/lib/esm/components/InlineComposer/InlineComposer.js.map +1 -1
  174. package/lib/esm/components/Notification/Comment/Comment.d.ts +2 -12
  175. package/lib/esm/components/Notification/Comment/Comment.d.ts.map +1 -1
  176. package/lib/esm/components/Notification/Comment/Comment.js +9 -14
  177. package/lib/esm/components/Notification/Comment/Comment.js.map +1 -1
  178. package/lib/esm/components/Notification/Contribution/Contribution.d.ts +2 -12
  179. package/lib/esm/components/Notification/Contribution/Contribution.d.ts.map +1 -1
  180. package/lib/esm/components/Notification/Contribution/Contribution.js +13 -18
  181. package/lib/esm/components/Notification/Contribution/Contribution.js.map +1 -1
  182. package/lib/esm/components/Notification/Notification.d.ts.map +1 -1
  183. package/lib/esm/components/Notification/Notification.js +7 -33
  184. package/lib/esm/components/Notification/Notification.js.map +1 -1
  185. package/lib/esm/components/PrivateMessageComponent/Skeleton.d.ts.map +1 -1
  186. package/lib/esm/components/PrivateMessageComponent/Skeleton.js +5 -3
  187. package/lib/esm/components/PrivateMessageComponent/Skeleton.js.map +1 -1
  188. package/lib/esm/components/PrivateMessageThread/PrivateMessageThread.d.ts.map +1 -1
  189. package/lib/esm/components/PrivateMessageThread/PrivateMessageThread.js +0 -1
  190. package/lib/esm/components/PrivateMessageThread/PrivateMessageThread.js.map +1 -1
  191. package/lib/esm/components/PrivateMessageThread/Skeleton.js +2 -2
  192. package/lib/esm/components/PrivateMessageThread/Skeleton.js.map +1 -1
  193. package/lib/esm/components/PrivateMessageThreadItem/Skeleton.d.ts.map +1 -1
  194. package/lib/esm/components/PrivateMessageThreadItem/Skeleton.js +2 -4
  195. package/lib/esm/components/PrivateMessageThreadItem/Skeleton.js.map +1 -1
  196. package/lib/esm/components/RelatedFeedObjects/RelatedFeedObjects.d.ts +2 -2
  197. package/lib/esm/components/RelatedFeedObjects/RelatedFeedObjects.d.ts.map +1 -1
  198. package/lib/esm/components/RelatedFeedObjects/RelatedFeedObjects.js.map +1 -1
  199. package/lib/esm/components/User/User.d.ts +3 -8
  200. package/lib/esm/components/User/User.d.ts.map +1 -1
  201. package/lib/esm/components/User/User.js +6 -28
  202. package/lib/esm/components/User/User.js.map +1 -1
  203. package/lib/esm/components/UserInfoDialog/UserInfoDialog.d.ts +1 -1
  204. package/lib/esm/components/UserInfoDialog/UserInfoDialog.d.ts.map +1 -1
  205. package/lib/esm/components/VoteAudienceButton/VoteAudienceButton.d.ts +50 -0
  206. package/lib/esm/components/VoteAudienceButton/VoteAudienceButton.d.ts.map +1 -0
  207. package/lib/esm/components/VoteAudienceButton/VoteAudienceButton.js +145 -0
  208. package/lib/esm/components/VoteAudienceButton/VoteAudienceButton.js.map +1 -0
  209. package/lib/esm/components/VoteAudienceButton/index.d.ts +4 -0
  210. package/lib/esm/components/VoteAudienceButton/index.d.ts.map +1 -0
  211. package/lib/esm/components/VoteAudienceButton/index.js +3 -0
  212. package/lib/esm/components/VoteAudienceButton/index.js.map +1 -0
  213. package/lib/esm/components/VoteButton/VoteButton.d.ts +53 -0
  214. package/lib/esm/components/VoteButton/VoteButton.d.ts.map +1 -0
  215. package/lib/esm/components/VoteButton/VoteButton.js +123 -0
  216. package/lib/esm/components/VoteButton/VoteButton.js.map +1 -0
  217. package/lib/esm/components/VoteButton/index.d.ts +4 -0
  218. package/lib/esm/components/VoteButton/index.d.ts.map +1 -0
  219. package/lib/esm/components/VoteButton/index.js +3 -0
  220. package/lib/esm/components/VoteButton/index.js.map +1 -0
  221. package/lib/esm/shared/BaseDialog/BaseDialog.d.ts +11 -0
  222. package/lib/esm/shared/BaseDialog/BaseDialog.d.ts.map +1 -1
  223. package/lib/esm/shared/BaseDialog/BaseDialog.js +3 -8
  224. package/lib/esm/shared/BaseDialog/BaseDialog.js.map +1 -1
  225. package/lib/esm/shared/ContributionActionsMenu/index.d.ts +2 -2
  226. package/lib/esm/shared/ContributionActionsMenu/index.d.ts.map +1 -1
  227. package/lib/esm/shared/ContributionActionsMenu/index.js +12 -13
  228. package/lib/esm/shared/ContributionActionsMenu/index.js.map +1 -1
  229. package/lib/esm/utils/contribution.d.ts +2 -2
  230. package/lib/esm/utils/contribution.d.ts.map +1 -1
  231. package/lib/esm/utils/contribution.js +16 -18
  232. package/lib/esm/utils/contribution.js.map +1 -1
  233. package/lib/umd/react-ui.js +11 -11
  234. package/lib/umd/react-ui.js.LICENSE.txt +1 -1
  235. package/lib/umd/react-ui.js.map +1 -1
  236. package/package.json +6 -6
  237. package/lib/cjs/components/CommentObject/Reactions/Reactions.d.ts +0 -23
  238. package/lib/cjs/components/CommentObject/Reactions/Reactions.d.ts.map +0 -1
  239. package/lib/cjs/components/CommentObject/Reactions/Reactions.js +0 -97
  240. package/lib/cjs/components/CommentObject/Reactions/Reactions.js.map +0 -1
  241. package/lib/cjs/components/CommentObject/Reactions/ReactionsDialog/ReactionsDialog.d.ts +0 -34
  242. package/lib/cjs/components/CommentObject/Reactions/ReactionsDialog/ReactionsDialog.d.ts.map +0 -1
  243. package/lib/cjs/components/CommentObject/Reactions/ReactionsDialog/ReactionsDialog.js +0 -129
  244. package/lib/cjs/components/CommentObject/Reactions/ReactionsDialog/ReactionsDialog.js.map +0 -1
  245. package/lib/cjs/components/CommentObject/Reactions/ReactionsDialog/index.d.ts +0 -4
  246. package/lib/cjs/components/CommentObject/Reactions/ReactionsDialog/index.d.ts.map +0 -1
  247. package/lib/cjs/components/CommentObject/Reactions/ReactionsDialog/index.js.map +0 -1
  248. package/lib/cjs/components/CommentObject/Reactions/index.d.ts +0 -4
  249. package/lib/cjs/components/CommentObject/Reactions/index.d.ts.map +0 -1
  250. package/lib/cjs/components/CommentObject/Reactions/index.js +0 -8
  251. package/lib/cjs/components/CommentObject/Reactions/index.js.map +0 -1
  252. package/lib/cjs/components/CommentObject/Votes/Votes.d.ts +0 -19
  253. package/lib/cjs/components/CommentObject/Votes/Votes.d.ts.map +0 -1
  254. package/lib/cjs/components/CommentObject/Votes/Votes.js +0 -93
  255. package/lib/cjs/components/CommentObject/Votes/Votes.js.map +0 -1
  256. package/lib/cjs/components/CommentObject/Votes/VotesDialog/VotesDialog.d.ts +0 -24
  257. package/lib/cjs/components/CommentObject/Votes/VotesDialog/VotesDialog.d.ts.map +0 -1
  258. package/lib/cjs/components/CommentObject/Votes/VotesDialog/VotesDialog.js +0 -95
  259. package/lib/cjs/components/CommentObject/Votes/VotesDialog/VotesDialog.js.map +0 -1
  260. package/lib/cjs/components/CommentObject/Votes/VotesDialog/index.d.ts +0 -4
  261. package/lib/cjs/components/CommentObject/Votes/VotesDialog/index.d.ts.map +0 -1
  262. package/lib/cjs/components/CommentObject/Votes/VotesDialog/index.js +0 -8
  263. package/lib/cjs/components/CommentObject/Votes/VotesDialog/index.js.map +0 -1
  264. package/lib/cjs/components/CommentObject/Votes/index.d.ts +0 -4
  265. package/lib/cjs/components/CommentObject/Votes/index.d.ts.map +0 -1
  266. package/lib/cjs/components/CommentObject/Votes/index.js +0 -8
  267. package/lib/cjs/components/CommentObject/Votes/index.js.map +0 -1
  268. package/lib/cjs/components/FeedObject/Actions/Reaction/Reaction.d.ts +0 -34
  269. package/lib/cjs/components/FeedObject/Actions/Reaction/Reaction.d.ts.map +0 -1
  270. package/lib/cjs/components/FeedObject/Actions/Reaction/Reaction.js +0 -474
  271. package/lib/cjs/components/FeedObject/Actions/Reaction/Reaction.js.map +0 -1
  272. package/lib/cjs/components/FeedObject/Actions/Reaction/ReactionsPopover.d.ts +0 -40
  273. package/lib/cjs/components/FeedObject/Actions/Reaction/ReactionsPopover.d.ts.map +0 -1
  274. package/lib/cjs/components/FeedObject/Actions/Reaction/ReactionsPopover.js +0 -156
  275. package/lib/cjs/components/FeedObject/Actions/Reaction/ReactionsPopover.js.map +0 -1
  276. package/lib/cjs/components/FeedObject/Actions/Reaction/index.d.ts +0 -3
  277. package/lib/cjs/components/FeedObject/Actions/Reaction/index.d.ts.map +0 -1
  278. package/lib/cjs/components/FeedObject/Actions/Reaction/index.js.map +0 -1
  279. package/lib/esm/components/CommentObject/Reactions/Reactions.d.ts +0 -23
  280. package/lib/esm/components/CommentObject/Reactions/Reactions.d.ts.map +0 -1
  281. package/lib/esm/components/CommentObject/Reactions/Reactions.js +0 -68
  282. package/lib/esm/components/CommentObject/Reactions/Reactions.js.map +0 -1
  283. package/lib/esm/components/CommentObject/Reactions/ReactionsDialog/ReactionsDialog.d.ts +0 -34
  284. package/lib/esm/components/CommentObject/Reactions/ReactionsDialog/ReactionsDialog.d.ts.map +0 -1
  285. package/lib/esm/components/CommentObject/Reactions/ReactionsDialog/ReactionsDialog.js +0 -100
  286. package/lib/esm/components/CommentObject/Reactions/ReactionsDialog/ReactionsDialog.js.map +0 -1
  287. package/lib/esm/components/CommentObject/Reactions/ReactionsDialog/index.d.ts +0 -4
  288. package/lib/esm/components/CommentObject/Reactions/ReactionsDialog/index.d.ts.map +0 -1
  289. package/lib/esm/components/CommentObject/Reactions/ReactionsDialog/index.js +0 -3
  290. package/lib/esm/components/CommentObject/Reactions/ReactionsDialog/index.js.map +0 -1
  291. package/lib/esm/components/CommentObject/Reactions/index.d.ts +0 -4
  292. package/lib/esm/components/CommentObject/Reactions/index.d.ts.map +0 -1
  293. package/lib/esm/components/CommentObject/Reactions/index.js +0 -3
  294. package/lib/esm/components/CommentObject/Reactions/index.js.map +0 -1
  295. package/lib/esm/components/CommentObject/Votes/Votes.d.ts +0 -19
  296. package/lib/esm/components/CommentObject/Votes/Votes.d.ts.map +0 -1
  297. package/lib/esm/components/CommentObject/Votes/Votes.js +0 -64
  298. package/lib/esm/components/CommentObject/Votes/Votes.js.map +0 -1
  299. package/lib/esm/components/CommentObject/Votes/VotesDialog/VotesDialog.d.ts +0 -24
  300. package/lib/esm/components/CommentObject/Votes/VotesDialog/VotesDialog.d.ts.map +0 -1
  301. package/lib/esm/components/CommentObject/Votes/VotesDialog/VotesDialog.js +0 -66
  302. package/lib/esm/components/CommentObject/Votes/VotesDialog/VotesDialog.js.map +0 -1
  303. package/lib/esm/components/CommentObject/Votes/VotesDialog/index.d.ts +0 -4
  304. package/lib/esm/components/CommentObject/Votes/VotesDialog/index.d.ts.map +0 -1
  305. package/lib/esm/components/CommentObject/Votes/VotesDialog/index.js +0 -3
  306. package/lib/esm/components/CommentObject/Votes/VotesDialog/index.js.map +0 -1
  307. package/lib/esm/components/CommentObject/Votes/index.d.ts +0 -4
  308. package/lib/esm/components/CommentObject/Votes/index.d.ts.map +0 -1
  309. package/lib/esm/components/CommentObject/Votes/index.js +0 -3
  310. package/lib/esm/components/CommentObject/Votes/index.js.map +0 -1
  311. package/lib/esm/components/FeedObject/Actions/Reaction/Reaction.d.ts +0 -34
  312. package/lib/esm/components/FeedObject/Actions/Reaction/Reaction.d.ts.map +0 -1
  313. package/lib/esm/components/FeedObject/Actions/Reaction/Reaction.js +0 -444
  314. package/lib/esm/components/FeedObject/Actions/Reaction/Reaction.js.map +0 -1
  315. package/lib/esm/components/FeedObject/Actions/Reaction/ReactionsPopover.d.ts +0 -40
  316. package/lib/esm/components/FeedObject/Actions/Reaction/ReactionsPopover.d.ts.map +0 -1
  317. package/lib/esm/components/FeedObject/Actions/Reaction/ReactionsPopover.js +0 -127
  318. package/lib/esm/components/FeedObject/Actions/Reaction/ReactionsPopover.js.map +0 -1
  319. package/lib/esm/components/FeedObject/Actions/Reaction/index.d.ts +0 -3
  320. package/lib/esm/components/FeedObject/Actions/Reaction/index.d.ts.map +0 -1
  321. package/lib/esm/components/FeedObject/Actions/Reaction/index.js +0 -3
  322. package/lib/esm/components/FeedObject/Actions/Reaction/index.js.map +0 -1
@@ -0,0 +1,174 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || function (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
25
+ var __rest = (this && this.__rest) || function (s, e) {
26
+ var t = {};
27
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
28
+ t[p] = s[p];
29
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
30
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
31
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
32
+ t[p[i]] = s[p[i]];
33
+ }
34
+ return t;
35
+ };
36
+ var __importDefault = (this && this.__importDefault) || function (mod) {
37
+ return (mod && mod.__esModule) ? mod : { "default": mod };
38
+ };
39
+ Object.defineProperty(exports, "__esModule", { value: true });
40
+ const react_1 = __importStar(require("react"));
41
+ const styles_1 = require("@mui/material/styles");
42
+ const lab_1 = require("@mui/lab");
43
+ const classnames_1 = __importDefault(require("classnames"));
44
+ const system_1 = require("@mui/system");
45
+ const Icon_1 = __importDefault(require("@mui/material/Icon"));
46
+ const material_1 = require("@mui/material");
47
+ const react_intl_1 = require("react-intl");
48
+ const react_core_1 = require("@selfcommunity/react-core");
49
+ const BaseDialog_1 = __importDefault(require("../../shared/BaseDialog"));
50
+ const CentralProgress_1 = __importDefault(require("../../shared/CentralProgress"));
51
+ const InfiniteScroll_1 = __importDefault(require("../../shared/InfiniteScroll"));
52
+ const User_1 = __importDefault(require("../User"));
53
+ const PREFIX = 'SCVoteAudienceButton';
54
+ const classes = {
55
+ root: `${PREFIX}-root`,
56
+ reactionList: `${PREFIX}-reaction-list`,
57
+ dialogRoot: `${PREFIX}-dialog-root`,
58
+ dialogTabs: `${PREFIX}-dialog-tabs`,
59
+ dialogVoteBadge: `${PREFIX}-dialog-vote-badge`
60
+ };
61
+ const Root = (0, styles_1.styled)(lab_1.LoadingButton, {
62
+ name: PREFIX,
63
+ slot: 'Root',
64
+ overridesResolver: (props, styles) => [styles.root, styles.voted]
65
+ })(({ theme }) => ({}));
66
+ const DialogRoot = (0, styles_1.styled)(BaseDialog_1.default, {
67
+ name: PREFIX,
68
+ slot: 'Root',
69
+ overridesResolver: (props, styles) => styles.dialogRoot
70
+ })(({ theme }) => ({}));
71
+ /**
72
+ * > API documentation for the Community-JS Vote Audience Button component. Learn about the available props and the CSS API.
73
+
74
+ #### Import
75
+
76
+ ```jsx
77
+ import {VoteAudienceButton} from '@selfcommunity/react-ui';
78
+ ```
79
+
80
+ #### Component Name
81
+
82
+ The name `SCVoteAudienceButton` can be used when providing style overrides in the theme.
83
+
84
+
85
+ #### CSS
86
+
87
+ |Rule Name|Global class|Description|
88
+ |---|---|---|
89
+ |root|.SCVoteAudienceButton-root|Styles applied to the root element.|
90
+ |reactionList|.SCVoteAudienceButton-reactions|Styles applied to the reactionList list element.|
91
+ |dialogRoot|.SCVoteAudienceButton-dialog-root|Styles applied to the dialog root element.|
92
+ |dialogTabs|.SCVoteAudienceButton-dialog-tabs|Styles applied to the tabs element.|
93
+ |dialogVoteBadge|.SCVoteAudienceButton-dialog-vote-badge|Styles applied to the vote badge element.|
94
+ * @param inProps
95
+ */
96
+ function VoteAudienceButton(inProps) {
97
+ // PROPS
98
+ const props = (0, system_1.useThemeProps)({
99
+ props: inProps,
100
+ name: PREFIX
101
+ });
102
+ const { className, contributionId = null, contributionType = null, contribution = null } = props, rest = __rest(props, ["className", "contributionId", "contributionType", "contribution"]);
103
+ // STATE
104
+ const [open, setOpen] = (0, react_1.useState)(false);
105
+ const [tab, setTab] = (0, react_1.useState)(0);
106
+ // CONTEXT
107
+ const scUserContext = (0, react_core_1.useSCUser)();
108
+ // HANDLERS
109
+ const handleOpen = (event) => {
110
+ setOpen(true);
111
+ };
112
+ const handleClose = (event) => {
113
+ setOpen(false);
114
+ };
115
+ const handleChangeTab = (event, newValue) => {
116
+ setTab(newValue);
117
+ };
118
+ // HOOKS
119
+ const { isLoading, contributionVoted, contributionVoteCount, contributionReactionsCount, reactions, error, handleFetchVoteList, voteList, isLoadingVoteList, voteListHasNext } = (0, react_core_1.useSCFetchVote)({
120
+ id: contributionId,
121
+ contributionType,
122
+ contribution
123
+ });
124
+ // EFFECTS
125
+ (0, react_1.useEffect)(() => {
126
+ if (!isLoadingVoteList && open) {
127
+ handleFetchVoteList({ reset: true });
128
+ }
129
+ }, [open]);
130
+ (0, react_1.useEffect)(() => {
131
+ if (isLoadingVoteList || !open) {
132
+ return;
133
+ }
134
+ if (tab === 0) {
135
+ handleFetchVoteList({ reset: true });
136
+ return;
137
+ }
138
+ const { reaction } = contributionReactionsCount[tab - 1];
139
+ handleFetchVoteList({ reaction, reset: true });
140
+ }, [tab]);
141
+ // RENDER
142
+ const audienceIcon = (0, react_1.useMemo)(() => {
143
+ if (reactions.default && !isLoading && !error) {
144
+ return (react_1.default.createElement(material_1.Box, { className: classes.reactionList }, contributionReactionsCount.slice(0, 3).map((count, i) => (react_1.default.createElement(Icon_1.default, { key: count.reaction.id },
145
+ react_1.default.createElement("img", { alt: count.reaction.label, src: count.reaction.image, width: "100%", height: "100%" }))))));
146
+ }
147
+ return scUserContext.user && contributionVoted ? react_1.default.createElement(Icon_1.default, null, "thumb_up") : react_1.default.createElement(Icon_1.default, null, "thumb_up_off_alt");
148
+ }, [reactions.default, isLoading, error, contributionReactionsCount, scUserContext.user, contributionVoted]);
149
+ const dialogTitle = (0, react_1.useMemo)(() => {
150
+ if (reactions.default && !isLoading) {
151
+ return (react_1.default.createElement(material_1.Tabs, { className: classes.dialogTabs, value: tab, onChange: handleChangeTab, "aria-label": "reactions" },
152
+ react_1.default.createElement(material_1.Tab, { label: react_1.default.createElement(react_intl_1.FormattedMessage, { defaultMessage: "ui.voteAudienceButton.dialog.tab.all", id: "ui.voteAudienceButton.dialog.tab.all" }) }),
153
+ contributionReactionsCount.map((count) => react_1.default.createElement(material_1.Tab, { key: count.reaction.id, label: react_1.default.createElement(react_1.default.Fragment, null,
154
+ react_1.default.createElement(Icon_1.default, null,
155
+ react_1.default.createElement("img", { alt: count.reaction.label, src: count.reaction.image, width: "100%", height: "100%" })),
156
+ count.count) }))));
157
+ }
158
+ else {
159
+ return react_1.default.createElement(react_intl_1.FormattedMessage, { defaultMessage: "ui.voteAudienceButton.dialog.title", id: "ui.voteAudienceButton.dialog.title" });
160
+ }
161
+ }, [tab, reactions, contributionReactionsCount]);
162
+ return (react_1.default.createElement(react_1.default.Fragment, null,
163
+ react_1.default.createElement(Root, Object.assign({ onClick: handleOpen, disabled: isLoading || Boolean(error) || contributionVoteCount === 0, loading: isLoading, className: (0, classnames_1.default)(classes.root, className) }, rest),
164
+ audienceIcon,
165
+ "\u00A0",
166
+ scUserContext.user && contributionVoted ? (contributionVoteCount === 1 ? (react_1.default.createElement(react_intl_1.FormattedMessage, { id: "ui.voteAudienceButton.votedOnlyByMe", defaultMessage: "ui.voteAudienceButton.votedOnlyByMe" })) : (react_1.default.createElement(react_intl_1.FormattedMessage, { id: "ui.voteAudienceButton.votedByMe", defaultMessage: "ui.voteAudienceButton.votedByMe", values: { total: contributionVoteCount - 1 } }))) : (react_1.default.createElement(react_intl_1.FormattedMessage, { id: "ui.voteAudienceButton.votes", defaultMessage: "ui.voteAudienceButton.votes", values: { total: contributionVoteCount } }))),
167
+ open && (react_1.default.createElement(DialogRoot, { title: dialogTitle, onClose: handleClose, open: open, DialogContentProps: {} }, isLoadingVoteList ? (react_1.default.createElement(CentralProgress_1.default, { size: 50 })) : (react_1.default.createElement(InfiniteScroll_1.default, { dataLength: voteList.length, next: () => handleFetchVoteList({}), hasMoreNext: voteListHasNext, loaderNext: react_1.default.createElement(CentralProgress_1.default, { size: 30 }), height: 400, endMessage: react_1.default.createElement(material_1.Typography, null,
168
+ react_1.default.createElement(react_intl_1.FormattedMessage, { id: "ui.voteAudienceButton.dialog.end", defaultMessage: "ui.voteAudienceButton.dialog.end" })) },
169
+ react_1.default.createElement(material_1.List, null, voteList.map((vote) => (react_1.default.createElement(material_1.ListItem, { key: vote.user.id },
170
+ react_1.default.createElement(User_1.default, { elevation: 0, user: vote.user, badgeContent: react_1.default.createElement(material_1.Avatar, { className: classes.dialogVoteBadge }, vote.reaction ? (react_1.default.createElement(Icon_1.default, null,
171
+ react_1.default.createElement("img", { alt: vote.reaction.label, src: vote.reaction.image, width: "100%", height: "100%" }))) : (react_1.default.createElement(Icon_1.default, null, "thumb_up"))) })))))))))));
172
+ }
173
+ exports.default = VoteAudienceButton;
174
+ //# sourceMappingURL=VoteAudienceButton.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"VoteAudienceButton.js","sourceRoot":"","sources":["../../../../src/components/VoteAudienceButton/VoteAudienceButton.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+CAA0D;AAC1D,iDAA4C;AAC5C,kCAA2D;AAC3D,4DAAoC;AAEpC,wCAA0C;AAC1C,8DAAsC;AACtC,4CAAmF;AACnF,2CAA4C;AAC5C,0DAAsG;AACtG,yEAAiD;AACjD,mFAA2D;AAC3D,iFAAyD;AACzD,mDAA2B;AAE3B,MAAM,MAAM,GAAG,sBAAsB,CAAC;AAEtC,MAAM,OAAO,GAAG;IACd,IAAI,EAAE,GAAG,MAAM,OAAO;IACtB,YAAY,EAAE,GAAG,MAAM,gBAAgB;IACvC,UAAU,EAAE,GAAG,MAAM,cAAc;IACnC,UAAU,EAAE,GAAG,MAAM,cAAc;IACnC,eAAe,EAAE,GAAG,MAAM,oBAAoB;CAC/C,CAAC;AAEF,MAAM,IAAI,GAAG,IAAA,eAAM,EAAC,mBAAa,EAAE;IACjC,IAAI,EAAE,MAAM;IACZ,IAAI,EAAE,MAAM;IACZ,iBAAiB,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,EAAE,CAAC,CAAC,MAAM,CAAC,IAAI,EAAE,MAAM,CAAC,KAAK,CAAC;CAClE,CAAC,CAAC,CAAC,EAAC,KAAK,EAAC,EAAE,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;AAEtB,MAAM,UAAU,GAAG,IAAA,eAAM,EAAC,oBAAU,EAAE;IACpC,IAAI,EAAE,MAAM;IACZ,IAAI,EAAE,MAAM;IACZ,iBAAiB,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,UAAU;CACxD,CAAC,CAAC,CAAC,EAAC,KAAK,EAAC,EAAE,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;A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,EAAC,kCAAkC,EAAC,cAAc,EAAC,kCAAkC,GAAG,CACjG;YAEf,8BAAC,eAAI,QACF,QAAQ,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CACtB,8BAAC,mBAAQ,IAAC,GAAG,EAAE,IAAI,CAAC,IAAI,CAAC,EAAE;gBACzB,8BAAC,cAAI,IACH,SAAS,EAAE,CAAC,EACZ,IAAI,EAAE,IAAI,CAAC,IAAI,EACf,YAAY,EACV,8BAAC,iBAAM,IAAC,SAAS,EAAE,OAAO,CAAC,eAAe,IACvC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,CACf,8BAAC,cAAI;wBACH,uCAAK,GAAG,EAAE,IAAI,CAAC,QAAQ,CAAC,KAAK,EAAE,GAAG,EAAE,IAAI,CAAC,QAAQ,CAAC,KAAK,EAAE,KAAK,EAAC,MAAM,EAAC,MAAM,EAAC,MAAM,GAAG,CACjF,CACR,CAAC,CAAC,CAAC,CACF,8BAAC,cAAI,mBAAgB,CACtB,CACM,GAEX,CACO,CACZ,CAAC,CACG,CACQ,CAClB,CACU,CACd,CACA,CACJ,CAAC;AACJ,CAAC;AA3JD,qCA2JC"}
@@ -0,0 +1,4 @@
1
+ import VoteAudienceButton, { VoteAudienceButtonProps } from './VoteAudienceButton';
2
+ export default VoteAudienceButton;
3
+ export { VoteAudienceButtonProps };
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/VoteAudienceButton/index.tsx"],"names":[],"mappings":"AAAA,OAAO,kBAAkB,EAAE,EAAC,uBAAuB,EAAC,MAAM,sBAAsB,CAAC;AACjF,eAAe,kBAAkB,CAAC;AAClC,OAAO,EAAC,uBAAuB,EAAC,CAAC"}
@@ -3,6 +3,6 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- const ReactionsDialog_1 = __importDefault(require("./ReactionsDialog"));
7
- exports.default = ReactionsDialog_1.default;
6
+ const VoteAudienceButton_1 = __importDefault(require("./VoteAudienceButton"));
7
+ exports.default = VoteAudienceButton_1.default;
8
8
  //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/VoteAudienceButton/index.tsx"],"names":[],"mappings":";;;;;AAAA,8EAAiF;AACjF,kBAAe,4BAAkB,CAAC"}
@@ -0,0 +1,53 @@
1
+ import { LoadingButtonProps } from '@mui/lab';
2
+ import { SCCommentType, SCContributionType, SCFeedObjectType } from '@selfcommunity/types';
3
+ export interface VoteButtonProps extends Pick<LoadingButtonProps, Exclude<keyof LoadingButtonProps, 'onClick' | 'disabled' | 'loading'>> {
4
+ /**
5
+ * Id of the contribution object to vote
6
+ * @default null
7
+ */
8
+ contributionId: number;
9
+ /**
10
+ * Type of the contribution object to vote
11
+ * @default null
12
+ */
13
+ contributionType: SCContributionType | any;
14
+ /**
15
+ * Contribution object to vote
16
+ * @default null
17
+ */
18
+ contribution?: SCFeedObjectType | SCCommentType | null;
19
+ /**
20
+ * onVote callback
21
+ * @default null
22
+ */
23
+ onVote?: (contribution: SCFeedObjectType | SCCommentType) => any;
24
+ /**
25
+ * Others properties
26
+ */
27
+ [p: string]: any;
28
+ }
29
+ /**
30
+ * > API documentation for the Community-JS Vote Button component. Learn about the available props and the CSS API.
31
+
32
+ #### Import
33
+
34
+ ```jsx
35
+ import {VoteAudienceButton} from '@selfcommunity/react-ui';
36
+ ```
37
+
38
+ #### Component Name
39
+
40
+ The name `SCVoteButton` can be used when providing style overrides in the theme.
41
+
42
+
43
+ #### CSS
44
+
45
+ |Rule Name|Global class|Description|
46
+ |---|---|---|
47
+ |root|.SCVoteButton-root|Styles applied to the root element.|
48
+ |voted|.SCVoteButton-voted|Styles applied to the root element when the user has vote the contribution.|
49
+
50
+ * @param inProps
51
+ */
52
+ export default function VoteButton(inProps: VoteButtonProps): JSX.Element;
53
+ //# sourceMappingURL=VoteButton.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"VoteButton.d.ts","sourceRoot":"","sources":["../../../../src/components/VoteButton/VoteButton.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAgB,kBAAkB,EAAC,MAAM,UAAU,CAAC;AAE3D,OAAO,EAAC,aAAa,EAAE,kBAAkB,EAAE,gBAAgB,EAAiB,MAAM,sBAAsB,CAAC;AA6BzG,MAAM,WAAW,eAAgB,SAAQ,IAAI,CAAC,kBAAkB,EAAE,OAAO,CAAC,MAAM,kBAAkB,EAAE,SAAS,GAAG,UAAU,GAAG,SAAS,CAAC,CAAC;IACtI;;;OAGG;IACH,cAAc,EAAE,MAAM,CAAC;IACvB;;;OAGG;IACH,gBAAgB,EAAE,kBAAkB,GAAG,GAAG,CAAC;IAC3C;;;OAGG;IACH,YAAY,CAAC,EAAE,gBAAgB,GAAG,aAAa,GAAG,IAAI,CAAC;IAEvD;;;OAGG;IACH,MAAM,CAAC,EAAE,CAAC,YAAY,EAAE,gBAAgB,GAAG,aAAa,KAAK,GAAG,CAAC;IAEjE;;OAEG;IACH,CAAC,CAAC,EAAE,MAAM,GAAG,GAAG,CAAC;CAClB;AAED;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,MAAM,CAAC,OAAO,UAAU,UAAU,CAAC,OAAO,EAAE,eAAe,GAAG,GAAG,CAAC,OAAO,CAsHxE"}
@@ -0,0 +1,152 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || function (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
25
+ var __rest = (this && this.__rest) || function (s, e) {
26
+ var t = {};
27
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
28
+ t[p] = s[p];
29
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
30
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
31
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
32
+ t[p[i]] = s[p[i]];
33
+ }
34
+ return t;
35
+ };
36
+ var __importDefault = (this && this.__importDefault) || function (mod) {
37
+ return (mod && mod.__esModule) ? mod : { "default": mod };
38
+ };
39
+ Object.defineProperty(exports, "__esModule", { value: true });
40
+ const react_1 = __importStar(require("react"));
41
+ const styles_1 = require("@mui/material/styles");
42
+ const lab_1 = require("@mui/lab");
43
+ const classnames_1 = __importDefault(require("classnames"));
44
+ const system_1 = require("@mui/system");
45
+ const Icon_1 = __importDefault(require("@mui/material/Icon"));
46
+ const material_1 = require("@mui/material");
47
+ const react_core_1 = require("@selfcommunity/react-core");
48
+ const react_intl_1 = require("react-intl");
49
+ const PREFIX = 'SCVoteButton';
50
+ const classes = {
51
+ root: `${PREFIX}-root`,
52
+ voted: `${PREFIX}-voted`,
53
+ popperRoot: `${PREFIX}-popper-root`,
54
+ reactionList: `${PREFIX}-reaction-list`,
55
+ reaction: `${PREFIX}-reaction`
56
+ };
57
+ const Root = (0, styles_1.styled)(lab_1.LoadingButton, {
58
+ name: PREFIX,
59
+ slot: 'Root',
60
+ overridesResolver: (props, styles) => [styles.root, styles.voted]
61
+ })(({ theme }) => ({}));
62
+ const PopperRoot = (0, styles_1.styled)(material_1.Popper, {
63
+ name: PREFIX,
64
+ slot: 'Root',
65
+ overridesResolver: (props, styles) => styles.popperRoot
66
+ })(({ theme }) => ({}));
67
+ /**
68
+ * > API documentation for the Community-JS Vote Button component. Learn about the available props and the CSS API.
69
+
70
+ #### Import
71
+
72
+ ```jsx
73
+ import {VoteAudienceButton} from '@selfcommunity/react-ui';
74
+ ```
75
+
76
+ #### Component Name
77
+
78
+ The name `SCVoteButton` can be used when providing style overrides in the theme.
79
+
80
+
81
+ #### CSS
82
+
83
+ |Rule Name|Global class|Description|
84
+ |---|---|---|
85
+ |root|.SCVoteButton-root|Styles applied to the root element.|
86
+ |voted|.SCVoteButton-voted|Styles applied to the root element when the user has vote the contribution.|
87
+
88
+ * @param inProps
89
+ */
90
+ function VoteButton(inProps) {
91
+ // PROPS
92
+ const props = (0, system_1.useThemeProps)({
93
+ props: inProps,
94
+ name: PREFIX
95
+ });
96
+ const { className, contributionId = null, contributionType = null, contribution = null, onVote } = props, rest = __rest(props, ["className", "contributionId", "contributionType", "contribution", "onVote"]);
97
+ // STATE
98
+ const [anchorEl, setAnchorEl] = (0, react_1.useState)(null);
99
+ // REF
100
+ const timeoutRef = (0, react_1.useRef)(null);
101
+ // CONTEXT
102
+ const scUserContext = (0, react_core_1.useSCUser)();
103
+ // HANDLERS
104
+ const handleMouseEnter = (event) => {
105
+ handleClearTimeout();
106
+ setTimeout(() => setAnchorEl(event.target), 1000);
107
+ };
108
+ const handleMouseLeave = (event) => {
109
+ timeoutRef.current = setTimeout(() => setAnchorEl(null), 500);
110
+ };
111
+ const handleClearTimeout = () => {
112
+ timeoutRef.current && clearTimeout(timeoutRef.current);
113
+ timeoutRef.current = null;
114
+ };
115
+ const handleVoteDone = (contribution) => {
116
+ setAnchorEl(null);
117
+ onVote && onVote(contribution);
118
+ };
119
+ // HOOKS
120
+ const { isLoading, isVoting, contributionVoted, contributionReaction, reactions, handleVote, error } = (0, react_core_1.useSCFetchVote)({
121
+ id: contributionId,
122
+ contributionType,
123
+ contribution,
124
+ onVote: handleVoteDone
125
+ });
126
+ // MEMO
127
+ const rootProps = (0, react_1.useMemo)(() => {
128
+ if (!reactions.default) {
129
+ return {};
130
+ }
131
+ return {
132
+ onMouseEnter: handleMouseEnter,
133
+ onMouseLeave: handleMouseLeave,
134
+ onTouchStart: handleMouseEnter,
135
+ onTouchMove: handleMouseLeave
136
+ };
137
+ }, [reactions]);
138
+ // RENDER
139
+ const button = (react_1.default.createElement(Root, Object.assign({ onClick: () => handleVote(contributionReaction ? contributionReaction : reactions.default ? reactions.default : null), disabled: isLoading || Boolean(error), loading: isVoting, className: (0, classnames_1.default)(classes.root, className, {
140
+ [classes.voted]: scUserContext.user && contributionVoted
141
+ }) }, rest, rootProps), scUserContext.user && contributionVoted ? (contributionReaction ? (react_1.default.createElement(Icon_1.default, null,
142
+ react_1.default.createElement("img", { alt: contributionReaction.label, src: contributionReaction.image, width: "100%", height: "100%" }))) : (react_1.default.createElement(Icon_1.default, null, "thumb_up"))) : (react_1.default.createElement(Icon_1.default, null, "thumb_up_off_alt"))));
143
+ return (react_1.default.createElement(react_1.default.Fragment, null,
144
+ reactions.default ? (button) : (react_1.default.createElement(material_1.Tooltip, { title: contributionVoted ? (react_1.default.createElement(react_intl_1.FormattedMessage, { id: "ui.voteButton.voteDown", defaultMessage: "ui.voteButton.voteDown" })) : (react_1.default.createElement(react_intl_1.FormattedMessage, { id: "ui.voteButton.voteUp", defaultMessage: "ui.voteButton.voteUp" })) },
145
+ react_1.default.createElement("span", null, button))),
146
+ reactions.default && (react_1.default.createElement(PopperRoot, { id: `vote_${contributionId}_${contributionType}_popper`, className: classes.popperRoot, open: Boolean(anchorEl) && !isVoting && !isLoading, anchorEl: anchorEl, placement: "top", keepMounted: true },
147
+ react_1.default.createElement(material_1.Paper, { className: classes.reactionList, onMouseEnter: handleClearTimeout, onMouseLeave: handleMouseLeave }, reactions.reactions.map((reaction) => (react_1.default.createElement(material_1.IconButton, { key: reaction.id, className: classes.reaction, onClick: () => handleVote(reaction) },
148
+ react_1.default.createElement(Icon_1.default, null,
149
+ react_1.default.createElement("img", { alt: reaction.label, src: reaction.image, width: "100%", height: "100%" }))))))))));
150
+ }
151
+ exports.default = VoteButton;
152
+ //# sourceMappingURL=VoteButton.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"VoteButton.js","sourceRoot":"","sources":["../../../../src/components/VoteButton/VoteButton.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+CAAuD;AACvD,iDAA4C;AAC5C,kCAA2D;AAC3D,4DAAoC;AAEpC,wCAA0C;AAC1C,8DAAsC;AACtC,4CAAiE;AACjE,0DAAuF;AACvF,2CAA4C;AAE5C,MAAM,MAAM,GAAG,cAAc,CAAC;AAE9B,MAAM,OAAO,GAAG;IACd,IAAI,EAAE,GAAG,MAAM,OAAO;IACtB,KAAK,EAAE,GAAG,MAAM,QAAQ;IACxB,UAAU,EAAE,GAAG,MAAM,cAAc;IACnC,YAAY,EAAE,GAAG,MAAM,gBAAgB;IACvC,QAAQ,EAAE,GAAG,MAAM,WAAW;CAC/B,CAAC;AAEF,MAAM,IAAI,GAAG,IAAA,eAAM,EAAC,mBAAa,EAAE;IACjC,IAAI,EAAE,MAAM;IACZ,IAAI,EAAE,MAAM;IACZ,iBAAiB,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,EAAE,CAAC,CAAC,MAAM,CAAC,IAAI,EAAE,MAAM,CAAC,KAAK,CAAC;CAClE,CAAC,CAAC,CAAC,EAAC,KAAK,EAAC,EAAE,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;AAEtB,MAAM,UAAU,GAAG,IAAA,eAAM,EAAC,iBAAM,EAAE;IA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BAAkB,EAAE,YAAY,EAAE,gBAAgB,IACrG,SAAS,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,QAAwB,EAAE,EAAE,CAAC,CACrD,8BAAC,qBAAU,IAAC,GAAG,EAAE,QAAQ,CAAC,EAAE,EAAE,SAAS,EAAE,OAAO,CAAC,QAAQ,EAAE,OAAO,EAAE,GAAG,EAAE,CAAC,UAAU,CAAC,QAAQ,CAAC;gBAC5F,8BAAC,cAAI;oBACH,uCAAK,GAAG,EAAE,QAAQ,CAAC,KAAK,EAAE,GAAG,EAAE,QAAQ,CAAC,KAAK,EAAE,KAAK,EAAC,MAAM,EAAC,MAAM,EAAC,MAAM,GAAG,CACvE,CACI,CACd,CAAC,CACI,CACG,CACd,CACA,CACJ,CAAC;AACJ,CAAC;AAtHD,6BAsHC"}
@@ -0,0 +1,4 @@
1
+ import VoteButton, { VoteButtonProps } from './VoteButton';
2
+ export default VoteButton;
3
+ export { VoteButtonProps };
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/VoteButton/index.tsx"],"names":[],"mappings":"AAAA,OAAO,UAAU,EAAE,EAAC,eAAe,EAAC,MAAM,cAAc,CAAC;AACzD,eAAe,UAAU,CAAC;AAC1B,OAAO,EAAC,eAAe,EAAC,CAAC"}
@@ -3,6 +3,6 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- const Reaction_1 = __importDefault(require("./Reaction"));
7
- exports.default = Reaction_1.default;
6
+ const VoteButton_1 = __importDefault(require("./VoteButton"));
7
+ exports.default = VoteButton_1.default;
8
8
  //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/VoteButton/index.tsx"],"names":[],"mappings":";;;;;AAAA,8DAAyD;AACzD,kBAAe,oBAAU,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { ReactNode } from 'react';
2
+ import { DialogContentProps } from '@mui/material/DialogContent';
1
3
  export interface BaseDialogProps {
2
4
  /**
3
5
  * Overrides or extends the styles applied to the component.
@@ -14,6 +16,11 @@ export interface BaseDialogProps {
14
16
  * @default ''
15
17
  */
16
18
  subtitle?: any;
19
+ /**
20
+ * Dialog content props
21
+ * @default {dividers: !isMobile}
22
+ */
23
+ DialogContentProps?: DialogContentProps;
17
24
  /**
18
25
  * Handles dialog opening
19
26
  * @default false
@@ -24,6 +31,10 @@ export interface BaseDialogProps {
24
31
  * @default null
25
32
  */
26
33
  onClose?: () => any;
34
+ /**
35
+ * Actions for the dialog
36
+ */
37
+ actions?: ReactNode;
27
38
  /**
28
39
  * Any other properties
29
40
  */
@@ -1 +1 @@
1
- {"version":3,"file":"BaseDialog.d.ts","sourceRoot":"","sources":["../../../../src/shared/BaseDialog/BaseDialog.tsx"],"names":[],"mappings":"AAmCA,MAAM,WAAW,eAAe;IAC9B;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;OAGG;IACH,KAAK,CAAC,EAAE,GAAG,CAAC;IACZ;;;OAGG;IACH,QAAQ,CAAC,EAAE,GAAG,CAAC;IACf;;;OAGG;IACH,IAAI,CAAC,EAAE,OAAO,CAAC;IACf;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,GAAG,CAAC;IACpB;;OAEG;IACH,CAAC,CAAC,EAAE,MAAM,GAAG,GAAG,CAAC;CAClB;AAED,MAAM,CAAC,OAAO,UAAU,UAAU,CAAC,KAAK,EAAE,eAAe,eAkCxD"}
1
+ {"version":3,"file":"BaseDialog.d.ts","sourceRoot":"","sources":["../../../../src/shared/BaseDialog/BaseDialog.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAC,SAAS,EAAC,MAAM,OAAO,CAAC;AAKvC,OAAsB,EAAC,kBAAkB,EAAC,MAAM,6BAA6B,CAAC;AA8B9E,MAAM,WAAW,eAAe;IAC9B;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;OAGG;IACH,KAAK,CAAC,EAAE,GAAG,CAAC;IACZ;;;OAGG;IACH,QAAQ,CAAC,EAAE,GAAG,CAAC;IACf;;;OAGG;IACH,kBAAkB,CAAC,EAAE,kBAAkB,CAAC;IACxC;;;OAGG;IACH,IAAI,CAAC,EAAE,OAAO,CAAC;IACf;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,GAAG,CAAC;IACpB;;OAEG;IACH,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB;;OAEG;IACH,CAAC,CAAC,EAAE,MAAM,GAAG,GAAG,CAAC;CAClB;AAED,MAAM,CAAC,OAAO,UAAU,UAAU,CAAC,KAAK,EAAE,eAAe,eAqCxD"}
@@ -16,11 +16,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  const react_1 = __importDefault(require("react"));
18
18
  const styles_1 = require("@mui/material/styles");
19
- const Button_1 = __importDefault(require("@mui/material/Button"));
20
19
  const Dialog_1 = __importDefault(require("@mui/material/Dialog"));
21
20
  const DialogActions_1 = __importDefault(require("@mui/material/DialogActions"));
22
21
  const DialogContent_1 = __importDefault(require("@mui/material/DialogContent"));
23
- const react_intl_1 = require("react-intl");
24
22
  const useMediaQuery_1 = __importDefault(require("@mui/material/useMediaQuery"));
25
23
  const title_1 = __importDefault(require("./title"));
26
24
  const classnames_1 = __importDefault(require("classnames"));
@@ -48,8 +46,7 @@ function BaseDialog(props) {
48
46
  // PROPS
49
47
  const theme = (0, material_1.useTheme)();
50
48
  const isMobile = (0, useMediaQuery_1.default)(theme.breakpoints.down('md'));
51
- const { className, title = '', subtitle = null, open = false, onClose = null } = props, rest = __rest(props, ["className", "title", "subtitle", "open", "onClose"]);
52
- const { children } = rest;
49
+ const { className = '', title = '', subtitle = null, DialogContentProps = { dividers: !isMobile }, open = false, onClose = null, actions = null, children } = props, rest = __rest(props, ["className", "title", "subtitle", "DialogContentProps", "open", "onClose", "actions", "children"]);
53
50
  // OPTIONS
54
51
  const fullScreen = (0, useMediaQuery_1.default)((theme) => theme['breakpoints'].down('sm'), { noSsr: typeof window !== 'undefined' });
55
52
  /**
@@ -58,10 +55,8 @@ function BaseDialog(props) {
58
55
  return (react_1.default.createElement(Root, { className: (0, classnames_1.default)(classes.root, className), fullScreen: fullScreen, fullWidth: true, open: open, onClose: onClose, maxWidth: rest.maxWidth ? rest.maxWidth : 'sm', scroll: "body" },
59
56
  react_1.default.createElement(title_1.default, { onClose: onClose }, title),
60
57
  subtitle && subtitle,
61
- react_1.default.createElement(DialogContent_1.default, { dividers: !isMobile }, children),
62
- !isMobile && (react_1.default.createElement(DialogActions_1.default, null,
63
- react_1.default.createElement(Button_1.default, { onClick: onClose, color: "primary", autoFocus: true, variant: 'outlined' },
64
- react_1.default.createElement(react_intl_1.FormattedMessage, { id: "ui.baseDialog.button.close", defaultMessage: "ui.baseDialog.button.close" }))))));
58
+ react_1.default.createElement(DialogContent_1.default, Object.assign({}, DialogContentProps), children),
59
+ actions && react_1.default.createElement(DialogActions_1.default, null, actions)));
65
60
  }
66
61
  exports.default = BaseDialog;
67
62
  //# sourceMappingURL=BaseDialog.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"BaseDialog.js","sourceRoot":"","sources":["../../../../src/shared/BaseDialog/BaseDialog.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,kDAA0B;AAC1B,iDAA4C;AAC5C,kEAA0C;AAC1C,kEAA0C;AAC1C,gFAAwD;AACxD,gFAAwD;AACxD,2CAA4C;AAC5C,gFAAwD;AACxD,oDAA4B;AAC5B,4DAAoC;AACpC,4CAAuC;AAGvC,MAAM,MAAM,GAAG,cAAc,CAAC;AAE9B,MAAM,OAAO,GAAG;IACd,IAAI,EAAE,GAAG,MAAM,OAAO;CACvB,CAAC;AAEF,MAAM,IAAI,GAAG,IAAA,eAA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QAAQ,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,IAAI,EAC9C,MAAM,EAAC,MAAM;QACb,8BAAC,eAAK,IAAC,OAAO,EAAE,OAAO,IAAG,KAAK,CAAS;QACvC,QAAQ,IAAI,QAAQ;QACrB,8BAAC,uBAAa,oBAAK,kBAAkB,GAAG,QAAQ,CAAiB;QAChE,OAAO,IAAI,8BAAC,uBAAa,QAAE,OAAO,CAAiB,CAC/C,CACR,CAAC;AACJ,CAAC;AArCD,6BAqCC"}
@@ -1,4 +1,4 @@
1
- import { SCCommentType, SCFeedObjectType, SCFeedObjectTypologyType } from '@selfcommunity/types';
1
+ import { SCCommentType, SCContributionType, SCFeedObjectType } from '@selfcommunity/types';
2
2
  export interface ContributionActionsMenuProps {
3
3
  /**
4
4
  * Overrides or extends the styles applied to the component.
@@ -19,7 +19,7 @@ export interface ContributionActionsMenuProps {
19
19
  * Feed obj type
20
20
  * @default 'post'
21
21
  */
22
- feedObjectType?: SCFeedObjectTypologyType;
22
+ feedObjectType?: Exclude<SCContributionType, SCContributionType.COMMENT>;
23
23
  /**
24
24
  * CommentObject id
25
25
  * @default null
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/shared/ContributionActionsMenu/index.tsx"],"names":[],"mappings":"AAwDA,OAAO,EAAC,aAAa,EAAyB,gBAAgB,EAAE,wBAAwB,EAAC,MAAM,sBAAsB,CAAC;AAyHtH,MAAM,WAAW,4BAA4B;IAC3C;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;;OAGG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;;OAGG;IACH,UAAU,CAAC,EAAE,gBAAgB,CAAC;IAE9B;;;OAGG;IACH,cAAc,CAAC,EAAE,wBAAwB,CAAC;IAE1C;;;OAGG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IAEzB;;;OAGG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