@selfcommunity/react-ui 0.8.0-embeds.16 → 0.8.0-live.40

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 (798) hide show
  1. package/lib/cjs/components/AccountChangeMailValidation/AccountChangeMailValidation.js +1 -1
  2. package/lib/cjs/components/AccountDataPortability/AccountDataPortability.js +4 -4
  3. package/lib/cjs/components/AccountDataPortabilityButton/AccountDataPortabilityButton.js +1 -1
  4. package/lib/cjs/components/AccountDelete/AccountDelete.js +3 -3
  5. package/lib/cjs/components/AccountDeleteButton/AccountDeleteButton.js +1 -1
  6. package/lib/cjs/components/AccountRecover/AccountRecover.js +2 -2
  7. package/lib/cjs/components/AccountReset/AccountReset.js +1 -1
  8. package/lib/cjs/components/AccountVerify/AccountVerify.js +1 -1
  9. package/lib/cjs/components/BottomNavigation/BottomNavigation.d.ts +1 -1
  10. package/lib/cjs/components/BottomNavigation/BottomNavigation.js +2 -2
  11. package/lib/cjs/components/BroadcastMessages/BroadcastMessages.js +1 -1
  12. package/lib/cjs/components/BroadcastMessages/Message.js +4 -4
  13. package/lib/cjs/components/BroadcastMessages/Skeleton.js +1 -1
  14. package/lib/cjs/components/Categories/Categories.js +23 -1
  15. package/lib/cjs/components/Categories/Skeleton.js +1 -1
  16. package/lib/cjs/components/CategoriesPopularWidget/CategoriesPopularWidget.js +22 -1
  17. package/lib/cjs/components/CategoriesSuggestionWidget/CategoriesSuggestionWidget.js +22 -1
  18. package/lib/cjs/components/CategoriesSuggestionWidget/Skeleton.js +1 -1
  19. package/lib/cjs/components/Category/Category.js +1 -1
  20. package/lib/cjs/components/Category/Skeleton.js +1 -1
  21. package/lib/cjs/components/CategoryAutocomplete/CategoryAutocomplete.js +1 -1
  22. package/lib/cjs/components/CategoryFollowersButton/CategoryFollowersButton.js +1 -1
  23. package/lib/cjs/components/CategoryHeader/CategoryHeader.js +1 -1
  24. package/lib/cjs/components/CategoryHeader/Skeleton.js +1 -1
  25. package/lib/cjs/components/CategoryTrendingFeedWidget/CategoryTrendingFeedWidget.js +2 -2
  26. package/lib/cjs/components/CategoryTrendingFeedWidget/Skeleton.js +1 -1
  27. package/lib/cjs/components/CategoryTrendingUsersWidget/CategoryTrendingUsersWidget.js +1 -1
  28. package/lib/cjs/components/CategoryTrendingUsersWidget/Skeleton.js +1 -1
  29. package/lib/cjs/components/ChangeCover/ChangeCover.js +6 -6
  30. package/lib/cjs/components/ChangeGroupCover/ChangeGroupCover.js +1 -1
  31. package/lib/cjs/components/ChangeGroupPicture/ChangeGroupPicture.js +1 -1
  32. package/lib/cjs/components/ChangePicture/ChangePictureDialog/ChangePictureDialog.js +2 -2
  33. package/lib/cjs/components/CommentObject/CommentObject.js +4 -4
  34. package/lib/cjs/components/CommentObjectReply/CommentObjectReply.js +1 -1
  35. package/lib/cjs/components/CommentsFeedObject/CommentsFeedObject.js +4 -4
  36. package/lib/cjs/components/CommentsObject/CommentsObject.js +6 -6
  37. package/lib/cjs/components/Composer/Attributes/Attributes.js +2 -2
  38. package/lib/cjs/components/Composer/Composer.js +6 -4
  39. package/lib/cjs/components/Composer/Content/ContentDiscussion/ContentDiscussion.js +3 -3
  40. package/lib/cjs/components/Composer/Content/ContentPoll/ContentPoll.js +6 -6
  41. package/lib/cjs/components/Composer/Content/ContentPost/ContentPost.js +1 -1
  42. package/lib/cjs/components/Composer/Layer/AudienceLayer/AudienceLayer.js +5 -5
  43. package/lib/cjs/components/Composer/Layer/CategoryLayer/CategoryLayer.js +1 -1
  44. package/lib/cjs/components/Composer/Layer/CloseLayer/CloseLayer.js +1 -1
  45. package/lib/cjs/components/Composer/Layer/LocationLayer/LocationLayer.js +1 -1
  46. package/lib/cjs/components/Composer/Skeleton.js +1 -1
  47. package/lib/cjs/components/Composer/TypeSwitchButtonGroup/TypeSwitchButtonGroup.js +1 -1
  48. package/lib/cjs/components/ComposerIconButton/ComposerIconButton.js +2 -2
  49. package/lib/cjs/components/ConsentSolution/ConsentSolution.js +4 -4
  50. package/lib/cjs/components/ConsentSolution/Skeleton.js +1 -1
  51. package/lib/cjs/components/CreateEventButton/CreateEventButton.d.ts +2 -2
  52. package/lib/cjs/components/CreateEventButton/CreateEventButton.js +4 -4
  53. package/lib/cjs/components/CreateEventWidget/CreateEventWidget.js +1 -1
  54. package/lib/cjs/components/CreateEventWidget/Skeleton.js +1 -1
  55. package/lib/cjs/components/CreateLiveStreamButton/CreateLiveStreamButton.d.ts +49 -0
  56. package/lib/cjs/components/CreateLiveStreamButton/CreateLiveStreamButton.js +94 -0
  57. package/lib/cjs/components/CreateLiveStreamButton/index.d.ts +3 -0
  58. package/lib/cjs/components/CreateLiveStreamButton/index.js +5 -0
  59. package/lib/cjs/components/CreateLiveStreamDialog/CreateLiveStreamDialog.d.ts +51 -0
  60. package/lib/cjs/components/CreateLiveStreamDialog/CreateLiveStreamDialog.js +123 -0
  61. package/lib/cjs/components/CreateLiveStreamDialog/LiveStreamSelector/LiveStreamSelector.d.ts +46 -0
  62. package/lib/cjs/components/CreateLiveStreamDialog/LiveStreamSelector/LiveStreamSelector.js +166 -0
  63. package/lib/cjs/components/CreateLiveStreamDialog/constants.d.ts +1 -0
  64. package/lib/cjs/components/CreateLiveStreamDialog/constants.js +4 -0
  65. package/lib/cjs/components/CreateLiveStreamDialog/index.d.ts +3 -0
  66. package/lib/cjs/components/CreateLiveStreamDialog/index.js +5 -0
  67. package/lib/cjs/components/CreateLiveStreamDialog/types.d.ts +8 -0
  68. package/lib/cjs/components/CreateLiveStreamDialog/types.js +13 -0
  69. package/lib/cjs/components/CustomAdv/CustomAdv.js +2 -2
  70. package/lib/cjs/components/EditEventButton/EditEventButton.js +1 -1
  71. package/lib/cjs/components/Editor/Editor.d.ts +1 -1
  72. package/lib/cjs/components/Editor/Editor.js +1 -1
  73. package/lib/cjs/components/Editor/nodes/HashtagNode.d.ts +1 -1
  74. package/lib/cjs/components/Editor/nodes/HashtagNode.js +4 -4
  75. package/lib/cjs/components/Editor/nodes/ImageNode.d.ts +1 -1
  76. package/lib/cjs/components/Editor/nodes/ImageNode.js +7 -7
  77. package/lib/cjs/components/Editor/nodes/MentionNode.d.ts +1 -1
  78. package/lib/cjs/components/Editor/nodes/MentionNode.js +4 -4
  79. package/lib/cjs/components/Editor/plugins/ApiPlugin.d.ts +1 -1
  80. package/lib/cjs/components/Editor/plugins/EmojiPlugin.js +2 -2
  81. package/lib/cjs/components/Editor/plugins/FloatingLinkPlugin.js +4 -4
  82. package/lib/cjs/components/Editor/plugins/HashtagPlugin.js +3 -3
  83. package/lib/cjs/components/Editor/plugins/ImagePlugin.js +4 -4
  84. package/lib/cjs/components/Editor/plugins/MentionsPlugin.d.ts +2 -2
  85. package/lib/cjs/components/Editor/plugins/MentionsPlugin.js +4 -4
  86. package/lib/cjs/components/Editor/plugins/ToolbarPlugin.js +5 -5
  87. package/lib/cjs/components/Editor/shared/useDecorators.d.ts +2 -2
  88. package/lib/cjs/components/Editor/shared/useDecorators.js +1 -1
  89. package/lib/cjs/components/Event/Event.js +5 -5
  90. package/lib/cjs/components/Event/Skeleton.js +3 -3
  91. package/lib/cjs/components/EventAutocomplete/EventAutocomplete.js +1 -1
  92. package/lib/cjs/components/EventForm/EventAddress.js +2 -2
  93. package/lib/cjs/components/EventForm/EventForm.d.ts +7 -12
  94. package/lib/cjs/components/EventForm/EventForm.js +55 -55
  95. package/lib/cjs/components/EventForm/UploadEventCover.js +1 -1
  96. package/lib/cjs/components/EventForm/types.d.ts +5 -5
  97. package/lib/cjs/components/EventFormDialog/EventFormDialog.d.ts +48 -0
  98. package/lib/cjs/components/EventFormDialog/EventFormDialog.js +56 -0
  99. package/lib/cjs/components/EventFormDialog/constants.d.ts +1 -0
  100. package/lib/cjs/components/EventFormDialog/constants.js +4 -0
  101. package/lib/cjs/components/EventFormDialog/index.d.ts +3 -0
  102. package/lib/cjs/components/EventFormDialog/index.js +5 -0
  103. package/lib/cjs/components/EventHeader/EventHeader.js +4 -8
  104. package/lib/cjs/components/EventHeader/Skeleton.js +1 -1
  105. package/lib/cjs/components/EventInfoWidget/EventInfoWidget.js +7 -5
  106. package/lib/cjs/components/EventInfoWidget/Skeleton.js +1 -1
  107. package/lib/cjs/components/EventInviteButton/EventInviteButton.js +2 -2
  108. package/lib/cjs/components/EventLocationWidget/EventLocationWidget.js +3 -3
  109. package/lib/cjs/components/EventLocationWidget/Skeleton.js +1 -1
  110. package/lib/cjs/components/EventMediaWidget/EventMediaWidget.d.ts +41 -0
  111. package/lib/cjs/components/EventMediaWidget/EventMediaWidget.js +253 -0
  112. package/lib/cjs/components/EventMediaWidget/Skeleton.d.ts +2 -0
  113. package/lib/cjs/components/EventMediaWidget/Skeleton.js +28 -0
  114. package/lib/cjs/components/EventMediaWidget/TriggerButton.d.ts +17 -0
  115. package/lib/cjs/components/EventMediaWidget/TriggerButton.js +66 -0
  116. package/lib/cjs/components/EventMediaWidget/asUploadButton.d.ts +7 -0
  117. package/lib/cjs/components/EventMediaWidget/asUploadButton.js +25 -0
  118. package/lib/cjs/components/EventMediaWidget/constants.d.ts +1 -0
  119. package/lib/cjs/components/EventMediaWidget/constants.js +4 -0
  120. package/lib/cjs/components/EventMediaWidget/index.d.ts +4 -0
  121. package/lib/cjs/components/EventMediaWidget/index.js +8 -0
  122. package/lib/cjs/components/EventMembersWidget/EventMembersWidget.d.ts +3 -0
  123. package/lib/cjs/components/EventMembersWidget/EventMembersWidget.js +21 -16
  124. package/lib/cjs/components/EventMembersWidget/Skeleton.js +1 -1
  125. package/lib/cjs/components/EventMembersWidget/TabContentComponent.js +3 -3
  126. package/lib/cjs/components/EventMembersWidget/types.d.ts +1 -1
  127. package/lib/cjs/components/EventMembersWidget/types.js +1 -1
  128. package/lib/cjs/components/EventParticipantsButton/EventParticipantsButton.js +1 -1
  129. package/lib/cjs/components/EventSubscribeButton/EventSubscribeButton.js +2 -2
  130. package/lib/cjs/components/Events/Events.js +18 -9
  131. package/lib/cjs/components/Events/LocationEventsFilter.d.ts +14 -0
  132. package/lib/cjs/components/Events/LocationEventsFilter.js +45 -0
  133. package/lib/cjs/components/Events/PastEventsFilter.js +1 -2
  134. package/lib/cjs/components/Events/Skeleton.js +1 -1
  135. package/lib/cjs/components/Feed/Feed.d.ts +2 -2
  136. package/lib/cjs/components/Feed/Feed.js +15 -6
  137. package/lib/cjs/components/Feed/Skeleton.d.ts +1 -1
  138. package/lib/cjs/components/Feed/Skeleton.js +1 -1
  139. package/lib/cjs/components/FeedObject/Actions/Actions.js +1 -1
  140. package/lib/cjs/components/FeedObject/Actions/Comment/Comment.js +3 -3
  141. package/lib/cjs/components/FeedObject/Actions/Follow/Follow.js +1 -1
  142. package/lib/cjs/components/FeedObject/Actions/Share/Share.js +5 -5
  143. package/lib/cjs/components/FeedObject/Actions/Share/SharesDialog/SharesDialog.js +1 -1
  144. package/lib/cjs/components/FeedObject/Activities/Activities.js +1 -1
  145. package/lib/cjs/components/FeedObject/Activities/ActivitiesMenu/ActivitiesMenu.js +4 -4
  146. package/lib/cjs/components/FeedObject/Activities/RelevantActivities/CommentActivity/CommentActivity.js +3 -3
  147. package/lib/cjs/components/FeedObject/Activities/RelevantActivities/FollowActivity/FollowActivity.js +2 -2
  148. package/lib/cjs/components/FeedObject/Activities/RelevantActivities/PollVoteActivity/PollVoteActivity.js +2 -2
  149. package/lib/cjs/components/FeedObject/Activities/RelevantActivities/RelevantActivities.js +1 -1
  150. package/lib/cjs/components/FeedObject/Activities/RelevantActivities/VoteUpActivity/VoteUpActivity.js +2 -2
  151. package/lib/cjs/components/FeedObject/Contributors/Contributors.js +1 -1
  152. package/lib/cjs/components/FeedObject/Contributors/Skeleton.js +1 -1
  153. package/lib/cjs/components/FeedObject/FeedObject.js +11 -11
  154. package/lib/cjs/components/FeedObject/Poll/Choice/Choice.js +2 -2
  155. package/lib/cjs/components/FeedObject/Poll/Poll.js +1 -1
  156. package/lib/cjs/components/FeedUpdatesWidget/FeedUpdatesWidget.js +1 -1
  157. package/lib/cjs/components/Footer/Footer.js +1 -1
  158. package/lib/cjs/components/Group/Group.js +2 -2
  159. package/lib/cjs/components/Group/Skeleton.js +1 -1
  160. package/lib/cjs/components/GroupActionsMenu/index.d.ts +57 -0
  161. package/lib/cjs/components/GroupActionsMenu/index.js +157 -0
  162. package/lib/cjs/components/GroupAutocomplete/GroupAutocomplete.js +1 -1
  163. package/lib/cjs/components/GroupForm/GroupForm.js +9 -9
  164. package/lib/cjs/components/GroupHeader/GroupHeader.d.ts +6 -0
  165. package/lib/cjs/components/GroupHeader/GroupHeader.js +8 -4
  166. package/lib/cjs/components/GroupHeader/Skeleton.js +1 -1
  167. package/lib/cjs/components/GroupInfoWidget/GroupInfoWidget.js +6 -6
  168. package/lib/cjs/components/GroupInviteButton/GroupInviteButton.js +2 -2
  169. package/lib/cjs/components/GroupInvitedWidget/GroupInvitedWidget.js +1 -1
  170. package/lib/cjs/components/GroupMembersButton/GroupMembersButton.js +1 -1
  171. package/lib/cjs/components/GroupMembersWidget/GroupMembersWidget.js +5 -5
  172. package/lib/cjs/components/GroupRequestsWidget/GroupRequestsWidget.js +1 -1
  173. package/lib/cjs/components/GroupSettingsIconButton/GroupSettingsIconButton.js +5 -5
  174. package/lib/cjs/components/Groups/Groups.js +29 -3
  175. package/lib/cjs/components/Groups/Skeleton.js +1 -1
  176. package/lib/cjs/components/Incubator/Incubator.js +4 -4
  177. package/lib/cjs/components/Incubator/Skeleton.js +1 -1
  178. package/lib/cjs/components/IncubatorDetail/IncubatorDetail.js +2 -2
  179. package/lib/cjs/components/IncubatorListWidget/CreateIncubatorDialog/CreateIncubatorDialog.js +2 -2
  180. package/lib/cjs/components/IncubatorListWidget/IncubatorListWidget.js +2 -2
  181. package/lib/cjs/components/IncubatorListWidget/Skeleton.js +1 -1
  182. package/lib/cjs/components/IncubatorSuggestionWidget/IncubatorSuggestionWidget.js +1 -1
  183. package/lib/cjs/components/IncubatorSuggestionWidget/Skeleton.js +1 -1
  184. package/lib/cjs/components/InlineComposerWidget/InlineComposerWidget.js +1 -1
  185. package/lib/cjs/components/InlineComposerWidget/Skeleton.js +1 -1
  186. package/lib/cjs/components/LiveStreamForm/LiveStreamForm.d.ts +55 -0
  187. package/lib/cjs/components/LiveStreamForm/LiveStreamForm.js +156 -0
  188. package/lib/cjs/components/LiveStreamForm/constants.d.ts +1 -0
  189. package/lib/cjs/components/LiveStreamForm/constants.js +4 -0
  190. package/lib/cjs/components/LiveStreamForm/index.d.ts +3 -0
  191. package/lib/cjs/components/LiveStreamForm/index.js +5 -0
  192. package/lib/cjs/components/LiveStreamForm/types.d.ts +10 -0
  193. package/lib/cjs/components/LiveStreamForm/types.js +2 -0
  194. package/lib/cjs/components/LiveStreamRoom/LiveStreamRoom.d.ts +48 -0
  195. package/lib/cjs/components/LiveStreamRoom/LiveStreamRoom.js +123 -0
  196. package/lib/cjs/components/LiveStreamRoom/LiveStreamVideoConference/LiveStreamVideoConference.d.ts +69 -0
  197. package/lib/cjs/components/LiveStreamRoom/LiveStreamVideoConference/LiveStreamVideoConference.js +184 -0
  198. package/lib/cjs/components/LiveStreamRoom/LiveStreamVideoConference/RecordingIndicator.d.ts +4 -0
  199. package/lib/cjs/components/LiveStreamRoom/LiveStreamVideoConference/RecordingIndicator.js +31 -0
  200. package/lib/cjs/components/LiveStreamRoom/LiveStreamVideoConference/constants.d.ts +1 -0
  201. package/lib/cjs/components/LiveStreamRoom/LiveStreamVideoConference/constants.js +4 -0
  202. package/lib/cjs/components/LiveStreamRoom/LiveStreamVideoConference/index.d.ts +3 -0
  203. package/lib/cjs/components/LiveStreamRoom/LiveStreamVideoConference/index.js +5 -0
  204. package/lib/cjs/components/LiveStreamRoom/constants.d.ts +5 -0
  205. package/lib/cjs/components/LiveStreamRoom/constants.js +8 -0
  206. package/lib/cjs/components/LiveStreamRoom/index.d.ts +3 -0
  207. package/lib/cjs/components/LiveStreamRoom/index.js +5 -0
  208. package/lib/cjs/components/LiveStreamRoom/types.d.ts +22 -0
  209. package/lib/cjs/components/LiveStreamRoom/types.js +8 -0
  210. package/lib/cjs/components/LocationAutocomplete/LocationAutocomplete.js +1 -1
  211. package/lib/cjs/components/LoyaltyProgramWidget/LoyaltyProgramWidget.js +1 -1
  212. package/lib/cjs/components/LoyaltyProgramWidget/Skeleton.js +1 -1
  213. package/lib/cjs/components/MyEventsWidget/MyEventsWidget.js +1 -1
  214. package/lib/cjs/components/MyEventsWidget/Skeleton.js +1 -1
  215. package/lib/cjs/components/NavigationMenuIconButton/DefaultDrawerContent.js +1 -1
  216. package/lib/cjs/components/NavigationMenuIconButton/DefaultHeaderContent.d.ts +1 -1
  217. package/lib/cjs/components/NavigationMenuIconButton/DefaultHeaderContent.js +1 -1
  218. package/lib/cjs/components/NavigationMenuIconButton/NavigationMenuDrawer.d.ts +47 -0
  219. package/lib/cjs/components/NavigationMenuIconButton/NavigationMenuDrawer.js +39 -0
  220. package/lib/cjs/components/NavigationMenuIconButton/NavigationMenuIconButton.d.ts +9 -20
  221. package/lib/cjs/components/NavigationMenuIconButton/NavigationMenuIconButton.js +4 -20
  222. package/lib/cjs/components/NavigationMenuIconButton/index.d.ts +2 -1
  223. package/lib/cjs/components/NavigationMenuIconButton/index.js +3 -1
  224. package/lib/cjs/components/NavigationSettingsIconButton/NavigationSettingsIconButton.js +62 -29
  225. package/lib/cjs/components/NavigationToolbar/NavigationToolbar.d.ts +5 -0
  226. package/lib/cjs/components/NavigationToolbar/NavigationToolbar.js +9 -9
  227. package/lib/cjs/components/NavigationToolbar/NotificationMenu.js +1 -1
  228. package/lib/cjs/components/NavigationToolbar/Skeleton.js +1 -1
  229. package/lib/cjs/components/NavigationToolbarMobile/NavigationToolbarMobile.js +4 -4
  230. package/lib/cjs/components/NavigationToolbarMobile/Skeleton.js +1 -1
  231. package/lib/cjs/components/Notification/CollapsedFor/CollapsedFor.js +1 -1
  232. package/lib/cjs/components/Notification/Comment/Comment.js +3 -3
  233. package/lib/cjs/components/Notification/Contribution/Contribution.js +3 -3
  234. package/lib/cjs/components/Notification/ContributionFollow/ContributionFollow.js +2 -2
  235. package/lib/cjs/components/Notification/DeletedFor/DeletedFor.js +1 -1
  236. package/lib/cjs/components/Notification/Event/Event.js +13 -9
  237. package/lib/cjs/components/Notification/Group/Group.js +8 -8
  238. package/lib/cjs/components/Notification/IncubatorApproved/IncubatorApproved.js +3 -3
  239. package/lib/cjs/components/Notification/KindlyNoticeFlag/KindlyNoticeFlag.js +1 -1
  240. package/lib/cjs/components/Notification/KindlyNoticeFor/KindlyNoticeFor.js +2 -2
  241. package/lib/cjs/components/Notification/Mention/Mention.js +3 -3
  242. package/lib/cjs/components/Notification/Notification.js +8 -8
  243. package/lib/cjs/components/Notification/PrivateMessage/PrivateMessage.js +10 -10
  244. package/lib/cjs/components/Notification/Skeleton.js +1 -1
  245. package/lib/cjs/components/Notification/UndeletedFor/UndeletedFor.js +1 -1
  246. package/lib/cjs/components/Notification/UserBlocked/UserBlocked.js +3 -3
  247. package/lib/cjs/components/Notification/UserConnection/UserConnection.js +2 -2
  248. package/lib/cjs/components/Notification/UserFollow/UserFollow.js +2 -2
  249. package/lib/cjs/components/Notification/VoteUp/VoteUp.js +2 -2
  250. package/lib/cjs/components/OnBoardingWidget/ActionsButton.d.ts +7 -0
  251. package/lib/cjs/components/OnBoardingWidget/ActionsButton.js +84 -0
  252. package/lib/cjs/components/OnBoardingWidget/OnBoardingWidget.d.ts +10 -1
  253. package/lib/cjs/components/OnBoardingWidget/OnBoardingWidget.js +115 -30
  254. package/lib/cjs/components/OnBoardingWidget/Skeleton.js +1 -1
  255. package/lib/cjs/components/OnBoardingWidget/Steps/App/App.js +9 -9
  256. package/lib/cjs/components/OnBoardingWidget/Steps/Appearance/Appearance.js +26 -19
  257. package/lib/cjs/components/OnBoardingWidget/Steps/Category/Category.js +5 -5
  258. package/lib/cjs/components/OnBoardingWidget/Steps/Content/Content.js +1 -1
  259. package/lib/cjs/components/OnBoardingWidget/Steps/Invite/Invite.js +56 -12
  260. package/lib/cjs/components/OnBoardingWidget/Steps/Profile/Profile.js +1 -1
  261. package/lib/cjs/components/PlatformWidget/PlatformWidget.js +8 -8
  262. package/lib/cjs/components/PlatformWidget/Skeleton.js +1 -1
  263. package/lib/cjs/components/PlatformWidget/constants.d.ts +0 -4
  264. package/lib/cjs/components/PlatformWidget/constants.js +1 -5
  265. package/lib/cjs/components/PollSuggestionWidget/PollSnippet/PollSnippet.js +1 -1
  266. package/lib/cjs/components/PollSuggestionWidget/PollSuggestionWidget.js +1 -1
  267. package/lib/cjs/components/PollSuggestionWidget/Skeleton.js +1 -1
  268. package/lib/cjs/components/PrivateMessageComponent/PrivateMessageComponent.js +4 -4
  269. package/lib/cjs/components/PrivateMessageComponent/Skeleton.d.ts +1 -1
  270. package/lib/cjs/components/PrivateMessageComponent/Skeleton.js +1 -1
  271. package/lib/cjs/components/PrivateMessageEditor/MessageMediaUploader/index.js +5 -5
  272. package/lib/cjs/components/PrivateMessageEditor/PrivateMessageEditor.js +6 -6
  273. package/lib/cjs/components/PrivateMessageSettingsIconButton/PrivateMessageSettingsIconButton.js +7 -7
  274. package/lib/cjs/components/PrivateMessageSnippetItem/PrivateMessageSnippetItem.js +3 -3
  275. package/lib/cjs/components/PrivateMessageSnippetItem/Skeleton.js +1 -1
  276. package/lib/cjs/components/PrivateMessageSnippets/PrivateMessageSnippets.js +4 -4
  277. package/lib/cjs/components/PrivateMessageSnippets/Skeleton.js +1 -1
  278. package/lib/cjs/components/PrivateMessageThread/PrivateMessageThread.js +6 -6
  279. package/lib/cjs/components/PrivateMessageThread/Skeleton.js +1 -1
  280. package/lib/cjs/components/PrivateMessageThreadItem/PrivateMessageThreadItem.js +6 -8
  281. package/lib/cjs/components/RelatedEventsWidget/RelatedEventsWidget.js +1 -1
  282. package/lib/cjs/components/RelatedEventsWidget/Skeleton.js +1 -1
  283. package/lib/cjs/components/RelatedFeedObjectsWidget/RelatedFeedObjectsWidget.js +1 -1
  284. package/lib/cjs/components/SearchAutocomplete/SearchAutocomplete.js +2 -2
  285. package/lib/cjs/components/SnippetNotifications/Skeleton.js +1 -1
  286. package/lib/cjs/components/SnippetNotifications/SnippetNotifications.js +3 -3
  287. package/lib/cjs/components/SuggestedEventsWidget/Arrow.js +2 -2
  288. package/lib/cjs/components/SuggestedEventsWidget/Skeleton.js +1 -1
  289. package/lib/cjs/components/SuggestedEventsWidget/SuggestedEventsWidget.js +2 -2
  290. package/lib/cjs/components/User/Skeleton.js +1 -1
  291. package/lib/cjs/components/User/User.js +2 -2
  292. package/lib/cjs/components/UserActionIconButton/UserActionIconButton.js +9 -9
  293. package/lib/cjs/components/UserConnectionsRequestsSentWidget/UserConnectionsRequestsSentWidget.js +1 -1
  294. package/lib/cjs/components/UserConnectionsRequestsWidget/UserConnectionsRequestsWidget.js +1 -1
  295. package/lib/cjs/components/UserConnectionsWidget/UserConnectionsWidget.js +1 -1
  296. package/lib/cjs/components/UserCounters/UserCounters.js +5 -5
  297. package/lib/cjs/components/UserFollowedCategoriesWidget/UserFollowedCategoriesWidget.js +1 -1
  298. package/lib/cjs/components/UserFollowedUsersWidget/UserFollowedUsersWidget.js +1 -1
  299. package/lib/cjs/components/UserFollowersWidget/UserFollowersWidget.js +1 -1
  300. package/lib/cjs/components/UserInfo/Skeleton.js +1 -1
  301. package/lib/cjs/components/UserInfo/UserInfo.js +3 -3
  302. package/lib/cjs/components/UserInfoDialog/UserInfoDialog.js +1 -1
  303. package/lib/cjs/components/UserProfileBlocked/UserProfileBlocked.js +1 -1
  304. package/lib/cjs/components/UserProfileEdit/Section/Account.js +1 -1
  305. package/lib/cjs/components/UserProfileEdit/Section/AccountCredentials.js +6 -6
  306. package/lib/cjs/components/UserProfileEdit/Section/PublicInfo.js +8 -8
  307. package/lib/cjs/components/UserProfileEdit/Section/Settings.js +3 -3
  308. package/lib/cjs/components/UserProfileEdit/Section/SettingsSkeleton.js +1 -1
  309. package/lib/cjs/components/UserProfileEdit/Skeleton.js +1 -1
  310. package/lib/cjs/components/UserProfileEdit/UserProfileEdit.js +1 -1
  311. package/lib/cjs/components/UserProfileHeader/Skeleton.js +1 -1
  312. package/lib/cjs/components/UserProfileHeader/UserProfileHeader.js +1 -1
  313. package/lib/cjs/components/UserSocialAssociation/UserSocialAssociation.js +1 -1
  314. package/lib/cjs/components/UserSubscribedGroupsWidget/Skeleton.js +1 -1
  315. package/lib/cjs/components/UserSubscribedGroupsWidget/UserSubscribedGroupsWidget.js +2 -2
  316. package/lib/cjs/components/UserSuggestionWidget/Skeleton.js +1 -1
  317. package/lib/cjs/components/UserSuggestionWidget/UserSuggestionWidget.js +1 -1
  318. package/lib/cjs/components/VoteAudienceButton/VoteAudienceButton.js +5 -5
  319. package/lib/cjs/components/VoteButton/VoteButton.js +2 -2
  320. package/lib/cjs/constants/GroupActionsMenu.d.ts +5 -0
  321. package/lib/cjs/constants/GroupActionsMenu.js +8 -0
  322. package/lib/cjs/constants/LiveStream.d.ts +3 -0
  323. package/lib/cjs/constants/LiveStream.js +6 -0
  324. package/lib/cjs/constants/PubSub.d.ts +8 -1
  325. package/lib/cjs/constants/PubSub.js +11 -3
  326. package/lib/cjs/index.d.ts +15 -4
  327. package/lib/cjs/index.js +35 -9
  328. package/lib/cjs/shared/AutoPlayer/index.js +2 -2
  329. package/lib/cjs/shared/BaseDialog/BaseDialog.js +2 -2
  330. package/lib/cjs/shared/BaseItem/BaseItem.js +2 -2
  331. package/lib/cjs/shared/BaseItemButton/BaseItemButton.js +2 -2
  332. package/lib/cjs/shared/Calendar/index.js +1 -1
  333. package/lib/cjs/shared/ConfirmDialog/ConfirmDialog.js +1 -1
  334. package/lib/cjs/shared/ConsentSolutionSwitch/index.js +3 -3
  335. package/lib/cjs/shared/ContributionActionsMenu/index.js +10 -10
  336. package/lib/cjs/shared/CustomSnackMessage/index.js +1 -1
  337. package/lib/cjs/shared/DateTimeAgo/index.js +1 -1
  338. package/lib/cjs/shared/EmojiPicker/EmojiPicker.js +1 -1
  339. package/lib/cjs/shared/EventActionsMenu/index.d.ts +1 -1
  340. package/lib/cjs/shared/EventActionsMenu/index.js +15 -19
  341. package/lib/cjs/shared/EventInfoDetails/index.js +6 -6
  342. package/lib/cjs/shared/InfiniteScroll/index.d.ts +1 -1
  343. package/lib/cjs/shared/InfiniteScroll/index.js +5 -5
  344. package/lib/cjs/shared/InfiniteScroll/stories/InfiniteScrollWithHeight.js +1 -1
  345. package/lib/cjs/shared/InfiniteScroll/stories/PullDownToRefreshInfScroll.js +1 -1
  346. package/lib/cjs/shared/InfiniteScroll/stories/ScrollableTargetFixedInfScroll.js +2 -2
  347. package/lib/cjs/shared/InfiniteScroll/stories/ScrollableTargetInfScroll.js +1 -1
  348. package/lib/cjs/shared/InfiniteScroll/stories/ScrolleableTop.js +2 -2
  349. package/lib/cjs/shared/InfiniteScroll/stories/WindowInfiniteScrollComponent.js +1 -1
  350. package/lib/cjs/shared/LanguageSwitcher/index.js +1 -1
  351. package/lib/cjs/shared/Lightbox/BaseLightbox.d.ts +19 -0
  352. package/lib/cjs/shared/Lightbox/BaseLightbox.js +35 -0
  353. package/lib/cjs/shared/Lightbox/Lightbox.d.ts +31 -17
  354. package/lib/cjs/shared/Lightbox/Lightbox.js +16 -19
  355. package/lib/cjs/shared/Lightbox/constants.d.ts +1 -0
  356. package/lib/cjs/shared/Lightbox/constants.js +4 -0
  357. package/lib/cjs/shared/Lightbox/index.d.ts +4 -2
  358. package/lib/cjs/shared/Lightbox/index.js +4 -1
  359. package/lib/cjs/shared/MarkRead/MarkRead.js +1 -1
  360. package/lib/cjs/shared/Media/File/DisplayComponent.js +32 -15
  361. package/lib/cjs/shared/Media/File/PreviewComponent.js +3 -3
  362. package/lib/cjs/shared/Media/File/TriggerButton.js +7 -7
  363. package/lib/cjs/shared/Media/File/asUploadButton.d.ts +1 -1
  364. package/lib/cjs/shared/Media/Link/DisplayComponent.js +6 -6
  365. package/lib/cjs/shared/Media/Link/LayerComponent.js +1 -1
  366. package/lib/cjs/shared/Media/Link/PreviewComponent.js +1 -1
  367. package/lib/cjs/shared/Media/Link/TriggerButton.js +1 -1
  368. package/lib/cjs/shared/Media/Link/UrlTextField/index.d.ts +1 -1
  369. package/lib/cjs/shared/Media/Link/UrlTextField/index.js +3 -3
  370. package/lib/cjs/shared/Media/Share/DisplayComponent.js +1 -1
  371. package/lib/cjs/shared/MediaChunkUploader/index.js +13 -11
  372. package/lib/cjs/shared/MetadataField/MetadataField.d.ts +1 -1
  373. package/lib/cjs/shared/MetadataField/MetadataField.js +1 -1
  374. package/lib/cjs/shared/NotificationItem/NotificationItem.js +1 -1
  375. package/lib/cjs/shared/PasswordTextField/index.js +1 -1
  376. package/lib/cjs/shared/ProgressBar/index.js +1 -1
  377. package/lib/cjs/shared/StickyBox/index.d.ts +4 -4
  378. package/lib/cjs/shared/StickyBox/index.js +1 -1
  379. package/lib/cjs/shared/Tags/index.js +6 -6
  380. package/lib/cjs/shared/UserDeletedSnackBar/UserDeletedSnackBar.js +1 -1
  381. package/lib/cjs/shared/UsernameTextField/index.d.ts +1 -1
  382. package/lib/cjs/shared/VirtualizedScroller/VirtualScrollerChild.js +1 -1
  383. package/lib/cjs/types/broadcastMessage.js +1 -1
  384. package/lib/cjs/types/comments.js +1 -1
  385. package/lib/cjs/types/composer.d.ts +1 -1
  386. package/lib/cjs/types/event.js +1 -1
  387. package/lib/cjs/types/feedObject.js +2 -2
  388. package/lib/cjs/types/notification.js +1 -1
  389. package/lib/cjs/types/user.js +3 -3
  390. package/lib/cjs/utils/events.d.ts +2 -0
  391. package/lib/cjs/utils/events.js +10 -0
  392. package/lib/cjs/utils/formatRelativeTime.js +2 -2
  393. package/lib/cjs/utils/hash.d.ts +2 -1
  394. package/lib/cjs/utils/liveStream.d.ts +4 -0
  395. package/lib/cjs/utils/liveStream.js +25 -0
  396. package/lib/cjs/utils/widget.d.ts +1 -0
  397. package/lib/cjs/utils/widget.js +14 -0
  398. package/lib/esm/components/AccountChangeMailValidation/AccountChangeMailValidation.js +1 -1
  399. package/lib/esm/components/AccountDataPortability/AccountDataPortability.js +4 -4
  400. package/lib/esm/components/AccountDataPortabilityButton/AccountDataPortabilityButton.js +1 -1
  401. package/lib/esm/components/AccountDelete/AccountDelete.js +3 -3
  402. package/lib/esm/components/AccountDeleteButton/AccountDeleteButton.js +1 -1
  403. package/lib/esm/components/AccountRecover/AccountRecover.js +2 -2
  404. package/lib/esm/components/AccountReset/AccountReset.js +1 -1
  405. package/lib/esm/components/AccountVerify/AccountVerify.js +1 -1
  406. package/lib/esm/components/BottomNavigation/BottomNavigation.d.ts +1 -1
  407. package/lib/esm/components/BottomNavigation/BottomNavigation.js +2 -2
  408. package/lib/esm/components/BroadcastMessages/BroadcastMessages.js +1 -1
  409. package/lib/esm/components/BroadcastMessages/Message.js +4 -4
  410. package/lib/esm/components/BroadcastMessages/Skeleton.js +1 -1
  411. package/lib/esm/components/Categories/Categories.js +24 -2
  412. package/lib/esm/components/Categories/Skeleton.js +1 -1
  413. package/lib/esm/components/CategoriesPopularWidget/CategoriesPopularWidget.js +23 -2
  414. package/lib/esm/components/CategoriesSuggestionWidget/CategoriesSuggestionWidget.js +23 -2
  415. package/lib/esm/components/CategoriesSuggestionWidget/Skeleton.js +1 -1
  416. package/lib/esm/components/Category/Category.js +1 -1
  417. package/lib/esm/components/Category/Skeleton.js +1 -1
  418. package/lib/esm/components/CategoryAutocomplete/CategoryAutocomplete.js +1 -1
  419. package/lib/esm/components/CategoryFollowersButton/CategoryFollowersButton.js +1 -1
  420. package/lib/esm/components/CategoryHeader/CategoryHeader.js +1 -1
  421. package/lib/esm/components/CategoryHeader/Skeleton.js +1 -1
  422. package/lib/esm/components/CategoryTrendingFeedWidget/CategoryTrendingFeedWidget.js +2 -2
  423. package/lib/esm/components/CategoryTrendingFeedWidget/Skeleton.js +1 -1
  424. package/lib/esm/components/CategoryTrendingUsersWidget/CategoryTrendingUsersWidget.js +1 -1
  425. package/lib/esm/components/CategoryTrendingUsersWidget/Skeleton.js +1 -1
  426. package/lib/esm/components/ChangeCover/ChangeCover.js +6 -6
  427. package/lib/esm/components/ChangeGroupCover/ChangeGroupCover.js +1 -1
  428. package/lib/esm/components/ChangeGroupPicture/ChangeGroupPicture.js +1 -1
  429. package/lib/esm/components/ChangePicture/ChangePictureDialog/ChangePictureDialog.js +2 -2
  430. package/lib/esm/components/CommentObject/CommentObject.js +4 -4
  431. package/lib/esm/components/CommentObjectReply/CommentObjectReply.js +1 -1
  432. package/lib/esm/components/CommentsFeedObject/CommentsFeedObject.js +4 -4
  433. package/lib/esm/components/CommentsObject/CommentsObject.js +6 -6
  434. package/lib/esm/components/Composer/Attributes/Attributes.js +2 -2
  435. package/lib/esm/components/Composer/Composer.js +6 -4
  436. package/lib/esm/components/Composer/Content/ContentDiscussion/ContentDiscussion.js +3 -3
  437. package/lib/esm/components/Composer/Content/ContentPoll/ContentPoll.js +6 -6
  438. package/lib/esm/components/Composer/Content/ContentPost/ContentPost.js +1 -1
  439. package/lib/esm/components/Composer/Layer/AudienceLayer/AudienceLayer.js +4 -4
  440. package/lib/esm/components/Composer/Layer/CategoryLayer/CategoryLayer.js +1 -1
  441. package/lib/esm/components/Composer/Layer/CloseLayer/CloseLayer.js +1 -1
  442. package/lib/esm/components/Composer/Layer/LocationLayer/LocationLayer.js +1 -1
  443. package/lib/esm/components/Composer/Skeleton.js +1 -1
  444. package/lib/esm/components/Composer/TypeSwitchButtonGroup/TypeSwitchButtonGroup.js +2 -2
  445. package/lib/esm/components/ComposerIconButton/ComposerIconButton.js +2 -2
  446. package/lib/esm/components/ConsentSolution/ConsentSolution.js +4 -4
  447. package/lib/esm/components/ConsentSolution/Skeleton.js +1 -1
  448. package/lib/esm/components/CreateEventButton/CreateEventButton.d.ts +2 -2
  449. package/lib/esm/components/CreateEventButton/CreateEventButton.js +4 -4
  450. package/lib/esm/components/CreateEventWidget/CreateEventWidget.js +1 -1
  451. package/lib/esm/components/CreateEventWidget/Skeleton.js +1 -1
  452. package/lib/esm/components/CreateLiveStreamButton/CreateLiveStreamButton.d.ts +49 -0
  453. package/lib/esm/components/CreateLiveStreamButton/CreateLiveStreamButton.js +91 -0
  454. package/lib/esm/components/CreateLiveStreamButton/index.d.ts +3 -0
  455. package/lib/esm/components/CreateLiveStreamButton/index.js +2 -0
  456. package/lib/esm/components/CreateLiveStreamDialog/CreateLiveStreamDialog.d.ts +51 -0
  457. package/lib/esm/components/CreateLiveStreamDialog/CreateLiveStreamDialog.js +120 -0
  458. package/lib/esm/components/CreateLiveStreamDialog/LiveStreamSelector/LiveStreamSelector.d.ts +46 -0
  459. package/lib/esm/components/CreateLiveStreamDialog/LiveStreamSelector/LiveStreamSelector.js +163 -0
  460. package/lib/esm/components/CreateLiveStreamDialog/constants.d.ts +1 -0
  461. package/lib/esm/components/CreateLiveStreamDialog/constants.js +1 -0
  462. package/lib/esm/components/CreateLiveStreamDialog/index.d.ts +3 -0
  463. package/lib/esm/components/CreateLiveStreamDialog/index.js +2 -0
  464. package/lib/esm/components/CreateLiveStreamDialog/types.d.ts +8 -0
  465. package/lib/esm/components/CreateLiveStreamDialog/types.js +10 -0
  466. package/lib/esm/components/CustomAdv/CustomAdv.js +2 -2
  467. package/lib/esm/components/EditEventButton/EditEventButton.js +1 -1
  468. package/lib/esm/components/Editor/Editor.d.ts +1 -1
  469. package/lib/esm/components/Editor/Editor.js +1 -1
  470. package/lib/esm/components/Editor/nodes/HashtagNode.d.ts +1 -1
  471. package/lib/esm/components/Editor/nodes/HashtagNode.js +4 -4
  472. package/lib/esm/components/Editor/nodes/ImageNode.d.ts +1 -1
  473. package/lib/esm/components/Editor/nodes/ImageNode.js +7 -7
  474. package/lib/esm/components/Editor/nodes/MentionNode.d.ts +1 -1
  475. package/lib/esm/components/Editor/nodes/MentionNode.js +4 -4
  476. package/lib/esm/components/Editor/plugins/ApiPlugin.d.ts +1 -1
  477. package/lib/esm/components/Editor/plugins/EmojiPlugin.js +2 -2
  478. package/lib/esm/components/Editor/plugins/FloatingLinkPlugin.js +4 -4
  479. package/lib/esm/components/Editor/plugins/HashtagPlugin.js +3 -3
  480. package/lib/esm/components/Editor/plugins/ImagePlugin.js +4 -4
  481. package/lib/esm/components/Editor/plugins/MentionsPlugin.d.ts +2 -2
  482. package/lib/esm/components/Editor/plugins/MentionsPlugin.js +4 -4
  483. package/lib/esm/components/Editor/plugins/ToolbarPlugin.js +5 -5
  484. package/lib/esm/components/Editor/shared/useDecorators.d.ts +2 -2
  485. package/lib/esm/components/Editor/shared/useDecorators.js +1 -1
  486. package/lib/esm/components/Event/Event.js +5 -5
  487. package/lib/esm/components/Event/Skeleton.js +3 -3
  488. package/lib/esm/components/EventAutocomplete/EventAutocomplete.js +1 -1
  489. package/lib/esm/components/EventForm/EventAddress.js +2 -2
  490. package/lib/esm/components/EventForm/EventForm.d.ts +7 -12
  491. package/lib/esm/components/EventForm/EventForm.js +56 -56
  492. package/lib/esm/components/EventForm/UploadEventCover.js +1 -1
  493. package/lib/esm/components/EventForm/types.d.ts +5 -5
  494. package/lib/esm/components/EventFormDialog/EventFormDialog.d.ts +48 -0
  495. package/lib/esm/components/EventFormDialog/EventFormDialog.js +53 -0
  496. package/lib/esm/components/EventFormDialog/constants.d.ts +1 -0
  497. package/lib/esm/components/EventFormDialog/constants.js +1 -0
  498. package/lib/esm/components/EventFormDialog/index.d.ts +3 -0
  499. package/lib/esm/components/EventFormDialog/index.js +2 -0
  500. package/lib/esm/components/EventHeader/EventHeader.js +4 -8
  501. package/lib/esm/components/EventHeader/Skeleton.js +1 -1
  502. package/lib/esm/components/EventInfoWidget/EventInfoWidget.js +7 -5
  503. package/lib/esm/components/EventInfoWidget/Skeleton.js +1 -1
  504. package/lib/esm/components/EventInviteButton/EventInviteButton.js +2 -2
  505. package/lib/esm/components/EventLocationWidget/EventLocationWidget.js +3 -3
  506. package/lib/esm/components/EventLocationWidget/Skeleton.js +1 -1
  507. package/lib/esm/components/EventMediaWidget/EventMediaWidget.d.ts +41 -0
  508. package/lib/esm/components/EventMediaWidget/EventMediaWidget.js +250 -0
  509. package/lib/esm/components/EventMediaWidget/Skeleton.d.ts +2 -0
  510. package/lib/esm/components/EventMediaWidget/Skeleton.js +22 -0
  511. package/lib/esm/components/EventMediaWidget/TriggerButton.d.ts +17 -0
  512. package/lib/esm/components/EventMediaWidget/TriggerButton.js +64 -0
  513. package/lib/esm/components/EventMediaWidget/asUploadButton.d.ts +7 -0
  514. package/lib/esm/components/EventMediaWidget/asUploadButton.js +23 -0
  515. package/lib/esm/components/EventMediaWidget/constants.d.ts +1 -0
  516. package/lib/esm/components/EventMediaWidget/constants.js +1 -0
  517. package/lib/esm/components/EventMediaWidget/index.d.ts +4 -0
  518. package/lib/esm/components/EventMediaWidget/index.js +4 -0
  519. package/lib/esm/components/EventMembersWidget/EventMembersWidget.d.ts +3 -0
  520. package/lib/esm/components/EventMembersWidget/EventMembersWidget.js +21 -16
  521. package/lib/esm/components/EventMembersWidget/Skeleton.js +1 -1
  522. package/lib/esm/components/EventMembersWidget/TabContentComponent.js +3 -3
  523. package/lib/esm/components/EventMembersWidget/types.d.ts +1 -1
  524. package/lib/esm/components/EventParticipantsButton/EventParticipantsButton.js +1 -1
  525. package/lib/esm/components/EventSubscribeButton/EventSubscribeButton.js +2 -2
  526. package/lib/esm/components/Events/Events.js +19 -10
  527. package/lib/esm/components/Events/LocationEventsFilter.d.ts +14 -0
  528. package/lib/esm/components/Events/LocationEventsFilter.js +41 -0
  529. package/lib/esm/components/Events/PastEventsFilter.js +1 -2
  530. package/lib/esm/components/Events/Skeleton.js +1 -1
  531. package/lib/esm/components/Feed/Feed.d.ts +2 -2
  532. package/lib/esm/components/Feed/Feed.js +17 -8
  533. package/lib/esm/components/Feed/Skeleton.d.ts +1 -1
  534. package/lib/esm/components/Feed/Skeleton.js +1 -1
  535. package/lib/esm/components/FeedObject/Actions/Actions.js +1 -1
  536. package/lib/esm/components/FeedObject/Actions/Comment/Comment.js +3 -3
  537. package/lib/esm/components/FeedObject/Actions/Follow/Follow.js +1 -1
  538. package/lib/esm/components/FeedObject/Actions/Share/Share.js +5 -5
  539. package/lib/esm/components/FeedObject/Actions/Share/SharesDialog/SharesDialog.js +1 -1
  540. package/lib/esm/components/FeedObject/Activities/Activities.js +1 -1
  541. package/lib/esm/components/FeedObject/Activities/ActivitiesMenu/ActivitiesMenu.js +4 -4
  542. package/lib/esm/components/FeedObject/Activities/RelevantActivities/CommentActivity/CommentActivity.js +3 -3
  543. package/lib/esm/components/FeedObject/Activities/RelevantActivities/FollowActivity/FollowActivity.js +2 -2
  544. package/lib/esm/components/FeedObject/Activities/RelevantActivities/PollVoteActivity/PollVoteActivity.js +2 -2
  545. package/lib/esm/components/FeedObject/Activities/RelevantActivities/RelevantActivities.js +1 -1
  546. package/lib/esm/components/FeedObject/Activities/RelevantActivities/VoteUpActivity/VoteUpActivity.js +2 -2
  547. package/lib/esm/components/FeedObject/Contributors/Contributors.js +1 -1
  548. package/lib/esm/components/FeedObject/Contributors/Skeleton.js +1 -1
  549. package/lib/esm/components/FeedObject/FeedObject.js +11 -11
  550. package/lib/esm/components/FeedObject/Poll/Choice/Choice.js +2 -2
  551. package/lib/esm/components/FeedObject/Poll/Poll.js +1 -1
  552. package/lib/esm/components/FeedUpdatesWidget/FeedUpdatesWidget.js +1 -1
  553. package/lib/esm/components/Footer/Footer.js +1 -1
  554. package/lib/esm/components/Group/Group.js +2 -2
  555. package/lib/esm/components/Group/Skeleton.js +1 -1
  556. package/lib/esm/components/GroupActionsMenu/index.d.ts +57 -0
  557. package/lib/esm/components/GroupActionsMenu/index.js +154 -0
  558. package/lib/esm/components/GroupAutocomplete/GroupAutocomplete.js +1 -1
  559. package/lib/esm/components/GroupForm/GroupForm.js +9 -9
  560. package/lib/esm/components/GroupHeader/GroupHeader.d.ts +6 -0
  561. package/lib/esm/components/GroupHeader/GroupHeader.js +9 -5
  562. package/lib/esm/components/GroupHeader/Skeleton.js +1 -1
  563. package/lib/esm/components/GroupInfoWidget/GroupInfoWidget.js +6 -6
  564. package/lib/esm/components/GroupInviteButton/GroupInviteButton.js +2 -2
  565. package/lib/esm/components/GroupInvitedWidget/GroupInvitedWidget.js +1 -1
  566. package/lib/esm/components/GroupMembersButton/GroupMembersButton.js +1 -1
  567. package/lib/esm/components/GroupMembersWidget/GroupMembersWidget.js +5 -5
  568. package/lib/esm/components/GroupRequestsWidget/GroupRequestsWidget.js +1 -1
  569. package/lib/esm/components/GroupSettingsIconButton/GroupSettingsIconButton.js +5 -5
  570. package/lib/esm/components/Groups/Groups.js +30 -4
  571. package/lib/esm/components/Groups/Skeleton.js +1 -1
  572. package/lib/esm/components/Incubator/Incubator.js +4 -4
  573. package/lib/esm/components/Incubator/Skeleton.js +1 -1
  574. package/lib/esm/components/IncubatorDetail/IncubatorDetail.js +2 -2
  575. package/lib/esm/components/IncubatorListWidget/CreateIncubatorDialog/CreateIncubatorDialog.js +2 -2
  576. package/lib/esm/components/IncubatorListWidget/IncubatorListWidget.js +2 -2
  577. package/lib/esm/components/IncubatorListWidget/Skeleton.js +1 -1
  578. package/lib/esm/components/IncubatorSuggestionWidget/IncubatorSuggestionWidget.js +1 -1
  579. package/lib/esm/components/IncubatorSuggestionWidget/Skeleton.js +1 -1
  580. package/lib/esm/components/InlineComposerWidget/InlineComposerWidget.js +1 -1
  581. package/lib/esm/components/InlineComposerWidget/Skeleton.js +1 -1
  582. package/lib/esm/components/LiveStreamForm/LiveStreamForm.d.ts +55 -0
  583. package/lib/esm/components/LiveStreamForm/LiveStreamForm.js +153 -0
  584. package/lib/esm/components/LiveStreamForm/constants.d.ts +1 -0
  585. package/lib/esm/components/LiveStreamForm/constants.js +1 -0
  586. package/lib/esm/components/LiveStreamForm/index.d.ts +3 -0
  587. package/lib/esm/components/LiveStreamForm/index.js +2 -0
  588. package/lib/esm/components/LiveStreamForm/types.d.ts +10 -0
  589. package/lib/esm/components/LiveStreamForm/types.js +1 -0
  590. package/lib/esm/components/LiveStreamRoom/LiveStreamRoom.d.ts +48 -0
  591. package/lib/esm/components/LiveStreamRoom/LiveStreamRoom.js +120 -0
  592. package/lib/esm/components/LiveStreamRoom/LiveStreamVideoConference/LiveStreamVideoConference.d.ts +69 -0
  593. package/lib/esm/components/LiveStreamRoom/LiveStreamVideoConference/LiveStreamVideoConference.js +181 -0
  594. package/lib/esm/components/LiveStreamRoom/LiveStreamVideoConference/RecordingIndicator.d.ts +4 -0
  595. package/lib/esm/components/LiveStreamRoom/LiveStreamVideoConference/RecordingIndicator.js +28 -0
  596. package/lib/esm/components/LiveStreamRoom/LiveStreamVideoConference/constants.d.ts +1 -0
  597. package/lib/esm/components/LiveStreamRoom/LiveStreamVideoConference/constants.js +1 -0
  598. package/lib/esm/components/LiveStreamRoom/LiveStreamVideoConference/index.d.ts +3 -0
  599. package/lib/esm/components/LiveStreamRoom/LiveStreamVideoConference/index.js +2 -0
  600. package/lib/esm/components/LiveStreamRoom/constants.d.ts +5 -0
  601. package/lib/esm/components/LiveStreamRoom/constants.js +5 -0
  602. package/lib/esm/components/LiveStreamRoom/index.d.ts +3 -0
  603. package/lib/esm/components/LiveStreamRoom/index.js +2 -0
  604. package/lib/esm/components/LiveStreamRoom/types.d.ts +22 -0
  605. package/lib/esm/components/LiveStreamRoom/types.js +4 -0
  606. package/lib/esm/components/LocationAutocomplete/LocationAutocomplete.js +1 -1
  607. package/lib/esm/components/LoyaltyProgramWidget/LoyaltyProgramWidget.js +1 -1
  608. package/lib/esm/components/LoyaltyProgramWidget/Skeleton.js +1 -1
  609. package/lib/esm/components/MyEventsWidget/MyEventsWidget.js +1 -1
  610. package/lib/esm/components/MyEventsWidget/Skeleton.js +1 -1
  611. package/lib/esm/components/NavigationMenuIconButton/DefaultDrawerContent.js +2 -2
  612. package/lib/esm/components/NavigationMenuIconButton/DefaultHeaderContent.d.ts +1 -1
  613. package/lib/esm/components/NavigationMenuIconButton/DefaultHeaderContent.js +1 -1
  614. package/lib/esm/components/NavigationMenuIconButton/NavigationMenuDrawer.d.ts +47 -0
  615. package/lib/esm/components/NavigationMenuIconButton/NavigationMenuDrawer.js +36 -0
  616. package/lib/esm/components/NavigationMenuIconButton/NavigationMenuIconButton.d.ts +9 -20
  617. package/lib/esm/components/NavigationMenuIconButton/NavigationMenuIconButton.js +6 -22
  618. package/lib/esm/components/NavigationMenuIconButton/index.d.ts +2 -1
  619. package/lib/esm/components/NavigationMenuIconButton/index.js +2 -1
  620. package/lib/esm/components/NavigationSettingsIconButton/NavigationSettingsIconButton.js +65 -32
  621. package/lib/esm/components/NavigationToolbar/NavigationToolbar.d.ts +5 -0
  622. package/lib/esm/components/NavigationToolbar/NavigationToolbar.js +9 -9
  623. package/lib/esm/components/NavigationToolbar/NotificationMenu.js +1 -1
  624. package/lib/esm/components/NavigationToolbar/Skeleton.js +1 -1
  625. package/lib/esm/components/NavigationToolbarMobile/NavigationToolbarMobile.js +4 -4
  626. package/lib/esm/components/NavigationToolbarMobile/Skeleton.js +1 -1
  627. package/lib/esm/components/Notification/CollapsedFor/CollapsedFor.js +1 -1
  628. package/lib/esm/components/Notification/Comment/Comment.js +3 -3
  629. package/lib/esm/components/Notification/Contribution/Contribution.js +3 -3
  630. package/lib/esm/components/Notification/ContributionFollow/ContributionFollow.js +2 -2
  631. package/lib/esm/components/Notification/DeletedFor/DeletedFor.js +1 -1
  632. package/lib/esm/components/Notification/Event/Event.js +13 -9
  633. package/lib/esm/components/Notification/Group/Group.js +8 -8
  634. package/lib/esm/components/Notification/IncubatorApproved/IncubatorApproved.js +3 -3
  635. package/lib/esm/components/Notification/KindlyNoticeFlag/KindlyNoticeFlag.js +1 -1
  636. package/lib/esm/components/Notification/KindlyNoticeFor/KindlyNoticeFor.js +2 -2
  637. package/lib/esm/components/Notification/Mention/Mention.js +3 -3
  638. package/lib/esm/components/Notification/Notification.js +8 -8
  639. package/lib/esm/components/Notification/PrivateMessage/PrivateMessage.js +10 -10
  640. package/lib/esm/components/Notification/Skeleton.js +1 -1
  641. package/lib/esm/components/Notification/UndeletedFor/UndeletedFor.js +1 -1
  642. package/lib/esm/components/Notification/UserBlocked/UserBlocked.js +3 -3
  643. package/lib/esm/components/Notification/UserConnection/UserConnection.js +2 -2
  644. package/lib/esm/components/Notification/UserFollow/UserFollow.js +2 -2
  645. package/lib/esm/components/Notification/VoteUp/VoteUp.js +2 -2
  646. package/lib/esm/components/OnBoardingWidget/ActionsButton.d.ts +7 -0
  647. package/lib/esm/components/OnBoardingWidget/ActionsButton.js +81 -0
  648. package/lib/esm/components/OnBoardingWidget/OnBoardingWidget.d.ts +10 -1
  649. package/lib/esm/components/OnBoardingWidget/OnBoardingWidget.js +118 -33
  650. package/lib/esm/components/OnBoardingWidget/Skeleton.js +1 -1
  651. package/lib/esm/components/OnBoardingWidget/Steps/App/App.js +9 -9
  652. package/lib/esm/components/OnBoardingWidget/Steps/Appearance/Appearance.js +27 -20
  653. package/lib/esm/components/OnBoardingWidget/Steps/Category/Category.js +5 -5
  654. package/lib/esm/components/OnBoardingWidget/Steps/Content/Content.js +1 -1
  655. package/lib/esm/components/OnBoardingWidget/Steps/Invite/Invite.js +59 -14
  656. package/lib/esm/components/OnBoardingWidget/Steps/Profile/Profile.js +1 -1
  657. package/lib/esm/components/PlatformWidget/PlatformWidget.js +8 -8
  658. package/lib/esm/components/PlatformWidget/Skeleton.js +1 -1
  659. package/lib/esm/components/PlatformWidget/constants.d.ts +0 -4
  660. package/lib/esm/components/PlatformWidget/constants.js +0 -4
  661. package/lib/esm/components/PollSuggestionWidget/PollSnippet/PollSnippet.js +1 -1
  662. package/lib/esm/components/PollSuggestionWidget/PollSuggestionWidget.js +1 -1
  663. package/lib/esm/components/PollSuggestionWidget/Skeleton.js +1 -1
  664. package/lib/esm/components/PrivateMessageComponent/PrivateMessageComponent.js +4 -4
  665. package/lib/esm/components/PrivateMessageComponent/Skeleton.d.ts +1 -1
  666. package/lib/esm/components/PrivateMessageComponent/Skeleton.js +1 -1
  667. package/lib/esm/components/PrivateMessageEditor/MessageMediaUploader/index.js +5 -5
  668. package/lib/esm/components/PrivateMessageEditor/PrivateMessageEditor.js +6 -6
  669. package/lib/esm/components/PrivateMessageSettingsIconButton/PrivateMessageSettingsIconButton.js +7 -7
  670. package/lib/esm/components/PrivateMessageSnippetItem/PrivateMessageSnippetItem.js +3 -3
  671. package/lib/esm/components/PrivateMessageSnippetItem/Skeleton.js +1 -1
  672. package/lib/esm/components/PrivateMessageSnippets/PrivateMessageSnippets.js +4 -4
  673. package/lib/esm/components/PrivateMessageSnippets/Skeleton.js +1 -1
  674. package/lib/esm/components/PrivateMessageThread/PrivateMessageThread.js +6 -6
  675. package/lib/esm/components/PrivateMessageThread/Skeleton.js +1 -1
  676. package/lib/esm/components/PrivateMessageThreadItem/PrivateMessageThreadItem.js +6 -8
  677. package/lib/esm/components/RelatedEventsWidget/RelatedEventsWidget.js +1 -1
  678. package/lib/esm/components/RelatedEventsWidget/Skeleton.js +1 -1
  679. package/lib/esm/components/RelatedFeedObjectsWidget/RelatedFeedObjectsWidget.js +1 -1
  680. package/lib/esm/components/SearchAutocomplete/SearchAutocomplete.js +2 -2
  681. package/lib/esm/components/SnippetNotifications/Skeleton.js +1 -1
  682. package/lib/esm/components/SnippetNotifications/SnippetNotifications.js +3 -3
  683. package/lib/esm/components/SuggestedEventsWidget/Arrow.js +2 -2
  684. package/lib/esm/components/SuggestedEventsWidget/Skeleton.js +1 -1
  685. package/lib/esm/components/SuggestedEventsWidget/SuggestedEventsWidget.js +2 -2
  686. package/lib/esm/components/User/Skeleton.js +1 -1
  687. package/lib/esm/components/User/User.js +2 -2
  688. package/lib/esm/components/UserActionIconButton/UserActionIconButton.js +9 -9
  689. package/lib/esm/components/UserConnectionsRequestsSentWidget/UserConnectionsRequestsSentWidget.js +1 -1
  690. package/lib/esm/components/UserConnectionsRequestsWidget/UserConnectionsRequestsWidget.js +1 -1
  691. package/lib/esm/components/UserConnectionsWidget/UserConnectionsWidget.js +1 -1
  692. package/lib/esm/components/UserCounters/UserCounters.js +5 -5
  693. package/lib/esm/components/UserFollowedCategoriesWidget/UserFollowedCategoriesWidget.js +1 -1
  694. package/lib/esm/components/UserFollowedUsersWidget/UserFollowedUsersWidget.js +1 -1
  695. package/lib/esm/components/UserFollowersWidget/UserFollowersWidget.js +1 -1
  696. package/lib/esm/components/UserInfo/Skeleton.js +1 -1
  697. package/lib/esm/components/UserInfo/UserInfo.js +3 -3
  698. package/lib/esm/components/UserInfoDialog/UserInfoDialog.js +1 -1
  699. package/lib/esm/components/UserProfileBlocked/UserProfileBlocked.js +1 -1
  700. package/lib/esm/components/UserProfileEdit/Section/Account.js +1 -1
  701. package/lib/esm/components/UserProfileEdit/Section/AccountCredentials.js +6 -6
  702. package/lib/esm/components/UserProfileEdit/Section/PublicInfo.js +8 -8
  703. package/lib/esm/components/UserProfileEdit/Section/Settings.js +3 -3
  704. package/lib/esm/components/UserProfileEdit/Section/SettingsSkeleton.js +1 -1
  705. package/lib/esm/components/UserProfileEdit/Skeleton.js +1 -1
  706. package/lib/esm/components/UserProfileEdit/UserProfileEdit.js +1 -1
  707. package/lib/esm/components/UserProfileHeader/Skeleton.js +1 -1
  708. package/lib/esm/components/UserProfileHeader/UserProfileHeader.js +1 -1
  709. package/lib/esm/components/UserSocialAssociation/UserSocialAssociation.js +1 -1
  710. package/lib/esm/components/UserSubscribedGroupsWidget/Skeleton.js +1 -1
  711. package/lib/esm/components/UserSubscribedGroupsWidget/UserSubscribedGroupsWidget.js +2 -2
  712. package/lib/esm/components/UserSuggestionWidget/Skeleton.js +1 -1
  713. package/lib/esm/components/UserSuggestionWidget/UserSuggestionWidget.js +1 -1
  714. package/lib/esm/components/VoteAudienceButton/VoteAudienceButton.js +5 -5
  715. package/lib/esm/components/VoteButton/VoteButton.js +2 -2
  716. package/lib/esm/constants/GroupActionsMenu.d.ts +5 -0
  717. package/lib/esm/constants/GroupActionsMenu.js +5 -0
  718. package/lib/esm/constants/LiveStream.d.ts +3 -0
  719. package/lib/esm/constants/LiveStream.js +3 -0
  720. package/lib/esm/constants/PubSub.d.ts +8 -1
  721. package/lib/esm/constants/PubSub.js +8 -0
  722. package/lib/esm/index.d.ts +15 -4
  723. package/lib/esm/index.js +17 -7
  724. package/lib/esm/shared/AutoPlayer/index.js +2 -2
  725. package/lib/esm/shared/BaseDialog/BaseDialog.js +2 -2
  726. package/lib/esm/shared/BaseItem/BaseItem.js +2 -2
  727. package/lib/esm/shared/BaseItemButton/BaseItemButton.js +2 -2
  728. package/lib/esm/shared/Calendar/index.js +1 -1
  729. package/lib/esm/shared/ConfirmDialog/ConfirmDialog.js +1 -1
  730. package/lib/esm/shared/ConsentSolutionSwitch/index.js +3 -3
  731. package/lib/esm/shared/ContributionActionsMenu/index.js +10 -10
  732. package/lib/esm/shared/CustomSnackMessage/index.js +1 -1
  733. package/lib/esm/shared/DateTimeAgo/index.js +1 -1
  734. package/lib/esm/shared/EmojiPicker/EmojiPicker.js +1 -1
  735. package/lib/esm/shared/EventActionsMenu/index.d.ts +1 -1
  736. package/lib/esm/shared/EventActionsMenu/index.js +15 -19
  737. package/lib/esm/shared/EventInfoDetails/index.js +6 -6
  738. package/lib/esm/shared/InfiniteScroll/index.d.ts +1 -1
  739. package/lib/esm/shared/InfiniteScroll/index.js +5 -5
  740. package/lib/esm/shared/InfiniteScroll/stories/InfiniteScrollWithHeight.js +1 -1
  741. package/lib/esm/shared/InfiniteScroll/stories/PullDownToRefreshInfScroll.js +1 -1
  742. package/lib/esm/shared/InfiniteScroll/stories/ScrollableTargetFixedInfScroll.js +2 -2
  743. package/lib/esm/shared/InfiniteScroll/stories/ScrollableTargetInfScroll.js +1 -1
  744. package/lib/esm/shared/InfiniteScroll/stories/ScrolleableTop.js +2 -2
  745. package/lib/esm/shared/InfiniteScroll/stories/WindowInfiniteScrollComponent.js +1 -1
  746. package/lib/esm/shared/LanguageSwitcher/index.js +1 -1
  747. package/lib/esm/shared/Lightbox/BaseLightbox.d.ts +19 -0
  748. package/lib/esm/shared/Lightbox/BaseLightbox.js +33 -0
  749. package/lib/esm/shared/Lightbox/Lightbox.d.ts +31 -17
  750. package/lib/esm/shared/Lightbox/Lightbox.js +15 -19
  751. package/lib/esm/shared/Lightbox/constants.d.ts +1 -0
  752. package/lib/esm/shared/Lightbox/constants.js +1 -0
  753. package/lib/esm/shared/Lightbox/index.d.ts +4 -2
  754. package/lib/esm/shared/Lightbox/index.js +3 -1
  755. package/lib/esm/shared/MarkRead/MarkRead.js +1 -1
  756. package/lib/esm/shared/Media/File/DisplayComponent.js +32 -15
  757. package/lib/esm/shared/Media/File/PreviewComponent.js +3 -3
  758. package/lib/esm/shared/Media/File/TriggerButton.js +7 -7
  759. package/lib/esm/shared/Media/File/asUploadButton.d.ts +1 -1
  760. package/lib/esm/shared/Media/Link/DisplayComponent.js +6 -6
  761. package/lib/esm/shared/Media/Link/LayerComponent.js +1 -1
  762. package/lib/esm/shared/Media/Link/PreviewComponent.js +1 -1
  763. package/lib/esm/shared/Media/Link/TriggerButton.js +1 -1
  764. package/lib/esm/shared/Media/Link/UrlTextField/index.d.ts +1 -1
  765. package/lib/esm/shared/Media/Link/UrlTextField/index.js +3 -3
  766. package/lib/esm/shared/Media/Share/DisplayComponent.js +1 -1
  767. package/lib/esm/shared/MediaChunkUploader/index.js +14 -12
  768. package/lib/esm/shared/MetadataField/MetadataField.d.ts +1 -1
  769. package/lib/esm/shared/MetadataField/MetadataField.js +1 -1
  770. package/lib/esm/shared/NotificationItem/NotificationItem.js +1 -1
  771. package/lib/esm/shared/PasswordTextField/index.js +1 -1
  772. package/lib/esm/shared/ProgressBar/index.js +1 -1
  773. package/lib/esm/shared/StickyBox/index.d.ts +4 -4
  774. package/lib/esm/shared/StickyBox/index.js +1 -1
  775. package/lib/esm/shared/Tags/index.js +5 -5
  776. package/lib/esm/shared/UserDeletedSnackBar/UserDeletedSnackBar.js +1 -1
  777. package/lib/esm/shared/UsernameTextField/index.d.ts +1 -1
  778. package/lib/esm/shared/VirtualizedScroller/VirtualScrollerChild.js +1 -1
  779. package/lib/esm/types/composer.d.ts +1 -1
  780. package/lib/esm/utils/events.d.ts +2 -0
  781. package/lib/esm/utils/events.js +6 -0
  782. package/lib/esm/utils/formatRelativeTime.js +2 -2
  783. package/lib/esm/utils/hash.d.ts +2 -1
  784. package/lib/esm/utils/liveStream.d.ts +4 -0
  785. package/lib/esm/utils/liveStream.js +18 -0
  786. package/lib/esm/utils/widget.d.ts +1 -0
  787. package/lib/esm/utils/widget.js +14 -0
  788. package/lib/umd/245.js +1 -0
  789. package/lib/umd/43.js +2 -0
  790. package/lib/umd/react-ui.js +1 -1
  791. package/lib/umd/react-ui.js.LICENSE.txt +2 -0
  792. package/package.json +23 -11
  793. package/lib/cjs/shared/Media/File/Lightbox/index.d.ts +0 -28
  794. package/lib/cjs/shared/Media/File/Lightbox/index.js +0 -37
  795. package/lib/esm/shared/Media/File/Lightbox/index.d.ts +0 -28
  796. package/lib/esm/shared/Media/File/Lightbox/index.js +0 -34
  797. package/lib/umd/99.js +0 -2
  798. /package/lib/umd/{99.js.LICENSE.txt → 43.js.LICENSE.txt} +0 -0
