@selfcommunity/react-ui 0.11.0-react-17.0.1.3 → 1.0.0-alpha.1

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 (478) hide show
  1. package/lib/cjs/components/AcceptRequestUserEventButton/AcceptRequestUserEventButton.js +1 -2
  2. package/lib/cjs/components/AcceptRequestUserGroupButton/AcceptRequestUserGroupButton.js +1 -2
  3. package/lib/cjs/components/AccountDataPortability/AccountDataPortability.js +6 -11
  4. package/lib/cjs/components/AccountDelete/AccountDelete.js +5 -12
  5. package/lib/cjs/components/AccountRecover/AccountRecover.js +2 -4
  6. package/lib/cjs/components/BroadcastMessages/Message.js +1 -1
  7. package/lib/cjs/components/BuyButton/BuyButton.js +8 -5
  8. package/lib/cjs/components/Categories/Categories.js +1 -1
  9. package/lib/cjs/components/Categories/Skeleton.js +1 -1
  10. package/lib/cjs/components/Categories/prefetchedCategories.js +115 -115
  11. package/lib/cjs/components/CategoryAutocomplete/CategoryAutocomplete.js +13 -4
  12. package/lib/cjs/components/CategoryFollowButton/CategoryFollowButton.js +3 -4
  13. package/lib/cjs/components/ChangeCover/ChangeCover.js +2 -6
  14. package/lib/cjs/components/ChangeGroupCover/ChangeGroupCover.js +1 -2
  15. package/lib/cjs/components/ChangeGroupPicture/ChangeGroupPicture.js +1 -2
  16. package/lib/cjs/components/ChangePicture/ChangePictureDialog/ChangePictureDialog.js +4 -8
  17. package/lib/cjs/components/Checkout/Skeleton.js +1 -3
  18. package/lib/cjs/components/CheckoutReturnDialog/CheckoutReturnDialog.js +10 -10
  19. package/lib/cjs/components/CommentObjectReply/CommentObjectReply.js +2 -3
  20. package/lib/cjs/components/CommentsFeedObject/CommentsFeedObject.js +2 -2
  21. package/lib/cjs/components/CommunityPaywalls/CommunityPaywalls.js +3 -4
  22. package/lib/cjs/components/CommunityPaywalls/Skeleton.d.ts +3 -3
  23. package/lib/cjs/components/CommunityPaywalls/Skeleton.js +2 -3
  24. package/lib/cjs/components/Composer/Composer.js +3 -4
  25. package/lib/cjs/components/Composer/Content/ContentDiscussion/ContentDiscussion.js +5 -3
  26. package/lib/cjs/components/Composer/Content/ContentLesson/ContentLesson.js +2 -2
  27. package/lib/cjs/components/Composer/Content/ContentPoll/ContentPoll.js +13 -9
  28. package/lib/cjs/components/Composer/Content/ContentPost/ContentPost.js +2 -2
  29. package/lib/cjs/components/Composer/Layer/AudienceLayer/AudienceLayer.js +11 -5
  30. package/lib/cjs/components/Composer/Layer/ScheduledLayer/ScheduledLayer.js +6 -6
  31. package/lib/cjs/components/ConsentSolution/ConsentSolution.js +12 -5
  32. package/lib/cjs/components/ConsentSolution/Skeleton.js +1 -1
  33. package/lib/cjs/components/CourseCompletedDialog/CourseCompletedDialog.js +1 -1
  34. package/lib/cjs/components/CourseDashboard/Student/ActionButton.d.ts +1 -2
  35. package/lib/cjs/components/CourseDashboard/Student/ActionButton.js +1 -2
  36. package/lib/cjs/components/CourseDashboard/Teacher/Comments.js +1 -2
  37. package/lib/cjs/components/CourseForm/CourseForm.js +9 -6
  38. package/lib/cjs/components/CourseForm/Edit.js +6 -2
  39. package/lib/cjs/components/CourseForm/UploadCourseCover.js +1 -2
  40. package/lib/cjs/components/CourseJoinButton/CourseJoinButton.js +3 -4
  41. package/lib/cjs/components/Courses/Courses.d.ts +0 -4
  42. package/lib/cjs/components/Courses/Courses.js +10 -11
  43. package/lib/cjs/components/Courses/Skeleton.js +1 -1
  44. package/lib/cjs/components/CreateLiveStreamDialog/CreateLiveStreamDialog.js +7 -1
  45. package/lib/cjs/components/CreateLiveStreamDialog/LiveStreamSelector/LiveStreamSelector.js +5 -8
  46. package/lib/cjs/components/CreatePaymentProductForm/CreatePaymentProductForm.js +6 -5
  47. package/lib/cjs/components/CustomAdv/Skeleton.js +1 -1
  48. package/lib/cjs/components/EditCourse/Lessons/ChangeLessonStatus.js +2 -3
  49. package/lib/cjs/components/EditCourse/Lessons/FieldName.js +1 -2
  50. package/lib/cjs/components/EditCourse/Options.js +1 -2
  51. package/lib/cjs/components/EditCourse/Status.js +1 -1
  52. package/lib/cjs/components/Editor/Editor.js +3 -3
  53. package/lib/cjs/components/Editor/plugins/EmojiPlugin.js +4 -2
  54. package/lib/cjs/components/Editor/plugins/FloatingLinkPlugin.js +6 -4
  55. package/lib/cjs/components/Event/Skeleton.js +1 -2
  56. package/lib/cjs/components/EventAutocomplete/EventAutocomplete.js +7 -4
  57. package/lib/cjs/components/EventForm/EventAddress.js +9 -5
  58. package/lib/cjs/components/EventForm/EventForm.js +89 -51
  59. package/lib/cjs/components/EventForm/UploadEventCover.js +1 -2
  60. package/lib/cjs/components/EventInfoWidget/index.d.ts +1 -1
  61. package/lib/cjs/components/EventInviteButton/EventInviteButton.js +3 -2
  62. package/lib/cjs/components/EventLocationWidget/EventLocationWidget.js +5 -16
  63. package/lib/cjs/components/EventLocationWidget/EventMap.d.ts +8 -0
  64. package/lib/cjs/components/EventLocationWidget/EventMap.js +28 -0
  65. package/lib/cjs/components/EventLocationWidget/Skeleton.js +1 -1
  66. package/lib/cjs/components/EventMediaWidget/EventMediaWidget.js +1 -2
  67. package/lib/cjs/components/EventMediaWidget/TriggerButton.d.ts +2 -2
  68. package/lib/cjs/components/EventMediaWidget/TriggerButton.js +1 -2
  69. package/lib/cjs/components/EventMediaWidget/index.d.ts +2 -1
  70. package/lib/cjs/components/EventMembersWidget/index.d.ts +1 -1
  71. package/lib/cjs/components/EventSubscribeButton/EventSubscribeButton.js +11 -4
  72. package/lib/cjs/components/Events/Events.d.ts +0 -4
  73. package/lib/cjs/components/Events/Events.js +14 -9
  74. package/lib/cjs/components/Events/LocationEventsFilter.js +5 -1
  75. package/lib/cjs/components/Events/OngoingEventsFilter.js +6 -2
  76. package/lib/cjs/components/Events/PastEventsFilter.js +6 -2
  77. package/lib/cjs/components/Events/Skeleton.js +1 -1
  78. package/lib/cjs/components/Feed/Feed.js +9 -10
  79. package/lib/cjs/components/Feed/Skeleton.js +1 -1
  80. package/lib/cjs/components/FeedObject/Actions/Actions.js +2 -3
  81. package/lib/cjs/components/FeedObject/Actions/Comment/Comment.js +2 -2
  82. package/lib/cjs/components/FeedObject/Actions/Follow/Follow.js +2 -3
  83. package/lib/cjs/components/FeedObject/Actions/Share/Share.js +1 -2
  84. package/lib/cjs/components/FeedObject/Activities/ActivitiesMenu/ActivitiesMenu.js +20 -18
  85. package/lib/cjs/components/FeedObject/Activities/RelevantActivities/CommentActivity/CommentActivity.js +1 -1
  86. package/lib/cjs/components/FeedObject/Activities/RelevantActivities/RelevantActivities.js +1 -1
  87. package/lib/cjs/components/FeedObject/Contributors/Contributors.js +1 -1
  88. package/lib/cjs/components/FeedObject/Contributors/Skeleton.js +1 -1
  89. package/lib/cjs/components/FeedObject/Poll/Choice/Choice.js +1 -2
  90. package/lib/cjs/components/FeedObjectMediaPreview/FeedObjectMediaPreview.js +1 -1
  91. package/lib/cjs/components/FollowUserButton/FollowUserButton.js +1 -2
  92. package/lib/cjs/components/FriendshipUserButton/FriendshipUserButton.js +2 -3
  93. package/lib/cjs/components/GroupActionsMenu/index.js +9 -1
  94. package/lib/cjs/components/GroupAutocomplete/GroupAutocomplete.js +7 -4
  95. package/lib/cjs/components/GroupForm/GroupForm.js +16 -27
  96. package/lib/cjs/components/GroupInfoWidget/GroupInfoWidget.js +5 -15
  97. package/lib/cjs/components/GroupInviteButton/GroupInviteButton.js +8 -7
  98. package/lib/cjs/components/GroupSettingsIconButton/GroupSettingsIconButton.js +10 -4
  99. package/lib/cjs/components/GroupSubscribeButton/GroupSubscribeButton.js +3 -4
  100. package/lib/cjs/components/Groups/Groups.js +10 -10
  101. package/lib/cjs/components/Groups/Skeleton.js +1 -2
  102. package/lib/cjs/components/Incubator/Incubator.js +4 -4
  103. package/lib/cjs/components/Incubator/Skeleton.js +1 -1
  104. package/lib/cjs/components/IncubatorDetail/IncubatorDetail.js +2 -2
  105. package/lib/cjs/components/IncubatorListWidget/CreateIncubatorDialog/CreateIncubatorDialog.js +3 -4
  106. package/lib/cjs/components/IncubatorListWidget/IncubatorListWidget.js +5 -5
  107. package/lib/cjs/components/IncubatorSubscribeButton/IncubatorSubscribeButton.js +3 -4
  108. package/lib/cjs/components/IncubatorSuggestionWidget/IncubatorSuggestionWidget.js +1 -1
  109. package/lib/cjs/components/InviteUserEventButton/InviteUserEventButton.js +1 -2
  110. package/lib/cjs/components/LessonAppbar/LessonAppbar.js +3 -4
  111. package/lib/cjs/components/LessonCommentObjects/LessonCommentObjects.js +1 -1
  112. package/lib/cjs/components/LessonEditForm/LessonEditForm.js +1 -2
  113. package/lib/cjs/components/LessonReleaseMenu/LessonReleaseMenu.js +24 -16
  114. package/lib/cjs/components/LiveStreamForm/LiveStreamForm.js +15 -12
  115. package/lib/cjs/components/LiveStreamRoom/LiveStreamRoom.js +10 -8
  116. package/lib/cjs/components/LiveStreamRoom/LiveStreamVideoConference/DisconnectButton.js +5 -1
  117. package/lib/cjs/components/LiveStreamRoom/LiveStreamVideoConference/LiveStreamSettingsMenu.js +7 -3
  118. package/lib/cjs/components/LiveStreamRoom/LiveStreamVideoConference/LiveStreamVideoConference.js +3 -3
  119. package/lib/cjs/components/LiveStreamRoom/LiveStreamVideoConference/ParticipantTile.js +1 -3
  120. package/lib/cjs/components/LiveStreamRoom/LiveStreamVideoConference/ParticipantTileActions.js +1 -1
  121. package/lib/cjs/components/LocationAutocomplete/LocationAutocomplete.js +11 -11
  122. package/lib/cjs/components/LoyaltyProgramWidget/LoyaltyProgramWidget.js +1 -1
  123. package/lib/cjs/components/LoyaltyProgramWidget/Skeleton.js +1 -1
  124. package/lib/cjs/components/MyEventsWidget/index.d.ts +1 -1
  125. package/lib/cjs/components/NavigationMenuIconButton/DefaultDrawerContent.js +3 -2
  126. package/lib/cjs/components/NavigationSettingsIconButton/NavigationSettingsIconButton.js +9 -1
  127. package/lib/cjs/components/NavigationToolbar/NotificationMenu.js +2 -5
  128. package/lib/cjs/components/Notification/CollapsedFor/CollapsedFor.js +3 -1
  129. package/lib/cjs/components/Notification/Comment/Comment.js +3 -3
  130. package/lib/cjs/components/Notification/Contribution/Contribution.js +1 -1
  131. package/lib/cjs/components/Notification/ContributionFollow/ContributionFollow.js +2 -2
  132. package/lib/cjs/components/Notification/Course/Course.js +5 -10
  133. package/lib/cjs/components/Notification/DeletedFor/DeletedFor.js +4 -2
  134. package/lib/cjs/components/Notification/Event/Event.js +7 -12
  135. package/lib/cjs/components/Notification/Group/Group.js +3 -4
  136. package/lib/cjs/components/Notification/IncubatorApproved/IncubatorApproved.js +3 -3
  137. package/lib/cjs/components/Notification/KindlyNoticeFlag/KindlyNoticeFlag.js +3 -1
  138. package/lib/cjs/components/Notification/KindlyNoticeFor/KindlyNoticeFor.js +5 -3
  139. package/lib/cjs/components/Notification/LiveStream/LiveStream.js +4 -9
  140. package/lib/cjs/components/Notification/Mention/Mention.js +2 -2
  141. package/lib/cjs/components/Notification/Notification.js +17 -9
  142. package/lib/cjs/components/Notification/PrivateMessage/PrivateMessage.js +4 -5
  143. package/lib/cjs/components/Notification/UndeletedFor/UndeletedFor.js +1 -1
  144. package/lib/cjs/components/Notification/UserBlocked/UserBlocked.js +6 -2
  145. package/lib/cjs/components/Notification/UserConnection/UserConnection.js +6 -2
  146. package/lib/cjs/components/Notification/UserFollow/UserFollow.js +2 -2
  147. package/lib/cjs/components/Notification/VoteUp/VoteUp.js +2 -2
  148. package/lib/cjs/components/OnBoardingWidget/ActionsButton.js +12 -4
  149. package/lib/cjs/components/OnBoardingWidget/OnBoardingWidget.js +19 -27
  150. package/lib/cjs/components/OnBoardingWidget/Skeleton.js +1 -1
  151. package/lib/cjs/components/OnBoardingWidget/Steps/App/App.js +9 -25
  152. package/lib/cjs/components/OnBoardingWidget/Steps/Appearance/Appearance.js +17 -14
  153. package/lib/cjs/components/OnBoardingWidget/Steps/Category/Category.js +3 -9
  154. package/lib/cjs/components/PaymentDetailDialog/PaymentDetailDialog.js +7 -5
  155. package/lib/cjs/components/PaymentOrder/PaymentOrder.js +1 -1
  156. package/lib/cjs/components/PaymentOrders/PaymentOrders.js +39 -26
  157. package/lib/cjs/components/PaymentProduct/Skeleton.js +1 -1
  158. package/lib/cjs/components/PaymentProducts/Skeleton.js +1 -1
  159. package/lib/cjs/components/Paywalls/Skeleton.js +1 -1
  160. package/lib/cjs/components/PaywallsConfigurator/PaywallsConfigurator.js +5 -5
  161. package/lib/cjs/components/PaywallsConfigurator/Skeleton.js +1 -1
  162. package/lib/cjs/components/PaywallsDialog/PaywallsDialog.js +8 -6
  163. package/lib/cjs/components/PdfPreviewDialog/PdfPreviewDialog.js +3 -1
  164. package/lib/cjs/components/PlatformWidget/PlatformWidget.js +6 -6
  165. package/lib/cjs/components/PlatformWidget/Skeleton.js +1 -1
  166. package/lib/cjs/components/PrivateMessageComponent/PrivateMessageComponent.js +3 -3
  167. package/lib/cjs/components/PrivateMessageComponent/Skeleton.js +1 -1
  168. package/lib/cjs/components/PrivateMessageEditor/MessageMediaUploader/index.js +2 -2
  169. package/lib/cjs/components/PrivateMessageEditor/PrivateMessageEditor.js +6 -4
  170. package/lib/cjs/components/PrivateMessageSettingsIconButton/PrivateMessageSettingsIconButton.js +9 -1
  171. package/lib/cjs/components/PrivateMessageSnippets/PrivateMessageSnippets.js +10 -8
  172. package/lib/cjs/components/PrivateMessageSnippets/Skeleton.js +1 -1
  173. package/lib/cjs/components/PrivateMessageThread/PrivateMessageThread.d.ts +1 -1
  174. package/lib/cjs/components/PrivateMessageThread/PrivateMessageThread.js +7 -7
  175. package/lib/cjs/components/PrivateMessageThread/Skeleton.js +1 -1
  176. package/lib/cjs/components/RelatedEventsWidget/index.d.ts +1 -1
  177. package/lib/cjs/components/SearchAutocomplete/SearchAutocomplete.js +13 -8
  178. package/lib/cjs/components/SnippetNotifications/SnippetNotifications.js +5 -5
  179. package/lib/cjs/components/SuggestedEventsWidget/index.d.ts +1 -1
  180. package/lib/cjs/components/TagAutocomplete/TagAutocomplete.js +5 -2
  181. package/lib/cjs/components/UserActionIconButton/UserActionIconButton.js +9 -8
  182. package/lib/cjs/components/UserAddPaymentMethodForm/UserAddPaymentMethodForm.js +4 -6
  183. package/lib/cjs/components/UserAutocomplete/UserAutocomplete.js +12 -10
  184. package/lib/cjs/components/UserBillingInfo/Skeleton.js +1 -1
  185. package/lib/cjs/components/UserBillingInfo/UserBillingInfo.js +30 -22
  186. package/lib/cjs/components/UserChangeAddressDialog/UserChangeAddressDialog.js +1 -2
  187. package/lib/cjs/components/UserCounters/UserCounters.js +5 -13
  188. package/lib/cjs/components/UserInfo/UserInfo.js +1 -1
  189. package/lib/cjs/components/UserLiveStreamWidget/index.d.ts +1 -1
  190. package/lib/cjs/components/UserPaymentMethods/Skeleton.d.ts +24 -3
  191. package/lib/cjs/components/UserPaymentMethods/Skeleton.js +2 -4
  192. package/lib/cjs/components/UserPaymentMethods/UserPaymentMethods.d.ts +25 -3
  193. package/lib/cjs/components/UserPaymentMethods/UserPaymentMethods.js +8 -9
  194. package/lib/cjs/components/UserProfileBlocked/UserProfileBlocked.js +1 -2
  195. package/lib/cjs/components/UserProfileEdit/Section/AccountCredentials.js +10 -7
  196. package/lib/cjs/components/UserProfileEdit/Section/PublicInfo.js +9 -20
  197. package/lib/cjs/components/UserProfileEdit/Skeleton.js +1 -1
  198. package/lib/cjs/components/UserSubscribedGroupsWidget/UserSubscribedGroupsWidget.js +1 -1
  199. package/lib/cjs/components/VoteAudienceButton/VoteAudienceButton.d.ts +2 -2
  200. package/lib/cjs/components/VoteAudienceButton/VoteAudienceButton.js +4 -5
  201. package/lib/cjs/components/VoteButton/VoteButton.d.ts +2 -2
  202. package/lib/cjs/components/VoteButton/VoteButton.js +2 -3
  203. package/lib/cjs/shared/AddUsersButton/AddUsersButton.js +3 -2
  204. package/lib/cjs/shared/ConfirmDialog/ConfirmDialog.js +1 -2
  205. package/lib/cjs/shared/ContributionActionsMenu/index.js +3 -9
  206. package/lib/cjs/shared/CopyTextArea/index.js +12 -6
  207. package/lib/cjs/shared/CourseUsersTable/ChangeUsersStatus.js +1 -2
  208. package/lib/cjs/shared/CourseUsersTable/CourseUsersTable.js +6 -5
  209. package/lib/cjs/shared/CourseUsersTable/RemoveButton.js +1 -2
  210. package/lib/cjs/shared/CourseUsersTable/RequestButton.js +1 -2
  211. package/lib/cjs/shared/CustomSnackMessage/index.js +2 -2
  212. package/lib/cjs/shared/DateTimeAgo/index.js +2 -2
  213. package/lib/cjs/shared/EmojiPicker/EmojiPicker.d.ts +1 -2
  214. package/lib/cjs/shared/EventActionsMenu/index.js +9 -1
  215. package/lib/cjs/shared/HiddenPurchasableContent/HiddenPurchasableContent.js +3 -4
  216. package/lib/cjs/shared/InfiniteScroll/stories/ScrolleableTop.js +1 -1
  217. package/lib/cjs/shared/LessonCommentActionsMenu/index.js +2 -8
  218. package/lib/cjs/shared/Lightbox/BaseLightbox.js +1 -1
  219. package/lib/cjs/shared/Media/File/DisplayComponent.js +4 -6
  220. package/lib/cjs/shared/Media/File/DocComponent.d.ts +2 -0
  221. package/lib/cjs/shared/Media/File/DocComponent.js +3 -2
  222. package/lib/cjs/shared/Media/File/PreviewComponent.js +4 -3
  223. package/lib/cjs/shared/Media/File/TriggerButton.js +9 -1
  224. package/lib/cjs/shared/Media/File/asUploadButton.d.ts +1 -1
  225. package/lib/cjs/shared/Media/File/asUploadButton.js +1 -1
  226. package/lib/cjs/shared/Media/Link/DisplayComponent.js +4 -12
  227. package/lib/cjs/shared/Media/Link/UrlTextField/index.js +3 -1
  228. package/lib/cjs/shared/MessageChunkUploader/index.js +1 -1
  229. package/lib/cjs/shared/PasswordTextField/index.js +7 -5
  230. package/lib/cjs/shared/ScrollContainer/index.js +2 -2
  231. package/lib/cjs/shared/TagChip/index.d.ts +2 -48
  232. package/lib/cjs/shared/TagChip/index.js +2 -2
  233. package/lib/cjs/shared/Tags/index.js +9 -9
  234. package/lib/cjs/shared/VirtualizedScroller/VirtualizedScroller.d.ts +1 -1
  235. package/lib/esm/components/AcceptRequestUserEventButton/AcceptRequestUserEventButton.js +2 -3
  236. package/lib/esm/components/AcceptRequestUserGroupButton/AcceptRequestUserGroupButton.js +2 -3
  237. package/lib/esm/components/AccountDataPortability/AccountDataPortability.js +7 -12
  238. package/lib/esm/components/AccountDelete/AccountDelete.js +6 -13
  239. package/lib/esm/components/AccountRecover/AccountRecover.js +2 -4
  240. package/lib/esm/components/BroadcastMessages/Message.js +1 -1
  241. package/lib/esm/components/BuyButton/BuyButton.js +9 -6
  242. package/lib/esm/components/Categories/Categories.js +1 -1
  243. package/lib/esm/components/Categories/Skeleton.js +1 -1
  244. package/lib/esm/components/Categories/prefetchedCategories.js +115 -115
  245. package/lib/esm/components/CategoryAutocomplete/CategoryAutocomplete.js +14 -5
  246. package/lib/esm/components/CategoryFollowButton/CategoryFollowButton.js +4 -5
  247. package/lib/esm/components/ChangeCover/ChangeCover.js +2 -6
  248. package/lib/esm/components/ChangeGroupCover/ChangeGroupCover.js +2 -3
  249. package/lib/esm/components/ChangeGroupPicture/ChangeGroupPicture.js +2 -3
  250. package/lib/esm/components/ChangePicture/ChangePictureDialog/ChangePictureDialog.js +4 -8
  251. package/lib/esm/components/Checkout/Skeleton.js +2 -4
  252. package/lib/esm/components/CheckoutReturnDialog/CheckoutReturnDialog.js +11 -11
  253. package/lib/esm/components/CommentObjectReply/CommentObjectReply.js +3 -4
  254. package/lib/esm/components/CommentsFeedObject/CommentsFeedObject.js +2 -2
  255. package/lib/esm/components/CommunityPaywalls/CommunityPaywalls.js +3 -4
  256. package/lib/esm/components/CommunityPaywalls/Skeleton.d.ts +3 -3
  257. package/lib/esm/components/CommunityPaywalls/Skeleton.js +2 -3
  258. package/lib/esm/components/Composer/Composer.js +4 -5
  259. package/lib/esm/components/Composer/Content/ContentDiscussion/ContentDiscussion.js +5 -3
  260. package/lib/esm/components/Composer/Content/ContentLesson/ContentLesson.js +2 -2
  261. package/lib/esm/components/Composer/Content/ContentPoll/ContentPoll.js +13 -9
  262. package/lib/esm/components/Composer/Content/ContentPost/ContentPost.js +2 -2
  263. package/lib/esm/components/Composer/Layer/AudienceLayer/AudienceLayer.js +12 -6
  264. package/lib/esm/components/Composer/Layer/ScheduledLayer/ScheduledLayer.js +7 -7
  265. package/lib/esm/components/ConsentSolution/ConsentSolution.js +12 -5
  266. package/lib/esm/components/ConsentSolution/Skeleton.js +1 -1
  267. package/lib/esm/components/CourseCompletedDialog/CourseCompletedDialog.js +1 -1
  268. package/lib/esm/components/CourseDashboard/Student/ActionButton.d.ts +1 -2
  269. package/lib/esm/components/CourseDashboard/Student/ActionButton.js +1 -2
  270. package/lib/esm/components/CourseDashboard/Teacher/Comments.js +1 -2
  271. package/lib/esm/components/CourseForm/CourseForm.js +10 -7
  272. package/lib/esm/components/CourseForm/Edit.js +6 -2
  273. package/lib/esm/components/CourseForm/UploadCourseCover.js +2 -3
  274. package/lib/esm/components/CourseJoinButton/CourseJoinButton.js +4 -5
  275. package/lib/esm/components/Courses/Courses.d.ts +0 -4
  276. package/lib/esm/components/Courses/Courses.js +10 -10
  277. package/lib/esm/components/Courses/Skeleton.js +1 -1
  278. package/lib/esm/components/CreateLiveStreamDialog/CreateLiveStreamDialog.js +7 -1
  279. package/lib/esm/components/CreateLiveStreamDialog/LiveStreamSelector/LiveStreamSelector.js +6 -9
  280. package/lib/esm/components/CreatePaymentProductForm/CreatePaymentProductForm.js +6 -5
  281. package/lib/esm/components/CustomAdv/Skeleton.js +1 -1
  282. package/lib/esm/components/EditCourse/Lessons/ChangeLessonStatus.js +3 -4
  283. package/lib/esm/components/EditCourse/Lessons/FieldName.js +2 -3
  284. package/lib/esm/components/EditCourse/Options.js +2 -3
  285. package/lib/esm/components/EditCourse/Status.js +1 -1
  286. package/lib/esm/components/Editor/Editor.js +3 -3
  287. package/lib/esm/components/Editor/plugins/EmojiPlugin.js +4 -2
  288. package/lib/esm/components/Editor/plugins/FloatingLinkPlugin.js +6 -4
  289. package/lib/esm/components/Event/Skeleton.js +1 -2
  290. package/lib/esm/components/EventAutocomplete/EventAutocomplete.js +8 -5
  291. package/lib/esm/components/EventForm/EventAddress.js +9 -5
  292. package/lib/esm/components/EventForm/EventForm.js +91 -53
  293. package/lib/esm/components/EventForm/UploadEventCover.js +2 -3
  294. package/lib/esm/components/EventInfoWidget/index.d.ts +1 -1
  295. package/lib/esm/components/EventInviteButton/EventInviteButton.js +3 -2
  296. package/lib/esm/components/EventLocationWidget/EventLocationWidget.js +5 -16
  297. package/lib/esm/components/EventLocationWidget/EventMap.d.ts +8 -0
  298. package/lib/esm/components/EventLocationWidget/EventMap.js +25 -0
  299. package/lib/esm/components/EventLocationWidget/Skeleton.js +1 -1
  300. package/lib/esm/components/EventMediaWidget/EventMediaWidget.js +1 -2
  301. package/lib/esm/components/EventMediaWidget/TriggerButton.d.ts +2 -2
  302. package/lib/esm/components/EventMediaWidget/TriggerButton.js +2 -3
  303. package/lib/esm/components/EventMediaWidget/index.d.ts +2 -1
  304. package/lib/esm/components/EventMembersWidget/index.d.ts +1 -1
  305. package/lib/esm/components/EventSubscribeButton/EventSubscribeButton.js +11 -4
  306. package/lib/esm/components/Events/Events.d.ts +0 -4
  307. package/lib/esm/components/Events/Events.js +14 -8
  308. package/lib/esm/components/Events/LocationEventsFilter.js +5 -1
  309. package/lib/esm/components/Events/OngoingEventsFilter.js +6 -2
  310. package/lib/esm/components/Events/PastEventsFilter.js +6 -2
  311. package/lib/esm/components/Events/Skeleton.js +1 -1
  312. package/lib/esm/components/Feed/Feed.js +10 -11
  313. package/lib/esm/components/Feed/Skeleton.js +2 -2
  314. package/lib/esm/components/FeedObject/Actions/Actions.js +2 -3
  315. package/lib/esm/components/FeedObject/Actions/Comment/Comment.js +2 -2
  316. package/lib/esm/components/FeedObject/Actions/Follow/Follow.js +3 -4
  317. package/lib/esm/components/FeedObject/Actions/Share/Share.js +1 -2
  318. package/lib/esm/components/FeedObject/Activities/ActivitiesMenu/ActivitiesMenu.js +20 -18
  319. package/lib/esm/components/FeedObject/Activities/RelevantActivities/CommentActivity/CommentActivity.js +1 -1
  320. package/lib/esm/components/FeedObject/Activities/RelevantActivities/RelevantActivities.js +1 -1
  321. package/lib/esm/components/FeedObject/Contributors/Contributors.js +1 -1
  322. package/lib/esm/components/FeedObject/Contributors/Skeleton.js +1 -1
  323. package/lib/esm/components/FeedObject/Poll/Choice/Choice.js +2 -3
  324. package/lib/esm/components/FeedObjectMediaPreview/FeedObjectMediaPreview.js +1 -1
  325. package/lib/esm/components/FollowUserButton/FollowUserButton.js +2 -3
  326. package/lib/esm/components/FriendshipUserButton/FriendshipUserButton.js +3 -4
  327. package/lib/esm/components/GroupActionsMenu/index.js +9 -1
  328. package/lib/esm/components/GroupAutocomplete/GroupAutocomplete.js +8 -5
  329. package/lib/esm/components/GroupForm/GroupForm.js +17 -28
  330. package/lib/esm/components/GroupInfoWidget/GroupInfoWidget.js +5 -15
  331. package/lib/esm/components/GroupInviteButton/GroupInviteButton.js +8 -7
  332. package/lib/esm/components/GroupSettingsIconButton/GroupSettingsIconButton.js +10 -4
  333. package/lib/esm/components/GroupSubscribeButton/GroupSubscribeButton.js +4 -5
  334. package/lib/esm/components/Groups/Groups.js +10 -10
  335. package/lib/esm/components/Groups/Skeleton.js +1 -2
  336. package/lib/esm/components/Incubator/Incubator.js +4 -4
  337. package/lib/esm/components/Incubator/Skeleton.js +1 -1
  338. package/lib/esm/components/IncubatorDetail/IncubatorDetail.js +2 -2
  339. package/lib/esm/components/IncubatorListWidget/CreateIncubatorDialog/CreateIncubatorDialog.js +4 -5
  340. package/lib/esm/components/IncubatorListWidget/IncubatorListWidget.js +5 -5
  341. package/lib/esm/components/IncubatorSubscribeButton/IncubatorSubscribeButton.js +4 -5
  342. package/lib/esm/components/IncubatorSuggestionWidget/IncubatorSuggestionWidget.js +1 -1
  343. package/lib/esm/components/InviteUserEventButton/InviteUserEventButton.js +2 -3
  344. package/lib/esm/components/LessonAppbar/LessonAppbar.js +4 -5
  345. package/lib/esm/components/LessonCommentObjects/LessonCommentObjects.js +1 -1
  346. package/lib/esm/components/LessonEditForm/LessonEditForm.js +2 -3
  347. package/lib/esm/components/LessonReleaseMenu/LessonReleaseMenu.js +24 -16
  348. package/lib/esm/components/LiveStreamForm/LiveStreamForm.js +16 -13
  349. package/lib/esm/components/LiveStreamRoom/LiveStreamRoom.js +10 -8
  350. package/lib/esm/components/LiveStreamRoom/LiveStreamVideoConference/DisconnectButton.js +5 -1
  351. package/lib/esm/components/LiveStreamRoom/LiveStreamVideoConference/LiveStreamSettingsMenu.js +7 -3
  352. package/lib/esm/components/LiveStreamRoom/LiveStreamVideoConference/LiveStreamVideoConference.js +3 -3
  353. package/lib/esm/components/LiveStreamRoom/LiveStreamVideoConference/ParticipantTile.js +1 -3
  354. package/lib/esm/components/LiveStreamRoom/LiveStreamVideoConference/ParticipantTileActions.js +1 -1
  355. package/lib/esm/components/LocationAutocomplete/LocationAutocomplete.js +12 -12
  356. package/lib/esm/components/LoyaltyProgramWidget/LoyaltyProgramWidget.js +1 -1
  357. package/lib/esm/components/LoyaltyProgramWidget/Skeleton.js +1 -1
  358. package/lib/esm/components/MyEventsWidget/index.d.ts +1 -1
  359. package/lib/esm/components/NavigationMenuIconButton/DefaultDrawerContent.js +3 -2
  360. package/lib/esm/components/NavigationSettingsIconButton/NavigationSettingsIconButton.js +9 -1
  361. package/lib/esm/components/NavigationToolbar/NotificationMenu.js +2 -5
  362. package/lib/esm/components/Notification/CollapsedFor/CollapsedFor.js +3 -1
  363. package/lib/esm/components/Notification/Comment/Comment.js +3 -3
  364. package/lib/esm/components/Notification/Contribution/Contribution.js +1 -1
  365. package/lib/esm/components/Notification/ContributionFollow/ContributionFollow.js +2 -2
  366. package/lib/esm/components/Notification/Course/Course.js +6 -11
  367. package/lib/esm/components/Notification/DeletedFor/DeletedFor.js +4 -2
  368. package/lib/esm/components/Notification/Event/Event.js +8 -13
  369. package/lib/esm/components/Notification/Group/Group.js +4 -5
  370. package/lib/esm/components/Notification/IncubatorApproved/IncubatorApproved.js +3 -3
  371. package/lib/esm/components/Notification/KindlyNoticeFlag/KindlyNoticeFlag.js +3 -1
  372. package/lib/esm/components/Notification/KindlyNoticeFor/KindlyNoticeFor.js +5 -3
  373. package/lib/esm/components/Notification/LiveStream/LiveStream.js +5 -10
  374. package/lib/esm/components/Notification/Mention/Mention.js +2 -2
  375. package/lib/esm/components/Notification/Notification.js +18 -10
  376. package/lib/esm/components/Notification/PrivateMessage/PrivateMessage.js +5 -6
  377. package/lib/esm/components/Notification/UndeletedFor/UndeletedFor.js +1 -1
  378. package/lib/esm/components/Notification/UserBlocked/UserBlocked.js +6 -2
  379. package/lib/esm/components/Notification/UserConnection/UserConnection.js +6 -2
  380. package/lib/esm/components/Notification/UserFollow/UserFollow.js +2 -2
  381. package/lib/esm/components/Notification/VoteUp/VoteUp.js +2 -2
  382. package/lib/esm/components/OnBoardingWidget/ActionsButton.js +12 -4
  383. package/lib/esm/components/OnBoardingWidget/OnBoardingWidget.js +20 -28
  384. package/lib/esm/components/OnBoardingWidget/Skeleton.js +1 -1
  385. package/lib/esm/components/OnBoardingWidget/Steps/App/App.js +9 -25
  386. package/lib/esm/components/OnBoardingWidget/Steps/Appearance/Appearance.js +17 -14
  387. package/lib/esm/components/OnBoardingWidget/Steps/Category/Category.js +3 -9
  388. package/lib/esm/components/PaymentDetailDialog/PaymentDetailDialog.js +8 -6
  389. package/lib/esm/components/PaymentOrder/PaymentOrder.js +1 -1
  390. package/lib/esm/components/PaymentOrders/PaymentOrders.js +39 -26
  391. package/lib/esm/components/PaymentProduct/Skeleton.js +1 -1
  392. package/lib/esm/components/PaymentProducts/Skeleton.js +1 -1
  393. package/lib/esm/components/Paywalls/Skeleton.js +1 -1
  394. package/lib/esm/components/PaywallsConfigurator/PaywallsConfigurator.js +4 -4
  395. package/lib/esm/components/PaywallsConfigurator/Skeleton.js +1 -1
  396. package/lib/esm/components/PaywallsDialog/PaywallsDialog.js +9 -7
  397. package/lib/esm/components/PdfPreviewDialog/PdfPreviewDialog.js +3 -1
  398. package/lib/esm/components/PlatformWidget/PlatformWidget.js +6 -6
  399. package/lib/esm/components/PlatformWidget/Skeleton.js +1 -1
  400. package/lib/esm/components/PrivateMessageComponent/PrivateMessageComponent.js +3 -3
  401. package/lib/esm/components/PrivateMessageComponent/Skeleton.js +1 -1
  402. package/lib/esm/components/PrivateMessageEditor/MessageMediaUploader/index.js +2 -2
  403. package/lib/esm/components/PrivateMessageEditor/PrivateMessageEditor.js +6 -4
  404. package/lib/esm/components/PrivateMessageSettingsIconButton/PrivateMessageSettingsIconButton.js +9 -1
  405. package/lib/esm/components/PrivateMessageSnippets/PrivateMessageSnippets.js +10 -8
  406. package/lib/esm/components/PrivateMessageSnippets/Skeleton.js +1 -1
  407. package/lib/esm/components/PrivateMessageThread/PrivateMessageThread.d.ts +1 -1
  408. package/lib/esm/components/PrivateMessageThread/PrivateMessageThread.js +7 -7
  409. package/lib/esm/components/PrivateMessageThread/Skeleton.js +1 -1
  410. package/lib/esm/components/RelatedEventsWidget/index.d.ts +1 -1
  411. package/lib/esm/components/SearchAutocomplete/SearchAutocomplete.js +13 -8
  412. package/lib/esm/components/SnippetNotifications/SnippetNotifications.js +5 -5
  413. package/lib/esm/components/SuggestedEventsWidget/index.d.ts +1 -1
  414. package/lib/esm/components/TagAutocomplete/TagAutocomplete.js +7 -4
  415. package/lib/esm/components/UserActionIconButton/UserActionIconButton.js +10 -9
  416. package/lib/esm/components/UserAddPaymentMethodForm/UserAddPaymentMethodForm.js +5 -7
  417. package/lib/esm/components/UserAutocomplete/UserAutocomplete.js +14 -12
  418. package/lib/esm/components/UserBillingInfo/Skeleton.js +1 -1
  419. package/lib/esm/components/UserBillingInfo/UserBillingInfo.js +30 -22
  420. package/lib/esm/components/UserChangeAddressDialog/UserChangeAddressDialog.js +1 -2
  421. package/lib/esm/components/UserCounters/UserCounters.js +5 -13
  422. package/lib/esm/components/UserInfo/UserInfo.js +1 -1
  423. package/lib/esm/components/UserLiveStreamWidget/index.d.ts +1 -1
  424. package/lib/esm/components/UserPaymentMethods/Skeleton.d.ts +24 -3
  425. package/lib/esm/components/UserPaymentMethods/Skeleton.js +2 -4
  426. package/lib/esm/components/UserPaymentMethods/UserPaymentMethods.d.ts +25 -3
  427. package/lib/esm/components/UserPaymentMethods/UserPaymentMethods.js +11 -12
  428. package/lib/esm/components/UserProfileBlocked/UserProfileBlocked.js +2 -3
  429. package/lib/esm/components/UserProfileEdit/Section/AccountCredentials.js +10 -7
  430. package/lib/esm/components/UserProfileEdit/Section/PublicInfo.js +12 -23
  431. package/lib/esm/components/UserProfileEdit/Skeleton.js +1 -1
  432. package/lib/esm/components/UserSubscribedGroupsWidget/UserSubscribedGroupsWidget.js +1 -1
  433. package/lib/esm/components/VoteAudienceButton/VoteAudienceButton.d.ts +2 -2
  434. package/lib/esm/components/VoteAudienceButton/VoteAudienceButton.js +5 -6
  435. package/lib/esm/components/VoteButton/VoteButton.d.ts +2 -2
  436. package/lib/esm/components/VoteButton/VoteButton.js +3 -4
  437. package/lib/esm/shared/AddUsersButton/AddUsersButton.js +3 -2
  438. package/lib/esm/shared/ConfirmDialog/ConfirmDialog.js +1 -2
  439. package/lib/esm/shared/ContributionActionsMenu/index.js +3 -9
  440. package/lib/esm/shared/CopyTextArea/index.js +12 -6
  441. package/lib/esm/shared/CourseUsersTable/ChangeUsersStatus.js +2 -3
  442. package/lib/esm/shared/CourseUsersTable/CourseUsersTable.js +7 -6
  443. package/lib/esm/shared/CourseUsersTable/RemoveButton.js +2 -3
  444. package/lib/esm/shared/CourseUsersTable/RequestButton.js +2 -3
  445. package/lib/esm/shared/CustomSnackMessage/index.js +2 -2
  446. package/lib/esm/shared/DateTimeAgo/index.js +2 -2
  447. package/lib/esm/shared/EmojiPicker/EmojiPicker.d.ts +1 -2
  448. package/lib/esm/shared/EventActionsMenu/index.js +9 -1
  449. package/lib/esm/shared/HiddenPurchasableContent/HiddenPurchasableContent.js +3 -4
  450. package/lib/esm/shared/InfiniteScroll/stories/ScrolleableTop.js +1 -1
  451. package/lib/esm/shared/LessonCommentActionsMenu/index.js +2 -8
  452. package/lib/esm/shared/Lightbox/BaseLightbox.js +1 -1
  453. package/lib/esm/shared/Media/File/DisplayComponent.js +4 -6
  454. package/lib/esm/shared/Media/File/DocComponent.d.ts +2 -0
  455. package/lib/esm/shared/Media/File/DocComponent.js +3 -2
  456. package/lib/esm/shared/Media/File/PreviewComponent.js +4 -3
  457. package/lib/esm/shared/Media/File/TriggerButton.js +9 -1
  458. package/lib/esm/shared/Media/File/asUploadButton.d.ts +1 -1
  459. package/lib/esm/shared/Media/File/asUploadButton.js +3 -3
  460. package/lib/esm/shared/Media/Link/DisplayComponent.js +5 -13
  461. package/lib/esm/shared/Media/Link/UrlTextField/index.js +3 -1
  462. package/lib/esm/shared/MessageChunkUploader/index.js +1 -1
  463. package/lib/esm/shared/PasswordTextField/index.js +7 -5
  464. package/lib/esm/shared/ScrollContainer/index.js +1 -1
  465. package/lib/esm/shared/TagChip/index.d.ts +2 -48
  466. package/lib/esm/shared/TagChip/index.js +2 -2
  467. package/lib/esm/shared/Tags/index.js +9 -9
  468. package/lib/esm/shared/VirtualizedScroller/VirtualizedScroller.d.ts +1 -1
  469. package/lib/umd/484.js +2 -0
  470. package/lib/umd/484.js.LICENSE.txt +9 -0
  471. package/lib/umd/react-ui.js +1 -1
  472. package/package.json +207 -206
  473. package/lib/cjs/shared/UpScalingTierBadge/UpScalingTierBadge.d.ts +0 -5
  474. package/lib/cjs/shared/UpScalingTierBadge/UpScalingTierBadge.js +0 -14
  475. package/lib/esm/shared/UpScalingTierBadge/UpScalingTierBadge.d.ts +0 -5
  476. package/lib/esm/shared/UpScalingTierBadge/UpScalingTierBadge.js +0 -10
  477. package/lib/umd/155.js +0 -2
  478. package/lib/umd/155.js.LICENSE.txt +0 -24
