@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.
Files changed (612) hide show
  1. package/lib/cjs/components/AccountChangeMailValidation/AccountChangeMailValidation.js +3 -8
  2. package/lib/cjs/components/AccountDataPortability/AccountDataPortability.js +16 -25
  3. package/lib/cjs/components/AccountDataPortabilityButton/AccountDataPortabilityButton.js +3 -6
  4. package/lib/cjs/components/AccountDelete/AccountDelete.js +16 -23
  5. package/lib/cjs/components/AccountDeleteButton/AccountDeleteButton.js +3 -6
  6. package/lib/cjs/components/AccountRecover/AccountRecover.js +8 -12
  7. package/lib/cjs/components/AccountReset/AccountReset.js +3 -12
  8. package/lib/cjs/components/AccountVerify/AccountVerify.js +3 -8
  9. package/lib/cjs/components/BottomNavigation/BottomNavigation.js +19 -20
  10. package/lib/cjs/components/BroadcastMessages/BroadcastMessages.js +3 -10
  11. package/lib/cjs/components/BroadcastMessages/Message.js +6 -23
  12. package/lib/cjs/components/BroadcastMessages/Skeleton.js +3 -15
  13. package/lib/cjs/components/Categories/Categories.js +5 -10
  14. package/lib/cjs/components/Categories/Skeleton.js +2 -4
  15. package/lib/cjs/components/CategoriesPopularWidget/CategoriesPopularWidget.js +5 -17
  16. package/lib/cjs/components/CategoriesPopularWidget/Skeleton.js +2 -2
  17. package/lib/cjs/components/CategoriesSuggestionWidget/CategoriesSuggestionWidget.js +5 -17
  18. package/lib/cjs/components/CategoriesSuggestionWidget/Skeleton.js +2 -5
  19. package/lib/cjs/components/Category/Category.js +4 -4
  20. package/lib/cjs/components/Category/Skeleton.js +2 -3
  21. package/lib/cjs/components/CategoryAutocomplete/CategoryAutocomplete.js +6 -9
  22. package/lib/cjs/components/CategoryFollowButton/CategoryFollowButton.js +3 -2
  23. package/lib/cjs/components/CategoryFollowersButton/CategoryFollowersButton.js +3 -8
  24. package/lib/cjs/components/CategoryHeader/CategoryHeader.js +3 -12
  25. package/lib/cjs/components/CategoryHeader/Skeleton.js +2 -7
  26. package/lib/cjs/components/CategoryTrendingFeedWidget/CategoryTrendingFeedWidget.js +7 -19
  27. package/lib/cjs/components/CategoryTrendingFeedWidget/Skeleton.js +2 -4
  28. package/lib/cjs/components/CategoryTrendingUsersWidget/CategoryTrendingUsersWidget.js +5 -17
  29. package/lib/cjs/components/CategoryTrendingUsersWidget/Skeleton.js +2 -5
  30. package/lib/cjs/components/ChangeCover/ChangeCover.js +18 -41
  31. package/lib/cjs/components/ChangeGroupCover/ChangeGroupCover.js +4 -6
  32. package/lib/cjs/components/ChangeGroupPicture/ChangeGroupPicture.js +4 -6
  33. package/lib/cjs/components/ChangePicture/ChangePicture.js +3 -4
  34. package/lib/cjs/components/ChangePicture/ChangePictureDialog/ChangePictureDialog.js +10 -22
  35. package/lib/cjs/components/CommentObject/CommentObject.js +11 -37
  36. package/lib/cjs/components/CommentObject/Skeleton.js +2 -6
  37. package/lib/cjs/components/CommentObjectReply/CommentObjectReply.js +3 -12
  38. package/lib/cjs/components/CommentsFeedObject/CommentsFeedObject.js +8 -14
  39. package/lib/cjs/components/CommentsFeedObject/Skeleton.js +2 -3
  40. package/lib/cjs/components/CommentsObject/CommentsObject.js +27 -48
  41. package/lib/cjs/components/CommentsObject/Skeleton.js +2 -2
  42. package/lib/cjs/components/Composer/Attributes/Attributes.js +5 -8
  43. package/lib/cjs/components/Composer/Composer.js +24 -46
  44. package/lib/cjs/components/Composer/Content/ContentDiscussion/ContentDiscussion.js +8 -11
  45. package/lib/cjs/components/Composer/Content/ContentPoll/ContentPoll.js +9 -28
  46. package/lib/cjs/components/Composer/Content/ContentPost/ContentPost.js +3 -5
  47. package/lib/cjs/components/Composer/Layer/AudienceLayer/AudienceLayer.js +13 -31
  48. package/lib/cjs/components/Composer/Layer/CategoryLayer/CategoryLayer.js +2 -10
  49. package/lib/cjs/components/Composer/Layer/CloseLayer/CloseLayer.js +2 -16
  50. package/lib/cjs/components/Composer/Layer/LocationLayer/LocationLayer.js +2 -10
  51. package/lib/cjs/components/Composer/Skeleton.js +2 -3
  52. package/lib/cjs/components/Composer/TypeSwitchButtonGroup/TypeSwitchButtonGroup.js +3 -8
  53. package/lib/cjs/components/ComposerIconButton/ComposerIconButton.js +5 -8
  54. package/lib/cjs/components/ConnectionUserButton/ConnectionUserButton.js +2 -1
  55. package/lib/cjs/components/ConsentSolution/ConsentSolution.js +9 -58
  56. package/lib/cjs/components/ConsentSolution/Skeleton.js +3 -16
  57. package/lib/cjs/components/ConsentSolutionButton/ConsentSolutionButton.js +2 -4
  58. package/lib/cjs/components/CreateEventButton/CreateEventButton.js +2 -3
  59. package/lib/cjs/components/CreateGroupButton/CreateGroupButton.js +3 -4
  60. package/lib/cjs/components/CustomAdv/CustomAdv.js +5 -6
  61. package/lib/cjs/components/CustomAdv/Skeleton.js +2 -3
  62. package/lib/cjs/components/EditEventButton/EditEventButton.js +2 -3
  63. package/lib/cjs/components/EditGroupButton/EditGroupButton.js +2 -3
  64. package/lib/cjs/components/Editor/Editor.js +3 -21
  65. package/lib/cjs/components/Editor/Skeleton.js +2 -3
  66. package/lib/cjs/components/Editor/nodes/ImageNode.js +5 -6
  67. package/lib/cjs/components/Editor/plugins/AutoLinkPlugin.js +2 -11
  68. package/lib/cjs/components/Editor/plugins/EmojiPlugin.js +12 -15
  69. package/lib/cjs/components/Editor/plugins/FloatingLinkPlugin.js +7 -13
  70. package/lib/cjs/components/Editor/plugins/HashtagPlugin.js +11 -11
  71. package/lib/cjs/components/Editor/plugins/ImagePlugin.js +9 -10
  72. package/lib/cjs/components/Editor/plugins/LexicalRichTextPlugin.js +2 -12
  73. package/lib/cjs/components/Editor/plugins/MentionsPlugin.js +11 -16
  74. package/lib/cjs/components/Editor/plugins/OnChangePlugin.js +2 -3
  75. package/lib/cjs/components/Editor/plugins/ToolbarPlugin.js +9 -40
  76. package/lib/cjs/components/Editor/shared/useDecorators.js +2 -4
  77. package/lib/cjs/components/Event/Event.js +3 -10
  78. package/lib/cjs/components/Event/Skeleton.js +2 -8
  79. package/lib/cjs/components/EventForm/EventAddress.js +6 -14
  80. package/lib/cjs/components/EventForm/EventForm.js +46 -86
  81. package/lib/cjs/components/EventForm/UploadEventCover.js +4 -6
  82. package/lib/cjs/components/EventHeader/EventHeader.js +36 -52
  83. package/lib/cjs/components/EventHeader/Skeleton.js +2 -12
  84. package/lib/cjs/components/EventInfoWidget/EventInfoWidget.js +11 -13
  85. package/lib/cjs/components/EventInfoWidget/Skeleton.d.ts +1 -0
  86. package/lib/cjs/components/EventInfoWidget/Skeleton.js +20 -0
  87. package/lib/cjs/components/EventInfoWidget/index.d.ts +2 -1
  88. package/lib/cjs/components/EventInfoWidget/index.js +3 -1
  89. package/lib/cjs/components/EventInviteButton/EventInviteButton.js +4 -24
  90. package/lib/cjs/components/EventLocationWidget/EventLocationWidget.js +8 -16
  91. package/lib/cjs/components/EventLocationWidget/Skeleton.js +2 -8
  92. package/lib/cjs/components/EventSubscribeButton/EventSubscribeButton.js +12 -15
  93. package/lib/cjs/components/Events/Events.d.ts +1 -1
  94. package/lib/cjs/components/Events/Events.js +25 -52
  95. package/lib/cjs/components/Events/Skeleton.js +2 -4
  96. package/lib/cjs/components/Feed/Feed.js +11 -29
  97. package/lib/cjs/components/Feed/Skeleton.js +3 -12
  98. package/lib/cjs/components/FeedObject/Actions/Actions.js +2 -8
  99. package/lib/cjs/components/FeedObject/Actions/Comment/Comment.js +5 -11
  100. package/lib/cjs/components/FeedObject/Actions/Follow/Follow.js +6 -6
  101. package/lib/cjs/components/FeedObject/Actions/Share/Share.js +29 -60
  102. package/lib/cjs/components/FeedObject/Actions/Share/SharesDialog/SharesDialog.js +3 -5
  103. package/lib/cjs/components/FeedObject/Actions/Vote/Vote.js +2 -5
  104. package/lib/cjs/components/FeedObject/Activities/Activities.js +9 -10
  105. package/lib/cjs/components/FeedObject/Activities/ActivitiesMenu/ActivitiesMenu.js +23 -37
  106. package/lib/cjs/components/FeedObject/Activities/RelevantActivities/CommentActivity/CommentActivity.js +18 -20
  107. package/lib/cjs/components/FeedObject/Activities/RelevantActivities/FollowActivity/FollowActivity.js +5 -7
  108. package/lib/cjs/components/FeedObject/Activities/RelevantActivities/PollVoteActivity/PollVoteActivity.js +5 -7
  109. package/lib/cjs/components/FeedObject/Activities/RelevantActivities/RelevantActivities.js +7 -12
  110. package/lib/cjs/components/FeedObject/Activities/RelevantActivities/VoteUpActivity/VoteUpActivity.js +5 -7
  111. package/lib/cjs/components/FeedObject/Contributors/Contributors.js +3 -13
  112. package/lib/cjs/components/FeedObject/Contributors/Skeleton.js +2 -6
  113. package/lib/cjs/components/FeedObject/FeedObject.js +23 -110
  114. package/lib/cjs/components/FeedObject/Poll/Choice/Choice.js +3 -8
  115. package/lib/cjs/components/FeedObject/Poll/Poll.js +5 -21
  116. package/lib/cjs/components/FeedObject/Skeleton.js +4 -16
  117. package/lib/cjs/components/FeedObjectMediaPreview/FeedObjectMediaPreview.js +5 -6
  118. package/lib/cjs/components/FeedUpdatesWidget/FeedUpdatesWidget.js +5 -8
  119. package/lib/cjs/components/FeedUpdatesWidget/Skeleton.js +2 -2
  120. package/lib/cjs/components/FollowUserButton/FollowUserButton.js +5 -4
  121. package/lib/cjs/components/Footer/Footer.js +4 -7
  122. package/lib/cjs/components/Footer/Skeleton.js +2 -4
  123. package/lib/cjs/components/FriendshipUserButton/FriendshipUserButton.js +9 -8
  124. package/lib/cjs/components/Group/Group.js +7 -13
  125. package/lib/cjs/components/Group/Skeleton.js +2 -3
  126. package/lib/cjs/components/GroupAutocomplete/GroupAutocomplete.js +5 -8
  127. package/lib/cjs/components/GroupForm/GroupForm.js +36 -75
  128. package/lib/cjs/components/GroupHeader/GroupHeader.js +6 -34
  129. package/lib/cjs/components/GroupHeader/Skeleton.js +2 -12
  130. package/lib/cjs/components/GroupInfoWidget/GroupInfoWidget.js +24 -54
  131. package/lib/cjs/components/GroupInfoWidget/Skeleton.js +2 -3
  132. package/lib/cjs/components/GroupInviteButton/GroupInviteButton.js +4 -24
  133. package/lib/cjs/components/GroupInvitedWidget/GroupInvitedWidget.js +5 -18
  134. package/lib/cjs/components/GroupInvitedWidget/Skeleton.js +2 -3
  135. package/lib/cjs/components/GroupMembersButton/GroupMembersButton.js +3 -8
  136. package/lib/cjs/components/GroupMembersWidget/GroupMembersWidget.js +11 -28
  137. package/lib/cjs/components/GroupMembersWidget/Skeleton.js +2 -3
  138. package/lib/cjs/components/GroupRequestsWidget/GroupRequestsWidget.js +5 -16
  139. package/lib/cjs/components/GroupRequestsWidget/Skeleton.js +2 -3
  140. package/lib/cjs/components/GroupSettingsIconButton/GroupSettingsIconButton.js +13 -21
  141. package/lib/cjs/components/GroupSubscribeButton/GroupSubscribeButton.js +8 -7
  142. package/lib/cjs/components/Groups/Groups.js +10 -23
  143. package/lib/cjs/components/Groups/Skeleton.js +2 -4
  144. package/lib/cjs/components/Incubator/Incubator.js +8 -28
  145. package/lib/cjs/components/Incubator/Skeleton.js +2 -20
  146. package/lib/cjs/components/IncubatorDetail/IncubatorDetail.js +4 -46
  147. package/lib/cjs/components/IncubatorListWidget/CreateIncubatorDialog/CreateIncubatorDialog.js +5 -12
  148. package/lib/cjs/components/IncubatorListWidget/IncubatorListWidget.js +8 -32
  149. package/lib/cjs/components/IncubatorListWidget/Skeleton.js +2 -4
  150. package/lib/cjs/components/IncubatorSubscribeButton/IncubatorSubscribeButton.js +3 -2
  151. package/lib/cjs/components/IncubatorSuggestionWidget/IncubatorSuggestionWidget.js +5 -18
  152. package/lib/cjs/components/IncubatorSuggestionWidget/Skeleton.js +2 -4
  153. package/lib/cjs/components/InlineComposerWidget/InlineComposerWidget.js +5 -11
  154. package/lib/cjs/components/InlineComposerWidget/Skeleton.js +2 -7
  155. package/lib/cjs/components/LocationAutocomplete/LocationAutocomplete.js +6 -7
  156. package/lib/cjs/components/LoyaltyProgramWidget/LoyaltyProgramWidget.js +5 -13
  157. package/lib/cjs/components/LoyaltyProgramWidget/Skeleton.js +2 -11
  158. package/lib/cjs/components/NavigationMenuIconButton/DefaultDrawerContent.js +3 -11
  159. package/lib/cjs/components/NavigationMenuIconButton/DefaultHeaderContent.js +3 -4
  160. package/lib/cjs/components/NavigationMenuIconButton/NavigationMenuIconButton.js +4 -13
  161. package/lib/cjs/components/NavigationSettingsIconButton/NavigationSettingsIconButton.js +35 -75
  162. package/lib/cjs/components/NavigationToolbar/NavigationToolbar.js +14 -51
  163. package/lib/cjs/components/NavigationToolbar/NotificationMenu.js +2 -5
  164. package/lib/cjs/components/NavigationToolbar/Skeleton.js +2 -5
  165. package/lib/cjs/components/NavigationToolbarMobile/NavigationToolbarMobile.js +11 -27
  166. package/lib/cjs/components/NavigationToolbarMobile/Skeleton.js +2 -3
  167. package/lib/cjs/components/Notification/CollapsedFor/CollapsedFor.js +2 -15
  168. package/lib/cjs/components/Notification/Comment/Comment.js +11 -27
  169. package/lib/cjs/components/Notification/Contribution/Contribution.js +11 -28
  170. package/lib/cjs/components/Notification/ContributionFollow/ContributionFollow.js +4 -19
  171. package/lib/cjs/components/Notification/DeletedFor/DeletedFor.js +2 -17
  172. package/lib/cjs/components/Notification/Group/Group.js +17 -30
  173. package/lib/cjs/components/Notification/IncubatorApproved/IncubatorApproved.js +8 -16
  174. package/lib/cjs/components/Notification/KindlyNoticeFlag/KindlyNoticeFlag.js +2 -9
  175. package/lib/cjs/components/Notification/KindlyNoticeFor/KindlyNoticeFor.js +4 -16
  176. package/lib/cjs/components/Notification/Mention/Mention.js +7 -22
  177. package/lib/cjs/components/Notification/Notification.js +37 -57
  178. package/lib/cjs/components/Notification/PrivateMessage/PrivateMessage.js +24 -47
  179. package/lib/cjs/components/Notification/Skeleton.js +3 -7
  180. package/lib/cjs/components/Notification/UndeletedFor/UndeletedFor.js +2 -16
  181. package/lib/cjs/components/Notification/UserBlocked/UserBlocked.js +5 -7
  182. package/lib/cjs/components/Notification/UserConnection/UserConnection.js +5 -15
  183. package/lib/cjs/components/Notification/UserFollow/UserFollow.js +5 -15
  184. package/lib/cjs/components/Notification/VoteUp/VoteUp.js +6 -19
  185. package/lib/cjs/components/PlatformWidget/PlatformWidget.js +20 -53
  186. package/lib/cjs/components/PlatformWidget/Skeleton.js +2 -3
  187. package/lib/cjs/components/PollSuggestionWidget/PollSnippet/PollSnippet.js +3 -12
  188. package/lib/cjs/components/PollSuggestionWidget/PollSnippet/Skeleton.js +2 -2
  189. package/lib/cjs/components/PollSuggestionWidget/PollSuggestionWidget.js +5 -17
  190. package/lib/cjs/components/PollSuggestionWidget/Skeleton.js +2 -6
  191. package/lib/cjs/components/PrivateMessageComponent/PrivateMessageComponent.js +6 -9
  192. package/lib/cjs/components/PrivateMessageComponent/Skeleton.js +2 -6
  193. package/lib/cjs/components/PrivateMessageEditor/MessageMediaUploader/index.js +16 -37
  194. package/lib/cjs/components/PrivateMessageEditor/PrivateMessageEditor.js +9 -18
  195. package/lib/cjs/components/PrivateMessageEditor/Skeleton.js +2 -3
  196. package/lib/cjs/components/PrivateMessageSettingsIconButton/PrivateMessageSettingsIconButton.js +9 -31
  197. package/lib/cjs/components/PrivateMessageSnippetItem/PrivateMessageSnippetItem.js +12 -19
  198. package/lib/cjs/components/PrivateMessageSnippetItem/Skeleton.js +2 -5
  199. package/lib/cjs/components/PrivateMessageSnippets/PrivateMessageSnippets.js +8 -16
  200. package/lib/cjs/components/PrivateMessageSnippets/Skeleton.js +2 -8
  201. package/lib/cjs/components/PrivateMessageThread/PrivateMessageThread.js +14 -35
  202. package/lib/cjs/components/PrivateMessageThread/Skeleton.js +2 -9
  203. package/lib/cjs/components/PrivateMessageThreadItem/PrivateMessageThreadItem.js +15 -33
  204. package/lib/cjs/components/PrivateMessageThreadItem/Skeleton.js +2 -3
  205. package/lib/cjs/components/RelatedFeedObjectsWidget/RelatedFeedObjectsWidget.js +6 -21
  206. package/lib/cjs/components/RelatedFeedObjectsWidget/Skeleton.js +2 -3
  207. package/lib/cjs/components/SearchAutocomplete/SearchAutocomplete.js +5 -8
  208. package/lib/cjs/components/SearchDialog/SearchDialog.js +2 -4
  209. package/lib/cjs/components/Skeleton/AvatarGroupSkeleton.js +2 -3
  210. package/lib/cjs/components/Skeleton/GenericSkeleton.js +2 -6
  211. package/lib/cjs/components/SnippetNotifications/Skeleton.js +3 -3
  212. package/lib/cjs/components/SnippetNotifications/SnippetNotifications.js +23 -28
  213. package/lib/cjs/components/ToastNotifications/Skeleton.js +2 -3
  214. package/lib/cjs/components/ToastNotifications/ToastNotifications.js +16 -15
  215. package/lib/cjs/components/User/Skeleton.js +2 -3
  216. package/lib/cjs/components/User/User.js +6 -14
  217. package/lib/cjs/components/UserActionIconButton/UserActionIconButton.js +16 -31
  218. package/lib/cjs/components/UserConnectionsRequestsSentWidget/Skeleton.js +2 -3
  219. package/lib/cjs/components/UserConnectionsRequestsSentWidget/UserConnectionsRequestsSentWidget.js +5 -17
  220. package/lib/cjs/components/UserConnectionsRequestsWidget/Skeleton.js +2 -3
  221. package/lib/cjs/components/UserConnectionsRequestsWidget/UserConnectionsRequestsWidget.js +5 -17
  222. package/lib/cjs/components/UserConnectionsWidget/Skeleton.js +2 -3
  223. package/lib/cjs/components/UserConnectionsWidget/UserConnectionsWidget.js +5 -17
  224. package/lib/cjs/components/UserCounters/UserCounters.js +19 -28
  225. package/lib/cjs/components/UserFollowedCategoriesWidget/Skeleton.js +2 -2
  226. package/lib/cjs/components/UserFollowedCategoriesWidget/UserFollowedCategoriesWidget.js +5 -20
  227. package/lib/cjs/components/UserFollowedUsersWidget/Skeleton.js +2 -3
  228. package/lib/cjs/components/UserFollowedUsersWidget/UserFollowedUsersWidget.js +5 -17
  229. package/lib/cjs/components/UserFollowersWidget/Skeleton.js +2 -3
  230. package/lib/cjs/components/UserFollowersWidget/UserFollowersWidget.js +5 -17
  231. package/lib/cjs/components/UserInfo/Skeleton.js +2 -6
  232. package/lib/cjs/components/UserInfo/UserInfo.js +13 -14
  233. package/lib/cjs/components/UserInfoDialog/UserInfoDialog.js +3 -5
  234. package/lib/cjs/components/UserProfileBlocked/UserProfileBlocked.js +4 -11
  235. package/lib/cjs/components/UserProfileEdit/Section/Account.js +3 -13
  236. package/lib/cjs/components/UserProfileEdit/Section/AccountCredentials.js +15 -37
  237. package/lib/cjs/components/UserProfileEdit/Section/PublicInfo.js +15 -25
  238. package/lib/cjs/components/UserProfileEdit/Section/Settings.js +7 -37
  239. package/lib/cjs/components/UserProfileEdit/Section/SettingsSkeleton.js +2 -5
  240. package/lib/cjs/components/UserProfileEdit/Skeleton.js +2 -6
  241. package/lib/cjs/components/UserProfileEdit/UserProfileEdit.js +2 -9
  242. package/lib/cjs/components/UserProfileHeader/Skeleton.js +2 -13
  243. package/lib/cjs/components/UserProfileHeader/UserProfileHeader.js +4 -21
  244. package/lib/cjs/components/UserSocialAssociation/UserSocialAssociation.js +2 -16
  245. package/lib/cjs/components/UserSubscribedGroupsWidget/Skeleton.js +2 -6
  246. package/lib/cjs/components/UserSubscribedGroupsWidget/UserSubscribedGroupsWidget.js +7 -22
  247. package/lib/cjs/components/UserSuggestionWidget/Skeleton.js +2 -5
  248. package/lib/cjs/components/UserSuggestionWidget/UserSuggestionWidget.js +5 -17
  249. package/lib/cjs/components/VoteAudienceButton/VoteAudienceButton.js +9 -23
  250. package/lib/cjs/components/VoteButton/VoteButton.js +9 -15
  251. package/lib/cjs/components/Widget/index.js +3 -2
  252. package/lib/cjs/shared/AutoPlayer/index.js +6 -7
  253. package/lib/cjs/shared/BaseDialog/BaseDialog.js +3 -10
  254. package/lib/cjs/shared/BaseItem/BaseItem.js +4 -10
  255. package/lib/cjs/shared/BaseItemButton/BaseItemButton.js +4 -10
  256. package/lib/cjs/shared/Bullet/index.js +2 -1
  257. package/lib/cjs/shared/Calendar/index.js +2 -3
  258. package/lib/cjs/shared/CentralProgress/index.js +3 -4
  259. package/lib/cjs/shared/ConfirmDialog/ConfirmDialog.js +2 -9
  260. package/lib/cjs/shared/ConsentSolutionSwitch/index.js +5 -8
  261. package/lib/cjs/shared/ContributionActionsMenu/index.js +22 -85
  262. package/lib/cjs/shared/CustomSnackMessage/index.js +3 -7
  263. package/lib/cjs/shared/DateTimeAgo/index.js +2 -6
  264. package/lib/cjs/shared/EmailTextField/index.js +3 -2
  265. package/lib/cjs/shared/EmojiPicker/EmojiPicker.js +2 -2
  266. package/lib/cjs/shared/EventInfoDetails/index.js +5 -22
  267. package/lib/cjs/shared/HiddenPlaceholder/index.js +2 -3
  268. package/lib/cjs/shared/InfiniteScroll/index.js +8 -19
  269. package/lib/cjs/shared/InfiniteScroll/stories/InfiniteScrollWithHeight.js +3 -8
  270. package/lib/cjs/shared/InfiniteScroll/stories/PullDownToRefreshInfScroll.js +3 -7
  271. package/lib/cjs/shared/InfiniteScroll/stories/ScrollableTargetFixedInfScroll.js +13 -18
  272. package/lib/cjs/shared/InfiniteScroll/stories/ScrollableTargetInfScroll.js +3 -8
  273. package/lib/cjs/shared/InfiniteScroll/stories/ScrolleableTop.js +6 -11
  274. package/lib/cjs/shared/InfiniteScroll/stories/WindowInfiniteScrollComponent.js +3 -6
  275. package/lib/cjs/shared/LanguageSwitcher/index.js +3 -5
  276. package/lib/cjs/shared/Lightbox/Lightbox.js +4 -3
  277. package/lib/cjs/shared/MarkRead/MarkRead.js +3 -3
  278. package/lib/cjs/shared/Media/File/DisplayComponent.js +13 -42
  279. package/lib/cjs/shared/Media/File/Lightbox/index.js +5 -5
  280. package/lib/cjs/shared/Media/File/PreviewComponent.js +5 -9
  281. package/lib/cjs/shared/Media/File/TriggerButton.js +14 -25
  282. package/lib/cjs/shared/Media/File/asUploadButton.js +3 -2
  283. package/lib/cjs/shared/Media/Link/DisplayComponent.js +8 -15
  284. package/lib/cjs/shared/Media/Link/LayerComponent.js +2 -11
  285. package/lib/cjs/shared/Media/Link/PreviewComponent.js +2 -4
  286. package/lib/cjs/shared/Media/Link/TriggerButton.js +2 -3
  287. package/lib/cjs/shared/Media/Link/UrlTextField/index.js +5 -7
  288. package/lib/cjs/shared/Media/Share/DisplayComponent.js +3 -3
  289. package/lib/cjs/shared/MetadataField/MetadataField.js +8 -7
  290. package/lib/cjs/shared/NewChip/NewChip.js +2 -2
  291. package/lib/cjs/shared/NotificationItem/NotificationItem.js +3 -12
  292. package/lib/cjs/shared/PasswordTextField/index.js +4 -6
  293. package/lib/cjs/shared/PhoneTextField/index.js +3 -2
  294. package/lib/cjs/shared/ScrollContainer/index.js +2 -2
  295. package/lib/cjs/shared/StickyBox/index.js +6 -5
  296. package/lib/cjs/shared/TagChip/index.js +2 -2
  297. package/lib/cjs/shared/Tags/index.js +11 -23
  298. package/lib/cjs/shared/UrlTextField/index.js +3 -2
  299. package/lib/cjs/shared/UserAvatar/UserAvatar.js +3 -2
  300. package/lib/cjs/shared/UserDeletedSnackBar/UserDeletedSnackBar.js +3 -5
  301. package/lib/cjs/shared/UsernameTextField/index.js +3 -2
  302. package/lib/cjs/shared/VirtualizedScroller/VirtualScrollerChild.js +2 -2
  303. package/lib/cjs/shared/VirtualizedScroller/VirtualizedScroller.js +3 -2
  304. package/lib/cjs/utils/contribution.js +3 -4
  305. package/lib/cjs/utils/errors.js +3 -4
  306. package/lib/esm/components/AccountChangeMailValidation/AccountChangeMailValidation.js +3 -8
  307. package/lib/esm/components/AccountDataPortability/AccountDataPortability.js +16 -25
  308. package/lib/esm/components/AccountDataPortabilityButton/AccountDataPortabilityButton.js +3 -6
  309. package/lib/esm/components/AccountDelete/AccountDelete.js +16 -23
  310. package/lib/esm/components/AccountDeleteButton/AccountDeleteButton.js +3 -6
  311. package/lib/esm/components/AccountRecover/AccountRecover.js +8 -12
  312. package/lib/esm/components/AccountReset/AccountReset.js +3 -12
  313. package/lib/esm/components/AccountVerify/AccountVerify.js +3 -8
  314. package/lib/esm/components/BottomNavigation/BottomNavigation.js +19 -20
  315. package/lib/esm/components/BroadcastMessages/BroadcastMessages.js +3 -10
  316. package/lib/esm/components/BroadcastMessages/Message.js +6 -23
  317. package/lib/esm/components/BroadcastMessages/Skeleton.js +3 -15
  318. package/lib/esm/components/Categories/Categories.js +5 -10
  319. package/lib/esm/components/Categories/Skeleton.js +2 -4
  320. package/lib/esm/components/CategoriesPopularWidget/CategoriesPopularWidget.js +5 -17
  321. package/lib/esm/components/CategoriesPopularWidget/Skeleton.js +2 -2
  322. package/lib/esm/components/CategoriesSuggestionWidget/CategoriesSuggestionWidget.js +5 -17
  323. package/lib/esm/components/CategoriesSuggestionWidget/Skeleton.js +2 -5
  324. package/lib/esm/components/Category/Category.js +4 -4
  325. package/lib/esm/components/Category/Skeleton.js +2 -3
  326. package/lib/esm/components/CategoryAutocomplete/CategoryAutocomplete.js +6 -9
  327. package/lib/esm/components/CategoryFollowButton/CategoryFollowButton.js +3 -2
  328. package/lib/esm/components/CategoryFollowersButton/CategoryFollowersButton.js +3 -8
  329. package/lib/esm/components/CategoryHeader/CategoryHeader.js +3 -12
  330. package/lib/esm/components/CategoryHeader/Skeleton.js +2 -7
  331. package/lib/esm/components/CategoryTrendingFeedWidget/CategoryTrendingFeedWidget.js +7 -19
  332. package/lib/esm/components/CategoryTrendingFeedWidget/Skeleton.js +2 -4
  333. package/lib/esm/components/CategoryTrendingUsersWidget/CategoryTrendingUsersWidget.js +5 -17
  334. package/lib/esm/components/CategoryTrendingUsersWidget/Skeleton.js +2 -5
  335. package/lib/esm/components/ChangeCover/ChangeCover.js +18 -41
  336. package/lib/esm/components/ChangeGroupCover/ChangeGroupCover.js +4 -6
  337. package/lib/esm/components/ChangeGroupPicture/ChangeGroupPicture.js +4 -6
  338. package/lib/esm/components/ChangePicture/ChangePicture.js +3 -4
  339. package/lib/esm/components/ChangePicture/ChangePictureDialog/ChangePictureDialog.js +10 -22
  340. package/lib/esm/components/CommentObject/CommentObject.js +11 -37
  341. package/lib/esm/components/CommentObject/Skeleton.js +2 -6
  342. package/lib/esm/components/CommentObjectReply/CommentObjectReply.js +3 -12
  343. package/lib/esm/components/CommentsFeedObject/CommentsFeedObject.js +8 -14
  344. package/lib/esm/components/CommentsFeedObject/Skeleton.js +2 -2
  345. package/lib/esm/components/CommentsObject/CommentsObject.js +27 -48
  346. package/lib/esm/components/CommentsObject/Skeleton.js +2 -2
  347. package/lib/esm/components/Composer/Attributes/Attributes.js +5 -8
  348. package/lib/esm/components/Composer/Composer.js +24 -46
  349. package/lib/esm/components/Composer/Content/ContentDiscussion/ContentDiscussion.js +8 -11
  350. package/lib/esm/components/Composer/Content/ContentPoll/ContentPoll.js +9 -28
  351. package/lib/esm/components/Composer/Content/ContentPost/ContentPost.js +3 -5
  352. package/lib/esm/components/Composer/Layer/AudienceLayer/AudienceLayer.js +13 -31
  353. package/lib/esm/components/Composer/Layer/CategoryLayer/CategoryLayer.js +2 -10
  354. package/lib/esm/components/Composer/Layer/CloseLayer/CloseLayer.js +2 -16
  355. package/lib/esm/components/Composer/Layer/LocationLayer/LocationLayer.js +2 -10
  356. package/lib/esm/components/Composer/Skeleton.js +2 -3
  357. package/lib/esm/components/Composer/TypeSwitchButtonGroup/TypeSwitchButtonGroup.js +3 -8
  358. package/lib/esm/components/ComposerIconButton/ComposerIconButton.js +5 -8
  359. package/lib/esm/components/ConnectionUserButton/ConnectionUserButton.js +2 -1
  360. package/lib/esm/components/ConsentSolution/ConsentSolution.js +9 -58
  361. package/lib/esm/components/ConsentSolution/Skeleton.js +3 -16
  362. package/lib/esm/components/ConsentSolutionButton/ConsentSolutionButton.js +2 -4
  363. package/lib/esm/components/CreateEventButton/CreateEventButton.js +2 -3
  364. package/lib/esm/components/CreateGroupButton/CreateGroupButton.js +3 -4
  365. package/lib/esm/components/CustomAdv/CustomAdv.js +5 -6
  366. package/lib/esm/components/CustomAdv/Skeleton.js +2 -2
  367. package/lib/esm/components/EditEventButton/EditEventButton.js +2 -3
  368. package/lib/esm/components/EditGroupButton/EditGroupButton.js +2 -3
  369. package/lib/esm/components/Editor/Editor.js +3 -21
  370. package/lib/esm/components/Editor/Skeleton.js +2 -2
  371. package/lib/esm/components/Editor/nodes/ImageNode.js +5 -5
  372. package/lib/esm/components/Editor/plugins/AutoLinkPlugin.js +2 -10
  373. package/lib/esm/components/Editor/plugins/EmojiPlugin.js +12 -15
  374. package/lib/esm/components/Editor/plugins/FloatingLinkPlugin.js +7 -13
  375. package/lib/esm/components/Editor/plugins/HashtagPlugin.js +11 -11
  376. package/lib/esm/components/Editor/plugins/ImagePlugin.js +9 -10
  377. package/lib/esm/components/Editor/plugins/LexicalRichTextPlugin.js +2 -12
  378. package/lib/esm/components/Editor/plugins/MentionsPlugin.js +11 -16
  379. package/lib/esm/components/Editor/plugins/OnChangePlugin.js +2 -2
  380. package/lib/esm/components/Editor/plugins/ToolbarPlugin.js +9 -40
  381. package/lib/esm/components/Editor/shared/useDecorators.js +2 -3
  382. package/lib/esm/components/Event/Event.js +3 -10
  383. package/lib/esm/components/Event/Skeleton.js +2 -8
  384. package/lib/esm/components/EventForm/EventAddress.js +6 -14
  385. package/lib/esm/components/EventForm/EventForm.js +46 -86
  386. package/lib/esm/components/EventForm/UploadEventCover.js +4 -6
  387. package/lib/esm/components/EventHeader/EventHeader.js +36 -52
  388. package/lib/esm/components/EventHeader/Skeleton.js +2 -12
  389. package/lib/esm/components/EventInfoWidget/EventInfoWidget.js +11 -13
  390. package/lib/esm/components/EventInfoWidget/Skeleton.d.ts +1 -0
  391. package/lib/esm/components/EventInfoWidget/Skeleton.js +16 -0
  392. package/lib/esm/components/EventInfoWidget/index.d.ts +2 -1
  393. package/lib/esm/components/EventInfoWidget/index.js +2 -1
  394. package/lib/esm/components/EventInviteButton/EventInviteButton.js +4 -24
  395. package/lib/esm/components/EventLocationWidget/EventLocationWidget.js +8 -16
  396. package/lib/esm/components/EventLocationWidget/Skeleton.js +2 -8
  397. package/lib/esm/components/EventSubscribeButton/EventSubscribeButton.js +12 -15
  398. package/lib/esm/components/Events/Events.d.ts +1 -1
  399. package/lib/esm/components/Events/Events.js +25 -52
  400. package/lib/esm/components/Events/Skeleton.js +2 -4
  401. package/lib/esm/components/Feed/Feed.js +11 -29
  402. package/lib/esm/components/Feed/Skeleton.js +3 -12
  403. package/lib/esm/components/FeedObject/Actions/Actions.js +2 -8
  404. package/lib/esm/components/FeedObject/Actions/Comment/Comment.js +5 -11
  405. package/lib/esm/components/FeedObject/Actions/Follow/Follow.js +6 -6
  406. package/lib/esm/components/FeedObject/Actions/Share/Share.js +29 -60
  407. package/lib/esm/components/FeedObject/Actions/Share/SharesDialog/SharesDialog.js +3 -5
  408. package/lib/esm/components/FeedObject/Actions/Vote/Vote.js +2 -5
  409. package/lib/esm/components/FeedObject/Activities/Activities.js +9 -10
  410. package/lib/esm/components/FeedObject/Activities/ActivitiesMenu/ActivitiesMenu.js +23 -37
  411. package/lib/esm/components/FeedObject/Activities/RelevantActivities/CommentActivity/CommentActivity.js +18 -20
  412. package/lib/esm/components/FeedObject/Activities/RelevantActivities/FollowActivity/FollowActivity.js +5 -7
  413. package/lib/esm/components/FeedObject/Activities/RelevantActivities/PollVoteActivity/PollVoteActivity.js +5 -7
  414. package/lib/esm/components/FeedObject/Activities/RelevantActivities/RelevantActivities.js +7 -12
  415. package/lib/esm/components/FeedObject/Activities/RelevantActivities/VoteUpActivity/VoteUpActivity.js +5 -7
  416. package/lib/esm/components/FeedObject/Contributors/Contributors.js +3 -13
  417. package/lib/esm/components/FeedObject/Contributors/Skeleton.js +2 -6
  418. package/lib/esm/components/FeedObject/FeedObject.js +23 -110
  419. package/lib/esm/components/FeedObject/Poll/Choice/Choice.js +3 -8
  420. package/lib/esm/components/FeedObject/Poll/Poll.js +5 -21
  421. package/lib/esm/components/FeedObject/Skeleton.js +4 -16
  422. package/lib/esm/components/FeedObjectMediaPreview/FeedObjectMediaPreview.js +5 -6
  423. package/lib/esm/components/FeedUpdatesWidget/FeedUpdatesWidget.js +5 -8
  424. package/lib/esm/components/FeedUpdatesWidget/Skeleton.js +2 -2
  425. package/lib/esm/components/FollowUserButton/FollowUserButton.js +5 -4
  426. package/lib/esm/components/Footer/Footer.js +4 -7
  427. package/lib/esm/components/Footer/Skeleton.js +2 -4
  428. package/lib/esm/components/FriendshipUserButton/FriendshipUserButton.js +9 -8
  429. package/lib/esm/components/Group/Group.js +7 -13
  430. package/lib/esm/components/Group/Skeleton.js +2 -3
  431. package/lib/esm/components/GroupAutocomplete/GroupAutocomplete.js +5 -8
  432. package/lib/esm/components/GroupForm/GroupForm.js +36 -75
  433. package/lib/esm/components/GroupHeader/GroupHeader.js +6 -34
  434. package/lib/esm/components/GroupHeader/Skeleton.js +2 -12
  435. package/lib/esm/components/GroupInfoWidget/GroupInfoWidget.js +24 -54
  436. package/lib/esm/components/GroupInfoWidget/Skeleton.js +2 -2
  437. package/lib/esm/components/GroupInviteButton/GroupInviteButton.js +4 -24
  438. package/lib/esm/components/GroupInvitedWidget/GroupInvitedWidget.js +5 -18
  439. package/lib/esm/components/GroupInvitedWidget/Skeleton.js +2 -2
  440. package/lib/esm/components/GroupMembersButton/GroupMembersButton.js +3 -8
  441. package/lib/esm/components/GroupMembersWidget/GroupMembersWidget.js +11 -28
  442. package/lib/esm/components/GroupMembersWidget/Skeleton.js +2 -2
  443. package/lib/esm/components/GroupRequestsWidget/GroupRequestsWidget.js +5 -16
  444. package/lib/esm/components/GroupRequestsWidget/Skeleton.js +2 -2
  445. package/lib/esm/components/GroupSettingsIconButton/GroupSettingsIconButton.js +13 -21
  446. package/lib/esm/components/GroupSubscribeButton/GroupSubscribeButton.js +8 -7
  447. package/lib/esm/components/Groups/Groups.js +10 -23
  448. package/lib/esm/components/Groups/Skeleton.js +2 -4
  449. package/lib/esm/components/Incubator/Incubator.js +8 -28
  450. package/lib/esm/components/Incubator/Skeleton.js +2 -20
  451. package/lib/esm/components/IncubatorDetail/IncubatorDetail.js +4 -46
  452. package/lib/esm/components/IncubatorListWidget/CreateIncubatorDialog/CreateIncubatorDialog.js +5 -12
  453. package/lib/esm/components/IncubatorListWidget/IncubatorListWidget.js +8 -32
  454. package/lib/esm/components/IncubatorListWidget/Skeleton.js +2 -4
  455. package/lib/esm/components/IncubatorSubscribeButton/IncubatorSubscribeButton.js +3 -2
  456. package/lib/esm/components/IncubatorSuggestionWidget/IncubatorSuggestionWidget.js +5 -18
  457. package/lib/esm/components/IncubatorSuggestionWidget/Skeleton.js +2 -4
  458. package/lib/esm/components/InlineComposerWidget/InlineComposerWidget.js +5 -11
  459. package/lib/esm/components/InlineComposerWidget/Skeleton.js +2 -7
  460. package/lib/esm/components/LocationAutocomplete/LocationAutocomplete.js +6 -7
  461. package/lib/esm/components/LoyaltyProgramWidget/LoyaltyProgramWidget.js +5 -13
  462. package/lib/esm/components/LoyaltyProgramWidget/Skeleton.js +2 -11
  463. package/lib/esm/components/NavigationMenuIconButton/DefaultDrawerContent.js +3 -11
  464. package/lib/esm/components/NavigationMenuIconButton/DefaultHeaderContent.js +3 -4
  465. package/lib/esm/components/NavigationMenuIconButton/NavigationMenuIconButton.js +4 -13
  466. package/lib/esm/components/NavigationSettingsIconButton/NavigationSettingsIconButton.js +35 -75
  467. package/lib/esm/components/NavigationToolbar/NavigationToolbar.js +14 -51
  468. package/lib/esm/components/NavigationToolbar/NotificationMenu.js +2 -5
  469. package/lib/esm/components/NavigationToolbar/Skeleton.js +2 -5
  470. package/lib/esm/components/NavigationToolbarMobile/NavigationToolbarMobile.js +11 -27
  471. package/lib/esm/components/NavigationToolbarMobile/Skeleton.js +2 -3
  472. package/lib/esm/components/Notification/CollapsedFor/CollapsedFor.js +2 -15
  473. package/lib/esm/components/Notification/Comment/Comment.js +11 -27
  474. package/lib/esm/components/Notification/Contribution/Contribution.js +11 -28
  475. package/lib/esm/components/Notification/ContributionFollow/ContributionFollow.js +4 -19
  476. package/lib/esm/components/Notification/DeletedFor/DeletedFor.js +2 -17
  477. package/lib/esm/components/Notification/Group/Group.js +17 -30
  478. package/lib/esm/components/Notification/IncubatorApproved/IncubatorApproved.js +8 -16
  479. package/lib/esm/components/Notification/KindlyNoticeFlag/KindlyNoticeFlag.js +2 -9
  480. package/lib/esm/components/Notification/KindlyNoticeFor/KindlyNoticeFor.js +4 -16
  481. package/lib/esm/components/Notification/Mention/Mention.js +7 -22
  482. package/lib/esm/components/Notification/Notification.js +37 -57
  483. package/lib/esm/components/Notification/PrivateMessage/PrivateMessage.js +24 -47
  484. package/lib/esm/components/Notification/Skeleton.js +3 -7
  485. package/lib/esm/components/Notification/UndeletedFor/UndeletedFor.js +2 -16
  486. package/lib/esm/components/Notification/UserBlocked/UserBlocked.js +5 -7
  487. package/lib/esm/components/Notification/UserConnection/UserConnection.js +5 -15
  488. package/lib/esm/components/Notification/UserFollow/UserFollow.js +5 -15
  489. package/lib/esm/components/Notification/VoteUp/VoteUp.js +6 -19
  490. package/lib/esm/components/PlatformWidget/PlatformWidget.js +20 -53
  491. package/lib/esm/components/PlatformWidget/Skeleton.js +2 -2
  492. package/lib/esm/components/PollSuggestionWidget/PollSnippet/PollSnippet.js +3 -12
  493. package/lib/esm/components/PollSuggestionWidget/PollSnippet/Skeleton.js +2 -2
  494. package/lib/esm/components/PollSuggestionWidget/PollSuggestionWidget.js +5 -17
  495. package/lib/esm/components/PollSuggestionWidget/Skeleton.js +2 -6
  496. package/lib/esm/components/PrivateMessageComponent/PrivateMessageComponent.js +6 -9
  497. package/lib/esm/components/PrivateMessageComponent/Skeleton.js +2 -6
  498. package/lib/esm/components/PrivateMessageEditor/MessageMediaUploader/index.js +16 -37
  499. package/lib/esm/components/PrivateMessageEditor/PrivateMessageEditor.js +9 -18
  500. package/lib/esm/components/PrivateMessageEditor/Skeleton.js +2 -2
  501. package/lib/esm/components/PrivateMessageSettingsIconButton/PrivateMessageSettingsIconButton.js +9 -31
  502. package/lib/esm/components/PrivateMessageSnippetItem/PrivateMessageSnippetItem.js +12 -19
  503. package/lib/esm/components/PrivateMessageSnippetItem/Skeleton.js +2 -5
  504. package/lib/esm/components/PrivateMessageSnippets/PrivateMessageSnippets.js +8 -16
  505. package/lib/esm/components/PrivateMessageSnippets/Skeleton.js +2 -8
  506. package/lib/esm/components/PrivateMessageThread/PrivateMessageThread.js +14 -35
  507. package/lib/esm/components/PrivateMessageThread/Skeleton.js +2 -9
  508. package/lib/esm/components/PrivateMessageThreadItem/PrivateMessageThreadItem.js +15 -33
  509. package/lib/esm/components/PrivateMessageThreadItem/Skeleton.js +2 -3
  510. package/lib/esm/components/RelatedFeedObjectsWidget/RelatedFeedObjectsWidget.js +6 -21
  511. package/lib/esm/components/RelatedFeedObjectsWidget/Skeleton.js +2 -2
  512. package/lib/esm/components/SearchAutocomplete/SearchAutocomplete.js +5 -8
  513. package/lib/esm/components/SearchDialog/SearchDialog.js +2 -4
  514. package/lib/esm/components/Skeleton/AvatarGroupSkeleton.js +2 -3
  515. package/lib/esm/components/Skeleton/GenericSkeleton.js +2 -6
  516. package/lib/esm/components/SnippetNotifications/Skeleton.js +3 -3
  517. package/lib/esm/components/SnippetNotifications/SnippetNotifications.js +23 -28
  518. package/lib/esm/components/ToastNotifications/Skeleton.js +2 -2
  519. package/lib/esm/components/ToastNotifications/ToastNotifications.js +16 -15
  520. package/lib/esm/components/User/Skeleton.js +2 -3
  521. package/lib/esm/components/User/User.js +6 -14
  522. package/lib/esm/components/UserActionIconButton/UserActionIconButton.js +16 -31
  523. package/lib/esm/components/UserConnectionsRequestsSentWidget/Skeleton.js +2 -2
  524. package/lib/esm/components/UserConnectionsRequestsSentWidget/UserConnectionsRequestsSentWidget.js +5 -17
  525. package/lib/esm/components/UserConnectionsRequestsWidget/Skeleton.js +2 -2
  526. package/lib/esm/components/UserConnectionsRequestsWidget/UserConnectionsRequestsWidget.js +5 -17
  527. package/lib/esm/components/UserConnectionsWidget/Skeleton.js +2 -2
  528. package/lib/esm/components/UserConnectionsWidget/UserConnectionsWidget.js +5 -17
  529. package/lib/esm/components/UserCounters/UserCounters.js +19 -28
  530. package/lib/esm/components/UserFollowedCategoriesWidget/Skeleton.js +2 -2
  531. package/lib/esm/components/UserFollowedCategoriesWidget/UserFollowedCategoriesWidget.js +5 -20
  532. package/lib/esm/components/UserFollowedUsersWidget/Skeleton.js +2 -2
  533. package/lib/esm/components/UserFollowedUsersWidget/UserFollowedUsersWidget.js +5 -17
  534. package/lib/esm/components/UserFollowersWidget/Skeleton.js +2 -2
  535. package/lib/esm/components/UserFollowersWidget/UserFollowersWidget.js +5 -17
  536. package/lib/esm/components/UserInfo/Skeleton.js +2 -6
  537. package/lib/esm/components/UserInfo/UserInfo.js +13 -14
  538. package/lib/esm/components/UserInfoDialog/UserInfoDialog.js +3 -5
  539. package/lib/esm/components/UserProfileBlocked/UserProfileBlocked.js +4 -11
  540. package/lib/esm/components/UserProfileEdit/Section/Account.js +3 -13
  541. package/lib/esm/components/UserProfileEdit/Section/AccountCredentials.js +15 -37
  542. package/lib/esm/components/UserProfileEdit/Section/PublicInfo.js +15 -25
  543. package/lib/esm/components/UserProfileEdit/Section/Settings.js +7 -37
  544. package/lib/esm/components/UserProfileEdit/Section/SettingsSkeleton.js +2 -5
  545. package/lib/esm/components/UserProfileEdit/Skeleton.js +2 -6
  546. package/lib/esm/components/UserProfileEdit/UserProfileEdit.js +2 -9
  547. package/lib/esm/components/UserProfileHeader/Skeleton.js +2 -13
  548. package/lib/esm/components/UserProfileHeader/UserProfileHeader.js +4 -21
  549. package/lib/esm/components/UserSocialAssociation/UserSocialAssociation.js +2 -16
  550. package/lib/esm/components/UserSubscribedGroupsWidget/Skeleton.js +2 -6
  551. package/lib/esm/components/UserSubscribedGroupsWidget/UserSubscribedGroupsWidget.js +7 -22
  552. package/lib/esm/components/UserSuggestionWidget/Skeleton.js +2 -5
  553. package/lib/esm/components/UserSuggestionWidget/UserSuggestionWidget.js +5 -17
  554. package/lib/esm/components/VoteAudienceButton/VoteAudienceButton.js +9 -23
  555. package/lib/esm/components/VoteButton/VoteButton.js +9 -15
  556. package/lib/esm/components/Widget/index.js +3 -2
  557. package/lib/esm/shared/AutoPlayer/index.js +5 -6
  558. package/lib/esm/shared/BaseDialog/BaseDialog.js +3 -10
  559. package/lib/esm/shared/BaseItem/BaseItem.js +4 -10
  560. package/lib/esm/shared/BaseItemButton/BaseItemButton.js +4 -10
  561. package/lib/esm/shared/Bullet/index.js +2 -1
  562. package/lib/esm/shared/Calendar/index.js +2 -3
  563. package/lib/esm/shared/CentralProgress/index.js +3 -4
  564. package/lib/esm/shared/ConfirmDialog/ConfirmDialog.js +2 -9
  565. package/lib/esm/shared/ConsentSolutionSwitch/index.js +5 -8
  566. package/lib/esm/shared/ContributionActionsMenu/index.js +22 -85
  567. package/lib/esm/shared/CustomSnackMessage/index.js +3 -7
  568. package/lib/esm/shared/DateTimeAgo/index.js +2 -6
  569. package/lib/esm/shared/EmailTextField/index.js +3 -2
  570. package/lib/esm/shared/EmojiPicker/EmojiPicker.js +2 -2
  571. package/lib/esm/shared/EventInfoDetails/index.js +5 -22
  572. package/lib/esm/shared/HiddenPlaceholder/index.js +2 -2
  573. package/lib/esm/shared/InfiniteScroll/index.js +8 -18
  574. package/lib/esm/shared/InfiniteScroll/stories/InfiniteScrollWithHeight.js +3 -8
  575. package/lib/esm/shared/InfiniteScroll/stories/PullDownToRefreshInfScroll.js +3 -7
  576. package/lib/esm/shared/InfiniteScroll/stories/ScrollableTargetFixedInfScroll.js +13 -18
  577. package/lib/esm/shared/InfiniteScroll/stories/ScrollableTargetInfScroll.js +3 -8
  578. package/lib/esm/shared/InfiniteScroll/stories/ScrolleableTop.js +6 -11
  579. package/lib/esm/shared/InfiniteScroll/stories/WindowInfiniteScrollComponent.js +3 -6
  580. package/lib/esm/shared/LanguageSwitcher/index.js +3 -5
  581. package/lib/esm/shared/Lightbox/Lightbox.js +4 -3
  582. package/lib/esm/shared/MarkRead/MarkRead.js +3 -3
  583. package/lib/esm/shared/Media/File/DisplayComponent.js +13 -42
  584. package/lib/esm/shared/Media/File/Lightbox/index.js +5 -5
  585. package/lib/esm/shared/Media/File/PreviewComponent.js +5 -9
  586. package/lib/esm/shared/Media/File/TriggerButton.js +14 -25
  587. package/lib/esm/shared/Media/File/asUploadButton.js +3 -2
  588. package/lib/esm/shared/Media/Link/DisplayComponent.js +8 -15
  589. package/lib/esm/shared/Media/Link/LayerComponent.js +2 -11
  590. package/lib/esm/shared/Media/Link/PreviewComponent.js +2 -4
  591. package/lib/esm/shared/Media/Link/TriggerButton.js +2 -3
  592. package/lib/esm/shared/Media/Link/UrlTextField/index.js +5 -7
  593. package/lib/esm/shared/Media/Share/DisplayComponent.js +3 -3
  594. package/lib/esm/shared/MetadataField/MetadataField.js +8 -7
  595. package/lib/esm/shared/NewChip/NewChip.js +2 -2
  596. package/lib/esm/shared/NotificationItem/NotificationItem.js +3 -12
  597. package/lib/esm/shared/PasswordTextField/index.js +4 -6
  598. package/lib/esm/shared/PhoneTextField/index.js +3 -2
  599. package/lib/esm/shared/ScrollContainer/index.js +2 -2
  600. package/lib/esm/shared/StickyBox/index.js +3 -2
  601. package/lib/esm/shared/TagChip/index.js +2 -2
  602. package/lib/esm/shared/Tags/index.js +11 -23
  603. package/lib/esm/shared/UrlTextField/index.js +3 -2
  604. package/lib/esm/shared/UserAvatar/UserAvatar.js +3 -2
  605. package/lib/esm/shared/UserDeletedSnackBar/UserDeletedSnackBar.js +3 -5
  606. package/lib/esm/shared/UsernameTextField/index.js +3 -2
  607. package/lib/esm/shared/VirtualizedScroller/VirtualScrollerChild.js +2 -2
  608. package/lib/esm/shared/VirtualizedScroller/VirtualizedScroller.js +3 -2
  609. package/lib/esm/utils/contribution.js +3 -3
  610. package/lib/esm/utils/errors.js +3 -3
  611. package/lib/umd/react-ui.js +1 -1
  612. package/package.json +7 -7
