@selfcommunity/react-ui 0.11.0 → 1.0.0

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 (789) 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/BottomNavigation/BottomNavigation.d.ts +1 -1
  7. package/lib/cjs/components/BroadcastMessages/Message.js +1 -1
  8. package/lib/cjs/components/BuyButton/BuyButton.js +8 -5
  9. package/lib/cjs/components/Categories/Categories.js +1 -1
  10. package/lib/cjs/components/Categories/Skeleton.js +1 -1
  11. package/lib/cjs/components/Categories/prefetchedCategories.js +115 -115
  12. package/lib/cjs/components/CategoryAutocomplete/CategoryAutocomplete.js +13 -4
  13. package/lib/cjs/components/CategoryFollowButton/CategoryFollowButton.js +3 -4
  14. package/lib/cjs/components/ChangeCover/ChangeCover.js +2 -6
  15. package/lib/cjs/components/ChangeGroupCover/ChangeGroupCover.js +1 -2
  16. package/lib/cjs/components/ChangeGroupPicture/ChangeGroupPicture.js +1 -2
  17. package/lib/cjs/components/ChangePicture/ChangePictureDialog/ChangePictureDialog.js +4 -8
  18. package/lib/cjs/components/Checkout/Checkout.d.ts +1 -1
  19. package/lib/cjs/components/Checkout/CheckoutHeaderInfoWidget.d.ts +1 -1
  20. package/lib/cjs/components/Checkout/Skeleton.js +1 -3
  21. package/lib/cjs/components/CheckoutReturnDialog/CheckoutReturnDialog.d.ts +1 -1
  22. package/lib/cjs/components/CheckoutReturnDialog/CheckoutReturnDialog.js +10 -10
  23. package/lib/cjs/components/CommentObjectReply/CommentObjectReply.js +2 -3
  24. package/lib/cjs/components/CommentsFeedObject/CommentsFeedObject.js +2 -2
  25. package/lib/cjs/components/CommunityPaywalls/CommunityPaywalls.d.ts +1 -1
  26. package/lib/cjs/components/CommunityPaywalls/CommunityPaywalls.js +3 -4
  27. package/lib/cjs/components/CommunityPaywalls/Skeleton.d.ts +3 -3
  28. package/lib/cjs/components/CommunityPaywalls/Skeleton.js +2 -3
  29. package/lib/cjs/components/Composer/Composer.js +3 -4
  30. package/lib/cjs/components/Composer/Content/ContentDiscussion/ContentDiscussion.js +5 -3
  31. package/lib/cjs/components/Composer/Content/ContentLesson/ContentLesson.js +2 -2
  32. package/lib/cjs/components/Composer/Content/ContentPoll/ContentPoll.js +16 -12
  33. package/lib/cjs/components/Composer/Content/ContentPost/ContentPost.js +2 -2
  34. package/lib/cjs/components/Composer/Layer/AudienceLayer/AudienceLayer.d.ts +1 -1
  35. package/lib/cjs/components/Composer/Layer/AudienceLayer/AudienceLayer.js +11 -5
  36. package/lib/cjs/components/Composer/Layer/CategoryLayer/CategoryLayer.d.ts +1 -1
  37. package/lib/cjs/components/Composer/Layer/CloseLayer/CloseLayer.d.ts +1 -1
  38. package/lib/cjs/components/Composer/Layer/LocationLayer/LocationLayer.d.ts +1 -1
  39. package/lib/cjs/components/Composer/Layer/ScheduledLayer/ScheduledLayer.d.ts +1 -1
  40. package/lib/cjs/components/Composer/Layer/ScheduledLayer/ScheduledLayer.js +6 -6
  41. package/lib/cjs/components/ComposerIconButton/ComposerIconButton.d.ts +1 -1
  42. package/lib/cjs/components/ConsentSolution/ConsentSolution.js +12 -5
  43. package/lib/cjs/components/ConsentSolution/Skeleton.js +1 -1
  44. package/lib/cjs/components/CourseCompletedDialog/CourseCompletedDialog.d.ts +1 -1
  45. package/lib/cjs/components/CourseCompletedDialog/CourseCompletedDialog.js +1 -1
  46. package/lib/cjs/components/CourseDashboard/Header/Skeleton.d.ts +1 -1
  47. package/lib/cjs/components/CourseDashboard/Header.d.ts +1 -1
  48. package/lib/cjs/components/CourseDashboard/Student/ActionButton.d.ts +2 -3
  49. package/lib/cjs/components/CourseDashboard/Student/ActionButton.js +1 -2
  50. package/lib/cjs/components/CourseDashboard/Student/Skeleton.d.ts +1 -1
  51. package/lib/cjs/components/CourseDashboard/Student.d.ts +1 -1
  52. package/lib/cjs/components/CourseDashboard/Teacher/Comments.d.ts +1 -1
  53. package/lib/cjs/components/CourseDashboard/Teacher/Comments.js +1 -2
  54. package/lib/cjs/components/CourseDashboard/Teacher/Info.d.ts +1 -1
  55. package/lib/cjs/components/CourseDashboard/Teacher/Skeleton.d.ts +1 -1
  56. package/lib/cjs/components/CourseDashboard/Teacher/Students.d.ts +1 -1
  57. package/lib/cjs/components/CourseDashboard/Teacher.d.ts +1 -1
  58. package/lib/cjs/components/CourseDashboard/index.d.ts +2 -2
  59. package/lib/cjs/components/CourseForm/CourseForm.js +9 -6
  60. package/lib/cjs/components/CourseForm/Dialog.d.ts +1 -1
  61. package/lib/cjs/components/CourseForm/Edit.js +6 -2
  62. package/lib/cjs/components/CourseForm/Skeleton.d.ts +1 -1
  63. package/lib/cjs/components/CourseForm/UploadCourseCover.js +1 -2
  64. package/lib/cjs/components/CourseJoinButton/CourseJoinButton.js +3 -4
  65. package/lib/cjs/components/CourseParticipantsButton/CourseParticipantsButton.d.ts +1 -1
  66. package/lib/cjs/components/Courses/Courses.d.ts +0 -4
  67. package/lib/cjs/components/Courses/Courses.js +10 -11
  68. package/lib/cjs/components/Courses/Skeleton.js +1 -1
  69. package/lib/cjs/components/CreateEventWidget/CreateEventWidget.d.ts +1 -1
  70. package/lib/cjs/components/CreateEventWidget/Skeleton.d.ts +1 -1
  71. package/lib/cjs/components/CreateLiveStreamDialog/CreateLiveStreamDialog.js +7 -1
  72. package/lib/cjs/components/CreateLiveStreamDialog/LiveStreamSelector/LiveStreamSelector.js +5 -8
  73. package/lib/cjs/components/CreatePaymentProductForm/CreatePaymentProductForm.d.ts +1 -1
  74. package/lib/cjs/components/CreatePaymentProductForm/CreatePaymentProductForm.js +6 -5
  75. package/lib/cjs/components/CustomAdv/Skeleton.js +1 -1
  76. package/lib/cjs/components/EditCourse/Customize.d.ts +1 -1
  77. package/lib/cjs/components/EditCourse/EditCourse.d.ts +1 -1
  78. package/lib/cjs/components/EditCourse/Lessons/AddButton.d.ts +1 -1
  79. package/lib/cjs/components/EditCourse/Lessons/ChangeLessonStatus.d.ts +1 -1
  80. package/lib/cjs/components/EditCourse/Lessons/ChangeLessonStatus.js +2 -3
  81. package/lib/cjs/components/EditCourse/Lessons/FieldName.d.ts +1 -1
  82. package/lib/cjs/components/EditCourse/Lessons/FieldName.js +1 -2
  83. package/lib/cjs/components/EditCourse/Lessons/Skeleton.d.ts +1 -1
  84. package/lib/cjs/components/EditCourse/Lessons.d.ts +1 -1
  85. package/lib/cjs/components/EditCourse/MenuRow.d.ts +1 -1
  86. package/lib/cjs/components/EditCourse/Options/Skeleton.d.ts +1 -1
  87. package/lib/cjs/components/EditCourse/Options/SwitchForm.d.ts +1 -1
  88. package/lib/cjs/components/EditCourse/Options.d.ts +1 -1
  89. package/lib/cjs/components/EditCourse/Options.js +1 -2
  90. package/lib/cjs/components/EditCourse/Requests.d.ts +1 -1
  91. package/lib/cjs/components/EditCourse/Skeleton.d.ts +1 -1
  92. package/lib/cjs/components/EditCourse/Status.d.ts +1 -1
  93. package/lib/cjs/components/EditCourse/Status.js +1 -1
  94. package/lib/cjs/components/EditCourse/Users/Skeleton.d.ts +1 -1
  95. package/lib/cjs/components/EditCourse/Users.d.ts +1 -1
  96. package/lib/cjs/components/Editor/Editor.d.ts +1 -1
  97. package/lib/cjs/components/Editor/Editor.js +3 -3
  98. package/lib/cjs/components/Editor/nodes/HashtagNode.d.ts +1 -1
  99. package/lib/cjs/components/Editor/nodes/HashtagNode.js +4 -4
  100. package/lib/cjs/components/Editor/nodes/ImageNode.d.ts +1 -1
  101. package/lib/cjs/components/Editor/nodes/ImageNode.js +6 -6
  102. package/lib/cjs/components/Editor/nodes/MentionNode.d.ts +1 -1
  103. package/lib/cjs/components/Editor/nodes/MentionNode.js +4 -4
  104. package/lib/cjs/components/Editor/plugins/ApiPlugin.d.ts +2 -2
  105. package/lib/cjs/components/Editor/plugins/EmojiPlugin.js +4 -2
  106. package/lib/cjs/components/Editor/plugins/FloatingLinkPlugin.js +6 -4
  107. package/lib/cjs/components/Editor/plugins/MediaPlugin.d.ts +1 -1
  108. package/lib/cjs/components/Editor/plugins/MentionsPlugin.d.ts +2 -2
  109. package/lib/cjs/components/Editor/shared/useDecorators.d.ts +2 -2
  110. package/lib/cjs/components/Event/Skeleton.js +1 -2
  111. package/lib/cjs/components/EventAutocomplete/EventAutocomplete.js +7 -4
  112. package/lib/cjs/components/EventForm/EventAddress.js +9 -5
  113. package/lib/cjs/components/EventForm/EventForm.js +89 -51
  114. package/lib/cjs/components/EventForm/UploadEventCover.js +1 -2
  115. package/lib/cjs/components/EventForm/types.d.ts +5 -5
  116. package/lib/cjs/components/EventInfoWidget/EventInfoWidget.d.ts +1 -1
  117. package/lib/cjs/components/EventInfoWidget/Skeleton.d.ts +1 -1
  118. package/lib/cjs/components/EventInfoWidget/index.d.ts +1 -1
  119. package/lib/cjs/components/EventInviteButton/EventInviteButton.js +3 -2
  120. package/lib/cjs/components/EventLocationWidget/EventLocationWidget.js +5 -16
  121. package/lib/cjs/components/EventLocationWidget/EventMap.d.ts +8 -0
  122. package/lib/cjs/components/EventLocationWidget/EventMap.js +28 -0
  123. package/lib/cjs/components/EventLocationWidget/Skeleton.js +1 -1
  124. package/lib/cjs/components/EventMediaWidget/EventMediaWidget.d.ts +1 -1
  125. package/lib/cjs/components/EventMediaWidget/EventMediaWidget.js +1 -2
  126. package/lib/cjs/components/EventMediaWidget/Skeleton.d.ts +2 -2
  127. package/lib/cjs/components/EventMediaWidget/TriggerButton.d.ts +3 -3
  128. package/lib/cjs/components/EventMediaWidget/TriggerButton.js +1 -2
  129. package/lib/cjs/components/EventMediaWidget/asUploadButton.d.ts +2 -2
  130. package/lib/cjs/components/EventMediaWidget/index.d.ts +2 -1
  131. package/lib/cjs/components/EventMembersWidget/EventMembersWidget.d.ts +1 -1
  132. package/lib/cjs/components/EventMembersWidget/Skeleton.d.ts +1 -1
  133. package/lib/cjs/components/EventMembersWidget/TabContentComponent.d.ts +1 -1
  134. package/lib/cjs/components/EventMembersWidget/index.d.ts +1 -1
  135. package/lib/cjs/components/EventParticipantsButton/EventParticipantsButton.d.ts +1 -1
  136. package/lib/cjs/components/EventSubscribeButton/EventSubscribeButton.js +11 -4
  137. package/lib/cjs/components/Events/Events.d.ts +0 -4
  138. package/lib/cjs/components/Events/Events.js +14 -9
  139. package/lib/cjs/components/Events/LocationEventsFilter.js +5 -1
  140. package/lib/cjs/components/Events/OngoingEventsFilter.js +6 -2
  141. package/lib/cjs/components/Events/PastEventsFilter.js +6 -2
  142. package/lib/cjs/components/Events/Skeleton.js +1 -1
  143. package/lib/cjs/components/Feed/Feed.d.ts +2 -2
  144. package/lib/cjs/components/Feed/Feed.js +9 -10
  145. package/lib/cjs/components/Feed/Skeleton.d.ts +1 -1
  146. package/lib/cjs/components/Feed/Skeleton.js +1 -1
  147. package/lib/cjs/components/FeedObject/Actions/Actions.js +2 -3
  148. package/lib/cjs/components/FeedObject/Actions/Comment/Comment.js +2 -2
  149. package/lib/cjs/components/FeedObject/Actions/Follow/Follow.js +2 -3
  150. package/lib/cjs/components/FeedObject/Actions/Share/Share.js +1 -2
  151. package/lib/cjs/components/FeedObject/Activities/ActivitiesMenu/ActivitiesMenu.d.ts +1 -1
  152. package/lib/cjs/components/FeedObject/Activities/ActivitiesMenu/ActivitiesMenu.js +20 -18
  153. package/lib/cjs/components/FeedObject/Activities/RelevantActivities/CommentActivity/CommentActivity.js +1 -1
  154. package/lib/cjs/components/FeedObject/Activities/RelevantActivities/RelevantActivities.js +1 -1
  155. package/lib/cjs/components/FeedObject/Contributors/Contributors.js +1 -1
  156. package/lib/cjs/components/FeedObject/Contributors/Skeleton.js +1 -1
  157. package/lib/cjs/components/FeedObject/Poll/Choice/Choice.js +1 -2
  158. package/lib/cjs/components/FeedObjectMediaPreview/FeedObjectMediaPreview.js +1 -1
  159. package/lib/cjs/components/FollowUserButton/FollowUserButton.js +1 -2
  160. package/lib/cjs/components/FooterWidget/FooterWidget.d.ts +1 -1
  161. package/lib/cjs/components/FriendshipUserButton/FriendshipUserButton.js +2 -3
  162. package/lib/cjs/components/GroupActionsMenu/index.js +9 -1
  163. package/lib/cjs/components/GroupAutocomplete/GroupAutocomplete.js +7 -4
  164. package/lib/cjs/components/GroupForm/GroupForm.js +16 -27
  165. package/lib/cjs/components/GroupInfoWidget/GroupInfoWidget.js +5 -15
  166. package/lib/cjs/components/GroupInviteButton/GroupInviteButton.js +8 -7
  167. package/lib/cjs/components/GroupSettingsIconButton/GroupSettingsIconButton.js +10 -4
  168. package/lib/cjs/components/GroupSubscribeButton/GroupSubscribeButton.js +3 -4
  169. package/lib/cjs/components/Groups/Groups.js +10 -10
  170. package/lib/cjs/components/Groups/Skeleton.js +1 -2
  171. package/lib/cjs/components/Incubator/Incubator.js +4 -4
  172. package/lib/cjs/components/Incubator/Skeleton.js +1 -1
  173. package/lib/cjs/components/IncubatorDetail/IncubatorDetail.js +2 -2
  174. package/lib/cjs/components/IncubatorListWidget/CreateIncubatorDialog/CreateIncubatorDialog.js +3 -4
  175. package/lib/cjs/components/IncubatorListWidget/IncubatorListWidget.js +5 -5
  176. package/lib/cjs/components/IncubatorSubscribeButton/IncubatorSubscribeButton.js +3 -4
  177. package/lib/cjs/components/IncubatorSuggestionWidget/IncubatorSuggestionWidget.js +1 -1
  178. package/lib/cjs/components/InviteUserEventButton/InviteUserEventButton.js +1 -2
  179. package/lib/cjs/components/LessonAppbar/LessonAppbar.js +3 -4
  180. package/lib/cjs/components/LessonCommentObjects/LessonCommentObjects.js +1 -1
  181. package/lib/cjs/components/LessonEditForm/LessonEditForm.js +1 -2
  182. package/lib/cjs/components/LessonReleaseMenu/LessonReleaseMenu.js +24 -16
  183. package/lib/cjs/components/LiveStreamForm/LiveStreamForm.js +15 -12
  184. package/lib/cjs/components/LiveStreamForm/types.d.ts +3 -3
  185. package/lib/cjs/components/LiveStreamRoom/LiveStreamRoom.js +10 -8
  186. package/lib/cjs/components/LiveStreamRoom/LiveStreamVideoConference/ControlBar.d.ts +2 -2
  187. package/lib/cjs/components/LiveStreamRoom/LiveStreamVideoConference/DisconnectButton.js +5 -1
  188. package/lib/cjs/components/LiveStreamRoom/LiveStreamVideoConference/FocusLayout.d.ts +4 -4
  189. package/lib/cjs/components/LiveStreamRoom/LiveStreamVideoConference/LiveStreamSettingsMenu.js +7 -3
  190. package/lib/cjs/components/LiveStreamRoom/LiveStreamVideoConference/LiveStreamVideoConference.js +3 -3
  191. package/lib/cjs/components/LiveStreamRoom/LiveStreamVideoConference/ParticipantPlaceholder.d.ts +1 -1
  192. package/lib/cjs/components/LiveStreamRoom/LiveStreamVideoConference/ParticipantTile.d.ts +2 -2
  193. package/lib/cjs/components/LiveStreamRoom/LiveStreamVideoConference/ParticipantTile.js +1 -3
  194. package/lib/cjs/components/LiveStreamRoom/LiveStreamVideoConference/ParticipantTileActions.js +1 -1
  195. package/lib/cjs/components/LiveStreamRoom/LiveStreamVideoConference/PreJoin.d.ts +1 -1
  196. package/lib/cjs/components/LiveStreamRoom/LiveStreamVideoConference/RecordingIndicator.d.ts +1 -1
  197. package/lib/cjs/components/LiveStreamRoom/LiveStreamVideoConference/SettingsMenuToggle.d.ts +1 -1
  198. package/lib/cjs/components/LiveStreamRoom/LiveStreamVideoConference/TrackToggle.d.ts +1 -1
  199. package/lib/cjs/components/LiveStreamRoom/LiveStreamVideoConference/VideoConference.d.ts +1 -1
  200. package/lib/cjs/components/LiveStreamRoom/LiveStreamVideoConference/utils.d.ts +2 -2
  201. package/lib/cjs/components/LiveStreamRoom/types.d.ts +1 -1
  202. package/lib/cjs/components/LocationAutocomplete/LocationAutocomplete.js +11 -11
  203. package/lib/cjs/components/LoyaltyProgramWidget/LoyaltyProgramWidget.js +1 -1
  204. package/lib/cjs/components/LoyaltyProgramWidget/Skeleton.js +1 -1
  205. package/lib/cjs/components/MyEventsWidget/MyEventsWidget.d.ts +1 -1
  206. package/lib/cjs/components/MyEventsWidget/Skeleton.d.ts +1 -1
  207. package/lib/cjs/components/MyEventsWidget/index.d.ts +1 -1
  208. package/lib/cjs/components/NavigationMenuIconButton/DefaultDrawerContent.d.ts +1 -1
  209. package/lib/cjs/components/NavigationMenuIconButton/DefaultDrawerContent.js +3 -2
  210. package/lib/cjs/components/NavigationMenuIconButton/DefaultDrawerSkeleton.d.ts +1 -1
  211. package/lib/cjs/components/NavigationMenuIconButton/DefaultHeaderContent.d.ts +2 -2
  212. package/lib/cjs/components/NavigationSettingsIconButton/NavigationSettingsIconButton.js +9 -1
  213. package/lib/cjs/components/NavigationToolbar/NavigationToolbar.d.ts +1 -1
  214. package/lib/cjs/components/NavigationToolbar/NotificationMenu.d.ts +1 -1
  215. package/lib/cjs/components/NavigationToolbar/NotificationMenu.js +2 -5
  216. package/lib/cjs/components/NavigationToolbarMobile/NavigationToolbarMobile.d.ts +1 -1
  217. package/lib/cjs/components/Notification/CollapsedFor/CollapsedFor.js +3 -1
  218. package/lib/cjs/components/Notification/Comment/Comment.js +3 -3
  219. package/lib/cjs/components/Notification/Contribution/Contribution.js +1 -1
  220. package/lib/cjs/components/Notification/ContributionFollow/ContributionFollow.js +2 -2
  221. package/lib/cjs/components/Notification/Course/Course.js +5 -10
  222. package/lib/cjs/components/Notification/DeletedFor/DeletedFor.js +4 -2
  223. package/lib/cjs/components/Notification/Event/Event.js +7 -12
  224. package/lib/cjs/components/Notification/Group/Group.js +3 -4
  225. package/lib/cjs/components/Notification/IncubatorApproved/IncubatorApproved.js +3 -3
  226. package/lib/cjs/components/Notification/KindlyNoticeFlag/KindlyNoticeFlag.js +3 -1
  227. package/lib/cjs/components/Notification/KindlyNoticeFor/KindlyNoticeFor.js +5 -3
  228. package/lib/cjs/components/Notification/LiveStream/LiveStream.js +4 -9
  229. package/lib/cjs/components/Notification/Mention/Mention.js +2 -2
  230. package/lib/cjs/components/Notification/Notification.js +17 -9
  231. package/lib/cjs/components/Notification/PrivateMessage/PrivateMessage.js +4 -5
  232. package/lib/cjs/components/Notification/UndeletedFor/UndeletedFor.js +1 -1
  233. package/lib/cjs/components/Notification/UserBlocked/UserBlocked.js +6 -2
  234. package/lib/cjs/components/Notification/UserConnection/UserConnection.js +6 -2
  235. package/lib/cjs/components/Notification/UserFollow/UserFollow.js +2 -2
  236. package/lib/cjs/components/Notification/VoteUp/VoteUp.js +2 -2
  237. package/lib/cjs/components/OnBoardingWidget/ActionsButton.js +12 -4
  238. package/lib/cjs/components/OnBoardingWidget/OnBoardingWidget.d.ts +1 -1
  239. package/lib/cjs/components/OnBoardingWidget/OnBoardingWidget.js +19 -27
  240. package/lib/cjs/components/OnBoardingWidget/Skeleton.js +1 -1
  241. package/lib/cjs/components/OnBoardingWidget/Steps/App/App.d.ts +1 -1
  242. package/lib/cjs/components/OnBoardingWidget/Steps/App/App.js +9 -25
  243. package/lib/cjs/components/OnBoardingWidget/Steps/Appearance/Appearance.d.ts +1 -1
  244. package/lib/cjs/components/OnBoardingWidget/Steps/Appearance/Appearance.js +17 -14
  245. package/lib/cjs/components/OnBoardingWidget/Steps/Category/Category.d.ts +1 -1
  246. package/lib/cjs/components/OnBoardingWidget/Steps/Category/Category.js +3 -9
  247. package/lib/cjs/components/OnBoardingWidget/Steps/Content/Content.d.ts +1 -1
  248. package/lib/cjs/components/OnBoardingWidget/Steps/Invite/Invite.d.ts +1 -1
  249. package/lib/cjs/components/OnBoardingWidget/Steps/Profile/Profile.d.ts +1 -1
  250. package/lib/cjs/components/PaymentDetailDialog/PaymentDetailDialog.d.ts +1 -1
  251. package/lib/cjs/components/PaymentDetailDialog/PaymentDetailDialog.js +7 -5
  252. package/lib/cjs/components/PaymentOrder/PaymentOrder.d.ts +1 -1
  253. package/lib/cjs/components/PaymentOrder/PaymentOrder.js +1 -1
  254. package/lib/cjs/components/PaymentOrders/PaymentOrders.d.ts +1 -1
  255. package/lib/cjs/components/PaymentOrders/PaymentOrders.js +39 -26
  256. package/lib/cjs/components/PaymentProduct/PaymentProduct.d.ts +2 -2
  257. package/lib/cjs/components/PaymentProduct/PaymentProduct.js +1 -1
  258. package/lib/cjs/components/PaymentProduct/Skeleton.js +1 -1
  259. package/lib/cjs/components/PaymentProductPrice/PaymentProductPrice.d.ts +1 -1
  260. package/lib/cjs/components/PaymentProducts/PaymentProducts.d.ts +1 -1
  261. package/lib/cjs/components/PaymentProducts/Skeleton.js +1 -1
  262. package/lib/cjs/components/Paywalls/Paywalls.d.ts +1 -1
  263. package/lib/cjs/components/Paywalls/Skeleton.js +1 -1
  264. package/lib/cjs/components/PaywallsConfigurator/PaywallsConfigurator.d.ts +1 -1
  265. package/lib/cjs/components/PaywallsConfigurator/PaywallsConfigurator.js +5 -5
  266. package/lib/cjs/components/PaywallsConfigurator/Skeleton.js +1 -1
  267. package/lib/cjs/components/PaywallsDialog/PaywallsDialog.d.ts +1 -1
  268. package/lib/cjs/components/PaywallsDialog/PaywallsDialog.js +8 -6
  269. package/lib/cjs/components/PdfPreviewDialog/PdfPreviewDialog.d.ts +1 -1
  270. package/lib/cjs/components/PdfPreviewDialog/PdfPreviewDialog.js +3 -1
  271. package/lib/cjs/components/PlatformWidget/PlatformWidget.js +6 -6
  272. package/lib/cjs/components/PlatformWidget/Skeleton.js +1 -1
  273. package/lib/cjs/components/PrivateMessageComponent/PrivateMessageComponent.js +3 -3
  274. package/lib/cjs/components/PrivateMessageComponent/Skeleton.d.ts +1 -1
  275. package/lib/cjs/components/PrivateMessageComponent/Skeleton.js +1 -1
  276. package/lib/cjs/components/PrivateMessageEditor/MessageMediaUploader/index.js +2 -2
  277. package/lib/cjs/components/PrivateMessageEditor/PrivateMessageEditor.js +6 -4
  278. package/lib/cjs/components/PrivateMessageSettingsIconButton/PrivateMessageSettingsIconButton.js +9 -1
  279. package/lib/cjs/components/PrivateMessageSnippets/PrivateMessageSnippets.js +10 -8
  280. package/lib/cjs/components/PrivateMessageSnippets/Skeleton.js +1 -1
  281. package/lib/cjs/components/PrivateMessageThread/PrivateMessageThread.d.ts +1 -1
  282. package/lib/cjs/components/PrivateMessageThread/PrivateMessageThread.js +7 -7
  283. package/lib/cjs/components/PrivateMessageThread/Skeleton.js +1 -1
  284. package/lib/cjs/components/RelatedEventsWidget/RelatedEventsWidget.d.ts +1 -1
  285. package/lib/cjs/components/RelatedEventsWidget/Skeleton.d.ts +1 -1
  286. package/lib/cjs/components/RelatedEventsWidget/index.d.ts +1 -1
  287. package/lib/cjs/components/SearchAutocomplete/SearchAutocomplete.d.ts +1 -1
  288. package/lib/cjs/components/SearchAutocomplete/SearchAutocomplete.js +13 -8
  289. package/lib/cjs/components/SearchDialog/SearchDialog.d.ts +1 -1
  290. package/lib/cjs/components/SnippetNotifications/SnippetNotifications.js +5 -5
  291. package/lib/cjs/components/SuggestedEventsWidget/Arrow.d.ts +1 -1
  292. package/lib/cjs/components/SuggestedEventsWidget/Skeleton.d.ts +1 -1
  293. package/lib/cjs/components/SuggestedEventsWidget/SuggestedEventsWidget.d.ts +1 -1
  294. package/lib/cjs/components/SuggestedEventsWidget/index.d.ts +1 -1
  295. package/lib/cjs/components/TagAutocomplete/TagAutocomplete.js +5 -2
  296. package/lib/cjs/components/UserActionIconButton/UserActionIconButton.js +9 -8
  297. package/lib/cjs/components/UserAddPaymentMethodForm/UserAddPaymentMethodForm.js +4 -6
  298. package/lib/cjs/components/UserAutocomplete/UserAutocomplete.js +12 -10
  299. package/lib/cjs/components/UserBillingInfo/Skeleton.js +1 -1
  300. package/lib/cjs/components/UserBillingInfo/UserBillingInfo.d.ts +2 -2
  301. package/lib/cjs/components/UserBillingInfo/UserBillingInfo.js +30 -22
  302. package/lib/cjs/components/UserChangeAddressDialog/UserChangeAddressDialog.js +1 -2
  303. package/lib/cjs/components/UserCounters/UserCounters.js +5 -13
  304. package/lib/cjs/components/UserInfo/UserInfo.js +1 -1
  305. package/lib/cjs/components/UserInfoDialog/UserInfoDialog.d.ts +1 -1
  306. package/lib/cjs/components/UserLiveStreamWidget/Skeleton.d.ts +1 -1
  307. package/lib/cjs/components/UserLiveStreamWidget/UserLiveStreamWidget.d.ts +1 -1
  308. package/lib/cjs/components/UserLiveStreamWidget/index.d.ts +1 -1
  309. package/lib/cjs/components/UserPaymentMethods/Skeleton.d.ts +25 -4
  310. package/lib/cjs/components/UserPaymentMethods/Skeleton.js +2 -4
  311. package/lib/cjs/components/UserPaymentMethods/UserPaymentMethods.d.ts +26 -4
  312. package/lib/cjs/components/UserPaymentMethods/UserPaymentMethods.js +8 -9
  313. package/lib/cjs/components/UserProfileBlocked/UserProfileBlocked.js +1 -2
  314. package/lib/cjs/components/UserProfileEdit/Section/AccountCredentials.js +10 -7
  315. package/lib/cjs/components/UserProfileEdit/Section/PublicInfo.js +9 -20
  316. package/lib/cjs/components/UserProfileEdit/Skeleton.js +1 -1
  317. package/lib/cjs/components/UserSubscribedGroupsWidget/UserSubscribedGroupsWidget.js +1 -1
  318. package/lib/cjs/components/VoteAudienceButton/VoteAudienceButton.d.ts +2 -2
  319. package/lib/cjs/components/VoteAudienceButton/VoteAudienceButton.js +4 -5
  320. package/lib/cjs/components/VoteButton/VoteButton.d.ts +2 -2
  321. package/lib/cjs/components/VoteButton/VoteButton.js +2 -3
  322. package/lib/cjs/components/Widget/index.d.ts +1 -1
  323. package/lib/cjs/shared/AccordionLessons/AccordionLessons.d.ts +1 -1
  324. package/lib/cjs/shared/AccordionLessons/Skeleton.d.ts +1 -1
  325. package/lib/cjs/shared/AddUsersButton/AddUsersButton.d.ts +1 -1
  326. package/lib/cjs/shared/AddUsersButton/AddUsersButton.js +3 -2
  327. package/lib/cjs/shared/AutoPlayer/index.d.ts +1 -1
  328. package/lib/cjs/shared/BaseDialog/BaseDialog.d.ts +1 -1
  329. package/lib/cjs/shared/Calendar/index.d.ts +1 -1
  330. package/lib/cjs/shared/ConfirmDialog/ConfirmDialog.js +1 -2
  331. package/lib/cjs/shared/ContributionActionsMenu/index.js +3 -9
  332. package/lib/cjs/shared/CopyTextArea/index.js +12 -6
  333. package/lib/cjs/shared/CourseTypePopover/CourseTypePopover.d.ts +1 -1
  334. package/lib/cjs/shared/CourseUsersTable/ChangeUsersStatus.d.ts +1 -1
  335. package/lib/cjs/shared/CourseUsersTable/ChangeUsersStatus.js +1 -2
  336. package/lib/cjs/shared/CourseUsersTable/CourseUsersTable.d.ts +2 -2
  337. package/lib/cjs/shared/CourseUsersTable/CourseUsersTable.js +6 -5
  338. package/lib/cjs/shared/CourseUsersTable/RemoveButton.js +1 -2
  339. package/lib/cjs/shared/CourseUsersTable/RequestButton.js +1 -2
  340. package/lib/cjs/shared/CourseUsersTable/RowSkeleton.d.ts +1 -1
  341. package/lib/cjs/shared/CourseUsersTable/SeeProgressButton.d.ts +1 -1
  342. package/lib/cjs/shared/CourseUsersTable/Skeleton.d.ts +1 -1
  343. package/lib/cjs/shared/CustomSnackMessage/index.js +2 -2
  344. package/lib/cjs/shared/DateTimeAgo/index.js +2 -2
  345. package/lib/cjs/shared/EmojiPicker/EmojiPicker.d.ts +1 -2
  346. package/lib/cjs/shared/EmptyStatus/EmptyStatus.d.ts +1 -1
  347. package/lib/cjs/shared/EventActionsMenu/index.js +9 -1
  348. package/lib/cjs/shared/EventInfoDetails/index.d.ts +1 -1
  349. package/lib/cjs/shared/HiddenPurchasableContent/HiddenPurchasableContent.js +3 -4
  350. package/lib/cjs/shared/InfiniteScroll/index.d.ts +2 -2
  351. package/lib/cjs/shared/InfiniteScroll/stories/InfiniteScrollWithHeight.d.ts +1 -1
  352. package/lib/cjs/shared/InfiniteScroll/stories/PullDownToRefreshInfScroll.d.ts +1 -1
  353. package/lib/cjs/shared/InfiniteScroll/stories/ScrollableTargetFixedInfScroll.d.ts +1 -1
  354. package/lib/cjs/shared/InfiniteScroll/stories/ScrollableTargetInfScroll.d.ts +1 -1
  355. package/lib/cjs/shared/InfiniteScroll/stories/ScrolleableTop.d.ts +1 -1
  356. package/lib/cjs/shared/InfiniteScroll/stories/ScrolleableTop.js +1 -1
  357. package/lib/cjs/shared/InfiniteScroll/stories/WindowInfiniteScrollComponent.d.ts +1 -1
  358. package/lib/cjs/shared/LessonCommentActionsMenu/index.js +2 -8
  359. package/lib/cjs/shared/Lightbox/BaseLightbox.d.ts +1 -1
  360. package/lib/cjs/shared/Lightbox/BaseLightbox.js +1 -1
  361. package/lib/cjs/shared/Lightbox/Lightbox.d.ts +1 -1
  362. package/lib/cjs/shared/LiveStreamInfoDetails/index.d.ts +1 -1
  363. package/lib/cjs/shared/Media/File/DisplayComponent.js +4 -6
  364. package/lib/cjs/shared/Media/File/DocComponent.d.ts +3 -1
  365. package/lib/cjs/shared/Media/File/DocComponent.js +3 -2
  366. package/lib/cjs/shared/Media/File/PreviewComponent.d.ts +1 -1
  367. package/lib/cjs/shared/Media/File/PreviewComponent.js +4 -3
  368. package/lib/cjs/shared/Media/File/TriggerButton.js +9 -1
  369. package/lib/cjs/shared/Media/File/asUploadButton.d.ts +2 -2
  370. package/lib/cjs/shared/Media/File/asUploadButton.js +1 -1
  371. package/lib/cjs/shared/Media/Link/DisplayComponent.js +4 -12
  372. package/lib/cjs/shared/Media/Link/LayerComponent.d.ts +1 -1
  373. package/lib/cjs/shared/Media/Link/PreviewComponent.d.ts +1 -1
  374. package/lib/cjs/shared/Media/Link/UrlTextField/index.d.ts +1 -1
  375. package/lib/cjs/shared/Media/Link/UrlTextField/index.js +3 -1
  376. package/lib/cjs/shared/MessageChunkUploader/index.js +1 -1
  377. package/lib/cjs/shared/MetadataField/MetadataField.d.ts +1 -1
  378. package/lib/cjs/shared/PasswordTextField/index.js +7 -5
  379. package/lib/cjs/shared/ProgressBar/index.d.ts +1 -1
  380. package/lib/cjs/shared/ScrollContainer/index.js +2 -2
  381. package/lib/cjs/shared/StickyBox/index.d.ts +4 -4
  382. package/lib/cjs/shared/TagChip/index.d.ts +2 -48
  383. package/lib/cjs/shared/TagChip/index.js +2 -2
  384. package/lib/cjs/shared/Tags/index.js +9 -9
  385. package/lib/cjs/shared/UsernameTextField/index.d.ts +1 -1
  386. package/lib/cjs/shared/VirtualizedScroller/VirtualScrollerChild.d.ts +1 -1
  387. package/lib/cjs/shared/VirtualizedScroller/VirtualizedScroller.d.ts +1 -1
  388. package/lib/cjs/types/composer.d.ts +1 -1
  389. package/lib/cjs/utils/buttonCounters.d.ts +1 -1
  390. package/lib/esm/components/AcceptRequestUserEventButton/AcceptRequestUserEventButton.js +2 -3
  391. package/lib/esm/components/AcceptRequestUserGroupButton/AcceptRequestUserGroupButton.js +2 -3
  392. package/lib/esm/components/AccountDataPortability/AccountDataPortability.js +7 -12
  393. package/lib/esm/components/AccountDelete/AccountDelete.js +6 -13
  394. package/lib/esm/components/AccountRecover/AccountRecover.js +2 -4
  395. package/lib/esm/components/BottomNavigation/BottomNavigation.d.ts +1 -1
  396. package/lib/esm/components/BroadcastMessages/Message.js +1 -1
  397. package/lib/esm/components/BuyButton/BuyButton.js +9 -6
  398. package/lib/esm/components/Categories/Categories.js +1 -1
  399. package/lib/esm/components/Categories/Skeleton.js +1 -1
  400. package/lib/esm/components/Categories/prefetchedCategories.js +115 -115
  401. package/lib/esm/components/CategoryAutocomplete/CategoryAutocomplete.js +14 -5
  402. package/lib/esm/components/CategoryFollowButton/CategoryFollowButton.js +4 -5
  403. package/lib/esm/components/ChangeCover/ChangeCover.js +2 -6
  404. package/lib/esm/components/ChangeGroupCover/ChangeGroupCover.js +2 -3
  405. package/lib/esm/components/ChangeGroupPicture/ChangeGroupPicture.js +2 -3
  406. package/lib/esm/components/ChangePicture/ChangePictureDialog/ChangePictureDialog.js +4 -8
  407. package/lib/esm/components/Checkout/Checkout.d.ts +1 -1
  408. package/lib/esm/components/Checkout/CheckoutHeaderInfoWidget.d.ts +1 -1
  409. package/lib/esm/components/Checkout/Skeleton.js +2 -4
  410. package/lib/esm/components/CheckoutReturnDialog/CheckoutReturnDialog.d.ts +1 -1
  411. package/lib/esm/components/CheckoutReturnDialog/CheckoutReturnDialog.js +11 -11
  412. package/lib/esm/components/CommentObjectReply/CommentObjectReply.js +3 -4
  413. package/lib/esm/components/CommentsFeedObject/CommentsFeedObject.js +2 -2
  414. package/lib/esm/components/CommunityPaywalls/CommunityPaywalls.d.ts +1 -1
  415. package/lib/esm/components/CommunityPaywalls/CommunityPaywalls.js +3 -4
  416. package/lib/esm/components/CommunityPaywalls/Skeleton.d.ts +3 -3
  417. package/lib/esm/components/CommunityPaywalls/Skeleton.js +2 -3
  418. package/lib/esm/components/Composer/Composer.js +4 -5
  419. package/lib/esm/components/Composer/Content/ContentDiscussion/ContentDiscussion.js +5 -3
  420. package/lib/esm/components/Composer/Content/ContentLesson/ContentLesson.js +2 -2
  421. package/lib/esm/components/Composer/Content/ContentPoll/ContentPoll.js +16 -12
  422. package/lib/esm/components/Composer/Content/ContentPost/ContentPost.js +2 -2
  423. package/lib/esm/components/Composer/Layer/AudienceLayer/AudienceLayer.d.ts +1 -1
  424. package/lib/esm/components/Composer/Layer/AudienceLayer/AudienceLayer.js +12 -6
  425. package/lib/esm/components/Composer/Layer/CategoryLayer/CategoryLayer.d.ts +1 -1
  426. package/lib/esm/components/Composer/Layer/CloseLayer/CloseLayer.d.ts +1 -1
  427. package/lib/esm/components/Composer/Layer/LocationLayer/LocationLayer.d.ts +1 -1
  428. package/lib/esm/components/Composer/Layer/ScheduledLayer/ScheduledLayer.d.ts +1 -1
  429. package/lib/esm/components/Composer/Layer/ScheduledLayer/ScheduledLayer.js +7 -7
  430. package/lib/esm/components/ComposerIconButton/ComposerIconButton.d.ts +1 -1
  431. package/lib/esm/components/ConsentSolution/ConsentSolution.js +12 -5
  432. package/lib/esm/components/ConsentSolution/Skeleton.js +1 -1
  433. package/lib/esm/components/CourseCompletedDialog/CourseCompletedDialog.d.ts +1 -1
  434. package/lib/esm/components/CourseCompletedDialog/CourseCompletedDialog.js +1 -1
  435. package/lib/esm/components/CourseDashboard/Header/Skeleton.d.ts +1 -1
  436. package/lib/esm/components/CourseDashboard/Header.d.ts +1 -1
  437. package/lib/esm/components/CourseDashboard/Student/ActionButton.d.ts +2 -3
  438. package/lib/esm/components/CourseDashboard/Student/ActionButton.js +1 -2
  439. package/lib/esm/components/CourseDashboard/Student/Skeleton.d.ts +1 -1
  440. package/lib/esm/components/CourseDashboard/Student.d.ts +1 -1
  441. package/lib/esm/components/CourseDashboard/Teacher/Comments.d.ts +1 -1
  442. package/lib/esm/components/CourseDashboard/Teacher/Comments.js +1 -2
  443. package/lib/esm/components/CourseDashboard/Teacher/Info.d.ts +1 -1
  444. package/lib/esm/components/CourseDashboard/Teacher/Skeleton.d.ts +1 -1
  445. package/lib/esm/components/CourseDashboard/Teacher/Students.d.ts +1 -1
  446. package/lib/esm/components/CourseDashboard/Teacher.d.ts +1 -1
  447. package/lib/esm/components/CourseDashboard/index.d.ts +2 -2
  448. package/lib/esm/components/CourseForm/CourseForm.js +10 -7
  449. package/lib/esm/components/CourseForm/Dialog.d.ts +1 -1
  450. package/lib/esm/components/CourseForm/Edit.js +6 -2
  451. package/lib/esm/components/CourseForm/Skeleton.d.ts +1 -1
  452. package/lib/esm/components/CourseForm/UploadCourseCover.js +2 -3
  453. package/lib/esm/components/CourseJoinButton/CourseJoinButton.js +4 -5
  454. package/lib/esm/components/CourseParticipantsButton/CourseParticipantsButton.d.ts +1 -1
  455. package/lib/esm/components/Courses/Courses.d.ts +0 -4
  456. package/lib/esm/components/Courses/Courses.js +10 -10
  457. package/lib/esm/components/Courses/Skeleton.js +1 -1
  458. package/lib/esm/components/CreateEventWidget/CreateEventWidget.d.ts +1 -1
  459. package/lib/esm/components/CreateEventWidget/Skeleton.d.ts +1 -1
  460. package/lib/esm/components/CreateLiveStreamDialog/CreateLiveStreamDialog.js +7 -1
  461. package/lib/esm/components/CreateLiveStreamDialog/LiveStreamSelector/LiveStreamSelector.js +6 -9
  462. package/lib/esm/components/CreatePaymentProductForm/CreatePaymentProductForm.d.ts +1 -1
  463. package/lib/esm/components/CreatePaymentProductForm/CreatePaymentProductForm.js +6 -5
  464. package/lib/esm/components/CustomAdv/Skeleton.js +1 -1
  465. package/lib/esm/components/EditCourse/Customize.d.ts +1 -1
  466. package/lib/esm/components/EditCourse/EditCourse.d.ts +1 -1
  467. package/lib/esm/components/EditCourse/Lessons/AddButton.d.ts +1 -1
  468. package/lib/esm/components/EditCourse/Lessons/ChangeLessonStatus.d.ts +1 -1
  469. package/lib/esm/components/EditCourse/Lessons/ChangeLessonStatus.js +3 -4
  470. package/lib/esm/components/EditCourse/Lessons/FieldName.d.ts +1 -1
  471. package/lib/esm/components/EditCourse/Lessons/FieldName.js +2 -3
  472. package/lib/esm/components/EditCourse/Lessons/Skeleton.d.ts +1 -1
  473. package/lib/esm/components/EditCourse/Lessons.d.ts +1 -1
  474. package/lib/esm/components/EditCourse/MenuRow.d.ts +1 -1
  475. package/lib/esm/components/EditCourse/Options/Skeleton.d.ts +1 -1
  476. package/lib/esm/components/EditCourse/Options/SwitchForm.d.ts +1 -1
  477. package/lib/esm/components/EditCourse/Options.d.ts +1 -1
  478. package/lib/esm/components/EditCourse/Options.js +2 -3
  479. package/lib/esm/components/EditCourse/Requests.d.ts +1 -1
  480. package/lib/esm/components/EditCourse/Skeleton.d.ts +1 -1
  481. package/lib/esm/components/EditCourse/Status.d.ts +1 -1
  482. package/lib/esm/components/EditCourse/Status.js +1 -1
  483. package/lib/esm/components/EditCourse/Users/Skeleton.d.ts +1 -1
  484. package/lib/esm/components/EditCourse/Users.d.ts +1 -1
  485. package/lib/esm/components/Editor/Editor.d.ts +1 -1
  486. package/lib/esm/components/Editor/Editor.js +3 -3
  487. package/lib/esm/components/Editor/nodes/HashtagNode.d.ts +1 -1
  488. package/lib/esm/components/Editor/nodes/HashtagNode.js +4 -4
  489. package/lib/esm/components/Editor/nodes/ImageNode.d.ts +1 -1
  490. package/lib/esm/components/Editor/nodes/ImageNode.js +6 -6
  491. package/lib/esm/components/Editor/nodes/MentionNode.d.ts +1 -1
  492. package/lib/esm/components/Editor/nodes/MentionNode.js +4 -4
  493. package/lib/esm/components/Editor/plugins/ApiPlugin.d.ts +2 -2
  494. package/lib/esm/components/Editor/plugins/EmojiPlugin.js +4 -2
  495. package/lib/esm/components/Editor/plugins/FloatingLinkPlugin.js +6 -4
  496. package/lib/esm/components/Editor/plugins/MediaPlugin.d.ts +1 -1
  497. package/lib/esm/components/Editor/plugins/MentionsPlugin.d.ts +2 -2
  498. package/lib/esm/components/Editor/shared/useDecorators.d.ts +2 -2
  499. package/lib/esm/components/Event/Skeleton.js +1 -2
  500. package/lib/esm/components/EventAutocomplete/EventAutocomplete.js +8 -5
  501. package/lib/esm/components/EventForm/EventAddress.js +9 -5
  502. package/lib/esm/components/EventForm/EventForm.js +91 -53
  503. package/lib/esm/components/EventForm/UploadEventCover.js +2 -3
  504. package/lib/esm/components/EventForm/types.d.ts +5 -5
  505. package/lib/esm/components/EventInfoWidget/EventInfoWidget.d.ts +1 -1
  506. package/lib/esm/components/EventInfoWidget/Skeleton.d.ts +1 -1
  507. package/lib/esm/components/EventInfoWidget/index.d.ts +1 -1
  508. package/lib/esm/components/EventInviteButton/EventInviteButton.js +3 -2
  509. package/lib/esm/components/EventLocationWidget/EventLocationWidget.js +5 -16
  510. package/lib/esm/components/EventLocationWidget/EventMap.d.ts +8 -0
  511. package/lib/esm/components/EventLocationWidget/EventMap.js +25 -0
  512. package/lib/esm/components/EventLocationWidget/Skeleton.js +1 -1
  513. package/lib/esm/components/EventMediaWidget/EventMediaWidget.d.ts +1 -1
  514. package/lib/esm/components/EventMediaWidget/EventMediaWidget.js +1 -2
  515. package/lib/esm/components/EventMediaWidget/Skeleton.d.ts +2 -2
  516. package/lib/esm/components/EventMediaWidget/TriggerButton.d.ts +3 -3
  517. package/lib/esm/components/EventMediaWidget/TriggerButton.js +2 -3
  518. package/lib/esm/components/EventMediaWidget/asUploadButton.d.ts +2 -2
  519. package/lib/esm/components/EventMediaWidget/index.d.ts +2 -1
  520. package/lib/esm/components/EventMembersWidget/EventMembersWidget.d.ts +1 -1
  521. package/lib/esm/components/EventMembersWidget/Skeleton.d.ts +1 -1
  522. package/lib/esm/components/EventMembersWidget/TabContentComponent.d.ts +1 -1
  523. package/lib/esm/components/EventMembersWidget/index.d.ts +1 -1
  524. package/lib/esm/components/EventParticipantsButton/EventParticipantsButton.d.ts +1 -1
  525. package/lib/esm/components/EventSubscribeButton/EventSubscribeButton.js +11 -4
  526. package/lib/esm/components/Events/Events.d.ts +0 -4
  527. package/lib/esm/components/Events/Events.js +14 -8
  528. package/lib/esm/components/Events/LocationEventsFilter.js +5 -1
  529. package/lib/esm/components/Events/OngoingEventsFilter.js +6 -2
  530. package/lib/esm/components/Events/PastEventsFilter.js +6 -2
  531. package/lib/esm/components/Events/Skeleton.js +1 -1
  532. package/lib/esm/components/Feed/Feed.d.ts +2 -2
  533. package/lib/esm/components/Feed/Feed.js +10 -11
  534. package/lib/esm/components/Feed/Skeleton.d.ts +1 -1
  535. package/lib/esm/components/Feed/Skeleton.js +2 -2
  536. package/lib/esm/components/FeedObject/Actions/Actions.js +2 -3
  537. package/lib/esm/components/FeedObject/Actions/Comment/Comment.js +2 -2
  538. package/lib/esm/components/FeedObject/Actions/Follow/Follow.js +3 -4
  539. package/lib/esm/components/FeedObject/Actions/Share/Share.js +1 -2
  540. package/lib/esm/components/FeedObject/Activities/ActivitiesMenu/ActivitiesMenu.d.ts +1 -1
  541. package/lib/esm/components/FeedObject/Activities/ActivitiesMenu/ActivitiesMenu.js +20 -18
  542. package/lib/esm/components/FeedObject/Activities/RelevantActivities/CommentActivity/CommentActivity.js +1 -1
  543. package/lib/esm/components/FeedObject/Activities/RelevantActivities/RelevantActivities.js +1 -1
  544. package/lib/esm/components/FeedObject/Contributors/Contributors.js +1 -1
  545. package/lib/esm/components/FeedObject/Contributors/Skeleton.js +1 -1
  546. package/lib/esm/components/FeedObject/Poll/Choice/Choice.js +2 -3
  547. package/lib/esm/components/FeedObjectMediaPreview/FeedObjectMediaPreview.js +1 -1
  548. package/lib/esm/components/FollowUserButton/FollowUserButton.js +2 -3
  549. package/lib/esm/components/FooterWidget/FooterWidget.d.ts +1 -1
  550. package/lib/esm/components/FriendshipUserButton/FriendshipUserButton.js +3 -4
  551. package/lib/esm/components/GroupActionsMenu/index.js +9 -1
  552. package/lib/esm/components/GroupAutocomplete/GroupAutocomplete.js +8 -5
  553. package/lib/esm/components/GroupForm/GroupForm.js +17 -28
  554. package/lib/esm/components/GroupInfoWidget/GroupInfoWidget.js +5 -15
  555. package/lib/esm/components/GroupInviteButton/GroupInviteButton.js +8 -7
  556. package/lib/esm/components/GroupSettingsIconButton/GroupSettingsIconButton.js +10 -4
  557. package/lib/esm/components/GroupSubscribeButton/GroupSubscribeButton.js +4 -5
  558. package/lib/esm/components/Groups/Groups.js +10 -10
  559. package/lib/esm/components/Groups/Skeleton.js +1 -2
  560. package/lib/esm/components/Incubator/Incubator.js +4 -4
  561. package/lib/esm/components/Incubator/Skeleton.js +1 -1
  562. package/lib/esm/components/IncubatorDetail/IncubatorDetail.js +2 -2
  563. package/lib/esm/components/IncubatorListWidget/CreateIncubatorDialog/CreateIncubatorDialog.js +4 -5
  564. package/lib/esm/components/IncubatorListWidget/IncubatorListWidget.js +5 -5
  565. package/lib/esm/components/IncubatorSubscribeButton/IncubatorSubscribeButton.js +4 -5
  566. package/lib/esm/components/IncubatorSuggestionWidget/IncubatorSuggestionWidget.js +1 -1
  567. package/lib/esm/components/InviteUserEventButton/InviteUserEventButton.js +2 -3
  568. package/lib/esm/components/LessonAppbar/LessonAppbar.js +4 -5
  569. package/lib/esm/components/LessonCommentObjects/LessonCommentObjects.js +1 -1
  570. package/lib/esm/components/LessonEditForm/LessonEditForm.js +2 -3
  571. package/lib/esm/components/LessonReleaseMenu/LessonReleaseMenu.js +24 -16
  572. package/lib/esm/components/LiveStreamForm/LiveStreamForm.js +16 -13
  573. package/lib/esm/components/LiveStreamForm/types.d.ts +3 -3
  574. package/lib/esm/components/LiveStreamRoom/LiveStreamRoom.js +10 -8
  575. package/lib/esm/components/LiveStreamRoom/LiveStreamVideoConference/ControlBar.d.ts +2 -2
  576. package/lib/esm/components/LiveStreamRoom/LiveStreamVideoConference/DisconnectButton.js +5 -1
  577. package/lib/esm/components/LiveStreamRoom/LiveStreamVideoConference/FocusLayout.d.ts +4 -4
  578. package/lib/esm/components/LiveStreamRoom/LiveStreamVideoConference/LiveStreamSettingsMenu.js +7 -3
  579. package/lib/esm/components/LiveStreamRoom/LiveStreamVideoConference/LiveStreamVideoConference.js +3 -3
  580. package/lib/esm/components/LiveStreamRoom/LiveStreamVideoConference/ParticipantPlaceholder.d.ts +1 -1
  581. package/lib/esm/components/LiveStreamRoom/LiveStreamVideoConference/ParticipantTile.d.ts +2 -2
  582. package/lib/esm/components/LiveStreamRoom/LiveStreamVideoConference/ParticipantTile.js +1 -3
  583. package/lib/esm/components/LiveStreamRoom/LiveStreamVideoConference/ParticipantTileActions.js +1 -1
  584. package/lib/esm/components/LiveStreamRoom/LiveStreamVideoConference/PreJoin.d.ts +1 -1
  585. package/lib/esm/components/LiveStreamRoom/LiveStreamVideoConference/RecordingIndicator.d.ts +1 -1
  586. package/lib/esm/components/LiveStreamRoom/LiveStreamVideoConference/SettingsMenuToggle.d.ts +1 -1
  587. package/lib/esm/components/LiveStreamRoom/LiveStreamVideoConference/TrackToggle.d.ts +1 -1
  588. package/lib/esm/components/LiveStreamRoom/LiveStreamVideoConference/VideoConference.d.ts +1 -1
  589. package/lib/esm/components/LiveStreamRoom/LiveStreamVideoConference/utils.d.ts +2 -2
  590. package/lib/esm/components/LiveStreamRoom/types.d.ts +1 -1
  591. package/lib/esm/components/LocationAutocomplete/LocationAutocomplete.js +12 -12
  592. package/lib/esm/components/LoyaltyProgramWidget/LoyaltyProgramWidget.js +1 -1
  593. package/lib/esm/components/LoyaltyProgramWidget/Skeleton.js +1 -1
  594. package/lib/esm/components/MyEventsWidget/MyEventsWidget.d.ts +1 -1
  595. package/lib/esm/components/MyEventsWidget/Skeleton.d.ts +1 -1
  596. package/lib/esm/components/MyEventsWidget/index.d.ts +1 -1
  597. package/lib/esm/components/NavigationMenuIconButton/DefaultDrawerContent.d.ts +1 -1
  598. package/lib/esm/components/NavigationMenuIconButton/DefaultDrawerContent.js +3 -2
  599. package/lib/esm/components/NavigationMenuIconButton/DefaultDrawerSkeleton.d.ts +1 -1
  600. package/lib/esm/components/NavigationMenuIconButton/DefaultHeaderContent.d.ts +2 -2
  601. package/lib/esm/components/NavigationSettingsIconButton/NavigationSettingsIconButton.js +9 -1
  602. package/lib/esm/components/NavigationToolbar/NavigationToolbar.d.ts +1 -1
  603. package/lib/esm/components/NavigationToolbar/NotificationMenu.d.ts +1 -1
  604. package/lib/esm/components/NavigationToolbar/NotificationMenu.js +2 -5
  605. package/lib/esm/components/NavigationToolbarMobile/NavigationToolbarMobile.d.ts +1 -1
  606. package/lib/esm/components/Notification/CollapsedFor/CollapsedFor.js +3 -1
  607. package/lib/esm/components/Notification/Comment/Comment.js +3 -3
  608. package/lib/esm/components/Notification/Contribution/Contribution.js +1 -1
  609. package/lib/esm/components/Notification/ContributionFollow/ContributionFollow.js +2 -2
  610. package/lib/esm/components/Notification/Course/Course.js +6 -11
  611. package/lib/esm/components/Notification/DeletedFor/DeletedFor.js +4 -2
  612. package/lib/esm/components/Notification/Event/Event.js +8 -13
  613. package/lib/esm/components/Notification/Group/Group.js +4 -5
  614. package/lib/esm/components/Notification/IncubatorApproved/IncubatorApproved.js +3 -3
  615. package/lib/esm/components/Notification/KindlyNoticeFlag/KindlyNoticeFlag.js +3 -1
  616. package/lib/esm/components/Notification/KindlyNoticeFor/KindlyNoticeFor.js +5 -3
  617. package/lib/esm/components/Notification/LiveStream/LiveStream.js +5 -10
  618. package/lib/esm/components/Notification/Mention/Mention.js +2 -2
  619. package/lib/esm/components/Notification/Notification.js +18 -10
  620. package/lib/esm/components/Notification/PrivateMessage/PrivateMessage.js +5 -6
  621. package/lib/esm/components/Notification/UndeletedFor/UndeletedFor.js +1 -1
  622. package/lib/esm/components/Notification/UserBlocked/UserBlocked.js +6 -2
  623. package/lib/esm/components/Notification/UserConnection/UserConnection.js +6 -2
  624. package/lib/esm/components/Notification/UserFollow/UserFollow.js +2 -2
  625. package/lib/esm/components/Notification/VoteUp/VoteUp.js +2 -2
  626. package/lib/esm/components/OnBoardingWidget/ActionsButton.js +12 -4
  627. package/lib/esm/components/OnBoardingWidget/OnBoardingWidget.d.ts +1 -1
  628. package/lib/esm/components/OnBoardingWidget/OnBoardingWidget.js +20 -28
  629. package/lib/esm/components/OnBoardingWidget/Skeleton.js +1 -1
  630. package/lib/esm/components/OnBoardingWidget/Steps/App/App.d.ts +1 -1
  631. package/lib/esm/components/OnBoardingWidget/Steps/App/App.js +9 -25
  632. package/lib/esm/components/OnBoardingWidget/Steps/Appearance/Appearance.d.ts +1 -1
  633. package/lib/esm/components/OnBoardingWidget/Steps/Appearance/Appearance.js +17 -14
  634. package/lib/esm/components/OnBoardingWidget/Steps/Category/Category.d.ts +1 -1
  635. package/lib/esm/components/OnBoardingWidget/Steps/Category/Category.js +3 -9
  636. package/lib/esm/components/OnBoardingWidget/Steps/Content/Content.d.ts +1 -1
  637. package/lib/esm/components/OnBoardingWidget/Steps/Invite/Invite.d.ts +1 -1
  638. package/lib/esm/components/OnBoardingWidget/Steps/Profile/Profile.d.ts +1 -1
  639. package/lib/esm/components/PaymentDetailDialog/PaymentDetailDialog.d.ts +1 -1
  640. package/lib/esm/components/PaymentDetailDialog/PaymentDetailDialog.js +8 -6
  641. package/lib/esm/components/PaymentOrder/PaymentOrder.d.ts +1 -1
  642. package/lib/esm/components/PaymentOrder/PaymentOrder.js +1 -1
  643. package/lib/esm/components/PaymentOrders/PaymentOrders.d.ts +1 -1
  644. package/lib/esm/components/PaymentOrders/PaymentOrders.js +39 -26
  645. package/lib/esm/components/PaymentProduct/PaymentProduct.d.ts +2 -2
  646. package/lib/esm/components/PaymentProduct/PaymentProduct.js +1 -1
  647. package/lib/esm/components/PaymentProduct/Skeleton.js +1 -1
  648. package/lib/esm/components/PaymentProductPrice/PaymentProductPrice.d.ts +1 -1
  649. package/lib/esm/components/PaymentProducts/PaymentProducts.d.ts +1 -1
  650. package/lib/esm/components/PaymentProducts/Skeleton.js +1 -1
  651. package/lib/esm/components/Paywalls/Paywalls.d.ts +1 -1
  652. package/lib/esm/components/Paywalls/Skeleton.js +1 -1
  653. package/lib/esm/components/PaywallsConfigurator/PaywallsConfigurator.d.ts +1 -1
  654. package/lib/esm/components/PaywallsConfigurator/PaywallsConfigurator.js +4 -4
  655. package/lib/esm/components/PaywallsConfigurator/Skeleton.js +1 -1
  656. package/lib/esm/components/PaywallsDialog/PaywallsDialog.d.ts +1 -1
  657. package/lib/esm/components/PaywallsDialog/PaywallsDialog.js +9 -7
  658. package/lib/esm/components/PdfPreviewDialog/PdfPreviewDialog.d.ts +1 -1
  659. package/lib/esm/components/PdfPreviewDialog/PdfPreviewDialog.js +3 -1
  660. package/lib/esm/components/PlatformWidget/PlatformWidget.js +6 -6
  661. package/lib/esm/components/PlatformWidget/Skeleton.js +1 -1
  662. package/lib/esm/components/PrivateMessageComponent/PrivateMessageComponent.js +3 -3
  663. package/lib/esm/components/PrivateMessageComponent/Skeleton.d.ts +1 -1
  664. package/lib/esm/components/PrivateMessageComponent/Skeleton.js +1 -1
  665. package/lib/esm/components/PrivateMessageEditor/MessageMediaUploader/index.js +2 -2
  666. package/lib/esm/components/PrivateMessageEditor/PrivateMessageEditor.js +6 -4
  667. package/lib/esm/components/PrivateMessageSettingsIconButton/PrivateMessageSettingsIconButton.js +9 -1
  668. package/lib/esm/components/PrivateMessageSnippets/PrivateMessageSnippets.js +10 -8
  669. package/lib/esm/components/PrivateMessageSnippets/Skeleton.js +1 -1
  670. package/lib/esm/components/PrivateMessageThread/PrivateMessageThread.d.ts +1 -1
  671. package/lib/esm/components/PrivateMessageThread/PrivateMessageThread.js +7 -7
  672. package/lib/esm/components/PrivateMessageThread/Skeleton.js +1 -1
  673. package/lib/esm/components/RelatedEventsWidget/RelatedEventsWidget.d.ts +1 -1
  674. package/lib/esm/components/RelatedEventsWidget/Skeleton.d.ts +1 -1
  675. package/lib/esm/components/RelatedEventsWidget/index.d.ts +1 -1
  676. package/lib/esm/components/SearchAutocomplete/SearchAutocomplete.d.ts +1 -1
  677. package/lib/esm/components/SearchAutocomplete/SearchAutocomplete.js +13 -8
  678. package/lib/esm/components/SearchDialog/SearchDialog.d.ts +1 -1
  679. package/lib/esm/components/SnippetNotifications/SnippetNotifications.js +5 -5
  680. package/lib/esm/components/SuggestedEventsWidget/Arrow.d.ts +1 -1
  681. package/lib/esm/components/SuggestedEventsWidget/Skeleton.d.ts +1 -1
  682. package/lib/esm/components/SuggestedEventsWidget/SuggestedEventsWidget.d.ts +1 -1
  683. package/lib/esm/components/SuggestedEventsWidget/index.d.ts +1 -1
  684. package/lib/esm/components/TagAutocomplete/TagAutocomplete.js +7 -4
  685. package/lib/esm/components/UserActionIconButton/UserActionIconButton.js +10 -9
  686. package/lib/esm/components/UserAddPaymentMethodForm/UserAddPaymentMethodForm.js +5 -7
  687. package/lib/esm/components/UserAutocomplete/UserAutocomplete.js +14 -12
  688. package/lib/esm/components/UserBillingInfo/Skeleton.js +1 -1
  689. package/lib/esm/components/UserBillingInfo/UserBillingInfo.d.ts +2 -2
  690. package/lib/esm/components/UserBillingInfo/UserBillingInfo.js +30 -22
  691. package/lib/esm/components/UserChangeAddressDialog/UserChangeAddressDialog.js +1 -2
  692. package/lib/esm/components/UserCounters/UserCounters.js +5 -13
  693. package/lib/esm/components/UserInfo/UserInfo.js +1 -1
  694. package/lib/esm/components/UserInfoDialog/UserInfoDialog.d.ts +1 -1
  695. package/lib/esm/components/UserLiveStreamWidget/Skeleton.d.ts +1 -1
  696. package/lib/esm/components/UserLiveStreamWidget/UserLiveStreamWidget.d.ts +1 -1
  697. package/lib/esm/components/UserLiveStreamWidget/index.d.ts +1 -1
  698. package/lib/esm/components/UserPaymentMethods/Skeleton.d.ts +25 -4
  699. package/lib/esm/components/UserPaymentMethods/Skeleton.js +2 -4
  700. package/lib/esm/components/UserPaymentMethods/UserPaymentMethods.d.ts +26 -4
  701. package/lib/esm/components/UserPaymentMethods/UserPaymentMethods.js +11 -12
  702. package/lib/esm/components/UserProfileBlocked/UserProfileBlocked.js +2 -3
  703. package/lib/esm/components/UserProfileEdit/Section/AccountCredentials.js +10 -7
  704. package/lib/esm/components/UserProfileEdit/Section/PublicInfo.js +12 -23
  705. package/lib/esm/components/UserProfileEdit/Skeleton.js +1 -1
  706. package/lib/esm/components/UserSubscribedGroupsWidget/UserSubscribedGroupsWidget.js +1 -1
  707. package/lib/esm/components/VoteAudienceButton/VoteAudienceButton.d.ts +2 -2
  708. package/lib/esm/components/VoteAudienceButton/VoteAudienceButton.js +5 -6
  709. package/lib/esm/components/VoteButton/VoteButton.d.ts +2 -2
  710. package/lib/esm/components/VoteButton/VoteButton.js +3 -4
  711. package/lib/esm/components/Widget/index.d.ts +1 -1
  712. package/lib/esm/shared/AccordionLessons/AccordionLessons.d.ts +1 -1
  713. package/lib/esm/shared/AccordionLessons/Skeleton.d.ts +1 -1
  714. package/lib/esm/shared/AddUsersButton/AddUsersButton.d.ts +1 -1
  715. package/lib/esm/shared/AddUsersButton/AddUsersButton.js +3 -2
  716. package/lib/esm/shared/AutoPlayer/index.d.ts +1 -1
  717. package/lib/esm/shared/BaseDialog/BaseDialog.d.ts +1 -1
  718. package/lib/esm/shared/Calendar/index.d.ts +1 -1
  719. package/lib/esm/shared/ConfirmDialog/ConfirmDialog.js +1 -2
  720. package/lib/esm/shared/ContributionActionsMenu/index.js +3 -9
  721. package/lib/esm/shared/CopyTextArea/index.js +12 -6
  722. package/lib/esm/shared/CourseTypePopover/CourseTypePopover.d.ts +1 -1
  723. package/lib/esm/shared/CourseUsersTable/ChangeUsersStatus.d.ts +1 -1
  724. package/lib/esm/shared/CourseUsersTable/ChangeUsersStatus.js +2 -3
  725. package/lib/esm/shared/CourseUsersTable/CourseUsersTable.d.ts +2 -2
  726. package/lib/esm/shared/CourseUsersTable/CourseUsersTable.js +7 -6
  727. package/lib/esm/shared/CourseUsersTable/RemoveButton.js +2 -3
  728. package/lib/esm/shared/CourseUsersTable/RequestButton.js +2 -3
  729. package/lib/esm/shared/CourseUsersTable/RowSkeleton.d.ts +1 -1
  730. package/lib/esm/shared/CourseUsersTable/SeeProgressButton.d.ts +1 -1
  731. package/lib/esm/shared/CourseUsersTable/Skeleton.d.ts +1 -1
  732. package/lib/esm/shared/CustomSnackMessage/index.js +2 -2
  733. package/lib/esm/shared/DateTimeAgo/index.js +2 -2
  734. package/lib/esm/shared/EmojiPicker/EmojiPicker.d.ts +1 -2
  735. package/lib/esm/shared/EmptyStatus/EmptyStatus.d.ts +1 -1
  736. package/lib/esm/shared/EventActionsMenu/index.js +9 -1
  737. package/lib/esm/shared/EventInfoDetails/index.d.ts +1 -1
  738. package/lib/esm/shared/HiddenPurchasableContent/HiddenPurchasableContent.js +3 -4
  739. package/lib/esm/shared/InfiniteScroll/index.d.ts +2 -2
  740. package/lib/esm/shared/InfiniteScroll/stories/InfiniteScrollWithHeight.d.ts +1 -1
  741. package/lib/esm/shared/InfiniteScroll/stories/PullDownToRefreshInfScroll.d.ts +1 -1
  742. package/lib/esm/shared/InfiniteScroll/stories/ScrollableTargetFixedInfScroll.d.ts +1 -1
  743. package/lib/esm/shared/InfiniteScroll/stories/ScrollableTargetInfScroll.d.ts +1 -1
  744. package/lib/esm/shared/InfiniteScroll/stories/ScrolleableTop.d.ts +1 -1
  745. package/lib/esm/shared/InfiniteScroll/stories/ScrolleableTop.js +1 -1
  746. package/lib/esm/shared/InfiniteScroll/stories/WindowInfiniteScrollComponent.d.ts +1 -1
  747. package/lib/esm/shared/LessonCommentActionsMenu/index.js +2 -8
  748. package/lib/esm/shared/Lightbox/BaseLightbox.d.ts +1 -1
  749. package/lib/esm/shared/Lightbox/BaseLightbox.js +1 -1
  750. package/lib/esm/shared/Lightbox/Lightbox.d.ts +1 -1
  751. package/lib/esm/shared/LiveStreamInfoDetails/index.d.ts +1 -1
  752. package/lib/esm/shared/Media/File/DisplayComponent.js +4 -6
  753. package/lib/esm/shared/Media/File/DocComponent.d.ts +3 -1
  754. package/lib/esm/shared/Media/File/DocComponent.js +3 -2
  755. package/lib/esm/shared/Media/File/PreviewComponent.d.ts +1 -1
  756. package/lib/esm/shared/Media/File/PreviewComponent.js +4 -3
  757. package/lib/esm/shared/Media/File/TriggerButton.js +9 -1
  758. package/lib/esm/shared/Media/File/asUploadButton.d.ts +2 -2
  759. package/lib/esm/shared/Media/File/asUploadButton.js +3 -3
  760. package/lib/esm/shared/Media/Link/DisplayComponent.js +5 -13
  761. package/lib/esm/shared/Media/Link/LayerComponent.d.ts +1 -1
  762. package/lib/esm/shared/Media/Link/PreviewComponent.d.ts +1 -1
  763. package/lib/esm/shared/Media/Link/UrlTextField/index.d.ts +1 -1
  764. package/lib/esm/shared/Media/Link/UrlTextField/index.js +3 -1
  765. package/lib/esm/shared/MessageChunkUploader/index.js +1 -1
  766. package/lib/esm/shared/MetadataField/MetadataField.d.ts +1 -1
  767. package/lib/esm/shared/PasswordTextField/index.js +7 -5
  768. package/lib/esm/shared/ProgressBar/index.d.ts +1 -1
  769. package/lib/esm/shared/ScrollContainer/index.js +1 -1
  770. package/lib/esm/shared/StickyBox/index.d.ts +4 -4
  771. package/lib/esm/shared/TagChip/index.d.ts +2 -48
  772. package/lib/esm/shared/TagChip/index.js +2 -2
  773. package/lib/esm/shared/Tags/index.js +9 -9
  774. package/lib/esm/shared/UsernameTextField/index.d.ts +1 -1
  775. package/lib/esm/shared/VirtualizedScroller/VirtualScrollerChild.d.ts +1 -1
  776. package/lib/esm/shared/VirtualizedScroller/VirtualizedScroller.d.ts +1 -1
  777. package/lib/esm/types/composer.d.ts +1 -1
  778. package/lib/esm/utils/buttonCounters.d.ts +1 -1
  779. package/lib/umd/484.js +2 -0
  780. package/lib/umd/484.js.LICENSE.txt +9 -0
  781. package/lib/umd/react-ui.js +1 -1
  782. package/lib/umd/react-ui.js.LICENSE.txt +1 -1
  783. package/package.json +207 -206
  784. package/lib/cjs/shared/UpScalingTierBadge/UpScalingTierBadge.d.ts +0 -5
  785. package/lib/cjs/shared/UpScalingTierBadge/UpScalingTierBadge.js +0 -14
  786. package/lib/esm/shared/UpScalingTierBadge/UpScalingTierBadge.d.ts +0 -5
  787. package/lib/esm/shared/UpScalingTierBadge/UpScalingTierBadge.js +0 -10
  788. package/lib/umd/250.js +0 -2
  789. package/lib/umd/250.js.LICENSE.txt +0 -22