@@ -235,7 +235,7 @@ function IncubatorDetail(inProps) {
235
235
  /**
236
236
  * Renders root element
237
237
  */
238
- return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(Root, Object.assign({ title: (0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(material_1.Avatar, { className: classes.avatar, alt: scIncubator.user.avatar, src: scIncubator.user.avatar }), (0, jsx_runtime_1.jsxs)(material_1.Box, { children: [(0, jsx_runtime_1.jsxs)(material_1.Typography, Object.assign({ className: classes.title }, { children: [`${intl.formatMessage(messages.intro, { name: scIncubator.name })}`, " "] })), (0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ component: 'span' }, { children: (0, jsx_runtime_1.jsxs)(react_core_1.Link, Object.assign({}, (!scIncubator.user.deleted && { to: scRoutingContext.url(react_core_1.SCRoutes.USER_PROFILE_ROUTE_NAME, scIncubator.user) }), { onClick: scIncubator.user.deleted ? () => setOpenAlert(true) : null }, { children: ["@", scIncubator.user.username] })) }))] })] }), open: open, onClose: onClose, className: (0, classnames_1.default)(classes.root, className) }, rest, { children: (0, jsx_runtime_1.jsxs)(material_1.Box, { children: [(0, jsx_runtime_1.jsx)(Incubator_1.default, Object.assign({ elevation: 0, incubator: scIncubator, detailView: true, subscribeButtonProps: { onSubscribe: handleUpdates } }, IncubatorProps)), (0, jsx_runtime_1.jsx)(material_1.Box, Object.assign({ className: classes.subscribers }, { children: loading && !scIncubator ? ((0, jsx_runtime_1.jsx)(AvatarGroupSkeleton_1.default, Object.assign({}, rest))) : ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: total > 0 ? ((0, jsx_runtime_1.jsx)(material_1.Button, Object.assign({ onClick: handleToggleSubscribersDialog, disabled: loading || !scIncubator }, { children: (0, jsx_runtime_1.jsxs)(material_1.AvatarGroup, Object.assign({}, rest, { children: [subscribers.map((u) => ((0, jsx_runtime_1.jsx)(material_1.Avatar, { alt: u.username, src: u.avatar }, u.id))), [...Array(Math.max(0, total - subscribers.length))].map((x, i // Add max to 0 to prevent creation of array with negative index during state update
239
- ) => ((0, jsx_runtime_1.jsx)(material_1.Avatar, {}, i)))] })) }))) : null })) })), openSubscribersDialog && ((0, jsx_runtime_1.jsx)(BaseDialog_1.default, Object.assign({ title: (0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { defaultMessage: "ui.incubatorDetail.subscribersSection.title", id: "ui.incubatorDetail.subscribersSection.title" }), " (", total, ")"] }), onClose: handleToggleSubscribersDialog, open: openSubscribersDialog }, { children: loading ? ((0, jsx_runtime_1.jsx)(CentralProgress_1.default, { size: 50 })) : ((0, jsx_runtime_1.jsx)(InfiniteScroll_1.default, Object.assign({ dataLength: total, next: fetchSubscribers, hasMoreNext: next !== null, loaderNext: (0, jsx_runtime_1.jsx)(CentralProgress_1.default, { size: 30 }), height: 400, endMessage: (0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ variant: "body2", align: "center", fontWeight: "bold" }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.incubatorDetail.subscribersSection.noMoreSubscribers", defaultMessage: "ui.incubatorDetail.subscribersSection.noMoreSubscribers" }) })) }, { children: (0, jsx_runtime_1.jsx)(material_1.List, { children: subscribers.map((s, index) => ((0, jsx_runtime_1.jsx)(material_1.ListItem, { children: (0, jsx_runtime_1.jsx)(User_1.default, { elevation: 0, user: s }, index) }, (s.id, index)))) }) }))) }))), (0, jsx_runtime_1.jsx)(Widget_1.default, Object.assign({ elevation: 1, className: classes.shareCard }, { children: (0, jsx_runtime_1.jsxs)(material_1.CardContent, { children: [(0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ variant: 'h6' }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.incubatorDetail.shareSection.title", defaultMessage: "ui.incubatorDetail.shareSection.title" }) })), (0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ variant: 'subtitle1' }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.incubatorDetail.shareSection.share", defaultMessage: "ui.incubatorDetail.shareSection.share" }) })), (0, jsx_runtime_1.jsxs)(material_1.FormGroup, Object.assign({ className: classes.copyUrlForm }, { children: [(0, jsx_runtime_1.jsx)(material_1.TextField, { className: classes.copyText, variant: "outlined", value: portal }), (0, jsx_runtime_1.jsx)(material_1.Button, Object.assign({ className: classes.copyButton, variant: "contained", onClick: copy }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.incubatorDetail.shareSection.button.copy", defaultMessage: "ui.incubatorDetail.shareSection.button.copy" }) }))] })), alert && ((0, jsx_runtime_1.jsx)(material_1.Alert, Object.assign({ onClose: () => setAlert(false) }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.incubatorDetail.shareSection.copied", defaultMessage: "ui.incubatorDetail.shareSection.copied" }) }))), isSocialShareEnabled && ((0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ variant: 'subtitle2' }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.incubatorDetail.shareSection.invite", defaultMessage: "ui.incubatorDetail.shareSection.invite" }) }))), (0, jsx_runtime_1.jsxs)(material_1.Box, Object.assign({ className: classes.shareSection }, { children: [facebookShareEnabled && ((0, jsx_runtime_1.jsx)(material_1.Icon, Object.assign({ classes: { root: classes.shareMenuIcon }, fontSize: "small", onClick: () => window.open(SocialShare_1.FACEBOOK_SHARE + portal, 'facebook-share-dialog', 'width=626,height=436') }, { children: "facebook" }))), xShareEnabled && ((0, jsx_runtime_1.jsx)(material_1.Icon, Object.assign({ classes: { root: classes.shareMenuIcon }, fontSize: "small", onClick: () => window.open(SocialShare_1.X_SHARE + portal, 'x-share-dialog', 'width=626,height=436') }, { children: "x" }))), linkedinShareEnabled && ((0, jsx_runtime_1.jsx)(material_1.Icon, Object.assign({ classes: { root: classes.shareMenuIcon }, fontSize: "small", onClick: () => window.open(SocialShare_1.LINKEDIN_SHARE + portal, 'linkedin-share-dialog', 'width=626,height=436') }, { children: "linkedin" })))] }))] }) }))] }) })), openAlert && (0, jsx_runtime_1.jsx)(UserDeletedSnackBar_1.default, { open: openAlert, handleClose: () => setOpenAlert(false) })] }));
238
+ return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(Root, Object.assign({ title: (0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(material_1.Avatar, { className: classes.avatar, alt: scIncubator.user.avatar, src: scIncubator.user.avatar }), (0, jsx_runtime_1.jsxs)(material_1.Box, { children: [(0, jsx_runtime_1.jsxs)(material_1.Typography, Object.assign({ className: classes.title }, { children: [`${intl.formatMessage(messages.intro, { name: scIncubator.name })}`, " "] })), (0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ component: "span" }, { children: (0, jsx_runtime_1.jsxs)(react_core_1.Link, Object.assign({}, (!scIncubator.user.deleted && { to: scRoutingContext.url(react_core_1.SCRoutes.USER_PROFILE_ROUTE_NAME, scIncubator.user) }), { onClick: scIncubator.user.deleted ? () => setOpenAlert(true) : null }, { children: ["@", scIncubator.user.username] })) }))] })] }), open: open, onClose: onClose, className: (0, classnames_1.default)(classes.root, className) }, rest, { children: (0, jsx_runtime_1.jsxs)(material_1.Box, { children: [(0, jsx_runtime_1.jsx)(Incubator_1.default, Object.assign({ elevation: 0, incubator: scIncubator, detailView: true, subscribeButtonProps: { onSubscribe: handleUpdates } }, IncubatorProps)), (0, jsx_runtime_1.jsx)(material_1.Box, Object.assign({ className: classes.subscribers }, { children: loading && !scIncubator ? ((0, jsx_runtime_1.jsx)(AvatarGroupSkeleton_1.default, Object.assign({}, rest))) : ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: total > 0 ? ((0, jsx_runtime_1.jsx)(material_1.Button, Object.assign({ onClick: handleToggleSubscribersDialog, disabled: loading || !scIncubator }, { children: (0, jsx_runtime_1.jsxs)(material_1.AvatarGroup, Object.assign({}, rest, { children: [subscribers.map((u) => ((0, jsx_runtime_1.jsx)(material_1.Avatar, { alt: u.username, src: u.avatar }, u.id))), [...Array(Math.max(0, total - subscribers.length))].map((x, i // Add max to 0 to prevent creation of array with negative index during state update
239
+ ) => ((0, jsx_runtime_1.jsx)(material_1.Avatar, {}, i)))] })) }))) : null })) })), openSubscribersDialog && ((0, jsx_runtime_1.jsx)(BaseDialog_1.default, Object.assign({ title: (0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { defaultMessage: "ui.incubatorDetail.subscribersSection.title", id: "ui.incubatorDetail.subscribersSection.title" }), " (", total, ")"] }), onClose: handleToggleSubscribersDialog, open: openSubscribersDialog }, { children: loading ? ((0, jsx_runtime_1.jsx)(CentralProgress_1.default, { size: 50 })) : ((0, jsx_runtime_1.jsx)(InfiniteScroll_1.default, Object.assign({ dataLength: total, next: fetchSubscribers, hasMoreNext: next !== null, loaderNext: (0, jsx_runtime_1.jsx)(CentralProgress_1.default, { size: 30 }), height: 400, endMessage: (0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ variant: "body2", align: "center", fontWeight: "bold" }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.incubatorDetail.subscribersSection.noMoreSubscribers", defaultMessage: "ui.incubatorDetail.subscribersSection.noMoreSubscribers" }) })) }, { children: (0, jsx_runtime_1.jsx)(material_1.List, { children: subscribers.map((s, index) => ((0, jsx_runtime_1.jsx)(material_1.ListItem, { children: (0, jsx_runtime_1.jsx)(User_1.default, { elevation: 0, user: s }, index) }, (s.id, index)))) }) }))) }))), (0, jsx_runtime_1.jsx)(Widget_1.default, Object.assign({ elevation: 1, className: classes.shareCard }, { children: (0, jsx_runtime_1.jsxs)(material_1.CardContent, { children: [(0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ variant: "h6" }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.incubatorDetail.shareSection.title", defaultMessage: "ui.incubatorDetail.shareSection.title" }) })), (0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ variant: "subtitle1" }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.incubatorDetail.shareSection.share", defaultMessage: "ui.incubatorDetail.shareSection.share" }) })), (0, jsx_runtime_1.jsxs)(material_1.FormGroup, Object.assign({ className: classes.copyUrlForm }, { children: [(0, jsx_runtime_1.jsx)(material_1.TextField, { className: classes.copyText, variant: "outlined", value: portal }), (0, jsx_runtime_1.jsx)(material_1.Button, Object.assign({ className: classes.copyButton, variant: "contained", onClick: copy }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.incubatorDetail.shareSection.button.copy", defaultMessage: "ui.incubatorDetail.shareSection.button.copy" }) }))] })), alert && ((0, jsx_runtime_1.jsx)(material_1.Alert, Object.assign({ onClose: () => setAlert(false) }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.incubatorDetail.shareSection.copied", defaultMessage: "ui.incubatorDetail.shareSection.copied" }) }))), isSocialShareEnabled && ((0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ variant: "subtitle2" }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.incubatorDetail.shareSection.invite", defaultMessage: "ui.incubatorDetail.shareSection.invite" }) }))), (0, jsx_runtime_1.jsxs)(material_1.Box, Object.assign({ className: classes.shareSection }, { children: [facebookShareEnabled && ((0, jsx_runtime_1.jsx)(material_1.Icon, Object.assign({ classes: { root: classes.shareMenuIcon }, fontSize: "small", onClick: () => window.open(SocialShare_1.FACEBOOK_SHARE + portal, 'facebook-share-dialog', 'width=626,height=436') }, { children: "facebook" }))), xShareEnabled && ((0, jsx_runtime_1.jsx)(material_1.Icon, Object.assign({ classes: { root: classes.shareMenuIcon }, fontSize: "small", onClick: () => window.open(SocialShare_1.X_SHARE + portal, 'x-share-dialog', 'width=626,height=436') }, { children: "x" }))), linkedinShareEnabled && ((0, jsx_runtime_1.jsx)(material_1.Icon, Object.assign({ classes: { root: classes.shareMenuIcon }, fontSize: "small", onClick: () => window.open(SocialShare_1.LINKEDIN_SHARE + portal, 'linkedin-share-dialog', 'width=626,height=436') }, { children: "linkedin" })))] }))] }) }))] }) })), openAlert && (0, jsx_runtime_1.jsx)(UserDeletedSnackBar_1.default, { open: openAlert, handleClose: () => setOpenAlert(false) })] }));
240
240
  }