@@ -2,7 +2,8 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.INSERT_IMAGE_COMMAND = void 0;
4
4
  const tslib_1 = require("tslib");
5
- const react_1 = tslib_1.__importStar(require("react"));
5
+ const jsx_runtime_1 = require("react/jsx-runtime");
6
+ const react_1 = require("react");
6
7
  const lexical_1 = require("lexical");
7
8
  const utils_1 = require("@lexical/utils");
8
9
  const LexicalComposerContext_1 = require("@lexical/react/LexicalComposerContext");
@@ -19,7 +20,7 @@ const constants_1 = require("../constants");
19
20
  exports.INSERT_IMAGE_COMMAND = (0, lexical_1.createCommand)();
20
21
  const UploadButton = (0, upload_button_1.asUploadButton)((0, react_1.forwardRef)((_a, ref) => {
21
22
  var { progress = null } = _a, rest = tslib_1.__rest(_a, ["progress"]);
22
- return (react_1.default.createElement(material_1.IconButton, Object.assign({}, rest, { "aria-label": "upload image", ref: ref }), progress ? react_1.default.createElement(material_1.CircularProgress, { variant: "determinate", value: progress, size: "1rem" }) : react_1.default.createElement(material_1.Icon, { color: "inherit" }, "image")));
23
+ return ((0, jsx_runtime_1.jsx)(material_1.IconButton, Object.assign({}, rest, { "aria-label": "upload image", ref: ref }, { children: progress ? (0, jsx_runtime_1.jsx)(material_1.CircularProgress, { variant: "determinate", value: progress, size: "1rem" }) : (0, jsx_runtime_1.jsx)(material_1.Icon, Object.assign({ color: "inherit" }, { children: "image" })) })));
23
24
  }));
