@selfcommunity/react-ui 0.7.50-events.41 → 0.7.50-events.44
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/AccountChangeMailValidation/AccountChangeMailValidation.js +3 -8
- package/lib/cjs/components/AccountDataPortability/AccountDataPortability.js +16 -25
- package/lib/cjs/components/AccountDataPortabilityButton/AccountDataPortabilityButton.js +3 -6
- package/lib/cjs/components/AccountDelete/AccountDelete.js +16 -23
- package/lib/cjs/components/AccountDeleteButton/AccountDeleteButton.js +3 -6
- package/lib/cjs/components/AccountRecover/AccountRecover.js +8 -12
- package/lib/cjs/components/AccountReset/AccountReset.js +3 -12
- package/lib/cjs/components/AccountVerify/AccountVerify.js +3 -8
- package/lib/cjs/components/BottomNavigation/BottomNavigation.js +19 -20
- package/lib/cjs/components/BroadcastMessages/BroadcastMessages.js +3 -10
- package/lib/cjs/components/BroadcastMessages/Message.js +6 -23
- package/lib/cjs/components/BroadcastMessages/Skeleton.js +3 -15
- package/lib/cjs/components/Categories/Categories.js +5 -10
- package/lib/cjs/components/Categories/Skeleton.js +2 -4
- package/lib/cjs/components/CategoriesPopularWidget/CategoriesPopularWidget.js +5 -17
- package/lib/cjs/components/CategoriesPopularWidget/Skeleton.js +2 -2
- package/lib/cjs/components/CategoriesSuggestionWidget/CategoriesSuggestionWidget.js +5 -17
- package/lib/cjs/components/CategoriesSuggestionWidget/Skeleton.js +2 -5
- package/lib/cjs/components/Category/Category.js +4 -4
- package/lib/cjs/components/Category/Skeleton.js +2 -3
- package/lib/cjs/components/CategoryAutocomplete/CategoryAutocomplete.js +6 -9
- package/lib/cjs/components/CategoryFollowButton/CategoryFollowButton.js +3 -2
- package/lib/cjs/components/CategoryFollowersButton/CategoryFollowersButton.js +3 -8
- package/lib/cjs/components/CategoryHeader/CategoryHeader.js +3 -12
- package/lib/cjs/components/CategoryHeader/Skeleton.js +2 -7
- package/lib/cjs/components/CategoryTrendingFeedWidget/CategoryTrendingFeedWidget.js +7 -19
- package/lib/cjs/components/CategoryTrendingFeedWidget/Skeleton.js +2 -4
- package/lib/cjs/components/CategoryTrendingUsersWidget/CategoryTrendingUsersWidget.js +5 -17
- package/lib/cjs/components/CategoryTrendingUsersWidget/Skeleton.js +2 -5
- package/lib/cjs/components/ChangeCover/ChangeCover.js +18 -41
- package/lib/cjs/components/ChangeGroupCover/ChangeGroupCover.js +4 -6
- package/lib/cjs/components/ChangeGroupPicture/ChangeGroupPicture.js +4 -6
- package/lib/cjs/components/ChangePicture/ChangePicture.js +3 -4
- package/lib/cjs/components/ChangePicture/ChangePictureDialog/ChangePictureDialog.js +10 -22
- package/lib/cjs/components/CommentObject/CommentObject.js +11 -37
- package/lib/cjs/components/CommentObject/Skeleton.js +2 -6
- package/lib/cjs/components/CommentObjectReply/CommentObjectReply.js +3 -12
- package/lib/cjs/components/CommentsFeedObject/CommentsFeedObject.js +8 -14
- package/lib/cjs/components/CommentsFeedObject/Skeleton.js +2 -3
- package/lib/cjs/components/CommentsObject/CommentsObject.js +27 -48
- package/lib/cjs/components/CommentsObject/Skeleton.js +2 -2
- package/lib/cjs/components/Composer/Attributes/Attributes.js +5 -8
- package/lib/cjs/components/Composer/Composer.js +24 -46
- package/lib/cjs/components/Composer/Content/ContentDiscussion/ContentDiscussion.js +8 -11
- package/lib/cjs/components/Composer/Content/ContentPoll/ContentPoll.js +9 -28
- package/lib/cjs/components/Composer/Content/ContentPost/ContentPost.js +3 -5
- package/lib/cjs/components/Composer/Layer/AudienceLayer/AudienceLayer.js +13 -31
- package/lib/cjs/components/Composer/Layer/CategoryLayer/CategoryLayer.js +2 -10
- package/lib/cjs/components/Composer/Layer/CloseLayer/CloseLayer.js +2 -16
- package/lib/cjs/components/Composer/Layer/LocationLayer/LocationLayer.js +2 -10
- package/lib/cjs/components/Composer/Skeleton.js +2 -3
- package/lib/cjs/components/Composer/TypeSwitchButtonGroup/TypeSwitchButtonGroup.js +3 -8
- package/lib/cjs/components/ComposerIconButton/ComposerIconButton.js +5 -8
- package/lib/cjs/components/ConnectionUserButton/ConnectionUserButton.js +2 -1
- package/lib/cjs/components/ConsentSolution/ConsentSolution.js +9 -58
- package/lib/cjs/components/ConsentSolution/Skeleton.js +3 -16
- package/lib/cjs/components/ConsentSolutionButton/ConsentSolutionButton.js +2 -4
- package/lib/cjs/components/CreateEventButton/CreateEventButton.js +2 -3
- package/lib/cjs/components/CreateGroupButton/CreateGroupButton.js +3 -4
- package/lib/cjs/components/CustomAdv/CustomAdv.js +5 -6
- package/lib/cjs/components/CustomAdv/Skeleton.js +2 -3
- package/lib/cjs/components/EditEventButton/EditEventButton.js +2 -3
- package/lib/cjs/components/EditGroupButton/EditGroupButton.js +2 -3
- package/lib/cjs/components/Editor/Editor.js +3 -21
- package/lib/cjs/components/Editor/Skeleton.js +2 -3
- package/lib/cjs/components/Editor/nodes/ImageNode.js +5 -6
- package/lib/cjs/components/Editor/plugins/AutoLinkPlugin.js +2 -11
- package/lib/cjs/components/Editor/plugins/EmojiPlugin.js +12 -15
- package/lib/cjs/components/Editor/plugins/FloatingLinkPlugin.js +7 -13
- package/lib/cjs/components/Editor/plugins/HashtagPlugin.js +11 -11
- package/lib/cjs/components/Editor/plugins/ImagePlugin.js +9 -10
- package/lib/cjs/components/Editor/plugins/LexicalRichTextPlugin.js +2 -12
- package/lib/cjs/components/Editor/plugins/MentionsPlugin.js +11 -16
- package/lib/cjs/components/Editor/plugins/OnChangePlugin.js +2 -3
- package/lib/cjs/components/Editor/plugins/ToolbarPlugin.js +9 -40
- package/lib/cjs/components/Editor/shared/useDecorators.js +2 -4
- package/lib/cjs/components/Event/Event.js +3 -10
- package/lib/cjs/components/Event/Skeleton.js +2 -8
- package/lib/cjs/components/EventForm/EventAddress.js +6 -14
- package/lib/cjs/components/EventForm/EventForm.js +46 -86
- package/lib/cjs/components/EventForm/UploadEventCover.js +4 -6
- package/lib/cjs/components/EventHeader/EventHeader.js +36 -52
- package/lib/cjs/components/EventHeader/Skeleton.js +2 -12
- package/lib/cjs/components/EventInfoWidget/EventInfoWidget.js +11 -13
- package/lib/cjs/components/EventInfoWidget/Skeleton.d.ts +1 -0
- package/lib/cjs/components/EventInfoWidget/Skeleton.js +20 -0
- package/lib/cjs/components/EventInfoWidget/index.d.ts +2 -1
- package/lib/cjs/components/EventInfoWidget/index.js +3 -1
- package/lib/cjs/components/EventInviteButton/EventInviteButton.js +4 -24
- package/lib/cjs/components/EventLocationWidget/EventLocationWidget.js +8 -16
- package/lib/cjs/components/EventLocationWidget/Skeleton.js +2 -8
- package/lib/cjs/components/EventPartecipantsButton/EventPartecipantsButton.d.ts +46 -0
- package/lib/cjs/components/EventPartecipantsButton/EventPartecipantsButton.js +130 -0
- package/lib/cjs/components/EventPartecipantsButton/index.d.ts +3 -0
- package/lib/cjs/components/EventPartecipantsButton/index.js +5 -0
- package/lib/cjs/components/EventSubscribeButton/EventSubscribeButton.js +12 -15
- package/lib/cjs/components/Events/Events.js +25 -53
- package/lib/cjs/components/Events/Skeleton.js +2 -4
- package/lib/cjs/components/Feed/Feed.js +11 -29
- package/lib/cjs/components/Feed/Skeleton.js +3 -12
- package/lib/cjs/components/FeedObject/Actions/Actions.js +2 -8
- package/lib/cjs/components/FeedObject/Actions/Comment/Comment.js +5 -11
- package/lib/cjs/components/FeedObject/Actions/Follow/Follow.js +6 -6
- package/lib/cjs/components/FeedObject/Actions/Share/Share.js +29 -60
- package/lib/cjs/components/FeedObject/Actions/Share/SharesDialog/SharesDialog.js +3 -5
- package/lib/cjs/components/FeedObject/Actions/Vote/Vote.js +2 -5
- package/lib/cjs/components/FeedObject/Activities/Activities.js +9 -10
- package/lib/cjs/components/FeedObject/Activities/ActivitiesMenu/ActivitiesMenu.js +23 -37
- package/lib/cjs/components/FeedObject/Activities/RelevantActivities/CommentActivity/CommentActivity.js +18 -20
- package/lib/cjs/components/FeedObject/Activities/RelevantActivities/FollowActivity/FollowActivity.js +5 -7
- package/lib/cjs/components/FeedObject/Activities/RelevantActivities/PollVoteActivity/PollVoteActivity.js +5 -7
- package/lib/cjs/components/FeedObject/Activities/RelevantActivities/RelevantActivities.js +7 -12
- package/lib/cjs/components/FeedObject/Activities/RelevantActivities/VoteUpActivity/VoteUpActivity.js +5 -7
- package/lib/cjs/components/FeedObject/Contributors/Contributors.js +3 -13
- package/lib/cjs/components/FeedObject/Contributors/Skeleton.js +2 -6
- package/lib/cjs/components/FeedObject/FeedObject.js +23 -110
- package/lib/cjs/components/FeedObject/Poll/Choice/Choice.js +3 -8
- package/lib/cjs/components/FeedObject/Poll/Poll.js +5 -21
- package/lib/cjs/components/FeedObject/Skeleton.js +4 -16
- package/lib/cjs/components/FeedObjectMediaPreview/FeedObjectMediaPreview.js +5 -6
- package/lib/cjs/components/FeedUpdatesWidget/FeedUpdatesWidget.js +5 -8
- package/lib/cjs/components/FeedUpdatesWidget/Skeleton.js +2 -2
- package/lib/cjs/components/FollowUserButton/FollowUserButton.js +5 -4
- package/lib/cjs/components/Footer/Footer.js +4 -7
- package/lib/cjs/components/Footer/Skeleton.js +2 -4
- package/lib/cjs/components/FriendshipUserButton/FriendshipUserButton.js +9 -8
- package/lib/cjs/components/Group/Group.js +7 -13
- package/lib/cjs/components/Group/Skeleton.js +2 -3
- package/lib/cjs/components/GroupAutocomplete/GroupAutocomplete.js +5 -8
- package/lib/cjs/components/GroupForm/GroupForm.js +36 -75
- package/lib/cjs/components/GroupHeader/GroupHeader.js +6 -34
- package/lib/cjs/components/GroupHeader/Skeleton.js +2 -12
- package/lib/cjs/components/GroupInfoWidget/GroupInfoWidget.js +24 -54
- package/lib/cjs/components/GroupInfoWidget/Skeleton.js +2 -3
- package/lib/cjs/components/GroupInviteButton/GroupInviteButton.js +4 -24
- package/lib/cjs/components/GroupInvitedWidget/GroupInvitedWidget.js +5 -18
- package/lib/cjs/components/GroupInvitedWidget/Skeleton.js +2 -3
- package/lib/cjs/components/GroupMembersButton/GroupMembersButton.js +3 -8
- package/lib/cjs/components/GroupMembersWidget/GroupMembersWidget.js +11 -28
- package/lib/cjs/components/GroupMembersWidget/Skeleton.js +2 -3
- package/lib/cjs/components/GroupRequestsWidget/GroupRequestsWidget.js +5 -16
- package/lib/cjs/components/GroupRequestsWidget/Skeleton.js +2 -3
- package/lib/cjs/components/GroupSettingsIconButton/GroupSettingsIconButton.js +13 -21
- package/lib/cjs/components/GroupSubscribeButton/GroupSubscribeButton.js +8 -7
- package/lib/cjs/components/Groups/Groups.js +10 -23
- package/lib/cjs/components/Groups/Skeleton.js +2 -4
- package/lib/cjs/components/Incubator/Incubator.js +8 -28
- package/lib/cjs/components/Incubator/Skeleton.js +2 -20
- package/lib/cjs/components/IncubatorDetail/IncubatorDetail.js +4 -46
- package/lib/cjs/components/IncubatorListWidget/CreateIncubatorDialog/CreateIncubatorDialog.js +5 -12
- package/lib/cjs/components/IncubatorListWidget/IncubatorListWidget.js +8 -32
- package/lib/cjs/components/IncubatorListWidget/Skeleton.js +2 -4
- package/lib/cjs/components/IncubatorSubscribeButton/IncubatorSubscribeButton.js +3 -2
- package/lib/cjs/components/IncubatorSuggestionWidget/IncubatorSuggestionWidget.js +5 -18
- package/lib/cjs/components/IncubatorSuggestionWidget/Skeleton.js +2 -4
- package/lib/cjs/components/InlineComposerWidget/InlineComposerWidget.js +5 -11
- package/lib/cjs/components/InlineComposerWidget/Skeleton.js +2 -7
- package/lib/cjs/components/LocationAutocomplete/LocationAutocomplete.js +6 -7
- package/lib/cjs/components/LoyaltyProgramWidget/LoyaltyProgramWidget.js +5 -13
- package/lib/cjs/components/LoyaltyProgramWidget/Skeleton.js +2 -11
- package/lib/cjs/components/MyEventsWidget/MyEventsWidget.d.ts +19 -0
- package/lib/cjs/components/MyEventsWidget/MyEventsWidget.js +123 -0
- package/lib/cjs/components/MyEventsWidget/Skeleton.d.ts +1 -0
- package/lib/cjs/components/MyEventsWidget/Skeleton.js +48 -0
- package/lib/cjs/components/MyEventsWidget/constants.d.ts +1 -0
- package/lib/cjs/components/MyEventsWidget/constants.js +4 -0
- package/lib/cjs/components/MyEventsWidget/index.d.ts +4 -0
- package/lib/cjs/components/MyEventsWidget/index.js +8 -0
- package/lib/cjs/components/NavigationMenuIconButton/DefaultDrawerContent.js +3 -11
- package/lib/cjs/components/NavigationMenuIconButton/DefaultHeaderContent.js +3 -4
- package/lib/cjs/components/NavigationMenuIconButton/NavigationMenuIconButton.js +4 -13
- package/lib/cjs/components/NavigationSettingsIconButton/NavigationSettingsIconButton.js +35 -75
- package/lib/cjs/components/NavigationToolbar/NavigationToolbar.js +14 -51
- package/lib/cjs/components/NavigationToolbar/NotificationMenu.js +2 -5
- package/lib/cjs/components/NavigationToolbar/Skeleton.js +2 -5
- package/lib/cjs/components/NavigationToolbarMobile/NavigationToolbarMobile.js +11 -27
- package/lib/cjs/components/NavigationToolbarMobile/Skeleton.js +2 -3
- package/lib/cjs/components/Notification/CollapsedFor/CollapsedFor.js +2 -15
- package/lib/cjs/components/Notification/Comment/Comment.js +11 -27
- package/lib/cjs/components/Notification/Contribution/Contribution.js +11 -28
- package/lib/cjs/components/Notification/ContributionFollow/ContributionFollow.js +4 -19
- package/lib/cjs/components/Notification/DeletedFor/DeletedFor.js +2 -17
- package/lib/cjs/components/Notification/Group/Group.js +17 -30
- package/lib/cjs/components/Notification/IncubatorApproved/IncubatorApproved.js +8 -16
- package/lib/cjs/components/Notification/KindlyNoticeFlag/KindlyNoticeFlag.js +2 -9
- package/lib/cjs/components/Notification/KindlyNoticeFor/KindlyNoticeFor.js +4 -16
- package/lib/cjs/components/Notification/Mention/Mention.js +7 -22
- package/lib/cjs/components/Notification/Notification.js +37 -57
- package/lib/cjs/components/Notification/PrivateMessage/PrivateMessage.js +24 -47
- package/lib/cjs/components/Notification/Skeleton.js +3 -7
- package/lib/cjs/components/Notification/UndeletedFor/UndeletedFor.js +2 -16
- package/lib/cjs/components/Notification/UserBlocked/UserBlocked.js +5 -7
- package/lib/cjs/components/Notification/UserConnection/UserConnection.js +5 -15
- package/lib/cjs/components/Notification/UserFollow/UserFollow.js +5 -15
- package/lib/cjs/components/Notification/VoteUp/VoteUp.js +6 -19
- package/lib/cjs/components/PlatformWidget/PlatformWidget.js +20 -53
- package/lib/cjs/components/PlatformWidget/Skeleton.js +2 -3
- package/lib/cjs/components/PollSuggestionWidget/PollSnippet/PollSnippet.js +3 -12
- package/lib/cjs/components/PollSuggestionWidget/PollSnippet/Skeleton.js +2 -2
- package/lib/cjs/components/PollSuggestionWidget/PollSuggestionWidget.js +5 -17
- package/lib/cjs/components/PollSuggestionWidget/Skeleton.js +2 -6
- package/lib/cjs/components/PrivateMessageComponent/PrivateMessageComponent.js +6 -9
- package/lib/cjs/components/PrivateMessageComponent/Skeleton.js +2 -6
- package/lib/cjs/components/PrivateMessageEditor/MessageMediaUploader/index.js +16 -37
- package/lib/cjs/components/PrivateMessageEditor/PrivateMessageEditor.js +9 -18
- package/lib/cjs/components/PrivateMessageEditor/Skeleton.js +2 -3
- package/lib/cjs/components/PrivateMessageSettingsIconButton/PrivateMessageSettingsIconButton.js +9 -31
- package/lib/cjs/components/PrivateMessageSnippetItem/PrivateMessageSnippetItem.js +12 -19
- package/lib/cjs/components/PrivateMessageSnippetItem/Skeleton.js +2 -5
- package/lib/cjs/components/PrivateMessageSnippets/PrivateMessageSnippets.js +8 -16
- package/lib/cjs/components/PrivateMessageSnippets/Skeleton.js +2 -8
- package/lib/cjs/components/PrivateMessageThread/PrivateMessageThread.js +14 -35
- package/lib/cjs/components/PrivateMessageThread/Skeleton.js +2 -9
- package/lib/cjs/components/PrivateMessageThreadItem/PrivateMessageThreadItem.js +15 -33
- package/lib/cjs/components/PrivateMessageThreadItem/Skeleton.js +2 -3
- package/lib/cjs/components/RelatedFeedObjectsWidget/RelatedFeedObjectsWidget.js +6 -21
- package/lib/cjs/components/RelatedFeedObjectsWidget/Skeleton.js +2 -3
- package/lib/cjs/components/SearchAutocomplete/SearchAutocomplete.js +5 -8
- package/lib/cjs/components/SearchDialog/SearchDialog.js +2 -4
- package/lib/cjs/components/Skeleton/AvatarGroupSkeleton.js +2 -3
- package/lib/cjs/components/Skeleton/GenericSkeleton.js +2 -6
- package/lib/cjs/components/SnippetNotifications/Skeleton.js +3 -3
- package/lib/cjs/components/SnippetNotifications/SnippetNotifications.js +23 -28
- package/lib/cjs/components/ToastNotifications/Skeleton.js +2 -3
- package/lib/cjs/components/ToastNotifications/ToastNotifications.js +16 -15
- package/lib/cjs/components/User/Skeleton.js +2 -3
- package/lib/cjs/components/User/User.js +7 -15
- package/lib/cjs/components/UserActionIconButton/UserActionIconButton.js +16 -31
- package/lib/cjs/components/UserConnectionsRequestsSentWidget/Skeleton.js +2 -3
- package/lib/cjs/components/UserConnectionsRequestsSentWidget/UserConnectionsRequestsSentWidget.js +5 -17
- package/lib/cjs/components/UserConnectionsRequestsWidget/Skeleton.js +2 -3
- package/lib/cjs/components/UserConnectionsRequestsWidget/UserConnectionsRequestsWidget.js +5 -17
- package/lib/cjs/components/UserConnectionsWidget/Skeleton.js +2 -3
- package/lib/cjs/components/UserConnectionsWidget/UserConnectionsWidget.js +5 -17
- package/lib/cjs/components/UserCounters/UserCounters.js +19 -28
- package/lib/cjs/components/UserFollowedCategoriesWidget/Skeleton.js +2 -2
- package/lib/cjs/components/UserFollowedCategoriesWidget/UserFollowedCategoriesWidget.js +5 -20
- package/lib/cjs/components/UserFollowedUsersWidget/Skeleton.js +2 -3
- package/lib/cjs/components/UserFollowedUsersWidget/UserFollowedUsersWidget.js +5 -17
- package/lib/cjs/components/UserFollowersWidget/Skeleton.js +2 -3
- package/lib/cjs/components/UserFollowersWidget/UserFollowersWidget.js +5 -17
- package/lib/cjs/components/UserInfo/Skeleton.js +2 -6
- package/lib/cjs/components/UserInfo/UserInfo.js +13 -14
- package/lib/cjs/components/UserInfoDialog/UserInfoDialog.js +3 -5
- package/lib/cjs/components/UserProfileBlocked/UserProfileBlocked.js +4 -11
- package/lib/cjs/components/UserProfileEdit/Section/Account.js +3 -13
- package/lib/cjs/components/UserProfileEdit/Section/AccountCredentials.js +15 -37
- package/lib/cjs/components/UserProfileEdit/Section/PublicInfo.js +15 -25
- package/lib/cjs/components/UserProfileEdit/Section/Settings.js +7 -37
- package/lib/cjs/components/UserProfileEdit/Section/SettingsSkeleton.js +2 -5
- package/lib/cjs/components/UserProfileEdit/Skeleton.js +2 -6
- package/lib/cjs/components/UserProfileEdit/UserProfileEdit.js +2 -9
- package/lib/cjs/components/UserProfileHeader/Skeleton.js +2 -13
- package/lib/cjs/components/UserProfileHeader/UserProfileHeader.js +4 -21
- package/lib/cjs/components/UserSocialAssociation/UserSocialAssociation.js +2 -16
- package/lib/cjs/components/UserSubscribedGroupsWidget/Skeleton.js +2 -6
- package/lib/cjs/components/UserSubscribedGroupsWidget/UserSubscribedGroupsWidget.js +7 -22
- package/lib/cjs/components/UserSuggestionWidget/Skeleton.js +2 -5
- package/lib/cjs/components/UserSuggestionWidget/UserSuggestionWidget.js +5 -17
- package/lib/cjs/components/VoteAudienceButton/VoteAudienceButton.js +9 -23
- package/lib/cjs/components/VoteButton/VoteButton.js +9 -15
- package/lib/cjs/components/Widget/index.js +3 -2
- package/lib/cjs/index.d.ts +3 -1
- package/lib/cjs/index.js +9 -4
- package/lib/cjs/shared/AutoPlayer/index.js +6 -7
- package/lib/cjs/shared/BaseDialog/BaseDialog.js +3 -10
- package/lib/cjs/shared/BaseItem/BaseItem.js +4 -10
- package/lib/cjs/shared/BaseItemButton/BaseItemButton.js +4 -10
- package/lib/cjs/shared/Bullet/index.js +2 -1
- package/lib/cjs/shared/Calendar/index.js +6 -3
- package/lib/cjs/shared/CentralProgress/index.js +3 -4
- package/lib/cjs/shared/ConfirmDialog/ConfirmDialog.js +2 -9
- package/lib/cjs/shared/ConsentSolutionSwitch/index.js +5 -8
- package/lib/cjs/shared/ContributionActionsMenu/index.js +22 -85
- package/lib/cjs/shared/CustomSnackMessage/index.js +3 -7
- package/lib/cjs/shared/DateTimeAgo/index.js +2 -6
- package/lib/cjs/shared/EmailTextField/index.js +3 -2
- package/lib/cjs/shared/EmojiPicker/EmojiPicker.js +2 -2
- package/lib/cjs/shared/EventInfoDetails/index.js +5 -22
- package/lib/cjs/shared/HiddenPlaceholder/index.js +2 -3
- package/lib/cjs/shared/InfiniteScroll/index.js +8 -19
- package/lib/cjs/shared/InfiniteScroll/stories/InfiniteScrollWithHeight.js +3 -8
- package/lib/cjs/shared/InfiniteScroll/stories/PullDownToRefreshInfScroll.js +3 -7
- package/lib/cjs/shared/InfiniteScroll/stories/ScrollableTargetFixedInfScroll.js +13 -18
- package/lib/cjs/shared/InfiniteScroll/stories/ScrollableTargetInfScroll.js +3 -8
- package/lib/cjs/shared/InfiniteScroll/stories/ScrolleableTop.js +6 -11
- package/lib/cjs/shared/InfiniteScroll/stories/WindowInfiniteScrollComponent.js +3 -6
- package/lib/cjs/shared/LanguageSwitcher/index.js +3 -5
- package/lib/cjs/shared/Lightbox/Lightbox.js +4 -3
- package/lib/cjs/shared/MarkRead/MarkRead.js +3 -3
- package/lib/cjs/shared/Media/File/DisplayComponent.js +13 -42
- package/lib/cjs/shared/Media/File/Lightbox/index.js +5 -5
- package/lib/cjs/shared/Media/File/PreviewComponent.js +5 -9
- package/lib/cjs/shared/Media/File/TriggerButton.js +14 -25
- package/lib/cjs/shared/Media/File/asUploadButton.js +3 -2
- package/lib/cjs/shared/Media/Link/DisplayComponent.js +8 -15
- package/lib/cjs/shared/Media/Link/LayerComponent.js +2 -11
- package/lib/cjs/shared/Media/Link/PreviewComponent.js +2 -4
- package/lib/cjs/shared/Media/Link/TriggerButton.js +2 -3
- package/lib/cjs/shared/Media/Link/UrlTextField/index.js +5 -7
- package/lib/cjs/shared/Media/Share/DisplayComponent.js +3 -3
- package/lib/cjs/shared/MetadataField/MetadataField.js +8 -7
- package/lib/cjs/shared/NewChip/NewChip.js +2 -2
- package/lib/cjs/shared/NotificationItem/NotificationItem.js +3 -12
- package/lib/cjs/shared/PasswordTextField/index.js +4 -6
- package/lib/cjs/shared/PhoneTextField/index.js +3 -2
- package/lib/cjs/shared/ScrollContainer/index.js +2 -2
- package/lib/cjs/shared/StickyBox/index.js +6 -5
- package/lib/cjs/shared/TagChip/index.js +2 -2
- package/lib/cjs/shared/Tags/index.js +11 -23
- package/lib/cjs/shared/UrlTextField/index.js +3 -2
- package/lib/cjs/shared/UserAvatar/UserAvatar.js +3 -2
- package/lib/cjs/shared/UserDeletedSnackBar/UserDeletedSnackBar.js +3 -5
- package/lib/cjs/shared/UsernameTextField/index.js +3 -2
- package/lib/cjs/shared/VirtualizedScroller/VirtualScrollerChild.js +2 -2
- package/lib/cjs/shared/VirtualizedScroller/VirtualizedScroller.js +3 -2
- package/lib/cjs/utils/contribution.js +3 -4
- package/lib/cjs/utils/errors.js +3 -4
- package/lib/esm/components/AccountChangeMailValidation/AccountChangeMailValidation.js +3 -8
- package/lib/esm/components/AccountDataPortability/AccountDataPortability.js +16 -25
- package/lib/esm/components/AccountDataPortabilityButton/AccountDataPortabilityButton.js +3 -6
- package/lib/esm/components/AccountDelete/AccountDelete.js +16 -23
- package/lib/esm/components/AccountDeleteButton/AccountDeleteButton.js +3 -6
- package/lib/esm/components/AccountRecover/AccountRecover.js +8 -12
- package/lib/esm/components/AccountReset/AccountReset.js +3 -12
- package/lib/esm/components/AccountVerify/AccountVerify.js +3 -8
- package/lib/esm/components/BottomNavigation/BottomNavigation.js +19 -20
- package/lib/esm/components/BroadcastMessages/BroadcastMessages.js +3 -10
- package/lib/esm/components/BroadcastMessages/Message.js +6 -23
- package/lib/esm/components/BroadcastMessages/Skeleton.js +3 -15
- package/lib/esm/components/Categories/Categories.js +5 -10
- package/lib/esm/components/Categories/Skeleton.js +2 -4
- package/lib/esm/components/CategoriesPopularWidget/CategoriesPopularWidget.js +5 -17
- package/lib/esm/components/CategoriesPopularWidget/Skeleton.js +2 -2
- package/lib/esm/components/CategoriesSuggestionWidget/CategoriesSuggestionWidget.js +5 -17
- package/lib/esm/components/CategoriesSuggestionWidget/Skeleton.js +2 -5
- package/lib/esm/components/Category/Category.js +4 -4
- package/lib/esm/components/Category/Skeleton.js +2 -3
- package/lib/esm/components/CategoryAutocomplete/CategoryAutocomplete.js +6 -9
- package/lib/esm/components/CategoryFollowButton/CategoryFollowButton.js +3 -2
- package/lib/esm/components/CategoryFollowersButton/CategoryFollowersButton.js +3 -8
- package/lib/esm/components/CategoryHeader/CategoryHeader.js +3 -12
- package/lib/esm/components/CategoryHeader/Skeleton.js +2 -7
- package/lib/esm/components/CategoryTrendingFeedWidget/CategoryTrendingFeedWidget.js +7 -19
- package/lib/esm/components/CategoryTrendingFeedWidget/Skeleton.js +2 -4
- package/lib/esm/components/CategoryTrendingUsersWidget/CategoryTrendingUsersWidget.js +5 -17
- package/lib/esm/components/CategoryTrendingUsersWidget/Skeleton.js +2 -5
- package/lib/esm/components/ChangeCover/ChangeCover.js +18 -41
- package/lib/esm/components/ChangeGroupCover/ChangeGroupCover.js +4 -6
- package/lib/esm/components/ChangeGroupPicture/ChangeGroupPicture.js +4 -6
- package/lib/esm/components/ChangePicture/ChangePicture.js +3 -4
- package/lib/esm/components/ChangePicture/ChangePictureDialog/ChangePictureDialog.js +10 -22
- package/lib/esm/components/CommentObject/CommentObject.js +11 -37
- package/lib/esm/components/CommentObject/Skeleton.js +2 -6
- package/lib/esm/components/CommentObjectReply/CommentObjectReply.js +3 -12
- package/lib/esm/components/CommentsFeedObject/CommentsFeedObject.js +8 -14
- package/lib/esm/components/CommentsFeedObject/Skeleton.js +2 -2
- package/lib/esm/components/CommentsObject/CommentsObject.js +27 -48
- package/lib/esm/components/CommentsObject/Skeleton.js +2 -2
- package/lib/esm/components/Composer/Attributes/Attributes.js +5 -8
- package/lib/esm/components/Composer/Composer.js +24 -46
- package/lib/esm/components/Composer/Content/ContentDiscussion/ContentDiscussion.js +8 -11
- package/lib/esm/components/Composer/Content/ContentPoll/ContentPoll.js +9 -28
- package/lib/esm/components/Composer/Content/ContentPost/ContentPost.js +3 -5
- package/lib/esm/components/Composer/Layer/AudienceLayer/AudienceLayer.js +13 -31
- package/lib/esm/components/Composer/Layer/CategoryLayer/CategoryLayer.js +2 -10
- package/lib/esm/components/Composer/Layer/CloseLayer/CloseLayer.js +2 -16
- package/lib/esm/components/Composer/Layer/LocationLayer/LocationLayer.js +2 -10
- package/lib/esm/components/Composer/Skeleton.js +2 -3
- package/lib/esm/components/Composer/TypeSwitchButtonGroup/TypeSwitchButtonGroup.js +3 -8
- package/lib/esm/components/ComposerIconButton/ComposerIconButton.js +5 -8
- package/lib/esm/components/ConnectionUserButton/ConnectionUserButton.js +2 -1
- package/lib/esm/components/ConsentSolution/ConsentSolution.js +9 -58
- package/lib/esm/components/ConsentSolution/Skeleton.js +3 -16
- package/lib/esm/components/ConsentSolutionButton/ConsentSolutionButton.js +2 -4
- package/lib/esm/components/CreateEventButton/CreateEventButton.js +2 -3
- package/lib/esm/components/CreateGroupButton/CreateGroupButton.js +3 -4
- package/lib/esm/components/CustomAdv/CustomAdv.js +5 -6
- package/lib/esm/components/CustomAdv/Skeleton.js +2 -2
- package/lib/esm/components/EditEventButton/EditEventButton.js +2 -3
- package/lib/esm/components/EditGroupButton/EditGroupButton.js +2 -3
- package/lib/esm/components/Editor/Editor.js +3 -21
- package/lib/esm/components/Editor/Skeleton.js +2 -2
- package/lib/esm/components/Editor/nodes/ImageNode.js +5 -5
- package/lib/esm/components/Editor/plugins/AutoLinkPlugin.js +2 -10
- package/lib/esm/components/Editor/plugins/EmojiPlugin.js +12 -15
- package/lib/esm/components/Editor/plugins/FloatingLinkPlugin.js +7 -13
- package/lib/esm/components/Editor/plugins/HashtagPlugin.js +11 -11
- package/lib/esm/components/Editor/plugins/ImagePlugin.js +9 -10
- package/lib/esm/components/Editor/plugins/LexicalRichTextPlugin.js +2 -12
- package/lib/esm/components/Editor/plugins/MentionsPlugin.js +11 -16
- package/lib/esm/components/Editor/plugins/OnChangePlugin.js +2 -2
- package/lib/esm/components/Editor/plugins/ToolbarPlugin.js +9 -40
- package/lib/esm/components/Editor/shared/useDecorators.js +2 -3
- package/lib/esm/components/Event/Event.js +3 -10
- package/lib/esm/components/Event/Skeleton.js +2 -8
- package/lib/esm/components/EventForm/EventAddress.js +6 -14
- package/lib/esm/components/EventForm/EventForm.js +46 -86
- package/lib/esm/components/EventForm/UploadEventCover.js +4 -6
- package/lib/esm/components/EventHeader/EventHeader.js +36 -52
- package/lib/esm/components/EventHeader/Skeleton.js +2 -12
- package/lib/esm/components/EventInfoWidget/EventInfoWidget.js +11 -13
- package/lib/esm/components/EventInfoWidget/Skeleton.d.ts +1 -0
- package/lib/esm/components/EventInfoWidget/Skeleton.js +16 -0
- package/lib/esm/components/EventInfoWidget/index.d.ts +2 -1
- package/lib/esm/components/EventInfoWidget/index.js +2 -1
- package/lib/esm/components/EventInviteButton/EventInviteButton.js +4 -24
- package/lib/esm/components/EventLocationWidget/EventLocationWidget.js +8 -16
- package/lib/esm/components/EventLocationWidget/Skeleton.js +2 -8
- package/lib/esm/components/EventPartecipantsButton/EventPartecipantsButton.d.ts +46 -0
- package/lib/esm/components/EventPartecipantsButton/EventPartecipantsButton.js +127 -0
- package/lib/esm/components/EventPartecipantsButton/index.d.ts +3 -0
- package/lib/esm/components/EventPartecipantsButton/index.js +2 -0
- package/lib/esm/components/EventSubscribeButton/EventSubscribeButton.js +12 -15
- package/lib/esm/components/Events/Events.js +25 -53
- package/lib/esm/components/Events/Skeleton.js +2 -4
- package/lib/esm/components/Feed/Feed.js +11 -29
- package/lib/esm/components/Feed/Skeleton.js +3 -12
- package/lib/esm/components/FeedObject/Actions/Actions.js +2 -8
- package/lib/esm/components/FeedObject/Actions/Comment/Comment.js +5 -11
- package/lib/esm/components/FeedObject/Actions/Follow/Follow.js +6 -6
- package/lib/esm/components/FeedObject/Actions/Share/Share.js +29 -60
- package/lib/esm/components/FeedObject/Actions/Share/SharesDialog/SharesDialog.js +3 -5
- package/lib/esm/components/FeedObject/Actions/Vote/Vote.js +2 -5
- package/lib/esm/components/FeedObject/Activities/Activities.js +9 -10
- package/lib/esm/components/FeedObject/Activities/ActivitiesMenu/ActivitiesMenu.js +23 -37
- package/lib/esm/components/FeedObject/Activities/RelevantActivities/CommentActivity/CommentActivity.js +18 -20
- package/lib/esm/components/FeedObject/Activities/RelevantActivities/FollowActivity/FollowActivity.js +5 -7
- package/lib/esm/components/FeedObject/Activities/RelevantActivities/PollVoteActivity/PollVoteActivity.js +5 -7
- package/lib/esm/components/FeedObject/Activities/RelevantActivities/RelevantActivities.js +7 -12
- package/lib/esm/components/FeedObject/Activities/RelevantActivities/VoteUpActivity/VoteUpActivity.js +5 -7
- package/lib/esm/components/FeedObject/Contributors/Contributors.js +3 -13
- package/lib/esm/components/FeedObject/Contributors/Skeleton.js +2 -6
- package/lib/esm/components/FeedObject/FeedObject.js +23 -110
- package/lib/esm/components/FeedObject/Poll/Choice/Choice.js +3 -8
- package/lib/esm/components/FeedObject/Poll/Poll.js +5 -21
- package/lib/esm/components/FeedObject/Skeleton.js +4 -16
- package/lib/esm/components/FeedObjectMediaPreview/FeedObjectMediaPreview.js +5 -6
- package/lib/esm/components/FeedUpdatesWidget/FeedUpdatesWidget.js +5 -8
- package/lib/esm/components/FeedUpdatesWidget/Skeleton.js +2 -2
- package/lib/esm/components/FollowUserButton/FollowUserButton.js +5 -4
- package/lib/esm/components/Footer/Footer.js +4 -7
- package/lib/esm/components/Footer/Skeleton.js +2 -4
- package/lib/esm/components/FriendshipUserButton/FriendshipUserButton.js +9 -8
- package/lib/esm/components/Group/Group.js +7 -13
- package/lib/esm/components/Group/Skeleton.js +2 -3
- package/lib/esm/components/GroupAutocomplete/GroupAutocomplete.js +5 -8
- package/lib/esm/components/GroupForm/GroupForm.js +36 -75
- package/lib/esm/components/GroupHeader/GroupHeader.js +6 -34
- package/lib/esm/components/GroupHeader/Skeleton.js +2 -12
- package/lib/esm/components/GroupInfoWidget/GroupInfoWidget.js +24 -54
- package/lib/esm/components/GroupInfoWidget/Skeleton.js +2 -2
- package/lib/esm/components/GroupInviteButton/GroupInviteButton.js +4 -24
- package/lib/esm/components/GroupInvitedWidget/GroupInvitedWidget.js +5 -18
- package/lib/esm/components/GroupInvitedWidget/Skeleton.js +2 -2
- package/lib/esm/components/GroupMembersButton/GroupMembersButton.js +3 -8
- package/lib/esm/components/GroupMembersWidget/GroupMembersWidget.js +11 -28
- package/lib/esm/components/GroupMembersWidget/Skeleton.js +2 -2
- package/lib/esm/components/GroupRequestsWidget/GroupRequestsWidget.js +5 -16
- package/lib/esm/components/GroupRequestsWidget/Skeleton.js +2 -2
- package/lib/esm/components/GroupSettingsIconButton/GroupSettingsIconButton.js +13 -21
- package/lib/esm/components/GroupSubscribeButton/GroupSubscribeButton.js +8 -7
- package/lib/esm/components/Groups/Groups.js +10 -23
- package/lib/esm/components/Groups/Skeleton.js +2 -4
- package/lib/esm/components/Incubator/Incubator.js +8 -28
- package/lib/esm/components/Incubator/Skeleton.js +2 -20
- package/lib/esm/components/IncubatorDetail/IncubatorDetail.js +4 -46
- package/lib/esm/components/IncubatorListWidget/CreateIncubatorDialog/CreateIncubatorDialog.js +5 -12
- package/lib/esm/components/IncubatorListWidget/IncubatorListWidget.js +8 -32
- package/lib/esm/components/IncubatorListWidget/Skeleton.js +2 -4
- package/lib/esm/components/IncubatorSubscribeButton/IncubatorSubscribeButton.js +3 -2
- package/lib/esm/components/IncubatorSuggestionWidget/IncubatorSuggestionWidget.js +5 -18
- package/lib/esm/components/IncubatorSuggestionWidget/Skeleton.js +2 -4
- package/lib/esm/components/InlineComposerWidget/InlineComposerWidget.js +5 -11
- package/lib/esm/components/InlineComposerWidget/Skeleton.js +2 -7
- package/lib/esm/components/LocationAutocomplete/LocationAutocomplete.js +6 -7
- package/lib/esm/components/LoyaltyProgramWidget/LoyaltyProgramWidget.js +5 -13
- package/lib/esm/components/LoyaltyProgramWidget/Skeleton.js +2 -11
- package/lib/esm/components/MyEventsWidget/MyEventsWidget.d.ts +19 -0
- package/lib/esm/components/MyEventsWidget/MyEventsWidget.js +120 -0
- package/lib/esm/components/MyEventsWidget/Skeleton.d.ts +1 -0
- package/lib/esm/components/MyEventsWidget/Skeleton.js +44 -0
- package/lib/esm/components/MyEventsWidget/constants.d.ts +1 -0
- package/lib/esm/components/MyEventsWidget/constants.js +1 -0
- package/lib/esm/components/MyEventsWidget/index.d.ts +4 -0
- package/lib/esm/components/MyEventsWidget/index.js +4 -0
- package/lib/esm/components/NavigationMenuIconButton/DefaultDrawerContent.js +3 -11
- package/lib/esm/components/NavigationMenuIconButton/DefaultHeaderContent.js +3 -4
- package/lib/esm/components/NavigationMenuIconButton/NavigationMenuIconButton.js +4 -13
- package/lib/esm/components/NavigationSettingsIconButton/NavigationSettingsIconButton.js +35 -75
- package/lib/esm/components/NavigationToolbar/NavigationToolbar.js +14 -51
- package/lib/esm/components/NavigationToolbar/NotificationMenu.js +2 -5
- package/lib/esm/components/NavigationToolbar/Skeleton.js +2 -5
- package/lib/esm/components/NavigationToolbarMobile/NavigationToolbarMobile.js +11 -27
- package/lib/esm/components/NavigationToolbarMobile/Skeleton.js +2 -3
- package/lib/esm/components/Notification/CollapsedFor/CollapsedFor.js +2 -15
- package/lib/esm/components/Notification/Comment/Comment.js +11 -27
- package/lib/esm/components/Notification/Contribution/Contribution.js +11 -28
- package/lib/esm/components/Notification/ContributionFollow/ContributionFollow.js +4 -19
- package/lib/esm/components/Notification/DeletedFor/DeletedFor.js +2 -17
- package/lib/esm/components/Notification/Group/Group.js +17 -30
- package/lib/esm/components/Notification/IncubatorApproved/IncubatorApproved.js +8 -16
- package/lib/esm/components/Notification/KindlyNoticeFlag/KindlyNoticeFlag.js +2 -9
- package/lib/esm/components/Notification/KindlyNoticeFor/KindlyNoticeFor.js +4 -16
- package/lib/esm/components/Notification/Mention/Mention.js +7 -22
- package/lib/esm/components/Notification/Notification.js +37 -57
- package/lib/esm/components/Notification/PrivateMessage/PrivateMessage.js +24 -47
- package/lib/esm/components/Notification/Skeleton.js +3 -7
- package/lib/esm/components/Notification/UndeletedFor/UndeletedFor.js +2 -16
- package/lib/esm/components/Notification/UserBlocked/UserBlocked.js +5 -7
- package/lib/esm/components/Notification/UserConnection/UserConnection.js +5 -15
- package/lib/esm/components/Notification/UserFollow/UserFollow.js +5 -15
- package/lib/esm/components/Notification/VoteUp/VoteUp.js +6 -19
- package/lib/esm/components/PlatformWidget/PlatformWidget.js +20 -53
- package/lib/esm/components/PlatformWidget/Skeleton.js +2 -2
- package/lib/esm/components/PollSuggestionWidget/PollSnippet/PollSnippet.js +3 -12
- package/lib/esm/components/PollSuggestionWidget/PollSnippet/Skeleton.js +2 -2
- package/lib/esm/components/PollSuggestionWidget/PollSuggestionWidget.js +5 -17
- package/lib/esm/components/PollSuggestionWidget/Skeleton.js +2 -6
- package/lib/esm/components/PrivateMessageComponent/PrivateMessageComponent.js +6 -9
- package/lib/esm/components/PrivateMessageComponent/Skeleton.js +2 -6
- package/lib/esm/components/PrivateMessageEditor/MessageMediaUploader/index.js +16 -37
- package/lib/esm/components/PrivateMessageEditor/PrivateMessageEditor.js +9 -18
- package/lib/esm/components/PrivateMessageEditor/Skeleton.js +2 -2
- package/lib/esm/components/PrivateMessageSettingsIconButton/PrivateMessageSettingsIconButton.js +9 -31
- package/lib/esm/components/PrivateMessageSnippetItem/PrivateMessageSnippetItem.js +12 -19
- package/lib/esm/components/PrivateMessageSnippetItem/Skeleton.js +2 -5
- package/lib/esm/components/PrivateMessageSnippets/PrivateMessageSnippets.js +8 -16
- package/lib/esm/components/PrivateMessageSnippets/Skeleton.js +2 -8
- package/lib/esm/components/PrivateMessageThread/PrivateMessageThread.js +14 -35
- package/lib/esm/components/PrivateMessageThread/Skeleton.js +2 -9
- package/lib/esm/components/PrivateMessageThreadItem/PrivateMessageThreadItem.js +15 -33
- package/lib/esm/components/PrivateMessageThreadItem/Skeleton.js +2 -3
- package/lib/esm/components/RelatedFeedObjectsWidget/RelatedFeedObjectsWidget.js +6 -21
- package/lib/esm/components/RelatedFeedObjectsWidget/Skeleton.js +2 -2
- package/lib/esm/components/SearchAutocomplete/SearchAutocomplete.js +5 -8
- package/lib/esm/components/SearchDialog/SearchDialog.js +2 -4
- package/lib/esm/components/Skeleton/AvatarGroupSkeleton.js +2 -3
- package/lib/esm/components/Skeleton/GenericSkeleton.js +2 -6
- package/lib/esm/components/SnippetNotifications/Skeleton.js +3 -3
- package/lib/esm/components/SnippetNotifications/SnippetNotifications.js +23 -28
- package/lib/esm/components/ToastNotifications/Skeleton.js +2 -2
- package/lib/esm/components/ToastNotifications/ToastNotifications.js +16 -15
- package/lib/esm/components/User/Skeleton.js +2 -3
- package/lib/esm/components/User/User.js +7 -15
- package/lib/esm/components/UserActionIconButton/UserActionIconButton.js +16 -31
- package/lib/esm/components/UserConnectionsRequestsSentWidget/Skeleton.js +2 -2
- package/lib/esm/components/UserConnectionsRequestsSentWidget/UserConnectionsRequestsSentWidget.js +5 -17
- package/lib/esm/components/UserConnectionsRequestsWidget/Skeleton.js +2 -2
- package/lib/esm/components/UserConnectionsRequestsWidget/UserConnectionsRequestsWidget.js +5 -17
- package/lib/esm/components/UserConnectionsWidget/Skeleton.js +2 -2
- package/lib/esm/components/UserConnectionsWidget/UserConnectionsWidget.js +5 -17
- package/lib/esm/components/UserCounters/UserCounters.js +19 -28
- package/lib/esm/components/UserFollowedCategoriesWidget/Skeleton.js +2 -2
- package/lib/esm/components/UserFollowedCategoriesWidget/UserFollowedCategoriesWidget.js +5 -20
- package/lib/esm/components/UserFollowedUsersWidget/Skeleton.js +2 -2
- package/lib/esm/components/UserFollowedUsersWidget/UserFollowedUsersWidget.js +5 -17
- package/lib/esm/components/UserFollowersWidget/Skeleton.js +2 -2
- package/lib/esm/components/UserFollowersWidget/UserFollowersWidget.js +5 -17
- package/lib/esm/components/UserInfo/Skeleton.js +2 -6
- package/lib/esm/components/UserInfo/UserInfo.js +13 -14
- package/lib/esm/components/UserInfoDialog/UserInfoDialog.js +3 -5
- package/lib/esm/components/UserProfileBlocked/UserProfileBlocked.js +4 -11
- package/lib/esm/components/UserProfileEdit/Section/Account.js +3 -13
- package/lib/esm/components/UserProfileEdit/Section/AccountCredentials.js +15 -37
- package/lib/esm/components/UserProfileEdit/Section/PublicInfo.js +15 -25
- package/lib/esm/components/UserProfileEdit/Section/Settings.js +7 -37
- package/lib/esm/components/UserProfileEdit/Section/SettingsSkeleton.js +2 -5
- package/lib/esm/components/UserProfileEdit/Skeleton.js +2 -6
- package/lib/esm/components/UserProfileEdit/UserProfileEdit.js +2 -9
- package/lib/esm/components/UserProfileHeader/Skeleton.js +2 -13
- package/lib/esm/components/UserProfileHeader/UserProfileHeader.js +4 -21
- package/lib/esm/components/UserSocialAssociation/UserSocialAssociation.js +2 -16
- package/lib/esm/components/UserSubscribedGroupsWidget/Skeleton.js +2 -6
- package/lib/esm/components/UserSubscribedGroupsWidget/UserSubscribedGroupsWidget.js +7 -22
- package/lib/esm/components/UserSuggestionWidget/Skeleton.js +2 -5
- package/lib/esm/components/UserSuggestionWidget/UserSuggestionWidget.js +5 -17
- package/lib/esm/components/VoteAudienceButton/VoteAudienceButton.js +9 -23
- package/lib/esm/components/VoteButton/VoteButton.js +9 -15
- package/lib/esm/components/Widget/index.js +3 -2
- package/lib/esm/index.d.ts +3 -1
- package/lib/esm/index.js +4 -2
- package/lib/esm/shared/AutoPlayer/index.js +5 -6
- package/lib/esm/shared/BaseDialog/BaseDialog.js +3 -10
- package/lib/esm/shared/BaseItem/BaseItem.js +4 -10
- package/lib/esm/shared/BaseItemButton/BaseItemButton.js +4 -10
- package/lib/esm/shared/Bullet/index.js +2 -1
- package/lib/esm/shared/Calendar/index.js +6 -3
- package/lib/esm/shared/CentralProgress/index.js +3 -4
- package/lib/esm/shared/ConfirmDialog/ConfirmDialog.js +2 -9
- package/lib/esm/shared/ConsentSolutionSwitch/index.js +5 -8
- package/lib/esm/shared/ContributionActionsMenu/index.js +22 -85
- package/lib/esm/shared/CustomSnackMessage/index.js +3 -7
- package/lib/esm/shared/DateTimeAgo/index.js +2 -6
- package/lib/esm/shared/EmailTextField/index.js +3 -2
- package/lib/esm/shared/EmojiPicker/EmojiPicker.js +2 -2
- package/lib/esm/shared/EventInfoDetails/index.js +5 -22
- package/lib/esm/shared/HiddenPlaceholder/index.js +2 -2
- package/lib/esm/shared/InfiniteScroll/index.js +8 -18
- package/lib/esm/shared/InfiniteScroll/stories/InfiniteScrollWithHeight.js +3 -8
- package/lib/esm/shared/InfiniteScroll/stories/PullDownToRefreshInfScroll.js +3 -7
- package/lib/esm/shared/InfiniteScroll/stories/ScrollableTargetFixedInfScroll.js +13 -18
- package/lib/esm/shared/InfiniteScroll/stories/ScrollableTargetInfScroll.js +3 -8
- package/lib/esm/shared/InfiniteScroll/stories/ScrolleableTop.js +6 -11
- package/lib/esm/shared/InfiniteScroll/stories/WindowInfiniteScrollComponent.js +3 -6
- package/lib/esm/shared/LanguageSwitcher/index.js +3 -5
- package/lib/esm/shared/Lightbox/Lightbox.js +4 -3
- package/lib/esm/shared/MarkRead/MarkRead.js +3 -3
- package/lib/esm/shared/Media/File/DisplayComponent.js +13 -42
- package/lib/esm/shared/Media/File/Lightbox/index.js +5 -5
- package/lib/esm/shared/Media/File/PreviewComponent.js +5 -9
- package/lib/esm/shared/Media/File/TriggerButton.js +14 -25
- package/lib/esm/shared/Media/File/asUploadButton.js +3 -2
- package/lib/esm/shared/Media/Link/DisplayComponent.js +8 -15
- package/lib/esm/shared/Media/Link/LayerComponent.js +2 -11
- package/lib/esm/shared/Media/Link/PreviewComponent.js +2 -4
- package/lib/esm/shared/Media/Link/TriggerButton.js +2 -3
- package/lib/esm/shared/Media/Link/UrlTextField/index.js +5 -7
- package/lib/esm/shared/Media/Share/DisplayComponent.js +3 -3
- package/lib/esm/shared/MetadataField/MetadataField.js +8 -7
- package/lib/esm/shared/NewChip/NewChip.js +2 -2
- package/lib/esm/shared/NotificationItem/NotificationItem.js +3 -12
- package/lib/esm/shared/PasswordTextField/index.js +4 -6
- package/lib/esm/shared/PhoneTextField/index.js +3 -2
- package/lib/esm/shared/ScrollContainer/index.js +2 -2
- package/lib/esm/shared/StickyBox/index.js +3 -2
- package/lib/esm/shared/TagChip/index.js +2 -2
- package/lib/esm/shared/Tags/index.js +11 -23
- package/lib/esm/shared/UrlTextField/index.js +3 -2
- package/lib/esm/shared/UserAvatar/UserAvatar.js +3 -2
- package/lib/esm/shared/UserDeletedSnackBar/UserDeletedSnackBar.js +3 -5
- package/lib/esm/shared/UsernameTextField/index.js +3 -2
- package/lib/esm/shared/VirtualizedScroller/VirtualScrollerChild.js +2 -2
- package/lib/esm/shared/VirtualizedScroller/VirtualizedScroller.js +3 -2
- package/lib/esm/utils/contribution.js +3 -3
- package/lib/esm/utils/errors.js +3 -3
- package/lib/umd/react-ui.js +1 -1
- package/package.json +7 -7
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
const material_1 = require("@mui/material");
|
|
6
|
+
const styles_1 = require("@mui/material/styles");
|
|
7
|
+
const system_1 = require("@mui/system");
|
|
8
|
+
const api_services_1 = require("@selfcommunity/api-services");
|
|
9
|
+
const react_core_1 = require("@selfcommunity/react-core");
|
|
10
|
+
const utils_1 = require("@selfcommunity/utils");
|
|
11
|
+
const react_1 = require("react");
|
|
12
|
+
const react_intl_1 = require("react-intl");
|
|
13
|
+
const Errors_1 = require("../../constants/Errors");
|
|
14
|
+
const Pagination_1 = require("../../constants/Pagination");
|
|
15
|
+
const Calendar_1 = tslib_1.__importDefault(require("../../shared/Calendar"));
|
|
16
|
+
const EventInfoDetails_1 = tslib_1.__importDefault(require("../../shared/EventInfoDetails"));
|
|
17
|
+
const HiddenPlaceholder_1 = tslib_1.__importDefault(require("../../shared/HiddenPlaceholder"));
|
|
18
|
+
const widget_1 = require("../../utils/widget");
|
|
19
|
+
const EventPartecipantsButton_1 = tslib_1.__importDefault(require("../EventPartecipantsButton"));
|
|
20
|
+
const User_1 = tslib_1.__importDefault(require("../User"));
|
|
21
|
+
const Widget_1 = tslib_1.__importDefault(require("../Widget"));
|
|
22
|
+
const constants_1 = require("./constants");
|
|
23
|
+
const Skeleton_1 = tslib_1.__importDefault(require("./Skeleton"));
|
|
24
|
+
const classes = {
|
|
25
|
+
root: `${constants_1.PREFIX}-root`,
|
|
26
|
+
titleWrapper: `${constants_1.PREFIX}-title-wrapper`,
|
|
27
|
+
content: `${constants_1.PREFIX}-content`,
|
|
28
|
+
firstDivider: `${constants_1.PREFIX}-first-divider`,
|
|
29
|
+
secondDivider: `${constants_1.PREFIX}-second-divider`,
|
|
30
|
+
actions: `${constants_1.PREFIX}-actions`,
|
|
31
|
+
actionButton: `${constants_1.PREFIX}-action-button`,
|
|
32
|
+
arrows: `${constants_1.PREFIX}-arrows`
|
|
33
|
+
};
|
|
34
|
+
const Root = (0, styles_1.styled)(Widget_1.default, {
|
|
35
|
+
name: constants_1.PREFIX,
|
|
36
|
+
slot: 'Root',
|
|
37
|
+
overridesResolver: (_props, styles) => styles.root
|
|
38
|
+
})();
|
|
39
|
+
function MyEventsWidget(inProps) {
|
|
40
|
+
var _a, _b, _c, _d, _e, _f;
|
|
41
|
+
// PROPS
|
|
42
|
+
const props = (0, system_1.useThemeProps)({
|
|
43
|
+
props: inProps,
|
|
44
|
+
name: constants_1.PREFIX
|
|
45
|
+
});
|
|
46
|
+
const { endpointQueryParams = { limit: Pagination_1.DEFAULT_PAGINATION_LIMIT, offset: Pagination_1.DEFAULT_PAGINATION_OFFSET }, cacheStrategy } = props, rest = tslib_1.__rest(props, ["endpointQueryParams", "cacheStrategy"]);
|
|
47
|
+
// STATE
|
|
48
|
+
const [state, dispatch] = (0, react_1.useReducer)(widget_1.dataWidgetReducer, {
|
|
49
|
+
isLoadingNext: false,
|
|
50
|
+
next: null,
|
|
51
|
+
cacheKey: react_core_1.SCCache.getWidgetStateCacheKey(react_core_1.SCCache.USER_EVENTS_STATE_CACHE_PREFIX_KEY),
|
|
52
|
+
cacheStrategy,
|
|
53
|
+
visibleItems: 1
|
|
54
|
+
}, widget_1.stateWidgetInitializer);
|
|
55
|
+
const [eventIndex, setEventIndex] = (0, react_1.useState)(0);
|
|
56
|
+
// CONTEXT
|
|
57
|
+
const scUserContext = (0, react_core_1.useSCUser)();
|
|
58
|
+
const scRoutingContext = (0, react_core_1.useSCRouting)();
|
|
59
|
+
/**
|
|
60
|
+
* Initialize component
|
|
61
|
+
* Fetch data only if the component is not initialized and it is not loading data
|
|
62
|
+
*/
|
|
63
|
+
const _initComponent = (0, react_1.useCallback)(() => {
|
|
64
|
+
if (!state.initialized && !state.isLoadingNext) {
|
|
65
|
+
dispatch({ type: widget_1.actionWidgetTypes.LOADING_NEXT });
|
|
66
|
+
api_services_1.EventService.getUserEvents(Object.assign({}, endpointQueryParams))
|
|
67
|
+
.then((payload) => {
|
|
68
|
+
dispatch({ type: widget_1.actionWidgetTypes.LOAD_NEXT_SUCCESS, payload: Object.assign(Object.assign({}, payload), { initialized: true }) });
|
|
69
|
+
})
|
|
70
|
+
.catch((error) => {
|
|
71
|
+
dispatch({ type: widget_1.actionWidgetTypes.LOAD_NEXT_FAILURE, payload: { errorLoadNext: error } });
|
|
72
|
+
utils_1.Logger.error(Errors_1.SCOPE_SC_UI, error);
|
|
73
|
+
});
|
|
74
|
+
}
|
|
75
|
+
}, [state.isLoadingNext, state.initialized, dispatch]);
|
|
76
|
+
const _fetchNext = (0, react_1.useCallback)(() => {
|
|
77
|
+
dispatch({ type: widget_1.actionWidgetTypes.LOADING_NEXT });
|
|
78
|
+
api_services_1.http
|
|
79
|
+
.request({
|
|
80
|
+
url: state.next,
|
|
81
|
+
method: api_services_1.Endpoints.GetUserEvents.method
|
|
82
|
+
})
|
|
83
|
+
.then((res) => {
|
|
84
|
+
dispatch({ type: widget_1.actionWidgetTypes.LOAD_NEXT_SUCCESS, payload: res.data });
|
|
85
|
+
setEventIndex((index) => index + 1);
|
|
86
|
+
})
|
|
87
|
+
.catch((error) => {
|
|
88
|
+
dispatch({ type: widget_1.actionWidgetTypes.LOAD_NEXT_FAILURE, payload: { errorLoadNext: error } });
|
|
89
|
+
utils_1.Logger.error(Errors_1.SCOPE_SC_UI, error);
|
|
90
|
+
});
|
|
91
|
+
}, [dispatch, state.next]);
|
|
92
|
+
// EFFECTS
|
|
93
|
+
(0, react_1.useEffect)(() => {
|
|
94
|
+
let _t;
|
|
95
|
+
if (scUserContext.user) {
|
|
96
|
+
_t = setTimeout(_initComponent);
|
|
97
|
+
return () => {
|
|
98
|
+
clearTimeout(_t);
|
|
99
|
+
};
|
|
100
|
+
}
|
|
101
|
+
}, [scUserContext.user]);
|
|
102
|
+
const handlePrev = (0, react_1.useCallback)(() => {
|
|
103
|
+
setEventIndex(eventIndex - 1);
|
|
104
|
+
}, [eventIndex]);
|
|
105
|
+
const handleNext = (0, react_1.useCallback)(() => {
|
|
106
|
+
if (eventIndex < state.results.length - 1) {
|
|
107
|
+
setEventIndex(eventIndex + 1);
|
|
108
|
+
}
|
|
109
|
+
else {
|
|
110
|
+
_fetchNext();
|
|
111
|
+
}
|
|
112
|
+
}, [eventIndex, state.results]);
|
|
113
|
+
// RENDER
|
|
114
|
+
if (!state.initialized || state.isLoadingNext) {
|
|
115
|
+
return (0, jsx_runtime_1.jsx)(Skeleton_1.default, {});
|
|
116
|
+
}
|
|
117
|
+
if (state.count === 0) {
|
|
118
|
+
return (0, jsx_runtime_1.jsx)(HiddenPlaceholder_1.default, {});
|
|
119
|
+
}
|
|
120
|
+
console.log('*** eventIndex ***', eventIndex);
|
|
121
|
+
return ((0, jsx_runtime_1.jsxs)(Root, Object.assign({ className: classes.root }, rest, { children: [(0, jsx_runtime_1.jsx)(system_1.Box, Object.assign({ className: classes.titleWrapper }, { children: (0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ variant: "h5" }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.myEventsWidget.title", defaultMessage: "ui.myEventsWidget.title" }) })) })), (0, jsx_runtime_1.jsxs)(system_1.Box, Object.assign({ position: "relative" }, { children: [(0, jsx_runtime_1.jsx)(material_1.CardMedia, { component: "img", height: "170px", image: ((_a = state.results[eventIndex]) === null || _a === void 0 ? void 0 : _a.emotional_image) || ((_b = state.results[eventIndex]) === null || _b === void 0 ? void 0 : _b.image_medium), alt: (_c = state.results[eventIndex]) === null || _c === void 0 ? void 0 : _c.name }), (0, jsx_runtime_1.jsx)(Calendar_1.default, { day: new Date((_d = state.results[eventIndex]) === null || _d === void 0 ? void 0 : _d.start_date).getDate() })] })), (0, jsx_runtime_1.jsxs)(material_1.CardContent, Object.assign({ className: classes.content }, { children: [(0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ variant: "h3", marginBottom: "10px" }, { children: (_e = state.results[eventIndex]) === null || _e === void 0 ? void 0 : _e.name })), (0, jsx_runtime_1.jsx)(EventInfoDetails_1.default, { event: state.results[eventIndex] }), (0, jsx_runtime_1.jsx)(User_1.default, { user: (_f = state.results[eventIndex]) === null || _f === void 0 ? void 0 : _f.managed_by, elevation: 0, secondary: (0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ variant: "caption" }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.myEventsWidget.planner", defaultMessage: "ui.myEventsWidget.planner" }) })) }), (0, jsx_runtime_1.jsx)(material_1.Divider, { className: classes.firstDivider }), (0, jsx_runtime_1.jsx)(EventPartecipantsButton_1.default, { event: state.results[eventIndex], eventId: state.results[eventIndex].id }), (0, jsx_runtime_1.jsx)(material_1.Divider, { className: classes.secondDivider })] })), (0, jsx_runtime_1.jsxs)(material_1.CardActions, Object.assign({ className: classes.actions }, { children: [(0, jsx_runtime_1.jsx)(material_1.IconButton, Object.assign({ size: "small", disabled: eventIndex === 0, className: classes.arrows, onClick: handlePrev }, { children: (0, jsx_runtime_1.jsx)(material_1.Icon, { children: "chevron_left" }) })), (0, jsx_runtime_1.jsx)(material_1.Button, Object.assign({ href: scRoutingContext.url(react_core_1.SCRoutes.EVENTS_ROUTE_NAME, {}), className: classes.actionButton }, { children: (0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ variant: "caption" }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.myEventsWidget.showAll", defaultMessage: "ui.myEventsWidget.showAll" }) })) })), (0, jsx_runtime_1.jsx)(material_1.IconButton, Object.assign({ size: "small", disabled: eventIndex === state.count - 1, className: classes.arrows, onClick: handleNext }, { children: (0, jsx_runtime_1.jsx)(material_1.Icon, { children: "chevron_right" }) }))] }))] })));
|
|
122
|
+
}
|
|
123
|
+
exports.default = MyEventsWidget;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function MyEventsWidgetSkeleton(): JSX.Element;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
const material_1 = require("@mui/material");
|
|
6
|
+
const Skeleton_1 = tslib_1.__importDefault(require("@mui/material/Skeleton"));
|
|
7
|
+
const styles_1 = require("@mui/material/styles");
|
|
8
|
+
const Widget_1 = tslib_1.__importDefault(require("../Widget"));
|
|
9
|
+
const constants_1 = require("./constants");
|
|
10
|
+
const classes = {
|
|
11
|
+
root: `${constants_1.PREFIX}-skeleton-root`,
|
|
12
|
+
calendar: `${constants_1.PREFIX}-calendar`,
|
|
13
|
+
content: `${constants_1.PREFIX}-content`,
|
|
14
|
+
firstDivider: `${constants_1.PREFIX}-first-divider`,
|
|
15
|
+
secondDivider: `${constants_1.PREFIX}-second-divider`,
|
|
16
|
+
actions: `${constants_1.PREFIX}-actions`
|
|
17
|
+
};
|
|
18
|
+
const Root = (0, styles_1.styled)(Widget_1.default, {
|
|
19
|
+
name: constants_1.PREFIX,
|
|
20
|
+
slot: 'SkeletonRoot'
|
|
21
|
+
})(({ theme }) => ({
|
|
22
|
+
[`& .${classes.calendar}`]: {
|
|
23
|
+
position: 'absolute',
|
|
24
|
+
bottom: '-36px',
|
|
25
|
+
left: '24px',
|
|
26
|
+
boxShadow: '0px 3px 8px #00000040'
|
|
27
|
+
},
|
|
28
|
+
[`& .${classes.content}`]: {
|
|
29
|
+
padding: `52px ${theme.spacing(3)} 0 !important`,
|
|
30
|
+
[`& .${classes.firstDivider}`]: {
|
|
31
|
+
marginTop: '18px',
|
|
32
|
+
marginBottom: '16px'
|
|
33
|
+
},
|
|
34
|
+
[`& .${classes.secondDivider}`]: {
|
|
35
|
+
marginTop: '16px',
|
|
36
|
+
marginBottom: '18px'
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
[`& .${classes.actions}`]: {
|
|
40
|
+
padding: `0 ${theme.spacing(3)} 18px`,
|
|
41
|
+
justifyContent: 'center',
|
|
42
|
+
gap: '56px'
|
|
43
|
+
}
|
|
44
|
+
}));
|
|
45
|
+
function MyEventsWidgetSkeleton() {
|
|
46
|
+
return ((0, jsx_runtime_1.jsxs)(Root, Object.assign({ className: classes.root }, { children: [(0, jsx_runtime_1.jsx)(material_1.Box, Object.assign({ padding: "12px 16px" }, { children: (0, jsx_runtime_1.jsx)(Skeleton_1.default, { animation: "wave", width: "141px", height: "23px" }) })), (0, jsx_runtime_1.jsxs)(material_1.Box, Object.assign({ position: "relative" }, { children: [(0, jsx_runtime_1.jsx)(Skeleton_1.default, { variant: "rectangular", animation: "wave", width: "100%", height: "170px" }), (0, jsx_runtime_1.jsx)(Skeleton_1.default, { className: classes.calendar, variant: "rounded", animation: "wave", width: "60px", height: "60px" })] })), (0, jsx_runtime_1.jsxs)(material_1.CardContent, Object.assign({ className: classes.content }, { children: [(0, jsx_runtime_1.jsx)(Skeleton_1.default, { animation: "wave", width: "26%", height: "30px" }), (0, jsx_runtime_1.jsxs)(material_1.Stack, Object.assign({ direction: "row", alignItems: "center", gap: "8px", marginBottom: "9px" }, { children: [(0, jsx_runtime_1.jsx)(Skeleton_1.default, { animation: "wave", variant: "circular", width: "21px", height: "21px" }), (0, jsx_runtime_1.jsx)(Skeleton_1.default, { animation: "wave", width: "229px", height: "20px" })] })), (0, jsx_runtime_1.jsxs)(material_1.Stack, Object.assign({ direction: "row", alignItems: "center", gap: "8px", marginBottom: "9px" }, { children: [(0, jsx_runtime_1.jsx)(Skeleton_1.default, { animation: "wave", variant: "circular", width: "21px", height: "21px" }), (0, jsx_runtime_1.jsx)(Skeleton_1.default, { animation: "wave", width: "124px", height: "20px" })] })), (0, jsx_runtime_1.jsxs)(material_1.Stack, Object.assign({ direction: "row", alignItems: "center", gap: "8px", marginBottom: "14px" }, { children: [(0, jsx_runtime_1.jsx)(Skeleton_1.default, { animation: "wave", variant: "circular", width: "21px", height: "21px" }), (0, jsx_runtime_1.jsx)(Skeleton_1.default, { animation: "wave", width: "27%", height: "20px" })] })), (0, jsx_runtime_1.jsxs)(material_1.Stack, Object.assign({ direction: "row", gap: "8px" }, { children: [(0, jsx_runtime_1.jsx)(Skeleton_1.default, { animation: "wave", variant: "circular", width: "36px", height: "36px" }), (0, jsx_runtime_1.jsxs)(material_1.Stack, Object.assign({ gap: "1px" }, { children: [(0, jsx_runtime_1.jsx)(Skeleton_1.default, { animation: "wave", width: "75px", height: "15px" }), (0, jsx_runtime_1.jsx)(Skeleton_1.default, { animation: "wave", width: "86px", height: "16px" })] }))] })), (0, jsx_runtime_1.jsx)(material_1.Divider, { className: classes.firstDivider }), (0, jsx_runtime_1.jsxs)(material_1.Stack, Object.assign({ direction: "row", gap: "8px", alignItems: "center" }, { children: [(0, jsx_runtime_1.jsx)(Skeleton_1.default, { animation: "wave", width: "68px", height: "20px" }), (0, jsx_runtime_1.jsxs)(material_1.AvatarGroup, { children: [(0, jsx_runtime_1.jsx)(Skeleton_1.default, { animation: "wave", variant: "circular", width: "24px", height: "24px" }), (0, jsx_runtime_1.jsx)(Skeleton_1.default, { animation: "wave", variant: "circular", width: "24px", height: "24px" }), (0, jsx_runtime_1.jsx)(Skeleton_1.default, { animation: "wave", variant: "circular", width: "24px", height: "24px" }), (0, jsx_runtime_1.jsx)(Skeleton_1.default, { animation: "wave", variant: "circular", width: "24px", height: "24px" })] })] })), (0, jsx_runtime_1.jsx)(material_1.Divider, { className: classes.secondDivider })] })), (0, jsx_runtime_1.jsxs)(material_1.CardActions, Object.assign({ className: classes.actions }, { children: [(0, jsx_runtime_1.jsx)(Skeleton_1.default, { animation: "wave", variant: "rounded", width: "14px", height: "14px" }), (0, jsx_runtime_1.jsx)(Skeleton_1.default, { animation: "wave", width: "52px", height: "20px" }), (0, jsx_runtime_1.jsx)(Skeleton_1.default, { animation: "wave", variant: "rounded", width: "14px", height: "14px" })] }))] })));
|
|
47
|
+
}
|
|
48
|
+
exports.default = MyEventsWidgetSkeleton;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const PREFIX = "SCMyEventsWidget";
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MyEventsWidgetSkeleton = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const MyEventsWidget_1 = tslib_1.__importDefault(require("./MyEventsWidget"));
|
|
6
|
+
const Skeleton_1 = tslib_1.__importDefault(require("./Skeleton"));
|
|
7
|
+
exports.MyEventsWidgetSkeleton = Skeleton_1.default;
|
|
8
|
+
exports.default = MyEventsWidget_1.default;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
4
5
|
const material_1 = require("@mui/material");
|
|
5
6
|
const react_core_1 = require("@selfcommunity/react-core");
|
|
6
|
-
const react_1 =
|
|
7
|
+
const react_1 = require("react");
|
|
7
8
|
const Category_1 = tslib_1.__importDefault(require("../Category"));
|
|
8
9
|
const react_intl_1 = require("react-intl");
|
|
9
10
|
const utils_1 = require("@selfcommunity/utils");
|
|
@@ -54,15 +55,6 @@ function DefaultDrawerContent(inProps) {
|
|
|
54
55
|
onTouchMove: mouseLeave
|
|
55
56
|
});
|
|
56
57
|
//order
|
|
57
|
-
return (
|
|
58
|
-
react_1.default.createElement(material_1.Typography, { variant: "subtitle1" },
|
|
59
|
-
react_1.default.createElement("span", null,
|
|
60
|
-
react_1.default.createElement(react_intl_1.FormattedMessage, { id: "ui.navigationMenuIconButton.defaultDrawerContent.category.title", defaultMessage: "ui.navigationMenuIconButton.defaultDrawerContent.category.title" })),
|
|
61
|
-
' ',
|
|
62
|
-
react_1.default.createElement(material_1.Button, { variant: "text", component: react_core_1.Link, color: "secondary", to: scRoutingContext.url(react_core_1.SCRoutes.CATEGORIES_LIST_ROUTE_NAME, {}) },
|
|
63
|
-
react_1.default.createElement(react_intl_1.FormattedMessage, { id: "ui.navigationMenuIconButton.defaultDrawerContent.category.seeAll", defaultMessage: "ui.navigationMenuIconButton.defaultDrawerContent.category.seeAll" }))),
|
|
64
|
-
categoriesOrdered.map((c, index) => (react_1.default.createElement(material_1.Zoom, { in: true, style: { transform: isHovered[c.id] && 'scale(1.05)' }, key: index },
|
|
65
|
-
react_1.default.createElement(material_1.ListItem, { key: c.id },
|
|
66
|
-
react_1.default.createElement(Category_1.default, Object.assign({ ButtonBaseProps: { component: react_core_1.Link, to: scRoutingContext.url(react_core_1.SCRoutes.CATEGORY_ROUTE_NAME, c) }, elevation: 0, category: c, actions: null }, CategoryItemProps, getMouseEvents(() => handleMouseEnter(c.id), () => handleMouseLeave(c.id))))))))));
|
|
58
|
+
return ((0, jsx_runtime_1.jsxs)(Root, Object.assign({ className: (0, classnames_1.default)(className, classes.root) }, rest, { children: [(0, jsx_runtime_1.jsxs)(material_1.Typography, Object.assign({ variant: "subtitle1" }, { children: [(0, jsx_runtime_1.jsx)("span", { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.navigationMenuIconButton.defaultDrawerContent.category.title", defaultMessage: "ui.navigationMenuIconButton.defaultDrawerContent.category.title" }) }), ' ', (0, jsx_runtime_1.jsx)(material_1.Button, Object.assign({ variant: "text", component: react_core_1.Link, color: "secondary", to: scRoutingContext.url(react_core_1.SCRoutes.CATEGORIES_LIST_ROUTE_NAME, {}) }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.navigationMenuIconButton.defaultDrawerContent.category.seeAll", defaultMessage: "ui.navigationMenuIconButton.defaultDrawerContent.category.seeAll" }) }))] })), categoriesOrdered.map((c, index) => ((0, jsx_runtime_1.jsx)(material_1.Zoom, Object.assign({ in: true, style: { transform: isHovered[c.id] && 'scale(1.05)' } }, { children: (0, jsx_runtime_1.jsx)(material_1.ListItem, { children: (0, jsx_runtime_1.jsx)(Category_1.default, Object.assign({ ButtonBaseProps: { component: react_core_1.Link, to: scRoutingContext.url(react_core_1.SCRoutes.CATEGORY_ROUTE_NAME, c) }, elevation: 0, category: c, actions: null }, CategoryItemProps, getMouseEvents(() => handleMouseEnter(c.id), () => handleMouseLeave(c.id)))) }, c.id) }), index)))] })));
|
|
67
59
|
}
|
|
68
60
|
exports.default = DefaultDrawerContent;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
4
5
|
const react_core_1 = require("@selfcommunity/react-core");
|
|
5
|
-
const react_1 =
|
|
6
|
+
const react_1 = require("react");
|
|
6
7
|
const styles_1 = require("@mui/material/styles");
|
|
7
8
|
const material_1 = require("@mui/material");
|
|
8
9
|
const classnames_1 = tslib_1.__importDefault(require("classnames"));
|
|
@@ -28,8 +29,6 @@ function DefaultHeaderContent(inProps) {
|
|
|
28
29
|
const _logo = (0, react_1.useMemo)(() => {
|
|
29
30
|
return react_core_1.SCPreferences.LOGO_NAVBAR_LOGO in scPreferences.preferences ? scPreferences.preferences[react_core_1.SCPreferences.LOGO_NAVBAR_LOGO].value : null;
|
|
30
31
|
}, [scPreferences.preferences]);
|
|
31
|
-
return (
|
|
32
|
-
react_1.default.createElement(react_core_1.Link, { to: scRoutingContext.url(react_core_1.SCRoutes.HOME_ROUTE_NAME, {}) },
|
|
33
|
-
react_1.default.createElement("img", { src: _logo, alt: "logo" }))));
|
|
32
|
+
return ((0, jsx_runtime_1.jsx)(Root, Object.assign({ className: (0, classnames_1.default)(className, classes.root) }, rest, { children: (0, jsx_runtime_1.jsx)(react_core_1.Link, Object.assign({ to: scRoutingContext.url(react_core_1.SCRoutes.HOME_ROUTE_NAME, {}) }, { children: (0, jsx_runtime_1.jsx)("img", { src: _logo, alt: "logo" }) })) })));
|
|
34
33
|
}
|
|
35
34
|
exports.default = DefaultHeaderContent;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
|
-
const
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
const react_1 = require("react");
|
|
5
6
|
const styles_1 = require("@mui/material/styles");
|
|
6
7
|
const material_1 = require("@mui/material");
|
|
7
8
|
const classnames_1 = tslib_1.__importDefault(require("classnames"));
|
|
@@ -62,7 +63,7 @@ function NavigationMenuIconButton(inProps) {
|
|
|
62
63
|
props: inProps,
|
|
63
64
|
name: PREFIX
|
|
64
65
|
});
|
|
65
|
-
const { className = null, DrawerProps = { anchor: 'left' }, drawerHeaderContent =
|
|
66
|
+
const { className = null, DrawerProps = { anchor: 'left' }, drawerHeaderContent = (0, jsx_runtime_1.jsx)(DefaultHeaderContent_1.default, {}), drawerContent = (0, jsx_runtime_1.jsx)(DefaultDrawerContent_1.default, {}), ScrollContainerProps = {} } = props, rest = tslib_1.__rest(props, ["className", "DrawerProps", "drawerHeaderContent", "drawerContent", "ScrollContainerProps"]);
|
|
66
67
|
// STATE
|
|
67
68
|
const [anchorEl, setAnchorEl] = (0, react_1.useState)(null);
|
|
68
69
|
// CONTEXT
|
|
@@ -78,16 +79,6 @@ function NavigationMenuIconButton(inProps) {
|
|
|
78
79
|
if (!preferences[react_core_1.SCPreferences.CONFIGURATIONS_CONTENT_AVAILABILITY].value && !((_a = scUserContext.user) === null || _a === void 0 ? void 0 : _a.id)) {
|
|
79
80
|
return null;
|
|
80
81
|
}
|
|
81
|
-
return (
|
|
82
|
-
react_1.default.createElement(Root, Object.assign({ className: (0, classnames_1.default)(classes.root, className) }, rest, { onClick: handleOpen }),
|
|
83
|
-
react_1.default.createElement(material_1.Icon, null, "menu")),
|
|
84
|
-
react_1.default.createElement(DrawerRoot, Object.assign({ className: classes.drawerRoot }, DrawerProps, { open: Boolean(anchorEl), onClose: handleClose }),
|
|
85
|
-
react_1.default.createElement(material_1.Box, { className: classes.drawerHeader },
|
|
86
|
-
drawerHeaderContent,
|
|
87
|
-
react_1.default.createElement(material_1.IconButton, { className: classes.drawerHeaderAction, onClick: handleClose },
|
|
88
|
-
react_1.default.createElement(material_1.Icon, null, "close"))),
|
|
89
|
-
react_1.default.createElement(material_1.Divider, null),
|
|
90
|
-
react_1.default.createElement(ScrollContainer_1.default, Object.assign({}, ScrollContainerProps),
|
|
91
|
-
react_1.default.createElement(material_1.List, { className: classes.drawerContent, onClick: handleClose }, drawerContent)))));
|
|
82
|
+
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(Root, Object.assign({ className: (0, classnames_1.default)(classes.root, className) }, rest, { onClick: handleOpen }, { children: (0, jsx_runtime_1.jsx)(material_1.Icon, { children: "menu" }) })), (0, jsx_runtime_1.jsxs)(DrawerRoot, Object.assign({ className: classes.drawerRoot }, DrawerProps, { open: Boolean(anchorEl), onClose: handleClose }, { children: [(0, jsx_runtime_1.jsxs)(material_1.Box, Object.assign({ className: classes.drawerHeader }, { children: [drawerHeaderContent, (0, jsx_runtime_1.jsx)(material_1.IconButton, Object.assign({ className: classes.drawerHeaderAction, onClick: handleClose }, { children: (0, jsx_runtime_1.jsx)(material_1.Icon, { children: "close" }) }))] })), (0, jsx_runtime_1.jsx)(material_1.Divider, {}), (0, jsx_runtime_1.jsx)(ScrollContainer_1.default, Object.assign({}, ScrollContainerProps, { children: (0, jsx_runtime_1.jsx)(material_1.List, Object.assign({ className: classes.drawerContent, onClick: handleClose }, { children: drawerContent })) }))] }))] }));
|
|
92
83
|
}
|
|
93
84
|
exports.default = NavigationMenuIconButton;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
|
-
const
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
const react_1 = require("react");
|
|
5
6
|
const styles_1 = require("@mui/material/styles");
|
|
6
7
|
const material_1 = require("@mui/material");
|
|
7
8
|
const react_core_1 = require("@selfcommunity/react-core");
|
|
@@ -108,95 +109,58 @@ function NavigationSettingsIconButton(inProps) {
|
|
|
108
109
|
const renderList = () => {
|
|
109
110
|
if (isMobile) {
|
|
110
111
|
return [
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
preferences[react_core_1.SCPreferences.CONFIGURATIONS_FOLLOW_ENABLED] && (
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
preferences[react_core_1.SCPreferences.
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
!preferences[react_core_1.SCPreferences.CONFIGURATIONS_FOLLOW_ENABLED] && (react_1.default.createElement(material_1.ListItem, { className: classes.item, key: "connections" },
|
|
121
|
-
react_1.default.createElement(material_1.ListItemButton, { component: react_core_1.Link, to: scRoutingContext.url(react_core_1.SCRoutes.USER_PROFILE_CONNECTIONS_ROUTE_NAME, scUserContext.user) },
|
|
122
|
-
react_1.default.createElement(react_intl_1.FormattedMessage, { id: "ui.navigationSettingsIconButton.connections", defaultMessage: "ui.navigationSettingsIconButton.connections" })))),
|
|
123
|
-
preferences[react_core_1.SCPreferences.ADDONS_LOYALTY_POINTS_COLLECTION] && (react_1.default.createElement(material_1.ListItem, { className: classes.item, key: "loyaltyProgram" },
|
|
124
|
-
react_1.default.createElement(material_1.ListItemButton, { component: react_core_1.Link, to: scRoutingContext.url(react_core_1.SCRoutes.LOYALTY_ROUTE_NAME, {}) },
|
|
125
|
-
react_1.default.createElement(react_intl_1.FormattedMessage, { id: "ui.navigationSettingsIconButton.loyalty", defaultMessage: "ui.navigationSettingsIconButton.loyalty" })))),
|
|
126
|
-
preferences[react_core_1.SCPreferences.CONFIGURATIONS_POST_TYPE_ENABLED] && (react_1.default.createElement(material_1.ListItem, { className: classes.item, key: "followedPosts" },
|
|
127
|
-
react_1.default.createElement(material_1.ListItemButton, { component: react_core_1.Link, to: scRoutingContext.url(react_core_1.SCRoutes.USER_PROFILE_FOLLOWED_POSTS_ROUTE_NAME, scUserContext.user) },
|
|
128
|
-
react_1.default.createElement(react_intl_1.FormattedMessage, { id: "ui.navigationSettingsIconButton.postsFollowed", defaultMessage: "ui.navigationSettingsIconButton.postsFollowed" })))),
|
|
129
|
-
preferences[react_core_1.SCPreferences.CONFIGURATIONS_DISCUSSION_TYPE_ENABLED] && (react_1.default.createElement(material_1.ListItem, { className: classes.item, key: "followedDiscussions" },
|
|
130
|
-
react_1.default.createElement(material_1.ListItemButton, { component: react_core_1.Link, to: scRoutingContext.url(react_core_1.SCRoutes.USER_PROFILE_FOLLOWED_DISCUSSIONS_ROUTE_NAME, scUserContext.user) },
|
|
131
|
-
react_1.default.createElement(react_intl_1.FormattedMessage, { id: "ui.navigationSettingsIconButton.discussionsFollowed", defaultMessage: "ui.navigationSettingsIconButton.discussionsFollowed" })))),
|
|
132
|
-
react_1.default.createElement(material_1.ListItem, { className: classes.item, key: "privateMessages" },
|
|
133
|
-
react_1.default.createElement(material_1.ListItemButton, { component: react_core_1.Link, to: scRoutingContext.url(react_core_1.SCRoutes.USER_PRIVATE_MESSAGES_ROUTE_NAME, {}) },
|
|
134
|
-
react_1.default.createElement(react_intl_1.FormattedMessage, { id: "ui.navigationSettingsIconButton.privateMessages", defaultMessage: "ui.navigationSettingsIconButton.privateMessages" }))),
|
|
135
|
-
...items.map((item, index) => (react_1.default.createElement(material_1.ListItem, { className: classes.item, key: `custom_item_${index}` },
|
|
136
|
-
react_1.default.createElement(material_1.ListItemButton, { component: react_core_1.Link, to: item.href }, item.label)))),
|
|
112
|
+
(0, jsx_runtime_1.jsx)(material_1.ListItem, Object.assign({ className: classes.item }, { children: (0, jsx_runtime_1.jsx)(material_1.ListItemButton, Object.assign({ component: react_core_1.Link, to: scRoutingContext.url(react_core_1.SCRoutes.USER_PROFILE_ROUTE_NAME, scUserContext.user) }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.navigationSettingsIconButton.profile", defaultMessage: "ui.navigationSettingsIconButton.profile" }) })) }), "profile"),
|
|
113
|
+
preferences[react_core_1.SCPreferences.CONFIGURATIONS_FOLLOW_ENABLED] && ((0, jsx_runtime_1.jsx)(material_1.ListItem, Object.assign({ className: classes.item }, { children: (0, jsx_runtime_1.jsx)(material_1.ListItemButton, Object.assign({ component: react_core_1.Link, to: scRoutingContext.url(react_core_1.SCRoutes.USER_PROFILE_FOLLOWINGS_ROUTE_NAME, scUserContext.user) }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.navigationSettingsIconButton.followings", defaultMessage: "ui.navigationSettingsIconButton.followings" }) })) }), "followings")),
|
|
114
|
+
preferences[react_core_1.SCPreferences.CONFIGURATIONS_FOLLOW_ENABLED] && ((0, jsx_runtime_1.jsx)(material_1.ListItem, Object.assign({ className: classes.item }, { children: (0, jsx_runtime_1.jsx)(material_1.ListItemButton, Object.assign({ component: react_core_1.Link, to: scRoutingContext.url(react_core_1.SCRoutes.USER_PROFILE_FOLLOWERS_ROUTE_NAME, scUserContext.user) }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.navigationSettingsIconButton.followers", defaultMessage: "ui.navigationSettingsIconButton.followers" }) })) }), "followers")),
|
|
115
|
+
!preferences[react_core_1.SCPreferences.CONFIGURATIONS_FOLLOW_ENABLED] && ((0, jsx_runtime_1.jsx)(material_1.ListItem, Object.assign({ className: classes.item }, { children: (0, jsx_runtime_1.jsx)(material_1.ListItemButton, Object.assign({ component: react_core_1.Link, to: scRoutingContext.url(react_core_1.SCRoutes.USER_PROFILE_CONNECTIONS_ROUTE_NAME, scUserContext.user) }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.navigationSettingsIconButton.connections", defaultMessage: "ui.navigationSettingsIconButton.connections" }) })) }), "connections")),
|
|
116
|
+
preferences[react_core_1.SCPreferences.ADDONS_LOYALTY_POINTS_COLLECTION] && ((0, jsx_runtime_1.jsx)(material_1.ListItem, Object.assign({ className: classes.item }, { children: (0, jsx_runtime_1.jsx)(material_1.ListItemButton, Object.assign({ component: react_core_1.Link, to: scRoutingContext.url(react_core_1.SCRoutes.LOYALTY_ROUTE_NAME, {}) }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.navigationSettingsIconButton.loyalty", defaultMessage: "ui.navigationSettingsIconButton.loyalty" }) })) }), "loyaltyProgram")),
|
|
117
|
+
preferences[react_core_1.SCPreferences.CONFIGURATIONS_POST_TYPE_ENABLED] && ((0, jsx_runtime_1.jsx)(material_1.ListItem, Object.assign({ className: classes.item }, { children: (0, jsx_runtime_1.jsx)(material_1.ListItemButton, Object.assign({ component: react_core_1.Link, to: scRoutingContext.url(react_core_1.SCRoutes.USER_PROFILE_FOLLOWED_POSTS_ROUTE_NAME, scUserContext.user) }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.navigationSettingsIconButton.postsFollowed", defaultMessage: "ui.navigationSettingsIconButton.postsFollowed" }) })) }), "followedPosts")),
|
|
118
|
+
preferences[react_core_1.SCPreferences.CONFIGURATIONS_DISCUSSION_TYPE_ENABLED] && ((0, jsx_runtime_1.jsx)(material_1.ListItem, Object.assign({ className: classes.item }, { children: (0, jsx_runtime_1.jsx)(material_1.ListItemButton, Object.assign({ component: react_core_1.Link, to: scRoutingContext.url(react_core_1.SCRoutes.USER_PROFILE_FOLLOWED_DISCUSSIONS_ROUTE_NAME, scUserContext.user) }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.navigationSettingsIconButton.discussionsFollowed", defaultMessage: "ui.navigationSettingsIconButton.discussionsFollowed" }) })) }), "followedDiscussions")),
|
|
119
|
+
(0, jsx_runtime_1.jsx)(material_1.ListItem, Object.assign({ className: classes.item }, { children: (0, jsx_runtime_1.jsx)(material_1.ListItemButton, Object.assign({ component: react_core_1.Link, to: scRoutingContext.url(react_core_1.SCRoutes.USER_PRIVATE_MESSAGES_ROUTE_NAME, {}) }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.navigationSettingsIconButton.privateMessages", defaultMessage: "ui.navigationSettingsIconButton.privateMessages" }) })) }), "privateMessages"),
|
|
120
|
+
...items.map((item, index) => ((0, jsx_runtime_1.jsx)(material_1.ListItem, Object.assign({ className: classes.item }, { children: (0, jsx_runtime_1.jsx)(material_1.ListItemButton, Object.assign({ component: react_core_1.Link, to: item.href }, { children: item.label })) }), `custom_item_${index}`))),
|
|
137
121
|
...(isAdmin
|
|
138
122
|
? [
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
react_1.default.createElement(material_1.ListItemButton, { onClick: () => fetchPlatform('') },
|
|
142
|
-
react_1.default.createElement(react_intl_1.FormattedMessage, { id: "ui.navigationSettingsIconButton.platform", defaultMessage: "ui.navigationSettingsIconButton.platform" })))
|
|
123
|
+
(0, jsx_runtime_1.jsx)(material_1.Divider, {}, "admin_divider"),
|
|
124
|
+
(0, jsx_runtime_1.jsx)(material_1.ListItem, Object.assign({ className: classes.item }, { children: (0, jsx_runtime_1.jsx)(material_1.ListItemButton, Object.assign({ onClick: () => fetchPlatform('') }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.navigationSettingsIconButton.platform", defaultMessage: "ui.navigationSettingsIconButton.platform" }) })) }), "platform")
|
|
143
125
|
]
|
|
144
126
|
: []),
|
|
145
127
|
...(isModerator || isAdmin
|
|
146
128
|
? [
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
react_1.default.createElement(material_1.ListItemButton, { onClick: () => fetchPlatform('/moderation/flags/') },
|
|
150
|
-
react_1.default.createElement(react_intl_1.FormattedMessage, { id: "ui.navigationSettingsIconButton.moderation", defaultMessage: "ui.navigationSettingsIconButton.moderation" })))
|
|
129
|
+
(0, jsx_runtime_1.jsx)(material_1.Divider, {}, "moderation_divider"),
|
|
130
|
+
(0, jsx_runtime_1.jsx)(material_1.ListItem, Object.assign({ className: classes.item }, { children: (0, jsx_runtime_1.jsx)(material_1.ListItemButton, Object.assign({ onClick: () => fetchPlatform('/moderation/flags/') }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.navigationSettingsIconButton.moderation", defaultMessage: "ui.navigationSettingsIconButton.moderation" }) })) }), "moderation")
|
|
151
131
|
]
|
|
152
132
|
: []),
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
react_1.default.createElement(material_1.Divider, { key: "divider" }),
|
|
157
|
-
react_1.default.createElement(material_1.ListItem, { className: classes.item, key: "logout" },
|
|
158
|
-
react_1.default.createElement(material_1.ListItemButton, { onClick: handleLogout },
|
|
159
|
-
react_1.default.createElement(react_intl_1.FormattedMessage, { id: "ui.navigationSettingsIconButton.logout", defaultMessage: "ui.navigationSettingsIconButton.logout" })))
|
|
133
|
+
(0, jsx_runtime_1.jsx)(material_1.ListItem, Object.assign({ className: classes.item }, { children: (0, jsx_runtime_1.jsx)(material_1.ListItemButton, Object.assign({ component: react_core_1.Link, to: scRoutingContext.url(react_core_1.SCRoutes.USER_PROFILE_SETTINGS_ROUTE_NAME, scUserContext.user) }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.navigationSettingsIconButton.settings", defaultMessage: "ui.navigationSettingsIconButton.settings" }) })) }), "settings"),
|
|
134
|
+
(0, jsx_runtime_1.jsx)(material_1.Divider, {}, "divider"),
|
|
135
|
+
(0, jsx_runtime_1.jsx)(material_1.ListItem, Object.assign({ className: classes.item }, { children: (0, jsx_runtime_1.jsx)(material_1.ListItemButton, Object.assign({ onClick: handleLogout }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.navigationSettingsIconButton.logout", defaultMessage: "ui.navigationSettingsIconButton.logout" }) })) }), "logout")
|
|
160
136
|
];
|
|
161
137
|
}
|
|
162
138
|
else {
|
|
163
139
|
return [
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
preferences[react_core_1.SCPreferences.CONFIGURATIONS_FOLLOW_ENABLED] && (
|
|
167
|
-
|
|
168
|
-
preferences[react_core_1.SCPreferences.
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
react_1.default.createElement(react_intl_1.FormattedMessage, { id: "ui.navigationSettingsIconButton.loyalty", defaultMessage: "ui.navigationSettingsIconButton.loyalty" }))),
|
|
174
|
-
preferences[react_core_1.SCPreferences.CONFIGURATIONS_POST_TYPE_ENABLED] && (react_1.default.createElement(material_1.MenuItem, { className: classes.item, key: "followedPosts", component: react_core_1.Link, to: scRoutingContext.url(react_core_1.SCRoutes.USER_PROFILE_FOLLOWED_POSTS_ROUTE_NAME, scUserContext.user) },
|
|
175
|
-
react_1.default.createElement(react_intl_1.FormattedMessage, { id: "ui.navigationSettingsIconButton.postsFollowed", defaultMessage: "ui.navigationSettingsIconButton.postsFollowed" }))),
|
|
176
|
-
preferences[react_core_1.SCPreferences.CONFIGURATIONS_DISCUSSION_TYPE_ENABLED] && (react_1.default.createElement(material_1.MenuItem, { className: classes.item, key: "followedDiscussions", component: react_core_1.Link, to: scRoutingContext.url(react_core_1.SCRoutes.USER_PROFILE_FOLLOWED_DISCUSSIONS_ROUTE_NAME, scUserContext.user) },
|
|
177
|
-
react_1.default.createElement(react_intl_1.FormattedMessage, { id: "ui.navigationSettingsIconButton.discussionsFollowed", defaultMessage: "ui.navigationSettingsIconButton.discussionsFollowed" }))),
|
|
178
|
-
react_1.default.createElement(material_1.MenuItem, { className: classes.item, key: "privateMessages", component: react_core_1.Link, to: scRoutingContext.url(react_core_1.SCRoutes.USER_PRIVATE_MESSAGES_ROUTE_NAME, {}) },
|
|
179
|
-
react_1.default.createElement(react_intl_1.FormattedMessage, { id: "ui.navigationSettingsIconButton.privateMessages", defaultMessage: "ui.navigationSettingsIconButton.privateMessages" })),
|
|
180
|
-
...items.map((item, index) => (react_1.default.createElement(material_1.MenuItem, { className: classes.item, key: `custom_item_${index}`, component: react_core_1.Link, to: item.href }, item.label))),
|
|
140
|
+
(0, jsx_runtime_1.jsx)(material_1.MenuItem, Object.assign({ className: classes.item, component: react_core_1.Link, to: scRoutingContext.url(react_core_1.SCRoutes.USER_PROFILE_ROUTE_NAME, scUserContext.user) }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.navigationSettingsIconButton.profile", defaultMessage: "ui.navigationSettingsIconButton.profile" }) }), "profile"),
|
|
141
|
+
preferences[react_core_1.SCPreferences.CONFIGURATIONS_FOLLOW_ENABLED] && ((0, jsx_runtime_1.jsx)(material_1.MenuItem, Object.assign({ className: classes.item, component: react_core_1.Link, to: scRoutingContext.url(react_core_1.SCRoutes.USER_PROFILE_FOLLOWINGS_ROUTE_NAME, scUserContext.user) }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.navigationSettingsIconButton.followings", defaultMessage: "ui.navigationSettingsIconButton.followings" }) }), "followings")),
|
|
142
|
+
preferences[react_core_1.SCPreferences.CONFIGURATIONS_FOLLOW_ENABLED] && ((0, jsx_runtime_1.jsx)(material_1.MenuItem, Object.assign({ className: classes.item, component: react_core_1.Link, to: scRoutingContext.url(react_core_1.SCRoutes.USER_PROFILE_FOLLOWERS_ROUTE_NAME, scUserContext.user) }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.navigationSettingsIconButton.followers", defaultMessage: "ui.navigationSettingsIconButton.followers" }) }), "followers")),
|
|
143
|
+
!preferences[react_core_1.SCPreferences.CONFIGURATIONS_FOLLOW_ENABLED] && ((0, jsx_runtime_1.jsx)(material_1.MenuItem, Object.assign({ className: classes.item, component: react_core_1.Link, to: scRoutingContext.url(react_core_1.SCRoutes.USER_PROFILE_CONNECTIONS_ROUTE_NAME, scUserContext.user) }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.navigationSettingsIconButton.connections", defaultMessage: "ui.navigationSettingsIconButton.connections" }) }), "connections")),
|
|
144
|
+
preferences[react_core_1.SCPreferences.ADDONS_LOYALTY_POINTS_COLLECTION] && ((0, jsx_runtime_1.jsx)(material_1.MenuItem, Object.assign({ className: classes.item, component: react_core_1.Link, to: scRoutingContext.url(react_core_1.SCRoutes.LOYALTY_ROUTE_NAME, {}) }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.navigationSettingsIconButton.loyalty", defaultMessage: "ui.navigationSettingsIconButton.loyalty" }) }), "loyaltyProgram")),
|
|
145
|
+
preferences[react_core_1.SCPreferences.CONFIGURATIONS_POST_TYPE_ENABLED] && ((0, jsx_runtime_1.jsx)(material_1.MenuItem, Object.assign({ className: classes.item, component: react_core_1.Link, to: scRoutingContext.url(react_core_1.SCRoutes.USER_PROFILE_FOLLOWED_POSTS_ROUTE_NAME, scUserContext.user) }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.navigationSettingsIconButton.postsFollowed", defaultMessage: "ui.navigationSettingsIconButton.postsFollowed" }) }), "followedPosts")),
|
|
146
|
+
preferences[react_core_1.SCPreferences.CONFIGURATIONS_DISCUSSION_TYPE_ENABLED] && ((0, jsx_runtime_1.jsx)(material_1.MenuItem, Object.assign({ className: classes.item, component: react_core_1.Link, to: scRoutingContext.url(react_core_1.SCRoutes.USER_PROFILE_FOLLOWED_DISCUSSIONS_ROUTE_NAME, scUserContext.user) }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.navigationSettingsIconButton.discussionsFollowed", defaultMessage: "ui.navigationSettingsIconButton.discussionsFollowed" }) }), "followedDiscussions")),
|
|
147
|
+
(0, jsx_runtime_1.jsx)(material_1.MenuItem, Object.assign({ className: classes.item, component: react_core_1.Link, to: scRoutingContext.url(react_core_1.SCRoutes.USER_PRIVATE_MESSAGES_ROUTE_NAME, {}) }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.navigationSettingsIconButton.privateMessages", defaultMessage: "ui.navigationSettingsIconButton.privateMessages" }) }), "privateMessages"),
|
|
148
|
+
...items.map((item, index) => ((0, jsx_runtime_1.jsx)(material_1.MenuItem, Object.assign({ className: classes.item, component: react_core_1.Link, to: item.href }, { children: item.label }), `custom_item_${index}`))),
|
|
181
149
|
...(isAdmin
|
|
182
150
|
? [
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
react_1.default.createElement(react_intl_1.FormattedMessage, { id: "ui.navigationSettingsIconButton.platform", defaultMessage: "ui.navigationSettingsIconButton.platform" }))
|
|
151
|
+
(0, jsx_runtime_1.jsx)(material_1.Divider, {}, "platform_divider"),
|
|
152
|
+
(0, jsx_runtime_1.jsx)(material_1.MenuItem, Object.assign({ className: classes.item, onClick: () => fetchPlatform('') }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.navigationSettingsIconButton.platform", defaultMessage: "ui.navigationSettingsIconButton.platform" }) }), "platform")
|
|
186
153
|
]
|
|
187
154
|
: []),
|
|
188
155
|
...(isModerator || isAdmin
|
|
189
156
|
? [
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
react_1.default.createElement(react_intl_1.FormattedMessage, { id: "ui.navigationSettingsIconButton.moderation", defaultMessage: "ui.navigationSettingsIconButton.moderation" }))
|
|
157
|
+
(0, jsx_runtime_1.jsx)(material_1.Divider, {}, "moderation_divider"),
|
|
158
|
+
(0, jsx_runtime_1.jsx)(material_1.MenuItem, Object.assign({ className: classes.item, onClick: () => fetchPlatform('/moderation/flags/') }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.navigationSettingsIconButton.moderation", defaultMessage: "ui.navigationSettingsIconButton.moderation" }) }), "moderation")
|
|
193
159
|
]
|
|
194
160
|
: []),
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
react_1.default.createElement(material_1.MenuItem, { className: classes.item, key: "logout", onClick: handleLogout },
|
|
199
|
-
react_1.default.createElement(react_intl_1.FormattedMessage, { id: "ui.navigationSettingsIconButton.logout", defaultMessage: "ui.navigationSettingsIconButton.logout" }))
|
|
161
|
+
(0, jsx_runtime_1.jsx)(material_1.MenuItem, Object.assign({ className: classes.item, component: react_core_1.Link, to: scRoutingContext.url(react_core_1.SCRoutes.USER_PROFILE_SETTINGS_ROUTE_NAME, scUserContext.user) }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.navigationSettingsIconButton.settings", defaultMessage: "ui.navigationSettingsIconButton.settings" }) }), "settings"),
|
|
162
|
+
(0, jsx_runtime_1.jsx)(material_1.Divider, {}, "divider"),
|
|
163
|
+
(0, jsx_runtime_1.jsx)(material_1.MenuItem, Object.assign({ className: classes.item, onClick: handleLogout }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.navigationSettingsIconButton.logout", defaultMessage: "ui.navigationSettingsIconButton.logout" }) }), "logout")
|
|
200
164
|
];
|
|
201
165
|
}
|
|
202
166
|
};
|
|
@@ -204,10 +168,6 @@ function NavigationSettingsIconButton(inProps) {
|
|
|
204
168
|
if (!scUserContext.user) {
|
|
205
169
|
return null;
|
|
206
170
|
}
|
|
207
|
-
return (
|
|
208
|
-
react_1.default.createElement(Root, Object.assign({ className: (0, classnames_1.default)(classes.root, className) }, rest, { onClick: handleOpen }),
|
|
209
|
-
react_1.default.createElement(material_1.Icon, null, "more_vert")),
|
|
210
|
-
isMobile ? (react_1.default.createElement(SwipeableDrawerRoot, { onClick: () => setAnchorEl(null), className: classes.drawerRoot, anchor: "bottom", open: Boolean(anchorEl), onClose: handleClose, onOpen: handleOpen, PaperProps: { className: classes.paper }, disableSwipeToOpen: true },
|
|
211
|
-
react_1.default.createElement(material_1.List, null, renderList()))) : (react_1.default.createElement(MenuRoot, { onClick: () => setAnchorEl(null), className: classes.menuRoot, anchorEl: anchorEl, open: Boolean(anchorEl), onClose: handleClose, PaperProps: { className: classes.paper } }, renderList()))));
|
|
171
|
+
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(Root, Object.assign({ className: (0, classnames_1.default)(classes.root, className) }, rest, { onClick: handleOpen }, { children: (0, jsx_runtime_1.jsx)(material_1.Icon, { children: "more_vert" }) })), isMobile ? ((0, jsx_runtime_1.jsx)(SwipeableDrawerRoot, Object.assign({ onClick: () => setAnchorEl(null), className: classes.drawerRoot, anchor: "bottom", open: Boolean(anchorEl), onClose: handleClose, onOpen: handleOpen, PaperProps: { className: classes.paper }, disableSwipeToOpen: true }, { children: (0, jsx_runtime_1.jsx)(material_1.List, { children: renderList() }) }))) : ((0, jsx_runtime_1.jsx)(MenuRoot, Object.assign({ onClick: () => setAnchorEl(null), className: classes.menuRoot, anchorEl: anchorEl, open: Boolean(anchorEl), onClose: handleClose, PaperProps: { className: classes.paper } }, { children: renderList() })))] }));
|
|
212
172
|
}
|
|
213
173
|
exports.default = NavigationSettingsIconButton;
|