241
241
  exports.default = IncubatorDetail;
@@ -11,7 +11,6 @@ const react_core_1 = require("@selfcommunity/react-core");
11
11
  const BaseDialog_1 = tslib_1.__importDefault(require("../../../shared/BaseDialog"));
12
12
  const classnames_1 = tslib_1.__importDefault(require("classnames"));
13
13
  const Errors_1 = require("../../../constants/Errors");
14
- const lab_1 = require("@mui/lab");
15
14
  const constants_1 = require("../constants");
16
15
  const messages = (0, react_intl_1.defineMessages)({
17
16
  name: {
@@ -61,7 +60,7 @@ function CreateIncubatorDialog(props) {
61
60
  slogan: slogan
62
61
  }
63
62
  })
64
- .then((res) => {
63
+ .then(() => {
65
64
  setIsSubmitting(false);
66
65
  setSubmitted(true);
67
66
  })
@@ -76,10 +75,10 @@ function CreateIncubatorDialog(props) {
76
75
  }
77
76
  let dialogContent;
78
77
  if (submitted) {
79
- dialogContent = ((0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ variant: 'subtitle2', className: classes.submittedMessage }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.incubatorListWidget.createIncubatorDialog.propose.success", defaultMessage: "ui.incubatorListWidget.createIncubatorDialog.propose.success" }) })));
78
+ dialogContent = ((0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ variant: "subtitle2", className: classes.submittedMessage }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.incubatorListWidget.createIncubatorDialog.propose.success", defaultMessage: "ui.incubatorListWidget.createIncubatorDialog.propose.success" }) })));
80
79
  }
81
80
  else {
82
- dialogContent = ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ component: 'span', className: classes.intro }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.incubatorsListDialog.createIncubatorDialog.intro", defaultMessage: "ui.incubatorsListDialog.createIncubatorDialog.intro" }) })), (0, jsx_runtime_1.jsxs)(material_1.FormGroup, Object.assign({ className: classes.form }, { children: [(0, jsx_runtime_1.jsx)(material_1.TextField, { required: true, error: Boolean(error), className: classes.name, placeholder: `${intl.formatMessage(messages.name)}`, margin: "normal", value: name, onChange: (event) => setName(event.target.value) }), (0, jsx_runtime_1.jsx)(material_1.TextField, { multiline: true, error: Boolean(error), className: classes.slogan, placeholder: `${intl.formatMessage(messages.slogan)}`, margin: "normal", value: slogan, onChange: (event) => setSlogan(event.target.value) })] })), (0, jsx_runtime_1.jsx)(lab_1.LoadingButton, Object.assign({ loading: isSubmitting, disabled: !name || Boolean(error), variant: "contained", onClick: handleSubmit }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.incubatorListWidget.createIncubatorDialog.button", defaultMessage: "ui.incubatorListWidget.createIncubatorDialog.button" }) }))] }));
81
+ dialogContent = ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ component: "span", className: classes.intro }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.incubatorsListDialog.createIncubatorDialog.intro", defaultMessage: "ui.incubatorsListDialog.createIncubatorDialog.intro" }) })), (0, jsx_runtime_1.jsxs)(material_1.FormGroup, Object.assign({ className: classes.form }, { children: [(0, jsx_runtime_1.jsx)(material_1.TextField, { required: true, error: Boolean(error), className: classes.name, placeholder: `${intl.formatMessage(messages.name)}`, margin: "normal", value: name, onChange: (event) => setName(event.target.value) }), (0, jsx_runtime_1.jsx)(material_1.TextField, { multiline: true, error: Boolean(error), className: classes.slogan, placeholder: `${intl.formatMessage(messages.slogan)}`, margin: "normal", value: slogan, onChange: (event) => setSlogan(event.target.value) })] })), (0, jsx_runtime_1.jsx)(material_1.Button, Object.assign({ loading: isSubmitting, disabled: !name || Boolean(error), variant: "contained", onClick: handleSubmit }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.incubatorListWidget.createIncubatorDialog.button", defaultMessage: "ui.incubatorListWidget.createIncubatorDialog.button" }) }))] }));
83
82
  }