24
25
  function Image({ editor, className = '' }) {
25
26
  // CONTEXT
@@ -55,19 +56,17 @@ function Image({ editor, className = '' }) {
55
56
  if (!scUserContext.user) {
56
57
  return null;
57
58
  }
58
- return (react_1.default.createElement(chunked_uploady_1.default, { destination: {
59
+ return ((0, jsx_runtime_1.jsxs)(chunked_uploady_1.default, Object.assign({ destination: {
59
60
  url: `${scContext.settings.portal}${api_services_1.Endpoints.ComposerChunkUploadMedia.url()}`,
60
61
  headers: Object.assign({}, (scContext.settings.session &&
61
62
  scContext.settings.session.authToken && {
62
63
  Authorization: `Bearer ${scContext.settings.session.authToken.accessToken}`
63
64
  })),
64
65
  method: api_services_1.Endpoints.ComposerChunkUploadMedia.method
65
- }, chunkSize: 204800, multiple: true, accept: "image/*", fileFilter: handleFileUploadFilter },
66
- react_1.default.createElement(MediaChunkUploader_1.default, { type: "eimage", onSuccess: handleUploadSuccess, onProgress: handleUploadProgress, onError: handleUploadError }),
67
- react_1.default.createElement(UploadButton, { className: className, extraProps: {
68
- disabled: Object.keys(uploading).length !== 0,
69
- progress: Object.keys(uploading).length !== 0 ? Object.values(uploading)[0].completed : null
70
- } })));
66
+ }, chunkSize: 204800, multiple: true, accept: "image/*", fileFilter: handleFileUploadFilter }, { children: [(0, jsx_runtime_1.jsx)(MediaChunkUploader_1.default, { type: "eimage", onSuccess: handleUploadSuccess, onProgress: handleUploadProgress, onError: handleUploadError }), (0, jsx_runtime_1.jsx)(UploadButton, { className: className, extraProps: {
67
+ disabled: Object.keys(uploading).length !== 0,
68
+ progress: Object.keys(uploading).length !== 0 ? Object.values(uploading)[0].completed : null
69
+ } })] })));
71
70
  }
72
71
  const classes = {
73
72
  root: `${constants_1.PREFIX}-image-plugin-root`
@@ -102,6 +101,6 @@ function ImagePlugin() {
102
101
  if (!editor.hasNodes([ImageNode_1.ImageNode])) {
103
102
  return null;
104
103
  }
105
- return react_1.default.createElement(Root, { editor: editor, className: classes.root });
104
+ return (0, jsx_runtime_1.jsx)(Root, { editor: editor, className: classes.root });
106
105
  }
107
106
  exports.default = ImagePlugin;
@@ -2,14 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.RichTextPlugin = void 0;
4
4
  const tslib_1 = require("tslib");
5
- /**
6
- * Copyright (c) Meta Platforms, Inc. and affiliates.
7
- *
8
- * This source code is licensed under the MIT license found in the
9
- * LICENSE file in the root directory of this source tree.
10
- *
11
- */
12
- const React = tslib_1.__importStar(require("react"));
5
+ const jsx_runtime_1 = require("react/jsx-runtime");
13
6
  const LexicalComposerContext_1 = require("@lexical/react/LexicalComposerContext");
14
7
  const useLexicalEditable_1 = tslib_1.__importDefault(require("@lexical/react/useLexicalEditable"));
15
8
  const useDecorators_1 = require("../shared/useDecorators");
@@ -20,10 +13,7 @@ function RichTextPlugin({ contentEditable, placeholder, ErrorBoundary }) {
20
13
  const [editor] = (0, LexicalComposerContext_1.useLexicalComposerContext)();
21
14
  const decorators = (0, useDecorators_1.useDecorators)(editor, ErrorBoundary);
22
15
  (0, useRichTextSetup_1.useRichTextSetup)(editor);
23
- return (React.createElement(React.Fragment, null,
24
- contentEditable,
25
- React.createElement(Placeholder, { content: placeholder }),
26
- decorators));
16
+ return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [contentEditable, (0, jsx_runtime_1.jsx)(Placeholder, { content: placeholder }), decorators] }));
27
17
  }