@@ -108,7 +108,7 @@ function Event(inProps) {
108
108
  });
109
109
  const { id = `event_object_${props.eventId ? props.eventId : props.event ? props.event.id : ''}`, eventId = null, event = null, className = null, template = event_1.SCEventTemplateType.SNIPPET, hideInProgress = false, hideEventParticipants = false, hideEventPlanner = false, actions, EventParticipantsButtonComponentProps = {}, EventSkeletonComponentProps = {} } = props, rest = tslib_1.__rest(props, ["id", "eventId", "event", "className", "template", "hideInProgress", "hideEventParticipants", "hideEventPlanner", "actions", "EventParticipantsButtonComponentProps", "EventSkeletonComponentProps"]);
110
110
  // STATE
111
- const { scEvent } = (0, react_core_1.useSCFetchEvent)({ id: eventId, event });
111
+ const { scEvent } = (0, react_core_1.useSCFetchEvent)({ id: eventId, event, autoSubscribe: false });
112
112
  const inProgress = (0, react_1.useMemo)(() => scEvent && scEvent.active && scEvent.running, [scEvent]);
113
113
  // CONTEXT
114
114
  const scRoutingContext = (0, react_core_1.useSCRouting)();
@@ -125,17 +125,17 @@ function Event(inProps) {
125
125
  */
126
126
  let contentObj;
127
127
  if (template === event_1.SCEventTemplateType.DETAIL) {
128
- contentObj = ((0, jsx_runtime_1.jsxs)(DetailRoot, Object.assign({ className: classes.detailRoot }, { children: [(0, jsx_runtime_1.jsxs)(material_1.Box, Object.assign({ className: classes.detailImageWrapper }, { children: [(0, jsx_runtime_1.jsx)(material_1.CardMedia, { component: "img", image: scEvent.image_medium, alt: scEvent.name, className: classes.detailImage }), !hideInProgress && inProgress && ((0, jsx_runtime_1.jsx)(material_1.Chip, { size: "small", component: "div", label: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.event.inProgress", defaultMessage: "ui.event.inProgress" }), className: classes.detailInProgress })), (0, jsx_runtime_1.jsx)(Calendar_1.default, { day: new Date(scEvent.start_date).getDate() })] })), (0, jsx_runtime_1.jsxs)(material_1.CardContent, Object.assign({ className: classes.detailContent }, { children: [scEvent.active ? ((0, jsx_runtime_1.jsx)(react_core_1.Link, Object.assign({ to: scRoutingContext.url(react_core_1.SCRoutes.EVENT_ROUTE_NAME, scEvent), className: classes.detailNameWrapper }, { children: (0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ variant: "h3", className: classes.detailName }, { children: scEvent.name })) }))) : ((0, jsx_runtime_1.jsx)(material_1.Box, Object.assign({ className: classes.detailNameWrapper }, { children: (0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ variant: "h3", className: classes.detailName }, { children: scEvent.name })) }))), (0, jsx_runtime_1.jsx)(EventInfoDetails_1.default, { event: scEvent }), !hideEventPlanner && ((0, jsx_runtime_1.jsx)(User_1.default, { user: scEvent.managed_by, elevation: 0, secondary: (0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ variant: "caption" }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.myEventsWidget.planner", defaultMessage: "ui.myEventsWidget.planner" }) })), actions: (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, {}), className: classes.detailUser })), !hideEventParticipants && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(material_1.Divider, { className: classes.detailFirstDivider }), (0, jsx_runtime_1.jsx)(EventParticipantsButton_1.default, Object.assign({ event: scEvent }, EventParticipantsButtonComponentProps))] })), (0, jsx_runtime_1.jsx)(material_1.Divider, { className: classes.detailSecondDivider })] })), actions !== null && actions !== void 0 ? actions : ((0, jsx_runtime_1.jsx)(material_1.CardActions, Object.assign({ className: classes.detailActions }, { children: (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" }) })) })))] })));
128
+ contentObj = ((0, jsx_runtime_1.jsxs)(DetailRoot, { className: classes.detailRoot, children: [(0, jsx_runtime_1.jsxs)(material_1.Box, { className: classes.detailImageWrapper, children: [(0, jsx_runtime_1.jsx)(material_1.CardMedia, { component: "img", image: scEvent.image_medium, alt: scEvent.name, className: classes.detailImage }), !hideInProgress && inProgress && ((0, jsx_runtime_1.jsx)(material_1.Chip, { size: "small", component: "div", label: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.event.inProgress", defaultMessage: "ui.event.inProgress" }), className: classes.detailInProgress })), (0, jsx_runtime_1.jsx)(Calendar_1.default, { day: new Date(scEvent.start_date).getDate() })] }), (0, jsx_runtime_1.jsxs)(material_1.CardContent, { className: classes.detailContent, children: [scEvent.active ? ((0, jsx_runtime_1.jsx)(react_core_1.Link, { to: scRoutingContext.url(react_core_1.SCRoutes.EVENT_ROUTE_NAME, scEvent), className: classes.detailNameWrapper, children: (0, jsx_runtime_1.jsx)(material_1.Typography, { variant: "h3", className: classes.detailName, children: scEvent.name }) })) : ((0, jsx_runtime_1.jsx)(material_1.Box, { className: classes.detailNameWrapper, children: (0, jsx_runtime_1.jsx)(material_1.Typography, { variant: "h3", className: classes.detailName, children: scEvent.name }) })), (0, jsx_runtime_1.jsx)(EventInfoDetails_1.default, { event: scEvent }), !hideEventPlanner && ((0, jsx_runtime_1.jsx)(User_1.default, { user: scEvent.managed_by, elevation: 0, secondary: (0, jsx_runtime_1.jsx)(material_1.Typography, { variant: "caption", children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.myEventsWidget.planner", defaultMessage: "ui.myEventsWidget.planner" }) }), actions: (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, {}), className: classes.detailUser })), !hideEventParticipants && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(material_1.Divider, { className: classes.detailFirstDivider }), (0, jsx_runtime_1.jsx)(EventParticipantsButton_1.default, Object.assign({ event: scEvent }, EventParticipantsButtonComponentProps))] })), (0, jsx_runtime_1.jsx)(material_1.Divider, { className: classes.detailSecondDivider })] }), actions !== null && actions !== void 0 ? actions : ((0, jsx_runtime_1.jsx)(material_1.CardActions, { className: classes.detailActions, children: (0, jsx_runtime_1.jsx)(material_1.Button, { 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" }) }) }))] }));
129
129
  }
130
130
  else if (template === event_1.SCEventTemplateType.PREVIEW) {
131
- contentObj = ((0, jsx_runtime_1.jsxs)(PreviewRoot, Object.assign({ className: classes.previewRoot }, { children: [(0, jsx_runtime_1.jsxs)(material_1.Box, Object.assign({ position: "relative", className: classes.previewImageWrapper }, { children: [(0, jsx_runtime_1.jsx)(material_1.CardMedia, { component: "img", image: scEvent.image_medium, alt: scEvent.name, className: classes.previewImage }), !hideInProgress && inProgress && ((0, jsx_runtime_1.jsx)(material_1.Chip, { size: "small", component: "div", label: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.event.inProgress", defaultMessage: "ui.event.inProgress" }), className: classes.previewInProgress }))] })), (0, jsx_runtime_1.jsxs)(material_1.CardContent, Object.assign({ className: classes.previewContent }, { children: [(0, jsx_runtime_1.jsx)(EventInfoDetails_1.default, { event: scEvent, hidePrivacyIcon: true, hasLocationInfo: false, beforePrivacyInfo: (0, jsx_runtime_1.jsx)(react_core_1.Link, Object.assign({ to: scRoutingContext.url(react_core_1.SCRoutes.EVENT_ROUTE_NAME, scEvent), className: classes.previewNameWrapper }, { children: (0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ variant: "h5", className: classes.previewName }, { children: scEvent.name })) })) }), !hideEventParticipants && (0, jsx_runtime_1.jsx)(EventParticipantsButton_1.default, Object.assign({ event: scEvent, hideCaption: true }, EventParticipantsButtonComponentProps))] })), actions !== null && actions !== void 0 ? actions : ((0, jsx_runtime_1.jsx)(material_1.CardActions, Object.assign({ className: classes.previewActions }, { children: (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" }) })) })))] })));
131
+ contentObj = ((0, jsx_runtime_1.jsxs)(PreviewRoot, { className: classes.previewRoot, children: [(0, jsx_runtime_1.jsxs)(material_1.Box, { position: "relative", className: classes.previewImageWrapper, children: [(0, jsx_runtime_1.jsx)(material_1.CardMedia, { component: "img", image: scEvent.image_medium, alt: scEvent.name, className: classes.previewImage }), !hideInProgress && inProgress && ((0, jsx_runtime_1.jsx)(material_1.Chip, { size: "small", component: "div", label: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.event.inProgress", defaultMessage: "ui.event.inProgress" }), className: classes.previewInProgress }))] }), (0, jsx_runtime_1.jsxs)(material_1.CardContent, { className: classes.previewContent, children: [(0, jsx_runtime_1.jsx)(EventInfoDetails_1.default, { event: scEvent, hidePrivacyIcon: true, hasLocationInfo: false, beforePrivacyInfo: (0, jsx_runtime_1.jsx)(react_core_1.Link, { to: scRoutingContext.url(react_core_1.SCRoutes.EVENT_ROUTE_NAME, scEvent), className: classes.previewNameWrapper, children: (0, jsx_runtime_1.jsx)(material_1.Typography, { variant: "h5", className: classes.previewName, children: scEvent.name }) }) }), !hideEventParticipants && (0, jsx_runtime_1.jsx)(EventParticipantsButton_1.default, Object.assign({ event: scEvent, hideCaption: true }, EventParticipantsButtonComponentProps))] }), actions !== null && actions !== void 0 ? actions : ((0, jsx_runtime_1.jsx)(material_1.CardActions, { className: classes.previewActions, children: (0, jsx_runtime_1.jsx)(material_1.Button, { 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" }) }) }))] }));
132
132
  }
133
133
  else {
134
- contentObj = ((0, jsx_runtime_1.jsx)(SnippetRoot, { elevation: 0, square: true, disableTypography: true, className: classes.snippetRoot, image: (0, jsx_runtime_1.jsxs)(material_1.Box, Object.assign({ className: classes.snippetImage }, { children: [(0, jsx_runtime_1.jsx)(material_1.Avatar, { variant: "square", alt: scEvent.name, src: scEvent.image_medium, className: classes.snippetAvatar }), ' ', !hideInProgress && inProgress && ((0, jsx_runtime_1.jsx)(material_1.Chip, { size: "small", component: "div", label: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.event.inProgress", defaultMessage: "ui.event.inProgress" }), className: classes.snippetInProgress }))] })), primary: (0, jsx_runtime_1.jsxs)(react_core_1.Link, Object.assign({ to: scRoutingContext.url(react_core_1.SCRoutes.EVENT_ROUTE_NAME, scEvent), className: classes.snippetPrimary }, { children: [(0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ component: "span" }, { children: `${intl.formatDate(scEvent.start_date, {
134
+ contentObj = ((0, jsx_runtime_1.jsx)(SnippetRoot, { elevation: 0, square: true, disableTypography: true, className: classes.snippetRoot, image: (0, jsx_runtime_1.jsxs)(material_1.Box, { className: classes.snippetImage, children: [(0, jsx_runtime_1.jsx)(material_1.Avatar, { variant: "square", alt: scEvent.name, src: scEvent.image_medium, className: classes.snippetAvatar }), ' ', !hideInProgress && inProgress && ((0, jsx_runtime_1.jsx)(material_1.Chip, { size: "small", component: "div", label: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.event.inProgress", defaultMessage: "ui.event.inProgress" }), className: classes.snippetInProgress }))] }), primary: (0, jsx_runtime_1.jsxs)(react_core_1.Link, { to: scRoutingContext.url(react_core_1.SCRoutes.EVENT_ROUTE_NAME, scEvent), className: classes.snippetPrimary, children: [(0, jsx_runtime_1.jsx)(material_1.Typography, { component: "span", children: `${intl.formatDate(scEvent.start_date, {
135
135
  weekday: 'long',
136
136
  month: 'long',
137
137
  day: 'numeric'
138
- })}` })), (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.snippetSecondary }, { 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: actions !== null && actions !== void 0 ? actions : ((0, jsx_runtime_1.jsx)(material_1.Box, Object.assign({ className: classes.snippetActions }, { children: (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" }) })) }))) }));
138
+ })}` }), (0, jsx_runtime_1.jsx)(material_1.Typography, { variant: "body1", children: scEvent.name })] }), secondary: (0, jsx_runtime_1.jsxs)(material_1.Typography, { component: "p", variant: "body2", className: classes.snippetSecondary, 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: actions !== null && actions !== void 0 ? actions : ((0, jsx_runtime_1.jsx)(material_1.Box, { className: classes.snippetActions, children: (0, jsx_runtime_1.jsx)(material_1.Button, { 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" }) }) })) }));
139
139
  }
140
140
  /**
141
141
  * Renders root object
@@ -79,13 +79,13 @@ function EventSkeleton(inProps) {
79
79
  */
80
80
  let contentObj;
81
81
  if (template === event_1.SCEventTemplateType.DETAIL) {
82
- contentObj = ((0, jsx_runtime_1.jsxs)(SkeletonDetailRoot, Object.assign({ className: classes.skeletonDetailRoot }, { children: [(0, jsx_runtime_1.jsxs)(material_1.Box, Object.assign({ position: "relative" }, { children: [(0, jsx_runtime_1.jsx)(Skeleton_1.default, { variant: "rectangular", animation: skeletonsAnimation, width: "100%", height: "170px" }), (0, jsx_runtime_1.jsx)(Skeleton_1.default, { className: classes.skeletonDetailCalendar, variant: "rounded", animation: skeletonsAnimation, width: "60px", height: "60px" })] })), (0, jsx_runtime_1.jsxs)(material_1.CardContent, Object.assign({ className: classes.skeletonDetailContent }, { children: [(0, jsx_runtime_1.jsx)(Skeleton_1.default, { animation: skeletonsAnimation, width: "36%", height: "40px" }), (0, jsx_runtime_1.jsxs)(material_1.Stack, Object.assign({ direction: "row", alignItems: "center", gap: "8px", marginBottom: "9px" }, { children: [(0, jsx_runtime_1.jsx)(Skeleton_1.default, { animation: skeletonsAnimation, variant: "circular", width: "21px", height: "21px" }), (0, jsx_runtime_1.jsx)(Skeleton_1.default, { animation: skeletonsAnimation, width: "50%", height: "20px" })] })), (0, jsx_runtime_1.jsxs)(material_1.Stack, Object.assign({ direction: "row", alignItems: "center", gap: "8px", marginBottom: "9px" }, { children: [(0, jsx_runtime_1.jsx)(Skeleton_1.default, { animation: skeletonsAnimation, variant: "circular", width: "21px", height: "21px" }), (0, jsx_runtime_1.jsx)(Skeleton_1.default, { animation: skeletonsAnimation, width: "35%", height: "20px" })] })), (0, jsx_runtime_1.jsxs)(material_1.Stack, Object.assign({ direction: "row", alignItems: "center", gap: "8px", marginBottom: "14px" }, { children: [(0, jsx_runtime_1.jsx)(Skeleton_1.default, { animation: skeletonsAnimation, variant: "circular", width: "21px", height: "21px" }), (0, jsx_runtime_1.jsx)(Skeleton_1.default, { animation: skeletonsAnimation, width: "27%", height: "20px" })] })), (0, jsx_runtime_1.jsxs)(material_1.Stack, Object.assign({ direction: "row", gap: "8px", className: classes.skeletonDetailUser }, { children: [(0, jsx_runtime_1.jsx)(Skeleton_1.default, { animation: skeletonsAnimation, variant: "circular", width: "36px", height: "36px" }), (0, jsx_runtime_1.jsxs)(material_1.Stack, Object.assign({ gap: "1px" }, { children: [(0, jsx_runtime_1.jsx)(Skeleton_1.default, { animation: skeletonsAnimation, width: "75px", height: "15px" }), (0, jsx_runtime_1.jsx)(Skeleton_1.default, { animation: skeletonsAnimation, width: "86px", height: "16px" })] }))] })), (0, jsx_runtime_1.jsx)(material_1.Divider, { className: classes.skeletonDetailFirstDivider }), (0, jsx_runtime_1.jsxs)(material_1.Stack, Object.assign({ direction: "row", gap: "8px", alignItems: "center", height: "28px" }, { children: [(0, jsx_runtime_1.jsx)(Skeleton_1.default, { animation: skeletonsAnimation, width: "68px", height: "20px" }), (0, jsx_runtime_1.jsxs)(material_1.AvatarGroup, { children: [(0, jsx_runtime_1.jsx)(Skeleton_1.default, { animation: skeletonsAnimation, variant: "circular", width: "21px", height: "21px" }), (0, jsx_runtime_1.jsx)(Skeleton_1.default, { animation: skeletonsAnimation, variant: "circular", width: "21px", height: "21px" }), (0, jsx_runtime_1.jsx)(Skeleton_1.default, { animation: skeletonsAnimation, variant: "circular", width: "21px", height: "21px" }), (0, jsx_runtime_1.jsx)(Skeleton_1.default, { animation: skeletonsAnimation, variant: "circular", width: "21px", height: "21px" })] })] })), (0, jsx_runtime_1.jsx)(material_1.Divider, { className: classes.skeletonDetailSecondDivider })] })), (0, jsx_runtime_1.jsx)(material_1.CardActions, Object.assign({ className: classes.skeletonDetailActions }, { children: actions !== undefined ? actions : (0, jsx_runtime_1.jsx)(Skeleton_1.default, { variant: "rounded", width: 100, height: 30 }) }))] })));
82
+ contentObj = ((0, jsx_runtime_1.jsxs)(SkeletonDetailRoot, { className: classes.skeletonDetailRoot, children: [(0, jsx_runtime_1.jsxs)(material_1.Box, { position: "relative", children: [(0, jsx_runtime_1.jsx)(Skeleton_1.default, { variant: "rectangular", animation: skeletonsAnimation, width: "100%", height: "170px" }), (0, jsx_runtime_1.jsx)(Skeleton_1.default, { className: classes.skeletonDetailCalendar, variant: "rounded", animation: skeletonsAnimation, width: "60px", height: "60px" })] }), (0, jsx_runtime_1.jsxs)(material_1.CardContent, { className: classes.skeletonDetailContent, children: [(0, jsx_runtime_1.jsx)(Skeleton_1.default, { animation: skeletonsAnimation, width: "36%", height: "40px" }), (0, jsx_runtime_1.jsxs)(material_1.Stack, { direction: "row", alignItems: "center", gap: "8px", marginBottom: "9px", children: [(0, jsx_runtime_1.jsx)(Skeleton_1.default, { animation: skeletonsAnimation, variant: "circular", width: "21px", height: "21px" }), (0, jsx_runtime_1.jsx)(Skeleton_1.default, { animation: skeletonsAnimation, width: "50%", height: "20px" })] }), (0, jsx_runtime_1.jsxs)(material_1.Stack, { direction: "row", alignItems: "center", gap: "8px", marginBottom: "9px", children: [(0, jsx_runtime_1.jsx)(Skeleton_1.default, { animation: skeletonsAnimation, variant: "circular", width: "21px", height: "21px" }), (0, jsx_runtime_1.jsx)(Skeleton_1.default, { animation: skeletonsAnimation, width: "35%", height: "20px" })] }), (0, jsx_runtime_1.jsxs)(material_1.Stack, { direction: "row", alignItems: "center", gap: "8px", marginBottom: "14px", children: [(0, jsx_runtime_1.jsx)(Skeleton_1.default, { animation: skeletonsAnimation, variant: "circular", width: "21px", height: "21px" }), (0, jsx_runtime_1.jsx)(Skeleton_1.default, { animation: skeletonsAnimation, width: "27%", height: "20px" })] }), (0, jsx_runtime_1.jsxs)(material_1.Stack, { direction: "row", gap: "8px", className: classes.skeletonDetailUser, children: [(0, jsx_runtime_1.jsx)(Skeleton_1.default, { animation: skeletonsAnimation, variant: "circular", width: "36px", height: "36px" }), (0, jsx_runtime_1.jsxs)(material_1.Stack, { gap: "1px", children: [(0, jsx_runtime_1.jsx)(Skeleton_1.default, { animation: skeletonsAnimation, width: "75px", height: "15px" }), (0, jsx_runtime_1.jsx)(Skeleton_1.default, { animation: skeletonsAnimation, width: "86px", height: "16px" })] })] }), (0, jsx_runtime_1.jsx)(material_1.Divider, { className: classes.skeletonDetailFirstDivider }), (0, jsx_runtime_1.jsxs)(material_1.Stack, { direction: "row", gap: "8px", alignItems: "center", height: "28px", children: [(0, jsx_runtime_1.jsx)(Skeleton_1.default, { animation: skeletonsAnimation, width: "68px", height: "20px" }), (0, jsx_runtime_1.jsxs)(material_1.AvatarGroup, { children: [(0, jsx_runtime_1.jsx)(Skeleton_1.default, { animation: skeletonsAnimation, variant: "circular", width: "21px", height: "21px" }), (0, jsx_runtime_1.jsx)(Skeleton_1.default, { animation: skeletonsAnimation, variant: "circular", width: "21px", height: "21px" }), (0, jsx_runtime_1.jsx)(Skeleton_1.default, { animation: skeletonsAnimation, variant: "circular", width: "21px", height: "21px" }), (0, jsx_runtime_1.jsx)(Skeleton_1.default, { animation: skeletonsAnimation, variant: "circular", width: "21px", height: "21px" })] })] }), (0, jsx_runtime_1.jsx)(material_1.Divider, { className: classes.skeletonDetailSecondDivider })] }), (0, jsx_runtime_1.jsx)(material_1.CardActions, { className: classes.skeletonDetailActions, children: actions !== undefined ? actions : (0, jsx_runtime_1.jsx)(Skeleton_1.default, { variant: "rounded", width: 100, height: 30 }) })] }));
83
83
  }
84
84
  else if (template === event_1.SCEventTemplateType.PREVIEW) {
85
- contentObj = ((0, jsx_runtime_1.jsxs)(SkeletonPreviewRoot, Object.assign({ className: classes.skeletonPreviewRoot }, { children: [(0, jsx_runtime_1.jsx)(material_1.Box, Object.assign({ position: "relative" }, { children: (0, jsx_runtime_1.jsx)(Skeleton_1.default, { variant: "rectangular", animation: skeletonsAnimation, width: "100%", height: "80px" }) })), (0, jsx_runtime_1.jsxs)(material_1.CardContent, Object.assign({ className: classes.skeletonPreviewContent }, { children: [(0, jsx_runtime_1.jsxs)(material_1.Stack, Object.assign({ direction: "row", alignItems: "center", gap: "8px" }, { children: [(0, jsx_runtime_1.jsx)(Skeleton_1.default, { animation: skeletonsAnimation, variant: "circular", width: "21px", height: "21px" }), (0, jsx_runtime_1.jsx)(Skeleton_1.default, { animation: skeletonsAnimation, width: "50%", height: "20px" })] })), (0, jsx_runtime_1.jsx)(Skeleton_1.default, { animation: skeletonsAnimation, width: "67%", height: "25px", className: classes.skeletonPreviewName }), (0, jsx_runtime_1.jsx)(material_1.Stack, Object.assign({ direction: "row", alignItems: "center", gap: "8px", marginBottom: "2px" }, { children: (0, jsx_runtime_1.jsx)(Skeleton_1.default, { animation: skeletonsAnimation, width: "27%", height: "18px" }) })), (0, jsx_runtime_1.jsx)(material_1.Stack, Object.assign({ direction: "row", gap: "8px", alignItems: "center" }, { children: (0, jsx_runtime_1.jsxs)(material_1.AvatarGroup, { children: [(0, jsx_runtime_1.jsx)(Skeleton_1.default, { animation: skeletonsAnimation, variant: "circular", width: `${theme.selfcommunity.user.avatar.sizeSmall}px`, height: `${theme.selfcommunity.user.avatar.sizeSmall}px` }), (0, jsx_runtime_1.jsx)(Skeleton_1.default, { animation: skeletonsAnimation, variant: "circular", width: `${theme.selfcommunity.user.avatar.sizeSmall}px`, height: `${theme.selfcommunity.user.avatar.sizeSmall}px` }), (0, jsx_runtime_1.jsx)(Skeleton_1.default, { animation: skeletonsAnimation, variant: "circular", width: `${theme.selfcommunity.user.avatar.sizeSmall}px`, height: `${theme.selfcommunity.user.avatar.sizeSmall}px` })] }) }))] })), (0, jsx_runtime_1.jsx)(material_1.CardActions, Object.assign({ className: classes.skeletonPreviewActions }, { children: actions !== undefined ? actions : (0, jsx_runtime_1.jsx)(Skeleton_1.default, { variant: "rounded", width: 100, height: 30 }) }))] })));
85
+ contentObj = ((0, jsx_runtime_1.jsxs)(SkeletonPreviewRoot, { className: classes.skeletonPreviewRoot, children: [(0, jsx_runtime_1.jsx)(material_1.Box, { position: "relative", children: (0, jsx_runtime_1.jsx)(Skeleton_1.default, { variant: "rectangular", animation: skeletonsAnimation, width: "100%", height: "80px" }) }), (0, jsx_runtime_1.jsxs)(material_1.CardContent, { className: classes.skeletonPreviewContent, children: [(0, jsx_runtime_1.jsxs)(material_1.Stack, { direction: "row", alignItems: "center", gap: "8px", children: [(0, jsx_runtime_1.jsx)(Skeleton_1.default, { animation: skeletonsAnimation, variant: "circular", width: "21px", height: "21px" }), (0, jsx_runtime_1.jsx)(Skeleton_1.default, { animation: skeletonsAnimation, width: "50%", height: "20px" })] }), (0, jsx_runtime_1.jsx)(Skeleton_1.default, { animation: skeletonsAnimation, width: "67%", height: "25px", className: classes.skeletonPreviewName }), (0, jsx_runtime_1.jsx)(material_1.Stack, { direction: "row", alignItems: "center", gap: "8px", marginBottom: "2px", children: (0, jsx_runtime_1.jsx)(Skeleton_1.default, { animation: skeletonsAnimation, width: "27%", height: "18px" }) }), (0, jsx_runtime_1.jsx)(material_1.Stack, { direction: "row", gap: "8px", alignItems: "center", children: (0, jsx_runtime_1.jsxs)(material_1.AvatarGroup, { children: [(0, jsx_runtime_1.jsx)(Skeleton_1.default, { animation: skeletonsAnimation, variant: "circular", width: `${theme.selfcommunity.user.avatar.sizeSmall}px`, height: `${theme.selfcommunity.user.avatar.sizeSmall}px` }), (0, jsx_runtime_1.jsx)(Skeleton_1.default, { animation: skeletonsAnimation, variant: "circular", width: `${theme.selfcommunity.user.avatar.sizeSmall}px`, height: `${theme.selfcommunity.user.avatar.sizeSmall}px` }), (0, jsx_runtime_1.jsx)(Skeleton_1.default, { animation: skeletonsAnimation, variant: "circular", width: `${theme.selfcommunity.user.avatar.sizeSmall}px`, height: `${theme.selfcommunity.user.avatar.sizeSmall}px` })] }) })] }), (0, jsx_runtime_1.jsx)(material_1.CardActions, { className: classes.skeletonPreviewActions, children: actions !== undefined ? actions : (0, jsx_runtime_1.jsx)(Skeleton_1.default, { variant: "rounded", width: 100, height: 30 }) })] }));
86
86
  }
87
87
  else {
88
- contentObj = ((0, jsx_runtime_1.jsx)(SkeletonSnippetRoot, { elevation: 0, square: true, disableTypography: true, className: classes.skeletonSnippetRoot, image: (0, jsx_runtime_1.jsxs)(material_1.Box, Object.assign({ className: classes.skeletonSnippetImage }, { children: [(0, jsx_runtime_1.jsx)(Skeleton_1.default, { animation: skeletonsAnimation, 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: skeletonsAnimation, variant: "rectangular", height: 10, width: "40%", style: { marginBottom: 12 } }), secondary: (0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(Skeleton_1.default, { animation: skeletonsAnimation, variant: "rectangular", height: 10, width: "60%", style: { marginBottom: 10, marginRight: 5 } }), (0, jsx_runtime_1.jsx)(Skeleton_1.default, { animation: skeletonsAnimation, variant: "rectangular", height: 10, width: "35%" })] }), actions: (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: actions !== undefined ? (actions) : ((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: skeletonsAnimation, height: 10, width: 30, style: { marginTop: 5, marginBottom: 5 } }) }))) }) }));
88
+ contentObj = ((0, jsx_runtime_1.jsx)(SkeletonSnippetRoot, { elevation: 0, square: true, disableTypography: true, className: classes.skeletonSnippetRoot, image: (0, jsx_runtime_1.jsxs)(material_1.Box, { className: classes.skeletonSnippetImage, children: [(0, jsx_runtime_1.jsx)(Skeleton_1.default, { animation: skeletonsAnimation, variant: "rectangular", width: 100, height: 60 }), " ", (0, jsx_runtime_1.jsx)(material_1.Icon, { fontSize: "large", children: "CalendarIcon" })] }), primary: (0, jsx_runtime_1.jsx)(Skeleton_1.default, { animation: skeletonsAnimation, variant: "rectangular", height: 10, width: "40%", style: { marginBottom: 12 } }), secondary: (0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(Skeleton_1.default, { animation: skeletonsAnimation, variant: "rectangular", height: 10, width: "60%", style: { marginBottom: 10, marginRight: 5 } }), (0, jsx_runtime_1.jsx)(Skeleton_1.default, { animation: skeletonsAnimation, variant: "rectangular", height: 10, width: "35%" })] }), actions: (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: actions !== undefined ? (actions) : ((0, jsx_runtime_1.jsx)(material_1.Button, { size: "small", variant: "outlined", disabled: true, children: (0, jsx_runtime_1.jsx)(Skeleton_1.default, { animation: skeletonsAnimation, height: 10, width: 30, style: { marginTop: 5, marginBottom: 5 } }) })) }) }));
89
89
  }
90
90
  return ((0, jsx_runtime_1.jsx)(Root, Object.assign({ className: (0, classnames_1.default)(classes.root, className, `${constants_1.PREFIX}-skeleton-${template}`) }, rest, { children: contentObj })));
91
91
  }
@@ -89,7 +89,7 @@ const EventAutocomplete = (inProps) => {
89
89
  renderOption: (props, option, { inputValue }) => {
90
90
  const matches = (0, match_1.default)(option.name, inputValue);
91
91
  const parts = (0, parse_1.default)(option.name, matches);
92
- return ((0, jsx_runtime_1.jsxs)(material_1.Box, Object.assign({ component: "li" }, props, { children: [(0, jsx_runtime_1.jsx)(material_1.Avatar, { alt: option.name, src: option.image_small, sx: { marginRight: 1 } }), (0, jsx_runtime_1.jsx)(react_1.default.Fragment, { children: parts.map((part, index) => ((0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ sx: { fontWeight: part.highlight ? 700 : 400, marginRight: 0.2 } }, { children: part.text }), index))) })] })));
92
+ return ((0, jsx_runtime_1.jsxs)(material_1.Box, Object.assign({ component: "li" }, props, { children: [(0, jsx_runtime_1.jsx)(material_1.Avatar, { alt: option.name, src: option.image_small, sx: { marginRight: 1 } }), (0, jsx_runtime_1.jsx)(react_1.default.Fragment, { children: parts.map((part, index) => ((0, jsx_runtime_1.jsx)(material_1.Typography, { sx: { fontWeight: part.highlight ? 700 : 400, marginRight: 0.2 }, children: part.text }, index))) })] })));
93
93
  }, renderInput: (params) => {
94
94
  return ((0, jsx_runtime_1.jsx)(TextField_1.default, Object.assign({}, params, TextFieldProps, { margin: "dense", InputProps: Object.assign(Object.assign({}, params.InputProps), { autoComplete: 'events', endAdornment: ((0, jsx_runtime_1.jsxs)(react_1.default.Fragment, { children: [isLoading ? (0, jsx_runtime_1.jsx)(CircularProgress_1.default, { color: "inherit", size: 20 }) : null, params.InputProps.endAdornment] })) }) })));
95
95
  } }, rest)));
@@ -114,8 +114,8 @@ function EventAddress(inProps) {
114
114
  if (!geocodingApiKey && !isLoaded) {
115
115
  return (0, jsx_runtime_1.jsx)(HiddenPlaceholder_1.default, {});
116
116
  }
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, { size: "small", value: geolocation, onChange: handleSelection, inputValue: inputValue, onInputChange: handleLocationChange, options: suggestions, getOptionLabel: (option) => option.description || geolocation.description, noOptionsText: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.eventForm.address.live.noResults", defaultMessage: "ui.eventForm.address.live.noResults" }), isOptionEqualToValue: (option, value) => option.description === value.description, 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: {
117
+ return ((0, jsx_runtime_1.jsxs)(Root, { className: (0, classnames_1.default)(classes.root, className), children: [(0, jsx_runtime_1.jsxs)(material_1.Tabs, { 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, { className: classes.tabContent, children: [location === types_1.SCEventLocationType.PERSON && ((0, jsx_runtime_1.jsx)(material_1.Autocomplete, { size: "small", value: geolocation, onChange: handleSelection, inputValue: inputValue, onInputChange: handleLocationChange, options: suggestions, getOptionLabel: (option) => option.description || geolocation.description, noOptionsText: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.eventForm.address.live.noResults", defaultMessage: "ui.eventForm.address.live.noResults" }), isOptionEqualToValue: (option, value) => option.description === value.description, 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, { 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
118
  endAdornment: (0, jsx_runtime_1.jsx)(Icon_1.default, { children: "play_circle_outline" })
119
- }, onChange: handleLinkChange }))] }))] })));
119
+ }, onChange: handleLinkChange }))] })] }));
120
120
  }
