@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,5 +1,6 @@
|
|
|
1
1
|
import { __rest } from "tslib";
|
|
2
|
-
import
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
3
|
+
import { useState } from 'react';
|
|
3
4
|
import { styled } from '@mui/material/styles';
|
|
4
5
|
import { Typography, Grid, Box, Button, CardActions } from '@mui/material';
|
|
5
6
|
import { Link, SCRoutes, useSCFetchIncubator, useSCRouting } from '@selfcommunity/react-core';
|
|
@@ -26,18 +27,7 @@ const Root = styled(Widget, {
|
|
|
26
27
|
})(() => ({}));
|
|
27
28
|
function LinearProgressWithLabel(_a) {
|
|
28
29
|
var { className } = _a, props = __rest(_a, ["className"]);
|
|
29
|
-
return (
|
|
30
|
-
React.createElement(LinearProgress, Object.assign({ variant: "determinate" }, props)),
|
|
31
|
-
React.createElement(Box, { sx: { position: 'absolute', top: '3px', left: props.value + 2 + '%', transform: 'translateX(-50%)' } }, props.subscribers !== 0 && (React.createElement(Typography, { variant: "body2", color: "text.secondary" }, props.subscribers))),
|
|
32
|
-
React.createElement(Grid, { container: true, spacing: 2, className: className },
|
|
33
|
-
React.createElement(Grid, { item: true, xs: true },
|
|
34
|
-
React.createElement(Typography, null,
|
|
35
|
-
React.createElement(FormattedMessage, { defaultMessage: "ui.incubator.progressBar.proposal", id: "ui.incubator.progressBar.proposal" }))),
|
|
36
|
-
React.createElement(Grid, { item: true, xs: true },
|
|
37
|
-
React.createElement(FormattedMessage, { defaultMessage: "ui.incubator.progressBar.collectingSubscribers", id: "ui.incubator.progressBar.collectingSubscribers" })),
|
|
38
|
-
React.createElement(Grid, { item: true, xs: true },
|
|
39
|
-
React.createElement(Typography, { align: "right" },
|
|
40
|
-
React.createElement(FormattedMessage, { defaultMessage: "ui.incubator.progressBar.approved", id: "ui.incubator.progressBar.approved" }))))));
|
|
30
|
+
return (_jsxs(Box, Object.assign({ className: className }, { children: [_jsx(LinearProgress, Object.assign({ variant: "determinate" }, props)), _jsx(Box, Object.assign({ sx: { position: 'absolute', top: '3px', left: props.value + 2 + '%', transform: 'translateX(-50%)' } }, { children: props.subscribers !== 0 && (_jsx(Typography, Object.assign({ variant: "body2", color: "text.secondary" }, { children: props.subscribers }))) })), _jsxs(Grid, Object.assign({ container: true, spacing: 2, className: className }, { children: [_jsx(Grid, Object.assign({ item: true, xs: true }, { children: _jsx(Typography, { children: _jsx(FormattedMessage, { defaultMessage: "ui.incubator.progressBar.proposal", id: "ui.incubator.progressBar.proposal" }) }) })), _jsx(Grid, Object.assign({ item: true, xs: true }, { children: _jsx(FormattedMessage, { defaultMessage: "ui.incubator.progressBar.collectingSubscribers", id: "ui.incubator.progressBar.collectingSubscribers" }) })), _jsx(Grid, Object.assign({ item: true, xs: true }, { children: _jsx(Typography, Object.assign({ align: "right" }, { children: _jsx(FormattedMessage, { defaultMessage: "ui.incubator.progressBar.approved", id: "ui.incubator.progressBar.approved" }) })) }))] }))] })));
|
|
41
31
|
}
|
|
42
32
|
/**
|
|
43
33
|
* > API documentation for the Community-JS Incubator component. Learn about the available props and the CSS API.
|
|
@@ -89,25 +79,15 @@ export default function Incubator(inProps) {
|
|
|
89
79
|
* Renders Incubator object
|
|
90
80
|
*/
|
|
91
81
|
if (!scIncubator) {
|
|
92
|
-
return
|
|
82
|
+
return _jsx(Skeleton, { elevation: 0 });
|
|
93
83
|
}
|
|
94
84
|
/**
|
|
95
85
|
* Renders root object (if not hidden by autoHide prop)
|
|
96
86
|
*/
|
|
97
87
|
if (autoHide) {
|
|
98
|
-
return
|
|
88
|
+
return _jsx(HiddenPlaceholder, {});
|
|
99
89
|
}
|
|
100
|
-
return (
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
React.createElement(Button, Object.assign({ variant: "text", className: classes.name }, ButtonProps), scIncubator.name),
|
|
104
|
-
React.createElement(Typography, { component: 'span' },
|
|
105
|
-
React.createElement(FormattedMessage, { defaultMessage: "ui.incubator.proposedBy", id: "ui.incubator.proposedBy", values: {
|
|
106
|
-
username: (React.createElement(Link, Object.assign({}, (!scIncubator.user.deleted && { to: scRoutingContext.url(SCRoutes.USER_PROFILE_ROUTE_NAME, scIncubator.user) }), { onClick: scIncubator.user.deleted ? () => setOpenAlert(true) : null }), scIncubator.user.username))
|
|
107
|
-
} })),
|
|
108
|
-
React.createElement(Typography, { component: 'p', className: !detailView ? classes.slogan : null }, scIncubator.slogan),
|
|
109
|
-
React.createElement(LinearProgressWithLabel, { className: classes.progressBar, value: renderVotes(scIncubator.subscribers_count, scIncubator.subscribers_threshold), subscribers: scIncubator.subscribers_count })),
|
|
110
|
-
React.createElement(CardActions, null,
|
|
111
|
-
React.createElement(IncubatorSubscribeButton, Object.assign({ incubator: scIncubator }, subscribeButtonProps)))),
|
|
112
|
-
openAlert && React.createElement(UserDeletedSnackBar, { open: openAlert, handleClose: () => setOpenAlert(false) })));
|
|
90
|
+
return (_jsxs(_Fragment, { children: [_jsxs(Root, Object.assign({ className: classNames(classes.root, className) }, rest, { children: [_jsxs(CardContent, { children: [_jsx(Button, Object.assign({ variant: "text", className: classes.name }, ButtonProps, { children: scIncubator.name })), _jsx(Typography, Object.assign({ component: 'span' }, { children: _jsx(FormattedMessage, { defaultMessage: "ui.incubator.proposedBy", id: "ui.incubator.proposedBy", values: {
|
|
91
|
+
username: (_jsx(Link, Object.assign({}, (!scIncubator.user.deleted && { to: scRoutingContext.url(SCRoutes.USER_PROFILE_ROUTE_NAME, scIncubator.user) }), { onClick: scIncubator.user.deleted ? () => setOpenAlert(true) : null }, { children: scIncubator.user.username })))
|
|
92
|
+
} }) })), _jsx(Typography, Object.assign({ component: 'p', className: !detailView ? classes.slogan : null }, { children: scIncubator.slogan })), _jsx(LinearProgressWithLabel, { className: classes.progressBar, value: renderVotes(scIncubator.subscribers_count, scIncubator.subscribers_threshold), subscribers: scIncubator.subscribers_count })] }), _jsx(CardActions, { children: _jsx(IncubatorSubscribeButton, Object.assign({ incubator: scIncubator }, subscribeButtonProps)) })] })), openAlert && _jsx(UserDeletedSnackBar, { open: openAlert, handleClose: () => setOpenAlert(false) })] }));
|
|
113
93
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { styled } from '@mui/material/styles';
|
|
3
3
|
import Skeleton from '@mui/material/Skeleton';
|
|
4
4
|
import Widget from '../Widget';
|
|
@@ -40,23 +40,5 @@ const Root = styled(Widget, {
|
|
|
40
40
|
*
|
|
41
41
|
*/
|
|
42
42
|
export default function IncubatorSkeleton(props) {
|
|
43
|
-
return (
|
|
44
|
-
React.createElement(CardContent, null,
|
|
45
|
-
React.createElement(Typography, { className: classes.primary },
|
|
46
|
-
React.createElement(Skeleton, { animation: "wave", height: 20, width: "40%", variant: "text" })),
|
|
47
|
-
React.createElement(Typography, { className: classes.secondary },
|
|
48
|
-
React.createElement(Skeleton, { animation: "wave", height: 10, width: "50%", variant: "text" }),
|
|
49
|
-
React.createElement(Skeleton, { animation: "wave", height: 10, width: "80%", variant: "text" })),
|
|
50
|
-
React.createElement(Grid, { container: true, spacing: 1, className: classes.progressBar },
|
|
51
|
-
React.createElement(Grid, { item: true, xs: 12, md: 12 },
|
|
52
|
-
React.createElement(Skeleton, { animation: "wave", height: 20, width: "100%", variant: "rectangular" })),
|
|
53
|
-
React.createElement(Grid, { item: true, xs: true },
|
|
54
|
-
React.createElement(Skeleton, { animation: "wave", height: 10, width: "100%", variant: "text" })),
|
|
55
|
-
React.createElement(Grid, { item: true, xs: true },
|
|
56
|
-
React.createElement(Skeleton, { animation: "wave", height: 10, width: "100%", variant: "text" })),
|
|
57
|
-
React.createElement(Grid, { item: true, xs: true },
|
|
58
|
-
React.createElement(Skeleton, { animation: "wave", height: 10, width: "100%", variant: "text" })))),
|
|
59
|
-
React.createElement(CardActions, { className: classes.action },
|
|
60
|
-
React.createElement(Button, { disabled: true, variant: 'outlined', size: 'small' },
|
|
61
|
-
React.createElement(Skeleton, { animation: "wave", height: 20, width: 50, variant: "text" })))));
|
|
43
|
+
return (_jsxs(Root, Object.assign({ className: classes.root }, props, { children: [_jsxs(CardContent, { children: [_jsx(Typography, Object.assign({ className: classes.primary }, { children: _jsx(Skeleton, { animation: "wave", height: 20, width: "40%", variant: "text" }) })), _jsxs(Typography, Object.assign({ className: classes.secondary }, { children: [_jsx(Skeleton, { animation: "wave", height: 10, width: "50%", variant: "text" }), _jsx(Skeleton, { animation: "wave", height: 10, width: "80%", variant: "text" })] })), _jsxs(Grid, Object.assign({ container: true, spacing: 1, className: classes.progressBar }, { children: [_jsx(Grid, Object.assign({ item: true, xs: 12, md: 12 }, { children: _jsx(Skeleton, { animation: "wave", height: 20, width: "100%", variant: "rectangular" }) })), _jsx(Grid, Object.assign({ item: true, xs: true }, { children: _jsx(Skeleton, { animation: "wave", height: 10, width: "100%", variant: "text" }) })), _jsx(Grid, Object.assign({ item: true, xs: true }, { children: _jsx(Skeleton, { animation: "wave", height: 10, width: "100%", variant: "text" }) })), _jsx(Grid, Object.assign({ item: true, xs: true }, { children: _jsx(Skeleton, { animation: "wave", height: 10, width: "100%", variant: "text" }) }))] }))] }), _jsx(CardActions, Object.assign({ className: classes.action }, { children: _jsx(Button, Object.assign({ disabled: true, variant: 'outlined', size: 'small' }, { children: _jsx(Skeleton, { animation: "wave", height: 20, width: 50, variant: "text" }) })) }))] })));
|
|
62
44
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { __awaiter, __rest } from "tslib";
|
|
2
|
-
import
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
3
|
+
import { useContext, useEffect, useMemo, useState } from 'react';
|
|
3
4
|
import { styled } from '@mui/material/styles';
|
|
4
5
|
import { defineMessages, FormattedMessage, useIntl } from 'react-intl';
|
|
5
6
|
import { TextField, Typography, Box, Avatar, Button, CardContent, Alert, FormGroup, AvatarGroup, List, ListItem } from '@mui/material';
|
|
@@ -234,49 +235,6 @@ export default function IncubatorDetail(inProps) {
|
|
|
234
235
|
/**
|
|
235
236
|
* Renders root element
|
|
236
237
|
*/
|
|
237
|
-
return (
|
|
238
|
-
|
|
239
|
-
React.createElement(Avatar, { className: classes.avatar, alt: scIncubator.user.avatar, src: scIncubator.user.avatar }),
|
|
240
|
-
React.createElement(Box, null,
|
|
241
|
-
React.createElement(Typography, { className: classes.title },
|
|
242
|
-
`${intl.formatMessage(messages.intro, { name: scIncubator.name })}`,
|
|
243
|
-
" "),
|
|
244
|
-
React.createElement(Typography, { component: 'span' },
|
|
245
|
-
React.createElement(Link, Object.assign({}, (!scIncubator.user.deleted && { to: scRoutingContext.url(SCRoutes.USER_PROFILE_ROUTE_NAME, scIncubator.user) }), { onClick: scIncubator.user.deleted ? () => setOpenAlert(true) : null }),
|
|
246
|
-
"@",
|
|
247
|
-
scIncubator.user.username)))), open: open, onClose: onClose, className: classNames(classes.root, className) }, rest),
|
|
248
|
-
React.createElement(Box, null,
|
|
249
|
-
React.createElement(Incubator, Object.assign({ elevation: 0, incubator: scIncubator, detailView: true, subscribeButtonProps: { onSubscribe: handleUpdates } }, IncubatorProps)),
|
|
250
|
-
React.createElement(Box, { className: classes.subscribers }, loading && !scIncubator ? (React.createElement(AvatarGroupSkeleton, Object.assign({}, rest))) : (React.createElement(React.Fragment, null, total > 0 ? (React.createElement(Button, { onClick: handleToggleSubscribersDialog, disabled: loading || !scIncubator },
|
|
251
|
-
React.createElement(AvatarGroup, Object.assign({}, rest),
|
|
252
|
-
subscribers.map((u) => (React.createElement(Avatar, { key: u.id, alt: u.username, src: u.avatar }))),
|
|
253
|
-
[...Array(Math.max(0, total - subscribers.length))].map((x, i // Add max to 0 to prevent creation of array with negative index during state update
|
|
254
|
-
) => (React.createElement(Avatar, { key: i })))))) : null))),
|
|
255
|
-
openSubscribersDialog && (React.createElement(BaseDialog, { title: React.createElement(React.Fragment, null,
|
|
256
|
-
React.createElement(FormattedMessage, { defaultMessage: "ui.incubatorDetail.subscribersSection.title", id: "ui.incubatorDetail.subscribersSection.title" }),
|
|
257
|
-
" (",
|
|
258
|
-
total,
|
|
259
|
-
")"), onClose: handleToggleSubscribersDialog, open: openSubscribersDialog }, loading ? (React.createElement(CentralProgress, { size: 50 })) : (React.createElement(InfiniteScroll, { dataLength: total, next: fetchSubscribers, hasMoreNext: next !== null, loaderNext: React.createElement(CentralProgress, { size: 30 }), height: 400, endMessage: React.createElement(Typography, { variant: "body2", align: "center", fontWeight: "bold" },
|
|
260
|
-
React.createElement(FormattedMessage, { id: "ui.incubatorDetail.subscribersSection.noMoreSubscribers", defaultMessage: "ui.incubatorDetail.subscribersSection.noMoreSubscribers" })) },
|
|
261
|
-
React.createElement(List, null, subscribers.map((s, index) => (React.createElement(ListItem, { key: (s.id, index) },
|
|
262
|
-
React.createElement(User, { elevation: 0, user: s, key: index }))))))))),
|
|
263
|
-
React.createElement(Widget, { elevation: 1, className: classes.shareCard },
|
|
264
|
-
React.createElement(CardContent, null,
|
|
265
|
-
React.createElement(Typography, { variant: 'h6' },
|
|
266
|
-
React.createElement(FormattedMessage, { id: "ui.incubatorDetail.shareSection.title", defaultMessage: "ui.incubatorDetail.shareSection.title" })),
|
|
267
|
-
React.createElement(Typography, { variant: 'subtitle1' },
|
|
268
|
-
React.createElement(FormattedMessage, { id: "ui.incubatorDetail.shareSection.share", defaultMessage: "ui.incubatorDetail.shareSection.share" })),
|
|
269
|
-
React.createElement(FormGroup, { className: classes.copyUrlForm },
|
|
270
|
-
React.createElement(TextField, { className: classes.copyText, variant: "outlined", value: portal }),
|
|
271
|
-
React.createElement(Button, { className: classes.copyButton, variant: "contained", onClick: copy },
|
|
272
|
-
React.createElement(FormattedMessage, { id: "ui.incubatorDetail.shareSection.button.copy", defaultMessage: "ui.incubatorDetail.shareSection.button.copy" }))),
|
|
273
|
-
alert && (React.createElement(Alert, { onClose: () => setAlert(false) },
|
|
274
|
-
React.createElement(FormattedMessage, { id: "ui.incubatorDetail.shareSection.copied", defaultMessage: "ui.incubatorDetail.shareSection.copied" }))),
|
|
275
|
-
isSocialShareEnabled && (React.createElement(Typography, { variant: 'subtitle2' },
|
|
276
|
-
React.createElement(FormattedMessage, { id: "ui.incubatorDetail.shareSection.invite", defaultMessage: "ui.incubatorDetail.shareSection.invite" }))),
|
|
277
|
-
React.createElement(Box, { className: classes.shareSection },
|
|
278
|
-
facebookShareEnabled && (React.createElement(Icon, { classes: { root: classes.shareMenuIcon }, fontSize: "small", onClick: () => window.open(FACEBOOK_SHARE + portal, 'facebook-share-dialog', 'width=626,height=436') }, "facebook")),
|
|
279
|
-
xShareEnabled && (React.createElement(Icon, { classes: { root: classes.shareMenuIcon }, fontSize: "small", onClick: () => window.open(X_SHARE + portal, 'x-share-dialog', 'width=626,height=436') }, "x")),
|
|
280
|
-
linkedinShareEnabled && (React.createElement(Icon, { classes: { root: classes.shareMenuIcon }, fontSize: "small", onClick: () => window.open(LINKEDIN_SHARE + portal, 'linkedin-share-dialog', 'width=626,height=436') }, "linkedin"))))))),
|
|
281
|
-
openAlert && React.createElement(UserDeletedSnackBar, { open: openAlert, handleClose: () => setOpenAlert(false) })));
|
|
238
|
+
return (_jsxs(_Fragment, { children: [_jsx(Root, Object.assign({ title: _jsxs(_Fragment, { children: [_jsx(Avatar, { className: classes.avatar, alt: scIncubator.user.avatar, src: scIncubator.user.avatar }), _jsxs(Box, { children: [_jsxs(Typography, Object.assign({ className: classes.title }, { children: [`${intl.formatMessage(messages.intro, { name: scIncubator.name })}`, " "] })), _jsx(Typography, Object.assign({ component: 'span' }, { children: _jsxs(Link, Object.assign({}, (!scIncubator.user.deleted && { to: scRoutingContext.url(SCRoutes.USER_PROFILE_ROUTE_NAME, scIncubator.user) }), { onClick: scIncubator.user.deleted ? () => setOpenAlert(true) : null }, { children: ["@", scIncubator.user.username] })) }))] })] }), open: open, onClose: onClose, className: classNames(classes.root, className) }, rest, { children: _jsxs(Box, { children: [_jsx(Incubator, Object.assign({ elevation: 0, incubator: scIncubator, detailView: true, subscribeButtonProps: { onSubscribe: handleUpdates } }, IncubatorProps)), _jsx(Box, Object.assign({ className: classes.subscribers }, { children: loading && !scIncubator ? (_jsx(AvatarGroupSkeleton, Object.assign({}, rest))) : (_jsx(_Fragment, { children: total > 0 ? (_jsx(Button, Object.assign({ onClick: handleToggleSubscribersDialog, disabled: loading || !scIncubator }, { children: _jsxs(AvatarGroup, Object.assign({}, rest, { children: [subscribers.map((u) => (_jsx(Avatar, { alt: u.username, src: u.avatar }, u.id))), [...Array(Math.max(0, total - subscribers.length))].map((x, i // Add max to 0 to prevent creation of array with negative index during state update
|
|
239
|
+
) => (_jsx(Avatar, {}, i)))] })) }))) : null })) })), openSubscribersDialog && (_jsx(BaseDialog, Object.assign({ title: _jsxs(_Fragment, { children: [_jsx(FormattedMessage, { defaultMessage: "ui.incubatorDetail.subscribersSection.title", id: "ui.incubatorDetail.subscribersSection.title" }), " (", total, ")"] }), onClose: handleToggleSubscribersDialog, open: openSubscribersDialog }, { children: loading ? (_jsx(CentralProgress, { size: 50 })) : (_jsx(InfiniteScroll, Object.assign({ dataLength: total, next: fetchSubscribers, hasMoreNext: next !== null, loaderNext: _jsx(CentralProgress, { size: 30 }), height: 400, endMessage: _jsx(Typography, Object.assign({ variant: "body2", align: "center", fontWeight: "bold" }, { children: _jsx(FormattedMessage, { id: "ui.incubatorDetail.subscribersSection.noMoreSubscribers", defaultMessage: "ui.incubatorDetail.subscribersSection.noMoreSubscribers" }) })) }, { children: _jsx(List, { children: subscribers.map((s, index) => (_jsx(ListItem, { children: _jsx(User, { elevation: 0, user: s }, index) }, (s.id, index)))) }) }))) }))), _jsx(Widget, Object.assign({ elevation: 1, className: classes.shareCard }, { children: _jsxs(CardContent, { children: [_jsx(Typography, Object.assign({ variant: 'h6' }, { children: _jsx(FormattedMessage, { id: "ui.incubatorDetail.shareSection.title", defaultMessage: "ui.incubatorDetail.shareSection.title" }) })), _jsx(Typography, Object.assign({ variant: 'subtitle1' }, { children: _jsx(FormattedMessage, { id: "ui.incubatorDetail.shareSection.share", defaultMessage: "ui.incubatorDetail.shareSection.share" }) })), _jsxs(FormGroup, Object.assign({ className: classes.copyUrlForm }, { children: [_jsx(TextField, { className: classes.copyText, variant: "outlined", value: portal }), _jsx(Button, Object.assign({ className: classes.copyButton, variant: "contained", onClick: copy }, { children: _jsx(FormattedMessage, { id: "ui.incubatorDetail.shareSection.button.copy", defaultMessage: "ui.incubatorDetail.shareSection.button.copy" }) }))] })), alert && (_jsx(Alert, Object.assign({ onClose: () => setAlert(false) }, { children: _jsx(FormattedMessage, { id: "ui.incubatorDetail.shareSection.copied", defaultMessage: "ui.incubatorDetail.shareSection.copied" }) }))), isSocialShareEnabled && (_jsx(Typography, Object.assign({ variant: 'subtitle2' }, { children: _jsx(FormattedMessage, { id: "ui.incubatorDetail.shareSection.invite", defaultMessage: "ui.incubatorDetail.shareSection.invite" }) }))), _jsxs(Box, Object.assign({ className: classes.shareSection }, { children: [facebookShareEnabled && (_jsx(Icon, Object.assign({ classes: { root: classes.shareMenuIcon }, fontSize: "small", onClick: () => window.open(FACEBOOK_SHARE + portal, 'facebook-share-dialog', 'width=626,height=436') }, { children: "facebook" }))), xShareEnabled && (_jsx(Icon, Object.assign({ classes: { root: classes.shareMenuIcon }, fontSize: "small", onClick: () => window.open(X_SHARE + portal, 'x-share-dialog', 'width=626,height=436') }, { children: "x" }))), linkedinShareEnabled && (_jsx(Icon, Object.assign({ classes: { root: classes.shareMenuIcon }, fontSize: "small", onClick: () => window.open(LINKEDIN_SHARE + portal, 'linkedin-share-dialog', 'width=626,height=436') }, { children: "linkedin" })))] }))] }) }))] }) })), openAlert && _jsx(UserDeletedSnackBar, { open: openAlert, handleClose: () => setOpenAlert(false) })] }));
|
|
282
240
|
}
|
package/lib/esm/components/IncubatorListWidget/CreateIncubatorDialog/CreateIncubatorDialog.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { __rest } from "tslib";
|
|
2
|
-
import
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
3
|
+
import { useState } from 'react';
|
|
3
4
|
import { styled } from '@mui/material/styles';
|
|
4
5
|
import { defineMessages, FormattedMessage, useIntl } from 'react-intl';
|
|
5
6
|
import { TextField, Typography, FormGroup } from '@mui/material';
|
|
@@ -74,19 +75,11 @@ export default function CreateIncubatorDialog(props) {
|
|
|
74
75
|
}
|
|
75
76
|
let dialogContent;
|
|
76
77
|
if (submitted) {
|
|
77
|
-
dialogContent = (
|
|
78
|
-
React.createElement(FormattedMessage, { id: "ui.incubatorListWidget.createIncubatorDialog.propose.success", defaultMessage: "ui.incubatorListWidget.createIncubatorDialog.propose.success" })));
|
|
78
|
+
dialogContent = (_jsx(Typography, Object.assign({ variant: 'subtitle2', className: classes.submittedMessage }, { children: _jsx(FormattedMessage, { id: "ui.incubatorListWidget.createIncubatorDialog.propose.success", defaultMessage: "ui.incubatorListWidget.createIncubatorDialog.propose.success" }) })));
|
|
79
79
|
}
|
|
80
80
|
else {
|
|
81
|
-
dialogContent = (
|
|
82
|
-
React.createElement(Typography, { component: 'span', className: classes.intro },
|
|
83
|
-
React.createElement(FormattedMessage, { id: "ui.incubatorsListDialog.createIncubatorDialog.intro", defaultMessage: "ui.incubatorsListDialog.createIncubatorDialog.intro" })),
|
|
84
|
-
React.createElement(FormGroup, { className: classes.form },
|
|
85
|
-
React.createElement(TextField, { required: true, error: Boolean(error), className: classes.name, placeholder: `${intl.formatMessage(messages.name)}`, margin: "normal", value: name, onChange: (event) => setName(event.target.value) }),
|
|
86
|
-
React.createElement(TextField, { multiline: true, error: Boolean(error), className: classes.slogan, placeholder: `${intl.formatMessage(messages.slogan)}`, margin: "normal", value: slogan, onChange: (event) => setSlogan(event.target.value) })),
|
|
87
|
-
React.createElement(LoadingButton, { loading: isSubmitting, disabled: !name || Boolean(error), variant: "contained", onClick: handleSubmit },
|
|
88
|
-
React.createElement(FormattedMessage, { id: "ui.incubatorListWidget.createIncubatorDialog.button", defaultMessage: "ui.incubatorListWidget.createIncubatorDialog.button" }))));
|
|
81
|
+
dialogContent = (_jsxs(_Fragment, { children: [_jsx(Typography, Object.assign({ component: 'span', className: classes.intro }, { children: _jsx(FormattedMessage, { id: "ui.incubatorsListDialog.createIncubatorDialog.intro", defaultMessage: "ui.incubatorsListDialog.createIncubatorDialog.intro" }) })), _jsxs(FormGroup, Object.assign({ className: classes.form }, { children: [_jsx(TextField, { required: true, error: Boolean(error), className: classes.name, placeholder: `${intl.formatMessage(messages.name)}`, margin: "normal", value: name, onChange: (event) => setName(event.target.value) }), _jsx(TextField, { multiline: true, error: Boolean(error), className: classes.slogan, placeholder: `${intl.formatMessage(messages.slogan)}`, margin: "normal", value: slogan, onChange: (event) => setSlogan(event.target.value) })] })), _jsx(LoadingButton, Object.assign({ loading: isSubmitting, disabled: !name || Boolean(error), variant: "contained", onClick: handleSubmit }, { children: _jsx(FormattedMessage, { id: "ui.incubatorListWidget.createIncubatorDialog.button", defaultMessage: "ui.incubatorListWidget.createIncubatorDialog.button" }) }))] }));
|
|
89
82
|
}
|
|
90
83
|
// RENDER
|
|
91
|
-
return (
|
|
84
|
+
return (_jsx(Root, Object.assign({ title: _jsx(FormattedMessage, { id: "ui.incubatorListWidget.createIncubatorDialog.title", defaultMessage: "ui.incubatorListWidget.createIncubatorDialog.title" }), open: open, onClose: onClose, className: classNames(classes.root, className) }, rest, { children: dialogContent })));
|
|
92
85
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { __rest } from "tslib";
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
3
|
import React, { useContext, useEffect, useMemo, useReducer, useState } from 'react';
|
|
3
4
|
import { styled } from '@mui/material/styles';
|
|
4
5
|
import { Button, List, Typography, Box, IconButton, ListItem, useTheme, useMediaQuery } from '@mui/material';
|
|
@@ -214,39 +215,14 @@ export default function IncubatorListWidget(inProps) {
|
|
|
214
215
|
}, [dispatch, state.next, state.isLoadingNext, state.initialized]);
|
|
215
216
|
// RENDER
|
|
216
217
|
if ((!contentAvailability && !scUserContext.user) || (state.initialized && autoHide && !state.count)) {
|
|
217
|
-
return
|
|
218
|
+
return _jsx(HiddenPlaceholder, {});
|
|
218
219
|
}
|
|
219
220
|
if (!state.initialized) {
|
|
220
|
-
return
|
|
221
|
+
return _jsx(Skeleton, {});
|
|
221
222
|
}
|
|
222
|
-
const content = (
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
React.createElement(Icon, null, "help_outline")),
|
|
228
|
-
isOpen && (React.createElement(Popover, { open: isOpen, anchorEl: anchorEl, onClose: handlePopoverClose, anchorOrigin: {
|
|
229
|
-
vertical: 'bottom',
|
|
230
|
-
horizontal: 'right'
|
|
231
|
-
} },
|
|
232
|
-
React.createElement(Box, { sx: { p: '10px' } },
|
|
233
|
-
React.createElement(Typography, { component: 'span', sx: { whiteSpace: 'pre-line' } },
|
|
234
|
-
React.createElement(FormattedMessage, { id: "ui.incubatorListWidget.popover", defaultMessage: "ui.incubatorListWidget.popover" })))))),
|
|
235
|
-
!state.count ? (React.createElement(Typography, { className: classes.noResults, variant: "body2" },
|
|
236
|
-
React.createElement(FormattedMessage, { id: "ui.incubatorListWidget.noResults", defaultMessage: "ui.incubatorListWidget.noResults" }))) : (React.createElement(React.Fragment, null,
|
|
237
|
-
React.createElement(List, null, state.results.slice(0, state.visibleItems).map((incubator) => (React.createElement(ListItem, { key: incubator.id },
|
|
238
|
-
React.createElement(Incubator, Object.assign({ elevation: 0, incubator: incubator, subscribeButtonProps: { onSubscribe: handleSubscriptionsUpdate }, ButtonProps: { onClick: () => handleIncubatorDetailDialogOpening(incubator) } }, IncubatorProps)))))),
|
|
239
|
-
React.createElement(Box, { className: classes.actions },
|
|
240
|
-
state.count > state.visibleItems && (React.createElement(Button, { className: classes.showMore, onClick: handleToggleDialogOpen },
|
|
241
|
-
React.createElement(FormattedMessage, { id: "ui.incubatorListWidget.ShowAll", defaultMessage: "ui.incubatorListWidget.ShowAll" }))),
|
|
242
|
-
React.createElement(Button, { size: "small", onClick: () => setOpenCreateIncubatorDialog(true) },
|
|
243
|
-
React.createElement(FormattedMessage, { id: "ui.incubatorListWidget.SuggestNewTopic", defaultMessage: "ui.incubatorListWidget.SuggestNewTopic" }))))),
|
|
244
|
-
openDialog && (React.createElement(DialogRoot, Object.assign({ className: classes.dialogRoot, title: React.createElement(FormattedMessage, { id: "ui.incubatorListWidget.title", defaultMessage: "ui.incubatorListWidget.title" }), onClose: handleToggleDialogOpen, open: openDialog }, DialogProps),
|
|
245
|
-
React.createElement(InfiniteScroll, { dataLength: state.results.length, next: handleNext, hasMoreNext: Boolean(state.next), loaderNext: React.createElement(IncubatorSkeleton, Object.assign({ elevation: 0 }, IncubatorProps)), height: isMobile ? '100vh' : 400, endMessage: React.createElement(Typography, { className: classes.endMessage },
|
|
246
|
-
React.createElement(FormattedMessage, { id: "ui.incubatorListWidget.noMoreIncubators", defaultMessage: "ui.incubatorListWidget.noMoreIncubators" })) },
|
|
247
|
-
React.createElement(List, null, state.results.map((incubator) => (React.createElement(ListItem, { key: incubator.id },
|
|
248
|
-
React.createElement(Incubator, Object.assign({ elevation: 0, incubator: incubator, subscribeButtonProps: { onSubscribe: handleSubscriptionsUpdate }, ButtonProps: { onClick: () => handleIncubatorDetailDialogOpening(incubator) } }, IncubatorProps))))))))),
|
|
249
|
-
openCreateIncubatorDialog && (React.createElement(CreateIncubatorDialog, { className: classes.createDialog, open: openCreateIncubatorDialog, onClose: handleCreateIncubatorDialogClose })),
|
|
250
|
-
openIncubatorDetailDialog && (React.createElement(IncubatorDetail, { open: openIncubatorDetailDialog, onClose: handleIncubatorDetailDialogClose, incubator: detailObj, onSubscriptionsUpdate: handleSubscriptionsUpdate }))));
|
|
251
|
-
return (React.createElement(Root, Object.assign({ className: classNames(classes.root, className) }, rest), content));
|
|
223
|
+
const content = (_jsxs(CardContent, { children: [_jsxs(Box, Object.assign({ className: classes.header }, { children: [_jsx(Typography, Object.assign({ className: classes.title, variant: 'h5' }, { children: _jsx(FormattedMessage, { id: "ui.incubatorListWidget.title", defaultMessage: "ui.incubatorListWidget.title" }) })), _jsx(IconButton, Object.assign({ className: classes.helpPopover, color: "primary", "aria-label": "info", component: "span", onClick: handleClickHelpButton }, { children: _jsx(Icon, { children: "help_outline" }) })), isOpen && (_jsx(Popover, Object.assign({ open: isOpen, anchorEl: anchorEl, onClose: handlePopoverClose, anchorOrigin: {
|
|
224
|
+
vertical: 'bottom',
|
|
225
|
+
horizontal: 'right'
|
|
226
|
+
} }, { children: _jsx(Box, Object.assign({ sx: { p: '10px' } }, { children: _jsx(Typography, Object.assign({ component: 'span', sx: { whiteSpace: 'pre-line' } }, { children: _jsx(FormattedMessage, { id: "ui.incubatorListWidget.popover", defaultMessage: "ui.incubatorListWidget.popover" }) })) })) })))] })), !state.count ? (_jsx(Typography, Object.assign({ className: classes.noResults, variant: "body2" }, { children: _jsx(FormattedMessage, { id: "ui.incubatorListWidget.noResults", defaultMessage: "ui.incubatorListWidget.noResults" }) }))) : (_jsxs(React.Fragment, { children: [_jsx(List, { children: state.results.slice(0, state.visibleItems).map((incubator) => (_jsx(ListItem, { children: _jsx(Incubator, Object.assign({ elevation: 0, incubator: incubator, subscribeButtonProps: { onSubscribe: handleSubscriptionsUpdate }, ButtonProps: { onClick: () => handleIncubatorDetailDialogOpening(incubator) } }, IncubatorProps)) }, incubator.id))) }), _jsxs(Box, Object.assign({ className: classes.actions }, { children: [state.count > state.visibleItems && (_jsx(Button, Object.assign({ className: classes.showMore, onClick: handleToggleDialogOpen }, { children: _jsx(FormattedMessage, { id: "ui.incubatorListWidget.ShowAll", defaultMessage: "ui.incubatorListWidget.ShowAll" }) }))), _jsx(Button, Object.assign({ size: "small", onClick: () => setOpenCreateIncubatorDialog(true) }, { children: _jsx(FormattedMessage, { id: "ui.incubatorListWidget.SuggestNewTopic", defaultMessage: "ui.incubatorListWidget.SuggestNewTopic" }) }))] }))] })), openDialog && (_jsx(DialogRoot, Object.assign({ className: classes.dialogRoot, title: _jsx(FormattedMessage, { id: "ui.incubatorListWidget.title", defaultMessage: "ui.incubatorListWidget.title" }), onClose: handleToggleDialogOpen, open: openDialog }, DialogProps, { children: _jsx(InfiniteScroll, Object.assign({ dataLength: state.results.length, next: handleNext, hasMoreNext: Boolean(state.next), loaderNext: _jsx(IncubatorSkeleton, Object.assign({ elevation: 0 }, IncubatorProps)), height: isMobile ? '100vh' : 400, endMessage: _jsx(Typography, Object.assign({ className: classes.endMessage }, { children: _jsx(FormattedMessage, { id: "ui.incubatorListWidget.noMoreIncubators", defaultMessage: "ui.incubatorListWidget.noMoreIncubators" }) })) }, { children: _jsx(List, { children: state.results.map((incubator) => (_jsx(ListItem, { children: _jsx(Incubator, Object.assign({ elevation: 0, incubator: incubator, subscribeButtonProps: { onSubscribe: handleSubscriptionsUpdate }, ButtonProps: { onClick: () => handleIncubatorDetailDialogOpening(incubator) } }, IncubatorProps)) }, incubator.id))) }) })) }))), openCreateIncubatorDialog && (_jsx(CreateIncubatorDialog, { className: classes.createDialog, open: openCreateIncubatorDialog, onClose: handleCreateIncubatorDialogClose })), openIncubatorDetailDialog && (_jsx(IncubatorDetail, { open: openIncubatorDetailDialog, onClose: handleIncubatorDetailDialogClose, incubator: detailObj, onSubscriptionsUpdate: handleSubscriptionsUpdate }))] }));
|
|
227
|
+
return (_jsx(Root, Object.assign({ className: classNames(classes.root, className) }, rest, { children: content })));
|
|
252
228
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import CardContent from '@mui/material/CardContent';
|
|
3
3
|
import List from '@mui/material/List';
|
|
4
4
|
import { styled } from '@mui/material/styles';
|
|
@@ -35,7 +35,5 @@ const Root = styled(Widget, {
|
|
|
35
35
|
*
|
|
36
36
|
*/
|
|
37
37
|
export default function IncubatorListWidgetSkeleton(props) {
|
|
38
|
-
return (
|
|
39
|
-
React.createElement(CardContent, null,
|
|
40
|
-
React.createElement(List, { className: classes.list }, [...Array(4)].map((category, index) => (React.createElement(IncubatorSkeleton, { key: index, elevation: 0 })))))));
|
|
38
|
+
return (_jsx(Root, Object.assign({ className: classes.root }, props, { children: _jsx(CardContent, { children: _jsx(List, Object.assign({ className: classes.list }, { children: [...Array(4)].map((category, index) => (_jsx(IncubatorSkeleton, { elevation: 0 }, index))) })) }) })));
|
|
41
39
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { __rest } from "tslib";
|
|
2
|
-
import
|
|
2
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
+
import { useEffect, useState } from 'react';
|
|
3
4
|
import { styled } from '@mui/material/styles';
|
|
4
5
|
import { SCOPE_SC_UI } from '../../constants/Errors';
|
|
5
6
|
import { LoadingButton } from '@mui/lab';
|
|
@@ -85,5 +86,5 @@ export default function IncubatorSubscribeButton(inProps) {
|
|
|
85
86
|
subscribe();
|
|
86
87
|
}
|
|
87
88
|
};
|
|
88
|
-
return (
|
|
89
|
+
return (_jsx(Root, Object.assign({ size: "small", variant: subscribed ? 'contained' : 'outlined', onClick: handleSubscribeAction, loading: scUserContext.user ? subscribed === null || scSubscribedIncubatorsManager.isLoading(scIncubator) : null, className: classNames(classes.root, className) }, rest, { children: subscribed && scUserContext.user ? (_jsx(FormattedMessage, { defaultMessage: "ui.incubator.subscribeButton.button.subscribed", id: "ui.incubator.subscribeButton.button.subscribed" })) : (_jsx(FormattedMessage, { defaultMessage: "ui.incubator.subscribeButton.button.subscribe", id: "ui.incubator.subscribeButton.button.subscribe" })) })));
|
|
89
90
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { __rest } from "tslib";
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
3
|
import React, { useEffect, useMemo, useReducer, useState } from 'react';
|
|
3
4
|
import { styled } from '@mui/material/styles';
|
|
4
5
|
import { Button, List, Typography, ListItem, useMediaQuery, useTheme } from '@mui/material';
|
|
@@ -181,25 +182,11 @@ export default function IncubatorSuggestionWidget(inProps) {
|
|
|
181
182
|
}, [dispatch, state.next, state.isLoadingNext, state.initialized]);
|
|
182
183
|
// RENDER
|
|
183
184
|
if ((autoHide && !state.count && state.initialized) || !scUserContext.user) {
|
|
184
|
-
return
|
|
185
|
+
return _jsx(HiddenPlaceholder, {});
|
|
185
186
|
}
|
|
186
187
|
if (!state.initialized) {
|
|
187
|
-
return
|
|
188
|
+
return _jsx(Skeleton, {});
|
|
188
189
|
}
|
|
189
|
-
const content = (React.
|
|
190
|
-
|
|
191
|
-
React.createElement(FormattedMessage, { id: "ui.incubatorSuggestionWidget.title", defaultMessage: "ui.incubatorSuggestionWidget.title" })),
|
|
192
|
-
!state.count ? (React.createElement(Typography, { className: classes.noResults, variant: "body2" },
|
|
193
|
-
React.createElement(FormattedMessage, { id: "ui.incubatorSuggestionWidget.noResults", defaultMessage: "ui.incubatorSuggestionWidget.noResults" }))) : (React.createElement(React.Fragment, null,
|
|
194
|
-
React.createElement(List, null, state.results.slice(0, state.visibleItems).map((incubator) => (React.createElement(ListItem, { key: incubator.id },
|
|
195
|
-
React.createElement(Incubator, Object.assign({ elevation: 0, incubator: incubator, subscribeButtonProps: { onSubscribe: handleSubscriptionsUpdate }, ButtonProps: { onClick: () => handleIncubatorDetailDialogOpening(incubator) } }, IncubatorProps)))))),
|
|
196
|
-
state.count > state.visibleItems && (React.createElement(Button, { className: classes.showMore, onClick: handleToggleDialogOpen },
|
|
197
|
-
React.createElement(FormattedMessage, { id: "ui.incubatorSuggestionWidget.ShowAll", defaultMessage: "ui.incubatorSuggestionWidget.ShowAll" }))))),
|
|
198
|
-
openDialog && (React.createElement(DialogRoot, Object.assign({ className: classes.dialogRoot, title: React.createElement(FormattedMessage, { id: "ui.incubatorSuggestionWidget.title", defaultMessage: "ui.incubatorSuggestionWidget.title" }), onClose: handleToggleDialogOpen, open: openDialog }, DialogProps),
|
|
199
|
-
React.createElement(InfiniteScroll, { dataLength: state.results.length, next: handleNext, hasMoreNext: Boolean(state.next), loaderNext: React.createElement(IncubatorSkeleton, Object.assign({ elevation: 0 }, IncubatorProps)), height: isMobile ? '100vh' : 400, endMessage: React.createElement(Typography, { className: classes.endMessage },
|
|
200
|
-
React.createElement(FormattedMessage, { id: "ui.incubatorSuggestionWidget.noMoreIncubators", defaultMessage: "ui.incubatorSuggestionWidget.noMoreIncubators" })) },
|
|
201
|
-
React.createElement(List, null, state.results.map((incubator) => (React.createElement(ListItem, { key: incubator.id },
|
|
202
|
-
React.createElement(Incubator, Object.assign({ elevation: 0, incubator: incubator, subscribeButtonProps: { onSubscribe: handleSubscriptionsUpdate }, ButtonProps: { onClick: () => handleIncubatorDetailDialogOpening(incubator) } }, IncubatorProps))))))))),
|
|
203
|
-
openIncubatorDetailDialog && (React.createElement(IncubatorDetail, { open: openIncubatorDetailDialog, onClose: handleIncubatorDetailDialogClose, incubator: detailObj, onSubscriptionsUpdate: handleSubscriptionsUpdate }))));
|
|
204
|
-
return (React.createElement(Root, Object.assign({ className: classNames(classes.root, className) }, rest), content));
|
|
190
|
+
const content = (_jsxs(CardContent, { children: [_jsx(Typography, Object.assign({ className: classes.title, variant: 'h5' }, { children: _jsx(FormattedMessage, { id: "ui.incubatorSuggestionWidget.title", defaultMessage: "ui.incubatorSuggestionWidget.title" }) })), !state.count ? (_jsx(Typography, Object.assign({ className: classes.noResults, variant: "body2" }, { children: _jsx(FormattedMessage, { id: "ui.incubatorSuggestionWidget.noResults", defaultMessage: "ui.incubatorSuggestionWidget.noResults" }) }))) : (_jsxs(React.Fragment, { children: [_jsx(List, { children: state.results.slice(0, state.visibleItems).map((incubator) => (_jsx(ListItem, { children: _jsx(Incubator, Object.assign({ elevation: 0, incubator: incubator, subscribeButtonProps: { onSubscribe: handleSubscriptionsUpdate }, ButtonProps: { onClick: () => handleIncubatorDetailDialogOpening(incubator) } }, IncubatorProps)) }, incubator.id))) }), state.count > state.visibleItems && (_jsx(Button, Object.assign({ className: classes.showMore, onClick: handleToggleDialogOpen }, { children: _jsx(FormattedMessage, { id: "ui.incubatorSuggestionWidget.ShowAll", defaultMessage: "ui.incubatorSuggestionWidget.ShowAll" }) })))] })), openDialog && (_jsx(DialogRoot, Object.assign({ className: classes.dialogRoot, title: _jsx(FormattedMessage, { id: "ui.incubatorSuggestionWidget.title", defaultMessage: "ui.incubatorSuggestionWidget.title" }), onClose: handleToggleDialogOpen, open: openDialog }, DialogProps, { children: _jsx(InfiniteScroll, Object.assign({ dataLength: state.results.length, next: handleNext, hasMoreNext: Boolean(state.next), loaderNext: _jsx(IncubatorSkeleton, Object.assign({ elevation: 0 }, IncubatorProps)), height: isMobile ? '100vh' : 400, endMessage: _jsx(Typography, Object.assign({ className: classes.endMessage }, { children: _jsx(FormattedMessage, { id: "ui.incubatorSuggestionWidget.noMoreIncubators", defaultMessage: "ui.incubatorSuggestionWidget.noMoreIncubators" }) })) }, { children: _jsx(List, { children: state.results.map((incubator) => (_jsx(ListItem, { children: _jsx(Incubator, Object.assign({ elevation: 0, incubator: incubator, subscribeButtonProps: { onSubscribe: handleSubscriptionsUpdate }, ButtonProps: { onClick: () => handleIncubatorDetailDialogOpening(incubator) } }, IncubatorProps)) }, incubator.id))) }) })) }))), openIncubatorDetailDialog && (_jsx(IncubatorDetail, { open: openIncubatorDetailDialog, onClose: handleIncubatorDetailDialogClose, incubator: detailObj, onSubscriptionsUpdate: handleSubscriptionsUpdate }))] }));
|
|
191
|
+
return (_jsx(Root, Object.assign({ className: classNames(classes.root, className) }, rest, { children: content })));
|
|
205
192
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import CardContent from '@mui/material/CardContent';
|
|
3
3
|
import List from '@mui/material/List';
|
|
4
4
|
import { styled } from '@mui/material/styles';
|
|
@@ -35,7 +35,5 @@ const Root = styled(Widget, {
|
|
|
35
35
|
*
|
|
36
36
|
*/
|
|
37
37
|
export default function IncubatorSuggestionWidgetSkeleton(props) {
|
|
38
|
-
return (
|
|
39
|
-
React.createElement(CardContent, null,
|
|
40
|
-
React.createElement(List, { className: classes.list }, [...Array(4)].map((category, index) => (React.createElement(IncubatorSkeleton, { key: index, elevation: 0 })))))));
|
|
38
|
+
return (_jsx(Root, Object.assign({ className: classes.root }, props, { children: _jsx(CardContent, { children: _jsx(List, Object.assign({ className: classes.list }, { children: [...Array(4)].map((category, index) => (_jsx(IncubatorSkeleton, { elevation: 0 }, index))) })) }) })));
|
|
41
39
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { __rest } from "tslib";
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
3
|
import React, { useCallback, useMemo, useState } from 'react';
|
|
3
4
|
import { SCFeedTypologyType } from '@selfcommunity/types';
|
|
4
5
|
import { Link, SCPreferences, SCRoutes, UserUtils, useSCContext, useSCPreferences, useSCRouting, useSCUser } from '@selfcommunity/react-core';
|
|
@@ -69,7 +70,7 @@ export default function InlineComposerWidget(inProps) {
|
|
|
69
70
|
const handleOpen = useCallback(() => {
|
|
70
71
|
if (scUserContext.user) {
|
|
71
72
|
if (UserUtils.isBlocked(scUserContext.user)) {
|
|
72
|
-
enqueueSnackbar(
|
|
73
|
+
enqueueSnackbar(_jsx(FormattedMessage, { id: "ui.common.userBlocked", defaultMessage: "ui.common.userBlocked" }), {
|
|
73
74
|
variant: 'warning',
|
|
74
75
|
autoHideDuration: 3000
|
|
75
76
|
});
|
|
@@ -90,7 +91,7 @@ export default function InlineComposerWidget(inProps) {
|
|
|
90
91
|
onSuccess(feedObject);
|
|
91
92
|
}
|
|
92
93
|
else {
|
|
93
|
-
enqueueSnackbar(
|
|
94
|
+
enqueueSnackbar(_jsx(FormattedMessage, { id: "ui.inlineComposerWidget.success", defaultMessage: "ui.inlineComposerWidget.success" }), {
|
|
94
95
|
variant: 'success',
|
|
95
96
|
autoHideDuration: 3000
|
|
96
97
|
});
|
|
@@ -98,14 +99,7 @@ export default function InlineComposerWidget(inProps) {
|
|
|
98
99
|
setOpen(false);
|
|
99
100
|
};
|
|
100
101
|
if (!UserUtils.isStaff(scUserContext.user) && onlyStaffEnabled) {
|
|
101
|
-
return
|
|
102
|
+
return _jsx(HiddenPlaceholder, {});
|
|
102
103
|
}
|
|
103
|
-
return (
|
|
104
|
-
React.createElement(Root, Object.assign({ className: classes.root }, rest),
|
|
105
|
-
React.createElement(CardContent, { className: classes.content },
|
|
106
|
-
React.createElement(Box, { className: classes.input },
|
|
107
|
-
React.createElement(Button, { variant: "text", disableFocusRipple: true, disableRipple: true, disableElevation: true, onClick: handleOpen, fullWidth: true, color: "inherit" }, label !== null && label !== void 0 ? label : React.createElement(FormattedMessage, { id: "ui.inlineComposerWidget.label", defaultMessage: "ui.inlineComposerWidget.label" }))),
|
|
108
|
-
React.createElement(Box, { className: classes.avatar }, !scUserContext.user ? (React.createElement(Avatar, { variant: "circular" })) : (React.createElement(Link, { to: scRoutingContext.url(SCRoutes.USER_PROFILE_ROUTE_NAME, scUserContext.user) },
|
|
109
|
-
React.createElement(Avatar, { alt: scUserContext.user.username, variant: "circular", src: scUserContext.user.avatar })))))),
|
|
110
|
-
React.createElement(Composer, { open: open, mediaObjectTypes: mediaObjectTypes, defaultValue: defaultValue, fullWidth: true, onClose: handleClose, onSuccess: handleSuccess, feedType: feedType })));
|
|
104
|
+
return (_jsxs(React.Fragment, { children: [_jsx(Root, Object.assign({ className: classes.root }, rest, { children: _jsxs(CardContent, Object.assign({ className: classes.content }, { children: [_jsx(Box, Object.assign({ className: classes.input }, { children: _jsx(Button, Object.assign({ variant: "text", disableFocusRipple: true, disableRipple: true, disableElevation: true, onClick: handleOpen, fullWidth: true, color: "inherit" }, { children: label !== null && label !== void 0 ? label : _jsx(FormattedMessage, { id: "ui.inlineComposerWidget.label", defaultMessage: "ui.inlineComposerWidget.label" }) })) })), _jsx(Box, Object.assign({ className: classes.avatar }, { children: !scUserContext.user ? (_jsx(Avatar, { variant: "circular" })) : (_jsx(Link, Object.assign({ to: scRoutingContext.url(SCRoutes.USER_PROFILE_ROUTE_NAME, scUserContext.user) }, { children: _jsx(Avatar, { alt: scUserContext.user.username, variant: "circular", src: scUserContext.user.avatar }) }))) }))] })) })), _jsx(Composer, { open: open, mediaObjectTypes: mediaObjectTypes, defaultValue: defaultValue, fullWidth: true, onClose: handleClose, onSuccess: handleSuccess, feedType: feedType })] }));
|
|
111
105
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { styled } from '@mui/material/styles';
|
|
3
3
|
import Skeleton from '@mui/material/Skeleton';
|
|
4
4
|
import { Box, CardContent } from '@mui/material';
|
|
@@ -38,10 +38,5 @@ const Root = styled(Widget, {
|
|
|
38
38
|
*
|
|
39
39
|
*/
|
|
40
40
|
export default function InlineComposerWidgetSkeleton() {
|
|
41
|
-
return (
|
|
42
|
-
React.createElement(CardContent, { className: classes.content },
|
|
43
|
-
React.createElement(Box, { className: classes.input },
|
|
44
|
-
React.createElement(Skeleton, { animation: "wave", variant: "text" })),
|
|
45
|
-
React.createElement(Box, { className: classes.avatar },
|
|
46
|
-
React.createElement(Skeleton, { className: classes.avatar, animation: "wave", variant: "circular" })))));
|
|
41
|
+
return (_jsx(Root, Object.assign({ className: classes.root }, { children: _jsxs(CardContent, Object.assign({ className: classes.content }, { children: [_jsx(Box, Object.assign({ className: classes.input }, { children: _jsx(Skeleton, { animation: "wave", variant: "text" }) })), _jsx(Box, Object.assign({ className: classes.avatar }, { children: _jsx(Skeleton, { className: classes.avatar, animation: "wave", variant: "circular" }) }))] })) })));
|
|
47
42
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { __rest } from "tslib";
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
3
|
import React, { useEffect, useMemo, useState } from 'react';
|
|
3
4
|
import { FormattedMessage } from 'react-intl';
|
|
4
5
|
import TextField from '@mui/material/TextField';
|
|
@@ -50,7 +51,7 @@ export default function LocationAutocomplete(inProps) {
|
|
|
50
51
|
});
|
|
51
52
|
const { defaultValue = null, disabled = false, onChange, TextFieldProps = {
|
|
52
53
|
variant: 'outlined',
|
|
53
|
-
label:
|
|
54
|
+
label: _jsx(FormattedMessage, { id: "ui.locationAutocomplete.label", defaultMessage: "ui.composer.locations.label" })
|
|
54
55
|
} } = props, rest = __rest(props, ["defaultValue", "disabled", "onChange", "TextFieldProps"]);
|
|
55
56
|
// State
|
|
56
57
|
const [isLoading, setIsLoading] = useState(false);
|
|
@@ -99,15 +100,13 @@ export default function LocationAutocomplete(inProps) {
|
|
|
99
100
|
}
|
|
100
101
|
return [...locations, { lat: value.lat, lng: value.lng, full_address: value.location }];
|
|
101
102
|
}, [value, locations]);
|
|
102
|
-
return (
|
|
103
|
+
return (_jsx(Root, Object.assign({ className: classes.root, options: options || [],
|
|
103
104
|
// @ts-ignore
|
|
104
|
-
getOptionLabel: (option) => (option === null || option === void 0 ? void 0 : option.full_address) || (option === null || option === void 0 ? void 0 : option.location) || '', filterOptions: (x) => x, autoComplete: true, includeInputInList: true, value: value || null, selectOnFocus: true, handleHomeEndKeys: true, disabled: disabled, noOptionsText:
|
|
105
|
-
return (
|
|
106
|
-
isLoading ? React.createElement(CircularProgress, { color: "inherit", size: 20 }) : null,
|
|
107
|
-
params.InputProps.endAdornment)) }) })));
|
|
105
|
+
getOptionLabel: (option) => (option === null || option === void 0 ? void 0 : option.full_address) || (option === null || option === void 0 ? void 0 : option.location) || '', filterOptions: (x) => x, autoComplete: true, includeInputInList: true, value: value || null, selectOnFocus: true, handleHomeEndKeys: true, disabled: disabled, noOptionsText: _jsx(FormattedMessage, { id: "ui.locationAutocomplete.empty", defaultMessage: "ui.locationAutocomplete.empty" }), onChange: handleChange, onInputChange: handleSearch, isOptionEqualToValue: (option, value) => value.lat === option.lat && value.lng === option.lng, renderInput: (params) => {
|
|
106
|
+
return (_jsx(TextField, Object.assign({}, params, TextFieldProps, { margin: "dense", InputProps: Object.assign(Object.assign({}, params.InputProps), { autoComplete: 'location', endAdornment: (_jsxs(React.Fragment, { children: [isLoading ? _jsx(CircularProgress, { color: "inherit", size: 20 }) : null, params.InputProps.endAdornment] })) }) })));
|
|
108
107
|
}, renderOption: (props, option, { inputValue }) => {
|
|
109
108
|
const matches = match(option.full_address, inputValue);
|
|
110
109
|
const parts = parse(option.full_address, matches);
|
|
111
|
-
return (
|
|
110
|
+
return (_jsx("li", Object.assign({}, props, { style: { whiteSpace: 'break-spaces' } }, { children: parts.map((part, index) => part.highlight ? (_jsx("span", Object.assign({ style: { fontWeight: 700 } }, { children: part.text }), index)) : (part.text)) }), `${option.lat}_${option.lng}`));
|
|
112
111
|
} }, rest)));
|
|
113
112
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { __rest } from "tslib";
|
|
2
|
-
import
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { useContext, useEffect, useMemo, useState } from 'react';
|
|
3
4
|
import { styled } from '@mui/material/styles';
|
|
4
5
|
import CardContent from '@mui/material/CardContent';
|
|
5
6
|
import { Button, CardActions, Chip, Typography } from '@mui/material';
|
|
@@ -105,19 +106,10 @@ export default function LoyaltyProgramWidget(inProps) {
|
|
|
105
106
|
* Rendering
|
|
106
107
|
*/
|
|
107
108
|
if (!loyaltyEnabled || !scUserContext.user || (userId && userId !== scUserContext.user.id)) {
|
|
108
|
-
return
|
|
109
|
+
return _jsx(HiddenPlaceholder, {});
|
|
109
110
|
}
|
|
110
111
|
if (loading) {
|
|
111
|
-
return
|
|
112
|
+
return _jsx(Skeleton, {});
|
|
112
113
|
}
|
|
113
|
-
return (
|
|
114
|
-
React.createElement(CardContent, null,
|
|
115
|
-
React.createElement(Typography, { className: classes.title },
|
|
116
|
-
React.createElement(FormattedMessage, { id: "ui.loyaltyProgramWidget.title", defaultMessage: "ui.loyaltyProgramWidget.title" }))),
|
|
117
|
-
React.createElement(CardActions, { className: classes.actions },
|
|
118
|
-
React.createElement(Typography, { className: classes.points },
|
|
119
|
-
React.createElement(Chip, { size: 'medium', component: "span", label: points }),
|
|
120
|
-
React.createElement(FormattedMessage, { id: "ui.loyaltyProgramWidget.points", defaultMessage: "ui.loyaltyProgramWidget.points" })),
|
|
121
|
-
React.createElement(Button, { size: "small", variant: "outlined", className: classes.discoverMore, component: Link, to: scRoutingContext.url(SCRoutes.LOYALTY_ROUTE_NAME, {}) },
|
|
122
|
-
React.createElement(FormattedMessage, { id: "ui.loyaltyProgramWidget.discover", defaultMessage: "ui.loyaltyProgramWidget.discover" })))));
|
|
114
|
+
return (_jsxs(Root, Object.assign({ className: classNames(classes.root, className) }, rest, { children: [_jsx(CardContent, { children: _jsx(Typography, Object.assign({ className: classes.title }, { children: _jsx(FormattedMessage, { id: "ui.loyaltyProgramWidget.title", defaultMessage: "ui.loyaltyProgramWidget.title" }) })) }), _jsxs(CardActions, Object.assign({ className: classes.actions }, { children: [_jsxs(Typography, Object.assign({ className: classes.points }, { children: [_jsx(Chip, { size: 'medium', component: "span", label: points }), _jsx(FormattedMessage, { id: "ui.loyaltyProgramWidget.points", defaultMessage: "ui.loyaltyProgramWidget.points" })] })), _jsx(Button, Object.assign({ size: "small", variant: "outlined", className: classes.discoverMore, component: Link, to: scRoutingContext.url(SCRoutes.LOYALTY_ROUTE_NAME, {}) }, { children: _jsx(FormattedMessage, { id: "ui.loyaltyProgramWidget.discover", defaultMessage: "ui.loyaltyProgramWidget.discover" }) }))] }))] })));
|
|
123
115
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { styled } from '@mui/material/styles';
|
|
3
3
|
import { Button, CardActions, CardContent, Skeleton, Typography } from '@mui/material';
|
|
4
4
|
import Widget from '../Widget';
|
|
@@ -41,14 +41,5 @@ const Root = styled(Widget, {
|
|
|
41
41
|
*
|
|
42
42
|
*/
|
|
43
43
|
export default function LoyaltyProgramWidgetSkeleton() {
|
|
44
|
-
return (
|
|
45
|
-
React.createElement(CardContent, { className: classes.content },
|
|
46
|
-
React.createElement(Typography, { className: classes.title },
|
|
47
|
-
React.createElement(Skeleton, { animation: "wave", height: 25, width: "40%", variant: "rectangular" }))),
|
|
48
|
-
React.createElement(CardActions, { className: classes.actions },
|
|
49
|
-
React.createElement(Typography, { className: classes.points },
|
|
50
|
-
React.createElement(Skeleton, { animation: "wave", variant: "circular", width: 60, height: 30, className: classes.chip }),
|
|
51
|
-
React.createElement(Skeleton, { animation: "wave", height: 20, width: 90, variant: "rectangular" })),
|
|
52
|
-
React.createElement(Button, { disabled: true, variant: 'outlined', size: 'small' },
|
|
53
|
-
React.createElement(Skeleton, { animation: "wave", height: 20, width: 70, variant: "text" })))));
|
|
44
|
+
return (_jsxs(Root, Object.assign({ className: classes.root }, { children: [_jsx(CardContent, Object.assign({ className: classes.content }, { children: _jsx(Typography, Object.assign({ className: classes.title }, { children: _jsx(Skeleton, { animation: "wave", height: 25, width: "40%", variant: "rectangular" }) })) })), _jsxs(CardActions, Object.assign({ className: classes.actions }, { children: [_jsxs(Typography, Object.assign({ className: classes.points }, { children: [_jsx(Skeleton, { animation: "wave", variant: "circular", width: 60, height: 30, className: classes.chip }), _jsx(Skeleton, { animation: "wave", height: 20, width: 90, variant: "rectangular" })] })), _jsx(Button, Object.assign({ disabled: true, variant: 'outlined', size: 'small' }, { children: _jsx(Skeleton, { animation: "wave", height: 20, width: 70, variant: "text" }) }))] }))] })));
|
|
54
45
|
}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { __rest } from "tslib";
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
3
|
import { Box, Button, ListItem, Typography, Zoom } from '@mui/material';
|
|
3
4
|
import { Link, SCRoutes, useSCFetchCategories, useSCRouting } from '@selfcommunity/react-core';
|
|
4
|
-
import
|
|
5
|
+
import { useEffect, useState } from 'react';
|
|
5
6
|
import Category from '../Category';
|
|
6
7
|
import { FormattedMessage } from 'react-intl';
|
|
7
8
|
import { sortByAttr } from '@selfcommunity/utils';
|
|
@@ -52,14 +53,5 @@ export default function DefaultDrawerContent(inProps) {
|
|
|
52
53
|
onTouchMove: mouseLeave
|
|
53
54
|
});
|
|
54
55
|
//order
|
|
55
|
-
return (
|
|
56
|
-
React.createElement(Typography, { variant: "subtitle1" },
|
|
57
|
-
React.createElement("span", null,
|
|
58
|
-
React.createElement(FormattedMessage, { id: "ui.navigationMenuIconButton.defaultDrawerContent.category.title", defaultMessage: "ui.navigationMenuIconButton.defaultDrawerContent.category.title" })),
|
|
59
|
-
' ',
|
|
60
|
-
React.createElement(Button, { variant: "text", component: Link, color: "secondary", to: scRoutingContext.url(SCRoutes.CATEGORIES_LIST_ROUTE_NAME, {}) },
|
|
61
|
-
React.createElement(FormattedMessage, { id: "ui.navigationMenuIconButton.defaultDrawerContent.category.seeAll", defaultMessage: "ui.navigationMenuIconButton.defaultDrawerContent.category.seeAll" }))),
|
|
62
|
-
categoriesOrdered.map((c, index) => (React.createElement(Zoom, { in: true, style: { transform: isHovered[c.id] && 'scale(1.05)' }, key: index },
|
|
63
|
-
React.createElement(ListItem, { key: c.id },
|
|
64
|
-
React.createElement(Category, Object.assign({ ButtonBaseProps: { component: Link, to: scRoutingContext.url(SCRoutes.CATEGORY_ROUTE_NAME, c) }, elevation: 0, category: c, actions: null }, CategoryItemProps, getMouseEvents(() => handleMouseEnter(c.id), () => handleMouseLeave(c.id))))))))));
|
|
56
|
+
return (_jsxs(Root, Object.assign({ className: classNames(className, classes.root) }, rest, { children: [_jsxs(Typography, Object.assign({ variant: "subtitle1" }, { children: [_jsx("span", { children: _jsx(FormattedMessage, { id: "ui.navigationMenuIconButton.defaultDrawerContent.category.title", defaultMessage: "ui.navigationMenuIconButton.defaultDrawerContent.category.title" }) }), ' ', _jsx(Button, Object.assign({ variant: "text", component: Link, color: "secondary", to: scRoutingContext.url(SCRoutes.CATEGORIES_LIST_ROUTE_NAME, {}) }, { children: _jsx(FormattedMessage, { id: "ui.navigationMenuIconButton.defaultDrawerContent.category.seeAll", defaultMessage: "ui.navigationMenuIconButton.defaultDrawerContent.category.seeAll" }) }))] })), categoriesOrdered.map((c, index) => (_jsx(Zoom, Object.assign({ in: true, style: { transform: isHovered[c.id] && 'scale(1.05)' } }, { children: _jsx(ListItem, { children: _jsx(Category, Object.assign({ ButtonBaseProps: { component: Link, to: scRoutingContext.url(SCRoutes.CATEGORY_ROUTE_NAME, c) }, elevation: 0, category: c, actions: null }, CategoryItemProps, getMouseEvents(() => handleMouseEnter(c.id), () => handleMouseLeave(c.id)))) }, c.id) }), index)))] })));
|
|
65
57
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { __rest } from "tslib";
|
|
2
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
3
|
import { Link, SCPreferences, SCRoutes, useSCPreferences, useSCRouting } from '@selfcommunity/react-core';
|
|
3
|
-
import
|
|
4
|
+
import { useMemo } from 'react';
|
|
4
5
|
import { styled } from '@mui/material/styles';
|
|
5
6
|
import { Box } from '@mui/material';
|
|
6
7
|
import classNames from 'classnames';
|
|
@@ -26,7 +27,5 @@ export default function DefaultHeaderContent(inProps) {
|
|
|
26
27
|
const _logo = useMemo(() => {
|
|
27
28
|
return SCPreferences.LOGO_NAVBAR_LOGO in scPreferences.preferences ? scPreferences.preferences[SCPreferences.LOGO_NAVBAR_LOGO].value : null;
|
|
28
29
|
}, [scPreferences.preferences]);
|
|
29
|
-
return (
|
|
30
|
-
React.createElement(Link, { to: scRoutingContext.url(SCRoutes.HOME_ROUTE_NAME, {}) },
|
|
31
|
-
React.createElement("img", { src: _logo, alt: "logo" }))));
|
|
30
|
+
return (_jsx(Root, Object.assign({ className: classNames(className, classes.root) }, rest, { children: _jsx(Link, Object.assign({ to: scRoutingContext.url(SCRoutes.HOME_ROUTE_NAME, {}) }, { children: _jsx("img", { src: _logo, alt: "logo" }) })) })));
|
|
32
31
|
}
|