84
83
  // RENDER
85
84
  return ((0, jsx_runtime_1.jsx)(Root, Object.assign({ title: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.incubatorListWidget.createIncubatorDialog.title", defaultMessage: "ui.incubatorListWidget.createIncubatorDialog.title" }), open: open, onClose: onClose, className: (0, classnames_1.default)(classes.root, className) }, rest, { children: dialogContent })));
@@ -36,12 +36,12 @@ const classes = {
36
36
  const Root = (0, material_1.styled)(Widget_1.default, {
37
37
  name: constants_1.PREFIX,
38
38
  slot: 'Root',
39
- overridesResolver: (props, styles) => styles.root
40
- })(({ theme }) => ({}));
39
+ overridesResolver: (_props, styles) => styles.root
40
+ })(() => ({}));
41
41
  const DialogRoot = (0, material_1.styled)(BaseDialog_1.default, {
42
42
  name: constants_1.PREFIX,
43
43
  slot: 'DialogRoot'
44
- })(({ theme }) => ({}));
44
+ })(() => ({}));
45
45
  /**
46
46
  * > API documentation for the Community-JS Incubator List Widget component. Learn about the available props and the CSS API.
47
47
  *
@@ -218,10 +218,10 @@ function IncubatorListWidget(inProps) {
218
218
  if (!state.initialized) {
219
219
  return (0, jsx_runtime_1.jsx)(Skeleton_1.default, {});
220
220
  }
221
- const content = ((0, jsx_runtime_1.jsxs)(material_1.CardContent, { children: [(0, jsx_runtime_1.jsxs)(material_1.Box, Object.assign({ className: classes.header }, { children: [(0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ className: classes.title, variant: 'h5' }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.incubatorListWidget.title", defaultMessage: "ui.incubatorListWidget.title" }) })), (0, jsx_runtime_1.jsx)(material_1.IconButton, Object.assign({ className: classes.helpPopover, color: "primary", "aria-label": "info", component: "span", onClick: handleClickHelpButton }, { children: (0, jsx_runtime_1.jsx)(material_1.Icon, { children: "help_outline" }) })), isOpen && ((0, jsx_runtime_1.jsx)(material_1.Popover, Object.assign({ open: isOpen, anchorEl: anchorEl, onClose: handlePopoverClose, anchorOrigin: {
221
+ const content = ((0, jsx_runtime_1.jsxs)(material_1.CardContent, { children: [(0, jsx_runtime_1.jsxs)(material_1.Box, Object.assign({ className: classes.header }, { children: [(0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ className: classes.title, variant: "h5" }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.incubatorListWidget.title", defaultMessage: "ui.incubatorListWidget.title" }) })), (0, jsx_runtime_1.jsx)(material_1.IconButton, Object.assign({ className: classes.helpPopover, color: "primary", "aria-label": "info", component: "span", onClick: handleClickHelpButton }, { children: (0, jsx_runtime_1.jsx)(material_1.Icon, { children: "help_outline" }) })), isOpen && ((0, jsx_runtime_1.jsx)(material_1.Popover, Object.assign({ open: isOpen, anchorEl: anchorEl, onClose: handlePopoverClose, anchorOrigin: {
222
222
  vertical: 'bottom',
223
223
  horizontal: 'right'
224
- } }, { children: (0, jsx_runtime_1.jsx)(material_1.Box, Object.assign({ sx: { p: '10px' } }, { children: (0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ component: 'span', sx: { whiteSpace: 'pre-line' } }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.incubatorListWidget.popover", defaultMessage: "ui.incubatorListWidget.popover" }) })) })) })))] })), !state.count ? ((0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ className: classes.noResults, variant: "body2" }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.incubatorListWidget.noResults", defaultMessage: "ui.incubatorListWidget.noResults" }) }))) : ((0, jsx_runtime_1.jsxs)(react_1.default.Fragment, { children: [(0, jsx_runtime_1.jsx)(material_1.List, { children: state.results.slice(0, state.visibleItems).map((incubator) => ((0, jsx_runtime_1.jsx)(material_1.ListItem, { children: (0, jsx_runtime_1.jsx)(Incubator_1.default, Object.assign({ elevation: 0, incubator: incubator, subscribeButtonProps: { onSubscribe: handleSubscriptionsUpdate }, ButtonProps: { onClick: () => handleIncubatorDetailDialogOpening(incubator) } }, IncubatorProps)) }, incubator.id))) }), (0, jsx_runtime_1.jsxs)(material_1.Box, Object.assign({ className: classes.actions }, { children: [state.count > state.visibleItems && ((0, jsx_runtime_1.jsx)(material_1.Button, Object.assign({ className: classes.showMore, onClick: handleToggleDialogOpen }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.incubatorListWidget.ShowAll", defaultMessage: "ui.incubatorListWidget.ShowAll" }) }))), (0, jsx_runtime_1.jsx)(material_1.Button, Object.assign({ size: "small", onClick: () => setOpenCreateIncubatorDialog(true) }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.incubatorListWidget.SuggestNewTopic", defaultMessage: "ui.incubatorListWidget.SuggestNewTopic" }) }))] }))] })), openDialog && ((0, jsx_runtime_1.jsx)(DialogRoot, Object.assign({ className: classes.dialogRoot, title: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.incubatorListWidget.title", defaultMessage: "ui.incubatorListWidget.title" }), onClose: handleToggleDialogOpen, open: openDialog }, DialogProps, { children: (0, jsx_runtime_1.jsx)(InfiniteScroll_1.default, Object.assign({ dataLength: state.results.length, next: handleNext, hasMoreNext: Boolean(state.next), loaderNext: (0, jsx_runtime_1.jsx)(Incubator_1.IncubatorSkeleton, Object.assign({ elevation: 0 }, IncubatorProps)), height: isMobile ? '100vh' : 400, endMessage: (0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ className: classes.endMessage }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.incubatorListWidget.noMoreIncubators", defaultMessage: "ui.incubatorListWidget.noMoreIncubators" }) })) }, { children: (0, jsx_runtime_1.jsx)(material_1.List, { children: state.results.map((incubator) => ((0, jsx_runtime_1.jsx)(material_1.ListItem, { children: (0, jsx_runtime_1.jsx)(Incubator_1.default, Object.assign({ elevation: 0, incubator: incubator, subscribeButtonProps: { onSubscribe: handleSubscriptionsUpdate }, ButtonProps: { onClick: () => handleIncubatorDetailDialogOpening(incubator) } }, IncubatorProps)) }, incubator.id))) }) })) }))), openCreateIncubatorDialog && ((0, jsx_runtime_1.jsx)(CreateIncubatorDialog_1.default, { className: classes.createDialog, open: openCreateIncubatorDialog, onClose: handleCreateIncubatorDialogClose })), openIncubatorDetailDialog && ((0, jsx_runtime_1.jsx)(IncubatorDetail_1.default, { open: openIncubatorDetailDialog, onClose: handleIncubatorDetailDialogClose, incubator: detailObj, onSubscriptionsUpdate: handleSubscriptionsUpdate }))] }));
224
+ } }, { children: (0, jsx_runtime_1.jsx)(material_1.Box, Object.assign({ sx: { p: '10px' } }, { children: (0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ component: "span", sx: { whiteSpace: 'pre-line' } }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.incubatorListWidget.popover", defaultMessage: "ui.incubatorListWidget.popover" }) })) })) })))] })), !state.count ? ((0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ className: classes.noResults, variant: "body2" }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.incubatorListWidget.noResults", defaultMessage: "ui.incubatorListWidget.noResults" }) }))) : ((0, jsx_runtime_1.jsxs)(react_1.default.Fragment, { children: [(0, jsx_runtime_1.jsx)(material_1.List, { children: state.results.slice(0, state.visibleItems).map((incubator) => ((0, jsx_runtime_1.jsx)(material_1.ListItem, { children: (0, jsx_runtime_1.jsx)(Incubator_1.default, Object.assign({ elevation: 0, incubator: incubator, subscribeButtonProps: { onSubscribe: handleSubscriptionsUpdate }, ButtonProps: { onClick: () => handleIncubatorDetailDialogOpening(incubator) } }, IncubatorProps)) }, incubator.id))) }), (0, jsx_runtime_1.jsxs)(material_1.Box, Object.assign({ className: classes.actions }, { children: [state.count > state.visibleItems && ((0, jsx_runtime_1.jsx)(material_1.Button, Object.assign({ className: classes.showMore, onClick: handleToggleDialogOpen }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.incubatorListWidget.ShowAll", defaultMessage: "ui.incubatorListWidget.ShowAll" }) }))), (0, jsx_runtime_1.jsx)(material_1.Button, Object.assign({ size: "small", onClick: () => setOpenCreateIncubatorDialog(true) }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.incubatorListWidget.SuggestNewTopic", defaultMessage: "ui.incubatorListWidget.SuggestNewTopic" }) }))] }))] })), openDialog && ((0, jsx_runtime_1.jsx)(DialogRoot, Object.assign({ className: classes.dialogRoot, title: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.incubatorListWidget.title", defaultMessage: "ui.incubatorListWidget.title" }), onClose: handleToggleDialogOpen, open: openDialog }, DialogProps, { children: (0, jsx_runtime_1.jsx)(InfiniteScroll_1.default, Object.assign({ dataLength: state.results.length, next: handleNext, hasMoreNext: Boolean(state.next), loaderNext: (0, jsx_runtime_1.jsx)(Incubator_1.IncubatorSkeleton, Object.assign({ elevation: 0 }, IncubatorProps)), height: isMobile ? '100vh' : 400, endMessage: (0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ className: classes.endMessage }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.incubatorListWidget.noMoreIncubators", defaultMessage: "ui.incubatorListWidget.noMoreIncubators" }) })) }, { children: (0, jsx_runtime_1.jsx)(material_1.List, { children: state.results.map((incubator) => ((0, jsx_runtime_1.jsx)(material_1.ListItem, { children: (0, jsx_runtime_1.jsx)(Incubator_1.default, Object.assign({ elevation: 0, incubator: incubator, subscribeButtonProps: { onSubscribe: handleSubscriptionsUpdate }, ButtonProps: { onClick: () => handleIncubatorDetailDialogOpening(incubator) } }, IncubatorProps)) }, incubator.id))) }) })) }))), openCreateIncubatorDialog && ((0, jsx_runtime_1.jsx)(CreateIncubatorDialog_1.default, { className: classes.createDialog, open: openCreateIncubatorDialog, onClose: handleCreateIncubatorDialogClose })), openIncubatorDetailDialog && ((0, jsx_runtime_1.jsx)(IncubatorDetail_1.default, { open: openIncubatorDetailDialog, onClose: handleIncubatorDetailDialogClose, incubator: detailObj, onSubscriptionsUpdate: handleSubscriptionsUpdate }))] }));
225
225
  return ((0, jsx_runtime_1.jsx)(Root, Object.assign({ className: (0, classnames_1.default)(classes.root, className) }, rest, { children: content })));
226
226
  }
227
227
  exports.default = IncubatorListWidget;
@@ -5,7 +5,6 @@ const jsx_runtime_1 = require("react/jsx-runtime");
5
5
  const react_1 = require("react");
6
6
  const material_1 = require("@mui/material");
7
7
  const Errors_1 = require("../../constants/Errors");
8
- const lab_1 = require("@mui/lab");
9
8
  const react_intl_1 = require("react-intl");
10
9
  const classnames_1 = tslib_1.__importDefault(require("classnames"));
11
10
  const utils_1 = require("@selfcommunity/utils");
@@ -15,11 +14,11 @@ const PREFIX = 'SCIncubatorSubscribeButton';
15
14
  const classes = {
16
15
  root: `${PREFIX}-root`
17
16
  };
18
- const Root = (0, material_1.styled)(lab_1.LoadingButton, {
17
+ const Root = (0, material_1.styled)(material_1.Button, {
19
18
  name: PREFIX,
20
19
  slot: 'Root',
21
- overridesResolver: (props, styles) => styles.root
22
- })(({ theme }) => ({}));
20
+ overridesResolver: (_props, styles) => styles.root
21
+ })(() => ({}));
23
22
  /**
24
23
  * > API documentation for the Community-JS Incubator Subscribe Button component. Learn about the available props and the CSS API.
25
24
 
@@ -187,7 +187,7 @@ function IncubatorSuggestionWidget(inProps) {
187
187
  if (!state.initialized) {
188
188
  return (0, jsx_runtime_1.jsx)(Skeleton_1.default, {});
189
189
  }
190
- const content = ((0, jsx_runtime_1.jsxs)(material_1.CardContent, { children: [(0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ className: classes.title, variant: 'h5' }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.incubatorSuggestionWidget.title", defaultMessage: "ui.incubatorSuggestionWidget.title" }) })), !state.count ? ((0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ className: classes.noResults, variant: "body2" }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.incubatorSuggestionWidget.noResults", defaultMessage: "ui.incubatorSuggestionWidget.noResults" }) }))) : ((0, jsx_runtime_1.jsxs)(react_1.default.Fragment, { children: [(0, jsx_runtime_1.jsx)(material_1.List, { children: state.results.slice(0, state.visibleItems).map((incubator) => ((0, jsx_runtime_1.jsx)(material_1.ListItem, { children: (0, jsx_runtime_1.jsx)(Incubator_1.default, Object.assign({ elevation: 0, incubator: incubator, subscribeButtonProps: { onSubscribe: handleSubscriptionsUpdate }, ButtonProps: { onClick: () => handleIncubatorDetailDialogOpening(incubator) } }, IncubatorProps)) }, incubator.id))) }), state.count > state.visibleItems && ((0, jsx_runtime_1.jsx)(material_1.Button, Object.assign({ className: classes.showMore, onClick: handleToggleDialogOpen }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.incubatorSuggestionWidget.ShowAll", defaultMessage: "ui.incubatorSuggestionWidget.ShowAll" }) })))] })), openDialog && ((0, jsx_runtime_1.jsx)(DialogRoot, Object.assign({ className: classes.dialogRoot, title: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.incubatorSuggestionWidget.title", defaultMessage: "ui.incubatorSuggestionWidget.title" }), onClose: handleToggleDialogOpen, open: openDialog }, DialogProps, { children: (0, jsx_runtime_1.jsx)(InfiniteScroll_1.default, Object.assign({ dataLength: state.results.length, next: handleNext, hasMoreNext: Boolean(state.next), loaderNext: (0, jsx_runtime_1.jsx)(Incubator_1.IncubatorSkeleton, Object.assign({ elevation: 0 }, IncubatorProps)), height: isMobile ? '100vh' : 400, endMessage: (0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ className: classes.endMessage }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.incubatorSuggestionWidget.noMoreIncubators", defaultMessage: "ui.incubatorSuggestionWidget.noMoreIncubators" }) })) }, { children: (0, jsx_runtime_1.jsx)(material_1.List, { children: state.results.map((incubator) => ((0, jsx_runtime_1.jsx)(material_1.ListItem, { children: (0, jsx_runtime_1.jsx)(Incubator_1.default, Object.assign({ elevation: 0, incubator: incubator, subscribeButtonProps: { onSubscribe: handleSubscriptionsUpdate }, ButtonProps: { onClick: () => handleIncubatorDetailDialogOpening(incubator) } }, IncubatorProps)) }, incubator.id))) }) })) }))), openIncubatorDetailDialog && ((0, jsx_runtime_1.jsx)(IncubatorDetail_1.default, { open: openIncubatorDetailDialog, onClose: handleIncubatorDetailDialogClose, incubator: detailObj, onSubscriptionsUpdate: handleSubscriptionsUpdate }))] }));
190
+ const content = ((0, jsx_runtime_1.jsxs)(material_1.CardContent, { children: [(0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ className: classes.title, variant: "h5" }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.incubatorSuggestionWidget.title", defaultMessage: "ui.incubatorSuggestionWidget.title" }) })), !state.count ? ((0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ className: classes.noResults, variant: "body2" }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.incubatorSuggestionWidget.noResults", defaultMessage: "ui.incubatorSuggestionWidget.noResults" }) }))) : ((0, jsx_runtime_1.jsxs)(react_1.default.Fragment, { children: [(0, jsx_runtime_1.jsx)(material_1.List, { children: state.results.slice(0, state.visibleItems).map((incubator) => ((0, jsx_runtime_1.jsx)(material_1.ListItem, { children: (0, jsx_runtime_1.jsx)(Incubator_1.default, Object.assign({ elevation: 0, incubator: incubator, subscribeButtonProps: { onSubscribe: handleSubscriptionsUpdate }, ButtonProps: { onClick: () => handleIncubatorDetailDialogOpening(incubator) } }, IncubatorProps)) }, incubator.id))) }), state.count > state.visibleItems && ((0, jsx_runtime_1.jsx)(material_1.Button, Object.assign({ className: classes.showMore, onClick: handleToggleDialogOpen }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.incubatorSuggestionWidget.ShowAll", defaultMessage: "ui.incubatorSuggestionWidget.ShowAll" }) })))] })), openDialog && ((0, jsx_runtime_1.jsx)(DialogRoot, Object.assign({ className: classes.dialogRoot, title: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.incubatorSuggestionWidget.title", defaultMessage: "ui.incubatorSuggestionWidget.title" }), onClose: handleToggleDialogOpen, open: openDialog }, DialogProps, { children: (0, jsx_runtime_1.jsx)(InfiniteScroll_1.default, Object.assign({ dataLength: state.results.length, next: handleNext, hasMoreNext: Boolean(state.next), loaderNext: (0, jsx_runtime_1.jsx)(Incubator_1.IncubatorSkeleton, Object.assign({ elevation: 0 }, IncubatorProps)), height: isMobile ? '100vh' : 400, endMessage: (0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ className: classes.endMessage }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.incubatorSuggestionWidget.noMoreIncubators", defaultMessage: "ui.incubatorSuggestionWidget.noMoreIncubators" }) })) }, { children: (0, jsx_runtime_1.jsx)(material_1.List, { children: state.results.map((incubator) => ((0, jsx_runtime_1.jsx)(material_1.ListItem, { children: (0, jsx_runtime_1.jsx)(Incubator_1.default, Object.assign({ elevation: 0, incubator: incubator, subscribeButtonProps: { onSubscribe: handleSubscriptionsUpdate }, ButtonProps: { onClick: () => handleIncubatorDetailDialogOpening(incubator) } }, IncubatorProps)) }, incubator.id))) }) })) }))), openIncubatorDetailDialog && ((0, jsx_runtime_1.jsx)(IncubatorDetail_1.default, { open: openIncubatorDetailDialog, onClose: handleIncubatorDetailDialogClose, incubator: detailObj, onSubscriptionsUpdate: handleSubscriptionsUpdate }))] }));
191
191
  return ((0, jsx_runtime_1.jsx)(Root, Object.assign({ className: (0, classnames_1.default)(classes.root, className) }, rest, { children: content })));
192
192
  }
193
193
  exports.default = IncubatorSuggestionWidget;
@@ -2,7 +2,6 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
4
  const jsx_runtime_1 = require("react/jsx-runtime");
5
- const lab_1 = require("@mui/lab");
6
5
  const material_1 = require("@mui/material");
7
6
  const system_1 = require("@mui/system");
8
7
  const api_services_1 = require("@selfcommunity/api-services");
@@ -16,7 +15,7 @@ const PREFIX = 'SCInviteUserEventButton';
16
15
  const classes = {
17
16
  root: `${PREFIX}-root`
18
17
  };
19
- const InviteButton = (0, material_1.styled)(lab_1.LoadingButton, {
18
+ const InviteButton = (0, material_1.styled)(material_1.Button, {
20
19
  name: PREFIX,
21
20
  slot: 'Root',
22
21
  overridesResolver: (_props, styles) => styles.root
@@ -8,7 +8,6 @@ const material_1 = require("@mui/material");
8
8
  const constants_1 = require("./constants");
9
9
  const types_1 = require("../../types");
10
10
  const react_intl_1 = require("react-intl");
11
- const lab_1 = require("@mui/lab");
12
11
  const classes = {
13
12
  root: `${constants_1.PREFIX}-root`,
14
13
  startItems: `${constants_1.PREFIX}-start-items`,
@@ -18,9 +17,9 @@ const classes = {
18
17
  const Root = (0, material_1.styled)(material_1.AppBar, {
19
18
  name: constants_1.PREFIX,
20
19
  slot: 'Root',
21
- overridesResolver: (props, styles) => [styles.root],
20
+ overridesResolver: (_props, styles) => [styles.root],
22
21
  shouldForwardProp: (prop) => prop !== 'open'
23
- })(({ theme }) => ({}));
22
+ })(() => ({}));
24
23
  function LessonAppbar(inProps) {
25
24
  // PROPS
26
25
  const props = (0, system_1.useThemeProps)({
@@ -28,6 +27,6 @@ function LessonAppbar(inProps) {
28
27
  name: constants_1.PREFIX
29
28
  });
30
29
  const { className = null, title = '', showComments, activePanel = null, handleOpen, onSave, editMode, onArrowBackClick, updating } = props, rest = tslib_1.__rest(props, ["className", "title", "showComments", "activePanel", "handleOpen", "onSave", "editMode", "onArrowBackClick", "updating"]);
31
- return ((0, jsx_runtime_1.jsx)(Root, Object.assign({ position: "fixed", open: Boolean(activePanel), className: (0, classnames_1.default)(classes.root, className) }, rest, { children: (0, jsx_runtime_1.jsxs)(material_1.Toolbar, { children: [(0, jsx_runtime_1.jsxs)(material_1.Box, Object.assign({ className: classes.startItems }, { children: [(0, jsx_runtime_1.jsx)(material_1.IconButton, Object.assign({ edge: "start", onClick: onArrowBackClick }, { children: (0, jsx_runtime_1.jsx)(material_1.Icon, { children: "arrow_back" }) })), (0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ variant: "h6", className: classes.title }, { children: title }))] })), editMode ? ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(material_1.IconButton, Object.assign({ onClick: () => handleOpen(types_1.SCLessonActionsType.SETTINGS), color: "primary" }, { children: (0, jsx_runtime_1.jsx)(material_1.Icon, { children: "settings" }) })), (0, jsx_runtime_1.jsx)(lab_1.LoadingButton, Object.assign({ variant: "contained", size: "small", onClick: onSave, loading: updating }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.lessonAppbar.button.save", defaultMessage: "ui.lessonAppbar.button.save" }) }))] })) : ((0, jsx_runtime_1.jsxs)(material_1.Box, Object.assign({ className: classes.endItems }, { children: [showComments && ((0, jsx_runtime_1.jsx)(material_1.IconButton, Object.assign({ onClick: () => handleOpen(types_1.SCLessonActionsType.COMMENTS) }, { children: (0, jsx_runtime_1.jsx)(material_1.Icon, { children: "chat_bubble_outline" }) }))), (0, jsx_runtime_1.jsx)(material_1.IconButton, Object.assign({ onClick: () => handleOpen(types_1.SCLessonActionsType.LESSONS) }, { children: (0, jsx_runtime_1.jsx)(material_1.Icon, { children: "courses" }) }))] })))] }) })));
30
+ return ((0, jsx_runtime_1.jsx)(Root, Object.assign({ position: "fixed", open: Boolean(activePanel), className: (0, classnames_1.default)(classes.root, className) }, rest, { children: (0, jsx_runtime_1.jsxs)(material_1.Toolbar, { children: [(0, jsx_runtime_1.jsxs)(material_1.Box, Object.assign({ className: classes.startItems }, { children: [(0, jsx_runtime_1.jsx)(material_1.IconButton, Object.assign({ edge: "start", onClick: onArrowBackClick }, { children: (0, jsx_runtime_1.jsx)(material_1.Icon, { children: "arrow_back" }) })), (0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ variant: "h6", className: classes.title }, { children: title }))] })), editMode ? ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(material_1.IconButton, Object.assign({ onClick: () => handleOpen(types_1.SCLessonActionsType.SETTINGS), color: "primary" }, { children: (0, jsx_runtime_1.jsx)(material_1.Icon, { children: "settings" }) })), (0, jsx_runtime_1.jsx)(material_1.Button, Object.assign({ variant: "contained", size: "small", onClick: onSave, loading: updating }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.lessonAppbar.button.save", defaultMessage: "ui.lessonAppbar.button.save" }) }))] })) : ((0, jsx_runtime_1.jsxs)(material_1.Box, Object.assign({ className: classes.endItems }, { children: [showComments && ((0, jsx_runtime_1.jsx)(material_1.IconButton, Object.assign({ onClick: () => handleOpen(types_1.SCLessonActionsType.COMMENTS) }, { children: (0, jsx_runtime_1.jsx)(material_1.Icon, { children: "chat_bubble_outline" }) }))), (0, jsx_runtime_1.jsx)(material_1.IconButton, Object.assign({ onClick: () => handleOpen(types_1.SCLessonActionsType.LESSONS) }, { children: (0, jsx_runtime_1.jsx)(material_1.Icon, { children: "courses" }) }))] })))] }) })));
32
31
  }
33
32
  exports.default = LessonAppbar;
@@ -174,7 +174,7 @@ function LessonCommentObjects(inProps) {
174
174
  if (!commentsObject.comments.length && commentsObject.isLoadingNext) {
175
175
  return (0, jsx_runtime_1.jsx)(Skeleton_1.default, Object.assign({ count: 5 }, CommentsObjectSkeletonProps));
176
176
  }
177
- return ((0, jsx_runtime_1.jsx)(Root, Object.assign({ id: id, className: (0, classnames_1.default)(classes.root, className) }, rest, { children: (0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: commentsObject.comments.length > 0 ? ((0, jsx_runtime_1.jsx)(InfiniteScroll_1.default, Object.assign({ height: '100%', dataLength: commentsObject.comments.length, next: handleNext, hasMoreNext: Boolean(commentsObject.next), loaderNext: (0, jsx_runtime_1.jsx)(LessonCommentObject_1.LessonCommentObjectSkeleton, Object.assign({}, CommentObjectSkeletonProps, { count: 1 })) }, { children: (0, jsx_runtime_1.jsx)(material_1.List, Object.assign({ ref: commentsEndRef }, { children: commentsObject.comments.map((c, index) => ((0, jsx_runtime_1.jsx)(material_1.ListItem, { children: (0, jsx_runtime_1.jsx)(LessonCommentObject_1.default, Object.assign({ commentObject: c, lessonObject: commentsObject.lessonObject, onDelete: (comment) => handleCommentsUpdate(comment, true), isEditing: (editing) => setIsEditing(editing) }, CommentComponentProps, { CommentObjectSkeletonProps: CommentObjectSkeletonProps }), c.id) }, index))) })) }))) : null }), !editing && ((0, jsx_runtime_1.jsx)(CommentObjectReply_1.default, { id: `reply-lessonCommentObjects`, showAvatar: false, replyIcon: true, editable: !commenting, onReply: handleCommentAction, EditorProps: {
177
+ return ((0, jsx_runtime_1.jsx)(Root, Object.assign({ id: id, className: (0, classnames_1.default)(classes.root, className) }, rest, { children: (0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: commentsObject.comments.length > 0 ? ((0, jsx_runtime_1.jsx)(InfiniteScroll_1.default, Object.assign({ height: "100%", dataLength: commentsObject.comments.length, next: handleNext, hasMoreNext: Boolean(commentsObject.next), loaderNext: (0, jsx_runtime_1.jsx)(LessonCommentObject_1.LessonCommentObjectSkeleton, Object.assign({}, CommentObjectSkeletonProps, { count: 1 })) }, { children: (0, jsx_runtime_1.jsx)(material_1.List, Object.assign({ ref: commentsEndRef }, { children: commentsObject.comments.map((c, index) => ((0, jsx_runtime_1.jsx)(material_1.ListItem, { children: (0, jsx_runtime_1.jsx)(LessonCommentObject_1.default, Object.assign({ commentObject: c, lessonObject: commentsObject.lessonObject, onDelete: (comment) => handleCommentsUpdate(comment, true), isEditing: (editing) => setIsEditing(editing) }, CommentComponentProps, { CommentObjectSkeletonProps: CommentObjectSkeletonProps }), c.id) }, index))) })) }))) : null }), !editing && ((0, jsx_runtime_1.jsx)(CommentObjectReply_1.default, { id: `reply-lessonCommentObjects`, showAvatar: false, replyIcon: true, editable: !commenting, onReply: handleCommentAction, EditorProps: {
178
178
  placeholder: intl.formatMessage(messages.commentEditorPlaceholder),
179
179
  uploadFile: true,
180
180
  uploadImage: false,
@@ -9,7 +9,6 @@ const material_1 = require("@mui/material");
9
9
  const constants_1 = require("./constants");
10
10
  const react_intl_1 = require("react-intl");
11
11
  const types_1 = require("@selfcommunity/types");
12
- const lab_1 = require("@mui/lab");
13
12
  const classes = {
14
13
  root: `${constants_1.PREFIX}-root`,
15
14
  form: `${constants_1.PREFIX}-form`,
@@ -39,6 +38,6 @@ function LessonEditForm(inProps) {
39
38
  /**
40
39
  * Rendering
41
40
  */
42
- return ((0, jsx_runtime_1.jsxs)(Root, Object.assign({ className: (0, classnames_1.default)(className, classes.root) }, rest, { children: [(0, jsx_runtime_1.jsxs)(material_1.Box, Object.assign({ className: classes.form }, { children: [(0, jsx_runtime_1.jsxs)(material_1.FormControl, { children: [(0, jsx_runtime_1.jsx)(material_1.FormLabel, Object.assign({ id: "status" }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.lessonEditForm.status.title", defaultMessage: "ui.lessonEditForm.status.title" }) })), (0, jsx_runtime_1.jsxs)(material_1.RadioGroup, Object.assign({ "aria-labelledby": "course-status-radio-buttons-group", name: "course-status-radio-buttons-group", value: settings.status, onChange: (e) => handleChange('status', e.target.value) }, { children: [(0, jsx_runtime_1.jsx)(material_1.FormControlLabel, { value: types_1.SCCourseLessonStatusType.DRAFT, control: (0, jsx_runtime_1.jsx)(material_1.Radio, {}), label: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.lessonEditForm.status.draft", defaultMessage: "ui.lessonEditForm.status.draft" }) }), (0, jsx_runtime_1.jsx)(material_1.FormControlLabel, { value: types_1.SCCourseLessonStatusType.PUBLISHED, control: (0, jsx_runtime_1.jsx)(material_1.Radio, {}), label: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.lessonEditForm.status.published", defaultMessage: "ui.lessonEditForm.status.published" }) })] }))] }), (0, jsx_runtime_1.jsxs)(material_1.FormControl, Object.assign({ className: classes.settings }, { children: [(0, jsx_runtime_1.jsx)(material_1.FormLabel, Object.assign({ id: "settings" }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.lessonEditForm.settings.title", defaultMessage: "ui.lessonEditForm.settings.title" }) })), (0, jsx_runtime_1.jsx)(material_1.FormControlLabel, { control: (0, jsx_runtime_1.jsx)(material_1.Checkbox, { checked: settings.comments_enabled, onChange: (e) => handleChange('comments_enabled', e.target.checked) }), label: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.lessonEditForm.settings.enableComments", defaultMessage: "ui.lessonEditForm.settings.enableComments" }) })] }))] })), (0, jsx_runtime_1.jsx)(lab_1.LoadingButton, Object.assign({ className: classes.button, variant: "contained", size: "small", onClick: onSave, loading: updating }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.lessonEditForm.button.save", defaultMessage: "ui.lessonEditForm.button.save" }) }))] })));
41
+ return ((0, jsx_runtime_1.jsxs)(Root, Object.assign({ className: (0, classnames_1.default)(className, classes.root) }, rest, { children: [(0, jsx_runtime_1.jsxs)(material_1.Box, Object.assign({ className: classes.form }, { children: [(0, jsx_runtime_1.jsxs)(material_1.FormControl, { children: [(0, jsx_runtime_1.jsx)(material_1.FormLabel, Object.assign({ id: "status" }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.lessonEditForm.status.title", defaultMessage: "ui.lessonEditForm.status.title" }) })), (0, jsx_runtime_1.jsxs)(material_1.RadioGroup, Object.assign({ "aria-labelledby": "course-status-radio-buttons-group", name: "course-status-radio-buttons-group", value: settings.status, onChange: (e) => handleChange('status', e.target.value) }, { children: [(0, jsx_runtime_1.jsx)(material_1.FormControlLabel, { value: types_1.SCCourseLessonStatusType.DRAFT, control: (0, jsx_runtime_1.jsx)(material_1.Radio, {}), label: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.lessonEditForm.status.draft", defaultMessage: "ui.lessonEditForm.status.draft" }) }), (0, jsx_runtime_1.jsx)(material_1.FormControlLabel, { value: types_1.SCCourseLessonStatusType.PUBLISHED, control: (0, jsx_runtime_1.jsx)(material_1.Radio, {}), label: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.lessonEditForm.status.published", defaultMessage: "ui.lessonEditForm.status.published" }) })] }))] }), (0, jsx_runtime_1.jsxs)(material_1.FormControl, Object.assign({ className: classes.settings }, { children: [(0, jsx_runtime_1.jsx)(material_1.FormLabel, Object.assign({ id: "settings" }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.lessonEditForm.settings.title", defaultMessage: "ui.lessonEditForm.settings.title" }) })), (0, jsx_runtime_1.jsx)(material_1.FormControlLabel, { control: (0, jsx_runtime_1.jsx)(material_1.Checkbox, { checked: settings.comments_enabled, onChange: (e) => handleChange('comments_enabled', e.target.checked) }), label: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.lessonEditForm.settings.enableComments", defaultMessage: "ui.lessonEditForm.settings.enableComments" }) })] }))] })), (0, jsx_runtime_1.jsx)(material_1.Button, Object.assign({ className: classes.button, variant: "contained", size: "small", onClick: onSave, loading: updating }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.lessonEditForm.button.save", defaultMessage: "ui.lessonEditForm.button.save" }) }))] })));
43
42
  }