28
18
  exports.RichTextPlugin = RichTextPlugin;
29
19
  function Placeholder({ content }) {
@@ -2,7 +2,8 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.useMenuAnchorRef = exports.useDynamicPositioning = exports.getScrollParent = void 0;
4
4
  const tslib_1 = require("tslib");
5
- const react_1 = tslib_1.__importStar(require("react"));
5
+ const jsx_runtime_1 = require("react/jsx-runtime");
6
+ const react_1 = require("react");
6
7
  const react_core_1 = require("@selfcommunity/react-core");
7
8
  const lexical_1 = require("lexical");
8
9
  const LexicalComposerContext_1 = require("@lexical/react/LexicalComposerContext");
@@ -207,10 +208,7 @@ function useMentionLookupService(mentionString) {
207
208
  }
208
209
  function MentionsTypeaheadItem({ index, isHovered, isSelected, onClick, onMouseEnter, onMouseLeave, result }) {
209
210
  const liRef = (0, react_1.useRef)(null);
210
- return (react_1.default.createElement("li", { key: result.id, tabIndex: -1, className: (0, classnames_1.default)('item', { ['selected']: isSelected, ['hovered']: isHovered }), ref: liRef, role: "option", "aria-selected": isSelected, id: 'typeahead-item-' + index, onMouseEnter: onMouseEnter, onMouseLeave: onMouseLeave, onClick: onClick },
211
- react_1.default.createElement(material_1.Avatar, { alt: result.username, src: result.avatar }),
212
- " ",
213
- result.username));
211
+ return ((0, jsx_runtime_1.jsxs)("li", Object.assign({ tabIndex: -1, className: (0, classnames_1.default)('item', { ['selected']: isSelected, ['hovered']: isHovered }), ref: liRef, role: "option", "aria-selected": isSelected, id: 'typeahead-item-' + index, onMouseEnter: onMouseEnter, onMouseLeave: onMouseLeave, onClick: onClick }, { children: [(0, jsx_runtime_1.jsx)(material_1.Avatar, { alt: result.username, src: result.avatar }), " ", result.username] }), result.id));
214
212
  }
215
213
  function MentionsTypeahead({ close, editor, resolution, className = '' }) {
216
214
  const divRef = (0, react_1.useRef)(null);
@@ -304,14 +302,13 @@ function MentionsTypeahead({ close, editor, resolution, className = '' }) {
304
302
  if (results === null) {
305
303
  return null;
306
304
  }
307
- return (react_1.default.createElement("div", { className: className, "aria-label": "Suggested mentions", ref: divRef, role: "listbox" },
308
- react_1.default.createElement("ul", null, results.slice(0, SUGGESTION_LIST_LENGTH_LIMIT).map((result, i) => (react_1.default.createElement(MentionsTypeaheadItem, { index: i, isHovered: i === hoveredIndex, isSelected: i === selectedIndex, onClick: () => {
309
- applyCurrentSelected(i);
310
- }, onMouseEnter: () => {
311
- setHoveredIndex(i);
312
- }, onMouseLeave: () => {
313
- setHoveredIndex(null);
314
- }, key: result.id, result: result }))))));
305
+ return ((0, jsx_runtime_1.jsx)("div", Object.assign({ className: className, "aria-label": "Suggested mentions", ref: divRef, role: "listbox" }, { children: (0, jsx_runtime_1.jsx)("ul", { children: results.slice(0, SUGGESTION_LIST_LENGTH_LIMIT).map((result, i) => ((0, jsx_runtime_1.jsx)(MentionsTypeaheadItem, { index: i, isHovered: i === hoveredIndex, isSelected: i === selectedIndex, onClick: () => {
306
+ applyCurrentSelected(i);
307
+ }, onMouseEnter: () => {
308
+ setHoveredIndex(i);
309
+ }, onMouseLeave: () => {
310
+ setHoveredIndex(null);
311
+ }, result: result }, result.id))) }) })));
315
312
  }
316
313
  function checkForCapitalizedNameMentions(text, minMatchLength) {
317
314
  const match = CapitalizedNameMentionsRegex.exec(text);
@@ -536,9 +533,7 @@ function useMentions(editor, anchorClassName = null) {
536
533
  if (!anchorElementRef) {
537
534
  return null;
538
535
  }
539
- return (react_1.default.createElement(ClickAwayListener_1.default, { onClickAway: closeTypeahead },
540
- react_1.default.createElement(material_1.Portal, { container: anchorElementRef },
541
- react_1.default.createElement(Root, { close: closeTypeahead, resolution: resolution, editor: editor, className: classes.root }))));
536
+ return ((0, jsx_runtime_1.jsx)(ClickAwayListener_1.default, Object.assign({ onClickAway: closeTypeahead }, { children: (0, jsx_runtime_1.jsx)(material_1.Portal, Object.assign({ container: anchorElementRef }, { children: (0, jsx_runtime_1.jsx)(Root, { close: closeTypeahead, resolution: resolution, editor: editor, className: classes.root }) })) })));
542
537
  }
543
538
  function MentionsPlugin() {
544
539
  const [editor] = (0, LexicalComposerContext_1.useLexicalComposerContext)();
@@ -1,7 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- const tslib_1 = require("tslib");
4
- const react_1 = tslib_1.__importDefault(require("react"));
3
+ const jsx_runtime_1 = require("react/jsx-runtime");
5
4
  const LexicalOnChangePlugin_1 = require("@lexical/react/LexicalOnChangePlugin");
6
5
  const html_1 = require("@lexical/html");
7
6
  const OnChangePlugin = (props) => {
@@ -13,6 +12,6 @@ const OnChangePlugin = (props) => {
13
12
  onChange(htmlString);
14
13
  });
15
14
  };
16
- return react_1.default.createElement(LexicalOnChangePlugin_1.OnChangePlugin, { onChange: handleChange });
15
+ return (0, jsx_runtime_1.jsx)(LexicalOnChangePlugin_1.OnChangePlugin, { onChange: handleChange });
17
16
  };
18
17
  exports.default = OnChangePlugin;
@@ -1,13 +1,7 @@
1
1
  "use strict";
2
- /**
3
- * Copyright (c) Meta Platforms, Inc. and affiliates.
4
- *
5
- * This source code is licensed under the MIT license found in the
6
- * LICENSE file in the root directory of this source tree.
7
- *
8
- */
9
2
  Object.defineProperty(exports, "__esModule", { value: true });
10
3
  const tslib_1 = require("tslib");
4
+ const jsx_runtime_1 = require("react/jsx-runtime");
11
5
  const lexical_1 = require("lexical");
12
6
  const link_1 = require("@lexical/link");
13
7
  const list_1 = require("@lexical/list");
@@ -118,14 +112,7 @@ function BlockFormatIconButton({ className = '', editor, blockType, disabled = f
118
112
  const handleClose = () => {
119
113
  setAnchorEl(null);
120
114
  };
121
- return (React.createElement(React.Fragment, null,
122
- React.createElement(material_1.IconButton, { className: className, disabled: disabled, onClick: handleOpen },
123
- React.createElement(material_1.Tooltip, { title: React.createElement(react_intl_1.FormattedMessage, { id: "ui.editor.toolbarPlugin.blockType", defaultMessage: "ui.editor.toolbarPlugin.blockType" }) },
124
- React.createElement(React.Fragment, null,
125
- React.createElement(material_1.Icon, null, blockTypeToBlockIcon[blockType]),
126
- React.createElement(material_1.Icon, null, anchorEl ? 'expand_less' : 'expand_more')))),
127
- React.createElement(material_1.Menu, { anchorEl: anchorEl, open: Boolean(anchorEl), onClose: handleClose }, Object.keys(blockTypeToBlockIcon).map((block) => (React.createElement(material_1.MenuItem, { key: block, onClick: handleSelect(block) },
128
- React.createElement(material_1.Icon, null, blockTypeToBlockIcon[block])))))));
115
+ return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(material_1.IconButton, Object.assign({ className: className, disabled: disabled, onClick: handleOpen }, { children: (0, jsx_runtime_1.jsx)(material_1.Tooltip, Object.assign({ title: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.editor.toolbarPlugin.blockType", defaultMessage: "ui.editor.toolbarPlugin.blockType" }) }, { children: (0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(material_1.Icon, { children: blockTypeToBlockIcon[blockType] }), (0, jsx_runtime_1.jsx)(material_1.Icon, { children: anchorEl ? 'expand_less' : 'expand_more' })] }) })) })), (0, jsx_runtime_1.jsx)(material_1.Menu, Object.assign({ anchorEl: anchorEl, open: Boolean(anchorEl), onClose: handleClose }, { children: Object.keys(blockTypeToBlockIcon).map((block) => ((0, jsx_runtime_1.jsx)(material_1.MenuItem, Object.assign({ onClick: handleSelect(block) }, { children: (0, jsx_runtime_1.jsx)(material_1.Icon, { children: blockTypeToBlockIcon[block] }) }), block))) }))] }));
129
116
  }
130
117
  const classes = {
131
118
  root: `${constants_1.PREFIX}-toolbar-plugin-root`,
@@ -278,30 +265,12 @@ function ToolbarPlugin(inProps) {
278
265
  editor.dispatchCommand(link_1.TOGGLE_LINK_COMMAND, null);
279
266
  }
280
267
  }, [editor, isLink]);
281
- return (React.createElement(Root, { className: classes.root },
282
- blockType in blockTypeToBlockIcon && activeEditor === editor && (React.createElement(BlockFormatIconButton, { className: classes.blockFormat, disabled: !isEditable, blockType: blockType, editor: editor })),
283
- React.createElement(material_1.IconButton, { disabled: !isEditable, onClick: () => {
284
- activeEditor.dispatchCommand(lexical_1.FORMAT_ELEMENT_COMMAND, ALIGNMENTS[(ALIGNMENTS.findIndex((a) => alignment === a) + 1) % ALIGNMENTS.length]);
285
- } },
286
- React.createElement(material_1.Tooltip, { title: React.createElement(react_intl_1.FormattedMessage, { id: `ui.editor.toolbarPlugin.${alignment}`, defaultMessage: `ui.editor.toolbarPlugin.${alignment}` }) },
287
- React.createElement(material_1.Icon, null, `format_align_${alignment}`))),
288
- React.createElement(material_1.ToggleButtonGroup, { value: formats }, FORMATS.map((format) => (React.createElement(material_1.ToggleButton, { key: format, value: format, disabled: !isEditable, onClick: () => {
289
- activeEditor.dispatchCommand(lexical_1.FORMAT_TEXT_COMMAND, format);
290
- } },
291
- React.createElement(material_1.Tooltip, { title: React.createElement(react_intl_1.FormattedMessage, { id: `ui.editor.toolbarPlugin.${format}`, defaultMessage: `ui.editor.toolbarPlugin.${format}` }) },
292
- React.createElement(material_1.Icon, null, `format_${format}`)))))),
293
- React.createElement(material_1.IconButton, { disabled: !isEditable, onClick: clearFormatting },
294
- React.createElement(material_1.Tooltip, { title: React.createElement(react_intl_1.FormattedMessage, { id: "ui.editor.toolbarPlugin.clear", defaultMessage: "ui.editor.toolbarPlugin.clear" }) },
295
- React.createElement(material_1.Icon, null, "format_clear"))),
296
- React.createElement(material_1.IconButton, { disabled: !isEditable, onClick: () => {
297
- activeEditor.dispatchCommand(LexicalHorizontalRuleNode_1.INSERT_HORIZONTAL_RULE_COMMAND, undefined);
298
- } },
299
- React.createElement(material_1.Tooltip, { title: React.createElement(react_intl_1.FormattedMessage, { id: "ui.editor.toolbarPlugin.horizontalRule", defaultMessage: "ui.editor.toolbarPlugin.horizontalRule" }) },
300
- React.createElement(material_1.Icon, null, "format_horizontal_rule"))),
301
- uploadImage && React.createElement(ImagePlugin_1.default, null),
302
- React.createElement(material_1.IconButton, { disabled: !isEditable, onClick: insertLink },
303
- React.createElement(material_1.Tooltip, { title: React.createElement(react_intl_1.FormattedMessage, { id: "ui.editor.toolbarPlugin.link", defaultMessage: "ui.editor.toolbarPlugin.link" }) },
304
- React.createElement(material_1.Icon, null, "format_link"))),
305
- React.createElement(EmojiPlugin_1.default, null)));
268
+ return ((0, jsx_runtime_1.jsxs)(Root, Object.assign({ className: classes.root }, { children: [blockType in blockTypeToBlockIcon && activeEditor === editor && ((0, jsx_runtime_1.jsx)(BlockFormatIconButton, { className: classes.blockFormat, disabled: !isEditable, blockType: blockType, editor: editor })), (0, jsx_runtime_1.jsx)(material_1.IconButton, Object.assign({ disabled: !isEditable, onClick: () => {
269
+ activeEditor.dispatchCommand(lexical_1.FORMAT_ELEMENT_COMMAND, ALIGNMENTS[(ALIGNMENTS.findIndex((a) => alignment === a) + 1) % ALIGNMENTS.length]);
270
+ } }, { children: (0, jsx_runtime_1.jsx)(material_1.Tooltip, Object.assign({ title: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: `ui.editor.toolbarPlugin.${alignment}`, defaultMessage: `ui.editor.toolbarPlugin.${alignment}` }) }, { children: (0, jsx_runtime_1.jsx)(material_1.Icon, { children: `format_align_${alignment}` }) })) })), (0, jsx_runtime_1.jsx)(material_1.ToggleButtonGroup, Object.assign({ value: formats }, { children: FORMATS.map((format) => ((0, jsx_runtime_1.jsx)(material_1.ToggleButton, Object.assign({ value: format, disabled: !isEditable, onClick: () => {
271
+ activeEditor.dispatchCommand(lexical_1.FORMAT_TEXT_COMMAND, format);
272
+ } }, { children: (0, jsx_runtime_1.jsx)(material_1.Tooltip, Object.assign({ title: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: `ui.editor.toolbarPlugin.${format}`, defaultMessage: `ui.editor.toolbarPlugin.${format}` }) }, { children: (0, jsx_runtime_1.jsx)(material_1.Icon, { children: `format_${format}` }) })) }), format))) })), (0, jsx_runtime_1.jsx)(material_1.IconButton, Object.assign({ disabled: !isEditable, onClick: clearFormatting }, { children: (0, jsx_runtime_1.jsx)(material_1.Tooltip, Object.assign({ title: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.editor.toolbarPlugin.clear", defaultMessage: "ui.editor.toolbarPlugin.clear" }) }, { children: (0, jsx_runtime_1.jsx)(material_1.Icon, { children: "format_clear" }) })) })), (0, jsx_runtime_1.jsx)(material_1.IconButton, Object.assign({ disabled: !isEditable, onClick: () => {
273
+ activeEditor.dispatchCommand(LexicalHorizontalRuleNode_1.INSERT_HORIZONTAL_RULE_COMMAND, undefined);
274
+ } }, { children: (0, jsx_runtime_1.jsx)(material_1.Tooltip, Object.assign({ title: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.editor.toolbarPlugin.horizontalRule", defaultMessage: "ui.editor.toolbarPlugin.horizontalRule" }) }, { children: (0, jsx_runtime_1.jsx)(material_1.Icon, { children: "format_horizontal_rule" }) })) })), uploadImage && (0, jsx_runtime_1.jsx)(ImagePlugin_1.default, {}), (0, jsx_runtime_1.jsx)(material_1.IconButton, Object.assign({ disabled: !isEditable, onClick: insertLink }, { children: (0, jsx_runtime_1.jsx)(material_1.Tooltip, Object.assign({ title: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.editor.toolbarPlugin.link", defaultMessage: "ui.editor.toolbarPlugin.link" }) }, { children: (0, jsx_runtime_1.jsx)(material_1.Icon, { children: "format_link" }) })) })), (0, jsx_runtime_1.jsx)(EmojiPlugin_1.default, {})] })));
306
275
  }
307
276
  exports.default = ToolbarPlugin;
@@ -1,9 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.useDecorators = void 0;
4
- const tslib_1 = require("tslib");
4
+ const jsx_runtime_1 = require("react/jsx-runtime");
5
5
  const react_1 = require("react");
6
- const React = tslib_1.__importStar(require("react"));
7
6
  const react_dom_1 = require("react-dom");
8
7
  const react_core_1 = require("@selfcommunity/react-core");
9
8
  function useDecorators(editor, ErrorBoundary) {
@@ -28,8 +27,7 @@ function useDecorators(editor, ErrorBoundary) {
28
27
  const decoratorKeys = Object.keys(decorators);
29
28
  for (let i = 0; i < decoratorKeys.length; i++) {
30
29
  const nodeKey = decoratorKeys[i];
31
- const reactDecorator = (React.createElement(ErrorBoundary, { onError: (e) => editor._onError(e) },
32
- React.createElement(react_1.Suspense, { fallback: null }, decorators[nodeKey])));
30
+ const reactDecorator = ((0, jsx_runtime_1.jsx)(ErrorBoundary, Object.assign({ onError: (e) => editor._onError(e) }, { children: (0, jsx_runtime_1.jsx)(react_1.Suspense, Object.assign({ fallback: null }, { children: decorators[nodeKey] })) })));
33
31
  const element = editor.getElementByKey(nodeKey);
34
32
  if (element !== null) {
35
33
  decoratedPortals.push((0, react_dom_1.createPortal)(reactDecorator, element, nodeKey));
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
- const react_1 = tslib_1.__importDefault(require("react"));
4
+ const jsx_runtime_1 = require("react/jsx-runtime");
5
5
  const styles_1 = require("@mui/material/styles");
6
6
  const material_1 = require("@mui/material");
7
7
  const types_1 = require("@selfcommunity/types");
@@ -73,18 +73,11 @@ function Event(inProps) {
73
73
  * Renders event object
74
74
  */
75
75
  if (!scEvent) {
76
- return react_1.default.createElement(Skeleton_1.default, { elevation: elevation });
76
+ return (0, jsx_runtime_1.jsx)(Skeleton_1.default, { elevation: elevation });
77
77
  }
78
78
  /**
79
79
  * Renders root object
80
80
  */
81
- return (react_1.default.createElement(Root, Object.assign({ elevation: elevation, disableTypography: true }, rest, { className: (0, classnames_1.default)(classes.root, className), image: react_1.default.createElement(material_1.Avatar, { variant: "square", alt: scEvent.name, src: scEvent.image_medium, className: classes.avatar }), primary: react_1.default.createElement(material_1.Typography, { component: "div", className: classes.primary },
82
- react_1.default.createElement(material_1.Typography, { component: "span" }, `${intl.formatDate(scEvent.start_date, { weekday: 'long', month: 'long', day: 'numeric' })}`),
83
- react_1.default.createElement(material_1.Typography, { variant: "body1" }, scEvent.name)), secondary: react_1.default.createElement(material_1.Typography, { component: "p", variant: "body2", className: classes.secondary },
84
- react_1.default.createElement(react_intl_1.FormattedMessage, { id: `ui.eventForm.privacy.${scEvent.privacy}`, defaultMessage: `ui.eventForm.privacy.${scEvent.privacy}` }),
85
- " -",
86
- ' ',
87
- (scEvent === null || scEvent === void 0 ? void 0 : scEvent.location) === types_1.SCEventLocationType.PERSON ? (react_1.default.createElement(react_intl_1.FormattedMessage, { id: `ui.eventForm.address.live.label`, defaultMessage: `ui.eventForm.address.live.label` })) : (react_1.default.createElement(react_intl_1.FormattedMessage, { id: `ui.eventForm.address.online.label`, defaultMessage: `ui.eventForm.address.online.label` }))), actions: react_1.default.createElement(material_1.Button, { size: "small", variant: "outlined", component: react_core_1.Link, to: scRoutingContext.url(react_core_1.SCRoutes.EVENT_ROUTE_NAME, scEvent) },
88
- react_1.default.createElement(react_intl_1.FormattedMessage, { defaultMessage: "ui.event.see", id: "ui.event.see" })) })));
81
+ return ((0, jsx_runtime_1.jsx)(Root, Object.assign({ elevation: elevation, disableTypography: true }, rest, { className: (0, classnames_1.default)(classes.root, className), image: (0, jsx_runtime_1.jsx)(material_1.Avatar, { variant: "square", alt: scEvent.name, src: scEvent.image_medium, className: classes.avatar }), primary: (0, jsx_runtime_1.jsxs)(material_1.Typography, Object.assign({ component: "div", className: classes.primary }, { children: [(0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ component: "span" }, { children: `${intl.formatDate(scEvent.start_date, { weekday: 'long', month: 'long', day: 'numeric' })}` })), (0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ variant: "body1" }, { children: scEvent.name }))] })), secondary: (0, jsx_runtime_1.jsxs)(material_1.Typography, Object.assign({ component: "p", variant: "body2", className: classes.secondary }, { children: [(0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: `ui.eventForm.privacy.${scEvent.privacy}`, defaultMessage: `ui.eventForm.privacy.${scEvent.privacy}` }), " -", ' ', (scEvent === null || scEvent === void 0 ? void 0 : scEvent.location) === types_1.SCEventLocationType.PERSON ? ((0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: `ui.eventForm.address.live.label`, defaultMessage: `ui.eventForm.address.live.label` })) : ((0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: `ui.eventForm.address.online.label`, defaultMessage: `ui.eventForm.address.online.label` }))] })), actions: (0, jsx_runtime_1.jsx)(material_1.Button, Object.assign({ size: "small", variant: "outlined", component: react_core_1.Link, to: scRoutingContext.url(react_core_1.SCRoutes.EVENT_ROUTE_NAME, scEvent) }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { defaultMessage: "ui.event.see", id: "ui.event.see" }) })) })));
89
82
  }