@@ -12,7 +12,6 @@ const Errors_1 = require("../../constants/Errors");
12
12
  const api_services_1 = require("@selfcommunity/api-services");
13
13
  const utils_1 = require("@selfcommunity/utils");
14
14
  const react_intl_1 = require("react-intl");
15
- const lab_1 = require("@mui/lab");
16
15
  const messages = (0, react_intl_1.defineMessages)({
17
16
  errorLoadImage: {
18
17
  id: 'ui.changeGroupPicture.alert',
@@ -22,7 +21,7 @@ const messages = (0, react_intl_1.defineMessages)({
22
21
  const classes = {
23
22
  root: `${constants_1.PREFIX}-root`
24
23
  };
25
- const Root = (0, material_1.styled)(lab_1.LoadingButton, {
24
+ const Root = (0, material_1.styled)(material_1.Button, {
26
25
  name: constants_1.PREFIX,
27
26
  slot: 'Root'
28
27
  })(() => ({}));
@@ -32,7 +32,7 @@ function ChangePictureDialog(props) {
32
32
  const scUserContext = (0, react_1.useContext)(react_core_1.SCUserContext);
33
33
  const scContext = (0, react_1.useContext)(react_core_1.SCContext);
34
34
  //STATE
35
- const [file, setFile] = (0, react_1.useState)(scUserContext.user['avatar']);
35
+ const [, setFile] = (0, react_1.useState)(scUserContext.user['avatar']);
36
36
  const [error, setError] = (0, react_1.useState)(false);
37
37
  const [alert, setAlert] = (0, react_1.useState)(false);
38
38
  const [primary, setPrimary] = (0, react_1.useState)(null);
@@ -177,12 +177,8 @@ function ChangePictureDialog(props) {
177
177
  * Renders root object
178
178
  */
179
179
  return ((0, jsx_runtime_1.jsxs)(Root, Object.assign({ className: (0, classnames_1.default)(classes.dialogRoot, className), title: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { defaultMessage: "ui.changePicture.title", id: "ui.changePicture.title" }), onClose: onClose, open: open }, rest, { children: [(0, jsx_runtime_1.jsxs)(material_1.Box, Object.assign({ className: classes.upload }, { children: [alert ? ((0, jsx_runtime_1.jsx)(material_1.Alert, Object.assign({ color: "error", onClose: () => setAlert(false) }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.changePicture.button.upload.alert", defaultMessage: "ui.changePicture.button.upload.alert" }) }))) : ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)("input", { type: "file", onChange: handleUpload, ref: fileInput, hidden: true, accept: ".gif,.png,.jpg,.jpeg" }), (0, jsx_runtime_1.jsx)(material_1.Button, Object.assign({ disabled: loading || isDeletingAvatar, variant: "outlined", onClick: () => fileInput.current.click(), color: error ? 'error' : 'primary', startIcon: loading ? null : (0, jsx_runtime_1.jsx)(material_1.Icon, { children: "folder_open" }) }, { children: loading ? ((0, jsx_runtime_1.jsx)(material_1.CircularProgress, { size: 15 })) : ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: error ? ((0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.changePicture.button.upload.error", defaultMessage: "ui.changePicture.button.upload.error" })) : ((0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.changePicture.button.upload", defaultMessage: "ui.changePicture.button.upload" })) })) }))] })), (0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ component: "span", fontSize: "small", color: "text.secondary", gutterBottom: true }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.changePicture.info", defaultMessage: "ui.changePicture.info", values: {
180
- // eslint-disable-next-line @typescript-eslint/ban-ts-ignore
181
- // @ts-ignore
182
- li: (chunks) => (0, jsx_runtime_1.jsx)("li", { children: chunks }),
183
- // eslint-disable-next-line @typescript-eslint/ban-ts-ignore
184
- // @ts-ignore
185
- ul: (chunks) => (0, jsx_runtime_1.jsx)("ul", { children: chunks })
186
- } }) }))] })), (0, jsx_runtime_1.jsx)(material_1.ImageList, Object.assign({ cols: 3, rowHeight: 'auto', id: "avatarsList", classes: { root: classes.imagesList } }, { children: avatars.map((avatar) => ((0, jsx_runtime_1.jsx)(material_1.Box, Object.assign({ className: classes.imageItem }, { children: (0, jsx_runtime_1.jsxs)(material_1.ImageListItem, Object.assign({ className: primary === avatar.id ? classes.primary : '', onClick: () => selectPrimaryAvatar(avatar) }, { children: [(0, jsx_runtime_1.jsx)("img", { src: avatar.avatar, loading: "lazy", alt: 'img' }), (0, jsx_runtime_1.jsx)(material_1.ImageListItemBar, { position: "top", actionIcon: (0, jsx_runtime_1.jsx)(material_1.IconButton, Object.assign({ onClick: () => handleOpen(avatar.id), size: "small" }, { children: (0, jsx_runtime_1.jsx)(material_1.Icon, { children: "delete" }) })) })] }), avatar.id) }), avatar.id))) })), openDeleteAvatarDialog && ((0, jsx_runtime_1.jsx)(ConfirmDialog_1.default, { open: openDeleteAvatarDialog, title: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.changePicture.dialog.msg", defaultMessage: "ui.changePicture.dialog.msg" }), btnConfirm: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.changePicture.dialog.confirm", defaultMessage: "ui.changePicture.dialog.confirm" }), onConfirm: deleteAvatar, isUpdating: isDeletingAvatar, onClose: () => setOpenDeleteAvatarDialog(false) }))] })));
180
+ li: (chunks) => (0, jsx_runtime_1.jsx)("li", { children: chunks }, "ui.changePicture.info.li"),
181
+ ul: (chunks) => (0, jsx_runtime_1.jsx)("ul", { children: chunks }, "ui.changePicture.info.ul")
182
+ } }) }))] })), (0, jsx_runtime_1.jsx)(material_1.ImageList, Object.assign({ cols: 3, rowHeight: "auto", id: "avatarsList", classes: { root: classes.imagesList } }, { children: avatars.map((avatar) => ((0, jsx_runtime_1.jsx)(material_1.Box, Object.assign({ className: classes.imageItem }, { children: (0, jsx_runtime_1.jsxs)(material_1.ImageListItem, Object.assign({ className: primary === avatar.id ? classes.primary : '', onClick: () => selectPrimaryAvatar(avatar) }, { children: [(0, jsx_runtime_1.jsx)("img", { src: avatar.avatar, loading: "lazy", alt: "img" }), (0, jsx_runtime_1.jsx)(material_1.ImageListItemBar, { position: "top", actionIcon: (0, jsx_runtime_1.jsx)(material_1.IconButton, Object.assign({ onClick: () => handleOpen(avatar.id), size: "small" }, { children: (0, jsx_runtime_1.jsx)(material_1.Icon, { children: "delete" }) })) })] }), avatar.id) }), avatar.id))) })), openDeleteAvatarDialog && ((0, jsx_runtime_1.jsx)(ConfirmDialog_1.default, { open: openDeleteAvatarDialog, title: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.changePicture.dialog.msg", defaultMessage: "ui.changePicture.dialog.msg" }), btnConfirm: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.changePicture.dialog.confirm", defaultMessage: "ui.changePicture.dialog.confirm" }), onConfirm: deleteAvatar, isUpdating: isDeletingAvatar, onClose: () => setOpenDeleteAvatarDialog(false) }))] })));
187
183
  }