121
121
  exports.default = EventAddress;
@@ -1,21 +1,11 @@
1
+ import { BoxProps } from '@mui/material';
1
2
  import { SCEventType } from '@selfcommunity/types';
2
- import { BaseDialogProps } from '../../shared/BaseDialog';
3
- export interface EventFormProps extends BaseDialogProps {
3
+ export interface EventFormProps extends BoxProps {
4
4
  /**
5
5
  * Overrides or extends the styles applied to the component.
6
6
  * @default null
7
7
  */
8
8
  className?: string;
9
- /**
10
- * Open dialog
11
- * @default true
12
- */
13
- open?: boolean;
14
- /**
15
- * On dialog close callback function
16
- * @default null
17
- */
18
- onClose?: () => void;
19
9
  /**
20
10
  * Event Object
21
11
  * @default null
@@ -26,6 +16,11 @@ export interface EventFormProps extends BaseDialogProps {
26
16
  * @default null
27
17
  */
28
18
  onSuccess?: (data: SCEventType) => void;
19
+ /**
20
+ * On error callback function
21
+ * @default null
22
+ */
23
+ onError?: (error: any) => void;
29
24
  /**
30
25
  * Any other properties
31
26
  */
@@ -21,7 +21,6 @@ const react_intl_1 = require("react-intl");
21
21
  const Errors_1 = require("../../constants/Errors");
22
22
  const Event_1 = require("../../constants/Event");
23
23
  const PubSub_1 = require("../../constants/PubSub");
24
- const BaseDialog_1 = tslib_1.__importDefault(require("../../shared/BaseDialog"));
25
24
  const constants_1 = require("./constants");
26
25
  const EventAddress_1 = tslib_1.__importDefault(require("./EventAddress"));
27
26
  const UploadEventCover_1 = tslib_1.__importDefault(require("./UploadEventCover"));
@@ -74,11 +73,12 @@ const classes = {
74
73
  name: `${constants_1.PREFIX}-name`,
75
74
  description: `${constants_1.PREFIX}-description`,
76
75
  content: `${constants_1.PREFIX}-content`,
76
+ actions: `${constants_1.PREFIX}-actions`,
77
77
  privacySection: `${constants_1.PREFIX}-privacy-section`,
78
78
  privacySectionInfo: `${constants_1.PREFIX}-privacy-section-info`,
79
79
  error: `${constants_1.PREFIX}-error`
80
80
  };
81
- const Root = (0, styles_1.styled)(BaseDialog_1.default, {
81
+ const Root = (0, styles_1.styled)(material_1.Box, {
82
82
  name: constants_1.PREFIX,
83
83
  slot: 'Root'
84
84
  })(() => ({}));
@@ -120,7 +120,7 @@ function EventForm(inProps) {
120
120
  props: inProps,
121
121
  name: constants_1.PREFIX
122
122
  });
123
- const { className, open = true, onClose, onSuccess, event = null } = props, rest = tslib_1.__rest(props, ["className", "open", "onClose", "onSuccess", "event"]);
123
+ const { className, onSuccess, onError, event = null } = props, rest = tslib_1.__rest(props, ["className", "onSuccess", "onError", "event"]);
124
124
  // CONTEXT
125
125
  const scContext = (0, react_core_1.useSCContext)();
126
126
  // INTL
@@ -221,10 +221,9 @@ function EventForm(inProps) {
221
221
  }
222
222
  eventService
223
223
  .then((data) => {
224
- onSuccess === null || onSuccess === void 0 ? void 0 : onSuccess(data);
225
224
  notifyChanges(data);
226
- onClose === null || onClose === void 0 ? void 0 : onClose();
227
225
  setField((prev) => (Object.assign(Object.assign({}, prev), { ['isSubmitting']: false })));
226
+ onSuccess === null || onSuccess === void 0 ? void 0 : onSuccess(data);
228
227
  })
229
228
  .catch((e) => {
230
229
  const _error = (0, api_services_1.formatHttpErrorCode)(e);
@@ -238,8 +237,9 @@ function EventForm(inProps) {
238
237
  }
239
238
  setField((prev) => (Object.assign(Object.assign({}, prev), { ['isSubmitting']: false })));
240
239
  utils_1.Logger.error(Errors_1.SCOPE_SC_UI, e);
240
+ onError === null || onError === void 0 ? void 0 : onError(e);
241
241
  });
242
- }, [field, privateEnabled, visibilityEnabled]);
242
+ }, [field, privateEnabled, visibilityEnabled, onSuccess, onError]);
243
243
  const handleChange = (0, react_1.useCallback)((event) => {
244
244
  const { name, value } = event.target;
245
245
  setField((prev) => (Object.assign(Object.assign({}, prev), { [name]: value })));
@@ -284,56 +284,56 @@ function EventForm(inProps) {
284
284
  /**
285
285
  * Renders root object
286
286
  */
287
- 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 ||
288
- !field.startDate ||
289
- !field.startTime ||
290
- !field.endDate ||
291
- !field.endTime ||
292
- (field.location === types_1.SCEventLocationType.ONLINE && !field.link) ||
293
- (field.location === types_1.SCEventLocationType.PERSON && !field.geolocation) ||
294
- (field.recurring !== types_1.SCEventRecurrenceType.NEVER && !field.endDate && !field.endTime) ||
295
- Object.keys(error).length !== 0 ||
296
- field.name.length > Event_1.EVENT_TITLE_MAX_LENGTH ||
297
- 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: {
298
- endAdornment: (0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ variant: "body2" }, { children: Event_1.EVENT_TITLE_MAX_LENGTH - field.name.length }))
299
- }, error: Boolean(field.name.length > Event_1.EVENT_TITLE_MAX_LENGTH) || Boolean(error['nameError']), helperText: field.name.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: {
300
- 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" }) }) }))) }) })))
301
- }, slotProps: {
302
- toolbar: {
303
- // eslint-disable-next-line @typescript-eslint/ban-ts-ignore,@typescript-eslint/ban-ts-comment
304
- // @ts-ignore
305
- toolbarTitle: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.eventForm.date.title", defaultMessage: "ui.eventForm.date.title" })
306
- }
307
- }, onChange: (value) => handleChangeDateTime(value, 'startDate') }), (0, jsx_runtime_1.jsx)(x_date_pickers_1.MobileTimePicker, { className: classes.picker, disablePast: disablePastStartTime, 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: {
308
- 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" }) }) }))) }) })))
309
- }, slotProps: {
310
- toolbar: {
311
- // eslint-disable-next-line @typescript-eslint/ban-ts-ignore,@typescript-eslint/ban-ts-comment
312
- // @ts-ignore
313
- toolbarTitle: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.eventForm.time.title", defaultMessage: "ui.eventForm.time.title" })
314
- }
315
- }, 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) => {
316
- if (!selected) {
317
- return (0, jsx_runtime_1.jsx)("em", { children: `${intl.formatMessage(messages.frequencyPlaceholder)}` });
318
- }
319
- return ((0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: `ui.eventForm.frequency.${selected}.placeholder`, defaultMessage: `ui.eventForm.frequency.${selected}.placeholder` }));
320
- }, 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))) }))] })), (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, minDate: field.startDate, label: (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: {
321
- 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" }) }) }))) }) })))
322
- }, onChange: (value) => handleChangeDateTime(value, 'endDate'), shouldDisableDate: shouldDisabledDate }), (0, jsx_runtime_1.jsx)(x_date_pickers_1.MobileTimePicker, { className: classes.picker, disablePast: disablePastEndTime, 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: {
323
- textField: (params) => {
324
- var _a;
325
- return ((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" }) }) }))) }), error: Boolean(error['endDateError']), helperText: ((_a = error['endDateError']) === null || _a === void 0 ? void 0 : _a.error) ? ((0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.eventForm.time.end.error.invalid", defaultMessage: "ui.eventForm.time.end.error.invalid" })) : null })));
326
- }
327
- }, onChange: (value) => handleChangeDateTime(value, 'endTime'), shouldDisableTime: shouldDisabledTime })] })) })), (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 }))), disabled: event && !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: {
328
- // eslint-disable-next-line @typescript-eslint/ban-ts-ignore
287
+ return ((0, jsx_runtime_1.jsxs)(Root, Object.assign({ className: (0, classnames_1.default)(classes.root, className) }, rest, { children: [(0, jsx_runtime_1.jsx)(material_1.Paper, { 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, { 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: {
288
+ endAdornment: (0, jsx_runtime_1.jsx)(material_1.Typography, { variant: "body2", children: Event_1.EVENT_TITLE_MAX_LENGTH - field.name.length })
289
+ }, error: Boolean(field.name.length > Event_1.EVENT_TITLE_MAX_LENGTH) || Boolean(error['nameError']), helperText: field.name.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, { className: classes.dateTime, children: (0, jsx_runtime_1.jsxs)(x_date_pickers_1.LocalizationProvider, { 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: {
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.startDate)}`, startAdornment: ((0, jsx_runtime_1.jsx)(material_1.InputAdornment, { position: "start", children: (0, jsx_runtime_1.jsx)(material_1.IconButton, { children: (0, jsx_runtime_1.jsx)(material_1.Icon, { children: "CalendarIcon" }) }) })) }) })))
291
+ }, slotProps: {
292
+ toolbar: {
293
+ // eslint-disable-next-line @typescript-eslint/ban-ts-ignore,@typescript-eslint/ban-ts-comment
329
294
  // @ts-ignore
330
- b: (chunks) => (0, jsx_runtime_1.jsx)("strong", { children: chunks })
331
- } })) : ((0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.eventForm.privacy.private.info", defaultMessage: "ui.eventForm.private.public.info", values: {
332
- // eslint-disable-next-line @typescript-eslint/ban-ts-ignore
295
+ toolbarTitle: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.eventForm.date.title", defaultMessage: "ui.eventForm.date.title" })
296
+ }
297
+ }, onChange: (value) => handleChangeDateTime(value, 'startDate') }), (0, jsx_runtime_1.jsx)(x_date_pickers_1.MobileTimePicker, { className: classes.picker, disablePast: disablePastStartTime, 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: {
298
+ 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, { position: "start", children: (0, jsx_runtime_1.jsx)(material_1.IconButton, { children: (0, jsx_runtime_1.jsx)(material_1.Icon, { children: "access_time" }) }) })) }) })))
299
+ }, slotProps: {
300
+ toolbar: {
301
+ // eslint-disable-next-line @typescript-eslint/ban-ts-ignore,@typescript-eslint/ban-ts-comment
333
302
  // @ts-ignore
334
- b: (chunks) => (0, jsx_runtime_1.jsx)("strong", { children: chunks })
335
- } })) }))] }))), (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: {
336
- endAdornment: ((0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ variant: "body2" }, { children: ((_b = field.description) === null || _b === void 0 ? void 0 : _b.length) ? Event_1.EVENT_DESCRIPTION_MAX_LENGTH - field.description.length : Event_1.EVENT_DESCRIPTION_MAX_LENGTH })))
337
- }, error: Boolean(((_c = field.description) === null || _c === void 0 ? void 0 : _c.length) > Event_1.EVENT_DESCRIPTION_MAX_LENGTH), helperText: ((_d = field.description) === null || _d === void 0 ? void 0 : _d.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 })] }))] }) })));
303
+ toolbarTitle: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.eventForm.time.title", defaultMessage: "ui.eventForm.time.title" })
304
+ }
305
+ }, onChange: (value) => handleChangeDateTime(value, 'startTime') })] }) }), (0, jsx_runtime_1.jsxs)(material_1.FormControl, { className: classes.frequency, children: [field.recurring !== types_1.SCEventRecurrenceType.NEVER && (0, jsx_runtime_1.jsx)(material_1.InputLabel, { id: "recurring", children: `${intl.formatMessage(messages.frequency)}` }), (0, jsx_runtime_1.jsx)(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) => {
306
+ if (!selected) {
307
+ return (0, jsx_runtime_1.jsx)("em", { children: `${intl.formatMessage(messages.frequencyPlaceholder)}` });
308
+ }
309
+ return ((0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: `ui.eventForm.frequency.${selected}.placeholder`, defaultMessage: `ui.eventForm.frequency.${selected}.placeholder` }));
310
+ }, startAdornment: (0, jsx_runtime_1.jsx)(material_1.InputAdornment, { 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, { 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))) })] }), (0, jsx_runtime_1.jsx)(material_1.Box, { className: classes.dateTime, children: (0, jsx_runtime_1.jsxs)(x_date_pickers_1.LocalizationProvider, { 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, minDate: field.startDate, label: (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: {
311
+ 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, { position: "start", children: (0, jsx_runtime_1.jsx)(material_1.IconButton, { children: (0, jsx_runtime_1.jsx)(material_1.Icon, { children: "calendar_off" }) }) })) }) })))
312
+ }, onChange: (value) => handleChangeDateTime(value, 'endDate'), shouldDisableDate: shouldDisabledDate }), (0, jsx_runtime_1.jsx)(x_date_pickers_1.MobileTimePicker, { className: classes.picker, disablePast: disablePastEndTime, 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: {
313
+ textField: (params) => {
314
+ var _a;
315
+ return ((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, { position: "start", children: (0, jsx_runtime_1.jsx)(material_1.IconButton, { children: (0, jsx_runtime_1.jsx)(material_1.Icon, { children: "access_time" }) }) })) }), error: Boolean(error['endDateError']), helperText: ((_a = error['endDateError']) === null || _a === void 0 ? void 0 : _a.error) ? ((0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.eventForm.time.end.error.invalid", defaultMessage: "ui.eventForm.time.end.error.invalid" })) : null })));
316
+ }
317
+ }, onChange: (value) => handleChangeDateTime(value, 'endTime'), shouldDisableTime: shouldDisabledTime })] }) }), (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, { className: classes.privacySection, children: [(0, jsx_runtime_1.jsxs)(material_1.Stack, { direction: "row", spacing: 1, alignItems: "center", justifyContent: "center", children: [(0, jsx_runtime_1.jsxs)(material_1.Typography, { 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 }))), disabled: event && !field.isPublic }), (0, jsx_runtime_1.jsxs)(material_1.Typography, { 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, { 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: {
318
+ // eslint-disable-next-line @typescript-eslint/ban-ts-ignore
319
+ // @ts-ignore
320
+ b: (chunks) => (0, jsx_runtime_1.jsx)("strong", { children: chunks })
321
+ } })) : ((0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.eventForm.privacy.private.info", defaultMessage: "ui.eventForm.private.public.info", values: {
322
+ // eslint-disable-next-line @typescript-eslint/ban-ts-ignore
323
+ // @ts-ignore
324
+ b: (chunks) => (0, jsx_runtime_1.jsx)("strong", { children: chunks })
325
+ } })) })] })), (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: {
326
+ endAdornment: ((0, jsx_runtime_1.jsx)(material_1.Typography, { variant: "body2", children: ((_b = field.description) === null || _b === void 0 ? void 0 : _b.length) ? Event_1.EVENT_DESCRIPTION_MAX_LENGTH - field.description.length : Event_1.EVENT_DESCRIPTION_MAX_LENGTH }))
327
+ }, error: Boolean(((_c = field.description) === null || _c === void 0 ? void 0 : _c.length) > Event_1.EVENT_DESCRIPTION_MAX_LENGTH), helperText: ((_d = field.description) === null || _d === void 0 ? void 0 : _d.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 }), (0, jsx_runtime_1.jsx)(material_1.Box, { className: classes.actions, children: (0, jsx_runtime_1.jsx)(lab_1.LoadingButton, { loading: field.isSubmitting, disabled: !field.name ||
328
+ !field.startDate ||
329
+ !field.startTime ||
330
+ !field.endDate ||
331
+ !field.endTime ||
332
+ (field.location === types_1.SCEventLocationType.ONLINE && !field.link) ||
333
+ (field.location === types_1.SCEventLocationType.PERSON && !field.geolocation) ||
334
+ (field.recurring !== types_1.SCEventRecurrenceType.NEVER && !field.endDate && !field.endTime) ||
335
+ Object.keys(error).length !== 0 ||
336
+ field.name.length > Event_1.EVENT_TITLE_MAX_LENGTH ||
337
+ 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" })) }) })] })] })));
338
338
  }
339
339
  exports.default = EventForm;
@@ -116,7 +116,7 @@ function UploadEventCover(inProps) {
116
116
  * If there is an error
117
117
  */
118
118
  if (alert) {
119
- return ((0, jsx_runtime_1.jsx)(material_1.Alert, Object.assign({ color: "error", onClose: () => setAlert(null) }, { children: alert })));
119
+ return ((0, jsx_runtime_1.jsx)(material_1.Alert, { color: "error", onClose: () => setAlert(null), children: alert }));
120
120
  }
121
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" }) }))] }));
122
122
  }
@@ -1,16 +1,16 @@
1
1
  import { SCEventLocationType, SCEventRecurrenceType } from '@selfcommunity/types';
2
- export declare type Place = {
2
+ export type Place = {
3
3
  description: string;
4
4
  id?: string;
5
5
  };
6
- export declare type Geolocation = {
6
+ export type Geolocation = {
7
7
  location: SCEventLocationType;
8
8
  geolocation?: string;
9
9
  lat?: number;
10
10
  lng?: number;
11
11
  link?: string;
12
12
  };
13
- export declare type InitialFieldState = Geolocation & {
13
+ export type InitialFieldState = Geolocation & {
14
14
  imageOriginal: string | ArrayBuffer;
15
15
  imageOriginalFile: string | Blob;
16
16
  startDate: Date | null;
@@ -23,5 +23,5 @@ export declare type InitialFieldState = Geolocation & {
23
23
  isPublic: boolean;
24
24
  isSubmitting: boolean;
25
25
  };
26
- export declare type FieldStateKeys = keyof InitialFieldState;
27
- export declare type FieldStateValues = InitialFieldState[FieldStateKeys];
26
+ export type FieldStateKeys = keyof InitialFieldState;
27
+ export type FieldStateValues = InitialFieldState[FieldStateKeys];
@@ -0,0 +1,48 @@
1
+ import { BaseDialogProps } from '../../shared/BaseDialog';
2
+ import { EventFormProps } from '../EventForm';
3
+ export interface EventFormDialogProps extends BaseDialogProps {
4
+ /**
5
+ * Overrides or extends the styles applied to the component.
6
+ * @default null
7
+ */
8
+ className?: string;
9
+ /**
10
+ * Open dialog
11
+ * @default true
12
+ */
13
+ open?: boolean;
14
+ /**
15
+ * On dialog close callback function
16
+ * @default null
17
+ */
18
+ onClose?: () => void;
19
+ /**
20
+ * Props to spread to EventForm component
21
+ * @default {}
22
+ */
23
+ EventFormComponentProps?: EventFormProps;
24
+ /**
25
+ * Any other properties
26
+ */
27
+ [p: string]: any;
28
+ }
29
+ /**
30
+ *> API documentation for the Community-JS EventFormDialog component. Learn about the available props and the CSS API.
31
+ *
32
+ #### Import
33
+ ```jsx
34
+ import {EventFormDialog} from '@selfcommunity/react-ui';
35
+ ```
36
+
37
+ #### Component Name
38
+ The name `SCEventFormDialog` can be used when providing style overrides in the theme.
39
+
40
+ #### CSS
41
+
42
+ |Rule Name|Global class|Description|
43
+ |---|---|---|
44
+ |root|.SCEventFormDialog-root|Styles applied to the root element.|
45
+
46
+ * @param inProps
47
+ */
48
+ export default function EventFormDialog(inProps: EventFormDialogProps): JSX.Element;
@@ -0,0 +1,56 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ const jsx_runtime_1 = require("react/jsx-runtime");
5
+ const styles_1 = require("@mui/material/styles");
6
+ const system_1 = require("@mui/system");
7
+ const classnames_1 = tslib_1.__importDefault(require("classnames"));
8
+ const react_intl_1 = require("react-intl");
9
+ const BaseDialog_1 = tslib_1.__importDefault(require("../../shared/BaseDialog"));
10
+ const constants_1 = require("./constants");
11
+ const EventForm_1 = tslib_1.__importDefault(require("../EventForm"));
12
+ const react_1 = require("react");
13
+ const classes = {
14
+ root: `${constants_1.PREFIX}-root`
15
+ };
16
+ const Root = (0, styles_1.styled)(BaseDialog_1.default, {
17
+ name: constants_1.PREFIX,
18
+ slot: 'Root'
19
+ })(() => ({}));
20
+ /**
21
+ *> API documentation for the Community-JS EventFormDialog component. Learn about the available props and the CSS API.
22
+ *
23
+ #### Import
24
+ ```jsx
25
+ import {EventFormDialog} from '@selfcommunity/react-ui';
26
+ ```
27
+
28
+ #### Component Name
29
+ The name `SCEventFormDialog` can be used when providing style overrides in the theme.
30
+
31
+ #### CSS
32
+
33
+ |Rule Name|Global class|Description|
34
+ |---|---|---|
35
+ |root|.SCEventFormDialog-root|Styles applied to the root element.|
36
+
37
+ * @param inProps
38
+ */
39
+ function EventFormDialog(inProps) {
40
+ //PROPS
41
+ const props = (0, system_1.useThemeProps)({
42
+ props: inProps,
43
+ name: constants_1.PREFIX
44
+ });
45
+ const { className, open = true, onClose, EventFormComponentProps = {} } = props, rest = tslib_1.__rest(props, ["className", "open", "onClose", "EventFormComponentProps"]);
46
+ const handleSuccess = (0, react_1.useCallback)((event) => {
47
+ var _a;
48
+ (_a = EventFormComponentProps.onSuccess) === null || _a === void 0 ? void 0 : _a.call(EventFormComponentProps, event);
49
+ onClose === null || onClose === void 0 ? void 0 : onClose();
50
+ }, [onClose, EventFormComponentProps]);
51
+ /**
52
+ * Renders root object
53
+ */
54
+ return ((0, jsx_runtime_1.jsx)(Root, Object.assign({ DialogContentProps: { dividers: false }, title: (EventFormComponentProps === null || EventFormComponentProps === void 0 ? void 0 : EventFormComponentProps.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) }, rest, { children: (0, jsx_runtime_1.jsx)(EventForm_1.default, Object.assign({}, EventFormComponentProps, { onSuccess: handleSuccess })) })));
55
+ }
56
+ exports.default = EventFormDialog;
@@ -0,0 +1 @@
1
+ export declare const PREFIX = "SCEventFormDialog";
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PREFIX = void 0;
4
+ exports.PREFIX = 'SCEventFormDialog';
@@ -0,0 +1,3 @@
1
+ import EventFormDialog, { EventFormDialogProps } from './EventFormDialog';
2
+ export default EventFormDialog;
3
+ export { EventFormDialogProps };
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ const EventFormDialog_1 = tslib_1.__importDefault(require("./EventFormDialog"));
5
+ exports.default = EventFormDialog_1.default;