90
83
  exports.default = Event;
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
- const react_1 = tslib_1.__importDefault(require("react"));
4
+ const jsx_runtime_1 = require("react/jsx-runtime");
5
5
  const material_1 = require("@mui/material");
6
6
  const styles_1 = require("@mui/material/styles");
7
7
  const Skeleton_1 = tslib_1.__importDefault(require("@mui/material/Skeleton"));
@@ -41,12 +41,6 @@ const Root = (0, styles_1.styled)(BaseItem_1.default, {
41
41
  */
42
42
  function EventSkeleton(inProps) {
43
43
  const { className, action } = inProps;
44
- return (react_1.default.createElement(Root, { elevation: 0, className: (0, classnames_1.default)(classes.root, className), image: react_1.default.createElement(material_1.Box, { className: classes.image },
45
- react_1.default.createElement(Skeleton_1.default, { animation: "wave", variant: "rectangular", width: 100, height: 60 }),
46
- " ",
47
- react_1.default.createElement(material_1.Icon, { fontSize: "large" }, "CalendarIcon")), primary: react_1.default.createElement(Skeleton_1.default, { animation: "wave", variant: "rectangular", height: 10, width: 100, style: { marginBottom: 12 } }), secondary: react_1.default.createElement(react_1.default.Fragment, null,
48
- react_1.default.createElement(Skeleton_1.default, { animation: "wave", variant: "rectangular", height: 10, width: 160, style: { marginBottom: 10 } }),
49
- react_1.default.createElement(Skeleton_1.default, { animation: "wave", variant: "rectangular", height: 10, width: 90 })), actions: react_1.default.createElement(react_1.default.Fragment, null, action !== null && action !== void 0 ? action : (react_1.default.createElement(material_1.Button, { size: "small", variant: "outlined", disabled: true },
50
- react_1.default.createElement(Skeleton_1.default, { animation: "wave", height: 10, width: 30, style: { marginTop: 5, marginBottom: 5 } })))) }));
44
+ return ((0, jsx_runtime_1.jsx)(Root, { elevation: 0, className: (0, classnames_1.default)(classes.root, className), image: (0, jsx_runtime_1.jsxs)(material_1.Box, Object.assign({ className: classes.image }, { children: [(0, jsx_runtime_1.jsx)(Skeleton_1.default, { animation: "wave", variant: "rectangular", width: 100, height: 60 }), " ", (0, jsx_runtime_1.jsx)(material_1.Icon, Object.assign({ fontSize: "large" }, { children: "CalendarIcon" }))] })), primary: (0, jsx_runtime_1.jsx)(Skeleton_1.default, { animation: "wave", variant: "rectangular", height: 10, width: 100, style: { marginBottom: 12 } }), secondary: (0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(Skeleton_1.default, { animation: "wave", variant: "rectangular", height: 10, width: 160, style: { marginBottom: 10 } }), (0, jsx_runtime_1.jsx)(Skeleton_1.default, { animation: "wave", variant: "rectangular", height: 10, width: 90 })] }), actions: (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: action !== null && action !== void 0 ? action : ((0, jsx_runtime_1.jsx)(material_1.Button, Object.assign({ size: "small", variant: "outlined", disabled: true }, { children: (0, jsx_runtime_1.jsx)(Skeleton_1.default, { animation: "wave", height: 10, width: 30, style: { marginTop: 5, marginBottom: 5 } }) }))) }) }));
51
45
  }