188
184
  exports.default = ChangePictureDialog;
@@ -11,4 +11,4 @@ export interface CheckoutProps {
11
11
  uiMode?: SCCheckoutSessionUIMode;
12
12
  onComplete?: () => void;
13
13
  }
14
- export default function Checkout(inProps: CheckoutProps): JSX.Element;
14
+ export default function Checkout(inProps: CheckoutProps): import("react/jsx-runtime").JSX.Element;
@@ -4,5 +4,5 @@ interface CheckoutHeaderProps {
4
4
  contentType: SCContentType;
5
5
  content: any;
6
6
  }
7
- export default function CheckoutHeaderInfoWidget(inProps: CheckoutHeaderProps): JSX.Element;
7
+ export default function CheckoutHeaderInfoWidget(inProps: CheckoutHeaderProps): import("react/jsx-runtime").JSX.Element;
8
8
  export {};
@@ -80,8 +80,6 @@ const Root = (0, material_1.styled)(material_1.Grid, {
80
80
  */
81
81
  function CheckoutSkeleton(inProps) {
82
82
  const { className = {} } = inProps, rest = tslib_1.__rest(inProps, ["className"]);
83
- // HOOKS
84
- const theme = (0, material_1.useTheme)();
85
- return ((0, jsx_runtime_1.jsxs)(Root, Object.assign({ className: (0, classnames_1.default)(classes.root, className), container: true }, rest, { children: [(0, jsx_runtime_1.jsx)(material_1.Grid, Object.assign({ item: true, xs: 12, md: 6, className: (0, classnames_1.default)(classes.left, classes.paper, classes.header) }, { children: (0, jsx_runtime_1.jsx)(material_1.Skeleton, { variant: "rounded", height: 150, width: '100%' }) })), (0, jsx_runtime_1.jsx)(material_1.Grid, Object.assign({ item: true, xs: 12, md: 6, className: (0, classnames_1.default)(classes.right, classes.header) }, { children: (0, jsx_runtime_1.jsx)(material_1.Hidden, Object.assign({ mdDown: true }, { children: (0, jsx_runtime_1.jsxs)(material_1.Stack, Object.assign({ direction: "column", spacing: 2, pt: 2 }, { children: [(0, jsx_runtime_1.jsx)(material_1.Skeleton, { variant: "rounded", height: 20, width: 190 }), (0, jsx_runtime_1.jsx)(material_1.Skeleton, { variant: "rounded", height: 90, width: '100%' })] })) })) })), (0, jsx_runtime_1.jsx)(material_1.Grid, Object.assign({ item: true, xs: 12, md: 6, className: (0, classnames_1.default)(classes.left, classes.paper) }, { children: (0, jsx_runtime_1.jsxs)(material_1.Box, Object.assign({ className: classes.content }, { children: [(0, jsx_runtime_1.jsx)(material_1.Skeleton, { variant: "rounded", height: 30, width: 140 }), (0, jsx_runtime_1.jsx)("br", {}), (0, jsx_runtime_1.jsx)(material_1.Skeleton, { variant: "rounded", height: 110 }), (0, jsx_runtime_1.jsx)("br", {}), (0, jsx_runtime_1.jsx)(material_1.Skeleton, { variant: "rounded", height: 150 }), (0, jsx_runtime_1.jsxs)(material_1.Hidden, Object.assign({ mdDown: true }, { children: [(0, jsx_runtime_1.jsx)("br", {}), (0, jsx_runtime_1.jsx)(material_1.Skeleton, { variant: "rounded", height: 200 })] }))] })) })), (0, jsx_runtime_1.jsx)(material_1.Grid, Object.assign({ item: true, xs: 12, md: 6, className: classes.right }, { children: (0, jsx_runtime_1.jsxs)(material_1.Box, Object.assign({ className: classes.content }, { children: [(0, jsx_runtime_1.jsx)(material_1.Skeleton, { variant: "rounded", height: 110 }), (0, jsx_runtime_1.jsxs)(material_1.Hidden, Object.assign({ mdDown: true }, { children: [(0, jsx_runtime_1.jsx)("br", {}), (0, jsx_runtime_1.jsx)(material_1.Skeleton, { variant: "rounded", height: 70 }), (0, jsx_runtime_1.jsx)("br", {}), (0, jsx_runtime_1.jsx)(material_1.Skeleton, { variant: "rounded", height: 340 })] }))] })) }))] })));
83
+ return ((0, jsx_runtime_1.jsxs)(Root, Object.assign({ className: (0, classnames_1.default)(classes.root, className), container: true, width: "100%" }, rest, { children: [(0, jsx_runtime_1.jsx)(material_1.Grid, Object.assign({ size: { xs: 12, md: 6 }, className: (0, classnames_1.default)(classes.left, classes.paper, classes.header) }, { children: (0, jsx_runtime_1.jsx)(material_1.Skeleton, { variant: "rounded", height: 150, width: "100%" }) })), (0, jsx_runtime_1.jsx)(material_1.Grid, Object.assign({ size: { xs: 12, md: 6 }, className: (0, classnames_1.default)(classes.right, classes.header) }, { children: (0, jsx_runtime_1.jsxs)(material_1.Stack, Object.assign({ sx: { display: { xs: 'none', md: 'flex' } }, direction: "column", spacing: 2, pt: 2 }, { children: [(0, jsx_runtime_1.jsx)(material_1.Skeleton, { variant: "rounded", height: 20, width: 190 }), (0, jsx_runtime_1.jsx)(material_1.Skeleton, { variant: "rounded", height: 90, width: "100%" })] })) })), (0, jsx_runtime_1.jsx)(material_1.Grid, Object.assign({ size: { xs: 12, md: 6 }, className: (0, classnames_1.default)(classes.left, classes.paper) }, { children: (0, jsx_runtime_1.jsxs)(material_1.Box, Object.assign({ className: classes.content }, { children: [(0, jsx_runtime_1.jsx)(material_1.Skeleton, { variant: "rounded", height: 30, width: 140 }), (0, jsx_runtime_1.jsx)("br", {}), (0, jsx_runtime_1.jsx)(material_1.Skeleton, { variant: "rounded", height: 110 }), (0, jsx_runtime_1.jsx)("br", {}), (0, jsx_runtime_1.jsx)(material_1.Skeleton, { variant: "rounded", height: 150 }), (0, jsx_runtime_1.jsxs)(material_1.Box, Object.assign({ sx: { display: { xs: 'none', md: 'block' } } }, { children: [(0, jsx_runtime_1.jsx)("br", {}), (0, jsx_runtime_1.jsx)(material_1.Skeleton, { variant: "rounded", height: 200 })] }))] })) })), (0, jsx_runtime_1.jsx)(material_1.Grid, Object.assign({ size: { xs: 12, md: 6 }, className: classes.right }, { children: (0, jsx_runtime_1.jsxs)(material_1.Box, Object.assign({ className: classes.content }, { children: [(0, jsx_runtime_1.jsx)(material_1.Skeleton, { variant: "rounded", height: 110 }), (0, jsx_runtime_1.jsxs)(material_1.Box, Object.assign({ sx: { display: { xs: 'none', md: 'block' } } }, { children: [(0, jsx_runtime_1.jsx)("br", {}), (0, jsx_runtime_1.jsx)(material_1.Skeleton, { variant: "rounded", height: 70 }), (0, jsx_runtime_1.jsx)("br", {}), (0, jsx_runtime_1.jsx)(material_1.Skeleton, { variant: "rounded", height: 340 })] }))] })) }))] })));
86
84
  }
87
85
  exports.default = CheckoutSkeleton;
@@ -7,4 +7,4 @@ export interface CheckoutReturnDialogProps extends DialogProps {
7
7
  onHandleViewContentPurchased?: (redirectUrl: string, contentType: SCContentType) => void;
8
8
  returnUrl?: string;
9
9
  }
10
- export default function CheckoutReturnDialog(inProps: CheckoutReturnDialogProps): JSX.Element;
10
+ export default function CheckoutReturnDialog(inProps: CheckoutReturnDialogProps): import("react/jsx-runtime").JSX.Element;
@@ -29,9 +29,9 @@ const Root = (0, material_1.styled)(material_1.Dialog, {
29
29
  const Transition = react_1.default.forwardRef(function Transition(props, ref) {
30
30
  return (0, jsx_runtime_1.jsx)(material_1.Slide, Object.assign({ direction: "up", ref: ref }, props));
31
31
  });
32
- const NoTransition = react_1.default.forwardRef(function NoTransition(props, ref) {
33
- return (0, jsx_runtime_1.jsxs)(react_1.default.Fragment, { children: [" ", props.children, " "] });
34
- });
32
+ const NoTransition = function NoTransition(props) {
33
+ return (0, jsx_runtime_1.jsx)(react_1.default.Fragment, { children: props.children });
34
+ };
35
35
  function CheckoutReturnDialog(inProps) {
36
36
  // PROPS
37
37
  const props = (0, system_1.useThemeProps)({
@@ -42,7 +42,7 @@ function CheckoutReturnDialog(inProps) {
42
42
  // STATE
43
43
  const [loading, setLoading] = (0, react_1.useState)(true);
44
44
  const [contentType, setContentType] = (0, react_1.useState)(null);
45
- const [contentId, setContentId] = (0, react_1.useState)(null);
45
+ const [, setContentId] = (0, react_1.useState)(null);
46
46
  const [content, setContent] = (0, react_1.useState)(null);
47
47
  const [paymentPrice, setPaymentPrice] = (0, react_1.useState)(null);
48
48
  // HOOKS
@@ -138,25 +138,25 @@ function CheckoutReturnDialog(inProps) {
138
138
  if (contentType === types_1.SCContentType.EVENT) {
139
139
  footer = ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ color: "primary" }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.checkoutReturnDialog.payment.success", defaultMessage: "ui.checkoutReturnDialog.payment.success" }) })), (0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ variant: "body2", color: "textSecondary" }, { children: paymentPrice && paymentPrice.recurring_interval ? ((0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.checkoutReturnDialog.buy.recurrent.event", defaultMessage: "ui.checkoutReturnDialog.buy.recurrent.event", values: {
140
140
  frequency: (0, checkout_1.getPaymentRecurringLabel)(paymentPrice.recurring_interval, scContext.settings.locale.default)
141
- } })) : ((0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.checkoutReturnDialog.buy.event", defaultMessage: "ui.checkoutReturnDialog.buy.event" })) })), (0, jsx_runtime_1.jsx)(material_1.Button, Object.assign({ size: "medium", variant: 'contained', onClick: handleViewPurchasedObject, component: react_core_1.Link, className: classes.btn }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.checkoutReturnDialog.event.button", defaultMessage: "ui.checkoutReturnDialog.event.button" }) }))] }));
141
+ } })) : ((0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.checkoutReturnDialog.buy.event", defaultMessage: "ui.checkoutReturnDialog.buy.event" })) })), (0, jsx_runtime_1.jsx)(material_1.Button, Object.assign({ size: "medium", variant: "contained", onClick: handleViewPurchasedObject, component: react_core_1.Link, className: classes.btn }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.checkoutReturnDialog.event.button", defaultMessage: "ui.checkoutReturnDialog.event.button" }) }))] }));
142
142
  }