44
43
  exports.default = LessonEditForm;
@@ -13,8 +13,8 @@ const x_date_pickers_1 = require("@mui/x-date-pickers");
13
13
  const types_1 = require("@selfcommunity/types");
14
14
  const AdapterDateFns_1 = require("@mui/x-date-pickers/AdapterDateFns");
15
15
  const react_core_1 = require("@selfcommunity/react-core");
16
- const it_1 = tslib_1.__importDefault(require("date-fns/locale/it"));
17
- const en_US_1 = tslib_1.__importDefault(require("date-fns/locale/en-US"));
16
+ const it_1 = require("date-fns/locale/it");
17
+ const en_US_1 = require("date-fns/locale/en-US");
18
18
  const api_services_1 = require("@selfcommunity/api-services");
19
19
  const Errors_1 = require("../../constants/Errors");
20
20
  const utils_1 = require("@selfcommunity/utils");
@@ -135,37 +135,45 @@ function LessonReleaseMenu(inProps) {
135
135
  id: 'ui.lessonReleaseMenu.now.label',
136
136
  defaultMessage: 'ui.lessonReleaseMenu.now.label'
137
137
  });
138
- return ((0, jsx_runtime_1.jsx)(Root, Object.assign({ className: (0, classnames_1.default)(className, classes.root) }, rest, { children: course && course.type === types_1.SCCourseTypologyType.SCHEDULED ? ((0, jsx_runtime_1.jsx)(x_date_pickers_1.LocalizationProvider, Object.assign({ dateAdapter: AdapterDateFns_1.AdapterDateFns, adapterLocale: scContext.settings.locale.default === 'it' ? it_1.default : en_US_1.default, localeText: {
138
+ return ((0, jsx_runtime_1.jsx)(Root, Object.assign({ className: (0, classnames_1.default)(className, classes.root) }, rest, { children: course && course.type === types_1.SCCourseTypologyType.SCHEDULED ? ((0, jsx_runtime_1.jsx)(x_date_pickers_1.LocalizationProvider, Object.assign({ dateAdapter: AdapterDateFns_1.AdapterDateFns, adapterLocale: scContext.settings.locale.default === 'it' ? it_1.it : en_US_1.enUS, localeText: {
139
139
  okButtonLabel: `${intl.formatMessage(messages.pickerOkMessage)}`,
140
140
  cancelButtonLabel: `${intl.formatMessage(messages.pickerCancelMessage)}`,
141
141
  clearButtonLabel: `${intl.formatMessage(messages.pickerClearMessage)}`
142
- } }, { children: (0, jsx_runtime_1.jsx)(x_date_pickers_1.MobileDateTimePicker, { className: classes.picker, disablePast: true, label: drippedAt && ((0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.lessonReleaseMenu.scheduled.picker.placeholder", defaultMessage: "ui.lessonReleaseMenu.scheduled.picker.placeholder" })), value: drippedAt, slots: {
143
- //actionBar: PickerActionBar,
142
+ } }, { children: (0, jsx_runtime_1.jsx)(x_date_pickers_1.MobileDateTimePicker, { className: classes.picker, disablePast: true, label: drippedAt && ((0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.lessonReleaseMenu.scheduled.picker.placeholder", defaultMessage: "ui.lessonReleaseMenu.scheduled.picker.placeholder" })), value: drippedAt, enableAccessibleFieldDOMStructure: false, localeText: {
143
+ toolbarTitle: intl.formatMessage(messages.pickerPlaceholder)
144
+ }, slots: {
144
145
  tabs: (props) => (0, jsx_runtime_1.jsx)(x_date_pickers_1.DateTimePickerTabs, Object.assign({}, props)),
145
- textField: (params) => ((0, jsx_runtime_1.jsx)(material_2.TextField, Object.assign({}, params, { error: false, InputProps: Object.assign(Object.assign({}, params.InputProps), { placeholder: `${intl.formatMessage(messages.pickerPlaceholder)}`, endAdornment: ((0, jsx_runtime_1.jsx)(material_2.InputAdornment, Object.assign({ position: "end" }, { children: (0, jsx_runtime_1.jsx)(material_2.IconButton, Object.assign({ disabled: isDisabled }, { children: (0, jsx_runtime_1.jsx)(material_2.Icon, { children: "expand_more" }) })) }))) }) })))
146
+ openPickerButton: (params) => ((0, jsx_runtime_1.jsx)(material_2.IconButton, Object.assign({}, params, { children: (0, jsx_runtime_1.jsx)(material_2.Icon, { children: "expand_more" }) })))
146
147
  }, slotProps: {
147
148
  tabs: {
148
149
  hidden: false
149
150
  },
150
- toolbar: {
151
- // eslint-disable-next-line @typescript-eslint/ban-ts-ignore,@typescript-eslint/ban-ts-comment
152
- // @ts-ignore
153
- toolbarTitle: ((0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.lessonReleaseMenu.scheduled.picker.placeholder", defaultMessage: "ui.lessonReleaseMenu.scheduled.picker.placeholder" }))
154
- },
155
151
  actionBar: {
156
152
  actions: ['cancel', 'clear', 'accept']
153
+ },
154
+ textField: {
155
+ error: false,
156
+ slotProps: {
157
+ input: {
158
+ placeholder: intl.formatMessage(messages.pickerPlaceholder)
159
+ }
160
+ }
157
161
  }
158
- }, onChange: (value) => setDrippedAt(value), onAccept: handleUpdate, onClear: () => setDrippedAt(null), disabled: isDisabled }) }))) : ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(material_2.TextField, { size: "small", value: placeholderStructured, onClick: isDisabled ? undefined : handleClick, InputProps: {
159
- endAdornment: ((0, jsx_runtime_1.jsx)(material_2.InputAdornment, Object.assign({ position: "end" }, { children: (0, jsx_runtime_1.jsx)(material_2.IconButton, Object.assign({ onClick: handleClick, disabled: isDisabled }, { children: (0, jsx_runtime_1.jsx)(material_2.Icon, { children: "expand_more" }) })) })))
162
+ }, onChange: setDrippedAt, onAccept: handleUpdate, disabled: isDisabled }) }))) : ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(material_2.TextField, { size: "small", value: placeholderStructured, onClick: isDisabled ? undefined : handleClick, slotProps: {
163
+ input: {
164
+ endAdornment: ((0, jsx_runtime_1.jsx)(material_2.InputAdornment, Object.assign({ position: "end" }, { children: (0, jsx_runtime_1.jsx)(material_2.IconButton, Object.assign({ onClick: handleClick, disabled: isDisabled }, { children: (0, jsx_runtime_1.jsx)(material_2.Icon, { children: "expand_more" }) })) })))
165
+ }
160
166
  }, disabled: isDisabled }), (0, jsx_runtime_1.jsxs)(PopoverRoot, Object.assign({ className: classes.popoverRoot, open: open, anchorEl: anchorEl, onClose: handleClose, anchorOrigin: {
161
167
  vertical: 'bottom',
162
168
  horizontal: 'left'
163
169
  }, transformOrigin: {
164
170
  vertical: 'top',
165
171
  horizontal: 'left'
166
- } }, { children: [(0, jsx_runtime_1.jsx)(material_2.Typography, Object.assign({ variant: "h6" }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.lessonReleaseMenu.dialog.title", defaultMessage: "ui.lessonReleaseMenu.dialog.title" }) })), (0, jsx_runtime_1.jsxs)(material_2.Box, Object.assign({ className: classes.popoverContent }, { children: [(0, jsx_runtime_1.jsxs)(material_2.Box, Object.assign({ className: classes.popoverSelection }, { children: [(0, jsx_runtime_1.jsx)(material_2.TextField, { type: "number", value: dripDelay, onChange: handleValueChange, InputProps: {
167
- inputProps: {
168
- min: 0
172
+ } }, { children: [(0, jsx_runtime_1.jsx)(material_2.Typography, Object.assign({ variant: "h6" }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.lessonReleaseMenu.dialog.title", defaultMessage: "ui.lessonReleaseMenu.dialog.title" }) })), (0, jsx_runtime_1.jsxs)(material_2.Box, Object.assign({ className: classes.popoverContent }, { children: [(0, jsx_runtime_1.jsxs)(material_2.Box, Object.assign({ className: classes.popoverSelection }, { children: [(0, jsx_runtime_1.jsx)(material_2.TextField, { type: "number", value: dripDelay, onChange: handleValueChange, slotProps: {
173
+ input: {
174
+ inputProps: {
175
+ min: 0
176
+ }
169
177
  }
170
178
  } }), (0, jsx_runtime_1.jsx)(material_2.FormControl, { children: (0, jsx_runtime_1.jsxs)(material_2.RadioGroup, Object.assign({ value: unit, onChange: handleUnitChange }, { children: [(0, jsx_runtime_1.jsx)(material_2.FormControlLabel, { value: constants_1.unitType.DAYS, control: (0, jsx_runtime_1.jsx)(material_2.Radio, { size: "small" }), label: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.lessonReleaseMenu.dialog.days", defaultMessage: "ui.lessonReleaseMenu.dialog.days" }) }), (0, jsx_runtime_1.jsx)(material_2.FormControlLabel, { value: constants_1.unitType.WEEKS, control: (0, jsx_runtime_1.jsx)(material_2.Radio, { size: "small" }), label: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.lessonReleaseMenu.dialog.weeks", defaultMessage: "ui.lessonReleaseMenu.dialog.weeks" }) })] })) })] })), (0, jsx_runtime_1.jsx)(material_2.Typography, Object.assign({ variant: "body1" }, { children: dripDelay > 0 ? ((0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: `ui.lessonReleaseMenu.dialog.info.structured.${unit}`, defaultMessage: `ui.lessonReleaseMenu.dialog.info.structured.${unit}`, values: { total: dripDelay } })) : ((0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.lessonReleaseMenu.dialog.info.now", defaultMessage: "ui.lessonReleaseMenu.dialog.info.now" })) })), (0, jsx_runtime_1.jsx)(material_2.Button, Object.assign({ className: classes.popoverAction, variant: "contained", disabled: section.drip_delay === dripDelay, onClick: handleSave }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.lessonReleaseMenu.dialog.button.done", defaultMessage: "ui.lessonReleaseMenu.dialog.button.done" }) }))] }))] }))] })) })));