52
46
  exports.default = EventSkeleton;
@@ -1,7 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
- const react_1 = tslib_1.__importStar(require("react"));
4
+ const jsx_runtime_1 = require("react/jsx-runtime");
5
+ const react_1 = require("react");
5
6
  const styles_1 = require("@mui/material/styles");
6
7
  const material_1 = require("@mui/material");
7
8
  const Icon_1 = tslib_1.__importDefault(require("@mui/material/Icon"));
@@ -111,19 +112,10 @@ function EventAddress(inProps) {
111
112
  }
112
113
  }, [inputValue]);
113
114
  if (!geocodingApiKey && !isLoaded) {
114
- return react_1.default.createElement(HiddenPlaceholder_1.default, null);
115
+ return (0, jsx_runtime_1.jsx)(HiddenPlaceholder_1.default, {});
115
116
  }
116
- return (react_1.default.createElement(Root, { className: (0, classnames_1.default)(classes.root, className) },
117
- react_1.default.createElement(material_1.Tabs, { className: classes.tabs, value: location, onChange: handleChange, indicatorColor: "secondary", textColor: "secondary", variant: "fullWidth" },
118
- react_1.default.createElement(material_1.Tab, { value: types_1.SCEventLocationType.PERSON, classes: { root: classes.tab }, icon: react_1.default.createElement(Icon_1.default, null, "add_location_alt"), iconPosition: "start", label: react_1.default.createElement(react_intl_1.FormattedMessage, { id: "ui.eventForm.address.live.label", defaultMessage: "ui.eventForm.address.live.label" }) }),
119
- react_1.default.createElement(material_1.Tab, { value: types_1.SCEventLocationType.ONLINE, classes: { root: classes.tab }, icon: react_1.default.createElement(Icon_1.default, null, "play_circle_outline"), iconPosition: "start", label: react_1.default.createElement(react_intl_1.FormattedMessage, { id: "ui.eventForm.address.online.label", defaultMessage: "ui.eventForm.address.online.label" }) })),
120
- react_1.default.createElement(material_1.Box, { className: classes.tabContent },
121
- location === types_1.SCEventLocationType.PERSON && (react_1.default.createElement(material_1.Autocomplete, { freeSolo: true, size: "small", value: geolocation, onChange: handleSelection, inputValue: inputValue, onInputChange: handleLocationChange, options: suggestions, getOptionLabel: (option) => option.description || geolocation, noOptionsText: react_1.default.createElement(react_intl_1.FormattedMessage, { id: "ui.eventForm.address.live.noResults", defaultMessage: "ui.eventForm.address.live.noResults" }), renderInput: (params) => (react_1.default.createElement(material_1.TextField, Object.assign({}, params, { label: react_1.default.createElement(react_intl_1.FormattedMessage, { id: "ui.eventForm.address.live.placeholder", defaultMessage: "ui.eventForm.address.live.placeholder" }), variant: "outlined", fullWidth: true, InputProps: Object.assign(Object.assign({}, params.InputProps), { endAdornment: (react_1.default.createElement(react_1.default.Fragment, null,
122
- react_1.default.createElement(material_1.InputAdornment, { position: "start" },
123
- react_1.default.createElement(Icon_1.default, null, "add_location_alt")),
124
- params.InputProps.endAdornment)) }) }))) })),
125
- location === types_1.SCEventLocationType.ONLINE && (react_1.default.createElement(UrlTextField_1.default, { size: "small", fullWidth: true, type: "url", placeholder: `${intl.formatMessage(messages.virtualPlaceholder)}`, helperText: react_1.default.createElement(react_intl_1.FormattedMessage, { id: "ui.eventForm.address.online.help", defaultMessage: "ui.eventForm.address.online.help" }), InputProps: {
126
- endAdornment: react_1.default.createElement(Icon_1.default, null, "play_circle_outline")
127
- }, onChange: handleLinkChange })))));
117
+ return ((0, jsx_runtime_1.jsxs)(Root, Object.assign({ className: (0, classnames_1.default)(classes.root, className) }, { children: [(0, jsx_runtime_1.jsxs)(material_1.Tabs, Object.assign({ className: classes.tabs, value: location, onChange: handleChange, indicatorColor: "secondary", textColor: "secondary", variant: "fullWidth" }, { children: [(0, jsx_runtime_1.jsx)(material_1.Tab, { value: types_1.SCEventLocationType.PERSON, classes: { root: classes.tab }, icon: (0, jsx_runtime_1.jsx)(Icon_1.default, { children: "add_location_alt" }), iconPosition: "start", label: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.eventForm.address.live.label", defaultMessage: "ui.eventForm.address.live.label" }) }), (0, jsx_runtime_1.jsx)(material_1.Tab, { value: types_1.SCEventLocationType.ONLINE, classes: { root: classes.tab }, icon: (0, jsx_runtime_1.jsx)(Icon_1.default, { children: "play_circle_outline" }), iconPosition: "start", label: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.eventForm.address.online.label", defaultMessage: "ui.eventForm.address.online.label" }) })] })), (0, jsx_runtime_1.jsxs)(material_1.Box, Object.assign({ className: classes.tabContent }, { children: [location === types_1.SCEventLocationType.PERSON && ((0, jsx_runtime_1.jsx)(material_1.Autocomplete, { freeSolo: true, size: "small", value: geolocation, onChange: handleSelection, inputValue: inputValue, onInputChange: handleLocationChange, options: suggestions, getOptionLabel: (option) => option.description || geolocation, noOptionsText: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.eventForm.address.live.noResults", defaultMessage: "ui.eventForm.address.live.noResults" }), renderInput: (params) => ((0, jsx_runtime_1.jsx)(material_1.TextField, Object.assign({}, params, { label: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.eventForm.address.live.placeholder", defaultMessage: "ui.eventForm.address.live.placeholder" }), variant: "outlined", fullWidth: true, InputProps: Object.assign(Object.assign({}, params.InputProps), { endAdornment: ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(material_1.InputAdornment, Object.assign({ position: "start" }, { children: (0, jsx_runtime_1.jsx)(Icon_1.default, { children: "add_location_alt" }) })), params.InputProps.endAdornment] })) }) }))) })), location === types_1.SCEventLocationType.ONLINE && ((0, jsx_runtime_1.jsx)(UrlTextField_1.default, { size: "small", fullWidth: true, type: "url", placeholder: `${intl.formatMessage(messages.virtualPlaceholder)}`, helperText: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.eventForm.address.online.help", defaultMessage: "ui.eventForm.address.online.help" }), InputProps: {
118
+ endAdornment: (0, jsx_runtime_1.jsx)(Icon_1.default, { children: "play_circle_outline" })
119
+ }, onChange: handleLinkChange }))] }))] })));
128
120
  }