143
143
  else if (contentType === types_1.SCContentType.CATEGORY) {
144
- footer = ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ color: "primary" }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.checkoutReturnDialog.payment.success", defaultMessage: "ui.checkoutReturnDialog.payment.success" }) })), (0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ variant: "body2", color: "textSecondary" }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.checkoutReturnDialog.buy", defaultMessage: "ui.checkoutReturnDialog.buy" }) })), (0, jsx_runtime_1.jsx)(material_1.Button, Object.assign({ size: "medium", variant: 'contained', onClick: handleViewPurchasedObject, component: react_core_1.Link, className: classes.btn }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.checkoutReturnDialog.category.button", defaultMessage: "ui.checkoutReturnDialog.category.button" }) }))] }));
144
+ footer = ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ color: "primary" }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.checkoutReturnDialog.payment.success", defaultMessage: "ui.checkoutReturnDialog.payment.success" }) })), (0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ variant: "body2", color: "textSecondary" }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.checkoutReturnDialog.buy", defaultMessage: "ui.checkoutReturnDialog.buy" }) })), (0, jsx_runtime_1.jsx)(material_1.Button, Object.assign({ size: "medium", variant: "contained", onClick: handleViewPurchasedObject, component: react_core_1.Link, className: classes.btn }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.checkoutReturnDialog.category.button", defaultMessage: "ui.checkoutReturnDialog.category.button" }) }))] }));
145
145
  }
146
146
  else if (contentType === types_1.SCContentType.COURSE) {
147
147
  footer = ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ color: "primary" }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.checkoutReturnDialog.payment.success", defaultMessage: "ui.checkoutReturnDialog.payment.success" }) })), (0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ variant: "body2", color: "textSecondary" }, { children: paymentPrice && paymentPrice.recurring_interval ? ((0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.checkoutReturnDialog.buy.recurrent.course", defaultMessage: "ui.checkoutReturnDialog.buy.recurrent.course", values: {
148
148
  frequency: (0, checkout_1.getPaymentRecurringLabel)(paymentPrice.recurring_interval, scContext.settings.locale.default)
149
- } })) : ((0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.checkoutReturnDialog.buy.course", defaultMessage: "ui.checkoutReturnDialog.buy.course" })) })), (0, jsx_runtime_1.jsx)(material_1.Button, Object.assign({ size: "medium", variant: 'contained', onClick: handleViewPurchasedObject, component: react_core_1.Link, className: classes.btn }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.checkoutReturnDialog.course.button", defaultMessage: "ui.checkoutReturnDialog.course.button" }) }))] }));
149
+ } })) : ((0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.checkoutReturnDialog.buy.course", defaultMessage: "ui.checkoutReturnDialog.buy.course" })) })), (0, jsx_runtime_1.jsx)(material_1.Button, Object.assign({ size: "medium", variant: "contained", onClick: handleViewPurchasedObject, component: react_core_1.Link, className: classes.btn }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.checkoutReturnDialog.course.button", defaultMessage: "ui.checkoutReturnDialog.course.button" }) }))] }));
150
150
  }
