@selfcommunity/react-ui 0.7.50-events.40 → 0.7.50-events.43
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/EventSubscribeButton/EventSubscribeButton.js +12 -15
- package/lib/cjs/components/Events/Events.d.ts +1 -1
- package/lib/cjs/components/Events/Events.js +25 -52
- 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/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 +6 -14
- 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/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 +2 -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/EventSubscribeButton/EventSubscribeButton.js +12 -15
- package/lib/esm/components/Events/Events.d.ts +1 -1
- package/lib/esm/components/Events/Events.js +25 -52
- 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/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 +6 -14
- 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/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 +2 -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
|
@@ -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 react_core_1 = require("@selfcommunity/react-core");
|
|
7
8
|
const material_1 = require("@mui/material");
|
|
@@ -84,12 +85,6 @@ function AccountChangeMailValidation(inProps) {
|
|
|
84
85
|
return null;
|
|
85
86
|
}
|
|
86
87
|
// RENDER
|
|
87
|
-
return (
|
|
88
|
-
typeof succeed === 'string' ? (succeed) : (react_1.default.createElement(react_intl_1.FormattedMessage, { id: "ui.accountChangeMailValidation.success", defaultMessage: "ui.accountChangeMailValidation.success" })),
|
|
89
|
-
successAction)) : error ? (react_1.default.createElement(material_1.Alert, { severity: "error", className: classes.error },
|
|
90
|
-
react_1.default.createElement(react_intl_1.FormattedMessage, { id: "ui.accountChangeMailValidation.error", defaultMessage: "ui.accountChangeMailValidation.error" }),
|
|
91
|
-
errorAction)) : (react_1.default.createElement(react_1.default.Fragment, null,
|
|
92
|
-
react_1.default.createElement(material_1.CircularProgress, null),
|
|
93
|
-
react_1.default.createElement(react_intl_1.FormattedMessage, { id: "ui.accountChangeMailValidation.verifying", defaultMessage: "ui.accountChangeMailValidation.verifying" })))));
|
|
88
|
+
return ((0, jsx_runtime_1.jsx)(Root, Object.assign({ className: (0, classnames_1.default)(classes.root, className) }, rest, { children: succeed ? ((0, jsx_runtime_1.jsxs)(material_1.Alert, Object.assign({ severity: "success", className: classes.success }, { children: [typeof succeed === 'string' ? (succeed) : ((0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.accountChangeMailValidation.success", defaultMessage: "ui.accountChangeMailValidation.success" })), successAction] }))) : error ? ((0, jsx_runtime_1.jsxs)(material_1.Alert, Object.assign({ severity: "error", className: classes.error }, { children: [(0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.accountChangeMailValidation.error", defaultMessage: "ui.accountChangeMailValidation.error" }), errorAction] }))) : ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(material_1.CircularProgress, {}), (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.accountChangeMailValidation.verifying", defaultMessage: "ui.accountChangeMailValidation.verifying" })] })) })));
|
|
94
89
|
}
|
|
95
90
|
exports.default = AccountChangeMailValidation;
|
|
@@ -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 system_1 = require("@mui/system");
|
|
6
7
|
const styles_1 = require("@mui/material/styles");
|
|
7
8
|
const material_1 = require("@mui/material");
|
|
@@ -152,29 +153,19 @@ function AccountDataPortability(inProps) {
|
|
|
152
153
|
/**
|
|
153
154
|
* Renders root object
|
|
154
155
|
*/
|
|
155
|
-
return (
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
(dataPortability.computing ||
|
|
170
|
-
(dataPortability.requested_at && (0, date_fns_1.differenceInHours)(new Date(), (0, date_fns_1.parseISO)(dataPortability.requested_at.toString())) < 24))), loadingPosition: "start", startIcon: react_1.default.createElement(Icon_1.default, null, "folder_open"), variant: "outlined", className: classes.createButton, onClick: handleCreateDataPortabilityFile }, (dataPortability && dataPortability.computing) || loading ? (react_1.default.createElement(react_intl_1.FormattedMessage, { id: "ui.accountDataPortability.createLoadingButton", defaultMessage: "ui.accountDataPortability.createLoadingButton" })) : (react_1.default.createElement(react_intl_1.FormattedMessage, { id: "ui.accountDataPortability.createButton", defaultMessage: "ui.accountDataPortability.createButton" }))),
|
|
171
|
-
dataPortability && !dataPortability.computing && dataPortability.generated_at && (react_1.default.createElement(lab_1.LoadingButton, { size: "small", loading: downloadingDataPortability, loadingPosition: "start", startIcon: react_1.default.createElement(Icon_1.default, null, "cloud_download_outlined"), variant: 'outlined', className: classes.downloadButton, onClick: handleDownloadDataPortabilityFile },
|
|
172
|
-
react_1.default.createElement(react_intl_1.FormattedMessage, { id: "ui.accountDataPortability.downloadButton", defaultMessage: "ui.accountDataPortability.downloadButton" }))),
|
|
173
|
-
react_1.default.createElement("br", null),
|
|
174
|
-
dataPortability && !dataPortability.computing && dataPortability.generated_at && (react_1.default.createElement(material_1.Typography, { className: classes.generationInfo, variant: "body2" },
|
|
175
|
-
react_1.default.createElement(react_intl_1.FormattedMessage, { id: "ui.accountDataPortability.generatedInfo", defaultMessage: "ui.accountDataPortability.generatedInfo", values: {
|
|
176
|
-
date: react_1.default.createElement(react_intl_1.FormattedDate, { value: dataPortability.requested_at, day: "numeric", month: "long", year: "numeric" }),
|
|
177
|
-
time: react_1.default.createElement(react_intl_1.FormattedTime, { value: dataPortability.requested_at })
|
|
178
|
-
} })))));
|
|
156
|
+
return ((0, jsx_runtime_1.jsxs)(Root, Object.assign({ className: (0, classnames_1.default)(classes.root, className) }, rest, { children: [(0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ variant: "h6" }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.accountDataPortability.title", defaultMessage: "ui.accountDataPortability.title", values: { username: (0, utils_1.capitalize)(scUserContext.user.username) } }) })), (0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ variant: "body2", component: "div" }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.accountDataPortability.info", defaultMessage: "ui.accountDataPortability.info", values: {
|
|
157
|
+
// eslint-disable-next-line @typescript-eslint/ban-ts-ignore
|
|
158
|
+
// @ts-ignore
|
|
159
|
+
li: (chunks) => (0, jsx_runtime_1.jsx)("li", { children: chunks }),
|
|
160
|
+
// eslint-disable-next-line @typescript-eslint/ban-ts-ignore
|
|
161
|
+
// @ts-ignore
|
|
162
|
+
ul: (chunks) => (0, jsx_runtime_1.jsx)("ul", { children: chunks })
|
|
163
|
+
} }) })), (0, jsx_runtime_1.jsx)(lab_1.LoadingButton, Object.assign({ size: "small", loading: (dataPortability && dataPortability.computing) || loading, disabled: !dataPortability ||
|
|
164
|
+
(dataPortability &&
|
|
165
|
+
(dataPortability.computing ||
|
|
166
|
+
(dataPortability.requested_at && (0, date_fns_1.differenceInHours)(new Date(), (0, date_fns_1.parseISO)(dataPortability.requested_at.toString())) < 24))), loadingPosition: "start", startIcon: (0, jsx_runtime_1.jsx)(Icon_1.default, { children: "folder_open" }), variant: "outlined", className: classes.createButton, onClick: handleCreateDataPortabilityFile }, { children: (dataPortability && dataPortability.computing) || loading ? ((0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.accountDataPortability.createLoadingButton", defaultMessage: "ui.accountDataPortability.createLoadingButton" })) : ((0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.accountDataPortability.createButton", defaultMessage: "ui.accountDataPortability.createButton" })) })), dataPortability && !dataPortability.computing && dataPortability.generated_at && ((0, jsx_runtime_1.jsx)(lab_1.LoadingButton, Object.assign({ size: "small", loading: downloadingDataPortability, loadingPosition: "start", startIcon: (0, jsx_runtime_1.jsx)(Icon_1.default, { children: "cloud_download_outlined" }), variant: 'outlined', className: classes.downloadButton, onClick: handleDownloadDataPortabilityFile }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.accountDataPortability.downloadButton", defaultMessage: "ui.accountDataPortability.downloadButton" }) }))), (0, jsx_runtime_1.jsx)("br", {}), dataPortability && !dataPortability.computing && dataPortability.generated_at && ((0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ className: classes.generationInfo, variant: "body2" }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.accountDataPortability.generatedInfo", defaultMessage: "ui.accountDataPortability.generatedInfo", values: {
|
|
167
|
+
date: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedDate, { value: dataPortability.requested_at, day: "numeric", month: "long", year: "numeric" }),
|
|
168
|
+
time: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedTime, { value: dataPortability.requested_at })
|
|
169
|
+
} }) })))] })));
|
|
179
170
|
}
|
|
180
171
|
exports.default = AccountDataPortability;
|
|
@@ -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 classnames_1 = tslib_1.__importDefault(require("classnames"));
|
|
7
8
|
const system_1 = require("@mui/system");
|
|
@@ -72,10 +73,6 @@ function AccountDataPortabilityButton(inProps) {
|
|
|
72
73
|
if (!scUserContext.user) {
|
|
73
74
|
return null;
|
|
74
75
|
}
|
|
75
|
-
return (
|
|
76
|
-
react_1.default.createElement(Root, Object.assign({ onClick: handleOpen, className: (0, classnames_1.default)(classes.root, className) }, rest),
|
|
77
|
-
react_1.default.createElement(react_intl_1.FormattedMessage, { id: "ui.accountDataPortabilityButton.buttonLabel", defaultMessage: "ui.accountDataPortabilityButton.buttonLabel" })),
|
|
78
|
-
open && (react_1.default.createElement(DialogRoot, { title: react_1.default.createElement(react_intl_1.FormattedMessage, { id: "ui.accountDataPortabilityButton.dialogTitle", defaultMessage: "ui.accountDataPortabilityButton.dialogTitle", values: { username: scUserContext.user.username } }), onClose: handleClose, open: open, DialogContentProps: {} },
|
|
79
|
-
react_1.default.createElement(AccountDataPortability_1.default, null)))));
|
|
76
|
+
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(Root, Object.assign({ onClick: handleOpen, className: (0, classnames_1.default)(classes.root, className) }, rest, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.accountDataPortabilityButton.buttonLabel", defaultMessage: "ui.accountDataPortabilityButton.buttonLabel" }) })), open && ((0, jsx_runtime_1.jsx)(DialogRoot, Object.assign({ title: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.accountDataPortabilityButton.dialogTitle", defaultMessage: "ui.accountDataPortabilityButton.dialogTitle", values: { username: scUserContext.user.username } }), onClose: handleClose, open: open, DialogContentProps: {} }, { children: (0, jsx_runtime_1.jsx)(AccountDataPortability_1.default, {}) })))] }));
|
|
80
77
|
}
|
|
81
78
|
exports.default = AccountDataPortabilityButton;
|
|
@@ -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 system_1 = require("@mui/system");
|
|
6
7
|
const styles_1 = require("@mui/material/styles");
|
|
7
8
|
const material_1 = require("@mui/material");
|
|
@@ -109,27 +110,19 @@ function AccountDelete(inProps) {
|
|
|
109
110
|
/**
|
|
110
111
|
* Renders root object
|
|
111
112
|
*/
|
|
112
|
-
return (
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
// eslint-disable-next-line @typescript-eslint/ban-ts-ignore
|
|
127
|
-
// @ts-ignore
|
|
128
|
-
b: (chunks) => react_1.default.createElement("b", null, chunks)
|
|
129
|
-
} }),
|
|
130
|
-
react_1.default.createElement(material_1.TextField, { name: "confirm", value: confirm, onChange: handleChange, autoComplete: "off", size: "small" })),
|
|
131
|
-
error && react_1.default.createElement(material_1.Typography, { color: "error" }, error),
|
|
132
|
-
react_1.default.createElement(LoadingButton_1.default, { className: classes.button, size: "small", disabled: isDeleting || confirm !== scUserContext.user.username, variant: "outlined", onClick: handleDelete },
|
|
133
|
-
react_1.default.createElement(react_intl_1.FormattedMessage, { id: "ui.accountDelete.buttonLabel", defaultMessage: "ui.accountDelete.buttonLabel" }))));
|
|
113
|
+
return ((0, jsx_runtime_1.jsxs)(Root, Object.assign({ className: (0, classnames_1.default)(classes.root, className) }, rest, { children: [(0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ className: classes.message, component: material_1.Box }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.accountDelete.message", defaultMessage: "ui.accountDelete.message", values: {
|
|
114
|
+
communityName,
|
|
115
|
+
// eslint-disable-next-line @typescript-eslint/ban-ts-ignore
|
|
116
|
+
// @ts-ignore
|
|
117
|
+
li: (chunks) => (0, jsx_runtime_1.jsx)("li", { children: chunks }),
|
|
118
|
+
// eslint-disable-next-line @typescript-eslint/ban-ts-ignore
|
|
119
|
+
// @ts-ignore
|
|
120
|
+
ul: (chunks) => (0, jsx_runtime_1.jsx)("ul", { children: chunks })
|
|
121
|
+
} }) })), (0, jsx_runtime_1.jsxs)(material_1.Typography, Object.assign({ className: classes.confirm, component: material_1.Box }, { children: [(0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.accountDelete.confirmMessage", defaultMessage: "ui.accountDelete.confirmMessage", values: {
|
|
122
|
+
username: scUserContext.user.username,
|
|
123
|
+
// eslint-disable-next-line @typescript-eslint/ban-ts-ignore
|
|
124
|
+
// @ts-ignore
|
|
125
|
+
b: (chunks) => (0, jsx_runtime_1.jsx)("b", { children: chunks })
|
|
126
|
+
} }), (0, jsx_runtime_1.jsx)(material_1.TextField, { name: "confirm", value: confirm, onChange: handleChange, autoComplete: "off", size: "small" })] })), error && (0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ color: "error" }, { children: error })), (0, jsx_runtime_1.jsx)(LoadingButton_1.default, Object.assign({ className: classes.button, size: "small", disabled: isDeleting || confirm !== scUserContext.user.username, variant: "outlined", onClick: handleDelete }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.accountDelete.buttonLabel", defaultMessage: "ui.accountDelete.buttonLabel" }) }))] })));
|
|
134
127
|
}
|
|
135
128
|
exports.default = AccountDelete;
|
|
@@ -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 classnames_1 = tslib_1.__importDefault(require("classnames"));
|
|
7
8
|
const system_1 = require("@mui/system");
|
|
@@ -76,10 +77,6 @@ function AccountDeleteButton(inProps) {
|
|
|
76
77
|
if (!scUserContext.user) {
|
|
77
78
|
return null;
|
|
78
79
|
}
|
|
79
|
-
return (
|
|
80
|
-
react_1.default.createElement(Root, Object.assign({ onClick: handleOpen, className: (0, classnames_1.default)(classes.root, className) }, rest),
|
|
81
|
-
react_1.default.createElement(react_intl_1.FormattedMessage, { id: "ui.accountDeleteButton.buttonLabel", defaultMessage: "ui.accountDeleteButton.buttonLabel" })),
|
|
82
|
-
open && (react_1.default.createElement(DialogRoot, { title: react_1.default.createElement(react_intl_1.FormattedMessage, { id: "ui.accountDeleteButton.dialogTitle", defaultMessage: "ui.accountDeleteButton.dialogTitle" }), onClose: handleClose, open: open, DialogContentProps: {} },
|
|
83
|
-
react_1.default.createElement(AccountDelete_1.default, { onDeleteAccount: handleDelete })))));
|
|
80
|
+
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(Root, Object.assign({ onClick: handleOpen, className: (0, classnames_1.default)(classes.root, className) }, rest, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.accountDeleteButton.buttonLabel", defaultMessage: "ui.accountDeleteButton.buttonLabel" }) })), open && ((0, jsx_runtime_1.jsx)(DialogRoot, Object.assign({ title: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.accountDeleteButton.dialogTitle", defaultMessage: "ui.accountDeleteButton.dialogTitle" }), onClose: handleClose, open: open, DialogContentProps: {} }, { children: (0, jsx_runtime_1.jsx)(AccountDelete_1.default, { onDeleteAccount: handleDelete }) })))] }));
|
|
84
81
|
}
|
|
85
82
|
exports.default = AccountDeleteButton;
|
|
@@ -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 react_core_1 = require("@selfcommunity/react-core");
|
|
7
8
|
const material_1 = require("@mui/material");
|
|
@@ -102,16 +103,11 @@ function AccountRecover(inProps) {
|
|
|
102
103
|
return null;
|
|
103
104
|
}
|
|
104
105
|
// RENDER
|
|
105
|
-
return (
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
}),
|
|
112
|
-
successAction)) : (react_1.default.createElement("form", { className: classes.form, onSubmit: handleSubmit },
|
|
113
|
-
react_1.default.createElement(EmailTextField_1.default, Object.assign({ className: classes.email, disabled: isSubmitting, label: react_1.default.createElement(react_intl_1.FormattedMessage, { id: "ui.accountRecover.email.label", defaultMessage: "ui.accountRecover.email.label" }) }, TextFieldProps, { value: email, onChange: handleChange, error: Boolean(emailError), helperText: emailError && (react_1.default.createElement(react_intl_1.FormattedMessage, { id: `ui.accountRecover.email.error.${emailError}`, defaultMessage: `ui.accountRecover.email.error.${emailError}` })) })),
|
|
114
|
-
react_1.default.createElement(material_1.Button, Object.assign({ type: "submit" }, ButtonProps, { disabled: !email || Boolean(emailError) || isSubmitting }),
|
|
115
|
-
react_1.default.createElement(react_intl_1.FormattedMessage, { id: "ui.accountRecover.submit", defaultMessage: "ui.accountRecover.submit" }))))));
|
|
106
|
+
return ((0, jsx_runtime_1.jsx)(Root, Object.assign({ className: (0, classnames_1.default)(classes.root, className) }, rest, { children: isSucceed ? ((0, jsx_runtime_1.jsxs)(material_1.Alert, Object.assign({ severity: "success", className: classes.success }, { children: [intl.formatMessage({ id: 'ui.accountRecover.success', defaultMessage: 'ui.accountRecover.success' }, {
|
|
107
|
+
email,
|
|
108
|
+
// eslint-disable-next-line @typescript-eslint/ban-ts-ignore
|
|
109
|
+
// @ts-ignore
|
|
110
|
+
b: (chunks) => (0, jsx_runtime_1.jsx)("b", { children: chunks })
|
|
111
|
+
}), successAction] }))) : ((0, jsx_runtime_1.jsxs)("form", Object.assign({ className: classes.form, onSubmit: handleSubmit }, { children: [(0, jsx_runtime_1.jsx)(EmailTextField_1.default, Object.assign({ className: classes.email, disabled: isSubmitting, label: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.accountRecover.email.label", defaultMessage: "ui.accountRecover.email.label" }) }, TextFieldProps, { value: email, onChange: handleChange, error: Boolean(emailError), helperText: emailError && ((0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: `ui.accountRecover.email.error.${emailError}`, defaultMessage: `ui.accountRecover.email.error.${emailError}` })) })), (0, jsx_runtime_1.jsx)(material_1.Button, Object.assign({ type: "submit" }, ButtonProps, { disabled: !email || Boolean(emailError) || isSubmitting }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.accountRecover.submit", defaultMessage: "ui.accountRecover.submit" }) }))] }))) })));
|
|
116
112
|
}
|
|
117
113
|
exports.default = AccountRecover;
|
|
@@ -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 react_core_1 = require("@selfcommunity/react-core");
|
|
7
8
|
const material_1 = require("@mui/material");
|
|
@@ -142,16 +143,6 @@ function AccountReset(inProps) {
|
|
|
142
143
|
return null;
|
|
143
144
|
}
|
|
144
145
|
// RENDER
|
|
145
|
-
return (
|
|
146
|
-
intl.formatMessage({ id: 'ui.accountReset.success', defaultMessage: 'ui.accountReset.success' }),
|
|
147
|
-
successAction)) : validationCodeError ? (react_1.default.createElement(material_1.Alert, { severity: "error", className: classes.error },
|
|
148
|
-
react_1.default.createElement(react_intl_1.FormattedMessage, { id: "ui.accountReset.code.error", defaultMessage: "ui.accountReset.code.error" }),
|
|
149
|
-
errorAction)) : isLoading ? (react_1.default.createElement(material_1.Box, { className: classes.validating },
|
|
150
|
-
react_1.default.createElement(material_1.CircularProgress, null),
|
|
151
|
-
react_1.default.createElement("p", null,
|
|
152
|
-
react_1.default.createElement(react_intl_1.FormattedMessage, { id: "ui.accountReset.code.validatingToken", defaultMessage: "ui.accountReset.code.validatingToken" })))) : (react_1.default.createElement("form", { className: classes.form, onSubmit: handleSubmit },
|
|
153
|
-
react_1.default.createElement(PasswordTextField_1.default, Object.assign({ className: classes.password, disabled: isSubmitting, label: react_1.default.createElement(react_intl_1.FormattedMessage, { id: "ui.accountReset.password.label", defaultMessage: "ui.accountReset.password.label" }) }, TextFieldProps, { value: password, onChange: handleChange, error: Boolean(passwordError), helperText: passwordError && (react_1.default.createElement(react_intl_1.FormattedMessage, { id: `ui.accountReset.password.error.${passwordError}`, defaultMessage: `ui.accountReset.password.error.${passwordError}` })) })),
|
|
154
|
-
react_1.default.createElement(material_1.Button, Object.assign({ type: "submit" }, ButtonProps, { disabled: !password || isSubmitting }),
|
|
155
|
-
react_1.default.createElement(react_intl_1.FormattedMessage, { id: "ui.accountReset.submit", defaultMessage: "ui.accountReset.submit" }))))));
|
|
146
|
+
return ((0, jsx_runtime_1.jsx)(Root, Object.assign({ className: (0, classnames_1.default)(classes.root, className) }, rest, { children: isSucceed ? ((0, jsx_runtime_1.jsxs)(material_1.Alert, Object.assign({ severity: "success", className: classes.success }, { children: [intl.formatMessage({ id: 'ui.accountReset.success', defaultMessage: 'ui.accountReset.success' }), successAction] }))) : validationCodeError ? ((0, jsx_runtime_1.jsxs)(material_1.Alert, Object.assign({ severity: "error", className: classes.error }, { children: [(0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.accountReset.code.error", defaultMessage: "ui.accountReset.code.error" }), errorAction] }))) : isLoading ? ((0, jsx_runtime_1.jsxs)(material_1.Box, Object.assign({ className: classes.validating }, { children: [(0, jsx_runtime_1.jsx)(material_1.CircularProgress, {}), (0, jsx_runtime_1.jsx)("p", { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.accountReset.code.validatingToken", defaultMessage: "ui.accountReset.code.validatingToken" }) })] }))) : ((0, jsx_runtime_1.jsxs)("form", Object.assign({ className: classes.form, onSubmit: handleSubmit }, { children: [(0, jsx_runtime_1.jsx)(PasswordTextField_1.default, Object.assign({ className: classes.password, disabled: isSubmitting, label: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.accountReset.password.label", defaultMessage: "ui.accountReset.password.label" }) }, TextFieldProps, { value: password, onChange: handleChange, error: Boolean(passwordError), helperText: passwordError && ((0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: `ui.accountReset.password.error.${passwordError}`, defaultMessage: `ui.accountReset.password.error.${passwordError}` })) })), (0, jsx_runtime_1.jsx)(material_1.Button, Object.assign({ type: "submit" }, ButtonProps, { disabled: !password || isSubmitting }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.accountReset.submit", defaultMessage: "ui.accountReset.submit" }) }))] }))) })));
|
|
156
147
|
}
|
|
157
148
|
exports.default = AccountReset;
|
|
@@ -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 react_core_1 = require("@selfcommunity/react-core");
|
|
7
8
|
const material_1 = require("@mui/material");
|
|
@@ -85,12 +86,6 @@ function AccountVerify(inProps) {
|
|
|
85
86
|
return null;
|
|
86
87
|
}
|
|
87
88
|
// RENDER
|
|
88
|
-
return (
|
|
89
|
-
typeof succeed === 'string' ? succeed : react_1.default.createElement(react_intl_1.FormattedMessage, { id: "ui.accountVerify.success", defaultMessage: "ui.accountVerify.success" }),
|
|
90
|
-
successAction)) : error ? (react_1.default.createElement(material_1.Alert, { severity: "error", className: classes.error },
|
|
91
|
-
react_1.default.createElement(react_intl_1.FormattedMessage, { id: "ui.accountVerify.error", defaultMessage: "ui.accountVerify.error" }),
|
|
92
|
-
errorAction)) : (react_1.default.createElement(react_1.default.Fragment, null,
|
|
93
|
-
react_1.default.createElement(material_1.CircularProgress, null),
|
|
94
|
-
react_1.default.createElement(react_intl_1.FormattedMessage, { id: "ui.accountVerify.verifying", defaultMessage: "ui.accountVerify.verifying" })))));
|
|
89
|
+
return ((0, jsx_runtime_1.jsx)(Root, Object.assign({ className: (0, classnames_1.default)(classes.root, className) }, rest, { children: succeed ? ((0, jsx_runtime_1.jsxs)(material_1.Alert, Object.assign({ severity: "success", className: classes.success }, { children: [typeof succeed === 'string' ? succeed : (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.accountVerify.success", defaultMessage: "ui.accountVerify.success" }), successAction] }))) : error ? ((0, jsx_runtime_1.jsxs)(material_1.Alert, Object.assign({ severity: "error", className: classes.error }, { children: [(0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.accountVerify.error", defaultMessage: "ui.accountVerify.error" }), errorAction] }))) : ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(material_1.CircularProgress, {}), (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.accountVerify.verifying", defaultMessage: "ui.accountVerify.verifying" })] })) })));
|
|
95
90
|
}
|
|
96
91
|
exports.default = AccountVerify;
|
|
@@ -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 material_1 = require("@mui/material");
|
|
5
|
-
const react_1 =
|
|
6
|
+
const react_1 = require("react");
|
|
6
7
|
const react_core_1 = require("@selfcommunity/react-core");
|
|
7
8
|
const system_1 = require("@mui/system");
|
|
8
9
|
const classnames_1 = tslib_1.__importDefault(require("classnames"));
|
|
@@ -69,24 +70,22 @@ function BottomNavigation(inProps) {
|
|
|
69
70
|
const contentAvailable = preferences[react_core_1.SCPreferences.CONFIGURATIONS_CONTENT_AVAILABILITY].value;
|
|
70
71
|
const isIOS = (0, react_1.useMemo)(() => (0, utils_1.iOS)(), []);
|
|
71
72
|
// RENDER
|
|
72
|
-
return (
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
react_1.default.createElement(material_1.Icon, null, "email")) })) : null
|
|
90
|
-
]));
|
|
73
|
+
return ((0, jsx_runtime_1.jsx)(Root, Object.assign({ className: (0, classnames_1.default)(className, classes.root, { [classes.ios]: isIOS }) }, rest, { children: children
|
|
74
|
+
? children
|
|
75
|
+
: [
|
|
76
|
+
(0, jsx_runtime_1.jsx)(material_1.BottomNavigationAction, { className: classes.action, component: react_core_1.Link, to: scUserContext.user ? scRoutingContext.url(react_core_1.SCRoutes.HOME_ROUTE_NAME, {}) : '/', value: scUserContext.user ? scRoutingContext.url(react_core_1.SCRoutes.HOME_ROUTE_NAME, {}) : '/', icon: (0, jsx_runtime_1.jsx)(material_1.Icon, { children: "home" }) }, "home"),
|
|
77
|
+
(scUserContext.user || contentAvailable) && exploreStreamEnabled ? ((0, jsx_runtime_1.jsx)(material_1.BottomNavigationAction, { className: classes.action, component: react_core_1.Link, to: scRoutingContext.url(react_core_1.SCRoutes.EXPLORE_ROUTE_NAME, {}), value: scRoutingContext.url(react_core_1.SCRoutes.EXPLORE_ROUTE_NAME, {}), icon: (0, jsx_runtime_1.jsx)(material_1.Icon, { children: "explore" }) }, "explore")) : null,
|
|
78
|
+
(!postOnlyStaffEnabled || (react_core_1.UserUtils.isStaff(scUserContext.user) && postOnlyStaffEnabled)) &&
|
|
79
|
+
((groupsEnabled && !eventsEnabled) || (!groupsEnabled && eventsEnabled)) &&
|
|
80
|
+
!exploreStreamEnabled ? ((0, jsx_runtime_1.jsx)(material_1.BottomNavigationAction, { className: (0, classnames_1.default)(classes.composer, classes.action), component: ComposerIconButton_1.default, disableRipple: true }, "composer")) : null,
|
|
81
|
+
groupsEnabled && scUserContext.user ? ((0, jsx_runtime_1.jsx)(material_1.BottomNavigationAction, { className: classes.action, component: react_core_1.Link, to: scRoutingContext.url(react_core_1.SCRoutes.GROUPS_SUBSCRIBED_ROUTE_NAME, {}), value: scRoutingContext.url(react_core_1.SCRoutes.GROUPS_SUBSCRIBED_ROUTE_NAME, {}), icon: (0, jsx_runtime_1.jsx)(material_1.Icon, { children: "groups" }) }, "groups")) : null,
|
|
82
|
+
(!postOnlyStaffEnabled || (react_core_1.UserUtils.isStaff(scUserContext.user) && postOnlyStaffEnabled)) &&
|
|
83
|
+
groupsEnabled &&
|
|
84
|
+
eventsEnabled &&
|
|
85
|
+
!exploreStreamEnabled ? ((0, jsx_runtime_1.jsx)(material_1.BottomNavigationAction, { className: (0, classnames_1.default)(classes.composer, classes.action), component: ComposerIconButton_1.default, disableRipple: true }, "composer")) : null,
|
|
86
|
+
eventsEnabled && scUserContext.user ? ((0, jsx_runtime_1.jsx)(material_1.BottomNavigationAction, { className: classes.action, component: react_core_1.Link, to: scRoutingContext.url(react_core_1.SCRoutes.EVENT_ROUTE_NAME, {}), value: scRoutingContext.url(react_core_1.SCRoutes.EVENTS_ROUTE_NAME, {}), icon: (0, jsx_runtime_1.jsx)(material_1.Icon, { children: "CalendarIcon" }) }, "events")) : null,
|
|
87
|
+
scUserContext.user && !groupsEnabled && !eventsEnabled ? ((0, jsx_runtime_1.jsx)(material_1.BottomNavigationAction, { className: classes.action, component: react_core_1.Link, to: scRoutingContext.url(react_core_1.SCRoutes.USER_NOTIFICATIONS_ROUTE_NAME, {}), value: scRoutingContext.url(react_core_1.SCRoutes.USER_NOTIFICATIONS_ROUTE_NAME, {}), icon: (0, jsx_runtime_1.jsx)(material_1.Badge, Object.assign({ badgeContent: scUserContext.user.unseen_notification_banners_counter + scUserContext.user.unseen_interactions_counter, color: "secondary" }, { children: (0, jsx_runtime_1.jsx)(material_1.Icon, { children: "notifications_active" }) })) }, "notifications")) : null,
|
|
88
|
+
privateMessagingEnabled && scUserContext.user ? ((0, jsx_runtime_1.jsx)(material_1.BottomNavigationAction, { className: classes.action, component: react_core_1.Link, to: scRoutingContext.url(react_core_1.SCRoutes.USER_PRIVATE_MESSAGES_ROUTE_NAME, {}), value: scRoutingContext.url(react_core_1.SCRoutes.USER_PRIVATE_MESSAGES_ROUTE_NAME, {}), icon: (0, jsx_runtime_1.jsx)(material_1.Badge, Object.assign({ badgeContent: 0, color: "secondary" }, { children: (0, jsx_runtime_1.jsx)(material_1.Icon, { children: "email" }) })) }, "messages")) : null
|
|
89
|
+
] })));
|
|
91
90
|
}
|
|
92
91
|
exports.default = BottomNavigation;
|
|
@@ -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 pubsub_js_1 = tslib_1.__importDefault(require("pubsub-js"));
|
|
@@ -147,14 +148,6 @@ function BroadcastMessages(inProps) {
|
|
|
147
148
|
onHeightChange && onHeightChange();
|
|
148
149
|
}, [data.results.length, loading, viewAll, cacheStrategy]);
|
|
149
150
|
const messagesToShow = [...unViewedMessages, ...data.results.slice(unViewedMessages.length, viewAll ? viewedMessageCounter : 1)];
|
|
150
|
-
return (
|
|
151
|
-
messagesToShow.map((message, index) => (react_1.default.createElement(material_1.Box, { key: index },
|
|
152
|
-
react_1.default.createElement(Message_1.default, Object.assign({ message: message }, MessageProps, { onClose: handleDisposeMessage, onRead: handleMarkRead }))))),
|
|
153
|
-
loading && !disableLoader && react_1.default.createElement(Skeleton_1.MessageSkeleton, null),
|
|
154
|
-
loading !== null && !loading && (data.next || (data.count > 1 && viewedMessageCounter > 0 && !viewAll)) && (react_1.default.createElement(Widget_1.default, { className: classes.boxLoadMore },
|
|
155
|
-
react_1.default.createElement(material_1.CardContent, null,
|
|
156
|
-
react_1.default.createElement(material_1.Button, { variant: "text", onClick: fetchOtherMessages, disabled: loading, color: "inherit", classes: { root: classes.buttonLoadMore } },
|
|
157
|
-
react_1.default.createElement(material_1.Avatar, { component: "span", className: classes.avatarLoadMore, alt: preferences[react_core_1.SCPreferences.TEXT_APPLICATION_NAME], src: preferences[react_core_1.SCPreferences.LOGO_NAVBAR_LOGO_MOBILE] }),
|
|
158
|
-
react_1.default.createElement(react_intl_1.FormattedMessage, { id: "ui.broadcastMessages.loadMore", defaultMessage: "ui.broadcastMessages.loadMore" })))))));
|
|
151
|
+
return ((0, jsx_runtime_1.jsxs)(Root, Object.assign({ id: id, className: (0, classnames_1.default)(classes.root, className) }, rest, { children: [messagesToShow.map((message, index) => ((0, jsx_runtime_1.jsx)(material_1.Box, { children: (0, jsx_runtime_1.jsx)(Message_1.default, Object.assign({ message: message }, MessageProps, { onClose: handleDisposeMessage, onRead: handleMarkRead })) }, index))), loading && !disableLoader && (0, jsx_runtime_1.jsx)(Skeleton_1.MessageSkeleton, {}), loading !== null && !loading && (data.next || (data.count > 1 && viewedMessageCounter > 0 && !viewAll)) && ((0, jsx_runtime_1.jsx)(Widget_1.default, Object.assign({ className: classes.boxLoadMore }, { children: (0, jsx_runtime_1.jsx)(material_1.CardContent, { children: (0, jsx_runtime_1.jsxs)(material_1.Button, Object.assign({ variant: "text", onClick: fetchOtherMessages, disabled: loading, color: "inherit", classes: { root: classes.buttonLoadMore } }, { children: [(0, jsx_runtime_1.jsx)(material_1.Avatar, { component: "span", className: classes.avatarLoadMore, alt: preferences[react_core_1.SCPreferences.TEXT_APPLICATION_NAME], src: preferences[react_core_1.SCPreferences.LOGO_NAVBAR_LOGO_MOBILE] }), (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.broadcastMessages.loadMore", defaultMessage: "ui.broadcastMessages.loadMore" })] })) }) })))] })));
|
|
159
152
|
}
|
|
160
153
|
exports.default = BroadcastMessages;
|
|
@@ -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 material_1 = require("@mui/material");
|
|
6
7
|
const styles_1 = require("@mui/material/styles");
|
|
7
8
|
const Icon_1 = tslib_1.__importDefault(require("@mui/material/Icon"));
|
|
@@ -84,14 +85,7 @@ function Message(props) {
|
|
|
84
85
|
}, [message]);
|
|
85
86
|
// RENDER
|
|
86
87
|
const renderContent = (banner) => {
|
|
87
|
-
return (
|
|
88
|
-
react_1.default.createElement(material_1.CardContent, { className: classes.title },
|
|
89
|
-
react_1.default.createElement(material_1.Typography, { variant: "h6" }, banner.title)),
|
|
90
|
-
banner.image && react_1.default.createElement(material_1.CardMedia, { className: classes.media, component: "img", image: banner.image, alt: banner.title }),
|
|
91
|
-
(banner.body_text || banner.link_text) && (react_1.default.createElement(material_1.CardContent, { className: classes.content },
|
|
92
|
-
banner.body_text && (react_1.default.createElement(material_1.Typography, { variant: "body1", color: "text.secondary" }, banner.body_text)),
|
|
93
|
-
banner.link_text && (react_1.default.createElement(material_1.Typography, { variant: "body1", color: "text.secondary" },
|
|
94
|
-
react_1.default.createElement("a", { href: banner.link, target: banner.open_in_new_tab ? '_blank' : '_self' }, banner.link_text)))))));
|
|
88
|
+
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(material_1.CardContent, Object.assign({ className: classes.title }, { children: (0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ variant: "h6" }, { children: banner.title })) })), banner.image && (0, jsx_runtime_1.jsx)(material_1.CardMedia, { className: classes.media, component: "img", image: banner.image, alt: banner.title }), (banner.body_text || banner.link_text) && ((0, jsx_runtime_1.jsxs)(material_1.CardContent, Object.assign({ className: classes.content }, { children: [banner.body_text && ((0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ variant: "body1", color: "text.secondary" }, { children: banner.body_text }))), banner.link_text && ((0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ variant: "body1", color: "text.secondary" }, { children: (0, jsx_runtime_1.jsx)("a", Object.assign({ href: banner.link, target: banner.open_in_new_tab ? '_blank' : '_self' }, { children: banner.link_text })) })))] })))] }));
|
|
95
89
|
};
|
|
96
90
|
// Banner
|
|
97
91
|
const { banner } = message;
|
|
@@ -100,22 +94,11 @@ function Message(props) {
|
|
|
100
94
|
* With a fade in transition show the Card (Widget)
|
|
101
95
|
* Include also MarkRead component to
|
|
102
96
|
*/
|
|
103
|
-
return (
|
|
104
|
-
react_1.default.createElement(material_1.Fade, { in: open, unmountOnExit: true },
|
|
105
|
-
react_1.default.createElement(material_1.Box, null,
|
|
106
|
-
message.viewed_at === null && !disableMarkRead && (react_1.default.createElement(MarkRead_1.default, { endpoint: api_services_1.Endpoints.BroadcastMessagesMarkRead, data: { banner_ids: [message.id] }, callback: handleOnRead })),
|
|
107
|
-
react_1.default.createElement(material_1.CardHeader, { className: classes.header, avatar: react_1.default.createElement(material_1.Avatar, { alt: preferences[react_core_1.SCPreferences.TEXT_APPLICATION_NAME], src: preferences[react_core_1.SCPreferences.LOGO_NAVBAR_LOGO_MOBILE] }), action: template === types_1.SCBroadcastMessageTemplateType.DETAIL && (react_1.default.createElement(material_1.IconButton, { "aria-label": "close", onClick: handleClose, disabled: closing }, closing ? react_1.default.createElement(material_1.CircularProgress, { size: 20 }) : react_1.default.createElement(Icon_1.default, null, "close"))), title: react_1.default.createElement(material_1.Chip, { color: "secondary", size: "small", label: react_1.default.createElement(react_intl_1.FormattedMessage, { id: "ui.broadcastMessages.message.chip", defaultMessage: "ui.broadcastMessages.message.chip" }) }) }),
|
|
108
|
-
renderContent(banner)))));
|
|
97
|
+
return ((0, jsx_runtime_1.jsx)(Root, Object.assign({ id: id, className: (0, classnames_1.default)(classes.root, className) }, rest, { children: (0, jsx_runtime_1.jsx)(material_1.Fade, Object.assign({ in: open, unmountOnExit: true }, { children: (0, jsx_runtime_1.jsxs)(material_1.Box, { children: [message.viewed_at === null && !disableMarkRead && ((0, jsx_runtime_1.jsx)(MarkRead_1.default, { endpoint: api_services_1.Endpoints.BroadcastMessagesMarkRead, data: { banner_ids: [message.id] }, callback: handleOnRead })), (0, jsx_runtime_1.jsx)(material_1.CardHeader, { className: classes.header, avatar: (0, jsx_runtime_1.jsx)(material_1.Avatar, { alt: preferences[react_core_1.SCPreferences.TEXT_APPLICATION_NAME], src: preferences[react_core_1.SCPreferences.LOGO_NAVBAR_LOGO_MOBILE] }), action: template === types_1.SCBroadcastMessageTemplateType.DETAIL && ((0, jsx_runtime_1.jsx)(material_1.IconButton, Object.assign({ "aria-label": "close", onClick: handleClose, disabled: closing }, { children: closing ? (0, jsx_runtime_1.jsx)(material_1.CircularProgress, { size: 20 }) : (0, jsx_runtime_1.jsx)(Icon_1.default, { children: "close" }) }))), title: (0, jsx_runtime_1.jsx)(material_1.Chip, { color: "secondary", size: "small", label: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.broadcastMessages.message.chip", defaultMessage: "ui.broadcastMessages.message.chip" }) }) }), renderContent(banner)] }) })) })));
|
|
109
98
|
}
|
|
110
99
|
// SCBroadcastMessageTemplateType.SNIPPET
|
|
111
|
-
return (
|
|
112
|
-
react_1.default.createElement(material_1.ListItem, { alignItems: 'center', component: 'div', classes: {
|
|
100
|
+
return ((0, jsx_runtime_1.jsx)(Root, Object.assign({ id: id, className: className }, rest, { children: (0, jsx_runtime_1.jsxs)(material_1.ListItem, Object.assign({ alignItems: 'center', component: 'div', classes: {
|
|
113
101
|
root: (0, classnames_1.default)(classes.listItemSnippet, classes.listItemSnippetNew)
|
|
114
|
-
} },
|
|
115
|
-
react_1.default.createElement(material_1.ListItemAvatar, { classes: { root: classes.messageIconWrap } },
|
|
116
|
-
react_1.default.createElement(material_1.Avatar, { variant: "circular", classes: { root: classes.messageIconSnippet } },
|
|
117
|
-
react_1.default.createElement(Icon_1.default, null, "info"))),
|
|
118
|
-
react_1.default.createElement(material_1.ListItemText, { disableTypography: true, primary: react_1.default.createElement(react_core_1.Link, { to: scRoutingContext.url(react_core_1.SCRoutes.USER_NOTIFICATIONS_ROUTE_NAME, {}) },
|
|
119
|
-
react_1.default.createElement(material_1.Typography, { component: "span", color: "inherit" }, banner.title)) }))));
|
|
102
|
+
} }, { children: [(0, jsx_runtime_1.jsx)(material_1.ListItemAvatar, Object.assign({ classes: { root: classes.messageIconWrap } }, { children: (0, jsx_runtime_1.jsx)(material_1.Avatar, Object.assign({ variant: "circular", classes: { root: classes.messageIconSnippet } }, { children: (0, jsx_runtime_1.jsx)(Icon_1.default, { children: "info" }) })) })), (0, jsx_runtime_1.jsx)(material_1.ListItemText, { disableTypography: true, primary: (0, jsx_runtime_1.jsx)(react_core_1.Link, Object.assign({ to: scRoutingContext.url(react_core_1.SCRoutes.USER_NOTIFICATIONS_ROUTE_NAME, {}) }, { children: (0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ component: "span", color: "inherit" }, { children: banner.title })) })) })] })) })));
|
|
120
103
|
}
|
|
121
104
|
exports.default = Message;
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.MessageSkeleton = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
6
|
const react_1 = tslib_1.__importDefault(require("react"));
|
|
6
7
|
const material_1 = require("@mui/material");
|
|
7
8
|
const styles_1 = require("@mui/material/styles");
|
|
@@ -44,17 +45,7 @@ const MessageSkeletonRoot = (0, styles_1.styled)(Widget_1.default, {
|
|
|
44
45
|
*/
|
|
45
46
|
function MessageSkeleton(props) {
|
|
46
47
|
const theme = (0, material_1.useTheme)();
|
|
47
|
-
return (react_1.default.
|
|
48
|
-
react_1.default.createElement(material_1.CardHeader, { className: messageClasses.header, avatar: react_1.default.createElement(material_1.Skeleton, { animation: "wave", variant: "circular", width: theme.selfcommunity.user.avatar.sizeMedium, height: theme.selfcommunity.user.avatar.sizeMedium }), title: react_1.default.createElement(material_1.Skeleton, { animation: "wave", variant: "rectangular", width: 60, height: 20 }) }),
|
|
49
|
-
react_1.default.createElement(material_1.CardContent, { className: messageClasses.title },
|
|
50
|
-
react_1.default.createElement(react_1.default.Fragment, null,
|
|
51
|
-
react_1.default.createElement(material_1.Skeleton, { animation: "wave", height: 10, width: "80%" }))),
|
|
52
|
-
react_1.default.createElement(material_1.Box, { className: messageClasses.media },
|
|
53
|
-
react_1.default.createElement(material_1.Skeleton, { height: 190, animation: "wave", variant: "rectangular" })),
|
|
54
|
-
react_1.default.createElement(material_1.CardContent, { className: messageClasses.content },
|
|
55
|
-
react_1.default.createElement(react_1.default.Fragment, null,
|
|
56
|
-
react_1.default.createElement(material_1.Skeleton, { animation: "wave", height: 10, width: "80%" }),
|
|
57
|
-
react_1.default.createElement(material_1.Skeleton, { animation: "wave", height: 10, width: 60 })))));
|
|
48
|
+
return ((0, jsx_runtime_1.jsxs)(MessageSkeletonRoot, Object.assign({ className: messageClasses.root }, { children: [(0, jsx_runtime_1.jsx)(material_1.CardHeader, { className: messageClasses.header, avatar: (0, jsx_runtime_1.jsx)(material_1.Skeleton, { animation: "wave", variant: "circular", width: theme.selfcommunity.user.avatar.sizeMedium, height: theme.selfcommunity.user.avatar.sizeMedium }), title: (0, jsx_runtime_1.jsx)(material_1.Skeleton, { animation: "wave", variant: "rectangular", width: 60, height: 20 }) }), (0, jsx_runtime_1.jsx)(material_1.CardContent, Object.assign({ className: messageClasses.title }, { children: (0, jsx_runtime_1.jsx)(react_1.default.Fragment, { children: (0, jsx_runtime_1.jsx)(material_1.Skeleton, { animation: "wave", height: 10, width: "80%" }) }) })), (0, jsx_runtime_1.jsx)(material_1.Box, Object.assign({ className: messageClasses.media }, { children: (0, jsx_runtime_1.jsx)(material_1.Skeleton, { height: 190, animation: "wave", variant: "rectangular" }) })), (0, jsx_runtime_1.jsx)(material_1.CardContent, Object.assign({ className: messageClasses.content }, { children: (0, jsx_runtime_1.jsxs)(react_1.default.Fragment, { children: [(0, jsx_runtime_1.jsx)(material_1.Skeleton, { animation: "wave", height: 10, width: "80%" }), (0, jsx_runtime_1.jsx)(material_1.Skeleton, { animation: "wave", height: 10, width: 60 })] }) }))] })));
|
|
58
49
|
}
|
|
59
50
|
exports.MessageSkeleton = MessageSkeleton;
|
|
60
51
|
const classes = {
|
|
@@ -85,9 +76,6 @@ const Root = (0, styles_1.styled)(material_1.Box, {
|
|
|
85
76
|
*
|
|
86
77
|
*/
|
|
87
78
|
function BroadcastMessagesSkeleton(props) {
|
|
88
|
-
return (
|
|
89
|
-
react_1.default.createElement(MessageSkeleton, null),
|
|
90
|
-
react_1.default.createElement(MessageSkeleton, null),
|
|
91
|
-
react_1.default.createElement(MessageSkeleton, null)));
|
|
79
|
+
return ((0, jsx_runtime_1.jsxs)(Root, Object.assign({ className: classes.root }, props, { children: [(0, jsx_runtime_1.jsx)(MessageSkeleton, {}), (0, jsx_runtime_1.jsx)(MessageSkeleton, {}), (0, jsx_runtime_1.jsx)(MessageSkeleton, {})] })));
|
|
92
80
|
}
|
|
93
81
|
exports.default = BroadcastMessagesSkeleton;
|
|
@@ -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 api_services_1 = require("@selfcommunity/api-services");
|
|
@@ -126,19 +127,13 @@ function Categories(inProps) {
|
|
|
126
127
|
* Renders categories list
|
|
127
128
|
*/
|
|
128
129
|
const filteredCategories = (0, utils_1.sortByAttr)(getFilteredCategories(), 'order');
|
|
129
|
-
const c = (
|
|
130
|
-
showFilters && (react_1.default.createElement(material_1.Grid, { container: true, direction: "row", justifyContent: "center", alignItems: "center", className: classes.filters }, filters ? (filters) : (react_1.default.createElement(material_1.Grid, { item: true, xs: 12, md: 6 },
|
|
131
|
-
react_1.default.createElement(material_1.TextField, { fullWidth: true, value: filterName, label: react_1.default.createElement(react_intl_1.FormattedMessage, { id: "ui.categories.filterByName", defaultMessage: "ui.categories.filterByName" }), variant: "outlined", onChange: handleOnChangeFilterName, disabled: loading }))))),
|
|
132
|
-
loading ? (react_1.default.createElement(CategoriesSkeletonComponent, Object.assign({}, CategoriesSkeletonProps))) : (react_1.default.createElement(material_1.Grid, { container: true, spacing: { xs: 3 }, className: classes.categories }, !filteredCategories.length ? (react_1.default.createElement(material_1.Grid, { item: true },
|
|
133
|
-
react_1.default.createElement(material_1.Typography, { className: classes.noResults, variant: "body2" },
|
|
134
|
-
react_1.default.createElement(react_intl_1.FormattedMessage, { id: "ui.categories.noResults", defaultMessage: "ui.categories.noResults" })))) : (react_1.default.createElement(react_1.default.Fragment, null, filteredCategories.map((category) => (react_1.default.createElement(material_1.Grid, { item: true, xs: 12, sm: 6, md: 6, lg: 4, key: category.id },
|
|
135
|
-
react_1.default.createElement(CategoryComponent, Object.assign({ category: category }, CategoryComponentProps, { showTooltip: true, className: classes.category })))))))))));
|
|
130
|
+
const c = ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [showFilters && ((0, jsx_runtime_1.jsx)(material_1.Grid, Object.assign({ container: true, direction: "row", justifyContent: "center", alignItems: "center", className: classes.filters }, { children: filters ? (filters) : ((0, jsx_runtime_1.jsx)(material_1.Grid, Object.assign({ item: true, xs: 12, md: 6 }, { children: (0, jsx_runtime_1.jsx)(material_1.TextField, { fullWidth: true, value: filterName, label: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.categories.filterByName", defaultMessage: "ui.categories.filterByName" }), variant: "outlined", onChange: handleOnChangeFilterName, disabled: loading }) }))) }))), loading ? ((0, jsx_runtime_1.jsx)(CategoriesSkeletonComponent, Object.assign({}, CategoriesSkeletonProps))) : ((0, jsx_runtime_1.jsx)(material_1.Grid, Object.assign({ container: true, spacing: { xs: 3 }, className: classes.categories }, { children: !filteredCategories.length ? ((0, jsx_runtime_1.jsx)(material_1.Grid, Object.assign({ item: true }, { children: (0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ className: classes.noResults, variant: "body2" }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.categories.noResults", defaultMessage: "ui.categories.noResults" }) })) }))) : ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: filteredCategories.map((category) => ((0, jsx_runtime_1.jsx)(material_1.Grid, Object.assign({ item: true, xs: 12, sm: 6, md: 6, lg: 4 }, { children: (0, jsx_runtime_1.jsx)(CategoryComponent, Object.assign({ category: category }, CategoryComponentProps, { showTooltip: true, className: classes.category })) }), category.id))) })) })))] }));
|
|
136
131
|
/**
|
|
137
132
|
* Renders root object (if content availability community option is false and user is anonymous, component is hidden)
|
|
138
133
|
*/
|
|
139
134
|
if (!contentAvailability && !scUserContext.user) {
|
|
140
|
-
return
|
|
135
|
+
return (0, jsx_runtime_1.jsx)(HiddenPlaceholder_1.default, {});
|
|
141
136
|
}
|
|
142
|
-
return (
|
|
137
|
+
return ((0, jsx_runtime_1.jsx)(Root, Object.assign({ className: (0, classnames_1.default)(classes.root, className) }, rest, { children: c })));
|
|
143
138
|
}
|
|
144
139
|
exports.default = Categories;
|
|
@@ -1,7 +1,7 @@
|
|
|
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
5
|
const styles_1 = require("@mui/material/styles");
|
|
6
6
|
const material_1 = require("@mui/material");
|
|
7
7
|
const Skeleton_1 = tslib_1.__importDefault(require("../Category/Skeleton"));
|
|
@@ -38,8 +38,6 @@ const Root = (0, styles_1.styled)(material_1.Box, {
|
|
|
38
38
|
*/
|
|
39
39
|
function CategoriesSkeleton(inProps) {
|
|
40
40
|
const { className, CategorySkeletonProps = {} } = inProps, rest = tslib_1.__rest(inProps, ["className", "CategorySkeletonProps"]);
|
|
41
|
-
return (
|
|
42
|
-
react_1.default.createElement(material_1.Grid, { container: true, spacing: { xs: 3 }, className: classes.categories }, [...Array(15)].map((category, index) => (react_1.default.createElement(material_1.Grid, { item: true, xs: 12, sm: 6, md: 4, key: index },
|
|
43
|
-
react_1.default.createElement(Skeleton_1.default, Object.assign({ elevation: 0, variant: 'outlined' }, CategorySkeletonProps))))))));
|
|
41
|
+
return ((0, jsx_runtime_1.jsx)(Root, Object.assign({ className: (0, classnames_1.default)(classes.root, className) }, rest, { children: (0, jsx_runtime_1.jsx)(material_1.Grid, Object.assign({ container: true, spacing: { xs: 3 }, className: classes.categories }, { children: [...Array(15)].map((category, index) => ((0, jsx_runtime_1.jsx)(material_1.Grid, Object.assign({ item: true, xs: 12, sm: 6, md: 4 }, { children: (0, jsx_runtime_1.jsx)(Skeleton_1.default, Object.assign({ elevation: 0, variant: 'outlined' }, CategorySkeletonProps)) }), index))) })) })));
|
|
44
42
|
}
|
|
45
43
|
exports.default = CategoriesSkeleton;
|