@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
@@ -1,11 +1,10 @@
1
1
  import { __rest } from "tslib";
2
2
  import { jsx as _jsx } from "react/jsx-runtime";
3
3
  import { useEffect, useMemo, useState } from 'react';
4
- import { styled } from '@mui/material';
4
+ import { Button, styled } from '@mui/material';
5
5
  import { CacheStrategies, Logger } from '@selfcommunity/utils';
6
6
  import { useSCContext, useSCFetchCourse, useSCUser } from '@selfcommunity/react-core';
7
7
  import { SCCoursePrivacyType, SCCourseJoinStatusType } from '@selfcommunity/types';
8
- import { LoadingButton } from '@mui/lab';
9
8
  import { FormattedMessage } from 'react-intl';
10
9
  import classNames from 'classnames';
11
10
  import { useThemeProps } from '@mui/system';
@@ -16,11 +15,11 @@ const PREFIX = 'SCCourseJoinButton';
16
15
  const classes = {
17
16
  root: `${PREFIX}-root`
18
17
  };
19
- const Root = styled(LoadingButton, {
18
+ const Root = styled(Button, {
20
19
  name: PREFIX,
21
20
  slot: 'Root',
22
- overridesResolver: (props, styles) => styles.root
23
- })(({ theme }) => ({}));
21
+ overridesResolver: (_props, styles) => styles.root
22
+ })(() => ({}));
24
23
  /**
25
24
  * > API documentation for the Community-JS Course Subscribe Button component. Learn about the available props and the CSS API.
26
25
 
@@ -1,11 +1,7 @@
1
1
  import { GridProps } from '@mui/material';
2
- import React from 'react';
3
2
  import { CourseProps, CourseSkeletonProps } from '../Course';
4
3
  import { CoursesSkeletonProps } from '../Courses/Skeleton';
5
4
  import { CreateCourseButtonProps } from '../CreateCourseButton';
6
- export declare const CoursesChipRoot: import("@emotion/styled").StyledComponent<import("@mui/material").ChipOwnProps & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
7
- ref?: React.Ref<HTMLDivElement>;
8
- }, "avatar" | "className" | "style" | "classes" | "label" | "tabIndex" | "color" | "children" | "sx" | "variant" | "disabled" | "size" | "icon" | "clickable" | "deleteIcon" | "onDelete" | "skipFocusWhenDisabled"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
9
5
  export interface CoursesProps {
10
6
  /**
11
7
  * Overrides or extends the styles applied to the component.
@@ -39,7 +39,7 @@ const Root = styled(Box, {
39
39
  name: PREFIX,
40
40
  slot: 'Root'
41
41
  })(() => ({}));
42
- export const CoursesChipRoot = styled(Chip, {
42
+ const CoursesChipRoot = styled(Chip, {
43
43
  name: PREFIX,
44
44
  slot: 'CoursesChipRoot',
45
45
  shouldForwardProp: (prop) => prop !== 'showMine' && prop !== 'showManagedCourses'
@@ -204,22 +204,22 @@ export default function Courses(inProps) {
204
204
  /**
205
205
  * Renders courses list
206
206
  */