151
151
  else if (contentType === types_1.SCContentType.GROUP) {
152
152
  footer = ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ color: "primary" }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.checkoutReturnDialog.payment.success", defaultMessage: "ui.checkoutReturnDialog.payment.success" }) })), (0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ variant: "body2", color: "textSecondary" }, { children: paymentPrice && paymentPrice.recurring_interval ? ((0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.checkoutReturnDialog.buy.recurrent.group", defaultMessage: "ui.checkoutReturnDialog.buy.recurrent.group", values: {
153
153
  frequency: (0, checkout_1.getPaymentRecurringLabel)(paymentPrice.recurring_interval, scContext.settings.locale.default)
154
- } })) : ((0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.checkoutReturnDialog.buy.group", defaultMessage: "ui.checkoutReturnDialog.buy.group" })) })), (0, jsx_runtime_1.jsx)(material_1.Button, Object.assign({ size: "medium", variant: 'contained', onClick: handleViewPurchasedObject, component: react_core_1.Link, className: classes.btn }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.checkoutReturnDialog.group.button", defaultMessage: "ui.checkoutReturnDialog.group.button" }) }))] }));
154
+ } })) : ((0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.checkoutReturnDialog.buy.group", defaultMessage: "ui.checkoutReturnDialog.buy.group" })) })), (0, jsx_runtime_1.jsx)(material_1.Button, Object.assign({ size: "medium", variant: "contained", onClick: handleViewPurchasedObject, component: react_core_1.Link, className: classes.btn }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.checkoutReturnDialog.group.button", defaultMessage: "ui.checkoutReturnDialog.group.button" }) }))] }));
155
155
  }
