@selfcommunity/react-ui 0.7.0-alpha.137 → 0.7.0-alpha.138
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.
- package/lib/cjs/components/CommentObject/CommentObject.d.ts +5 -5
- package/lib/cjs/components/CommentObject/CommentObject.d.ts.map +1 -1
- package/lib/cjs/components/CommentObject/CommentObject.js +14 -252
- package/lib/cjs/components/CommentObject/CommentObject.js.map +1 -1
- package/lib/cjs/components/CommentsFeedObject/CommentsFeedObject.d.ts +3 -3
- package/lib/cjs/components/CommentsFeedObject/CommentsFeedObject.d.ts.map +1 -1
- package/lib/cjs/components/CommentsFeedObject/CommentsFeedObject.js +1 -1
- package/lib/cjs/components/CommentsFeedObject/CommentsFeedObject.js.map +1 -1
- package/lib/cjs/components/CommentsObject/CommentsObject.d.ts +3 -3
- package/lib/cjs/components/CommentsObject/CommentsObject.d.ts.map +1 -1
- package/lib/cjs/components/CommentsObject/CommentsObject.js +1 -1
- package/lib/cjs/components/CommentsObject/CommentsObject.js.map +1 -1
- package/lib/cjs/components/Composer/Composer.d.ts +2 -2
- package/lib/cjs/components/Composer/Composer.d.ts.map +1 -1
- package/lib/cjs/components/Composer/Composer.js +1 -125
- package/lib/cjs/components/Composer/Composer.js.map +1 -1
- package/lib/cjs/components/FeedObject/Actions/Actions.d.ts +2 -2
- package/lib/cjs/components/FeedObject/Actions/Actions.d.ts.map +1 -1
- package/lib/cjs/components/FeedObject/Actions/Actions.js +4 -7
- package/lib/cjs/components/FeedObject/Actions/Actions.js.map +1 -1
- package/lib/cjs/components/FeedObject/Actions/Comment/Comment.d.ts +2 -2
- package/lib/cjs/components/FeedObject/Actions/Comment/Comment.d.ts.map +1 -1
- package/lib/cjs/components/FeedObject/Actions/Comment/Comment.js +1 -1
- package/lib/cjs/components/FeedObject/Actions/Comment/Comment.js.map +1 -1
- package/lib/cjs/components/FeedObject/Actions/Follow/Follow.d.ts +2 -2
- package/lib/cjs/components/FeedObject/Actions/Follow/Follow.d.ts.map +1 -1
- package/lib/cjs/components/FeedObject/Actions/Follow/Follow.js +1 -1
- package/lib/cjs/components/FeedObject/Actions/Follow/Follow.js.map +1 -1
- package/lib/cjs/components/FeedObject/Actions/Share/Share.d.ts +2 -2
- package/lib/cjs/components/FeedObject/Actions/Share/Share.d.ts.map +1 -1
- package/lib/cjs/components/FeedObject/Actions/Share/Share.js +1 -1
- package/lib/cjs/components/FeedObject/Actions/Share/Share.js.map +1 -1
- package/lib/cjs/components/FeedObject/Actions/Share/SharesDialog/SharesDialog.d.ts +2 -2
- package/lib/cjs/components/FeedObject/Actions/Share/SharesDialog/SharesDialog.d.ts.map +1 -1
- package/lib/cjs/components/FeedObject/Actions/Share/SharesDialog/SharesDialog.js +1 -1
- package/lib/cjs/components/FeedObject/Actions/Share/SharesDialog/SharesDialog.js.map +1 -1
- package/lib/cjs/components/FeedObject/Actions/Vote/Vote.d.ts +2 -18
- package/lib/cjs/components/FeedObject/Actions/Vote/Vote.d.ts.map +1 -1
- package/lib/cjs/components/FeedObject/Actions/Vote/Vote.js +10 -277
- package/lib/cjs/components/FeedObject/Actions/Vote/Vote.js.map +1 -1
- package/lib/cjs/components/FeedObject/Activities/Activities.d.ts +4 -4
- package/lib/cjs/components/FeedObject/Activities/Activities.d.ts.map +1 -1
- package/lib/cjs/components/FeedObject/Activities/Activities.js +1 -1
- package/lib/cjs/components/FeedObject/Activities/Activities.js.map +1 -1
- package/lib/cjs/components/FeedObject/Contributors/Contributors.d.ts +2 -2
- package/lib/cjs/components/FeedObject/Contributors/Contributors.d.ts.map +1 -1
- package/lib/cjs/components/FeedObject/FeedObject.d.ts +2 -2
- package/lib/cjs/components/FeedObject/FeedObject.d.ts.map +1 -1
- package/lib/cjs/components/FeedObject/FeedObject.js +8 -9
- package/lib/cjs/components/FeedObject/FeedObject.js.map +1 -1
- package/lib/cjs/components/FeedObject/Poll/Poll.d.ts.map +1 -1
- package/lib/cjs/components/FeedObject/Poll/Poll.js +1 -1
- package/lib/cjs/components/FeedObject/Poll/Poll.js.map +1 -1
- package/lib/cjs/components/InlineComposer/InlineComposer.d.ts.map +1 -1
- package/lib/cjs/components/InlineComposer/InlineComposer.js +1 -20
- package/lib/cjs/components/InlineComposer/InlineComposer.js.map +1 -1
- package/lib/cjs/components/Notification/Comment/Comment.d.ts +2 -12
- package/lib/cjs/components/Notification/Comment/Comment.d.ts.map +1 -1
- package/lib/cjs/components/Notification/Comment/Comment.js +7 -12
- package/lib/cjs/components/Notification/Comment/Comment.js.map +1 -1
- package/lib/cjs/components/Notification/Contribution/Contribution.d.ts +2 -12
- package/lib/cjs/components/Notification/Contribution/Contribution.d.ts.map +1 -1
- package/lib/cjs/components/Notification/Contribution/Contribution.js +11 -16
- package/lib/cjs/components/Notification/Contribution/Contribution.js.map +1 -1
- package/lib/cjs/components/Notification/Notification.d.ts.map +1 -1
- package/lib/cjs/components/Notification/Notification.js +7 -33
- package/lib/cjs/components/Notification/Notification.js.map +1 -1
- package/lib/cjs/components/PrivateMessageThread/PrivateMessageThread.d.ts.map +1 -1
- package/lib/cjs/components/PrivateMessageThread/PrivateMessageThread.js +1 -1
- package/lib/cjs/components/PrivateMessageThread/PrivateMessageThread.js.map +1 -1
- package/lib/cjs/components/PrivateMessageThread/Skeleton.js +2 -2
- package/lib/cjs/components/PrivateMessageThread/Skeleton.js.map +1 -1
- package/lib/cjs/components/PrivateMessageThreadItem/Skeleton.d.ts.map +1 -1
- package/lib/cjs/components/PrivateMessageThreadItem/Skeleton.js +2 -4
- package/lib/cjs/components/PrivateMessageThreadItem/Skeleton.js.map +1 -1
- package/lib/cjs/components/RelatedFeedObjects/RelatedFeedObjects.d.ts +2 -2
- package/lib/cjs/components/RelatedFeedObjects/RelatedFeedObjects.d.ts.map +1 -1
- package/lib/cjs/components/RelatedFeedObjects/RelatedFeedObjects.js.map +1 -1
- package/lib/cjs/components/User/User.d.ts +3 -8
- package/lib/cjs/components/User/User.d.ts.map +1 -1
- package/lib/cjs/components/User/User.js +6 -28
- package/lib/cjs/components/User/User.js.map +1 -1
- package/lib/cjs/components/UserInfoDialog/UserInfoDialog.d.ts +1 -1
- package/lib/cjs/components/UserInfoDialog/UserInfoDialog.d.ts.map +1 -1
- package/lib/cjs/components/VoteAudienceButton/VoteAudienceButton.d.ts +50 -0
- package/lib/cjs/components/VoteAudienceButton/VoteAudienceButton.d.ts.map +1 -0
- package/lib/cjs/components/VoteAudienceButton/VoteAudienceButton.js +174 -0
- package/lib/cjs/components/VoteAudienceButton/VoteAudienceButton.js.map +1 -0
- package/lib/cjs/components/VoteAudienceButton/index.d.ts +4 -0
- package/lib/cjs/components/VoteAudienceButton/index.d.ts.map +1 -0
- package/lib/cjs/components/{CommentObject/Reactions/ReactionsDialog → VoteAudienceButton}/index.js +2 -2
- package/lib/cjs/components/VoteAudienceButton/index.js.map +1 -0
- package/lib/cjs/components/VoteButton/VoteButton.d.ts +53 -0
- package/lib/cjs/components/VoteButton/VoteButton.d.ts.map +1 -0
- package/lib/cjs/components/VoteButton/VoteButton.js +152 -0
- package/lib/cjs/components/VoteButton/VoteButton.js.map +1 -0
- package/lib/cjs/components/VoteButton/index.d.ts +4 -0
- package/lib/cjs/components/VoteButton/index.d.ts.map +1 -0
- package/lib/cjs/components/{FeedObject/Actions/Reaction → VoteButton}/index.js +2 -2
- package/lib/cjs/components/VoteButton/index.js.map +1 -0
- package/lib/cjs/shared/BaseDialog/BaseDialog.d.ts +11 -0
- package/lib/cjs/shared/BaseDialog/BaseDialog.d.ts.map +1 -1
- package/lib/cjs/shared/BaseDialog/BaseDialog.js +3 -8
- package/lib/cjs/shared/BaseDialog/BaseDialog.js.map +1 -1
- package/lib/cjs/shared/ContributionActionsMenu/index.d.ts +2 -2
- package/lib/cjs/shared/ContributionActionsMenu/index.d.ts.map +1 -1
- package/lib/cjs/shared/ContributionActionsMenu/index.js +14 -15
- package/lib/cjs/shared/ContributionActionsMenu/index.js.map +1 -1
- package/lib/cjs/utils/contribution.d.ts +2 -2
- package/lib/cjs/utils/contribution.d.ts.map +1 -1
- package/lib/cjs/utils/contribution.js +15 -17
- package/lib/cjs/utils/contribution.js.map +1 -1
- package/lib/esm/components/CommentObject/CommentObject.d.ts +5 -5
- package/lib/esm/components/CommentObject/CommentObject.d.ts.map +1 -1
- package/lib/esm/components/CommentObject/CommentObject.js +20 -258
- package/lib/esm/components/CommentObject/CommentObject.js.map +1 -1
- package/lib/esm/components/CommentsFeedObject/CommentsFeedObject.d.ts +3 -3
- package/lib/esm/components/CommentsFeedObject/CommentsFeedObject.d.ts.map +1 -1
- package/lib/esm/components/CommentsFeedObject/CommentsFeedObject.js +3 -3
- package/lib/esm/components/CommentsFeedObject/CommentsFeedObject.js.map +1 -1
- package/lib/esm/components/CommentsObject/CommentsObject.d.ts +3 -3
- package/lib/esm/components/CommentsObject/CommentsObject.d.ts.map +1 -1
- package/lib/esm/components/CommentsObject/CommentsObject.js +2 -2
- package/lib/esm/components/CommentsObject/CommentsObject.js.map +1 -1
- package/lib/esm/components/Composer/Composer.d.ts +2 -2
- package/lib/esm/components/Composer/Composer.d.ts.map +1 -1
- package/lib/esm/components/Composer/Composer.js +2 -126
- package/lib/esm/components/Composer/Composer.js.map +1 -1
- package/lib/esm/components/Editor/plugins/ImagePlugin.js +1 -1
- package/lib/esm/components/Editor/plugins/ImagePlugin.js.map +1 -1
- package/lib/esm/components/FeedObject/Actions/Actions.d.ts +2 -2
- package/lib/esm/components/FeedObject/Actions/Actions.d.ts.map +1 -1
- package/lib/esm/components/FeedObject/Actions/Actions.js +6 -9
- package/lib/esm/components/FeedObject/Actions/Actions.js.map +1 -1
- package/lib/esm/components/FeedObject/Actions/Comment/Comment.d.ts +2 -2
- package/lib/esm/components/FeedObject/Actions/Comment/Comment.d.ts.map +1 -1
- package/lib/esm/components/FeedObject/Actions/Comment/Comment.js +3 -3
- package/lib/esm/components/FeedObject/Actions/Comment/Comment.js.map +1 -1
- package/lib/esm/components/FeedObject/Actions/Follow/Follow.d.ts +2 -2
- package/lib/esm/components/FeedObject/Actions/Follow/Follow.d.ts.map +1 -1
- package/lib/esm/components/FeedObject/Actions/Follow/Follow.js +3 -3
- package/lib/esm/components/FeedObject/Actions/Follow/Follow.js.map +1 -1
- package/lib/esm/components/FeedObject/Actions/Share/Share.d.ts +2 -2
- package/lib/esm/components/FeedObject/Actions/Share/Share.d.ts.map +1 -1
- package/lib/esm/components/FeedObject/Actions/Share/Share.js +2 -2
- package/lib/esm/components/FeedObject/Actions/Share/Share.js.map +1 -1
- package/lib/esm/components/FeedObject/Actions/Share/SharesDialog/SharesDialog.d.ts +2 -2
- package/lib/esm/components/FeedObject/Actions/Share/SharesDialog/SharesDialog.d.ts.map +1 -1
- package/lib/esm/components/FeedObject/Actions/Share/SharesDialog/SharesDialog.js +2 -2
- package/lib/esm/components/FeedObject/Actions/Share/SharesDialog/SharesDialog.js.map +1 -1
- package/lib/esm/components/FeedObject/Actions/Vote/Vote.d.ts +2 -18
- package/lib/esm/components/FeedObject/Actions/Vote/Vote.d.ts.map +1 -1
- package/lib/esm/components/FeedObject/Actions/Vote/Vote.js +12 -255
- package/lib/esm/components/FeedObject/Actions/Vote/Vote.js.map +1 -1
- package/lib/esm/components/FeedObject/Activities/Activities.d.ts +4 -4
- package/lib/esm/components/FeedObject/Activities/Activities.d.ts.map +1 -1
- package/lib/esm/components/FeedObject/Activities/Activities.js +2 -2
- package/lib/esm/components/FeedObject/Activities/Activities.js.map +1 -1
- package/lib/esm/components/FeedObject/Contributors/Contributors.d.ts +2 -2
- package/lib/esm/components/FeedObject/Contributors/Contributors.d.ts.map +1 -1
- package/lib/esm/components/FeedObject/FeedObject.d.ts +2 -2
- package/lib/esm/components/FeedObject/FeedObject.d.ts.map +1 -1
- package/lib/esm/components/FeedObject/FeedObject.js +10 -11
- package/lib/esm/components/FeedObject/FeedObject.js.map +1 -1
- package/lib/esm/components/FeedObject/Poll/Poll.d.ts.map +1 -1
- package/lib/esm/components/FeedObject/Poll/Poll.js +2 -2
- package/lib/esm/components/FeedObject/Poll/Poll.js.map +1 -1
- package/lib/esm/components/InlineComposer/InlineComposer.d.ts.map +1 -1
- package/lib/esm/components/InlineComposer/InlineComposer.js +1 -20
- package/lib/esm/components/InlineComposer/InlineComposer.js.map +1 -1
- package/lib/esm/components/Notification/Comment/Comment.d.ts +2 -12
- package/lib/esm/components/Notification/Comment/Comment.d.ts.map +1 -1
- package/lib/esm/components/Notification/Comment/Comment.js +9 -14
- package/lib/esm/components/Notification/Comment/Comment.js.map +1 -1
- package/lib/esm/components/Notification/Contribution/Contribution.d.ts +2 -12
- package/lib/esm/components/Notification/Contribution/Contribution.d.ts.map +1 -1
- package/lib/esm/components/Notification/Contribution/Contribution.js +13 -18
- package/lib/esm/components/Notification/Contribution/Contribution.js.map +1 -1
- package/lib/esm/components/Notification/Notification.d.ts.map +1 -1
- package/lib/esm/components/Notification/Notification.js +7 -33
- package/lib/esm/components/Notification/Notification.js.map +1 -1
- package/lib/esm/components/PrivateMessageThread/PrivateMessageThread.d.ts.map +1 -1
- package/lib/esm/components/PrivateMessageThread/PrivateMessageThread.js +1 -1
- package/lib/esm/components/PrivateMessageThread/PrivateMessageThread.js.map +1 -1
- package/lib/esm/components/PrivateMessageThread/Skeleton.js +2 -2
- package/lib/esm/components/PrivateMessageThread/Skeleton.js.map +1 -1
- package/lib/esm/components/PrivateMessageThreadItem/Skeleton.d.ts.map +1 -1
- package/lib/esm/components/PrivateMessageThreadItem/Skeleton.js +2 -4
- package/lib/esm/components/PrivateMessageThreadItem/Skeleton.js.map +1 -1
- package/lib/esm/components/RelatedFeedObjects/RelatedFeedObjects.d.ts +2 -2
- package/lib/esm/components/RelatedFeedObjects/RelatedFeedObjects.d.ts.map +1 -1
- package/lib/esm/components/RelatedFeedObjects/RelatedFeedObjects.js.map +1 -1
- package/lib/esm/components/User/User.d.ts +3 -8
- package/lib/esm/components/User/User.d.ts.map +1 -1
- package/lib/esm/components/User/User.js +6 -28
- package/lib/esm/components/User/User.js.map +1 -1
- package/lib/esm/components/UserInfoDialog/UserInfoDialog.d.ts +1 -1
- package/lib/esm/components/UserInfoDialog/UserInfoDialog.d.ts.map +1 -1
- package/lib/esm/components/VoteAudienceButton/VoteAudienceButton.d.ts +50 -0
- package/lib/esm/components/VoteAudienceButton/VoteAudienceButton.d.ts.map +1 -0
- package/lib/esm/components/VoteAudienceButton/VoteAudienceButton.js +145 -0
- package/lib/esm/components/VoteAudienceButton/VoteAudienceButton.js.map +1 -0
- package/lib/esm/components/VoteAudienceButton/index.d.ts +4 -0
- package/lib/esm/components/VoteAudienceButton/index.d.ts.map +1 -0
- package/lib/esm/components/VoteAudienceButton/index.js +3 -0
- package/lib/esm/components/VoteAudienceButton/index.js.map +1 -0
- package/lib/esm/components/VoteButton/VoteButton.d.ts +53 -0
- package/lib/esm/components/VoteButton/VoteButton.d.ts.map +1 -0
- package/lib/esm/components/VoteButton/VoteButton.js +123 -0
- package/lib/esm/components/VoteButton/VoteButton.js.map +1 -0
- package/lib/esm/components/VoteButton/index.d.ts +4 -0
- package/lib/esm/components/VoteButton/index.d.ts.map +1 -0
- package/lib/esm/components/VoteButton/index.js +3 -0
- package/lib/esm/components/VoteButton/index.js.map +1 -0
- package/lib/esm/shared/BaseDialog/BaseDialog.d.ts +11 -0
- package/lib/esm/shared/BaseDialog/BaseDialog.d.ts.map +1 -1
- package/lib/esm/shared/BaseDialog/BaseDialog.js +3 -8
- package/lib/esm/shared/BaseDialog/BaseDialog.js.map +1 -1
- package/lib/esm/shared/ContributionActionsMenu/index.d.ts +2 -2
- package/lib/esm/shared/ContributionActionsMenu/index.d.ts.map +1 -1
- package/lib/esm/shared/ContributionActionsMenu/index.js +12 -13
- package/lib/esm/shared/ContributionActionsMenu/index.js.map +1 -1
- package/lib/esm/utils/contribution.d.ts +2 -2
- package/lib/esm/utils/contribution.d.ts.map +1 -1
- package/lib/esm/utils/contribution.js +16 -18
- package/lib/esm/utils/contribution.js.map +1 -1
- package/lib/umd/react-ui.js +11 -11
- package/lib/umd/react-ui.js.LICENSE.txt +1 -1
- package/lib/umd/react-ui.js.map +1 -1
- package/package.json +6 -6
- package/lib/cjs/components/CommentObject/Reactions/Reactions.d.ts +0 -23
- package/lib/cjs/components/CommentObject/Reactions/Reactions.d.ts.map +0 -1
- package/lib/cjs/components/CommentObject/Reactions/Reactions.js +0 -97
- package/lib/cjs/components/CommentObject/Reactions/Reactions.js.map +0 -1
- package/lib/cjs/components/CommentObject/Reactions/ReactionsDialog/ReactionsDialog.d.ts +0 -34
- package/lib/cjs/components/CommentObject/Reactions/ReactionsDialog/ReactionsDialog.d.ts.map +0 -1
- package/lib/cjs/components/CommentObject/Reactions/ReactionsDialog/ReactionsDialog.js +0 -129
- package/lib/cjs/components/CommentObject/Reactions/ReactionsDialog/ReactionsDialog.js.map +0 -1
- package/lib/cjs/components/CommentObject/Reactions/ReactionsDialog/index.d.ts +0 -4
- package/lib/cjs/components/CommentObject/Reactions/ReactionsDialog/index.d.ts.map +0 -1
- package/lib/cjs/components/CommentObject/Reactions/ReactionsDialog/index.js.map +0 -1
- package/lib/cjs/components/CommentObject/Reactions/index.d.ts +0 -4
- package/lib/cjs/components/CommentObject/Reactions/index.d.ts.map +0 -1
- package/lib/cjs/components/CommentObject/Reactions/index.js +0 -8
- package/lib/cjs/components/CommentObject/Reactions/index.js.map +0 -1
- package/lib/cjs/components/CommentObject/Votes/Votes.d.ts +0 -19
- package/lib/cjs/components/CommentObject/Votes/Votes.d.ts.map +0 -1
- package/lib/cjs/components/CommentObject/Votes/Votes.js +0 -93
- package/lib/cjs/components/CommentObject/Votes/Votes.js.map +0 -1
- package/lib/cjs/components/CommentObject/Votes/VotesDialog/VotesDialog.d.ts +0 -24
- package/lib/cjs/components/CommentObject/Votes/VotesDialog/VotesDialog.d.ts.map +0 -1
- package/lib/cjs/components/CommentObject/Votes/VotesDialog/VotesDialog.js +0 -95
- package/lib/cjs/components/CommentObject/Votes/VotesDialog/VotesDialog.js.map +0 -1
- package/lib/cjs/components/CommentObject/Votes/VotesDialog/index.d.ts +0 -4
- package/lib/cjs/components/CommentObject/Votes/VotesDialog/index.d.ts.map +0 -1
- package/lib/cjs/components/CommentObject/Votes/VotesDialog/index.js +0 -8
- package/lib/cjs/components/CommentObject/Votes/VotesDialog/index.js.map +0 -1
- package/lib/cjs/components/CommentObject/Votes/index.d.ts +0 -4
- package/lib/cjs/components/CommentObject/Votes/index.d.ts.map +0 -1
- package/lib/cjs/components/CommentObject/Votes/index.js +0 -8
- package/lib/cjs/components/CommentObject/Votes/index.js.map +0 -1
- package/lib/cjs/components/FeedObject/Actions/Reaction/Reaction.d.ts +0 -34
- package/lib/cjs/components/FeedObject/Actions/Reaction/Reaction.d.ts.map +0 -1
- package/lib/cjs/components/FeedObject/Actions/Reaction/Reaction.js +0 -474
- package/lib/cjs/components/FeedObject/Actions/Reaction/Reaction.js.map +0 -1
- package/lib/cjs/components/FeedObject/Actions/Reaction/ReactionsPopover.d.ts +0 -40
- package/lib/cjs/components/FeedObject/Actions/Reaction/ReactionsPopover.d.ts.map +0 -1
- package/lib/cjs/components/FeedObject/Actions/Reaction/ReactionsPopover.js +0 -156
- package/lib/cjs/components/FeedObject/Actions/Reaction/ReactionsPopover.js.map +0 -1
- package/lib/cjs/components/FeedObject/Actions/Reaction/index.d.ts +0 -3
- package/lib/cjs/components/FeedObject/Actions/Reaction/index.d.ts.map +0 -1
- package/lib/cjs/components/FeedObject/Actions/Reaction/index.js.map +0 -1
- package/lib/esm/components/CommentObject/Reactions/Reactions.d.ts +0 -23
- package/lib/esm/components/CommentObject/Reactions/Reactions.d.ts.map +0 -1
- package/lib/esm/components/CommentObject/Reactions/Reactions.js +0 -68
- package/lib/esm/components/CommentObject/Reactions/Reactions.js.map +0 -1
- package/lib/esm/components/CommentObject/Reactions/ReactionsDialog/ReactionsDialog.d.ts +0 -34
- package/lib/esm/components/CommentObject/Reactions/ReactionsDialog/ReactionsDialog.d.ts.map +0 -1
- package/lib/esm/components/CommentObject/Reactions/ReactionsDialog/ReactionsDialog.js +0 -100
- package/lib/esm/components/CommentObject/Reactions/ReactionsDialog/ReactionsDialog.js.map +0 -1
- package/lib/esm/components/CommentObject/Reactions/ReactionsDialog/index.d.ts +0 -4
- package/lib/esm/components/CommentObject/Reactions/ReactionsDialog/index.d.ts.map +0 -1
- package/lib/esm/components/CommentObject/Reactions/ReactionsDialog/index.js +0 -3
- package/lib/esm/components/CommentObject/Reactions/ReactionsDialog/index.js.map +0 -1
- package/lib/esm/components/CommentObject/Reactions/index.d.ts +0 -4
- package/lib/esm/components/CommentObject/Reactions/index.d.ts.map +0 -1
- package/lib/esm/components/CommentObject/Reactions/index.js +0 -3
- package/lib/esm/components/CommentObject/Reactions/index.js.map +0 -1
- package/lib/esm/components/CommentObject/Votes/Votes.d.ts +0 -19
- package/lib/esm/components/CommentObject/Votes/Votes.d.ts.map +0 -1
- package/lib/esm/components/CommentObject/Votes/Votes.js +0 -64
- package/lib/esm/components/CommentObject/Votes/Votes.js.map +0 -1
- package/lib/esm/components/CommentObject/Votes/VotesDialog/VotesDialog.d.ts +0 -24
- package/lib/esm/components/CommentObject/Votes/VotesDialog/VotesDialog.d.ts.map +0 -1
- package/lib/esm/components/CommentObject/Votes/VotesDialog/VotesDialog.js +0 -66
- package/lib/esm/components/CommentObject/Votes/VotesDialog/VotesDialog.js.map +0 -1
- package/lib/esm/components/CommentObject/Votes/VotesDialog/index.d.ts +0 -4
- package/lib/esm/components/CommentObject/Votes/VotesDialog/index.d.ts.map +0 -1
- package/lib/esm/components/CommentObject/Votes/VotesDialog/index.js +0 -3
- package/lib/esm/components/CommentObject/Votes/VotesDialog/index.js.map +0 -1
- package/lib/esm/components/CommentObject/Votes/index.d.ts +0 -4
- package/lib/esm/components/CommentObject/Votes/index.d.ts.map +0 -1
- package/lib/esm/components/CommentObject/Votes/index.js +0 -3
- package/lib/esm/components/CommentObject/Votes/index.js.map +0 -1
- package/lib/esm/components/FeedObject/Actions/Reaction/Reaction.d.ts +0 -34
- package/lib/esm/components/FeedObject/Actions/Reaction/Reaction.d.ts.map +0 -1
- package/lib/esm/components/FeedObject/Actions/Reaction/Reaction.js +0 -444
- package/lib/esm/components/FeedObject/Actions/Reaction/Reaction.js.map +0 -1
- package/lib/esm/components/FeedObject/Actions/Reaction/ReactionsPopover.d.ts +0 -40
- package/lib/esm/components/FeedObject/Actions/Reaction/ReactionsPopover.d.ts.map +0 -1
- package/lib/esm/components/FeedObject/Actions/Reaction/ReactionsPopover.js +0 -127
- package/lib/esm/components/FeedObject/Actions/Reaction/ReactionsPopover.js.map +0 -1
- package/lib/esm/components/FeedObject/Actions/Reaction/index.d.ts +0 -3
- package/lib/esm/components/FeedObject/Actions/Reaction/index.d.ts.map +0 -1
- package/lib/esm/components/FeedObject/Actions/Reaction/index.js +0 -3
- package/lib/esm/components/FeedObject/Actions/Reaction/index.js.map +0 -1
|
@@ -1,156 +0,0 @@
|
|
|
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 material_1 = require("@mui/material");
|
|
41
|
-
const Icon_1 = __importDefault(require("@mui/material/Icon"));
|
|
42
|
-
const react_1 = __importStar(require("react"));
|
|
43
|
-
const classnames_1 = __importDefault(require("classnames"));
|
|
44
|
-
const system_1 = require("@mui/system");
|
|
45
|
-
const PREFIX = 'SCReactionsPopover';
|
|
46
|
-
const classes = {
|
|
47
|
-
root: `${PREFIX}-root`,
|
|
48
|
-
reactionsMenu: `${PREFIX}-reactions-menu`,
|
|
49
|
-
reactionsList: `${PREFIX}-reactions-list`,
|
|
50
|
-
reactionIcon: `${PREFIX}-reaction-icon`,
|
|
51
|
-
arrowIcon: `${PREFIX}-arrow-icon`
|
|
52
|
-
};
|
|
53
|
-
const Root = (0, material_1.styled)(material_1.Popover, {
|
|
54
|
-
name: PREFIX,
|
|
55
|
-
slot: 'Root'
|
|
56
|
-
})(({ theme }) => ({
|
|
57
|
-
' .MuiPopover-paper': {
|
|
58
|
-
pointerEvents: 'auto'
|
|
59
|
-
},
|
|
60
|
-
pointerEvents: 'none',
|
|
61
|
-
'& .MuiPaper-root': {
|
|
62
|
-
borderRadius: '40px',
|
|
63
|
-
paddingBottom: '4px',
|
|
64
|
-
paddingTop: '4px'
|
|
65
|
-
},
|
|
66
|
-
[`.${classes.reactionsMenu}`]: {
|
|
67
|
-
width: 200,
|
|
68
|
-
overflow: 'hidden',
|
|
69
|
-
display: 'flex',
|
|
70
|
-
alignItems: 'center'
|
|
71
|
-
},
|
|
72
|
-
[`& .${classes.reactionsList}`]: {
|
|
73
|
-
display: 'flex',
|
|
74
|
-
alignItems: 'center',
|
|
75
|
-
listStyle: 'none',
|
|
76
|
-
maxWidth: ' 100%',
|
|
77
|
-
overflowX: 'scroll',
|
|
78
|
-
scrollBehavior: 'smooth',
|
|
79
|
-
'&::-webkit-scrollbar': {
|
|
80
|
-
background: 'transparent',
|
|
81
|
-
webkitAppearance: 'none',
|
|
82
|
-
width: 0,
|
|
83
|
-
height: 0
|
|
84
|
-
}
|
|
85
|
-
},
|
|
86
|
-
[`.${classes.reactionIcon}`]: {
|
|
87
|
-
cursor: 'pointer',
|
|
88
|
-
display: 'flex',
|
|
89
|
-
alignItems: 'center',
|
|
90
|
-
justifyContent: 'center',
|
|
91
|
-
'& img': {
|
|
92
|
-
width: '1rem',
|
|
93
|
-
height: '1rem'
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
}));
|
|
97
|
-
function ReactionsPopover(inProps) {
|
|
98
|
-
// PROPS
|
|
99
|
-
const props = (0, system_1.useThemeProps)({
|
|
100
|
-
props: inProps,
|
|
101
|
-
name: PREFIX
|
|
102
|
-
});
|
|
103
|
-
const { className, open, reactions, anchorEl, onClose, onReactionSelection, onOpen } = props, rest = __rest(props, ["className", "open", "reactions", "anchorEl", "onClose", "onReactionSelection", "onOpen"]);
|
|
104
|
-
const theme = (0, material_1.useTheme)();
|
|
105
|
-
const isMobile = (0, material_1.useMediaQuery)(theme.breakpoints.down('md'));
|
|
106
|
-
const scroll = (0, react_1.useRef)(null);
|
|
107
|
-
const [scrollLeft, setScrollLeft] = (0, react_1.useState)(0);
|
|
108
|
-
const [scrollRight, setScrollRight] = (0, react_1.useState)(false);
|
|
109
|
-
/**
|
|
110
|
-
* Manages right/left scrolling
|
|
111
|
-
*
|
|
112
|
-
* @param shift
|
|
113
|
-
*/
|
|
114
|
-
const slide = (shift) => {
|
|
115
|
-
scroll.current.scrollLeft += shift;
|
|
116
|
-
setScrollLeft(scrollLeft + shift);
|
|
117
|
-
// Updates the latest scrolled position
|
|
118
|
-
if (Math.floor(scroll.current.scrollWidth - scroll.current.scrollLeft) <= scroll.current.offsetWidth) {
|
|
119
|
-
setScrollRight(true);
|
|
120
|
-
}
|
|
121
|
-
else {
|
|
122
|
-
setScrollRight(false);
|
|
123
|
-
}
|
|
124
|
-
};
|
|
125
|
-
/**
|
|
126
|
-
* Checks scroll event and hides/shows the right arrow button
|
|
127
|
-
*/
|
|
128
|
-
const checkScrollEnd = () => {
|
|
129
|
-
setScrollLeft(scroll.current.scrollLeft);
|
|
130
|
-
if (Math.floor(scroll.current.scrollWidth - scroll.current.scrollLeft) <= scroll.current.offsetWidth) {
|
|
131
|
-
setScrollRight(true);
|
|
132
|
-
}
|
|
133
|
-
else {
|
|
134
|
-
setScrollRight(false);
|
|
135
|
-
}
|
|
136
|
-
};
|
|
137
|
-
/**
|
|
138
|
-
* Renders Popover
|
|
139
|
-
*/
|
|
140
|
-
return (react_1.default.createElement(Root, Object.assign({}, rest, { open: open, anchorEl: anchorEl, className: (0, classnames_1.default)(classes.root, className), anchorOrigin: {
|
|
141
|
-
vertical: 'top',
|
|
142
|
-
horizontal: 'center'
|
|
143
|
-
}, transformOrigin: {
|
|
144
|
-
vertical: 'bottom',
|
|
145
|
-
horizontal: 'center'
|
|
146
|
-
}, PaperProps: { onMouseEnter: onOpen, onMouseLeave: onClose, onTouchStart: onOpen } }),
|
|
147
|
-
react_1.default.createElement(material_1.ClickAwayListener, { onClickAway: onClose },
|
|
148
|
-
react_1.default.createElement(material_1.Box, { component: 'div', className: classes.reactionsMenu },
|
|
149
|
-
scrollLeft !== 0 && !isMobile && (react_1.default.createElement(Icon_1.default, { onClick: () => slide(-50), fontSize: 'small', className: classes.arrowIcon }, "chevron_left")),
|
|
150
|
-
react_1.default.createElement(material_1.List, { ref: scroll, onScroll: checkScrollEnd, className: classes.reactionsList }, reactions.map((reaction, index) => (react_1.default.createElement(material_1.ListItem, { key: index, onClick: () => onReactionSelection(reaction) },
|
|
151
|
-
react_1.default.createElement(Icon_1.default, { className: classes.reactionIcon },
|
|
152
|
-
react_1.default.createElement("img", { alt: reaction.label, src: reaction.image })))))),
|
|
153
|
-
!scrollRight && !isMobile && (react_1.default.createElement(Icon_1.default, { onClick: () => slide(+50), fontSize: 'small', className: classes.arrowIcon }, "chevron_right"))))));
|
|
154
|
-
}
|
|
155
|
-
exports.default = ReactionsPopover;
|
|
156
|
-
//# sourceMappingURL=ReactionsPopover.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ReactionsPopover.js","sourceRoot":"","sources":["../../../../../../src/components/FeedObject/Actions/Reaction/ReactionsPopover.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,4CAA+G;AAC/G,8DAAsC;AACtC,+CAA8C;AAC9C,4DAAoC;AACpC,wCAA0C;AAI1C,MAAM,MAAM,GAAG,oBAAoB,CAAC;AAEpC,MAAM,OAAO,GAAG;IACd,IAAI,EAAE,GAAG,MAAM,OAAO;IACtB,aAAa,EAAE,GAAG,MAAM,iBAAiB;IACzC,aAAa,EAAE,GAAG,MAAM,iBAAiB;IACzC,YAAY,EAAE,GAAG,MAAM,gBAAgB;IACvC,SAAS,EAAE,GAAG,MAAM,aAAa;CAClC,CAAC;AAEF,MAAM,IAAI,GAAG,IAAA,iBAAM,E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AAK,EAAE,GAAG,EAAE,QAAQ,CAAC,KAAK,GAAI,CAC5C,CACE,CACZ,CAAC,CACG;gBACN,CAAC,WAAW,IAAI,CAAC,QAAQ,IAAI,CAC5B,8BAAC,cAAI,IAAC,OAAO,EAAE,GAAG,EAAE,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,EAAE,QAAQ,EAAE,OAAO,EAAE,SAAS,EAAE,OAAO,CAAC,SAAS,oBAEzE,CACR,CACG,CACY,CACf,CACR,CAAC;AACJ,CAAC;AApFD,mCAoFC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/FeedObject/Actions/Reaction/index.tsx"],"names":[],"mappings":"AAAA,OAAO,QAAQ,MAAM,YAAY,CAAC;AAClC,eAAe,QAAQ,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/components/FeedObject/Actions/Reaction/index.tsx"],"names":[],"mappings":";;;;;AAAA,0DAAkC;AAClC,kBAAe,kBAAQ,CAAC"}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { SCCommentType, SCReactionType } from '@selfcommunity/types';
|
|
2
|
-
export interface ReactionsProps {
|
|
3
|
-
/**
|
|
4
|
-
* Id of the comment object
|
|
5
|
-
* @default null
|
|
6
|
-
*/
|
|
7
|
-
commentObjectId?: number;
|
|
8
|
-
/**
|
|
9
|
-
* Comment object
|
|
10
|
-
* @default null
|
|
11
|
-
*/
|
|
12
|
-
commentObject?: SCCommentType;
|
|
13
|
-
/**
|
|
14
|
-
* The reactions added to the comment
|
|
15
|
-
*/
|
|
16
|
-
reactionsList: SCReactionType[];
|
|
17
|
-
/**
|
|
18
|
-
* Other props
|
|
19
|
-
*/
|
|
20
|
-
[p: string]: any;
|
|
21
|
-
}
|
|
22
|
-
export default function Reactions(inProps: ReactionsProps): JSX.Element;
|
|
23
|
-
//# sourceMappingURL=Reactions.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Reactions.d.ts","sourceRoot":"","sources":["../../../../../src/components/CommentObject/Reactions/Reactions.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAC,aAAa,EAAE,cAAc,EAAC,MAAM,sBAAsB,CAAC;AAwBnE,MAAM,WAAW,cAAc;IAC7B;;;OAGG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IAEzB;;;OAGG;IACH,aAAa,CAAC,EAAE,aAAa,CAAC;IAE9B;;OAEG;IACH,aAAa,EAAE,cAAc,EAAE,CAAC;IAChC;;OAEG;IACH,CAAC,CAAC,EAAE,MAAM,GAAG,GAAG,CAAC;CAClB;AAED,MAAM,CAAC,OAAO,UAAU,SAAS,CAAC,OAAO,EAAE,cAAc,GAAG,GAAG,CAAC,OAAO,CAiEtE"}
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
var __rest = (this && this.__rest) || function (s, e) {
|
|
2
|
-
var t = {};
|
|
3
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
4
|
-
t[p] = s[p];
|
|
5
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
6
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
7
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
8
|
-
t[p[i]] = s[p[i]];
|
|
9
|
-
}
|
|
10
|
-
return t;
|
|
11
|
-
};
|
|
12
|
-
import React, { useState } from 'react';
|
|
13
|
-
import { Avatar, AvatarGroup, Box, Button, Typography } from '@mui/material';
|
|
14
|
-
import { useSCFetchCommentObject } from '@selfcommunity/react-core';
|
|
15
|
-
import { styled } from '@mui/material/styles';
|
|
16
|
-
import Icon from '@mui/material/Icon';
|
|
17
|
-
import CommentObjectReactionsDialog from './ReactionsDialog';
|
|
18
|
-
import { useThemeProps } from '@mui/system';
|
|
19
|
-
import classNames from 'classnames';
|
|
20
|
-
const PREFIX = 'SCCommentObjectReactions';
|
|
21
|
-
const classes = {
|
|
22
|
-
root: `${PREFIX}-root`,
|
|
23
|
-
btnViewVotes: `${PREFIX}-btnViewVotes`,
|
|
24
|
-
votes: `${PREFIX}-votes`,
|
|
25
|
-
groupedReactions: `${PREFIX}-grouped-reactions`,
|
|
26
|
-
reactionAvatar: `${PREFIX}-reaction-avatar`,
|
|
27
|
-
reactionIcon: `${PREFIX}-reaction-icon`
|
|
28
|
-
};
|
|
29
|
-
const Root = styled(Box, {
|
|
30
|
-
name: PREFIX,
|
|
31
|
-
slot: 'Root',
|
|
32
|
-
overridesResolver: (props, styles) => styles.root
|
|
33
|
-
})(({ theme }) => ({}));
|
|
34
|
-
export default function Reactions(inProps) {
|
|
35
|
-
// PROPS
|
|
36
|
-
const props = useThemeProps({
|
|
37
|
-
props: inProps,
|
|
38
|
-
name: PREFIX
|
|
39
|
-
});
|
|
40
|
-
const { className = '', commentObjectId, commentObject, reactionsList = [] } = props, rest = __rest(props, ["className", "commentObjectId", "commentObject", "reactionsList"]);
|
|
41
|
-
// RETRIEVE OBJECTS
|
|
42
|
-
const { obj, setObj } = useSCFetchCommentObject({ id: commentObjectId, commentObject });
|
|
43
|
-
// STATE
|
|
44
|
-
const [openVotesDialog, setOpenVotesDialog] = useState(false);
|
|
45
|
-
/**
|
|
46
|
-
* Open/Close dialog shares
|
|
47
|
-
*/
|
|
48
|
-
function handleToggleReactionsDialog() {
|
|
49
|
-
setOpenVotesDialog(!openVotesDialog);
|
|
50
|
-
}
|
|
51
|
-
/**
|
|
52
|
-
* Render votes
|
|
53
|
-
* @return {JSX.Element}
|
|
54
|
-
*/
|
|
55
|
-
function renderReactions() {
|
|
56
|
-
if (!reactionsList || !obj) {
|
|
57
|
-
return null;
|
|
58
|
-
}
|
|
59
|
-
return (React.createElement(React.Fragment, null,
|
|
60
|
-
React.createElement(Button, { variant: "text", size: "small", onClick: handleToggleReactionsDialog, disabled: obj.vote_count === 0, className: classes.btnViewVotes },
|
|
61
|
-
React.createElement(React.Fragment, null, obj.vote_count <= 0 ? (React.createElement(Icon, { fontSize: "medium", sx: { marginTop: '-1px' } }, "thumb_up_off_alt")) : (React.createElement(AvatarGroup, { className: classes.groupedReactions, max: 3 },
|
|
62
|
-
reactionsList.map((r, i) => (React.createElement(Avatar, { alt: r.reaction.label, src: r.reaction.image, key: i, className: classes.reactionAvatar }))),
|
|
63
|
-
React.createElement(Typography, { component: 'span' }, obj.vote_count))))),
|
|
64
|
-
openVotesDialog && obj.vote_count > 0 && (React.createElement(CommentObjectReactionsDialog, { reactionsList: reactionsList, commentObject: obj, open: openVotesDialog, onClose: handleToggleReactionsDialog }))));
|
|
65
|
-
}
|
|
66
|
-
return (React.createElement(Root, Object.assign({ className: classNames(classes.root, className) }, rest), renderReactions()));
|
|
67
|
-
}
|
|
68
|
-
//# sourceMappingURL=Reactions.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Reactions.js","sourceRoot":"","sources":["../../../../../src/components/CommentObject/Reactions/Reactions.tsx"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,KAAK,EAAE,EAAC,QAAQ,EAAC,MAAM,OAAO,CAAC;AACtC,OAAO,EAAC,MAAM,EAAE,WAAW,EAAE,GAAG,EAAE,MAAM,EAAE,UAAU,EAAC,MAAM,eAAe,CAAC;AAC3E,OAAO,EAAC,uBAAuB,EAAC,MAAM,2BAA2B,CAAC;AAElE,OAAO,EAAC,MAAM,EAAC,MAAM,sBAAsB,CAAC;AAC5C,OAAO,IAAI,MAAM,oBAAoB,CAAC;AACtC,OAAO,4BAA4B,MAAM,mBAAmB,CAAC;AAC7D,OAAO,EAAC,aAAa,EAAC,MAAM,aAAa,CAAC;AAC1C,OAAO,UAAU,MAAM,YAAY,CAAC;AAEpC,MAAM,MAAM,GAAG,0BAA0B,CAAC;AAE1C,MAAM,OAAO,GAAG;IACd,IAAI,EAA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
-
import React from 'react';
|
|
2
|
-
import { SCCommentType, SCReactionType } from '@selfcommunity/types';
|
|
3
|
-
export interface CommentObjectReactionsDialogProps {
|
|
4
|
-
/**
|
|
5
|
-
* Id of the comment object
|
|
6
|
-
* @default null
|
|
7
|
-
*/
|
|
8
|
-
commentObjectId?: number;
|
|
9
|
-
/**
|
|
10
|
-
* Comment object
|
|
11
|
-
* @default null
|
|
12
|
-
*/
|
|
13
|
-
commentObject?: SCCommentType;
|
|
14
|
-
/**
|
|
15
|
-
* open/close the dialog
|
|
16
|
-
* @default false
|
|
17
|
-
*/
|
|
18
|
-
open?: boolean;
|
|
19
|
-
/**
|
|
20
|
-
* Callback invoked when dialog close
|
|
21
|
-
*/
|
|
22
|
-
onClose?: () => any;
|
|
23
|
-
/**
|
|
24
|
-
* The reactions added to the comment
|
|
25
|
-
*/
|
|
26
|
-
reactionsList: SCReactionType[];
|
|
27
|
-
}
|
|
28
|
-
export interface TabPanelProps {
|
|
29
|
-
children?: React.ReactNode;
|
|
30
|
-
index: string;
|
|
31
|
-
value: string | any;
|
|
32
|
-
}
|
|
33
|
-
export default function CommentObjectReactionsDialog(inProps: CommentObjectReactionsDialogProps): JSX.Element;
|
|
34
|
-
//# sourceMappingURL=ReactionsDialog.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ReactionsDialog.d.ts","sourceRoot":"","sources":["../../../../../../src/components/CommentObject/Reactions/ReactionsDialog/ReactionsDialog.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4B,MAAM,OAAO,CAAC;AAOjD,OAAO,EAAC,aAAa,EAAyB,cAAc,EAAC,MAAM,sBAAsB,CAAC;AAsB1F,MAAM,WAAW,iCAAiC;IAChD;;;OAGG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IAEzB;;;OAGG;IACH,aAAa,CAAC,EAAE,aAAa,CAAC;IAE9B;;;OAGG;IACH,IAAI,CAAC,EAAE,OAAO,CAAC;IAEf;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,GAAG,CAAC;IAEpB;;OAEG;IACH,aAAa,EAAE,cAAc,EAAE,CAAC;CACjC;AAED,MAAM,WAAW,aAAa;IAC5B,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,GAAG,GAAG,CAAC;CACrB;AAWD,MAAM,CAAC,OAAO,UAAU,4BAA4B,CAAC,OAAO,EAAE,iCAAiC,GAAG,GAAG,CAAC,OAAO,CAyI5G"}
|
|
@@ -1,100 +0,0 @@
|
|
|
1
|
-
var __rest = (this && this.__rest) || function (s, e) {
|
|
2
|
-
var t = {};
|
|
3
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
4
|
-
t[p] = s[p];
|
|
5
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
6
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
7
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
8
|
-
t[p[i]] = s[p[i]];
|
|
9
|
-
}
|
|
10
|
-
return t;
|
|
11
|
-
};
|
|
12
|
-
import React, { useEffect, useState } from 'react';
|
|
13
|
-
import { FormattedMessage } from 'react-intl';
|
|
14
|
-
import { Box, List, ListItem, Tab, Tabs } from '@mui/material';
|
|
15
|
-
import InfiniteScroll from '../../../../shared/InfiniteScroll';
|
|
16
|
-
import { http, Endpoints } from '@selfcommunity/api-services';
|
|
17
|
-
import { Logger } from '@selfcommunity/utils';
|
|
18
|
-
import { useSCFetchCommentObject } from '@selfcommunity/react-core';
|
|
19
|
-
import { SCCommentTypologyType } from '@selfcommunity/types';
|
|
20
|
-
import { SCOPE_SC_UI } from '../../../../constants/Errors';
|
|
21
|
-
import BaseDialog from '../../../../shared/BaseDialog';
|
|
22
|
-
import CentralProgress from '../../../../shared/CentralProgress';
|
|
23
|
-
import User from '../../../User';
|
|
24
|
-
import { styled } from '@mui/material/styles';
|
|
25
|
-
import { useThemeProps } from '@mui/system';
|
|
26
|
-
import Icon from '@mui/material/Icon';
|
|
27
|
-
import _ from 'lodash';
|
|
28
|
-
const PREFIX = 'SCCommentObjectReactionsDialog';
|
|
29
|
-
const classes = {
|
|
30
|
-
root: `${PREFIX}-root`
|
|
31
|
-
};
|
|
32
|
-
const Root = styled(Box, {
|
|
33
|
-
name: PREFIX,
|
|
34
|
-
slot: 'Root',
|
|
35
|
-
overridesResolver: (props, styles) => styles.root
|
|
36
|
-
})({});
|
|
37
|
-
function TabPanel(props) {
|
|
38
|
-
const { children, value, index } = props, other = __rest(props, ["children", "value", "index"]);
|
|
39
|
-
return (React.createElement("div", Object.assign({ hidden: value !== index, id: `tab-panel-${index}` }, other), value === index && React.createElement(React.Fragment, null, children)));
|
|
40
|
-
}
|
|
41
|
-
export default function CommentObjectReactionsDialog(inProps) {
|
|
42
|
-
// PROPS
|
|
43
|
-
const props = useThemeProps({
|
|
44
|
-
props: inProps,
|
|
45
|
-
name: PREFIX
|
|
46
|
-
});
|
|
47
|
-
const { commentObjectId, commentObject, open = false, onClose, reactionsList = [] } = props;
|
|
48
|
-
// RETRIEVE OBJECTS
|
|
49
|
-
const { obj, setObj } = useSCFetchCommentObject({ id: commentObjectId, commentObject });
|
|
50
|
-
// STATE
|
|
51
|
-
const [isLoading, setIsLoading] = useState(true);
|
|
52
|
-
const [votes, setVotes] = useState([]);
|
|
53
|
-
const [next, setNext] = useState(null);
|
|
54
|
-
const [tabIndex, setTabIndex] = useState('all');
|
|
55
|
-
const filteredVotes = _.groupBy(votes, (v) => v.reaction.label);
|
|
56
|
-
// HANDLERS
|
|
57
|
-
const handleChange = (event, newValue) => {
|
|
58
|
-
setTabIndex(newValue);
|
|
59
|
-
};
|
|
60
|
-
useEffect(() => {
|
|
61
|
-
if (obj) {
|
|
62
|
-
fetchVotes();
|
|
63
|
-
}
|
|
64
|
-
}, [obj.id]);
|
|
65
|
-
function fetchVotes() {
|
|
66
|
-
setIsLoading(true);
|
|
67
|
-
http
|
|
68
|
-
.request({
|
|
69
|
-
url: next ? next : `${Endpoints.VotesList.url({ type: SCCommentTypologyType, id: obj.id })}`,
|
|
70
|
-
method: Endpoints.VotesList.method
|
|
71
|
-
})
|
|
72
|
-
.then((res) => {
|
|
73
|
-
const data = res.data;
|
|
74
|
-
setVotes([...data.results, ...votes]);
|
|
75
|
-
setIsLoading(false);
|
|
76
|
-
setNext(data.next !== null ? data.next : null);
|
|
77
|
-
})
|
|
78
|
-
.catch((error) => {
|
|
79
|
-
Logger.error(SCOPE_SC_UI, error);
|
|
80
|
-
});
|
|
81
|
-
}
|
|
82
|
-
return (React.createElement(BaseDialog, { title: React.createElement(Tabs, { value: tabIndex, onChange: handleChange, variant: "scrollable", scrollButtons: true, allowScrollButtonsMobile: true },
|
|
83
|
-
React.createElement(Tab, { value: 'all', label: React.createElement(FormattedMessage, { defaultMessage: "ui.commentObjectReactionsDialog.title", id: "ui.commentObjectReactionsDialog.title" }) }),
|
|
84
|
-
reactionsList.map((r, index) => (React.createElement(Tab, { icon: React.createElement(Icon, null,
|
|
85
|
-
React.createElement("img", { alt: r.reaction.label, src: r.reaction.image, width: 20, height: 20 })), iconPosition: "start", label: r.count, key: index, value: r.reaction.label })))), onClose: onClose, open: open }, isLoading ? (React.createElement(CentralProgress, { size: 50 })) : (React.createElement(React.Fragment, null,
|
|
86
|
-
React.createElement(TabPanel, { value: 'all', index: tabIndex },
|
|
87
|
-
React.createElement(InfiniteScroll, { dataLength: votes.length, next: fetchVotes, hasMoreNext: Boolean(next), loaderNext: React.createElement(CentralProgress, { size: 30 }), height: 400, endMessage: React.createElement("p", { style: { textAlign: 'center' } },
|
|
88
|
-
React.createElement("b", null,
|
|
89
|
-
React.createElement(FormattedMessage, { id: "ui.commentObjectReactionsDialog.noOtherLikes", defaultMessage: "ui.commentObjectReactionsDialog.noOtherLikes" }))) },
|
|
90
|
-
React.createElement(List, null, votes.map((vote, index) => (React.createElement(ListItem, { key: index },
|
|
91
|
-
React.createElement(User, { elevation: 0, user: vote.user, key: index, sx: { m: 0 }, showReaction: true, reaction: vote.reaction }))))))),
|
|
92
|
-
Object.keys(filteredVotes).map((key, index) => (React.createElement(React.Fragment, { key: index },
|
|
93
|
-
React.createElement(TabPanel, { value: key, index: tabIndex },
|
|
94
|
-
React.createElement(InfiniteScroll, { dataLength: votes.length, next: fetchVotes, hasMoreNext: Boolean(next), loaderNext: React.createElement(CentralProgress, { size: 30 }), height: 400, endMessage: React.createElement("p", { style: { textAlign: 'center' } },
|
|
95
|
-
React.createElement("b", null,
|
|
96
|
-
React.createElement(FormattedMessage, { id: "ui.commentObjectReactionsDialog.noOtherLikes", defaultMessage: "ui.commentObjectReactionsDialog.noOtherLikes" }))) },
|
|
97
|
-
React.createElement(List, null, filteredVotes[key].map((vote, index) => (React.createElement(ListItem, { key: index },
|
|
98
|
-
React.createElement(User, { elevation: 0, user: vote.user, key: index, sx: { m: 0 }, showReaction: true, reaction: vote.reaction }))))))))))))));
|
|
99
|
-
}
|
|
100
|
-
//# sourceMappingURL=ReactionsDialog.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ReactionsDialog.js","sourceRoot":"","sources":["../../../../../../src/components/CommentObject/Reactions/ReactionsDialog/ReactionsDialog.tsx"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,KAAK,EAAE,EAAC,SAAS,EAAE,QAAQ,EAAC,MAAM,OAAO,CAAC;AACjD,OAAO,EAAC,gBAAgB,EAAC,MAAM,YAAY,CAAC;AAC5C,OAAO,EAAC,GAAG,EAAE,IAAI,EAAE,QAAQ,EAAE,GAAG,EAAE,IAAI,EAAC,MAAM,eAAe,CAAC;AAC7D,OAAO,cAAc,MAAM,mCAAmC,CAAC;AAC/D,OAAO,EAAC,IAAI,EAAE,SAAS,EAAe,MAAM,6BAA6B,CAAC;AAC1E,OAAO,EAAC,MAAM,E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E,CAAC,CAC9C,oBAAC,KAAK,CAAC,QAAQ,IAAC,GAAG,EAAE,KAAK;YACxB,oBAAC,QAAQ,IAAC,KAAK,EAAE,GAAG,EAAE,KAAK,EAAE,QAAQ;gBACnC,oBAAC,cAAc,IACb,UAAU,EAAE,KAAK,CAAC,MAAM,EACxB,IAAI,EAAE,UAAU,EAChB,WAAW,EAAE,OAAO,CAAC,IAAI,CAAC,EAC1B,UAAU,EAAE,oBAAC,eAAe,IAAC,IAAI,EAAE,EAAE,GAAI,EACzC,MAAM,EAAE,GAAG,EACX,UAAU,EACR,2BAAG,KAAK,EAAE,EAAC,SAAS,EAAE,QAAQ,EAAC;wBAC7B;4BACE,oBAAC,gBAAgB,IACf,EAAE,EAAC,8CAA8C,EACjD,cAAc,EAAC,8CAA8C,GAC7D,CACA,CACF;oBAEN,oBAAC,IAAI,QACF,aAAa,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE,CAAC,CACvC,oBAAC,QAAQ,IAAC,GAAG,EAAE,KAAK;wBAClB,oBAAC,IAAI,IAAC,SAAS,EAAE,CAAC,EAAE,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,GAAG,EAAE,KAAK,EAAE,EAAE,EAAE,EAAC,CAAC,EAAE,CAAC,EAAC,EAAE,YAAY,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,CAAC,QAAQ,GAAI,CACnG,CACZ,CAAC,CACG,CACQ,CACR,CACI,CAClB,CAAC,CACD,CACJ,CACU,CACd,CAAC;AACJ,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/CommentObject/Reactions/ReactionsDialog/index.tsx"],"names":[],"mappings":"AAAA,OAAO,4BAA4B,EAAE,EAAC,iCAAiC,EAAC,MAAM,mBAAmB,CAAC;AAClG,eAAe,4BAA4B,CAAC;AAC5C,OAAO,EAAC,iCAAiC,EAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/components/CommentObject/Reactions/ReactionsDialog/index.tsx"],"names":[],"mappings":"AAAA,OAAO,4BAAiE,MAAM,mBAAmB,CAAC;AAClG,eAAe,4BAA4B,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/CommentObject/Reactions/index.tsx"],"names":[],"mappings":"AAAA,OAAO,SAAS,EAAE,EAAC,cAAc,EAAC,MAAM,aAAa,CAAC;AACtD,eAAe,SAAS,CAAC;AACzB,OAAO,EAAC,cAAc,EAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/components/CommentObject/Reactions/index.tsx"],"names":[],"mappings":"AAAA,OAAO,SAA2B,MAAM,aAAa,CAAC;AACtD,eAAe,SAAS,CAAC"}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { SCCommentType } from '@selfcommunity/types';
|
|
2
|
-
export interface VotesProps {
|
|
3
|
-
/**
|
|
4
|
-
* Id of the comment object
|
|
5
|
-
* @default null
|
|
6
|
-
*/
|
|
7
|
-
commentObjectId?: number;
|
|
8
|
-
/**
|
|
9
|
-
* Comment object
|
|
10
|
-
* @default null
|
|
11
|
-
*/
|
|
12
|
-
commentObject?: SCCommentType;
|
|
13
|
-
/**
|
|
14
|
-
* Other props
|
|
15
|
-
*/
|
|
16
|
-
[p: string]: any;
|
|
17
|
-
}
|
|
18
|
-
export default function Votes(inProps: VotesProps): JSX.Element;
|
|
19
|
-
//# sourceMappingURL=Votes.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Votes.d.ts","sourceRoot":"","sources":["../../../../../src/components/CommentObject/Votes/Votes.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAC,aAAa,EAAC,MAAM,sBAAsB,CAAC;AAqBnD,MAAM,WAAW,UAAU;IACzB;;;OAGG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IAEzB;;;OAGG;IACH,aAAa,CAAC,EAAE,aAAa,CAAC;IAE9B;;OAEG;IACH,CAAC,CAAC,EAAE,MAAM,GAAG,GAAG,CAAC;CAClB;AAED,MAAM,CAAC,OAAO,UAAU,KAAK,CAAC,OAAO,EAAE,UAAU,GAAG,GAAG,CAAC,OAAO,CA0D9D"}
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
var __rest = (this && this.__rest) || function (s, e) {
|
|
2
|
-
var t = {};
|
|
3
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
4
|
-
t[p] = s[p];
|
|
5
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
6
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
7
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
8
|
-
t[p[i]] = s[p[i]];
|
|
9
|
-
}
|
|
10
|
-
return t;
|
|
11
|
-
};
|
|
12
|
-
import React, { useState } from 'react';
|
|
13
|
-
import { Box, Button, Typography } from '@mui/material';
|
|
14
|
-
import { useSCFetchCommentObject } from '@selfcommunity/react-core';
|
|
15
|
-
import { styled } from '@mui/material/styles';
|
|
16
|
-
import Icon from '@mui/material/Icon';
|
|
17
|
-
import CommentObjectVotesDialog from './VotesDialog';
|
|
18
|
-
import { useThemeProps } from '@mui/system';
|
|
19
|
-
import classNames from 'classnames';
|
|
20
|
-
const PREFIX = 'SCCommentObjectVotes';
|
|
21
|
-
const classes = {
|
|
22
|
-
root: `${PREFIX}-root`,
|
|
23
|
-
btnViewVotes: `${PREFIX}-btnViewVotes`,
|
|
24
|
-
votes: `${PREFIX}-votes`
|
|
25
|
-
};
|
|
26
|
-
const Root = styled(Box, {
|
|
27
|
-
name: PREFIX,
|
|
28
|
-
slot: 'Root',
|
|
29
|
-
overridesResolver: (props, styles) => styles.root
|
|
30
|
-
})(({ theme }) => ({}));
|
|
31
|
-
export default function Votes(inProps) {
|
|
32
|
-
// PROPS
|
|
33
|
-
const props = useThemeProps({
|
|
34
|
-
props: inProps,
|
|
35
|
-
name: PREFIX
|
|
36
|
-
});
|
|
37
|
-
const { className = '', commentObjectId, commentObject } = props, rest = __rest(props, ["className", "commentObjectId", "commentObject"]);
|
|
38
|
-
// RETRIEVE OBJECTS
|
|
39
|
-
const { obj, setObj } = useSCFetchCommentObject({ id: commentObjectId, commentObject });
|
|
40
|
-
// STATE
|
|
41
|
-
const [openVotesDialog, setOpenVotesDialog] = useState(false);
|
|
42
|
-
/**
|
|
43
|
-
* Open/Close dialog shares
|
|
44
|
-
*/
|
|
45
|
-
function handleToggleSharesDialog() {
|
|
46
|
-
setOpenVotesDialog(!openVotesDialog);
|
|
47
|
-
}
|
|
48
|
-
/**
|
|
49
|
-
* Render votes
|
|
50
|
-
* @return {JSX.Element}
|
|
51
|
-
*/
|
|
52
|
-
function renderVotes() {
|
|
53
|
-
if (!obj) {
|
|
54
|
-
return null;
|
|
55
|
-
}
|
|
56
|
-
return (React.createElement(React.Fragment, null,
|
|
57
|
-
React.createElement(Button, { variant: "text", size: "small", disabled: obj.vote_count <= 0, className: classes.btnViewVotes, onClick: handleToggleSharesDialog },
|
|
58
|
-
obj.voted ? (React.createElement(Icon, { fontSize: "medium", color: "primary", className: classes.votes }, "thumb_up_alt")) : (React.createElement(Icon, { fontSize: "medium", sx: { marginTop: '-1px' } }, "thumb_up_off_alt")),
|
|
59
|
-
React.createElement(Typography, { variant: 'body2', sx: { marginLeft: '5px' } }, obj.vote_count)),
|
|
60
|
-
openVotesDialog && obj.vote_count > 0 && (React.createElement(CommentObjectVotesDialog, { commentObject: obj, open: openVotesDialog, onClose: handleToggleSharesDialog }))));
|
|
61
|
-
}
|
|
62
|
-
return (React.createElement(Root, Object.assign({ className: classNames(classes.root, className) }, rest), renderVotes()));
|
|
63
|
-
}
|
|
64
|
-
//# sourceMappingURL=Votes.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Votes.js","sourceRoot":"","sources":["../../../../../src/components/CommentObject/Votes/Votes.tsx"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,KAAK,EAAE,EAAC,QAAQ,EAAC,MAAM,OAAO,CAAC;AACtC,OAAO,EAAC,GAAG,EAAE,MAAM,EAAE,UAAU,EAAC,MAAM,eAAe,CAAC;AACtD,OAAO,EAAC,uBAAuB,EAAC,MAAM,2BAA2B,CAAC;AAElE,OAAO,EAAC,MAAM,EAAC,MAAM,sBAAsB,CAAC;AAC5C,OAAO,IAAI,MAAM,oBAAoB,CAAC;AACtC,OAAO,wBAAwB,MAAM,eAAe,CAAC;AACrD,OAAO,EAAC,aAAa,EAAC,MAAM,aAAa,CAAC;AAC1C,OAAO,UAAU,MAAM,YAAY,CAAC;AAEpC,MAAM,MAAM,GAAG,sBAAsB,CAAC;AAEtC,MAAM,OAAO,GAAG;IACd,IAAI,EAAE,GAAG,MAAM,OAAO;IACtB,YAAY,EAAE,GAAG,MAAM,eAAe;IACtC,KAAK,EAAE,GAAG,MAAM,QAAQ;CACzB,CAAC;AAEF,MAAM,IAAI,GAAG,MAAM,CAAC,GAAG,EAAE;IACvB,IAAI,EAAE,MAAM;IACZ,IAAI,EAAE,MAAM;IACZ,iBAAiB,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,IAAI;CAClD,CAAC,CAAC,CAAC,EAAC,KAAK,EAAC,EAAE,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;AAqBtB,MAAM,CAAC,OAAO,UAAU,KAAK,CAAC,OAAmB;IAC/C,QAAQ;IACR,MAAM,KAAK,GAAe,aAAa,CAAC;QACtC,KAAK,EAAE,OAAO;QACd,IAAI,EAAE,MAAM;KACb,CAAC,CAAC;IAEH,MAAM,E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EAAE,eAAe,EAAE,OAAO,EAAE,wBAAwB,GAAI,CAC3G,CACA,CACJ,CAAC;IACJ,CAAC;IAED,OAAO,CACL,oBAAC,IAAI,kBAAC,SAAS,EAAE,UAAU,CAAC,OAAO,CAAC,IAAI,EAAE,SAAS,CAAC,IAAM,IAAI,GAC3D,WAAW,EAAE,CACT,CACR,CAAC;AACJ,CAAC"}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { SCCommentType } from '@selfcommunity/types';
|
|
2
|
-
export interface CommentObjectVotesDialogProps {
|
|
3
|
-
/**
|
|
4
|
-
* Id of the comment object
|
|
5
|
-
* @default null
|
|
6
|
-
*/
|
|
7
|
-
commentObjectId?: number;
|
|
8
|
-
/**
|
|
9
|
-
* Comment object
|
|
10
|
-
* @default null
|
|
11
|
-
*/
|
|
12
|
-
commentObject?: SCCommentType;
|
|
13
|
-
/**
|
|
14
|
-
* open/close the dialog
|
|
15
|
-
* @default false
|
|
16
|
-
*/
|
|
17
|
-
open?: boolean;
|
|
18
|
-
/**
|
|
19
|
-
* Callback invoked when dialog close
|
|
20
|
-
*/
|
|
21
|
-
onClose?: () => any;
|
|
22
|
-
}
|
|
23
|
-
export default function CommentObjectVotesDialog(inProps: CommentObjectVotesDialogProps): JSX.Element;
|
|
24
|
-
//# sourceMappingURL=VotesDialog.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"VotesDialog.d.ts","sourceRoot":"","sources":["../../../../../../src/components/CommentObject/Votes/VotesDialog/VotesDialog.tsx"],"names":[],"mappings":"AAQA,OAAO,EAAC,aAAa,EAAwB,MAAM,sBAAsB,CAAC;AAoB1E,MAAM,WAAW,6BAA6B;IAC5C;;;OAGG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IAEzB;;;OAGG;IACH,aAAa,CAAC,EAAE,aAAa,CAAC;IAE9B;;;OAGG;IACH,IAAI,CAAC,EAAE,OAAO,CAAC;IAEf;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,GAAG,CAAC;CACrB;AAED,MAAM,CAAC,OAAO,UAAU,wBAAwB,CAAC,OAAO,EAAE,6BAA6B,GAAG,GAAG,CAAC,OAAO,CAyEpG"}
|