207
- const c = (_jsxs(_Fragment, { children: [showFilters && (_jsx(Grid, Object.assign({ container: true, className: classes.filters, gap: 2 }, { children: filters ? (filters) : (_jsxs(_Fragment, { children: [_jsx(Grid, Object.assign({ item: true, xs: 12, md: 3 }, { children: _jsx(TextField, { className: classes.search, size: 'small', fullWidth: true, value: query, label: _jsx(FormattedMessage, { id: "ui.courses.filterByName", defaultMessage: "ui.courses.filterByName" }), variant: "outlined", onChange: handleOnChangeFilterName, disabled: loading, onKeyUp: (e) => {
207
+ const c = (_jsxs(_Fragment, { children: [showFilters && (_jsx(Grid, Object.assign({ container: true, width: "100%", className: classes.filters, gap: 2 }, { children: filters ? (filters) : (_jsxs(_Fragment, { children: [_jsx(Grid, Object.assign({ size: { xs: 12, md: 3 } }, { children: _jsx(TextField, { className: classes.search, size: "small", fullWidth: true, value: query, label: _jsx(FormattedMessage, { id: "ui.courses.filterByName", defaultMessage: "ui.courses.filterByName" }), variant: "outlined", onChange: handleOnChangeFilterName, disabled: loading, onKeyUp: (e) => {
208
208
  e.preventDefault();
209
209
  if (e.key === 'Enter') {
210
210
  fetchCourses();
211
211
  }
212
- }, InputProps: {
213
- endAdornment: (_jsx(InputAdornment, Object.assign({ position: "end" }, { children: isMobile ? (_jsx(IconButton, Object.assign({ onClick: () => fetchCourses(), disabled: loading }, { children: _jsx(Icon, { children: "search" }) }))) : (_jsx(Button, { size: "small", variant: "contained", color: "secondary", onClick: () => fetchCourses(), endIcon: _jsx(Icon, { children: "search" }), disabled: loading })) })))
214
- } }) })), authUserId && ((onlyStaffEnabled && canCreateCourse) || !onlyStaffEnabled) && (_jsx(Grid, Object.assign({ item: true }, { children: _jsx(CoursesChipRoot, { color: showManagedCourses ? 'primary' : 'default', variant: showManagedCourses ? 'filled' : 'outlined', label: _jsx(FormattedMessage, { id: "ui.courses.filterByManagedByMe", defaultMessage: "ui.courses.filterByManagedByMe" }), onClick: () => setShowManagedCourses(!showManagedCourses),
212
+ }, slotProps: {
213
+ input: {
214
+ endAdornment: (_jsx(InputAdornment, Object.assign({ position: "end" }, { children: isMobile ? (_jsx(IconButton, Object.assign({ onClick: () => fetchCourses(), disabled: loading }, { children: _jsx(Icon, { children: "search" }) }))) : (_jsx(Button, { size: "small", variant: "contained", color: "secondary", onClick: () => fetchCourses(), endIcon: _jsx(Icon, { children: "search" }), disabled: loading })) })))
215
+ }
216
+ } }) })), authUserId && ((onlyStaffEnabled && canCreateCourse) || !onlyStaffEnabled) && (_jsx(Grid, Object.assign({ size: "grow" }, { children: _jsx(CoursesChipRoot, { color: showManagedCourses ? 'primary' : 'default', variant: showManagedCourses ? 'filled' : 'outlined', label: _jsx(FormattedMessage, { id: "ui.courses.filterByManagedByMe", defaultMessage: "ui.courses.filterByManagedByMe" }), onClick: () => setShowManagedCourses(!showManagedCourses),
215
217
  // @ts-expect-error this is needed to use showMine into SCCourses
216
- showManagedCourses: showManagedCourses, deleteIcon: showManagedCourses ? _jsx(Icon, { children: "close" }) : null, onDelete: showManagedCourses ? () => setShowManagedCourses(false) : null, disabled: loading || showMine }) }))), _jsx(Grid, Object.assign({ item: true, xs: 12, md: "auto" }, { children: _jsx(FormControl, Object.assign({ fullWidth: true }, { children: _jsx(CategoryAutocomplete, { onChange: handleOnChangeCategory, className: classes.category, size: "small", multiple: true }) })) })), authUserId && (_jsx(Grid, Object.assign({ item: true }, { children: _jsx(CoursesChipRoot, { color: showMine ? 'primary' : 'default', variant: showMine ? 'filled' : 'outlined', label: _jsx(FormattedMessage, { id: "ui.courses.filterByMine", defaultMessage: "ui.courses.filterByMine" }), onClick: handleChipClick,
218
+ showManagedCourses: showManagedCourses, deleteIcon: showManagedCourses ? _jsx(Icon, { children: "close" }) : null, onDelete: showManagedCourses ? () => setShowManagedCourses(false) : null, disabled: loading || showMine }) }))), _jsx(Grid, Object.assign({ size: { xs: 12, md: 'auto' } }, { children: _jsx(FormControl, Object.assign({ fullWidth: true }, { children: _jsx(CategoryAutocomplete, { onChange: handleOnChangeCategory, className: classes.category, size: "small", multiple: true }) })) })), authUserId && (_jsx(Grid, { children: _jsx(CoursesChipRoot, { color: showMine ? 'primary' : 'default', variant: showMine ? 'filled' : 'outlined', label: _jsx(FormattedMessage, { id: "ui.courses.filterByMine", defaultMessage: "ui.courses.filterByMine" }), onClick: handleChipClick,
217
219
  // @ts-expect-error this is needed to use showMine into SCCourses
218
- showMine: showMine, deleteIcon: showMine ? _jsx(Icon, { children: "close" }) : null, onDelete: showMine ? handleDeleteClick : null, disabled: loading || showManagedCourses }) })))] })) }))), _jsx(_Fragment, { children: !courses.length ? (_jsx(Box, Object.assign({ className: classes.noResults }, { children: !canCreateCourse && onlyStaffEnabled ? (_jsxs(Stack, Object.assign({ className: classes.studentEmptyView }, { children: [_jsx(Stack, Object.assign({ className: classes.emptyBox }, { children: _jsx(Stack, Object.assign({ className: classes.emptyRotatedBox }, { children: _jsx(Icon, Object.assign({ className: classes.emptyIcon, color: "disabled", fontSize: "large" }, { children: "courses" })) })) })), _jsx(Typography, Object.assign({ variant: "h5", textAlign: "center" }, { children: _jsx(FormattedMessage, { id: "ui.courses.empty.title", defaultMessage: "ui.courses.empty.title" }) })), _jsx(Typography, Object.assign({ variant: "body1", textAlign: "center" }, { children: _jsx(FormattedMessage, { id: "ui.courses.empty.info", defaultMessage: "ui.courses.empty.info" }) }))] }))) : (_jsx(Box, Object.assign({ className: classes.teacherEmptyView }, { children: _jsx(Skeleton, Object.assign({ teacherView: (onlyStaffEnabled && canCreateCourse) || !onlyStaffEnabled, coursesNumber: 1 }, CoursesSkeletonComponentProps, { CourseSkeletonProps: CourseSkeletonComponentProps })) }))) }))) : (_jsx(InfiniteScroll, Object.assign({ dataLength: courses.length, next: handleNext, hasMoreNext: Boolean(next), loaderNext: isMobile ? (_jsx(CourseSkeleton, { template: SCCourseTemplateType.PREVIEW })) : (_jsx(Skeleton, Object.assign({ coursesNumber: 4 }, CoursesSkeletonComponentProps, { CourseSkeletonProps: CourseSkeletonComponentProps }))), endMessage: _jsx(Typography, Object.assign({ component: "div", className: classes.endMessage }, { children: _jsx(FormattedMessage, { id: "ui.courses.endMessage", defaultMessage: "ui.courses.endMessage", values: {
219
- // eslint-disable-next-line @typescript-eslint/ban-ts-ignore
220
- // @ts-ignore
220
+ showMine: showMine, deleteIcon: showMine ? _jsx(Icon, { children: "close" }) : null, onDelete: showMine ? handleDeleteClick : null, disabled: loading || showManagedCourses }) }))] })) }))), _jsx(_Fragment, { children: !courses.length ? (_jsx(Box, Object.assign({ className: classes.noResults }, { children: !canCreateCourse && onlyStaffEnabled ? (_jsxs(Stack, Object.assign({ className: classes.studentEmptyView }, { children: [_jsx(Stack, Object.assign({ className: classes.emptyBox }, { children: _jsx(Stack, Object.assign({ className: classes.emptyRotatedBox }, { children: _jsx(Icon, Object.assign({ className: classes.emptyIcon, color: "disabled", fontSize: "large" }, { children: "courses" })) })) })), _jsx(Typography, Object.assign({ variant: "h5", textAlign: "center" }, { children: _jsx(FormattedMessage, { id: "ui.courses.empty.title", defaultMessage: "ui.courses.empty.title" }) })), _jsx(Typography, Object.assign({ variant: "body1", textAlign: "center" }, { children: _jsx(FormattedMessage, { id: "ui.courses.empty.info", defaultMessage: "ui.courses.empty.info" }) }))] }))) : (_jsx(Box, Object.assign({ className: classes.teacherEmptyView }, { children: _jsx(Skeleton, Object.assign({ teacherView: (onlyStaffEnabled && canCreateCourse) || !onlyStaffEnabled, coursesNumber: 1 }, CoursesSkeletonComponentProps, { CourseSkeletonProps: CourseSkeletonComponentProps })) }))) }))) : (_jsx(InfiniteScroll, Object.assign({ dataLength: courses.length, next: handleNext, hasMoreNext: Boolean(next), loaderNext: isMobile ? (_jsx(CourseSkeleton, { template: SCCourseTemplateType.PREVIEW })) : (_jsx(Skeleton, Object.assign({ coursesNumber: 4 }, CoursesSkeletonComponentProps, { CourseSkeletonProps: CourseSkeletonComponentProps }))), endMessage: _jsx(Typography, Object.assign({ component: "div", className: classes.endMessage }, { children: _jsx(FormattedMessage, { id: "ui.courses.endMessage", defaultMessage: "ui.courses.endMessage", values: {
221
221
  button: (chunk) => (_jsx(Button, Object.assign({ color: "secondary", variant: "text", onClick: handleScrollUp }, { children: chunk })))
222
- } }) })) }, { children: _jsx(Grid, Object.assign({ container: true, spacing: { xs: 3 }, className: classes.courses }, GridContainerComponentProps, { children: _jsxs(_Fragment, { children: [courses.map((course) => (_jsx(Grid, Object.assign({ item: true, xs: 12, sm: 12, md: 6, lg: 3, className: classes.item }, GridItemComponentProps, { children: _jsx(Course, Object.assign({ courseId: course.id }, CourseComponentProps)) }), course.id))), authUserId && ((onlyStaffEnabled && canCreateCourse) || !onlyStaffEnabled) && courses.length % 2 !== 0 && (_jsx(Grid, Object.assign({ item: true, xs: 12, sm: 12, md: 6, lg: 3, className: classes.itemPlaceholder }, GridItemComponentProps, { children: _jsx(CourseCreatePlaceholder, { CreateCourseButtonComponentProps: CreateCourseButtonComponentProps }) }), "placeholder-item"))] }) })) }))) })] }));
222
+ } }) })) }, { children: _jsx(Grid, Object.assign({ container: true, width: "100%", spacing: { xs: 3 }, className: classes.courses }, GridContainerComponentProps, { children: _jsxs(_Fragment, { children: [courses.map((course) => (_jsx(Grid, Object.assign({ size: { xs: 12, md: 6, lg: 3 }, className: classes.item }, GridItemComponentProps, { children: _jsx(Course, Object.assign({ courseId: course.id }, CourseComponentProps)) }), course.id))), authUserId && ((onlyStaffEnabled && canCreateCourse) || !onlyStaffEnabled) && courses.length % 2 !== 0 && (_jsx(Grid, Object.assign({ size: { xs: 12, md: 6, lg: 3 }, className: classes.itemPlaceholder }, GridItemComponentProps, { children: _jsx(CourseCreatePlaceholder, { CreateCourseButtonComponentProps: CreateCourseButtonComponentProps }) }), "placeholder-item"))] }) })) }))) })] }));
223
223
  /**
224
224
  * Renders root object (if content availability community option is false and user is anonymous, component is hidden)
225
225
  */