156
156
  else if (contentType === types_1.SCContentType.COMMUNITY) {
157
157
  footer = ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [paymentPrice && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ color: "primary" }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.checkoutReturnDialog.payment.success", defaultMessage: "ui.checkoutReturnDialog.payment.success" }) })), (0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ variant: "body2", color: "textSecondary" }, { children: paymentPrice.recurring_interval ? ((0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.checkoutReturnDialog.buy.recurrent.community", defaultMessage: "ui.checkoutReturnDialog.buy.recurrent.community", values: {
158
158
  frequency: (0, checkout_1.getPaymentRecurringLabel)(paymentPrice.recurring_interval, scContext.settings.locale.default)
159
- } })) : ((0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.checkoutReturnDialog.buy.community", defaultMessage: "ui.checkoutReturnDialog.buy.community" })) }))] })), (0, jsx_runtime_1.jsx)(material_1.Button, Object.assign({ size: "medium", variant: 'contained', onClick: handleViewPurchasedObject, component: react_core_1.Link, className: classes.btn }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.checkoutReturnDialog.community.button", defaultMessage: "ui.checkoutReturnDialog.community.button" }) }))] }));
159
+ } })) : ((0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.checkoutReturnDialog.buy.community", defaultMessage: "ui.checkoutReturnDialog.buy.community" })) }))] })), (0, jsx_runtime_1.jsx)(material_1.Button, Object.assign({ size: "medium", variant: "contained", onClick: handleViewPurchasedObject, component: react_core_1.Link, className: classes.btn }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.checkoutReturnDialog.community.button", defaultMessage: "ui.checkoutReturnDialog.community.button" }) }))] }));
160
160
  }