171
179
  }
@@ -2,7 +2,6 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
4
  const jsx_runtime_1 = require("react/jsx-runtime");
5
- const lab_1 = require("@mui/lab");
6
5
  const material_1 = require("@mui/material");
7
6
  const system_1 = require("@mui/system");
8
7
  const types_1 = require("@selfcommunity/types");
@@ -36,7 +35,7 @@ const classes = {
36
35
  const Root = (0, material_1.styled)(material_1.Box, {
37
36
  name: constants_1.PREFIX,
38
37
  slot: 'Root'
39
- })(({ theme }) => ({}));
38
+ })(() => ({}));
40
39
  const messages = (0, react_intl_1.defineMessages)({
41
40
  title: {
42
41
  id: 'ui.liveStreamForm.title.placeholder',
@@ -200,9 +199,7 @@ function LiveStreamForm(inProps) {
200
199
  let _message;
201
200
  if (isFreeTrialTier && isCommunityOwner && !isEnterpriseTier) {
202
201
  _message = ((0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.liveStreamForm.selector.warningSubscriptionRequired", defaultMessage: "ui.liveStreamForm.selector.warningSubscriptionRequired", values: {
203
- // eslint-disable-next-line @typescript-eslint/ban-ts-ignore
204
- // @ts-ignore
205
- link: (...chunks) => ((0, jsx_runtime_1.jsx)(react_core_1.Link, Object.assign({ target: "_blank", to: `${isStage ? constants_2.HUB_STAGE : constants_2.HUB_PROD}dashboard/community/${communityStackId}/subscription` }, { children: chunks })))
202
+ link: (chunks) => ((0, jsx_runtime_1.jsx)(react_core_1.Link, Object.assign({ target: "_blank", to: `${isStage ? constants_2.HUB_STAGE : constants_2.HUB_PROD}dashboard/community/${communityStackId}/subscription` }, { children: chunks }), "ui.liveStreamForm.selector.warningSubscriptionRequired.link"))
206
203
  } }));
207
204
  }
208
205
  else if (timeRemaining !== null && timeRemaining <= constants_3.WARNING_THRESHOLD_EXPIRING_SOON) {
@@ -233,13 +230,19 @@ function LiveStreamForm(inProps) {
233
230
  /**
234
231
  * Renders root object
235
232
  */
236
- return ((0, jsx_runtime_1.jsxs)(Root, Object.assign({ className: (0, classnames_1.default)(classes.root, className) }, rest, { children: [warning, (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 }) })), Boolean(error['coverError']) && (0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ color: "error" }, { children: error['coverError'] })), (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.title, placeholder: `${intl.formatMessage(messages.title)}`, margin: "normal", value: field.title, name: "title", onChange: handleChange, InputProps: {
237
- endAdornment: (0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ variant: "body2" }, { children: LiveStream_1.LIVE_STREAM_TITLE_MAX_LENGTH - field.title.length }))
238
- }, error: Boolean(field.title.length > LiveStream_1.LIVE_STREAM_TITLE_MAX_LENGTH) || Boolean(error['titleError']), helperText: field.title.length > LiveStream_1.LIVE_STREAM_TITLE_MAX_LENGTH ? ((0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.liveStreamForm.title.error.maxLength", defaultMessage: "ui.liveStreamForm.title.error.maxLength" })) : error['titleError'] ? (error['titleError']) : null }), (0, jsx_runtime_1.jsx)(material_1.TextField, { required: true, className: classes.slug, placeholder: `${intl.formatMessage(messages.slug)}`, margin: "normal", value: field.slug, name: "slug", onChange: handleChange, InputProps: {
239
- endAdornment: (0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ variant: "body2" }, { children: LiveStream_1.LIVE_STREAM_SLUG_MAX_LENGTH - field.slug.length }))
240
- }, error: Boolean(field.slug.length > LiveStream_1.LIVE_STREAM_SLUG_MAX_LENGTH) || Boolean(error['slugError']), helperText: field.title.length > LiveStream_1.LIVE_STREAM_SLUG_MAX_LENGTH ? ((0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.liveStreamForm.slug.error.maxLength", defaultMessage: "ui.liveStreamForm.slug.error.maxLength" })) : error['slugError'] ? (error['slugError']) : null }), (0, jsx_runtime_1.jsx)(material_1.TextField, { multiline: true, rows: 4, className: classes.description, placeholder: `${intl.formatMessage(messages.description)}`, margin: "normal", value: field.description, name: "description", onChange: handleChange, InputProps: {
241
- 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) ? LiveStream_1.LIVE_STREAM_DESCRIPTION_MAX_LENGTH - field.description.length : LiveStream_1.LIVE_STREAM_DESCRIPTION_MAX_LENGTH })))
242
- }, error: Boolean(((_c = field.description) === null || _c === void 0 ? void 0 : _c.length) > LiveStream_1.LIVE_STREAM_DESCRIPTION_MAX_LENGTH), helperText: ((_d = field.description) === null || _d === void 0 ? void 0 : _d.length) > LiveStream_1.LIVE_STREAM_DESCRIPTION_MAX_LENGTH ? ((0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.liveStreamForm.description.error.maxLength", defaultMessage: "ui.liveStreamForm.description.error.maxLength" })) : null }), (0, jsx_runtime_1.jsx)(LiveStreamFormSettings_1.default, { settings: field.settings, onChange: handleChangeSettings }), genericError && ((0, jsx_runtime_1.jsx)(material_1.Box, Object.assign({ className: classes.genericError }, { children: (0, jsx_runtime_1.jsx)(material_1.Alert, Object.assign({ variant: "filled", severity: "error" }, { children: genericError })) }))), (0, jsx_runtime_1.jsx)(material_1.Box, Object.assign({ className: classes.actions }, { children: (0, jsx_runtime_1.jsx)(lab_1.LoadingButton, Object.assign({ loading: field.isSubmitting, disabled: !field.title ||
233
+ return ((0, jsx_runtime_1.jsxs)(Root, Object.assign({ className: (0, classnames_1.default)(classes.root, className) }, rest, { children: [warning, (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 }) })), Boolean(error['coverError']) && (0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ color: "error" }, { children: error['coverError'] })), (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.title, placeholder: `${intl.formatMessage(messages.title)}`, margin: "normal", value: field.title, name: "title", onChange: handleChange, slotProps: {
234
+ input: {
235
+ endAdornment: (0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ variant: "body2" }, { children: LiveStream_1.LIVE_STREAM_TITLE_MAX_LENGTH - field.title.length }))
236
+ }
237
+ }, error: Boolean(field.title.length > LiveStream_1.LIVE_STREAM_TITLE_MAX_LENGTH) || Boolean(error['titleError']), helperText: field.title.length > LiveStream_1.LIVE_STREAM_TITLE_MAX_LENGTH ? ((0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.liveStreamForm.title.error.maxLength", defaultMessage: "ui.liveStreamForm.title.error.maxLength" })) : error['titleError'] ? (error['titleError']) : null }), (0, jsx_runtime_1.jsx)(material_1.TextField, { required: true, className: classes.slug, placeholder: `${intl.formatMessage(messages.slug)}`, margin: "normal", value: field.slug, name: "slug", onChange: handleChange, slotProps: {
238
+ input: {
239
+ endAdornment: (0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ variant: "body2" }, { children: LiveStream_1.LIVE_STREAM_SLUG_MAX_LENGTH - field.slug.length }))
240
+ }
241
+ }, error: Boolean(field.slug.length > LiveStream_1.LIVE_STREAM_SLUG_MAX_LENGTH) || Boolean(error['slugError']), helperText: field.title.length > LiveStream_1.LIVE_STREAM_SLUG_MAX_LENGTH ? ((0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.liveStreamForm.slug.error.maxLength", defaultMessage: "ui.liveStreamForm.slug.error.maxLength" })) : error['slugError'] ? (error['slugError']) : null }), (0, jsx_runtime_1.jsx)(material_1.TextField, { multiline: true, rows: 4, className: classes.description, placeholder: `${intl.formatMessage(messages.description)}`, margin: "normal", value: field.description, name: "description", onChange: handleChange, slotProps: {
242
+ input: {
243
+ 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) ? LiveStream_1.LIVE_STREAM_DESCRIPTION_MAX_LENGTH - field.description.length : LiveStream_1.LIVE_STREAM_DESCRIPTION_MAX_LENGTH })))
244
+ }
245
+ }, error: Boolean(((_c = field.description) === null || _c === void 0 ? void 0 : _c.length) > LiveStream_1.LIVE_STREAM_DESCRIPTION_MAX_LENGTH), helperText: ((_d = field.description) === null || _d === void 0 ? void 0 : _d.length) > LiveStream_1.LIVE_STREAM_DESCRIPTION_MAX_LENGTH ? ((0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.liveStreamForm.description.error.maxLength", defaultMessage: "ui.liveStreamForm.description.error.maxLength" })) : null }), (0, jsx_runtime_1.jsx)(LiveStreamFormSettings_1.default, { settings: field.settings, onChange: handleChangeSettings }), genericError && ((0, jsx_runtime_1.jsx)(material_1.Box, Object.assign({ className: classes.genericError }, { children: (0, jsx_runtime_1.jsx)(material_1.Alert, Object.assign({ variant: "filled", severity: "error" }, { children: genericError })) }))), (0, jsx_runtime_1.jsx)(material_1.Box, Object.assign({ className: classes.actions }, { children: (0, jsx_runtime_1.jsx)(material_1.Button, Object.assign({ loading: field.isSubmitting, disabled: !field.title ||
243
246
  field.isSubmitting ||
244
247
  field.title.length > LiveStream_1.LIVE_STREAM_TITLE_MAX_LENGTH ||
245
248
  field.description.length > LiveStream_1.LIVE_STREAM_DESCRIPTION_MAX_LENGTH ||
@@ -42,12 +42,12 @@ const classes = {
42
42
  const Root = (0, material_1.styled)(material_1.Box, {
43
43
  name: constants_1.PREFIX,
44
44
  slot: 'Root'
45
- })(({ theme }) => ({}));
45
+ })(() => ({}));
46
46
  const DialogRoot = (0, material_1.styled)(BaseDialog_1.default, {
47
47
  name: constants_1.PREFIX,
48
48
  slot: 'Root',
49
- overridesResolver: (props, styles) => styles.dialogRoot
50
- })(({ theme }) => ({}));
49
+ overridesResolver: (_props, styles) => styles.dialogRoot
50
+ })(() => ({}));
51
51
  /**
52
52
  *> API documentation for the Community-JS LiveStreamRoom component. Learn about the available props and the CSS API.
53
53
  *
@@ -133,14 +133,16 @@ function LiveStreamRoom(inProps) {
133
133
  typeof error.response.data === 'object' &&
134
134
  error.response.data.errors &&
135
135
  error.response.data.errors.length) {
136
- let _msg = ((0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.liveStreamRoom.connect.error.generic", defaultMessage: "'ui.liveStreamRoom.connect.error.generic", values: { link: (...chunks) => (0, jsx_runtime_1.jsx)(react_core_1.Link, Object.assign({ to: '/' }, { children: chunks })) } }));
136
+ let _msg = ((0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.liveStreamRoom.connect.error.generic", defaultMessage: "ui.liveStreamRoom.connect.error.generic", values: {
137
+ link: (chunks) => ((0, jsx_runtime_1.jsx)(react_core_1.Link, Object.assign({ to: "/" }, { children: chunks }), "ui.liveStreamRoom.connect.error.generic.link"))
138
+ } }));
137
139
  if (error.response.data.errors[0].code) {
138
140
  const _error = `ui.liveStreamRoom.connect.error.${(0, utils_1.camelCase)(error.response.data.errors[0].code)}`;
139
141
  _msg = ((0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: _error, defaultMessage: _error, values: {
140
- link: (...chunks) => ((0, jsx_runtime_1.jsx)("a", Object.assign({ style: { color: '#FFF' }, href: error.response.data.errors[0].code === types_1.SCLiveStreamConnectionDetailsErrorType.PARTICIPATE_THE_EVENT_TO_JOIN_LIVE_STREAM &&
142
+ link: (chunks) => ((0, jsx_runtime_1.jsx)("a", Object.assign({ style: { color: '#FFF' }, href: error.response.data.errors[0].code === types_1.SCLiveStreamConnectionDetailsErrorType.PARTICIPATE_THE_EVENT_TO_JOIN_LIVE_STREAM &&
141
143
  scLiveStream.event
142
144
  ? scRoutingContext.url(react_core_1.SCRoutes.EVENT_ROUTE_NAME, scLiveStream.event)
143
- : '/' }, { children: chunks })))
145
+ : '/' }, { children: chunks }), `ui.liveStreamRoom.connect.error.${(0, utils_1.camelCase)(error.response.data.errors[0].code)}.link`))
144
146
  } }));
145
147
  if (error.response.data.errors[0].code === types_1.SCLiveStreamConnectionDetailsErrorType.WAITING_HOST_TO_START_LIVE_STREAM ||
146
148
  error.response.data.errors[0].code === types_1.SCLiveStreamConnectionDetailsErrorType.PARTICIPANTS_LIMIT_REACHED) {
@@ -201,10 +203,10 @@ function LiveStreamRoom(inProps) {
201
203
  /**
202
204
  * Renders root object
203
205
  */