@@ -37,5 +37,5 @@ const Root = styled(Box, {
37
37
  */
38
38
  export default function CoursesSkeleton(inProps) {
39
39
  const { className, CourseSkeletonProps = {}, coursesNumber = 8, GridContainerComponentProps = {}, GridItemComponentProps = {}, teacherView = false } = inProps, rest = __rest(inProps, ["className", "CourseSkeletonProps", "coursesNumber", "GridContainerComponentProps", "GridItemComponentProps", "teacherView"]);
40
- return (_jsx(Root, Object.assign({ className: classNames(classes.root, className) }, rest, { children: _jsx(Grid, Object.assign({ container: true, spacing: { xs: 3 }, className: classes.courses }, GridContainerComponentProps, { children: [...Array(coursesNumber)].map((course, index) => (_jsx(Grid, Object.assign({ item: true, xs: 12, sm: 12, md: 6, lg: 3 }, GridItemComponentProps, { className: classes.item }, { children: teacherView ? _jsx(CourseCreatePlaceholder, {}) : _jsx(CourseSkeleton, Object.assign({}, CourseSkeletonProps)) }), index))) })) })));
40
+ return (_jsx(Root, Object.assign({ className: classNames(classes.root, className) }, rest, { children: _jsx(Grid, Object.assign({ container: true, width: "100%", spacing: { xs: 3 }, className: classes.courses }, GridContainerComponentProps, { children: [...Array(coursesNumber)].map((_course, index) => (_jsx(Grid, Object.assign({ size: { xs: 12, md: 6, lg: 3 } }, GridItemComponentProps, { className: classes.item }, { children: teacherView ? _jsx(CourseCreatePlaceholder, {}) : _jsx(CourseSkeleton, Object.assign({}, CourseSkeletonProps)) }), index))) })) })));
41
41
  }
@@ -100,5 +100,11 @@ export default function CreateLiveStreamDialog(inProps) {
100
100
  /**
101
101
  * Renders root object
102
102
  */
103
- return (_jsx(Root, Object.assign({ DialogContentProps: { dividers: false }, maxWidth: "md", title: _jsxs(Box, Object.assign({ className: classes.title, component: "span" }, { children: [canShowBackButton && (_jsx(Button, Object.assign({ variant: "text", onClick: handleBack, startIcon: _jsx(Icon, { children: "arrow_back" }) }, { children: _jsx(FormattedMessage, { id: "ui.createLivestreamDialog.button.back", defaultMessage: "ui.createLivestreamDialog.button.back" }) }))), _jsx(Box, Object.assign({ component: "span" }, { children: _jsx(FormattedMessage, { id: "ui.createLivestreamDialog.title", defaultMessage: "ui.createLivestreamDialog.title" }) }))] })), fullWidth: true, open: open, scroll: "body", onClose: !canShowBackButton ? onClose : undefined, className: classNames(classes.root, className), TransitionComponent: Transition, PaperProps: { elevation: 0 } }, rest, { children: _jsxs(Box, Object.assign({ className: classes.content }, { children: [step === CreateLiveStreamStep.SELECT_TYPE && (_jsx(LiveStreamSelector, { liveSelected: liveType, onLiveSelected: handleLiveTypeSelected, onNext: handleLiveTypeSelectedNext })), step === CreateLiveStreamStep.CREATE_LIVE && (_jsx(_Fragment, { children: liveType === LiveStreamType.EVENT_LIVE ? (_jsx(EventForm, Object.assign({}, EventFormComponentProps, { EventAddressComponentProps: { locations: [SCEventLocationType.LIVESTREAM] }, onSuccess: handleSubmit }))) : (_jsx(LiveStreamForm, Object.assign({}, LiveStreamFormComponentProps, { onSuccess: handleSubmit }))) }))] })) })));
103
+ return (_jsx(Root, Object.assign({ DialogContentProps: { dividers: false }, maxWidth: "md", title: _jsxs(Box, Object.assign({ className: classes.title, component: "span" }, { children: [canShowBackButton && (_jsx(Button, Object.assign({ variant: "text", onClick: handleBack, startIcon: _jsx(Icon, { children: "arrow_back" }) }, { children: _jsx(FormattedMessage, { id: "ui.createLivestreamDialog.button.back", defaultMessage: "ui.createLivestreamDialog.button.back" }) }))), _jsx(Box, Object.assign({ component: "span" }, { children: _jsx(FormattedMessage, { id: "ui.createLivestreamDialog.title", defaultMessage: "ui.createLivestreamDialog.title" }) }))] })), fullWidth: true, open: open, scroll: "body", onClose: !canShowBackButton ? onClose : undefined, className: classNames(classes.root, className), slots: {
104
+ transition: Transition
105
+ }, slotProps: {
106
+ paper: {
107
+ elevation: 0
108
+ }
109
+ } }, rest, { children: _jsxs(Box, Object.assign({ className: classes.content }, { children: [step === CreateLiveStreamStep.SELECT_TYPE && (_jsx(LiveStreamSelector, { liveSelected: liveType, onLiveSelected: handleLiveTypeSelected, onNext: handleLiveTypeSelectedNext })), step === CreateLiveStreamStep.CREATE_LIVE && (_jsx(_Fragment, { children: liveType === LiveStreamType.EVENT_LIVE ? (_jsx(EventForm, Object.assign({}, EventFormComponentProps, { EventAddressComponentProps: { locations: [SCEventLocationType.LIVESTREAM] }, onSuccess: handleSubmit }))) : (_jsx(LiveStreamForm, Object.assign({}, LiveStreamFormComponentProps, { onSuccess: handleSubmit }))) }))] })) })));
104
110
  }
@@ -10,7 +10,7 @@ import EventImage from '../../../assets/liveStream/event';
10
10
  import LiveImage from '../../../assets/liveStream/live';
11
11
  import { LiveStreamApiClient } from '@selfcommunity/api-services';
12
12
  import { WARNING_THRESHOLD_EXPIRING_SOON } from '../../LiveStreamRoom/constants';
13
- import { Link, SCPreferences, useSCContext, useSCPreferences, useSCUser } from '@selfcommunity/react-core';
13
+ import { Link, SCPreferences, useSCPreferences, useSCUser } from '@selfcommunity/react-core';
14
14
  import { SCCommunityEnvironment, SCCommunitySubscriptionTier } from '@selfcommunity/types';
15
15
  import { HUB_PROD, HUB_STAGE } from '../../PlatformWidget/constants';
16
16
  export const PREFIX = 'SCLiveStreamSelector';
@@ -23,13 +23,13 @@ const classes = {
23
23
  const Root = styled(Container, {
24
24
  name: PREFIX,
25
25
  slot: 'Root'
26
- })(({ theme }) => ({}));
26
+ })(() => ({}));
27
27
  // Styled components
28
28
  const OptionCard = styled(Paper, {
29
29
  name: PREFIX,
30
30
  slot: 'optionCardRoot',
31
31
  shouldForwardProp: (prop) => prop !== 'selected'
32
- })(({ theme, selected }) => ({
32
+ })(() => ({
33
33
  '& h6': {
34
34
  fontWeight: 'bold',
35
35
  textTransform: 'uppercase'
@@ -38,7 +38,7 @@ const OptionCard = styled(Paper, {
38
38
  const FeatureItem = styled(Box, {
39
39
  name: PREFIX,
40
40
  slot: 'featureItemRoot'
41
- })(({ theme }) => ({}));
41
+ })(() => ({}));
42
42
  /**
43
43
  *> API documentation for the Community-JS LiveStreamSelector component. Learn about the available props and the CSS API.
44
44
  *
@@ -66,7 +66,6 @@ export default function LiveStreamSelector(inProps) {
66
66
  });
67
67
  const { className, liveSelected, onLiveSelected, onNext } = props;
68
68
  // CONTEXT
69
- const scContext = useSCContext();
70
69
  const scUserContext = useSCUser();
71
70
  const { enqueueSnackbar } = useSnackbar();
72
71
  // STATE
@@ -162,9 +161,7 @@ export default function LiveStreamSelector(inProps) {
162
161
  let _message;
163
162
  if (isFreeTrialTier && isCommunityOwner && !isEnterpriseTier) {
164
163
  _message = (_jsx(FormattedMessage, { id: "ui.liveStreamForm.selector.warningSubscriptionRequired", defaultMessage: "ui.liveStreamForm.selector.warningSubscriptionRequired", values: {
165
- // eslint-disable-next-line @typescript-eslint/ban-ts-ignore
166
- // @ts-ignore
167
- link: (...chunks) => (_jsx(Link, Object.assign({ target: "_blank", to: `${isStage ? HUB_STAGE : HUB_PROD}dashboard/community/${communityStackId}/subscription` }, { children: chunks })))
164
+ link: (chunks) => (_jsx(Link, Object.assign({ target: "_blank", to: `${isStage ? HUB_STAGE : HUB_PROD}dashboard/community/${communityStackId}/subscription` }, { children: chunks }), "ui.liveStreamForm.selector.warningSubscriptionRequired.link"))
168
165
  } }));
169
166
  }
170
167
  else if (timeRemaining !== null && timeRemaining <= WARNING_THRESHOLD_EXPIRING_SOON) {
@@ -186,6 +183,6 @@ export default function LiveStreamSelector(inProps) {
186
183
  e.preventDefault();
187
184
  }
188
185
  } }, { children: [_jsxs(Box, { children: [_jsx(Typography, Object.assign({ variant: "h6" }, { children: option.title })), _jsx(Radio, { checked: selectedOption === option.type })] }), _jsx("img", { src: option.image, alt: "option-image" }), _jsx(Box, Object.assign({ component: "ul" }, { children: option.features.map((feature, featureIndex) => {
189
- return (_jsx(FeatureItem, Object.assign({ component: "li" }, { children: _jsx(Typography, Object.assign({ variant: "body2", color: "text.secondary", sx: { flex: 1 } }, { children: feature })) }), featureIndex));
186
+ return (_jsx(FeatureItem, Object.assign({ as: "li" }, { children: _jsx(Typography, Object.assign({ variant: "body2", color: "text.secondary", sx: { flex: 1 } }, { children: feature })) }), featureIndex));
190
187
  }) }))] }), index))) })), _jsx(Box, Object.assign({ className: classes.actions }, { children: _jsx(Button, Object.assign({ disabled: !selectedOption || !timeRemaining || isFreeTrialTier, variant: "contained", onClick: handleNext, color: "secondary" }, { children: _jsx(FormattedMessage, { id: "ui.liveStreamForm.selector.next", defaultMessage: "ui.liveStreamForm.selector.next" }) })) }))] })));
191
188
  }
@@ -7,7 +7,6 @@ import { useThemeProps } from '@mui/system';
7
7
  import classNames from 'classnames';
8
8
  import { useSCPaymentsEnabled } from '@selfcommunity/react-core';
9
9
  import { PREFIX } from './constants';
10
- import { LoadingButton } from '@mui/lab';
11
10
  import { PaymentApiClient } from '@selfcommunity/api-services';
12
11
  import { Logger } from '@selfcommunity/utils';
13
12
  import { SCOPE_SC_UI } from '../../constants/Errors';
@@ -134,8 +133,10 @@ export default function CreatePaymentProductForm(inProps) {
134
133
  return null;
135
134
  }
136
135
  console.log(fieldsError);
137
- return (_jsxs(Root, Object.assign({ className: classNames(classes.root, className) }, rest, { children: [_jsx(Typography, Object.assign({ mb: 1 }, { children: _jsx(FormattedMessage, { id: "ui.createPaymentProductForm.title", defaultMessage: "ui.createPaymentProductForm.title" }) })), _jsx(TextField, Object.assign({ size: "small", id: "name", label: _jsx(FormattedMessage, { id: "ui.createPaymentProductForm.name", defaultMessage: "ui.createPaymentProductForm.name" }), variant: "outlined", fullWidth: true, value: name, error: Boolean(fieldsError && fieldsError.name) }, (Boolean(fieldsError && fieldsError.name) && { helperText: fieldsError.name }), { onChange: (e) => handleChange('name', e) })), _jsx(TextField, Object.assign({ size: "small", id: "description", label: _jsx(FormattedMessage, { id: "ui.createPaymentProductForm.description", defaultMessage: "ui.createPaymentProductForm.description" }), variant: "outlined", fullWidth: true, value: description, onChange: (e) => handleChange('description', e), multiline: true, maxRows: 2, error: Boolean(fieldsError && fieldsError.description) }, (Boolean(fieldsError && fieldsError.description) && { helperText: fieldsError.description }))), _jsx(TextField, { label: _jsx(FormattedMessage, { id: "ui.createPaymentProductForm.price", defaultMessage: "ui.createPaymentProductForm.price" }), variant: "outlined", value: unitAmount, onChange: (e) => handleChange('unitAmount', e), name: "unitAmount", id: "unitAmount", helperText: fieldsError && fieldsError.unitAmount ? (_jsx(_Fragment, { children: fieldsError.unitAmount })) : (_jsx(_Fragment, { children: intl.formatMessage({ id: 'ui.createPaymentProductForm.minPrice', defaultMessage: 'ui.createPaymentProductForm.minPrice' }, { min: DEFAULT_MIN_PRICE }) })), InputProps: {
138
- startAdornment: _jsx(InputAdornment, Object.assign({ position: "start" }, { children: "\u20AC" })),
139
- inputComponent: NumericFormatCustom
140
- }, fullWidth: true, error: Boolean(fieldsError && fieldsError.unitAmount) }), error && (_jsx(Typography, Object.assign({ component: "div", className: classes.error, variant: "body2" }, { children: error }))), _jsxs(Stack, Object.assign({ direction: "row", justifyContent: "flex-end", alignItems: "flex-end", spacing: 1 }, { children: [onCancel && (_jsx(Button, Object.assign({ variant: "text", size: "small", color: "inherit", onClick: onCancel }, { children: _jsx(FormattedMessage, { id: "ui.createPaymentProductForm.btn.cancel", defaultMessage: "ui.createPaymentProductForm.btn.cancel" }) }))), _jsx(LoadingButton, Object.assign({ loading: loading, variant: "contained", size: "small", color: "error", onClick: handleCreateProduct }, { children: _jsx(FormattedMessage, { id: "ui.createPaymentProductForm.btn.create", defaultMessage: "ui.createPaymentProductForm.btn.create" }) }))] }))] })));
136
+ return (_jsxs(Root, Object.assign({ className: classNames(classes.root, className) }, rest, { children: [_jsx(Typography, Object.assign({ mb: 1 }, { children: _jsx(FormattedMessage, { id: "ui.createPaymentProductForm.title", defaultMessage: "ui.createPaymentProductForm.title" }) })), _jsx(TextField, Object.assign({ size: "small", id: "name", label: _jsx(FormattedMessage, { id: "ui.createPaymentProductForm.name", defaultMessage: "ui.createPaymentProductForm.name" }), variant: "outlined", fullWidth: true, value: name, error: Boolean(fieldsError && fieldsError.name) }, (Boolean(fieldsError && fieldsError.name) && { helperText: fieldsError.name }), { onChange: (e) => handleChange('name', e) })), _jsx(TextField, Object.assign({ size: "small", id: "description", label: _jsx(FormattedMessage, { id: "ui.createPaymentProductForm.description", defaultMessage: "ui.createPaymentProductForm.description" }), variant: "outlined", fullWidth: true, value: description, onChange: (e) => handleChange('description', e), multiline: true, maxRows: 2, error: Boolean(fieldsError && fieldsError.description) }, (Boolean(fieldsError && fieldsError.description) && { helperText: fieldsError.description }))), _jsx(TextField, { label: _jsx(FormattedMessage, { id: "ui.createPaymentProductForm.price", defaultMessage: "ui.createPaymentProductForm.price" }), variant: "outlined", value: unitAmount, onChange: (e) => handleChange('unitAmount', e), name: "unitAmount", id: "unitAmount", helperText: fieldsError && fieldsError.unitAmount ? (_jsx(_Fragment, { children: fieldsError.unitAmount })) : (_jsx(_Fragment, { children: intl.formatMessage({ id: 'ui.createPaymentProductForm.minPrice', defaultMessage: 'ui.createPaymentProductForm.minPrice' }, { min: DEFAULT_MIN_PRICE }) })), slotProps: {
137
+ input: {
138
+ startAdornment: _jsx(InputAdornment, Object.assign({ position: "start" }, { children: "\u20AC" })),
139
+ inputComponent: NumericFormatCustom
140
+ }
141
+ }, fullWidth: true, error: Boolean(fieldsError && fieldsError.unitAmount) }), error && (_jsx(Typography, Object.assign({ component: "div", className: classes.error, variant: "body2" }, { children: error }))), _jsxs(Stack, Object.assign({ direction: "row", justifyContent: "flex-end", alignItems: "flex-end", spacing: 1 }, { children: [onCancel && (_jsx(Button, Object.assign({ variant: "text", size: "small", color: "inherit", onClick: onCancel }, { children: _jsx(FormattedMessage, { id: "ui.createPaymentProductForm.btn.cancel", defaultMessage: "ui.createPaymentProductForm.btn.cancel" }) }))), _jsx(Button, Object.assign({ loading: loading, variant: "contained", size: "small", color: "error", onClick: handleCreateProduct }, { children: _jsx(FormattedMessage, { id: "ui.createPaymentProductForm.btn.create", defaultMessage: "ui.createPaymentProductForm.btn.create" }) }))] }))] })));
141
142
  }
@@ -8,7 +8,7 @@ const classes = {
8
8
  const Root = styled(GenericSkeleton, {
9
9
  name: PREFIX,
10
10
  slot: 'SkeletonRoot'
11
- })(({ theme }) => ({}));
11
+ })(() => ({}));
12
12
  /**
13
13
  * > API documentation for the Community-JS Custom Adv Skeleton component. Learn about the available props and the CSS API.
14
14
 
@@ -1,12 +1,11 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
- import { Box, Icon, MenuItem, Select, Typography, useMediaQuery, useTheme } from '@mui/material';
2
+ import { Box, Button, Icon, MenuItem, Select, Typography, useMediaQuery, useTheme } from '@mui/material';
3
3
  import { Fragment, memo, useCallback, useEffect, useMemo, useState } from 'react';
4
4
  import { FormattedMessage } from 'react-intl';
5
5
  import { PREFIX } from '../constants';
6
6
  import MenuRow from '../MenuRow';
7
7
  import { Logger } from '@selfcommunity/utils';
8
8
  import { SCOPE_SC_UI } from '../../../constants/Errors';
9
- import { LoadingButton } from '@mui/lab';
10
9
  import { useSnackbar } from 'notistack';
11
10
  import { SCCourseLessonStatusType } from '@selfcommunity/types';
12
11
  import { CourseService } from '@selfcommunity/api-services';
@@ -74,12 +73,12 @@ function ChangeLessonStatus(props) {
74
73
  handleAction(newValue);
75
74
  }
76
75
  }, [handleAction, value]);
77
- return (_jsx(Fragment, { children: isMobile ? (_jsx(MenuRow, Object.assign({ buttonClassName: hasPublished ? classes.changeLessonStatusPublishedWrapper : undefined, icon: icon }, { children: OPTIONS.map((option, i) => (_jsx(MenuItem, { children: _jsx(LoadingButton, Object.assign({ size: "small", color: "inherit", onClick: handleClick, loading: loading, disabled: loading, "data-value": option.value, sx: {
76
+ return (_jsx(Fragment, { children: isMobile ? (_jsx(MenuRow, Object.assign({ buttonClassName: hasPublished ? classes.changeLessonStatusPublishedWrapper : undefined, icon: icon }, { children: OPTIONS.map((option, i) => (_jsx(MenuItem, { children: _jsx(Button, Object.assign({ size: "small", color: "inherit", onClick: handleClick, loading: loading, disabled: loading, "data-value": option.value, sx: {
78
77
  padding: 0,
79
78
  ':hover': {
80
79
  backgroundColor: 'unset'
81
80
  }
82
- } }, { children: _jsx(Typography, Object.assign({ variant: "body1" }, { children: _jsx(FormattedMessage, { id: option.id, defaultMessage: option.id }) })) })) }, i))) }))) : (_jsx(Select, Object.assign({ className: hasPublished ? classes.changeLessonStatusPublishedWrapper : undefined, size: "small", value: value, onChange: handleChange, disabled: disabled }, { children: OPTIONS.map((option, i) => (_jsx(MenuItem, Object.assign({ value: option.value }, { children: _jsx(LoadingButton, Object.assign({ size: "small", color: "inherit", loading: loading, disabled: loading, sx: {
81
+ } }, { children: _jsx(Typography, Object.assign({ variant: "body1" }, { children: _jsx(FormattedMessage, { id: option.id, defaultMessage: option.id }) })) })) }, i))) }))) : (_jsx(Select, Object.assign({ className: hasPublished ? classes.changeLessonStatusPublishedWrapper : undefined, size: "small", value: value, onChange: handleChange, disabled: disabled }, { children: OPTIONS.map((option, i) => (_jsx(MenuItem, Object.assign({ value: option.value }, { children: _jsx(Button, Object.assign({ size: "small", color: "inherit", loading: loading, disabled: loading, sx: {
83
82
  padding: 0,
84
83
  ':hover': {
85
84
  backgroundColor: 'unset'
@@ -1,6 +1,5 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { LoadingButton } from '@mui/lab';
3
- import { debounce, Icon, IconButton, Stack, TextField, Typography } from '@mui/material';
2
+ import { Button, debounce, Icon, IconButton, Stack, TextField, Typography } from '@mui/material';
4
3
  import { Fragment, memo, useCallback, useState } from 'react';
5
4
  import { PREFIX } from '../constants';
6
5
  import { Logger } from '@selfcommunity/utils';
@@ -75,6 +74,6 @@ function FieldName(props) {
75
74
  handleDisableEditMode();
76
75
  }
77
76
  }, [row, isNewRow, handleManageRow, setName, handleDisableEditMode]);
78
- return (_jsx(Fragment, { children: isNewRow || editMode ? (_jsxs(Stack, Object.assign({ className: classes.editModeWrapper }, { children: [_jsx(TextField, { type: "text", variant: "outlined", size: "small", focused: true, autoFocus: true, defaultValue: row.name, onChange: handleChange }), _jsx(LoadingButton, Object.assign({ size: "small", color: "primary", variant: "outlined", onClick: handleSubmit, loading: loading, disabled: loading, className: classes.editModeSaveButton }, { children: _jsx(Icon, { children: "check" }) })), _jsx(IconButton, Object.assign({ color: "default", size: "small", onClick: handleClose, className: classes.editModeCloseButton }, { children: _jsx(Icon, { children: "close" }) }))] }))) : (_jsx(Typography, Object.assign({ variant: "body1" }, { children: row.name }))) }));
77
+ return (_jsx(Fragment, { children: isNewRow || editMode ? (_jsxs(Stack, Object.assign({ className: classes.editModeWrapper }, { children: [_jsx(TextField, { type: "text", variant: "outlined", size: "small", focused: true, autoFocus: true, defaultValue: row.name, onChange: handleChange }), _jsx(Button, Object.assign({ size: "small", color: "primary", variant: "outlined", onClick: handleSubmit, loading: loading, disabled: loading, className: classes.editModeSaveButton }, { children: _jsx(Icon, { children: "check" }) })), _jsx(IconButton, Object.assign({ color: "default", size: "small", onClick: handleClose, className: classes.editModeCloseButton }, { children: _jsx(Icon, { children: "close" }) }))] }))) : (_jsx(Typography, Object.assign({ variant: "body1" }, { children: row.name }))) }));
79
78
  }
80
79
  export default memo(FieldName);
@@ -1,5 +1,5 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { Box, Stack, Typography } from '@mui/material';
2
+ import { Box, Button, Stack, Typography } from '@mui/material';
3
3
  import { FormattedMessage } from 'react-intl';
4
4
  import { PREFIX } from './constants';
5
5
  import { memo, useCallback, useState } from 'react';
@@ -8,7 +8,6 @@ import { SCOPE_SC_UI } from '../../constants/Errors';
8
8
  import { useSnackbar } from 'notistack';
9
9
  import SwitchForm from './Options/SwitchForm';
10
10
  import useDeepCompareEffect from 'use-deep-compare-effect';
11
- import { LoadingButton } from '@mui/lab';
12
11
  import { CourseService } from '@selfcommunity/api-services';
13
12
  const classes = {
14
13
  optionsContainer: `${PREFIX}-options-container`,
@@ -88,6 +87,6 @@ function Options(props) {
88
87
  });
89
88
  });
90
89
  }, [course, tempOptions, setCanSave, setLoading]);
91
- return (_jsxs(Box, Object.assign({ className: classes.optionsContainer }, { children: [_jsx(Stack, Object.assign({ className: classes.optionsWrapper }, { children: Object.entries(OPTIONS).map(([key, value], i) => (_jsx(SwitchForm, { name: key, title: value.title, description: value.description, checked: course[key], handleChangeOptions: handleChange }, i))) })), _jsx(Stack, Object.assign({ className: classes.optionsButtonWrapper }, { children: _jsx(LoadingButton, Object.assign({ size: "small", variant: "contained", disabled: !canSave, onClick: handleSubmit, loading: loading }, { children: _jsx(Typography, Object.assign({ variant: "body1" }, { children: _jsx(FormattedMessage, { id: "ui.editCourse.tab.options.button.save", defaultMessage: "ui.editCourse.tab.options.button.save" }) })) })) }))] })));
90
+ return (_jsxs(Box, Object.assign({ className: classes.optionsContainer }, { children: [_jsx(Stack, Object.assign({ className: classes.optionsWrapper }, { children: Object.entries(OPTIONS).map(([key, value], i) => (_jsx(SwitchForm, { name: key, title: value.title, description: value.description, checked: course[key], handleChangeOptions: handleChange }, i))) })), _jsx(Stack, Object.assign({ className: classes.optionsButtonWrapper }, { children: _jsx(Button, Object.assign({ size: "small", variant: "contained", disabled: !canSave, onClick: handleSubmit, loading: loading }, { children: _jsx(Typography, Object.assign({ variant: "body1" }, { children: _jsx(FormattedMessage, { id: "ui.editCourse.tab.options.button.save", defaultMessage: "ui.editCourse.tab.options.button.save" }) })) })) }))] })));
92
91
  }
93
92
  export default memo(Options);
@@ -24,6 +24,6 @@ export default function Status(props) {
24
24
  id: `ui.course.privacy.${course.privacy === SCCoursePrivacyType.DRAFT ? 'draft' : course.privacy}`,
25
25
  defaultMessage: `ui.course.privacy.${course.privacy === SCCoursePrivacyType.DRAFT ? 'draft' : course.privacy}`
26
26
  }),
27
- b: (chunks) => (_jsx(Typography, Object.assign({ component: "b", fontWeight: "bold" }, { children: chunks })))
27
+ b: (chunks) => (_jsx(Typography, Object.assign({ component: "b", fontWeight: "bold" }, { children: chunks }), "ui.editCourse.tab.lessons.status.b"))
28
28
  }) })) })), className: classNames(classes.status, classes.contrastColor) }));
29
29
  }
@@ -34,7 +34,7 @@ const Root = styled(Box, {
34
34
  overridesResolver: (props, styles) => {
35
35
  return [styles.root, props.className.includes(classes.toolbar) && styles.toolbar];
36
36
  }
37
- })(({ theme }) => ({}));
37
+ })(() => ({}));
38
38
  const editorTheme = {
39
39
  heading: {
40
40
  h1: `${PREFIX}-h1`,
@@ -104,7 +104,7 @@ const Editor = (inProps, ref) => {
104
104
  name: PREFIX
105
105
  });
106
106
  const { id = 'editor', className = null, defaultValue = '', toolbar = false, uploadImage = false, uploadFile = false, editable = true, onChange = null, onMediaChange = null, onFocus = null, onBlur = null, action = null, ToolBarProps = {}, MediaPluginProps = {}, placeholder = _jsx(FormattedMessage, { id: "ui.editor.placeholder", defaultMessage: "ui.editor.placeholder" }), isLessonCommentEditor = false } = props;
107
- const apiRef = useRef();
107
+ const apiRef = useRef(null);
108
108
  // STATE
109
109
  const [focused, setFocused] = useState(false);
110
110
  // HANDLERS
@@ -114,7 +114,7 @@ const Editor = (inProps, ref) => {
114
114
  const handleMediaChange = (media) => {
115
115
  onMediaChange && onMediaChange(media);
116
116
  };
117
- const handleError = (error, editor) => {
117
+ const handleError = (error) => {
118
118
  console.log(error);
119
119
  };
120
120
  const handleFocus = () => {
@@ -14,14 +14,16 @@ function Emoji({ editor, className = '', isLessonCommentEditor = false }) {
14
14
  const handleOpen = (event) => {
15
15
  setEmojiAnchorEl(event.currentTarget);
16
16
  };
17
- const handleEmojiClick = (emojiData, event) => {
17
+ const handleEmojiClick = (emojiData) => {
18
18
  editor.focus();
19
19
  editor.dispatchCommand(CONTROLLED_TEXT_INSERTION_COMMAND, emojiData.emoji);
20
20
  };
21
21
  if (isMobile) {
22
22
  return null;
23
23
  }
24
- return (_jsxs(_Fragment, { children: [_jsx(IconButton, Object.assign({ className: className, onClick: handleOpen }, { children: _jsx(Icon, { children: "sentiment_satisfied_alt" }) })), _jsx(Popover, Object.assign({ open: Boolean(emojiAnchorEl), anchorEl: emojiAnchorEl, onClose: () => setEmojiAnchorEl(null), TransitionComponent: Fade, anchorOrigin: isLessonCommentEditor ? { vertical: 'bottom', horizontal: 'left' } : { vertical: 'top', horizontal: 'right' }, transformOrigin: isLessonCommentEditor ? { vertical: 'top', horizontal: 'right' } : { vertical: 'bottom', horizontal: 'left' }, sx: (theme) => {
24
+ return (_jsxs(_Fragment, { children: [_jsx(IconButton, Object.assign({ className: className, onClick: handleOpen }, { children: _jsx(Icon, { children: "sentiment_satisfied_alt" }) })), _jsx(Popover, Object.assign({ open: Boolean(emojiAnchorEl), anchorEl: emojiAnchorEl, onClose: () => setEmojiAnchorEl(null), slots: {
25
+ transition: Fade
26
+ }, anchorOrigin: isLessonCommentEditor ? { vertical: 'bottom', horizontal: 'left' } : { vertical: 'top', horizontal: 'right' }, transformOrigin: isLessonCommentEditor ? { vertical: 'top', horizontal: 'right' } : { vertical: 'bottom', horizontal: 'left' }, sx: (theme) => {
25
27
  return { zIndex: theme.zIndex.tooltip };
26
28
  } }, { children: _jsx(EmojiPicker, { onEmojiClick: handleEmojiClick }) }))] }));
27
29
  }
@@ -93,10 +93,12 @@ function FloatingLinkPlugin({ editor, isLink, setIsLink }) {
93
93
  }
94
94
  return (_jsx(Root, Object.assign({ className: classes.root, open: Boolean(anchorEl), anchorEl: anchorEl, placement: "right" }, { children: _jsx(Paper, { children: _jsx(TextField, { size: "small", value: linkUrl, variant: "outlined", onChange: (event) => {
95
95
  setLinkUrl(event.target.value);
96
- }, InputProps: {
97
- endAdornment: (_jsxs(InputAdornment, Object.assign({ position: "end" }, { children: [_jsx(IconButton, Object.assign({ size: "small", tabIndex: 0, onClick: () => {
98
- setIsLink(false);
99
- } }, { children: _jsx(Icon, { children: "close" }) })), _jsx(IconButton, Object.assign({ size: "small", tabIndex: 1, onClick: handleLinkSubmission }, { children: _jsx(Icon, { children: "check" }) }))] })))
96
+ }, slotProps: {
97
+ input: {
98
+ endAdornment: (_jsxs(InputAdornment, Object.assign({ position: "end" }, { children: [_jsx(IconButton, Object.assign({ size: "small", tabIndex: 0, onClick: () => {
99
+ setIsLink(false);
100
+ } }, { children: _jsx(Icon, { children: "close" }) })), _jsx(IconButton, Object.assign({ size: "small", tabIndex: 1, onClick: handleLinkSubmission }, { children: _jsx(Icon, { children: "check" }) }))] })))
101
+ }
100
102
  } }) }) })));
101
103
  }
102
104
  function useFloatingLinkEditorToolbar(editor) {
@@ -19,7 +19,6 @@ const classes = {
19
19
  skeletonDetailFirstDivider: `${PREFIX}-skeleton-detail-first-divider`,
20
20
  skeletonDetailSecondDivider: `${PREFIX}-skeleton-detail-second-divider`,
21
21
  skeletonPreviewContent: `${PREFIX}-skeleton-preview-content`,
22
- skeletonPreviewName: `${PREFIX}-skeleton-preview-name`,
23
22
  skeletonPreviewActions: `${PREFIX}-skeleton-preview-actions`,
24
23
  skeletonSnippetImage: `${PREFIX}-skeleton-snippet-image`,
25
24
  skeletonSnippetAction: `${PREFIX}-skeleton-snippet-action`
@@ -78,7 +77,7 @@ export default function EventSkeleton(inProps) {
78
77
  contentObj = (_jsxs(SkeletonDetailRoot, Object.assign({ className: classes.skeletonDetailRoot }, { children: [_jsxs(Box, Object.assign({ position: "relative" }, { children: [_jsx(Skeleton, { variant: "rectangular", animation: skeletonsAnimation, width: "100%", height: "170px" }), _jsx(Skeleton, { className: classes.skeletonDetailCalendar, variant: "rounded", animation: skeletonsAnimation, width: "60px", height: "60px" })] })), _jsxs(CardContent, Object.assign({ className: classes.skeletonDetailContent }, { children: [_jsx(Skeleton, { animation: skeletonsAnimation, width: "36%", height: "40px" }), _jsxs(Stack, Object.assign({ direction: "row", alignItems: "center", gap: "8px", marginBottom: "9px" }, { children: [_jsx(Skeleton, { animation: skeletonsAnimation, variant: "circular", width: "21px", height: "21px" }), _jsx(Skeleton, { animation: skeletonsAnimation, width: "50%", height: "20px" })] })), _jsxs(Stack, Object.assign({ direction: "row", alignItems: "center", gap: "8px", marginBottom: "9px" }, { children: [_jsx(Skeleton, { animation: skeletonsAnimation, variant: "circular", width: "21px", height: "21px" }), _jsx(Skeleton, { animation: skeletonsAnimation, width: "35%", height: "20px" })] })), _jsxs(Stack, Object.assign({ direction: "row", alignItems: "center", gap: "8px", marginBottom: "14px" }, { children: [_jsx(Skeleton, { animation: skeletonsAnimation, variant: "circular", width: "21px", height: "21px" }), _jsx(Skeleton, { animation: skeletonsAnimation, width: "27%", height: "20px" })] })), _jsxs(Stack, Object.assign({ direction: "row", gap: "8px", className: classes.skeletonDetailUser }, { children: [_jsx(Skeleton, { animation: skeletonsAnimation, variant: "circular", width: "36px", height: "36px" }), _jsxs(Stack, Object.assign({ gap: "1px" }, { children: [_jsx(Skeleton, { animation: skeletonsAnimation, width: "75px", height: "15px" }), _jsx(Skeleton, { animation: skeletonsAnimation, width: "86px", height: "16px" })] }))] })), _jsx(Divider, { className: classes.skeletonDetailFirstDivider }), _jsxs(Stack, Object.assign({ direction: "row", gap: "8px", alignItems: "center", height: "28px" }, { children: [_jsx(Skeleton, { animation: skeletonsAnimation, width: "68px", height: "20px" }), _jsxs(AvatarGroup, { children: [_jsx(Skeleton, { animation: skeletonsAnimation, variant: "circular", width: "21px", height: "21px" }), _jsx(Skeleton, { animation: skeletonsAnimation, variant: "circular", width: "21px", height: "21px" }), _jsx(Skeleton, { animation: skeletonsAnimation, variant: "circular", width: "21px", height: "21px" }), _jsx(Skeleton, { animation: skeletonsAnimation, variant: "circular", width: "21px", height: "21px" })] })] })), _jsx(Divider, { className: classes.skeletonDetailSecondDivider })] })), _jsx(CardActions, Object.assign({ className: classes.skeletonDetailActions }, { children: actions !== undefined ? actions : _jsx(Skeleton, { variant: "rounded", width: 100, height: 30 }) }))] })));
79
78
  }
80
79
  else if (template === SCEventTemplateType.PREVIEW) {
81
- contentObj = (_jsxs(SkeletonPreviewRoot, Object.assign({ className: classes.skeletonPreviewRoot }, { children: [_jsx(Box, Object.assign({ position: "relative" }, { children: _jsx(Skeleton, { variant: "rectangular", animation: skeletonsAnimation, width: "100%", height: "80px" }) })), _jsxs(CardContent, Object.assign({ className: classes.skeletonPreviewContent }, { children: [_jsxs(Stack, Object.assign({ direction: "row", alignItems: "center", gap: "8px" }, { children: [_jsx(Skeleton, { animation: skeletonsAnimation, variant: "circular", width: "21px", height: "21px" }), _jsx(Skeleton, { animation: skeletonsAnimation, width: "50%", height: "20px" })] })), _jsx(Skeleton, { animation: skeletonsAnimation, width: "67%", height: "25px", className: classes.skeletonPreviewName }), _jsx(Stack, Object.assign({ direction: "row", alignItems: "center", gap: "8px", marginBottom: "2px" }, { children: _jsx(Skeleton, { animation: skeletonsAnimation, width: "27%", height: "18px" }) })), _jsx(Stack, Object.assign({ direction: "row", gap: "8px", alignItems: "center" }, { children: _jsxs(AvatarGroup, { children: [_jsx(Skeleton, { animation: skeletonsAnimation, variant: "circular", width: `${theme.selfcommunity.user.avatar.sizeSmall}px`, height: `${theme.selfcommunity.user.avatar.sizeSmall}px` }), _jsx(Skeleton, { animation: skeletonsAnimation, variant: "circular", width: `${theme.selfcommunity.user.avatar.sizeSmall}px`, height: `${theme.selfcommunity.user.avatar.sizeSmall}px` }), _jsx(Skeleton, { animation: skeletonsAnimation, variant: "circular", width: `${theme.selfcommunity.user.avatar.sizeSmall}px`, height: `${theme.selfcommunity.user.avatar.sizeSmall}px` })] }) }))] })), _jsx(CardActions, Object.assign({ className: classes.skeletonPreviewActions }, { children: actions !== undefined ? actions : _jsx(Skeleton, { variant: "rounded", width: 100, height: 30 }) }))] })));
80
+ contentObj = (_jsxs(SkeletonPreviewRoot, Object.assign({ className: classes.skeletonPreviewRoot }, { children: [_jsx(Box, Object.assign({ position: "relative" }, { children: _jsx(Skeleton, { variant: "rectangular", animation: skeletonsAnimation, width: "100%", height: "80px" }) })), _jsxs(CardContent, Object.assign({ className: classes.skeletonPreviewContent }, { children: [_jsxs(Stack, Object.assign({ direction: "row", alignItems: "center", gap: "8px" }, { children: [_jsx(Skeleton, { animation: skeletonsAnimation, variant: "circular", width: "21px", height: "21px" }), _jsx(Skeleton, { animation: skeletonsAnimation, width: "80%", height: "20px" })] })), _jsxs(Stack, Object.assign({ direction: "column", marginY: "5px" }, { children: [_jsx(Skeleton, { animation: skeletonsAnimation, width: "67%", height: "25px" }), _jsx(Skeleton, { animation: skeletonsAnimation, width: "27%", height: "16px" })] })), _jsx(Stack, Object.assign({ direction: "row", gap: "8px", alignItems: "center" }, { children: _jsxs(AvatarGroup, { children: [_jsx(Skeleton, { animation: skeletonsAnimation, variant: "circular", width: `${theme.selfcommunity.user.avatar.sizeSmall}px`, height: `${theme.selfcommunity.user.avatar.sizeSmall}px` }), _jsx(Skeleton, { animation: skeletonsAnimation, variant: "circular", width: `${theme.selfcommunity.user.avatar.sizeSmall}px`, height: `${theme.selfcommunity.user.avatar.sizeSmall}px` }), _jsx(Skeleton, { animation: skeletonsAnimation, variant: "circular", width: `${theme.selfcommunity.user.avatar.sizeSmall}px`, height: `${theme.selfcommunity.user.avatar.sizeSmall}px` })] }) }))] })), _jsx(CardActions, Object.assign({ className: classes.skeletonPreviewActions }, { children: actions !== undefined ? actions : _jsx(Skeleton, { variant: "rounded", width: 100, height: 30 }) }))] })));
82
81
  }
83
82
  else {
84
83
  contentObj = (_jsx(SkeletonSnippetRoot, { elevation: 0, square: true, disableTypography: true, className: classes.skeletonSnippetRoot, image: _jsxs(Box, Object.assign({ className: classes.skeletonSnippetImage }, { children: [_jsx(Skeleton, { animation: skeletonsAnimation, variant: "rectangular", width: 100, height: 60 }), " ", _jsx(Icon, Object.assign({ fontSize: "large" }, { children: "CalendarIcon" }))] })), primary: _jsx(Skeleton, { animation: skeletonsAnimation, variant: "rectangular", height: 10, width: "40%", style: { marginBottom: 12 } }), secondary: _jsxs(_Fragment, { children: [_jsx(Skeleton, { animation: skeletonsAnimation, variant: "rectangular", height: 10, width: "60%", style: { marginBottom: 10, marginRight: 5 } }), _jsx(Skeleton, { animation: skeletonsAnimation, variant: "rectangular", height: 10, width: "35%" })] }), actions: _jsx(_Fragment, { children: actions !== undefined ? (actions) : (_jsx(Button, Object.assign({ size: "small", variant: "outlined", disabled: true }, { children: _jsx(Skeleton, { animation: skeletonsAnimation, height: 10, width: 30, style: { marginTop: 5, marginBottom: 5 } }) }))) }) }));
@@ -1,5 +1,5 @@
1
1
  import { __rest } from "tslib";
2
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
3
3
  import React, { useEffect, useState } from 'react';
4
4
  import { FormattedMessage } from 'react-intl';
5
5
  import parse from 'autosuggest-highlight/parse';
@@ -14,7 +14,7 @@ const classes = {
14
14
  const Root = styled(Autocomplete, {
15
15
  name: PREFIX,
16
16
  slot: 'Root',
17
- overridesResolver: (props, styles) => styles.root
17
+ overridesResolver: (_props, styles) => styles.root
18
18
  })(() => ({}));
19
19
  /**
20
20
  * > API documentation for the Community-JS Event Autocomplete component. Learn about the available props and the CSS API.
@@ -70,7 +70,7 @@ const EventAutocomplete = (inProps) => {
70
70
  const handleClose = () => {
71
71
  setOpen(false);
72
72
  };
73
- const handleChange = (e, value) => {
73
+ const handleChange = (_e, value) => {
74
74
  setValue(value);
75
75
  };
76
76
  // Render
@@ -81,11 +81,14 @@ const EventAutocomplete = (inProps) => {
81
81
  // ));
82
82
  // }}
83
83
  renderOption: (props, option, { inputValue }) => {
84
+ const { key } = props, rest = __rest(props, ["key"]);
84
85
  const matches = match(option.name, inputValue);
85
86
  const parts = parse(option.name, matches);
86
- return (_jsxs(Box, Object.assign({ component: "li" }, props, { children: [_jsx(Avatar, { alt: option.name, src: option.image_small, sx: { marginRight: 1 } }), _jsx(React.Fragment, { children: parts.map((part, index) => (_jsx(Typography, Object.assign({ sx: { fontWeight: part.highlight ? 700 : 400, marginRight: 0.2 } }, { children: part.text }), index))) })] })));
87
+ return (_jsxs(Box, Object.assign({ component: "li" }, rest, { children: [_jsx(Avatar, { alt: option.name, src: option.image_small, sx: { marginRight: 1 } }), _jsx(React.Fragment, { children: parts.map((part, index) => (_jsx(Typography, Object.assign({ sx: { fontWeight: part.highlight ? 700 : 400, marginRight: 0.2 } }, { children: part.text }), index))) })] }), key));
87
88
  }, renderInput: (params) => {
88
- return (_jsx(TextField, Object.assign({}, params, TextFieldProps, { margin: "dense", InputProps: Object.assign(Object.assign({}, params.InputProps), { autoComplete: 'events', endAdornment: (_jsxs(React.Fragment, { children: [isLoading ? _jsx(CircularProgress, { color: "inherit", size: 20 }) : null, params.InputProps.endAdornment] })) }) })));
89
+ return (_jsx(TextField, Object.assign({}, params, TextFieldProps, { margin: "dense", slotProps: {
90
+ input: Object.assign(Object.assign({}, params.InputProps), { autoComplete: 'events', endAdornment: (_jsxs(_Fragment, { children: [isLoading && _jsx(CircularProgress, { color: "inherit", size: 20 }), params.InputProps.endAdornment] })) })
91
+ } })));
89
92
  } }, rest)));
90
93
  };
91
94
  export default EventAutocomplete;
@@ -84,7 +84,7 @@ export default function EventAddress(inProps) {
84
84
  (event.live_stream && event.live_stream.created_at);
85
85
  }, [liveStreamEnabled, (_a = scUserContext === null || scUserContext === void 0 ? void 0 : scUserContext.user) === null || _a === void 0 ? void 0 : _a.permission, event]);
86
86
  // HOOKS
87
- const { isLoaded, geocodingApiKey } = useSCGoogleApiLoader();
87
+ const { isLoaded, geocodingApiKey, placesLibrary } = useSCGoogleApiLoader();
88
88
  // HANDLERS
89
89
  const handleChange = (_event, newValue) => {
90
90
  setLocation(newValue);
@@ -132,9 +132,9 @@ export default function EventAddress(inProps) {
132
132
  }
133
133
  if (inputValue.length >= 3) {
134
134
  const newTimeoutId = setTimeout(() => {
135
- const autocompleteService = new window.google.maps.places.AutocompleteService();
135
+ const autocompleteService = new placesLibrary.AutocompleteService(); // TODO - deprecated, to fix when possibile
136
136
  autocompleteService.getPlacePredictions({ input: inputValue }, (predictions, status) => {
137
- if (status === window.google.maps.places.PlacesServiceStatus.OK && predictions) {
137
+ if (status === placesLibrary.PlacesServiceStatus.OK && predictions) {
138
138
  setSuggestions(predictions.map((prediction) => ({
139
139
  description: prediction.description,
140
140
  id: prediction.place_id
@@ -151,7 +151,11 @@ export default function EventAddress(inProps) {
151
151
  if (!isInPersonTabActive && !isOnlineTabActive && !isLiveTabActive) {
152
152
  return null;
153
153
  }
154
- return (_jsxs(Root, Object.assign({ className: classNames(classes.root, className) }, { children: [_jsxs(Tabs, Object.assign({ className: classes.tabs, value: location, onChange: handleChange, indicatorColor: "secondary", textColor: "secondary", variant: "fullWidth" }, { children: [isInPersonTabActive && (_jsx(Tab, { value: SCEventLocationType.PERSON, classes: { root: classes.tab }, icon: _jsx(Icon, { children: "add_location_alt" }), iconPosition: "start", label: _jsx(FormattedMessage, { id: "ui.eventForm.address.live.label", defaultMessage: "ui.eventForm.address.live.label" }) })), isOnlineTabActive && (_jsx(Tab, { value: SCEventLocationType.ONLINE, classes: { root: classes.tab }, icon: _jsx(Icon, { children: "play_circle_outline" }), iconPosition: "start", label: _jsx(FormattedMessage, { id: "ui.eventForm.address.online.label", defaultMessage: "ui.eventForm.address.online.label" }) })), isLiveTabActive && (_jsx(Tab, { value: SCEventLocationType.LIVESTREAM, classes: { root: classes.tab }, icon: _jsx(Icon, { children: "photo_camera" }), iconPosition: "start", label: _jsx(FormattedMessage, { id: "ui.eventForm.address.liveStream.label", defaultMessage: "ui.eventForm.address.liveStream.label" }) }))] })), _jsxs(Box, Object.assign({ className: classes.tabContent }, { children: [isInPersonTabActive && location === SCEventLocationType.PERSON && (_jsx(Autocomplete, { disabled: !geocodingApiKey, size: "small", value: geolocation, onChange: handleSelection, inputValue: inputValue, onInputChange: handleLocationChange, options: suggestions, getOptionLabel: (option) => option.description || geolocation.description, noOptionsText: _jsx(FormattedMessage, { id: "ui.eventForm.address.live.noResults", defaultMessage: "ui.eventForm.address.live.noResults" }), isOptionEqualToValue: (option, value) => option.description === value.description, renderInput: (params) => (_jsx(TextField, Object.assign({}, params, { label: _jsx(FormattedMessage, { id: "ui.eventForm.address.live.placeholder", defaultMessage: "ui.eventForm.address.live.placeholder" }), variant: "outlined", fullWidth: true, InputProps: Object.assign(Object.assign({}, params.InputProps), { endAdornment: (_jsxs(_Fragment, { children: [_jsx(InputAdornment, Object.assign({ position: "start" }, { children: _jsx(Icon, { children: "add_location_alt" }) })), params.InputProps.endAdornment] })) }) }))) })), isOnlineTabActive && location === SCEventLocationType.ONLINE && (_jsx(UrlTextField, { size: "small", fullWidth: true, type: "url", placeholder: `${intl.formatMessage(messages.virtualPlaceholder)}`, helperText: _jsx(FormattedMessage, { id: "ui.eventForm.address.online.help", defaultMessage: "ui.eventForm.address.online.help" }), InputProps: {
155
- endAdornment: _jsx(Icon, { children: "play_circle_outline" })
154
+ return (_jsxs(Root, Object.assign({ className: classNames(classes.root, className) }, { children: [_jsxs(Tabs, Object.assign({ className: classes.tabs, value: location, onChange: handleChange, indicatorColor: "secondary", textColor: "secondary", variant: "fullWidth" }, { children: [isInPersonTabActive && (_jsx(Tab, { value: SCEventLocationType.PERSON, classes: { root: classes.tab }, icon: _jsx(Icon, { children: "add_location_alt" }), iconPosition: "start", label: _jsx(FormattedMessage, { id: "ui.eventForm.address.live.label", defaultMessage: "ui.eventForm.address.live.label" }) })), isOnlineTabActive && (_jsx(Tab, { value: SCEventLocationType.ONLINE, classes: { root: classes.tab }, icon: _jsx(Icon, { children: "play_circle_outline" }), iconPosition: "start", label: _jsx(FormattedMessage, { id: "ui.eventForm.address.online.label", defaultMessage: "ui.eventForm.address.online.label" }) })), isLiveTabActive && (_jsx(Tab, { value: SCEventLocationType.LIVESTREAM, classes: { root: classes.tab }, icon: _jsx(Icon, { children: "photo_camera" }), iconPosition: "start", label: _jsx(FormattedMessage, { id: "ui.eventForm.address.liveStream.label", defaultMessage: "ui.eventForm.address.liveStream.label" }) }))] })), _jsxs(Box, Object.assign({ className: classes.tabContent }, { children: [isInPersonTabActive && location === SCEventLocationType.PERSON && (_jsx(Autocomplete, { disabled: !geocodingApiKey, size: "small", value: geolocation, onChange: handleSelection, inputValue: inputValue, onInputChange: handleLocationChange, options: suggestions, getOptionLabel: (option) => option.description || geolocation.description, noOptionsText: _jsx(FormattedMessage, { id: "ui.eventForm.address.live.noResults", defaultMessage: "ui.eventForm.address.live.noResults" }), isOptionEqualToValue: (option, value) => option.description === value.description, renderInput: (params) => (_jsx(TextField, Object.assign({}, params, { label: _jsx(FormattedMessage, { id: "ui.eventForm.address.live.placeholder", defaultMessage: "ui.eventForm.address.live.placeholder" }), variant: "outlined", fullWidth: true, slotProps: {
155
+ input: Object.assign(Object.assign({}, params.InputProps), { endAdornment: (_jsxs(_Fragment, { children: [_jsx(InputAdornment, Object.assign({ position: "start" }, { children: _jsx(Icon, { children: "add_location_alt" }) })), params.InputProps.endAdornment] })) })
156
+ } }))) })), isOnlineTabActive && location === SCEventLocationType.ONLINE && (_jsx(UrlTextField, { size: "small", fullWidth: true, type: "url", placeholder: `${intl.formatMessage(messages.virtualPlaceholder)}`, helperText: _jsx(FormattedMessage, { id: "ui.eventForm.address.online.help", defaultMessage: "ui.eventForm.address.online.help" }), slotProps: {
157
+ input: {
158
+ endAdornment: _jsx(Icon, { children: "play_circle_outline" })
159
+ }
156
160
  }, value: event ? event.link : '', onChange: handleLinkChange })), isLiveTabActive && location === SCEventLocationType.LIVESTREAM && (_jsxs(_Fragment, { children: [_jsx(LiveStream, { template: SCLiveStreamTemplateType.SNIPPET, liveStream: liveStream, actions: _jsx(_Fragment, {}) }), _jsx(LiveStreamFormSettings, { settings: liveStream.settings || LIVESTREAM_DEFAULT_SETTINGS, onChange: handleLiveStreamSettingsChange })] }))] }))] })));
157
161
  }