161
161
  return ((0, jsx_runtime_1.jsxs)(material_1.Stack, Object.assign({ spacing: 2, justifyContent: "center", alignItems: "center" }, { children: [(0, jsx_runtime_1.jsx)(Grow_1.default, Object.assign({ in: true, style: { transitionDelay: '300ms' } }, { children: (0, jsx_runtime_1.jsx)("img", { src: success_1.default, className: classes.img, alt: intl.formatMessage({
162
162
  id: 'ui.checkoutReturnDialog.buy',
@@ -166,6 +166,6 @@ function CheckoutReturnDialog(inProps) {
166
166
  if (!isPaymentsEnabled) {
167
167
  return null;
168
168
  }
169
- return ((0, jsx_runtime_1.jsxs)(Root, Object.assign({ maxWidth: 'sm', fullWidth: true, scroll: 'paper', open: true }, (disableInitialTransition ? { TransitionComponent: NoTransition } : { TransitionComponent: Transition }), { className: (0, classnames_1.default)(classes.root, className), TransitionComponent: Transition }, rest, { children: [(0, jsx_runtime_1.jsx)(material_1.DialogTitle, { children: renderTitle() }), (0, jsx_runtime_1.jsx)(material_1.DialogContent, { children: loading ? (0, jsx_runtime_1.jsx)(material_1.CircularProgress, {}) : renderContent() })] })));
169
+ return ((0, jsx_runtime_1.jsxs)(Root, Object.assign({ maxWidth: "sm", fullWidth: true, scroll: "paper", open: true }, (disableInitialTransition ? { slots: { transition: NoTransition } } : { slots: { transition: Transition } }), { className: (0, classnames_1.default)(classes.root, className) }, rest, { children: [(0, jsx_runtime_1.jsx)(material_1.DialogTitle, { children: renderTitle() }), (0, jsx_runtime_1.jsx)(material_1.DialogContent, { children: loading ? (0, jsx_runtime_1.jsx)(material_1.CircularProgress, {}) : renderContent() })] })));
170
170
  }
171
171
  exports.default = CheckoutReturnDialog;
@@ -9,7 +9,6 @@ const material_1 = require("@mui/material");
9
9
  const react_core_1 = require("@selfcommunity/react-core");
10
10
  const Editor_1 = tslib_1.__importDefault(require("../Editor"));
11
11
  const classnames_1 = tslib_1.__importDefault(require("classnames"));
12
- const lab_1 = require("@mui/lab");
13
12
  const BaseItem_1 = tslib_1.__importDefault(require("../../shared/BaseItem"));
14
13
  const UserAvatar_1 = tslib_1.__importDefault(require("../../shared/UserAvatar"));
15
14
  const system_1 = require("@mui/system");
@@ -77,7 +76,7 @@ function CommentObjectReply(inProps) {
77
76
  const theme = (0, material_1.useTheme)();
78
77
  const isMobile = (0, material_1.useMediaQuery)(theme.breakpoints.down('md'));
79
78
  // REFS
80
- let editor = (0, react_1.useRef)();
79
+ let editor = (0, react_1.useRef)(null);
81
80
  /**
82
81
  * When CommentObjectReply is mount
83
82
  * if autoFocus === true focus on editor
@@ -133,6 +132,6 @@ function CommentObjectReply(inProps) {
133
132
  // RENDER
134
133
  return ((0, jsx_runtime_1.jsx)(Root, Object.assign({ id: id }, rest, { disableTypography: true, onClick: handleEditorFocus, elevation: elevation, className: (0, classnames_1.default)(classes.root, className), image: showAvatar &&
135
134
  (!scUserContext.user ? ((0, jsx_runtime_1.jsx)(material_1.Avatar, { variant: "circular", className: classes.avatar })) : ((0, jsx_runtime_1.jsx)(UserAvatar_1.default, Object.assign({ hide: !scUserContext.user.community_badge }, { children: (0, jsx_runtime_1.jsx)(material_1.Avatar, { alt: scUserContext.user.username, variant: "circular", src: scUserContext.user.avatar, classes: { root: classes.avatar } }) })))), secondary: (0, jsx_runtime_1.jsxs)(Widget_1.default, Object.assign({ className: (0, classnames_1.default)(classes.comment, { [classes.hasValue]: !isEditorEmpty }) }, WidgetProps, { children: [media && media.length > 0 && (0, jsx_runtime_1.jsx)(PreviewComponent_1.default, { value: media, onChange: handleChangeMedias, className: classes.media }), (0, jsx_runtime_1.jsx)(Editor_1.default, Object.assign({ ref: editor, onChange: handleChangeText, defaultValue: html, editable: editable, uploadImage: true, action: replyIcon &&
136
- onReply && ((0, jsx_runtime_1.jsx)(material_1.IconButton, Object.assign({ onClick: handleReply, className: classes.iconReply, disabled: uploadingMedia }, { children: (0, jsx_runtime_1.jsx)(material_1.Icon, { children: "send" }) }))) }, EditorProps, { MediaPluginProps: { isUploading: setUploadingMedia, onMediaAdd: handleChangeMedia } })), !isEditorEmpty && ((0, jsx_runtime_1.jsxs)(material_1.Stack, Object.assign({ direction: "row", spacing: 2, className: classes.actions }, { children: [onReply && !replyIcon && ((0, jsx_runtime_1.jsx)(lab_1.LoadingButton, Object.assign({ variant: "outlined", size: "small", onClick: handleReply, loading: !editable, className: classes.buttonReply }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.commentObject.replyComment.reply", defaultMessage: "ui.commentObject.replyComment.reply" }) }))), onSave && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [onCancel && ((0, jsx_runtime_1.jsx)(lab_1.LoadingButton, Object.assign({ variant: 'text', size: "small", onClick: handleCancel, disabled: !editable, color: "inherit", className: classes.buttonCancel }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.commentObject.replyComment.cancel", defaultMessage: "ui.commentObject.replyComment.cancel" }) }))), (0, jsx_runtime_1.jsx)(lab_1.LoadingButton, Object.assign({ variant: "outlined", size: "small", onClick: handleSave, loading: !editable, className: classes.buttonSave }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.commentObject.replyComment.save", defaultMessage: "ui.commentObject.replyComment.save" }) }))] }))] })))] })) })));
135
+ onReply && ((0, jsx_runtime_1.jsx)(material_1.IconButton, Object.assign({ onClick: handleReply, className: classes.iconReply, disabled: uploadingMedia }, { children: (0, jsx_runtime_1.jsx)(material_1.Icon, { children: "send" }) }))) }, EditorProps, { MediaPluginProps: { isUploading: setUploadingMedia, onMediaAdd: handleChangeMedia } })), !isEditorEmpty && ((0, jsx_runtime_1.jsxs)(material_1.Stack, Object.assign({ direction: "row", spacing: 2, className: classes.actions }, { children: [onReply && !replyIcon && ((0, jsx_runtime_1.jsx)(material_1.Button, Object.assign({ variant: "outlined", size: "small", onClick: handleReply, loading: !editable, className: classes.buttonReply }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.commentObject.replyComment.reply", defaultMessage: "ui.commentObject.replyComment.reply" }) }))), onSave && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [onCancel && ((0, jsx_runtime_1.jsx)(material_1.Button, Object.assign({ variant: "text", size: "small", onClick: handleCancel, disabled: !editable, color: "inherit", className: classes.buttonCancel }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.commentObject.replyComment.cancel", defaultMessage: "ui.commentObject.replyComment.cancel" }) }))), (0, jsx_runtime_1.jsx)(material_1.Button, Object.assign({ variant: "outlined", size: "small", onClick: handleSave, loading: !editable, className: classes.buttonSave }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.commentObject.replyComment.save", defaultMessage: "ui.commentObject.replyComment.save" }) }))] }))] })))] })) })));
137
136
  }
138
137
  exports.default = CommentObjectReply;
@@ -80,7 +80,7 @@ function CommentsFeedObject(inProps) {
80
80
  const objId = commentsObject.feedObject ? commentsObject.feedObject.id : null;
81
81
  const commentObjId = commentObj ? commentObj.id : null;
82
82
  // REFS
83
- const commentsContainerRef = (0, react_1.useRef)();
83
+ const commentsContainerRef = (0, react_1.useRef)(null);
84
84
  /**
85
85
  * Total number of comments
86
86
  */
@@ -90,7 +90,7 @@ function CommentsFeedObject(inProps) {
90
90
  */
91
91
  const renderTitle = (0, react_1.useMemo)(() => () => {
92
92
  if (showTitle) {
93
- return ((0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ variant: "h6", gutterBottom: true, color: 'inherit' }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.commentsObject.title", defaultMessage: "ui.commentsObject.title", values: { total: total } }) })));
93
+ return ((0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ variant: "h6", gutterBottom: true, color: "inherit" }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.commentsObject.title", defaultMessage: "ui.commentsObject.title", values: { total: total } }) })));
94
94
  }
95
95
  return null;
96
96
  }, [total, isLoading]);
@@ -5,4 +5,4 @@ export interface CommunityPaywallsProps {
5
5
  onUpdatePaymentOrder?: (price: SCPaymentPrice, contentType?: SCContentType, contentId?: string | number) => void;
6
6
  callbackUrl?: string;
7
7
  }
8
- export default function CommunityPaywalls(inProps: CommunityPaywallsProps): JSX.Element;
8
+ export default function CommunityPaywalls(inProps: CommunityPaywallsProps): import("react/jsx-runtime").JSX.Element;
@@ -3,7 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
4
  const jsx_runtime_1 = require("react/jsx-runtime");
5
5
  const react_1 = require("react");
6
- const Unstable_Grid2_1 = tslib_1.__importDefault(require("@mui/material/Unstable_Grid2"));
7
6
  const material_1 = require("@mui/material");
8
7
  const system_1 = require("@mui/system");
9
8
  const classnames_1 = tslib_1.__importDefault(require("classnames"));
@@ -18,10 +17,10 @@ const Errors_1 = require("../../constants/Errors");
18
17
  const classes = {
19
18
  root: `${constants_1.PREFIX}-root`
20
19
  };
21
- const Root = (0, material_1.styled)(Unstable_Grid2_1.default, {
20
+ const Root = (0, material_1.styled)(material_1.Grid, {
22
21
  slot: 'Root',
23
22
  name: constants_1.PREFIX
24
- })(({ theme }) => ({}));
23
+ })(() => ({}));
25
24
  function CommunityPaywalls(inProps) {
26
25
  // PROPS
27
26
  const props = (0, system_1.useThemeProps)({
@@ -64,6 +63,6 @@ function CommunityPaywalls(inProps) {
64
63
  if (loading) {
65
64
  return (0, jsx_runtime_1.jsx)(Skeleton_1.default, {});
66
65
  }
67
- return ((0, jsx_runtime_1.jsx)(Root, Object.assign({ className: (0, classnames_1.default)(classes.root, className), container: true, spacing: 4 }, rest, { children: scCommunity.paywalls.map((p, i) => ((0, jsx_runtime_1.jsx)(Unstable_Grid2_1.default, Object.assign({ xs: 12, sm: 12, md: 4 }, { children: (0, jsx_runtime_1.jsx)(PaymentProduct_1.default, Object.assign({ paymentProduct: p, contentType: types_1.SCContentType.COMMUNITY, contentId: scCommunity.id }, (scCommunity.payment_order && { paymentOrder: scCommunity.payment_order, onUpdatePaymentOrder }), (scCommunity.payment_order && { paymentOrder: scCommunity.payment_order, onUpdatePaymentOrder }), (callbackUrl && { PaymentProductPriceComponentProps: { returnUrlParams: { callbackUrl } } }))) }), i))) })));
66
+ return ((0, jsx_runtime_1.jsx)(Root, Object.assign({ className: (0, classnames_1.default)(classes.root, className), container: true, width: "100%", spacing: 4 }, rest, { children: scCommunity.paywalls.map((p, i) => ((0, jsx_runtime_1.jsx)(material_1.Grid, Object.assign({ size: { xs: 12, md: 4 } }, { children: (0, jsx_runtime_1.jsx)(PaymentProduct_1.default, Object.assign({ paymentProduct: p, contentType: types_1.SCContentType.COMMUNITY, contentId: scCommunity.id }, (scCommunity.payment_order && { paymentOrder: scCommunity.payment_order, onUpdatePaymentOrder }), (scCommunity.payment_order && { paymentOrder: scCommunity.payment_order, onUpdatePaymentOrder }), (callbackUrl && { PaymentProductPriceComponentProps: { returnUrlParams: { callbackUrl } } }))) }), i))) })));
68
67
  }
69
68
  exports.default = CommunityPaywalls;
@@ -1,6 +1,6 @@
1
+ import { GridProps } from '@mui/material';
1
2
  import { PaymentProductSkeletonProps } from '../PaymentProduct/Skeleton';
2
- import { Grid2Props } from '@mui/material/Unstable_Grid2';
3
- export interface CommunityPaywallsSkeletonProps extends Grid2Props {
3
+ export interface CommunityPaywallsSkeletonProps extends GridProps {
4
4
  className?: string;
5
5
  PaymentProductSkeletonComponentProps?: PaymentProductSkeletonProps;
6
6
  }
@@ -24,4 +24,4 @@ export interface CommunityPaywallsSkeletonProps extends Grid2Props {
24
24
  |root|.SCCommunityPaywallSkeleton-skeleton-root|Styles applied to the root element.|
25
25
  *
26
26
  */
27
- export default function CommunityPaywallsSkeleton(inProps: any): JSX.Element;
27
+ export default function CommunityPaywallsSkeleton(inProps: CommunityPaywallsSkeletonProps): JSX.Element;
@@ -6,13 +6,12 @@ const material_1 = require("@mui/material");
6
6
  const constants_1 = require("./constants");
7
7
  const classnames_1 = tslib_1.__importDefault(require("classnames"));
8
8
  const Skeleton_1 = tslib_1.__importDefault(require("../PaymentProduct/Skeleton"));
9
- const Unstable_Grid2_1 = tslib_1.__importDefault(require("@mui/material/Unstable_Grid2"));
10
9
  const system_1 = require("@mui/system");
11
10
  const classes = {
12
11
  root: `${constants_1.PREFIX}-skeleton-root`,
13
12
  products: `${constants_1.PREFIX}-products`
14
13
  };
15
- const Root = (0, material_1.styled)(Unstable_Grid2_1.default, {
14
+ const Root = (0, material_1.styled)(material_1.Grid, {
16
15
  name: constants_1.PREFIX,
17
16
  slot: 'SkeletonRoot'
18
17
  })(() => ({
@@ -48,6 +47,6 @@ function CommunityPaywallsSkeleton(inProps) {
48
47
  // HOOKS
49
48
  const theme = (0, material_1.useTheme)();
50
49
  const isMobile = (0, material_1.useMediaQuery)(theme.breakpoints.down('md'));
51
- return ((0, jsx_runtime_1.jsx)(Root, Object.assign({ className: (0, classnames_1.default)(classes.root, className), container: true, spacing: 4 }, rest, { children: [...Array(isMobile ? 2 : 3)].map((product, index) => ((0, jsx_runtime_1.jsx)(Unstable_Grid2_1.default, Object.assign({ xs: 4 }, { children: (0, jsx_runtime_1.jsx)(Skeleton_1.default, Object.assign({ variant: 'outlined' }, PaymentProductSkeletonComponentProps)) }), index))) })));
50
+ return ((0, jsx_runtime_1.jsx)(Root, Object.assign({ className: (0, classnames_1.default)(classes.root, className), container: true, width: "100%", spacing: 4 }, rest, { children: [...Array(isMobile ? 2 : 3)].map((_product, index) => ((0, jsx_runtime_1.jsx)(material_1.Grid, Object.assign({ size: 4 }, { children: (0, jsx_runtime_1.jsx)(Skeleton_1.default, Object.assign({ variant: "outlined" }, PaymentProductSkeletonComponentProps)) }), index))) })));
52
51
  }
53
52
  exports.default = CommunityPaywallsSkeleton;
@@ -10,7 +10,6 @@ const react_intl_1 = require("react-intl");
10
10
  const material_1 = require("@mui/material");
11
11
  const Composer_1 = require("../../constants/Composer");
12
12
  const Media_1 = require("../../constants/Media");
13
- const LoadingButton_1 = tslib_1.__importDefault(require("@mui/lab/LoadingButton"));
14
13
  const AudienceLayer_1 = tslib_1.__importDefault(require("./Layer/AudienceLayer"));
15
14
  const utils_1 = require("@selfcommunity/utils");
16
15
  const classnames_1 = tslib_1.__importDefault(require("classnames"));
@@ -204,7 +203,7 @@ function Composer(inProps) {
204
203
  const [isLoading, setIsLoading] = (0, react_1.useState)(editMode);
205
204
  const [loadError, setLoadError] = (0, react_1.useState)(false);
206
205
  // REFS
207
- const dialogRef = (0, react_1.useRef)();
206
+ const dialogRef = (0, react_1.useRef)(null);
208
207
  const unloadRef = (0, react_1.useRef)(false);
209
208
  const pointerStartY = (0, react_1.useRef)(null);
210
209
  // Create a ref for medias because of state update error on chunk upload
@@ -461,7 +460,7 @@ function Composer(inProps) {
461
460
  });
462
461
  mediasRef.current.medias = _medias;
463
462
  }, []);
464
- const handleMediaTriggerClick = (0, react_1.useCallback)((mediaObjectType) => (e) => {
463
+ const handleMediaTriggerClick = (0, react_1.useCallback)((mediaObjectType) => () => {
465
464
  if (mediaObjectType.layerComponent) {
466
465
  handleAddLayer({
467
466
  name: mediaObjectType.name,
@@ -695,7 +694,7 @@ function Composer(inProps) {
695
694
  if (!scUserContext.user && !(scUserContext.loading && open)) {
696
695
  return null;
697
696
  }
698
- return ((0, jsx_runtime_1.jsxs)(Root, Object.assign({ ref: dialogRef, TransitionComponent: DialogTransition, slots: { backdrop: BackdropScrollDisabled_1.default }, onClose: handleClose }, rest, { disableEscapeKeyDown: true, className: (0, classnames_1.default)(classes.root, { [classes.ios]: isIOS }), scroll: "body", fullScreen: fullScreen, tabIndex: -1 }, { children: [(0, jsx_runtime_1.jsxs)("form", Object.assign({ onSubmit: handleSubmit, method: "post" }, { children: [(0, jsx_runtime_1.jsxs)(material_1.DialogTitle, Object.assign({ className: classes.title }, { children: [(0, jsx_runtime_1.jsx)(material_1.IconButton, Object.assign({ onClick: handleClosePrompt }, { children: (0, jsx_runtime_1.jsx)(material_1.Icon, { children: "close" }) })), (0, jsx_runtime_1.jsx)(LoadingButton_1.default, Object.assign({ size: "small", type: "submit", color: "secondary", variant: "contained", disabled: !canSubmit, loading: isSubmitting }, { children: scheduledPostsEnabled && !scheduled_at ? ((0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.composer.submit.now", defaultMessage: "ui.composer.submit.now" })) : ((0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.composer.submit", defaultMessage: "ui.composer.submit" })) }))] })), (0, jsx_runtime_1.jsxs)(material_1.DialogContent, Object.assign({ className: classes.content }, { children: [(0, jsx_runtime_1.jsx)(Attributes_1.default, { value: { categories, event, group, addressing, recipients, location }, className: classes.attributes, onChange: handleChangeAttributes, onClick: handleClickAttributes }), content, medias && medias.length > 0 && ((0, jsx_runtime_1.jsx)(material_1.Box, Object.assign({ className: classes.medias }, { children: mediaObjectTypes.map((mediaObjectType) => {
697
+ return ((0, jsx_runtime_1.jsxs)(Root, Object.assign({ ref: dialogRef, slots: { backdrop: BackdropScrollDisabled_1.default, transition: DialogTransition }, onClose: handleClose }, rest, { disableEscapeKeyDown: true, className: (0, classnames_1.default)(classes.root, { [classes.ios]: isIOS }), scroll: "body", fullScreen: fullScreen, tabIndex: -1 }, { children: [(0, jsx_runtime_1.jsxs)("form", Object.assign({ onSubmit: handleSubmit, method: "post" }, { children: [(0, jsx_runtime_1.jsxs)(material_1.DialogTitle, Object.assign({ className: classes.title }, { children: [(0, jsx_runtime_1.jsx)(material_1.IconButton, Object.assign({ onClick: handleClosePrompt }, { children: (0, jsx_runtime_1.jsx)(material_1.Icon, { children: "close" }) })), (0, jsx_runtime_1.jsx)(material_1.Button, Object.assign({ size: "small", type: "submit", color: "secondary", variant: "contained", disabled: !canSubmit, loading: isSubmitting }, { children: scheduledPostsEnabled && !scheduled_at ? ((0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.composer.submit.now", defaultMessage: "ui.composer.submit.now" })) : ((0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.composer.submit", defaultMessage: "ui.composer.submit" })) }))] })), (0, jsx_runtime_1.jsxs)(material_1.DialogContent, Object.assign({ className: classes.content }, { children: [(0, jsx_runtime_1.jsx)(Attributes_1.default, { value: { categories, event, group, addressing, recipients, location }, className: classes.attributes, onChange: handleChangeAttributes, onClick: handleClickAttributes }), content, medias && medias.length > 0 && ((0, jsx_runtime_1.jsx)(material_1.Box, Object.assign({ className: classes.medias }, { children: mediaObjectTypes.map((mediaObjectType) => {
699
698
  if (mediaObjectType.previewComponent) {
700
699
  return (0, jsx_runtime_1.jsx)(mediaObjectType.previewComponent, { value: medias, onChange: handleChangeMedias }, mediaObjectType.name);
701
700
  }
@@ -21,7 +21,7 @@ const classes = {
21
21
  const Root = (0, material_1.styled)(material_1.Box, {
22
22
  name: constants_1.PREFIX,
23
23
  slot: 'ContentDiscussionRoot'
24
- })(({ theme }) => ({}));
24
+ })(() => ({}));
25
25
  /**
26
26
  * Default post
27
27
  */
@@ -82,7 +82,9 @@ exports.default = (props) => {
82
82
  return ((0, jsx_runtime_1.jsxs)(Root, Object.assign({ className: (0, classnames_1.default)(classes.root, className) }, { children: [(generalError || categoriesError || addressingError) && ((0, jsx_runtime_1.jsxs)(material_1.Typography, Object.assign({ className: classes.generalError }, { children: [generalError && (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: `ui.composer.error.${generalError}`, defaultMessage: `ui.composer.error.${generalError}` }), categoriesError && categoriesError, (0, jsx_runtime_1.jsx)("br", {}), addressingError && addressingError] }))), (0, jsx_runtime_1.jsx)(material_1.TextField, { className: classes.title, ref: titleRef, placeholder: intl.formatMessage({
83
83
  id: 'ui.composer.content.discussion.title.label',
84
84
  defaultMessage: 'ui.composer.content.discussion.title.label'
85
- }), autoFocus: true, fullWidth: true, variant: "outlined", value: value.title, onChange: handleChangeTitle, onKeyDown: handleKeyDownTitle, multiline: true, InputProps: {
86
- endAdornment: (0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ variant: "body2" }, { children: Composer_1.COMPOSER_TITLE_MAX_LENGTH - value.title.length }))
85
+ }), autoFocus: true, fullWidth: true, variant: "outlined", value: value.title, onChange: handleChangeTitle, onKeyDown: handleKeyDownTitle, multiline: true, slotProps: {
86
+ input: {
87
+ endAdornment: (0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ variant: "body2" }, { children: Composer_1.COMPOSER_TITLE_MAX_LENGTH - value.title.length }))
88
+ }
87
89
  }, error: Boolean(titleError), helperText: titleError, disabled: disabled }), (0, jsx_runtime_1.jsx)(material_1.Box, Object.assign({ sx: { [`& .${constants_2.PREFIX}-content`]: { maxHeight: `${editorMaxHeight} !important` } } }, { children: (0, jsx_runtime_1.jsx)(Editor_1.default, Object.assign({}, EditorProps, { editable: !disabled, className: classes.editor, onChange: handleChangeHtml, defaultValue: value.html })) }))] })));
88
90
  };
@@ -21,14 +21,14 @@ const classes = {
21
21
  const Root = (0, material_1.styled)(material_1.Box, {
22
22
  name: constants_1.PREFIX,
23
23
  slot: 'ContentLessonRoot'
24
- })(({ theme }) => ({}));
24
+ })(() => ({}));
25
25
  exports.default = (props) => {
26
26
  // PROPS
27
27
  const { className = null, value, error = {}, disabled = false, onChange, onMediaChange, EditorProps = {} } = props;
28
28
  const { error: generalError = null } = Object.assign({}, error);
29
29
  const mediaObjectTypes = [Media_1.File, Media_1.Link];
30
30
  const [medias, setMedias] = (0, react_1.useState)((value === null || value === void 0 ? void 0 : value.medias) || []);
31
- const [openLink, setOpenLink] = (0, react_1.useState)();
31
+ const [openLink, setOpenLink] = (0, react_1.useState)(false);
32
32
  const linkInputRef = (0, react_1.useRef)(null);
33
33
  // HANDLERS
34
34
  const handleChangeHtml = (0, react_1.useCallback)((html) => {
@@ -9,15 +9,15 @@ const react_sortablejs_1 = require("react-sortablejs");
9
9
  const x_date_pickers_1 = require("@mui/x-date-pickers");
10
10
  const AdapterDateFns_1 = require("@mui/x-date-pickers/AdapterDateFns");
11
11
  const Composer_1 = require("../../../../constants/Composer");
12
- const it_1 = tslib_1.__importDefault(require("date-fns/locale/it"));
13
- const en_US_1 = tslib_1.__importDefault(require("date-fns/locale/en-US"));
12
+ const it_1 = require("date-fns/locale/it");
13
+ const en_US_1 = require("date-fns/locale/en-US");
14
14
  const classnames_1 = tslib_1.__importDefault(require("classnames"));
15
15
  const system_1 = require("@mui/system");
16
16
  const date_fns_1 = require("date-fns");
17
17
  const constants_1 = require("../../constants");
18
18
  const localeMap = {
19
- en: en_US_1.default,
20
- it: it_1.default
19
+ en: it_1.it,
20
+ it: en_US_1.enUS
21
21
  };
22
22
  const classes = {
23
23
  root: `${constants_1.PREFIX}-content-poll-root`,
@@ -30,7 +30,7 @@ const classes = {
30
30
  const Root = (0, material_1.styled)(material_1.Box, {
31
31
  name: constants_1.PREFIX,
32
32
  slot: 'ContentPollRoot'
33
- })(({ theme }) => ({}));
33
+ })(() => ({}));
34
34
  const messages = (0, react_intl_1.defineMessages)({
35
35
  choicePlaceholder: {
36
36
  id: 'ui.composer.content.poll.choice.placeholder',
@@ -39,7 +39,7 @@ const messages = (0, react_intl_1.defineMessages)({
39
39
  });
40
40
  const SortableComponent = (0, react_1.forwardRef)((_a, ref) => {
41
41
  var { children } = _a, props = tslib_1.__rest(_a, ["children"]);
42
- return ((0, jsx_runtime_1.jsx)(material_1.FormGroup, Object.assign({ direction: "column", ref: ref }, props, { children: children })));
42
+ return ((0, jsx_runtime_1.jsx)(material_1.FormGroup, Object.assign({ sx: { display: 'flex', flexDirection: 'column' }, ref: ref }, props, { children: children })));
43
43
  });
44
44
  /**
45
45
  * Default poll
@@ -81,7 +81,7 @@ exports.default = (inProps) => {
81
81
  onChange(Object.assign(Object.assign({}, value), { poll: Object.assign(Object.assign({}, poll), { choices: [...poll.choices, Object.assign({}, DEFAULT_CHOICE)] }) }));
82
82
  }, [value, poll]);
83
83
  const handleDeleteChoice = (0, react_1.useCallback)((index) => {
84
- return (event) => {
84
+ return () => {
85
85
  const _choices = [...poll.choices];
86
86
  _choices.splice(index, 1);
87
87
  onChange(Object.assign(Object.assign({}, value), { poll: Object.assign(Object.assign({}, poll), { choices: _choices }) }));
@@ -99,10 +99,14 @@ exports.default = (inProps) => {
99
99
  minDate.setDate(minDate.getDate() + Composer_1.COMPOSER_POLL_MIN_CLOSE_DATE_DELTA);
100
100
  return minDate;
101
101
  }, []);
102
- return ((0, jsx_runtime_1.jsxs)(Root, Object.assign({ className: (0, classnames_1.default)(classes.root, className) }, { children: [(generalError || categoriesError || addressingError) && ((0, jsx_runtime_1.jsxs)(material_1.Typography, Object.assign({ className: classes.generalError }, { children: [generalError && ((0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: `ui.composer.content.poll.error.${generalError}`, defaultMessage: `ui.composer.content.poll.error.${generalError}` })), categoriesError && categoriesError, (0, jsx_runtime_1.jsx)("br", {}), addressingError && addressingError] }))), (0, jsx_runtime_1.jsx)(material_1.Box, Object.assign({ className: classes.title }, { children: (0, jsx_runtime_1.jsx)(material_1.TextField, { autoFocus: true, disabled: disabled, label: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.composer.content.poll.title", defaultMessage: "ui.composer.content.poll.title" }), variant: "outlined", value: poll.title, onChange: handleChangeTitle, fullWidth: true, error: Boolean(titleError), helperText: titleError && titleError, InputProps: {
103
- endAdornment: (0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ variant: "body2" }, { children: Composer_1.COMPOSER_POLL_TITLE_MAX_LENGTH - poll.title.length }))
104
- } }) })), (0, jsx_runtime_1.jsx)(material_1.Box, Object.assign({ className: classes.choices }, { children: (0, jsx_runtime_1.jsx)(react_sortablejs_1.ReactSortable, Object.assign({ list: [...poll.choices], setList: handleSortChoices, tag: SortableComponent }, { children: poll.choices.map((choice, index) => ((0, jsx_runtime_1.jsx)(material_1.TextField, { placeholder: intl.formatMessage(messages.choicePlaceholder), value: choice.choice, onChange: handleChangeChoice(index), variant: "outlined", disabled: disabled, InputProps: {
105
- startAdornment: ((0, jsx_runtime_1.jsx)(material_1.InputAdornment, Object.assign({ position: "start" }, { children: (0, jsx_runtime_1.jsx)(material_1.Icon, { children: "drag" }) }))),
106
- endAdornment: ((0, jsx_runtime_1.jsx)(material_1.InputAdornment, Object.assign({ position: "end" }, { children: (0, jsx_runtime_1.jsx)(material_1.Tooltip, Object.assign({ title: poll.choices.length <= Composer_1.COMPOSER_POLL_MIN_CHOICES ? ((0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.composer.content.poll.choice.delete.disabled", defaultMessage: "ui.composer.content.poll.choice.delete.disabled" })) : ((0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.composer.content.poll.choice.delete", defaultMessage: "ui.composer.content.poll.choice.delete" })) }, { children: (0, jsx_runtime_1.jsx)("span", { children: (0, jsx_runtime_1.jsx)(material_1.IconButton, Object.assign({ onClick: handleDeleteChoice(index), disabled: poll.choices.length <= Composer_1.COMPOSER_POLL_MIN_CHOICES, edge: "end" }, { children: (0, jsx_runtime_1.jsx)(material_1.Icon, { children: "delete" }) })) }) })) })))
102
+ return ((0, jsx_runtime_1.jsxs)(Root, Object.assign({ className: (0, classnames_1.default)(classes.root, className) }, { children: [(generalError || categoriesError || addressingError) && ((0, jsx_runtime_1.jsxs)(material_1.Typography, Object.assign({ className: classes.generalError }, { children: [generalError && ((0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: `ui.composer.content.poll.error.${generalError}`, defaultMessage: `ui.composer.content.poll.error.${generalError}` })), categoriesError && categoriesError, (0, jsx_runtime_1.jsx)("br", {}), addressingError && addressingError] }))), (0, jsx_runtime_1.jsx)(material_1.Box, Object.assign({ className: classes.title }, { children: (0, jsx_runtime_1.jsx)(material_1.TextField, { autoFocus: true, disabled: disabled, label: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.composer.content.poll.title", defaultMessage: "ui.composer.content.poll.title" }), variant: "outlined", value: poll.title, onChange: handleChangeTitle, fullWidth: true, error: Boolean(titleError), helperText: titleError && titleError, slotProps: {
103
+ input: {
104
+ endAdornment: (0, jsx_runtime_1.jsx)(material_1.Typography, Object.assign({ variant: "body2" }, { children: Composer_1.COMPOSER_POLL_TITLE_MAX_LENGTH - poll.title.length }))
105
+ }
106
+ } }) })), (0, jsx_runtime_1.jsx)(material_1.Box, Object.assign({ className: classes.choices }, { children: (0, jsx_runtime_1.jsx)(react_sortablejs_1.ReactSortable, Object.assign({ list: [...poll.choices], setList: handleSortChoices, tag: SortableComponent }, { children: poll.choices.map((choice, index) => ((0, jsx_runtime_1.jsx)(material_1.TextField, { placeholder: intl.formatMessage(messages.choicePlaceholder), value: choice.choice, onChange: handleChangeChoice(index), variant: "outlined", disabled: disabled, slotProps: {
107
+ input: {
108
+ startAdornment: ((0, jsx_runtime_1.jsx)(material_1.InputAdornment, Object.assign({ position: "start" }, { children: (0, jsx_runtime_1.jsx)(material_1.Icon, { children: "drag" }) }))),
109
+ endAdornment: ((0, jsx_runtime_1.jsx)(material_1.InputAdornment, Object.assign({ position: "end" }, { children: (0, jsx_runtime_1.jsx)(material_1.Tooltip, Object.assign({ title: poll.choices.length <= Composer_1.COMPOSER_POLL_MIN_CHOICES ? ((0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.composer.content.poll.choice.delete.disabled", defaultMessage: "ui.composer.content.poll.choice.delete.disabled" })) : ((0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.composer.content.poll.choice.delete", defaultMessage: "ui.composer.content.poll.choice.delete" })) }, { children: (0, jsx_runtime_1.jsx)("span", { children: (0, jsx_runtime_1.jsx)(material_1.IconButton, Object.assign({ onClick: handleDeleteChoice(index), disabled: poll.choices.length <= Composer_1.COMPOSER_POLL_MIN_CHOICES, edge: "end" }, { children: (0, jsx_runtime_1.jsx)(material_1.Icon, { children: "delete" }) })) }) })) })))
110
+ }
107
111
  } }, index))) })) })), (0, jsx_runtime_1.jsx)(material_1.Box, Object.assign({ className: classes.choiceNew }, { children: (0, jsx_runtime_1.jsxs)(material_1.Button, Object.assign({ color: "inherit", variant: "text", onClick: handleAddChoice }, { children: [(0, jsx_runtime_1.jsx)(material_1.Icon, { children: "add" }), (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.composer.content.poll.choice.add", defaultMessage: "ui.composer.choice.add" })] })) })), (0, jsx_runtime_1.jsx)(material_1.Divider, {}), (0, jsx_runtime_1.jsxs)(material_1.FormGroup, Object.assign({ className: classes.metadata }, { children: [(0, jsx_runtime_1.jsx)(material_1.FormControlLabel, { control: (0, jsx_runtime_1.jsx)(material_1.Checkbox, { checked: poll.multiple_choices, onChange: handleChangeMultiple }), label: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.composer.content.poll.multiple", defaultMessage: "ui.composer.content.poll.multiple" }) }), (0, jsx_runtime_1.jsx)(x_date_pickers_1.LocalizationProvider, Object.assign({ dateAdapter: AdapterDateFns_1.AdapterDateFns, adapterLocale: localeMap[intl.locale] }, { children: (0, jsx_runtime_1.jsx)(x_date_pickers_1.DatePicker, { disabled: disabled, label: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.composer.content.poll.expiration", defaultMessage: "ui.composer.content.poll.expiration" }), value: typeof poll.expiration_at === 'string' ? (0, date_fns_1.parseISO)(poll.expiration_at) : poll.expiration_at, onChange: handleChangeExpiration, slotProps: { textField: { variant: 'outlined' } }, minDate: minDate }) }))] }))] })));
108
112
  };
@@ -17,7 +17,7 @@ const classes = {
17
17
  const Root = (0, material_1.styled)(material_1.Box, {
18
18
  name: constants_1.PREFIX,
19
19
  slot: 'ContentPostRoot'
20
- })(({ theme }) => ({}));
20
+ })(() => ({}));
21
21
  /**
22
22
  * Default post
23
23
  */
@@ -35,7 +35,7 @@ exports.default = (props) => {
35
35
  const { className = null, value = Object.assign({}, DEFAULT_POST), error = {}, disabled = false, onChange, EditorProps = {} } = props;
36
36
  const { categoriesError = null, addressingError = null, error: generalError = null } = Object.assign({}, error);
37
37
  // REF
38
- const editorRef = (0, react_1.useRef)();
38
+ const editorRef = (0, react_1.useRef)(null);
39
39
  // EFFECTS
40
40
  (0, react_1.useEffect)(() => {
41
41
  editorRef && editorRef.current && editorRef.current.focus();
@@ -14,5 +14,5 @@ export interface AudienceLayerProps extends Omit<BoxProps, 'defaultValue'>, Comp
14
14
  defaultValue: SCTagType[] | SCGroupType | any;
15
15
  TextFieldProps?: TextFieldProps;
16
16
  }
17
- declare const AudienceLayer: React.ForwardRefExoticComponent<Pick<AudienceLayerProps, "id" | "role" | "className" | "style" | "classes" | "p" | "slot" | "title" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "sx" | "component" | "alignContent" | "alignItems" | "alignSelf" | "bottom" | "boxShadow" | "boxSizing" | "columnGap" | "display" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "height" | "justifyContent" | "justifyItems" | "justifySelf" | "left" | "letterSpacing" | "lineHeight" | "marginBlockEnd" | "marginBlockStart" | "marginBottom" | "marginInlineEnd" | "marginInlineStart" | "marginLeft" | "marginRight" | "marginTop" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "order" | "paddingBlockEnd" | "paddingBlockStart" | "paddingBottom" | "paddingInlineEnd" | "paddingInlineStart" | "paddingLeft" | "paddingRight" | "paddingTop" | "position" | "right" | "rowGap" | "textAlign" | "textOverflow" | "textTransform" | "top" | "visibility" | "whiteSpace" | "width" | "zIndex" | "border" | "borderBottom" | "borderColor" | "borderLeft" | "borderRadius" | "borderRight" | "borderTop" | "flex" | "gap" | "gridArea" | "gridColumn" | "gridRow" | "margin" | "marginBlock" | "marginInline" | "overflow" | "padding" | "paddingBlock" | "paddingInline" | "bgcolor" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "marginX" | "my" | "marginY" | "pt" | "pr" | "pb" | "pl" | "px" | "paddingX" | "py" | "paddingY" | "typography" | "displayPrint" | "onClose" | "TextFieldProps" | "onSave"> & React.RefAttributes<unknown>>;
17
+ declare const AudienceLayer: React.ForwardRefExoticComponent<Omit<AudienceLayerProps, "ref"> & React.RefAttributes<unknown>>;
18
18
  export default AudienceLayer;
@@ -126,14 +126,20 @@ const AudienceLayer = react_1.default.forwardRef((props, ref) => {
126
126
  // Disable all tabs except the currently selected type
127
127
  return type !== valueType;
128
128
  };
129
- return ((0, jsx_runtime_1.jsxs)(Root, Object.assign({ ref: ref, className: (0, classnames_1.default)(className, classes.root) }, rest, { children: [(0, jsx_runtime_1.jsxs)(material_1.DialogTitle, Object.assign({ className: classes.title }, { children: [(0, jsx_runtime_1.jsx)(material_1.IconButton, Object.assign({ onClick: onClose }, { children: (0, jsx_runtime_1.jsx)(material_1.Icon, { children: "arrow_back" }) })), (0, jsx_runtime_1.jsx)(material_1.Typography, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.composer.layer.audience.title", defaultMessage: "ui.composer.layer.audience.title" }) }), (0, jsx_runtime_1.jsx)(material_1.Button, Object.assign({ size: "small", color: "secondary", variant: "contained", onClick: handleSave }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.composer.layer.save", defaultMessage: "ui.composer.layer.save" }) }))] })), (0, jsx_runtime_1.jsxs)(material_1.DialogContent, Object.assign({ className: classes.content }, { children: [(0, jsx_runtime_1.jsxs)(material_1.Tabs, Object.assign({ value: audience, onChange: handleChangeAudience, "aria-label": "audience type" }, { children: [!taggingRequiredEnabled && ((0, jsx_runtime_1.jsx)(material_1.Tab, { value: AudienceTypes.AUDIENCE_ALL, icon: (0, jsx_runtime_1.jsx)(material_1.Icon, { children: "public" }), label: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.composer.layer.audience.all", defaultMessage: "ui.composer.layer.audience.all" }) })), eventsEnabled && ((0, jsx_runtime_1.jsx)(material_1.Tab, { disabled: isAudienceTypeSelected(AudienceTypes.AUDIENCE_EVENT), value: AudienceTypes.AUDIENCE_EVENT, icon: (0, jsx_runtime_1.jsx)(material_1.Icon, { children: "CalendarIcon" }), label: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.composer.layer.audience.event", defaultMessage: "ui.composer.layer.audience.event" }) })), groupsEnabled && ((0, jsx_runtime_1.jsx)(material_1.Tab, { disabled: isAudienceTypeSelected(AudienceTypes.AUDIENCE_GROUP), value: AudienceTypes.AUDIENCE_GROUP, icon: (0, jsx_runtime_1.jsx)(material_1.Icon, { children: "groups" }), label: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.composer.layer.audience.group", defaultMessage: "ui.composer.layer.audience.group" }) })), (0, jsx_runtime_1.jsx)(material_1.Tab, { disabled: isAudienceTypeSelected(AudienceTypes.AUDIENCE_TAG), value: AudienceTypes.AUDIENCE_TAG, icon: (0, jsx_runtime_1.jsx)(material_1.Icon, { children: "label" }), label: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.composer.layer.audience.tag", defaultMessage: "ui.composer.layer.audience.tag" }) }), usersTaggingEnabled && ((0, jsx_runtime_1.jsx)(material_1.Tab, { disabled: isAudienceTypeSelected(AudienceTypes.AUDIENCE_USERS), value: AudienceTypes.AUDIENCE_USERS, icon: (0, jsx_runtime_1.jsx)(material_1.Icon, { children: "people_alt" }), label: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.composer.layer.audience.users", defaultMessage: "ui.composer.layer.audience.users" }) }))] })), (0, jsx_runtime_1.jsxs)(material_1.Typography, Object.assign({ className: classes.message }, { children: [audience === AudienceTypes.AUDIENCE_ALL && !taggingRequiredEnabled && ((0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.composer.layer.audience.all.message", defaultMessage: "ui.composer.layer.audience.all.message" })), audience === AudienceTypes.AUDIENCE_EVENT && ((0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.composer.layer.audience.event.message", defaultMessage: "ui.composer.layer.audience.event.message" })), audience === AudienceTypes.AUDIENCE_GROUP && ((0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.composer.layer.audience.group.message", defaultMessage: "ui.composer.layer.audience.group.message" })), audience === AudienceTypes.AUDIENCE_TAG && ((0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.composer.layer.audience.tag.message", defaultMessage: "ui.composer.layer.audience.tag.message" })), audience === AudienceTypes.AUDIENCE_USERS && ((0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.composer.layer.audience.users.message", defaultMessage: "ui.composer.layer.audience.users.message" }))] })), audience === AudienceTypes.AUDIENCE_TAG && ((0, jsx_runtime_1.jsx)(material_1.Autocomplete, { className: classes.autocomplete, open: autocompleteOpen, onOpen: handleAutocompleteOpen, onClose: handleAutocompleteClose, multiple: true, options: scAddressingTags || [], getOptionLabel: (option) => option.name || '', value: value, selectOnFocus: true, clearOnBlur: true, handleHomeEndKeys: true, clearIcon: null, noOptionsText: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.composer.layer.audience.tags.empty", defaultMessage: "ui.composer.layer.audience.tags.empty" }), onChange: handleChange, isOptionEqualToValue: (option, value) => value.id === option.id, renderTags: (value, getTagProps) => {
130
- return value.map((option, index) => (0, jsx_runtime_1.jsx)(TagChip_1.default, Object.assign({ tag: option }, getTagProps({ index }), { showDescription: true }), option.id));
131
- }, renderOption: (props, option, { selected, inputValue }) => {
129
+ return ((0, jsx_runtime_1.jsxs)(Root, Object.assign({ ref: ref, className: (0, classnames_1.default)(className, classes.root) }, rest, { children: [(0, jsx_runtime_1.jsxs)(material_1.DialogTitle, Object.assign({ className: classes.title }, { children: [(0, jsx_runtime_1.jsx)(material_1.IconButton, Object.assign({ onClick: onClose }, { children: (0, jsx_runtime_1.jsx)(material_1.Icon, { children: "arrow_back" }) })), (0, jsx_runtime_1.jsx)(material_1.Typography, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.composer.layer.audience.title", defaultMessage: "ui.composer.layer.audience.title" }) }), (0, jsx_runtime_1.jsx)(material_1.Button, Object.assign({ size: "small", color: "secondary", variant: "contained", onClick: handleSave }, { children: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.composer.layer.save", defaultMessage: "ui.composer.layer.save" }) }))] })), (0, jsx_runtime_1.jsxs)(material_1.DialogContent, Object.assign({ className: classes.content }, { children: [(0, jsx_runtime_1.jsxs)(material_1.Tabs, Object.assign({ value: audience, onChange: handleChangeAudience, "aria-label": "audience type" }, { children: [!taggingRequiredEnabled && ((0, jsx_runtime_1.jsx)(material_1.Tab, { value: AudienceTypes.AUDIENCE_ALL, icon: (0, jsx_runtime_1.jsx)(material_1.Icon, { children: "public" }), label: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.composer.layer.audience.all", defaultMessage: "ui.composer.layer.audience.all" }) })), eventsEnabled && ((0, jsx_runtime_1.jsx)(material_1.Tab, { disabled: isAudienceTypeSelected(AudienceTypes.AUDIENCE_EVENT), value: AudienceTypes.AUDIENCE_EVENT, icon: (0, jsx_runtime_1.jsx)(material_1.Icon, { children: "CalendarIcon" }), label: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.composer.layer.audience.event", defaultMessage: "ui.composer.layer.audience.event" }) })), groupsEnabled && ((0, jsx_runtime_1.jsx)(material_1.Tab, { disabled: isAudienceTypeSelected(AudienceTypes.AUDIENCE_GROUP), value: AudienceTypes.AUDIENCE_GROUP, icon: (0, jsx_runtime_1.jsx)(material_1.Icon, { children: "groups" }), label: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.composer.layer.audience.group", defaultMessage: "ui.composer.layer.audience.group" }) })), (0, jsx_runtime_1.jsx)(material_1.Tab, { disabled: isAudienceTypeSelected(AudienceTypes.AUDIENCE_TAG), value: AudienceTypes.AUDIENCE_TAG, icon: (0, jsx_runtime_1.jsx)(material_1.Icon, { children: "label" }), label: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.composer.layer.audience.tag", defaultMessage: "ui.composer.layer.audience.tag" }) }), usersTaggingEnabled && ((0, jsx_runtime_1.jsx)(material_1.Tab, { disabled: isAudienceTypeSelected(AudienceTypes.AUDIENCE_USERS), value: AudienceTypes.AUDIENCE_USERS, icon: (0, jsx_runtime_1.jsx)(material_1.Icon, { children: "people_alt" }), label: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.composer.layer.audience.users", defaultMessage: "ui.composer.layer.audience.users" }) }))] })), (0, jsx_runtime_1.jsxs)(material_1.Typography, Object.assign({ className: classes.message }, { children: [audience === AudienceTypes.AUDIENCE_ALL && !taggingRequiredEnabled && ((0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.composer.layer.audience.all.message", defaultMessage: "ui.composer.layer.audience.all.message" })), audience === AudienceTypes.AUDIENCE_EVENT && ((0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.composer.layer.audience.event.message", defaultMessage: "ui.composer.layer.audience.event.message" })), audience === AudienceTypes.AUDIENCE_GROUP && ((0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.composer.layer.audience.group.message", defaultMessage: "ui.composer.layer.audience.group.message" })), audience === AudienceTypes.AUDIENCE_TAG && ((0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.composer.layer.audience.tag.message", defaultMessage: "ui.composer.layer.audience.tag.message" })), audience === AudienceTypes.AUDIENCE_USERS && ((0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.composer.layer.audience.users.message", defaultMessage: "ui.composer.layer.audience.users.message" }))] })), audience === AudienceTypes.AUDIENCE_TAG && ((0, jsx_runtime_1.jsx)(material_1.Autocomplete, { className: classes.autocomplete, open: autocompleteOpen, onOpen: handleAutocompleteOpen, onClose: handleAutocompleteClose, multiple: true, options: scAddressingTags || [], getOptionLabel: (option) => option.name || '', value: value, selectOnFocus: true, clearOnBlur: true, handleHomeEndKeys: true, clearIcon: null, noOptionsText: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: "ui.composer.layer.audience.tags.empty", defaultMessage: "ui.composer.layer.audience.tags.empty" }), onChange: handleChange, isOptionEqualToValue: (option, value) => value.id === option.id, renderValue: (value, getItemProps) => {
130
+ return value.map((option, index) => {
131
+ const _a = getItemProps({ index }), { key } = _a, rest = tslib_1.__rest(_a, ["key"]);
132
+ return (0, jsx_runtime_1.jsx)(TagChip_1.default, Object.assign({ tag: option }, rest, { showDescription: true }), key || option.id);
133
+ });
134
+ }, renderOption: (props, option, { inputValue }) => {
135
+ const { key } = props, rest = tslib_1.__rest(props, ["key"]);
132
136
  const matches = (0, match_1.default)(option.name, inputValue);
133
137
  const parts = (0, parse_1.default)(option.name, matches);
134
- return ((0, jsx_runtime_1.jsx)("li", Object.assign({}, props, { children: (0, jsx_runtime_1.jsx)(TagChip_1.default, { showDescription: true, disposable: false, tag: option, label: (0, jsx_runtime_1.jsx)(react_1.default.Fragment, { children: parts.map((part, index) => ((0, jsx_runtime_1.jsx)("span", Object.assign({ style: { fontWeight: part.highlight ? 700 : 400 } }, { children: part.text }), index))) }) }, option.id) })));
138
+ return ((0, jsx_runtime_1.jsx)("li", Object.assign({}, rest, { children: (0, jsx_runtime_1.jsx)(TagChip_1.default, { showDescription: true, disposable: false, tag: option, label: (0, jsx_runtime_1.jsx)(react_1.default.Fragment, { children: parts.map((part, index) => ((0, jsx_runtime_1.jsx)("span", Object.assign({ style: { fontWeight: part.highlight ? 700 : 400 } }, { children: part.text }), index))) }) }, option.id) }), key));
135
139
  }, renderInput: (params) => {
136
- return ((0, jsx_runtime_1.jsx)(material_1.TextField, Object.assign({}, params, TextFieldProps, { InputProps: Object.assign(Object.assign({}, params.InputProps), { autoComplete: 'addressing', endAdornment: (0, jsx_runtime_1.jsx)(react_1.default.Fragment, { children: params.InputProps.endAdornment }) }) })));
140
+ return ((0, jsx_runtime_1.jsx)(material_1.TextField, Object.assign({}, params, TextFieldProps, { slotProps: {
141
+ input: Object.assign(Object.assign({}, params.InputProps), { autoComplete: 'addressing', endAdornment: (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: params.InputProps.endAdornment }) })
142
+ } })));
137
143
  } })), audience === AudienceTypes.AUDIENCE_USERS && (0, jsx_runtime_1.jsx)(UserAutocomplete_1.default, { onChange: handleUsersChange, defaultValue: value }), audience === AudienceTypes.AUDIENCE_GROUP && (0, jsx_runtime_1.jsx)(GroupAutocomplete_1.default, { onChange: handleGroupChange, defaultValue: value }), audience === AudienceTypes.AUDIENCE_EVENT && (0, jsx_runtime_1.jsx)(EventAutocomplete_1.default, { onChange: handleEventChange, defaultValue: value })] }))] })));
138
144
  });
139
145
  exports.default = AudienceLayer;