129
121
  exports.default = EventAddress;
@@ -1,7 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
- const react_1 = tslib_1.__importStar(require("react"));
4
+ const jsx_runtime_1 = require("react/jsx-runtime");
5
+ const react_1 = require("react");
5
6
  const system_1 = require("@mui/system");
6
7
  const styles_1 = require("@mui/material/styles");
7
8
  const material_1 = require("@mui/material");
@@ -241,7 +242,7 @@ function EventForm(inProps) {
241
242
  // eslint-disable-next-line @typescript-eslint/ban-ts-ignore,@typescript-eslint/ban-ts-comment
242
243
  // @ts-ignore
243
244
  if (Object.values(_error)[0].error === 'unique') {
244
- setError(Object.assign(Object.assign({}, error), { ['nameError']: react_1.default.createElement(react_intl_1.FormattedMessage, { id: "ui.eventForm.name.error.unique", defaultMessage: "ui.eventForm.name.error.unique" }) }));
245
+ setError(Object.assign(Object.assign({}, error), { ['nameError']: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.eventForm.name.error.unique", defaultMessage: "ui.eventForm.name.error.unique" }) }));
245
246
  }
246
247
  else {
247
248
  setError(Object.assign(Object.assign({}, error), _error));
@@ -268,95 +269,54 @@ function EventForm(inProps) {
268
269
  /**
269
270
  * Renders root object
270
271
  */
271
- return (react_1.default.createElement(Root, Object.assign({ DialogContentProps: { dividers: false }, title: event ? (react_1.default.createElement(react_intl_1.FormattedMessage, { id: "ui.eventForm.title.edit", defaultMessage: "ui.eventForm.title.edit" })) : (react_1.default.createElement(react_intl_1.FormattedMessage, { id: "ui.eventForm.title", defaultMessage: "ui.eventForm.title" })), open: open, onClose: onClose, className: (0, classnames_1.default)(classes.root, className), actions: react_1.default.createElement(lab_1.LoadingButton, { loading: field.isSubmitting, disabled: !field.name ||
272
+ return ((0, jsx_runtime_1.jsx)(Root, Object.assign({ DialogContentProps: { dividers: false }, title: event ? ((0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.eventForm.title.edit", defaultMessage: "ui.eventForm.title.edit" })) : ((0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.eventForm.title", defaultMessage: "ui.eventForm.title" })), open: open, onClose: onClose, className: (0, classnames_1.default)(classes.root, className), actions: (0, jsx_runtime_1.jsx)(lab_1.LoadingButton, Object.assign({ loading: field.isSubmitting, disabled: !field.name ||
272
273
  (!field.startDate && !field.startTime) ||
273
274
  (field.location === types_1.SCEventLocationType.ONLINE && !field.link) ||
274
275
  (field.location === types_1.SCEventLocationType.PERSON && !field.geolocation) ||
275
276
  (field.recurring !== types_1.SCEventRecurrenceType.NEVER && !field.endDate && !field.endTime) ||
276
277
  Object.keys(error).length !== 0 ||
277
278
  field.name.length > Event_1.EVENT_TITLE_MAX_LENGTH ||
278
- field.description.length > Event_1.EVENT_DESCRIPTION_MAX_LENGTH, variant: "contained", onClick: handleSubmit, color: "secondary" }, event ? (react_1.default.createElement(react_intl_1.FormattedMessage, { id: "ui.eventForm.button.edit", defaultMessage: "ui.eventForm.button.edit" })) : (react_1.default.createElement(react_intl_1.FormattedMessage, { id: "ui.eventForm.button.create", defaultMessage: "ui.eventForm.button.create" }))) }, rest),
279
- react_1.default.createElement(react_1.default.Fragment, null,
280
- react_1.default.createElement(material_1.Paper, { style: _backgroundCover, classes: { root: classes.cover } },
281
- react_1.default.createElement(UploadEventCover_1.default, { isCreationMode: true, onChange: handleChangeCover })),
282
- react_1.default.createElement(material_1.FormGroup, { className: classes.form },
283
- react_1.default.createElement(material_1.TextField, { required: true, className: classes.name, placeholder: `${intl.formatMessage(messages.name)}`, margin: "normal", value: field.name, name: "name", onChange: handleChange, InputProps: {
284
- endAdornment: react_1.default.createElement(material_1.Typography, { variant: "body2" }, Event_1.EVENT_TITLE_MAX_LENGTH - field.name.length)
285
- }, error: Boolean(((_c = field === null || field === void 0 ? void 0 : field.name) === null || _c === void 0 ? void 0 : _c.length) > Event_1.EVENT_TITLE_MAX_LENGTH) || Boolean(error[`nameError`]), helperText: ((_d = field === null || field === void 0 ? void 0 : field.name) === null || _d === void 0 ? void 0 : _d.length) > Event_1.EVENT_TITLE_MAX_LENGTH ? (react_1.default.createElement(react_intl_1.FormattedMessage, { id: "ui.eventForm.name.error.maxLength", defaultMessage: "ui.eventForm.name.error.maxLength" })) : error[`nameError`] ? (error[`nameError`]) : null }),
286
- react_1.default.createElement(material_1.Box, { className: classes.dateTime },
287
- react_1.default.createElement(x_date_pickers_1.LocalizationProvider, { dateAdapter: AdapterDateFns_1.AdapterDateFns, adapterLocale: scContext.settings.locale.default === 'it' ? it_1.default : en_US_1.default },
288
- react_1.default.createElement(x_date_pickers_1.MobileDatePicker, { className: classes.picker, disablePast: true, label: field.startDate && react_1.default.createElement(react_intl_1.FormattedMessage, { id: "ui.eventForm.date.placeholder", defaultMessage: "ui.eventForm.date.placeholder" }), value: field.startDate, slots: {
289
- textField: (params) => (react_1.default.createElement(material_1.TextField, Object.assign({}, params, { InputProps: Object.assign(Object.assign({}, params.InputProps), { placeholder: `${intl.formatMessage(messages.startDate)}`, startAdornment: (react_1.default.createElement(material_1.InputAdornment, { position: "start" },
290
- react_1.default.createElement(material_1.IconButton, null,
291
- react_1.default.createElement(material_1.Icon, null, "CalendarIcon")))) }) })))
292
- }, slotProps: {
293
- toolbar: {
294
- // eslint-disable-next-line @typescript-eslint/ban-ts-ignore,@typescript-eslint/ban-ts-comment
295
- // @ts-ignore
296
- toolbarTitle: react_1.default.createElement(react_intl_1.FormattedMessage, { id: "ui.eventForm.date.title", defaultMessage: "ui.eventForm.date.title" })
297
- }
298
- }, onChange: (value) => handleChangeDateTime(value, 'startDate') }),
299
- react_1.default.createElement(x_date_pickers_1.MobileTimePicker, { className: classes.picker, disablePast: true, label: field.startTime && react_1.default.createElement(react_intl_1.FormattedMessage, { id: "ui.eventForm.time.placeholder", defaultMessage: "ui.eventForm.time.placeholder" }), value: field.startTime, slots: {
300
- textField: (params) => (react_1.default.createElement(material_1.TextField, Object.assign({}, params, { InputProps: Object.assign(Object.assign({}, params.InputProps), { placeholder: `${intl.formatMessage(messages.startTime)}`, startAdornment: (react_1.default.createElement(material_1.InputAdornment, { position: "start" },
301
- react_1.default.createElement(material_1.IconButton, null,
302
- react_1.default.createElement(material_1.Icon, null, "access_time")))) }) })))
303
- }, slotProps: {
304
- toolbar: {
305
- // eslint-disable-next-line @typescript-eslint/ban-ts-ignore,@typescript-eslint/ban-ts-comment
306
- // @ts-ignore
307
- toolbarTitle: react_1.default.createElement(react_intl_1.FormattedMessage, { id: "ui.eventForm.time.title", defaultMessage: "ui.eventForm.time.title" })
308
- }
309
- }, onChange: (value) => handleChangeDateTime(value, 'startTime') }))),
310
- react_1.default.createElement(material_1.FormControl, { className: classes.frequency },
311
- field.recurring !== types_1.SCEventRecurrenceType.NEVER && react_1.default.createElement(material_1.InputLabel, { id: "recurring" }, `${intl.formatMessage(messages.frequency)}`),
312
- react_1.default.createElement(material_1.Select, { name: "recurring", label: field.recurring !== types_1.SCEventRecurrenceType.NEVER && `${intl.formatMessage(messages.frequency)}`, labelId: "recurring", value: field.recurring, onChange: handleChange, displayEmpty: true, renderValue: (selected) => {
313
- if (!selected) {
314
- return react_1.default.createElement("em", null, `${intl.formatMessage(messages.frequencyPlaceholder)}`);
315
- }
316
- return (react_1.default.createElement(react_intl_1.FormattedMessage, { id: `ui.eventForm.frequency.${selected}.placeholder`, defaultMessage: `ui.eventForm.frequency.${selected}.placeholder` }));
317
- }, startAdornment: react_1.default.createElement(material_1.InputAdornment, { position: "start" },
318
- react_1.default.createElement(material_1.IconButton, null,
319
- react_1.default.createElement(material_1.Icon, null, "frequency"))) }, Object.values(types_1.SCEventRecurrenceType).map((f) => (react_1.default.createElement(material_1.MenuItem, { value: f, key: f },
320
- react_1.default.createElement(react_intl_1.FormattedMessage, { id: `ui.eventForm.frequency.${f}.placeholder`, defaultMessage: `ui.eventForm.frequency.${f}.placeholder` })))))),
321
- (field.showEndDateTime || field.recurring !== types_1.SCEventRecurrenceType.NEVER) && (react_1.default.createElement(material_1.Box, { className: classes.dateTime },
322
- react_1.default.createElement(x_date_pickers_1.LocalizationProvider, { dateAdapter: AdapterDateFns_1.AdapterDateFns, adapterLocale: scContext.settings.locale.default === 'it' ? it_1.default : en_US_1.default },
323
- react_1.default.createElement(x_date_pickers_1.MobileDatePicker, { className: classes.picker, disablePast: true, label: field.endDate && react_1.default.createElement(react_intl_1.FormattedMessage, { id: "ui.eventForm.date.end.placeholder", defaultMessage: "ui.eventForm.date.end.placeholder" }), value: field.endDate, slots: {
324
- textField: (params) => (react_1.default.createElement(material_1.TextField, Object.assign({}, params, { InputProps: Object.assign(Object.assign({}, params.InputProps), { placeholder: `${intl.formatMessage(messages.endDate)}`, startAdornment: (react_1.default.createElement(material_1.InputAdornment, { position: "start" },
325
- react_1.default.createElement(material_1.IconButton, null,
326
- react_1.default.createElement(material_1.Icon, null, "calendar_off")))) }) })))
327
- }, onChange: (value) => handleChangeDateTime(value, 'endDate') }),
328
- react_1.default.createElement(x_date_pickers_1.MobileTimePicker, { className: classes.picker, disablePast: true, label: field.endTime && react_1.default.createElement(react_intl_1.FormattedMessage, { id: "ui.eventForm.time.end.placeholder", defaultMessage: "ui.eventForm.time.end.placeholder" }), value: field.endTime, slots: {
329
- textField: (params) => (react_1.default.createElement(material_1.TextField, Object.assign({}, params, { InputProps: Object.assign(Object.assign({}, params.InputProps), { placeholder: `${intl.formatMessage(messages.endTime)}`, startAdornment: (react_1.default.createElement(material_1.InputAdornment, { position: "start" },
330
- react_1.default.createElement(material_1.IconButton, null,
331
- react_1.default.createElement(material_1.Icon, null, "access_time")))) }) })))
332
- }, onChange: (value) => handleChangeDateTime(value, 'endTime') })))),
333
- react_1.default.createElement(material_1.Button, { variant: "text", color: "secondary", onClick: () => setField((prev) => (Object.assign(Object.assign({}, prev), { ['showEndDateTime']: !field.showEndDateTime }))), disabled: field.showEndDateTime && field.recurring !== types_1.SCEventRecurrenceType.NEVER },
334
- react_1.default.createElement(react_intl_1.FormattedMessage, { id: "ui.eventForm.dateTime.placeholder", defaultMessage: "ui.eventForm.dateTime.placeholder", values: { symbol: field.showEndDateTime ? '-' : '+' } })),
335
- react_1.default.createElement(EventAddress_1.default, { forwardGeolocationData: handleGeoData, event: event !== null && event !== void 0 ? event : null }),
336
- privateEnabled && (react_1.default.createElement(material_1.Box, { className: classes.privacySection },
337
- react_1.default.createElement(material_1.Stack, { direction: "row", spacing: 1, alignItems: "center", justifyContent: "center" },
338
- react_1.default.createElement(material_1.Typography, { className: (0, classnames_1.default)(classes.switchLabel, { [classes.active]: !field.isPublic }) },
339
- react_1.default.createElement(material_1.Icon, null, "private"),
340
- react_1.default.createElement(react_intl_1.FormattedMessage, { id: "ui.eventForm.privacy.private", defaultMessage: "ui.eventForm.privacy.private" })),
341
- react_1.default.createElement(material_1.Switch, { className: classes.switch, checked: field.isPublic, onChange: () => setField((prev) => (Object.assign(Object.assign({}, prev), { ['isPublic']: !field.isPublic }))) }),
342
- react_1.default.createElement(material_1.Typography, { className: (0, classnames_1.default)(classes.switchLabel, { [classes.active]: field.isPublic }) },
343
- react_1.default.createElement(material_1.Icon, null, "public"),
344
- react_1.default.createElement(react_intl_1.FormattedMessage, { id: "ui.eventForm.privacy.public", defaultMessage: "ui.eventForm.privacy.public" }))),
345
- react_1.default.createElement(material_1.Typography, { variant: "body2", textAlign: "center", className: classes.privacySectionInfo }, field.isPublic ? (react_1.default.createElement(react_intl_1.FormattedMessage, { id: "ui.eventForm.privacy.public.info", defaultMessage: "ui.eventForm.privacy.public.info", values: {
346
- // eslint-disable-next-line @typescript-eslint/ban-ts-ignore
347
- // @ts-ignore
348
- b: (chunks) => react_1.default.createElement("strong", null, chunks)
349
- } })) : (react_1.default.createElement(react_1.default.Fragment, null, field.privacy === true ? (react_1.default.createElement(react_intl_1.FormattedMessage, { id: "ui.eventForm.privacy.private.info.edit", defaultMessage: "ui.eventForm.private.public.info.edit", values: {
350
- // eslint-disable-next-line @typescript-eslint/ban-ts-ignore
351
- // @ts-ignore
352
- b: (chunks) => react_1.default.createElement("strong", null, chunks)
353
- } })) : (react_1.default.createElement(react_intl_1.FormattedMessage, { id: "ui.eventForm.privacy.private.info", defaultMessage: "ui.eventForm.private.public.info", values: {
354
- // eslint-disable-next-line @typescript-eslint/ban-ts-ignore
355
- // @ts-ignore
356
- b: (chunks) => react_1.default.createElement("strong", null, chunks)
357
- } }))))))),
358
- react_1.default.createElement(material_1.TextField, { multiline: true, className: classes.description, placeholder: `${intl.formatMessage(messages.description)}`, margin: "normal", value: field.description, name: "description", onChange: handleChange, InputProps: {
359
- endAdornment: (react_1.default.createElement(material_1.Typography, { variant: "body2" }, ((_e = field.description) === null || _e === void 0 ? void 0 : _e.length) ? Event_1.EVENT_DESCRIPTION_MAX_LENGTH - field.description.length : Event_1.EVENT_DESCRIPTION_MAX_LENGTH))
360
- }, error: Boolean(((_f = field.description) === null || _f === void 0 ? void 0 : _f.length) > Event_1.EVENT_DESCRIPTION_MAX_LENGTH), helperText: ((_g = field.description) === null || _g === void 0 ? void 0 : _g.length) > Event_1.EVENT_DESCRIPTION_MAX_LENGTH ? (react_1.default.createElement(react_intl_1.FormattedMessage, { id: "ui.eventForm.description.error.maxLength", defaultMessage: "ui.eventForm.description.error.maxLength" })) : null })))));
279
+ field.description.length > Event_1.EVENT_DESCRIPTION_MAX_LENGTH, variant: "contained", onClick: handleSubmit, color: "secondary" }, { children: event ? ((0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.eventForm.button.edit", defaultMessage: "ui.eventForm.button.edit" })) : ((0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.eventForm.button.create", defaultMessage: "ui.eventForm.button.create" })) })) }, rest, { children: (0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(material_1.Paper, Object.assign({ style: _backgroundCover, classes: { root: classes.cover } }, { children: (0, jsx_runtime_1.jsx)(UploadEventCover_1.default, { isCreationMode: true, onChange: handleChangeCover }) })), (0, jsx_runtime_1.jsxs)(material_1.FormGroup, Object.assign({ className: classes.form }, { children: [(0, jsx_runtime_1.jsx)(material_1.TextField, { required: true, className: classes.name, placeholder: `${intl.formatMessage(messages.name)}`, margin: "normal", value: field.name, name: "name", onChange: handleChange, InputProps: {
280
+ endAdornment: (0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ variant: "body2" }, { children: Event_1.EVENT_TITLE_MAX_LENGTH - field.name.length }))
281
+ }, error: Boolean(((_c = field === null || field === void 0 ? void 0 : field.name) === null || _c === void 0 ? void 0 : _c.length) > Event_1.EVENT_TITLE_MAX_LENGTH) || Boolean(error[`nameError`]), helperText: ((_d = field === null || field === void 0 ? void 0 : field.name) === null || _d === void 0 ? void 0 : _d.length) > Event_1.EVENT_TITLE_MAX_LENGTH ? ((0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.eventForm.name.error.maxLength", defaultMessage: "ui.eventForm.name.error.maxLength" })) : error[`nameError`] ? (error[`nameError`]) : null }), (0, jsx_runtime_1.jsx)(material_1.Box, Object.assign({ className: classes.dateTime }, { children: (0, jsx_runtime_1.jsxs)(x_date_pickers_1.LocalizationProvider, Object.assign({ dateAdapter: AdapterDateFns_1.AdapterDateFns, adapterLocale: scContext.settings.locale.default === 'it' ? it_1.default : en_US_1.default }, { children: [(0, jsx_runtime_1.jsx)(x_date_pickers_1.MobileDatePicker, { className: classes.picker, disablePast: true, label: field.startDate && (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.eventForm.date.placeholder", defaultMessage: "ui.eventForm.date.placeholder" }), value: field.startDate, slots: {
282
+ textField: (params) => ((0, jsx_runtime_1.jsx)(material_1.TextField, Object.assign({}, params, { InputProps: Object.assign(Object.assign({}, params.InputProps), { placeholder: `${intl.formatMessage(messages.startDate)}`, startAdornment: ((0, jsx_runtime_1.jsx)(material_1.InputAdornment, Object.assign({ position: "start" }, { children: (0, jsx_runtime_1.jsx)(material_1.IconButton, { children: (0, jsx_runtime_1.jsx)(material_1.Icon, { children: "CalendarIcon" }) }) }))) }) })))
283
+ }, slotProps: {
284
+ toolbar: {
285
+ // eslint-disable-next-line @typescript-eslint/ban-ts-ignore,@typescript-eslint/ban-ts-comment
286
+ // @ts-ignore
287
+ toolbarTitle: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.eventForm.date.title", defaultMessage: "ui.eventForm.date.title" })
288
+ }
289
+ }, onChange: (value) => handleChangeDateTime(value, 'startDate') }), (0, jsx_runtime_1.jsx)(x_date_pickers_1.MobileTimePicker, { className: classes.picker, disablePast: true, label: field.startTime && (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.eventForm.time.placeholder", defaultMessage: "ui.eventForm.time.placeholder" }), value: field.startTime, slots: {
290
+ textField: (params) => ((0, jsx_runtime_1.jsx)(material_1.TextField, Object.assign({}, params, { InputProps: Object.assign(Object.assign({}, params.InputProps), { placeholder: `${intl.formatMessage(messages.startTime)}`, startAdornment: ((0, jsx_runtime_1.jsx)(material_1.InputAdornment, Object.assign({ position: "start" }, { children: (0, jsx_runtime_1.jsx)(material_1.IconButton, { children: (0, jsx_runtime_1.jsx)(material_1.Icon, { children: "access_time" }) }) }))) }) })))
291
+ }, slotProps: {
292
+ toolbar: {
293
+ // eslint-disable-next-line @typescript-eslint/ban-ts-ignore,@typescript-eslint/ban-ts-comment
294
+ // @ts-ignore
295
+ toolbarTitle: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.eventForm.time.title", defaultMessage: "ui.eventForm.time.title" })
296
+ }
297
+ }, onChange: (value) => handleChangeDateTime(value, 'startTime') })] })) })), (0, jsx_runtime_1.jsxs)(material_1.FormControl, Object.assign({ className: classes.frequency }, { children: [field.recurring !== types_1.SCEventRecurrenceType.NEVER && (0, jsx_runtime_1.jsx)(material_1.InputLabel, Object.assign({ id: "recurring" }, { children: `${intl.formatMessage(messages.frequency)}` })), (0, jsx_runtime_1.jsx)(material_1.Select, Object.assign({ name: "recurring", label: field.recurring !== types_1.SCEventRecurrenceType.NEVER && `${intl.formatMessage(messages.frequency)}`, labelId: "recurring", value: field.recurring, onChange: handleChange, displayEmpty: true, renderValue: (selected) => {
298
+ if (!selected) {
299
+ return (0, jsx_runtime_1.jsx)("em", { children: `${intl.formatMessage(messages.frequencyPlaceholder)}` });
300
+ }
301
+ return ((0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: `ui.eventForm.frequency.${selected}.placeholder`, defaultMessage: `ui.eventForm.frequency.${selected}.placeholder` }));
302
+ }, startAdornment: (0, jsx_runtime_1.jsx)(material_1.InputAdornment, Object.assign({ position: "start" }, { children: (0, jsx_runtime_1.jsx)(material_1.IconButton, { children: (0, jsx_runtime_1.jsx)(material_1.Icon, { children: "frequency" }) }) })) }, { children: Object.values(types_1.SCEventRecurrenceType).map((f) => ((0, jsx_runtime_1.jsx)(material_1.MenuItem, Object.assign({ value: f }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: `ui.eventForm.frequency.${f}.placeholder`, defaultMessage: `ui.eventForm.frequency.${f}.placeholder` }) }), f))) }))] })), (field.showEndDateTime || field.recurring !== types_1.SCEventRecurrenceType.NEVER) && ((0, jsx_runtime_1.jsx)(material_1.Box, Object.assign({ className: classes.dateTime }, { children: (0, jsx_runtime_1.jsxs)(x_date_pickers_1.LocalizationProvider, Object.assign({ dateAdapter: AdapterDateFns_1.AdapterDateFns, adapterLocale: scContext.settings.locale.default === 'it' ? it_1.default : en_US_1.default }, { children: [(0, jsx_runtime_1.jsx)(x_date_pickers_1.MobileDatePicker, { className: classes.picker, disablePast: true, label: field.endDate && (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.eventForm.date.end.placeholder", defaultMessage: "ui.eventForm.date.end.placeholder" }), value: field.endDate, slots: {
303
+ textField: (params) => ((0, jsx_runtime_1.jsx)(material_1.TextField, Object.assign({}, params, { InputProps: Object.assign(Object.assign({}, params.InputProps), { placeholder: `${intl.formatMessage(messages.endDate)}`, startAdornment: ((0, jsx_runtime_1.jsx)(material_1.InputAdornment, Object.assign({ position: "start" }, { children: (0, jsx_runtime_1.jsx)(material_1.IconButton, { children: (0, jsx_runtime_1.jsx)(material_1.Icon, { children: "calendar_off" }) }) }))) }) })))
304
+ }, onChange: (value) => handleChangeDateTime(value, 'endDate') }), (0, jsx_runtime_1.jsx)(x_date_pickers_1.MobileTimePicker, { className: classes.picker, disablePast: true, label: field.endTime && (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.eventForm.time.end.placeholder", defaultMessage: "ui.eventForm.time.end.placeholder" }), value: field.endTime, slots: {
305
+ textField: (params) => ((0, jsx_runtime_1.jsx)(material_1.TextField, Object.assign({}, params, { InputProps: Object.assign(Object.assign({}, params.InputProps), { placeholder: `${intl.formatMessage(messages.endTime)}`, startAdornment: ((0, jsx_runtime_1.jsx)(material_1.InputAdornment, Object.assign({ position: "start" }, { children: (0, jsx_runtime_1.jsx)(material_1.IconButton, { children: (0, jsx_runtime_1.jsx)(material_1.Icon, { children: "access_time" }) }) }))) }) })))
306
+ }, onChange: (value) => handleChangeDateTime(value, 'endTime') })] })) }))), (0, jsx_runtime_1.jsx)(material_1.Button, Object.assign({ variant: "text", color: "secondary", onClick: () => setField((prev) => (Object.assign(Object.assign({}, prev), { ['showEndDateTime']: !field.showEndDateTime }))), disabled: field.showEndDateTime && field.recurring !== types_1.SCEventRecurrenceType.NEVER }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.eventForm.dateTime.placeholder", defaultMessage: "ui.eventForm.dateTime.placeholder", values: { symbol: field.showEndDateTime ? '-' : '+' } }) })), (0, jsx_runtime_1.jsx)(EventAddress_1.default, { forwardGeolocationData: handleGeoData, event: event !== null && event !== void 0 ? event : null }), privateEnabled && ((0, jsx_runtime_1.jsxs)(material_1.Box, Object.assign({ className: classes.privacySection }, { children: [(0, jsx_runtime_1.jsxs)(material_1.Stack, Object.assign({ direction: "row", spacing: 1, alignItems: "center", justifyContent: "center" }, { children: [(0, jsx_runtime_1.jsxs)(material_1.Typography, Object.assign({ className: (0, classnames_1.default)(classes.switchLabel, { [classes.active]: !field.isPublic }) }, { children: [(0, jsx_runtime_1.jsx)(material_1.Icon, { children: "private" }), (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.eventForm.privacy.private", defaultMessage: "ui.eventForm.privacy.private" })] })), (0, jsx_runtime_1.jsx)(material_1.Switch, { className: classes.switch, checked: field.isPublic, onChange: () => setField((prev) => (Object.assign(Object.assign({}, prev), { ['isPublic']: !field.isPublic }))) }), (0, jsx_runtime_1.jsxs)(material_1.Typography, Object.assign({ className: (0, classnames_1.default)(classes.switchLabel, { [classes.active]: field.isPublic }) }, { children: [(0, jsx_runtime_1.jsx)(material_1.Icon, { children: "public" }), (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.eventForm.privacy.public", defaultMessage: "ui.eventForm.privacy.public" })] }))] })), (0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ variant: "body2", textAlign: "center", className: classes.privacySectionInfo }, { children: field.isPublic ? ((0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.eventForm.privacy.public.info", defaultMessage: "ui.eventForm.privacy.public.info", values: {
307
+ // eslint-disable-next-line @typescript-eslint/ban-ts-ignore
308
+ // @ts-ignore
309
+ b: (chunks) => (0, jsx_runtime_1.jsx)("strong", { children: chunks })
310
+ } })) : ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: field.privacy === true ? ((0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.eventForm.privacy.private.info.edit", defaultMessage: "ui.eventForm.private.public.info.edit", values: {
311
+ // eslint-disable-next-line @typescript-eslint/ban-ts-ignore
312
+ // @ts-ignore
313
+ b: (chunks) => (0, jsx_runtime_1.jsx)("strong", { children: chunks })
314
+ } })) : ((0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.eventForm.privacy.private.info", defaultMessage: "ui.eventForm.private.public.info", values: {
315
+ // eslint-disable-next-line @typescript-eslint/ban-ts-ignore
316
+ // @ts-ignore
317
+ b: (chunks) => (0, jsx_runtime_1.jsx)("strong", { children: chunks })
318
+ } })) })) }))] }))), (0, jsx_runtime_1.jsx)(material_1.TextField, { multiline: true, className: classes.description, placeholder: `${intl.formatMessage(messages.description)}`, margin: "normal", value: field.description, name: "description", onChange: handleChange, InputProps: {
319
+ endAdornment: ((0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ variant: "body2" }, { children: ((_e = field.description) === null || _e === void 0 ? void 0 : _e.length) ? Event_1.EVENT_DESCRIPTION_MAX_LENGTH - field.description.length : Event_1.EVENT_DESCRIPTION_MAX_LENGTH })))
320
+ }, error: Boolean(((_f = field.description) === null || _f === void 0 ? void 0 : _f.length) > Event_1.EVENT_DESCRIPTION_MAX_LENGTH), helperText: ((_g = field.description) === null || _g === void 0 ? void 0 : _g.length) > Event_1.EVENT_DESCRIPTION_MAX_LENGTH ? ((0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.eventForm.description.error.maxLength", defaultMessage: "ui.eventForm.description.error.maxLength" })) : null })] }))] }) })));
361
321
  }
362
322
  exports.default = EventForm;
@@ -1,7 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
- const react_1 = tslib_1.__importStar(require("react"));
4
+ const jsx_runtime_1 = require("react/jsx-runtime");
5
+ const react_1 = require("react");
5
6
  const styles_1 = require("@mui/material/styles");
6
7
  const material_1 = require("@mui/material");
7
8
  const react_core_1 = require("@selfcommunity/react-core");
@@ -115,11 +116,8 @@ function UploadEventCover(inProps) {
115
116
  * If there is an error
116
117
  */
117
118
  if (alert) {
118
- return (react_1.default.createElement(material_1.Alert, { color: "error", onClose: () => setAlert(null) }, alert));
119
+ return ((0, jsx_runtime_1.jsx)(material_1.Alert, Object.assign({ color: "error", onClose: () => setAlert(null) }, { children: alert })));
119
120
  }
120
- return (react_1.default.createElement(react_1.default.Fragment, null,
121
- react_1.default.createElement("input", { type: "file", onChange: handleUpload, ref: fileInput, hidden: true, accept: ".gif,.png,.jpg,.jpeg" }),
122
- react_1.default.createElement(Root, Object.assign({ className: (0, classnames_1.default)(classes.root, className), size: "medium", variant: "contained", disabled: loading, onClick: () => fileInput.current.click(), loading: loading }, rest),
123
- react_1.default.createElement(Icon_1.default, null, "image"))));
121
+ return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)("input", { type: "file", onChange: handleUpload, ref: fileInput, hidden: true, accept: ".gif,.png,.jpg,.jpeg" }), (0, jsx_runtime_1.jsx)(Root, Object.assign({ className: (0, classnames_1.default)(classes.root, className), size: "medium", variant: "contained", disabled: loading, onClick: () => fileInput.current.click(), loading: loading }, rest, { children: (0, jsx_runtime_1.jsx)(Icon_1.default, { children: "image" }) }))] }));
124
122
  }
125
123
  exports.default = UploadEventCover;