204
- return ((0, jsx_runtime_1.jsx)(Root, Object.assign({ id: id, className: (0, classnames_1.default)(classes.root, className) }, rest, { children: scLiveStream.closed_at_by_host ? ((0, jsx_runtime_1.jsx)(DialogRoot, Object.assign({ open: true, maxWidth: 'md', fullWidth: true }, { children: (0, jsx_runtime_1.jsxs)(material_1.DialogContent, Object.assign({ className: classes.endConferenceWrap }, { children: [(0, jsx_runtime_1.jsx)(react_core_1.Link, Object.assign({ to: scRoutingContext.url(react_core_1.SCRoutes.HOME_ROUTE_NAME, {}), className: classes.logo }, { children: (0, jsx_runtime_1.jsx)("img", { src: preferences[react_core_1.SCPreferences.LOGO_NAVBAR_LOGO].value, alt: "logo" }) })), (0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ variant: "h5" }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.liveStreamRoom.conference.closed", defaultMessage: "ui.liveStreamRoom.conference.closed" }) })), (0, jsx_runtime_1.jsx)(material_1.Button, Object.assign({ variant: "contained", color: "secondary", component: react_core_1.Link, to: '/', className: classes.btnBackHome }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.liveStreamRoom.button.backHome", defaultMessage: "ui.liveStreamRoom.button.backHome" }) }))] })) }))) : ((0, jsx_runtime_1.jsx)(material_1.Box, Object.assign({ className: classes.content, "data-lk-theme": "default" }, { children: connectionDetails === undefined || preJoinChoices === undefined ? ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [startPrejoinContent && (0, jsx_runtime_1.jsx)(material_1.Box, Object.assign({ className: classes.startPrejoinContent }, { children: startPrejoinContent })), (scLiveStream === null || scLiveStream === void 0 ? void 0 : scLiveStream.title) && ((0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ component: 'div', variant: "h4", className: classes.title, alignContent: 'center' }, { children: scLiveStream === null || scLiveStream === void 0 ? void 0 : scLiveStream.title }))), (0, jsx_runtime_1.jsxs)(material_1.Box, Object.assign({ className: (0, classnames_1.default)(classes.preJoin, { [classes.preJoinLoading]: loading || error }) }, { children: [(0, jsx_runtime_1.jsx)(LiveStreamProvider_1.LiveStreamContext.Provider, Object.assign({ value: { liveStream: scLiveStream } }, { children: (0, jsx_runtime_1.jsx)(PreJoin_1.PreJoin, { defaults: preJoinDefaults, onSubmit: handlePreJoinSubmit, onError: handlePreJoinError, joinLabel: intl.formatMessage({ id: 'ui.liveStreamRoom.preJoin.joinRoom', defaultMessage: 'ui.liveStreamRoom.preJoin.joinRoom' }), micLabel: intl.formatMessage({
206
+ return ((0, jsx_runtime_1.jsx)(Root, Object.assign({ id: id, className: (0, classnames_1.default)(classes.root, className) }, rest, { children: scLiveStream.closed_at_by_host ? ((0, jsx_runtime_1.jsx)(DialogRoot, Object.assign({ open: true, maxWidth: "md", fullWidth: true }, { children: (0, jsx_runtime_1.jsxs)(material_1.DialogContent, Object.assign({ className: classes.endConferenceWrap }, { children: [(0, jsx_runtime_1.jsx)(react_core_1.Link, Object.assign({ to: scRoutingContext.url(react_core_1.SCRoutes.HOME_ROUTE_NAME, {}), className: classes.logo }, { children: (0, jsx_runtime_1.jsx)("img", { src: preferences[react_core_1.SCPreferences.LOGO_NAVBAR_LOGO].value, alt: "logo" }) })), (0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ variant: "h5" }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.liveStreamRoom.conference.closed", defaultMessage: "ui.liveStreamRoom.conference.closed" }) })), (0, jsx_runtime_1.jsx)(material_1.Button, Object.assign({ variant: "contained", color: "secondary", component: react_core_1.Link, to: "/", className: classes.btnBackHome }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.liveStreamRoom.button.backHome", defaultMessage: "ui.liveStreamRoom.button.backHome" }) }))] })) }))) : ((0, jsx_runtime_1.jsx)(material_1.Box, Object.assign({ className: classes.content, "data-lk-theme": "default" }, { children: connectionDetails === undefined || preJoinChoices === undefined ? ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [startPrejoinContent && (0, jsx_runtime_1.jsx)(material_1.Box, Object.assign({ className: classes.startPrejoinContent }, { children: startPrejoinContent })), (scLiveStream === null || scLiveStream === void 0 ? void 0 : scLiveStream.title) && ((0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ component: "div", variant: "h4", className: classes.title, alignContent: "center" }, { children: scLiveStream === null || scLiveStream === void 0 ? void 0 : scLiveStream.title }))), (0, jsx_runtime_1.jsxs)(material_1.Box, Object.assign({ className: (0, classnames_1.default)(classes.preJoin, { [classes.preJoinLoading]: loading || error }) }, { children: [(0, jsx_runtime_1.jsx)(LiveStreamProvider_1.LiveStreamContext.Provider, Object.assign({ value: { liveStream: scLiveStream } }, { children: (0, jsx_runtime_1.jsx)(PreJoin_1.PreJoin, { defaults: preJoinDefaults, onSubmit: handlePreJoinSubmit, onError: handlePreJoinError, joinLabel: intl.formatMessage({ id: 'ui.liveStreamRoom.preJoin.joinRoom', defaultMessage: 'ui.liveStreamRoom.preJoin.joinRoom' }), micLabel: intl.formatMessage({
205
207
  id: 'ui.liveStreamRoom.preJoin.microphone',
206
208
  defaultMessage: 'ui.liveStreamRoom.preJoin.microphone'
207
- }), camLabel: intl.formatMessage({ id: 'ui.liveStreamRoom.preJoin.camera', defaultMessage: 'ui.liveStreamRoom.preJoin.camera' }), userLabel: intl.formatMessage({ id: 'ui.liveStreamRoom.preJoin.username', defaultMessage: 'ui.liveStreamRoom.preJoin.username' }) }) })), loading && ((0, jsx_runtime_1.jsxs)(material_1.Box, Object.assign({ className: classes.prejoinLoader }, { children: [(0, jsx_runtime_1.jsx)(material_1.CircularProgress, {}), (0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ component: 'div', variant: "body2" }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.liveStreamRoom.connecting", defaultMessage: "ui.liveStreamRoom.connecting" }) }))] })))] })), (0, jsx_runtime_1.jsxs)(material_1.Box, Object.assign({ className: classes.endPrejoinContent }, { children: [scLiveStream && ((0, jsx_runtime_1.jsxs)(material_1.Stack, Object.assign({ sx: { width: '47%' }, spacing: 1, className: classes.endPrejoinContentBox }, { children: [scLiveStream &&
209
+ }), camLabel: intl.formatMessage({ id: 'ui.liveStreamRoom.preJoin.camera', defaultMessage: 'ui.liveStreamRoom.preJoin.camera' }), userLabel: intl.formatMessage({ id: 'ui.liveStreamRoom.preJoin.username', defaultMessage: 'ui.liveStreamRoom.preJoin.username' }) }) })), loading && ((0, jsx_runtime_1.jsxs)(material_1.Box, Object.assign({ className: classes.prejoinLoader }, { children: [(0, jsx_runtime_1.jsx)(material_1.CircularProgress, {}), (0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ component: "div", variant: "body2" }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.liveStreamRoom.connecting", defaultMessage: "ui.liveStreamRoom.connecting" }) }))] })))] })), (0, jsx_runtime_1.jsxs)(material_1.Box, Object.assign({ className: classes.endPrejoinContent }, { children: [scLiveStream && ((0, jsx_runtime_1.jsxs)(material_1.Stack, Object.assign({ sx: { width: '47%' }, spacing: 1, className: classes.endPrejoinContentBox }, { children: [scLiveStream &&
208
210
  scUserContext.user &&
209
211
  scUserContext.user.id !== scLiveStream.host.id &&
210
212
  scLiveStream &&
@@ -72,5 +72,9 @@ exports.DisconnectButton =
72
72
  onClick === null || onClick === void 0 ? void 0 : onClick();
73
73
  }
74
74
  };
75
- return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)("button", Object.assign({ ref: ref }, rest, { onClick: handleOnLeave }, { children: props.children })), openConfirmDialog && ((0, jsx_runtime_1.jsx)(ConfirmDialog_1.default, { open: openConfirmDialog, title: (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, {}), content: (0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.liveStreamRoom.live.terminate", defaultMessage: "ui.liveStreamRoom.live.terminate" }), (0, jsx_runtime_1.jsx)(material_1.FormGroup, { children: (0, jsx_runtime_1.jsx)(material_1.FormControlLabel, { control: (0, jsx_runtime_1.jsx)(material_1.Checkbox, { checked: closeLive, onChange: handleChangeCloseLive, inputProps: { 'aria-label': 'controlled' } }), label: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.liveStreamRoom.live.terminatePermanently", defaultMessage: "ui.liveStreamRoom.live.terminatePermanently" }) }) })] }), onConfirm: handleLeaveAction, isUpdating: isUpdating, onClose: () => setOpenConfirmDialog(false) }))] }));
75
+ return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)("button", Object.assign({ ref: ref }, rest, { onClick: handleOnLeave }, { children: props.children })), openConfirmDialog && ((0, jsx_runtime_1.jsx)(ConfirmDialog_1.default, { open: openConfirmDialog, title: (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, {}), content: (0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.liveStreamRoom.live.terminate", defaultMessage: "ui.liveStreamRoom.live.terminate" }), (0, jsx_runtime_1.jsx)(material_1.FormGroup, { children: (0, jsx_runtime_1.jsx)(material_1.FormControlLabel, { control: (0, jsx_runtime_1.jsx)(material_1.Checkbox, { checked: closeLive, onChange: handleChangeCloseLive, slotProps: {
76
+ input: {
77
+ 'aria-label': 'controlled'
78
+ }
79
+ } }), label: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.liveStreamRoom.live.terminatePermanently", defaultMessage: "ui.liveStreamRoom.live.terminatePermanently" }) }) })] }), onConfirm: handleLeaveAction, isUpdating: isUpdating, onClose: () => setOpenConfirmDialog(false) }))] }));
76
80
  });
@@ -17,7 +17,7 @@ const classes = {
17
17
  const Root = (0, material_1.styled)(material_1.Button, {
18
18
  name: PREFIX,
19
19
  slot: 'Root',
20
- overridesResolver: (props, styles) => styles.root
20
+ overridesResolver: (_props, styles) => styles.root
21
21
  })(({ theme }) => ({
22
22
  borderRadius: 7,
23
23
  color: theme.palette.common.white,
@@ -28,7 +28,7 @@ const Root = (0, material_1.styled)(material_1.Button, {
28
28
  const MenuRoot = (0, material_1.styled)(material_1.Menu, {
29
29
  name: PREFIX,
30
30
  slot: 'Root',
31
- overridesResolver: (props, styles) => styles.menuRoot
31
+ overridesResolver: (_props, styles) => styles.menuRoot
32
32
  })(({ theme }) => ({
33
33
  '& .MuiPaper-root': {
34
34
  minWidth: 120,
@@ -92,7 +92,11 @@ function LiveStreamSettingsMenu(inProps) {
92
92
  }
93
93
  };
94
94
  */
95
- const MenuContent = (0, react_1.useMemo)(() => ((0, jsx_runtime_1.jsxs)(material_1.Box, { children: [(0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ variant: "body1", component: "div" }, { children: (0, jsx_runtime_1.jsx)("b", { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.liveStreamRoom.settingsMenu.visualEffect", defaultMessage: "ui.liveStreamRoom.settingsMenu.visualEffect" }) }) })), (0, jsx_runtime_1.jsx)(material_1.FormControlLabel, { labelPlacement: "start", control: (0, jsx_runtime_1.jsx)(material_1.Switch, { checked: blurEnabled, disabled: actionBlurDisabled, onChange: handleBlur, inputProps: { 'aria-label': 'controlled' } }), label: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.liveStreamRoom.settingsMenu.visualEffect.blurEffect", defaultMessage: "ui.liveStreamRoom.settingsMenu.visualEffect.blurEffect" }) })] })), [blurEnabled, actionBlurDisabled, handleBlur]);
95
+ const MenuContent = (0, react_1.useMemo)(() => ((0, jsx_runtime_1.jsxs)(material_1.Box, { children: [(0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ variant: "body1", component: "div" }, { children: (0, jsx_runtime_1.jsx)("b", { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.liveStreamRoom.settingsMenu.visualEffect", defaultMessage: "ui.liveStreamRoom.settingsMenu.visualEffect" }) }) })), (0, jsx_runtime_1.jsx)(material_1.FormControlLabel, { labelPlacement: "start", control: (0, jsx_runtime_1.jsx)(material_1.Switch, { checked: blurEnabled, disabled: actionBlurDisabled, onChange: handleBlur, slotProps: {
96
+ input: {
97
+ 'aria-label': 'controlled'
98
+ }
99
+ } }), label: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.liveStreamRoom.settingsMenu.visualEffect.blurEffect", defaultMessage: "ui.liveStreamRoom.settingsMenu.visualEffect.blurEffect" }) })] })), [blurEnabled, actionBlurDisabled, handleBlur]);
96
100
  if (onlyContentMenu) {
97
101
  return MenuContent;
98
102
  }
@@ -30,12 +30,12 @@ const classes = {
30
30
  const Root = (0, material_1.styled)(material_1.Box, {
31
31
  name: constants_1.PREFIX,
32
32
  slot: 'Root'
33
- })(({ theme }) => ({}));
33
+ })(() => ({}));
34
34
  const DialogRoot = (0, material_1.styled)(BaseDialog_1.default, {
35
35
  name: constants_1.PREFIX,
36
36
  slot: 'Root',
37
37
  overridesResolver: (props, styles) => styles.dialogRoot
38
- })(({ theme }) => ({}));
38
+ })(() => ({}));
39
39
  const PREFERENCES = [react_core_1.SCPreferences.LOGO_NAVBAR_LOGO];
40
40
  /**
41
41
  *> API documentation for the Community-JS LiveStreamVideoConference component. Learn about the available props and the CSS API.
@@ -148,6 +148,6 @@ function LiveStreamVideoConference(inProps) {
148
148
  /**
149
149
  * Renders root object
150
150
  */
151
- return ((0, jsx_runtime_1.jsx)(Root, Object.assign({ className: (0, classnames_1.default)(classes.root, className) }, rest, { children: liveActive && !error ? ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: (0, jsx_runtime_1.jsx)(components_react_1.LiveKitRoom, Object.assign({ connect: Boolean(liveActive), token: connectionDetails['participantToken'], serverUrl: connectionDetails['serverUrl'], connectOptions: connectOptions, video: userChoices.videoEnabled, audio: userChoices.audioEnabled, onDisconnected: handleOnLeave, onEncryptionError: handleEncryptionError, onError: handleError }, LiveKitRoomComponentProps, { children: (0, jsx_runtime_1.jsxs)(components_react_1.LayoutContextProvider, { children: [(0, jsx_runtime_1.jsx)(VideoConference_1.VideoConference, Object.assign({ chatMessageFormatter: components_react_1.formatChatMessageLinks }, (speakerFocused && { speakerFocused: liveStream.host }), VideoConferenceComponentProps, { disableMicrophone: !canUseAudio, disableCamera: !canUseVideo, disableChat: !canUseChat, disableShareScreen: !canUseShareScreen, hideParticipantsList: hideParticipantsList })), (0, jsx_runtime_1.jsx)(components_react_1.ConnectionState, {})] }) })) })) : ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: error ? ((0, jsx_runtime_1.jsx)(DialogRoot, Object.assign({ open: true, maxWidth: 'md', fullWidth: true }, { children: (0, jsx_runtime_1.jsx)(material_1.DialogContent, { children: (0, jsx_runtime_1.jsxs)(material_1.Box, Object.assign({ className: classes.endConferenceWrap }, { children: [(0, jsx_runtime_1.jsx)(react_core_1.Link, Object.assign({ to: scRoutingContext.url(react_core_1.SCRoutes.HOME_ROUTE_NAME, {}), className: classes.logo }, { children: (0, jsx_runtime_1.jsx)("img", { src: preferences[react_core_1.SCPreferences.LOGO_NAVBAR_LOGO], alt: "logo" }) })), startConferenceEndContent, error, (0, jsx_runtime_1.jsx)(material_1.Button, Object.assign({ variant: "contained", color: "secondary", component: react_core_1.Link, to: '/', className: classes.btnBackHome }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.liveStreamRoom.button.backHome", defaultMessage: "ui.liveStreamRoom.button.backHome" }) })), endConferenceEndContent] })) }) }))) : liveActive === false ? ((0, jsx_runtime_1.jsx)(DialogRoot, Object.assign({ open: true, maxWidth: 'md', fullWidth: true }, { children: (0, jsx_runtime_1.jsx)(material_1.DialogContent, { children: (0, jsx_runtime_1.jsxs)(material_1.Box, Object.assign({ className: classes.endConferenceWrap }, { children: [(0, jsx_runtime_1.jsx)(react_core_1.Link, Object.assign({ to: scRoutingContext.url(react_core_1.SCRoutes.HOME_ROUTE_NAME, {}), className: classes.logo }, { children: (0, jsx_runtime_1.jsx)("img", { src: preferences[react_core_1.SCPreferences.LOGO_NAVBAR_LOGO], alt: "logo" }) })), startConferenceEndContent, (0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ variant: "h5" }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.liveStreamRoom.conference.end", defaultMessage: "ui.liveStreamRoom.conference.end" }) })), (0, jsx_runtime_1.jsx)(material_1.Button, Object.assign({ variant: "contained", color: "secondary", component: react_core_1.Link, to: '/', onClick: handleBackHome, className: classes.btnBackHome }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.liveStreamRoom.button.backHome", defaultMessage: "ui.liveStreamRoom.button.backHome" }) })), endConferenceEndContent] })) }) }))) : ((0, jsx_runtime_1.jsx)(material_1.CircularProgress, {})) })) })));
151
+ return ((0, jsx_runtime_1.jsx)(Root, Object.assign({ className: (0, classnames_1.default)(classes.root, className) }, rest, { children: liveActive && !error ? ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: (0, jsx_runtime_1.jsx)(components_react_1.LiveKitRoom, Object.assign({ connect: Boolean(liveActive), token: connectionDetails['participantToken'], serverUrl: connectionDetails['serverUrl'], connectOptions: connectOptions, video: userChoices.videoEnabled, audio: userChoices.audioEnabled, onDisconnected: handleOnLeave, onEncryptionError: handleEncryptionError, onError: handleError }, LiveKitRoomComponentProps, { children: (0, jsx_runtime_1.jsxs)(components_react_1.LayoutContextProvider, { children: [(0, jsx_runtime_1.jsx)(VideoConference_1.VideoConference, Object.assign({ chatMessageFormatter: components_react_1.formatChatMessageLinks }, (speakerFocused && { speakerFocused: liveStream.host }), VideoConferenceComponentProps, { disableMicrophone: !canUseAudio, disableCamera: !canUseVideo, disableChat: !canUseChat, disableShareScreen: !canUseShareScreen, hideParticipantsList: hideParticipantsList })), (0, jsx_runtime_1.jsx)(components_react_1.ConnectionState, {})] }) })) })) : ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: error ? ((0, jsx_runtime_1.jsx)(DialogRoot, Object.assign({ open: true, maxWidth: "md", fullWidth: true }, { children: (0, jsx_runtime_1.jsx)(material_1.DialogContent, { children: (0, jsx_runtime_1.jsxs)(material_1.Box, Object.assign({ className: classes.endConferenceWrap }, { children: [(0, jsx_runtime_1.jsx)(react_core_1.Link, Object.assign({ to: scRoutingContext.url(react_core_1.SCRoutes.HOME_ROUTE_NAME, {}), className: classes.logo }, { children: (0, jsx_runtime_1.jsx)("img", { src: preferences[react_core_1.SCPreferences.LOGO_NAVBAR_LOGO], alt: "logo" }) })), startConferenceEndContent, error, (0, jsx_runtime_1.jsx)(material_1.Button, Object.assign({ variant: "contained", color: "secondary", component: react_core_1.Link, to: "/", className: classes.btnBackHome }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.liveStreamRoom.button.backHome", defaultMessage: "ui.liveStreamRoom.button.backHome" }) })), endConferenceEndContent] })) }) }))) : liveActive === false ? ((0, jsx_runtime_1.jsx)(DialogRoot, Object.assign({ open: true, maxWidth: "md", fullWidth: true }, { children: (0, jsx_runtime_1.jsx)(material_1.DialogContent, { children: (0, jsx_runtime_1.jsxs)(material_1.Box, Object.assign({ className: classes.endConferenceWrap }, { children: [(0, jsx_runtime_1.jsx)(react_core_1.Link, Object.assign({ to: scRoutingContext.url(react_core_1.SCRoutes.HOME_ROUTE_NAME, {}), className: classes.logo }, { children: (0, jsx_runtime_1.jsx)("img", { src: preferences[react_core_1.SCPreferences.LOGO_NAVBAR_LOGO], alt: "logo" }) })), startConferenceEndContent, (0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ variant: "h5" }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.liveStreamRoom.conference.end", defaultMessage: "ui.liveStreamRoom.conference.end" }) })), (0, jsx_runtime_1.jsx)(material_1.Button, Object.assign({ variant: "contained", color: "secondary", component: react_core_1.Link, to: "/", onClick: handleBackHome, className: classes.btnBackHome }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.liveStreamRoom.button.backHome", defaultMessage: "ui.liveStreamRoom.button.backHome" }) })), endConferenceEndContent] })) }) }))) : ((0, jsx_runtime_1.jsx)(material_1.CircularProgress, {})) })) })));
152
152
  }
153
153
  exports.default = LiveStreamVideoConference;