@selfcommunity/react-ui 0.11.0-alpha.6 → 0.11.0-alpha.61

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 (719) hide show
  1. package/lib/cjs/assets/courses/clapping.d.ts +1 -0
  2. package/lib/cjs/assets/courses/clapping.js +4 -0
  3. package/lib/cjs/components/BottomNavigation/BottomNavigation.js +17 -2
  4. package/lib/cjs/components/CategoryAutocomplete/CategoryAutocomplete.d.ts +5 -0
  5. package/lib/cjs/components/CategoryAutocomplete/CategoryAutocomplete.js +9 -11
  6. package/lib/cjs/components/CommentObject/CommentObject.d.ts +5 -0
  7. package/lib/cjs/components/CommentObject/CommentObject.js +2 -2
  8. package/lib/cjs/components/CommentObjectReply/CommentObjectReply.d.ts +24 -2
  9. package/lib/cjs/components/CommentObjectReply/CommentObjectReply.js +17 -4
  10. package/lib/cjs/components/Composer/Content/ContentLesson/ContentLesson.d.ts +38 -0
  11. package/lib/cjs/components/Composer/Content/ContentLesson/ContentLesson.js +67 -0
  12. package/lib/cjs/components/Composer/Content/ContentLesson/index.d.ts +3 -0
  13. package/lib/cjs/components/Composer/Content/ContentLesson/index.js +5 -0
  14. package/lib/cjs/components/Composer/Layer/AudienceLayer/AudienceLayer.js +2 -2
  15. package/lib/cjs/components/Composer/Layer/CategoryLayer/CategoryLayer.d.ts +1 -1
  16. package/lib/cjs/components/Composer/Layer/CategoryLayer/CategoryLayer.js +4 -1
  17. package/lib/cjs/components/ComposerIconButton/ComposerIconButton.d.ts +9 -3
  18. package/lib/cjs/components/ComposerIconButton/ComposerIconButton.js +46 -9
  19. package/lib/cjs/components/Course/Course.d.ts +92 -0
  20. package/lib/cjs/components/Course/Course.js +185 -0
  21. package/lib/cjs/components/Course/CreatePlaceholder.d.ts +39 -0
  22. package/lib/cjs/components/Course/CreatePlaceholder.js +59 -0
  23. package/lib/cjs/components/Course/Skeleton.d.ts +51 -0
  24. package/lib/cjs/components/Course/Skeleton.js +77 -0
  25. package/lib/cjs/components/Course/constants.d.ts +1 -0
  26. package/lib/cjs/components/Course/constants.js +4 -0
  27. package/lib/cjs/components/Course/index.d.ts +4 -0
  28. package/lib/cjs/components/Course/index.js +8 -0
  29. package/lib/cjs/components/CourseCompletedDialog/CourseCompletedDialog.d.ts +9 -0
  30. package/lib/cjs/components/CourseCompletedDialog/CourseCompletedDialog.js +40 -0
  31. package/lib/cjs/components/CourseCompletedDialog/index.d.ts +3 -0
  32. package/lib/cjs/components/CourseCompletedDialog/index.js +5 -0
  33. package/lib/cjs/components/CourseContentMenu/CourseContentMenu.d.ts +25 -0
  34. package/lib/cjs/components/CourseContentMenu/CourseContentMenu.js +47 -0
  35. package/lib/cjs/components/CourseContentMenu/constants.d.ts +1 -0
  36. package/lib/cjs/components/CourseContentMenu/constants.js +4 -0
  37. package/lib/cjs/components/CourseContentMenu/index.d.ts +3 -0
  38. package/lib/cjs/components/CourseContentMenu/index.js +5 -0
  39. package/lib/cjs/components/CourseDashboard/Header/Skeleton.d.ts +1 -0
  40. package/lib/cjs/components/CourseDashboard/Header/Skeleton.js +16 -0
  41. package/lib/cjs/components/CourseDashboard/Header.d.ts +9 -0
  42. package/lib/cjs/components/CourseDashboard/Header.js +44 -0
  43. package/lib/cjs/components/CourseDashboard/Student/ActionButton.d.ts +8 -0
  44. package/lib/cjs/components/CourseDashboard/Student/ActionButton.js +16 -0
  45. package/lib/cjs/components/CourseDashboard/Student/Skeleton.d.ts +1 -0
  46. package/lib/cjs/components/CourseDashboard/Student/Skeleton.js +30 -0
  47. package/lib/cjs/components/CourseDashboard/Student.d.ts +11 -0
  48. package/lib/cjs/components/CourseDashboard/Student.js +203 -0
  49. package/lib/cjs/components/CourseDashboard/Teacher/Comments.d.ts +9 -0
  50. package/lib/cjs/components/CourseDashboard/Teacher/Comments.js +108 -0
  51. package/lib/cjs/components/CourseDashboard/Teacher/Info.d.ts +11 -0
  52. package/lib/cjs/components/CourseDashboard/Teacher/Info.js +19 -0
  53. package/lib/cjs/components/CourseDashboard/Teacher/Skeleton.d.ts +1 -0
  54. package/lib/cjs/components/CourseDashboard/Teacher/Skeleton.js +25 -0
  55. package/lib/cjs/components/CourseDashboard/Teacher/Students.d.ts +10 -0
  56. package/lib/cjs/components/CourseDashboard/Teacher/Students.js +71 -0
  57. package/lib/cjs/components/CourseDashboard/Teacher.d.ts +11 -0
  58. package/lib/cjs/components/CourseDashboard/Teacher.js +62 -0
  59. package/lib/cjs/components/CourseDashboard/constants.d.ts +1 -0
  60. package/lib/cjs/components/CourseDashboard/constants.js +4 -0
  61. package/lib/cjs/components/CourseDashboard/index.d.ts +11 -0
  62. package/lib/cjs/components/CourseDashboard/index.js +11 -0
  63. package/lib/cjs/components/CourseDashboard/types.d.ts +8 -0
  64. package/lib/cjs/components/CourseDashboard/types.js +13 -0
  65. package/lib/cjs/components/CourseForm/CourseForm.d.ts +74 -0
  66. package/lib/cjs/components/CourseForm/CourseForm.js +273 -0
  67. package/lib/cjs/components/CourseForm/Dialog.d.ts +8 -0
  68. package/lib/cjs/components/CourseForm/Dialog.js +19 -0
  69. package/lib/cjs/components/CourseForm/Edit.d.ts +24 -0
  70. package/lib/cjs/components/CourseForm/Edit.js +53 -0
  71. package/lib/cjs/components/CourseForm/Skeleton.d.ts +1 -0
  72. package/lib/cjs/components/CourseForm/Skeleton.js +17 -0
  73. package/lib/cjs/components/CourseForm/UploadCourseCover.d.ts +45 -0
  74. package/lib/cjs/components/CourseForm/UploadCourseCover.js +94 -0
  75. package/lib/cjs/components/CourseForm/constants.d.ts +1 -0
  76. package/lib/cjs/components/CourseForm/constants.js +4 -0
  77. package/lib/cjs/components/CourseForm/index.d.ts +4 -0
  78. package/lib/cjs/components/CourseForm/index.js +8 -0
  79. package/lib/cjs/components/CourseFormDialog/CourseFormDialog.d.ts +48 -0
  80. package/lib/cjs/components/CourseFormDialog/CourseFormDialog.js +67 -0
  81. package/lib/cjs/components/CourseFormDialog/constants.d.ts +1 -0
  82. package/lib/cjs/components/CourseFormDialog/constants.js +4 -0
  83. package/lib/cjs/components/CourseFormDialog/index.d.ts +3 -0
  84. package/lib/cjs/components/CourseFormDialog/index.js +5 -0
  85. package/lib/cjs/components/CourseJoinButton/CourseJoinButton.d.ts +56 -0
  86. package/lib/cjs/components/CourseJoinButton/CourseJoinButton.js +148 -0
  87. package/lib/cjs/components/CourseJoinButton/index.d.ts +3 -0
  88. package/lib/cjs/components/CourseJoinButton/index.js +5 -0
  89. package/lib/cjs/components/CourseParticipantsButton/CourseParticipantsButton.d.ts +53 -0
  90. package/lib/cjs/components/CourseParticipantsButton/CourseParticipantsButton.js +150 -0
  91. package/lib/cjs/components/CourseParticipantsButton/index.d.ts +3 -0
  92. package/lib/cjs/components/CourseParticipantsButton/index.js +5 -0
  93. package/lib/cjs/components/Courses/Courses.d.ts +100 -0
  94. package/lib/cjs/components/Courses/Courses.js +237 -0
  95. package/lib/cjs/components/Courses/Skeleton.d.ts +54 -0
  96. package/lib/cjs/components/Courses/Skeleton.js +45 -0
  97. package/lib/cjs/components/Courses/constants.d.ts +1 -0
  98. package/lib/cjs/components/Courses/constants.js +4 -0
  99. package/lib/cjs/components/Courses/index.d.ts +4 -0
  100. package/lib/cjs/components/Courses/index.js +8 -0
  101. package/lib/cjs/components/Courses/prefetchedCourses.d.ts +81 -0
  102. package/lib/cjs/components/Courses/prefetchedCourses.js +186 -0
  103. package/lib/cjs/components/CreateCourseButton/CreateCourseButton.d.ts +38 -0
  104. package/lib/cjs/components/CreateCourseButton/CreateCourseButton.js +81 -0
  105. package/lib/cjs/components/CreateCourseButton/index.d.ts +3 -0
  106. package/lib/cjs/components/CreateCourseButton/index.js +5 -0
  107. package/lib/cjs/components/CreateEventButton/CreateEventButton.d.ts +1 -1
  108. package/lib/cjs/components/CreateEventButton/CreateEventButton.js +1 -1
  109. package/lib/cjs/components/CreateLiveStreamButton/CreateLiveStreamButton.d.ts +0 -6
  110. package/lib/cjs/components/CreateLiveStreamButton/CreateLiveStreamButton.js +2 -9
  111. package/lib/cjs/components/CreateLiveStreamDialog/CreateLiveStreamDialog.d.ts +10 -4
  112. package/lib/cjs/components/CreateLiveStreamDialog/CreateLiveStreamDialog.js +17 -11
  113. package/lib/cjs/components/CreateLiveStreamDialog/LiveStreamSelector/LiveStreamSelector.js +10 -2
  114. package/lib/cjs/components/EditCourse/Customize.d.ts +9 -0
  115. package/lib/cjs/components/EditCourse/Customize.js +31 -0
  116. package/lib/cjs/components/EditCourse/EditCourse.d.ts +13 -0
  117. package/lib/cjs/components/EditCourse/EditCourse.js +110 -0
  118. package/lib/cjs/components/EditCourse/Lessons/AddButton.d.ts +9 -0
  119. package/lib/cjs/components/EditCourse/Lessons/AddButton.js +29 -0
  120. package/lib/cjs/components/EditCourse/Lessons/ChangeLessonStatus.d.ts +13 -0
  121. package/lib/cjs/components/EditCourse/Lessons/ChangeLessonStatus.js +92 -0
  122. package/lib/cjs/components/EditCourse/Lessons/FieldName.d.ts +15 -0
  123. package/lib/cjs/components/EditCourse/Lessons/FieldName.js +83 -0
  124. package/lib/cjs/components/EditCourse/Lessons/LessonRow.d.ts +15 -0
  125. package/lib/cjs/components/EditCourse/Lessons/LessonRow.js +68 -0
  126. package/lib/cjs/components/EditCourse/Lessons/SectionRow.d.ts +14 -0
  127. package/lib/cjs/components/EditCourse/Lessons/SectionRow.js +158 -0
  128. package/lib/cjs/components/EditCourse/Lessons/Skeleton.d.ts +1 -0
  129. package/lib/cjs/components/EditCourse/Lessons/Skeleton.js +20 -0
  130. package/lib/cjs/components/EditCourse/Lessons.d.ts +11 -0
  131. package/lib/cjs/components/EditCourse/Lessons.js +196 -0
  132. package/lib/cjs/components/EditCourse/MenuRow.d.ts +9 -0
  133. package/lib/cjs/components/EditCourse/MenuRow.js +25 -0
  134. package/lib/cjs/components/EditCourse/Options/Skeleton.d.ts +1 -0
  135. package/lib/cjs/components/EditCourse/Options/Skeleton.js +15 -0
  136. package/lib/cjs/components/EditCourse/Options/SwitchForm.d.ts +11 -0
  137. package/lib/cjs/components/EditCourse/Options/SwitchForm.js +20 -0
  138. package/lib/cjs/components/EditCourse/Options.d.ts +9 -0
  139. package/lib/cjs/components/EditCourse/Options.js +96 -0
  140. package/lib/cjs/components/EditCourse/Requests.d.ts +12 -0
  141. package/lib/cjs/components/EditCourse/Requests.js +97 -0
  142. package/lib/cjs/components/EditCourse/Skeleton.d.ts +8 -0
  143. package/lib/cjs/components/EditCourse/Skeleton.js +28 -0
  144. package/lib/cjs/components/EditCourse/Status.d.ts +9 -0
  145. package/lib/cjs/components/EditCourse/Status.js +33 -0
  146. package/lib/cjs/components/EditCourse/Users/Skeleton.d.ts +1 -0
  147. package/lib/cjs/components/EditCourse/Users/Skeleton.js +15 -0
  148. package/lib/cjs/components/EditCourse/Users.d.ts +11 -0
  149. package/lib/cjs/components/EditCourse/Users.js +140 -0
  150. package/lib/cjs/components/EditCourse/constants.d.ts +1 -0
  151. package/lib/cjs/components/EditCourse/constants.js +4 -0
  152. package/lib/cjs/components/EditCourse/hooks.d.ts +3 -0
  153. package/lib/cjs/components/EditCourse/hooks.js +22 -0
  154. package/lib/cjs/components/EditCourse/index.d.ts +4 -0
  155. package/lib/cjs/components/EditCourse/index.js +8 -0
  156. package/lib/cjs/components/EditCourse/types.d.ts +29 -0
  157. package/lib/cjs/components/EditCourse/types.js +19 -0
  158. package/lib/cjs/components/Editor/Editor.d.ts +37 -0
  159. package/lib/cjs/components/Editor/Editor.js +13 -10
  160. package/lib/cjs/components/Editor/nodes/HashtagNode.js +2 -0
  161. package/lib/cjs/components/Editor/nodes/MentionNode.js +2 -0
  162. package/lib/cjs/components/Editor/plugins/EmojiPlugin.d.ts +3 -1
  163. package/lib/cjs/components/Editor/plugins/EmojiPlugin.js +4 -10
  164. package/lib/cjs/components/Editor/plugins/HorizontalRulePlugin.d.ts +8 -0
  165. package/lib/cjs/components/Editor/plugins/HorizontalRulePlugin.js +34 -0
  166. package/lib/cjs/components/Editor/plugins/LexicalRichTextPlugin.d.ts +2 -2
  167. package/lib/cjs/components/Editor/plugins/LexicalRichTextPlugin.js +2 -3
  168. package/lib/cjs/components/Editor/plugins/MediaPlugin.d.ts +14 -0
  169. package/lib/cjs/components/Editor/plugins/MediaPlugin.js +121 -0
  170. package/lib/cjs/components/Editor/plugins/ToolbarPlugin.d.ts +5 -0
  171. package/lib/cjs/components/Editor/plugins/ToolbarPlugin.js +3 -2
  172. package/lib/cjs/components/Editor/plugins/index.d.ts +2 -1
  173. package/lib/cjs/components/Editor/plugins/index.js +3 -1
  174. package/lib/cjs/components/Event/Event.js +6 -3
  175. package/lib/cjs/components/EventForm/EventAddress.js +1 -1
  176. package/lib/cjs/components/EventForm/EventForm.js +41 -23
  177. package/lib/cjs/components/EventForm/utils.d.ts +1 -0
  178. package/lib/cjs/components/EventForm/utils.js +6 -1
  179. package/lib/cjs/components/EventFormDialog/EventFormDialog.d.ts +1 -1
  180. package/lib/cjs/components/EventFormDialog/EventFormDialog.js +3 -3
  181. package/lib/cjs/components/EventHeader/EventHeader.js +3 -2
  182. package/lib/cjs/components/EventMembersWidget/EventMembersWidget.js +12 -12
  183. package/lib/cjs/components/EventMembersWidget/TabContentComponent.js +8 -8
  184. package/lib/cjs/components/EventMembersWidget/types.d.ts +4 -5
  185. package/lib/cjs/components/EventMembersWidget/types.js +7 -7
  186. package/lib/cjs/components/EventParticipantsButton/EventParticipantsButton.js +1 -1
  187. package/lib/cjs/components/EventSubscribeButton/EventSubscribeButton.js +1 -1
  188. package/lib/cjs/components/Events/Events.d.ts +11 -0
  189. package/lib/cjs/components/Events/Events.js +21 -10
  190. package/lib/cjs/components/Events/OngoingEventsFilter.d.ts +8 -0
  191. package/lib/cjs/components/Events/OngoingEventsFilter.js +24 -0
  192. package/lib/cjs/components/FeedObject/Actions/Share/Share.js +4 -1
  193. package/lib/cjs/components/FeedObject/Activities/Activities.js +1 -1
  194. package/lib/cjs/components/Footer/Footer.js +9 -6
  195. package/lib/cjs/components/Footer/constants.d.ts +1 -0
  196. package/lib/cjs/components/Footer/constants.js +2 -1
  197. package/lib/cjs/components/GroupForm/GroupForm.js +2 -2
  198. package/lib/cjs/components/GroupInvitedWidget/GroupInvitedWidget.js +1 -1
  199. package/lib/cjs/components/GroupRequestsWidget/GroupRequestsWidget.js +1 -1
  200. package/lib/cjs/components/Groups/Groups.js +18 -16
  201. package/lib/cjs/components/LessonAppbar/LessonAppbar.d.ts +42 -0
  202. package/lib/cjs/components/LessonAppbar/LessonAppbar.js +34 -0
  203. package/lib/cjs/components/LessonAppbar/constants.d.ts +1 -0
  204. package/lib/cjs/components/LessonAppbar/constants.js +4 -0
  205. package/lib/cjs/components/LessonAppbar/index.d.ts +3 -0
  206. package/lib/cjs/components/LessonAppbar/index.js +5 -0
  207. package/lib/cjs/components/LessonCommentObject/LessonCommentObject.d.ts +94 -0
  208. package/lib/cjs/components/LessonCommentObject/LessonCommentObject.js +202 -0
  209. package/lib/cjs/components/LessonCommentObject/Skeleton.d.ts +21 -0
  210. package/lib/cjs/components/LessonCommentObject/Skeleton.js +46 -0
  211. package/lib/cjs/components/LessonCommentObject/constants.d.ts +1 -0
  212. package/lib/cjs/components/LessonCommentObject/constants.js +4 -0
  213. package/lib/cjs/components/LessonCommentObject/index.d.ts +4 -0
  214. package/lib/cjs/components/LessonCommentObject/index.js +8 -0
  215. package/lib/cjs/components/LessonCommentObjects/LessonCommentObjects.d.ts +76 -0
  216. package/lib/cjs/components/LessonCommentObjects/LessonCommentObjects.js +185 -0
  217. package/lib/cjs/components/LessonCommentObjects/Skeleton.d.ts +23 -0
  218. package/lib/cjs/components/LessonCommentObjects/Skeleton.js +40 -0
  219. package/lib/cjs/components/LessonCommentObjects/constants.d.ts +1 -0
  220. package/lib/cjs/components/LessonCommentObjects/constants.js +4 -0
  221. package/lib/cjs/components/LessonCommentObjects/index.d.ts +4 -0
  222. package/lib/cjs/components/LessonCommentObjects/index.js +8 -0
  223. package/lib/cjs/components/LessonDrawer/LessonDrawer.d.ts +50 -0
  224. package/lib/cjs/components/LessonDrawer/LessonDrawer.js +37 -0
  225. package/lib/cjs/components/LessonDrawer/constants.d.ts +1 -0
  226. package/lib/cjs/components/LessonDrawer/constants.js +4 -0
  227. package/lib/cjs/components/LessonDrawer/index.d.ts +3 -0
  228. package/lib/cjs/components/LessonDrawer/index.js +5 -0
  229. package/lib/cjs/components/LessonEditForm/LessonEditForm.d.ts +24 -0
  230. package/lib/cjs/components/LessonEditForm/LessonEditForm.js +45 -0
  231. package/lib/cjs/components/LessonEditForm/constants.d.ts +1 -0
  232. package/lib/cjs/components/LessonEditForm/constants.js +4 -0
  233. package/lib/cjs/components/LessonEditForm/index.d.ts +3 -0
  234. package/lib/cjs/components/LessonEditForm/index.js +5 -0
  235. package/lib/cjs/components/LessonObject/LessonObject.d.ts +40 -0
  236. package/lib/cjs/components/LessonObject/LessonObject.js +70 -0
  237. package/lib/cjs/components/LessonObject/constants.d.ts +1 -0
  238. package/lib/cjs/components/LessonObject/constants.js +4 -0
  239. package/lib/cjs/components/LessonObject/index.d.ts +3 -0
  240. package/lib/cjs/components/LessonObject/index.js +5 -0
  241. package/lib/cjs/components/LessonReleaseMenu/LessonReleaseMenu.d.ts +26 -0
  242. package/lib/cjs/components/LessonReleaseMenu/LessonReleaseMenu.js +172 -0
  243. package/lib/cjs/components/LessonReleaseMenu/constants.d.ts +5 -0
  244. package/lib/cjs/components/LessonReleaseMenu/constants.js +9 -0
  245. package/lib/cjs/components/LessonReleaseMenu/index.d.ts +3 -0
  246. package/lib/cjs/components/LessonReleaseMenu/index.js +5 -0
  247. package/lib/cjs/components/LiveStreamForm/LiveStreamForm.js +65 -6
  248. package/lib/cjs/components/LiveStreamForm/LiveStreamFormSettings.js +8 -3
  249. package/lib/cjs/components/LiveStreamRoom/LiveStreamRoom.js +8 -6
  250. package/lib/cjs/components/LiveStreamRoom/LiveStreamVideoConference/ControlBar.js +3 -1
  251. package/lib/cjs/components/LiveStreamRoom/LiveStreamVideoConference/FocusLayout.d.ts +2 -1
  252. package/lib/cjs/components/LiveStreamRoom/LiveStreamVideoConference/FocusLayout.js +2 -2
  253. package/lib/cjs/components/LiveStreamRoom/LiveStreamVideoConference/LiveStreamSettingsMenu.d.ts +9 -0
  254. package/lib/cjs/components/LiveStreamRoom/LiveStreamVideoConference/LiveStreamSettingsMenu.js +106 -0
  255. package/lib/cjs/components/LiveStreamRoom/LiveStreamVideoConference/NoParticipants.d.ts +4 -0
  256. package/lib/cjs/components/LiveStreamRoom/LiveStreamVideoConference/NoParticipants.js +37 -0
  257. package/lib/cjs/components/LiveStreamRoom/LiveStreamVideoConference/ParticipantTile.d.ts +1 -0
  258. package/lib/cjs/components/LiveStreamRoom/LiveStreamVideoConference/ParticipantTile.js +2 -2
  259. package/lib/cjs/components/LiveStreamRoom/LiveStreamVideoConference/PreJoin.d.ts +3 -2
  260. package/lib/cjs/components/LiveStreamRoom/LiveStreamVideoConference/PreJoin.js +45 -2
  261. package/lib/cjs/components/LiveStreamRoom/LiveStreamVideoConference/VideoConference.js +62 -5
  262. package/lib/cjs/components/NavigationMenuIconButton/DefaultDrawerContent.js +7 -5
  263. package/lib/cjs/components/NavigationMenuIconButton/NavigationMenuDrawer.d.ts +3 -1
  264. package/lib/cjs/components/NavigationMenuIconButton/NavigationMenuDrawer.js +13 -6
  265. package/lib/cjs/components/NavigationToolbar/NavigationToolbar.d.ts +1 -1
  266. package/lib/cjs/components/NavigationToolbar/NavigationToolbar.js +14 -3
  267. package/lib/cjs/components/NavigationToolbarMobile/NavigationToolbarMobile.d.ts +1 -1
  268. package/lib/cjs/components/NavigationToolbarMobile/NavigationToolbarMobile.js +4 -4
  269. package/lib/cjs/components/Notification/Course/Course.d.ts +15 -0
  270. package/lib/cjs/components/Notification/Course/Course.js +89 -0
  271. package/lib/cjs/components/Notification/Course/index.d.ts +3 -0
  272. package/lib/cjs/components/Notification/Course/index.js +5 -0
  273. package/lib/cjs/components/Notification/Course/utils.d.ts +5 -0
  274. package/lib/cjs/components/Notification/Course/utils.js +44 -0
  275. package/lib/cjs/components/Notification/Event/Event.js +20 -2
  276. package/lib/cjs/components/Notification/Notification.js +9 -0
  277. package/lib/cjs/components/RelatedEventsWidget/RelatedEventsWidget.js +1 -2
  278. package/lib/cjs/components/SearchDialog/SearchDialog.d.ts +4 -1
  279. package/lib/cjs/components/SearchDialog/SearchDialog.js +2 -2
  280. package/lib/cjs/components/SnippetNotifications/SnippetNotifications.js +9 -0
  281. package/lib/cjs/components/TagAutocomplete/TagAutocomplete.js +2 -2
  282. package/lib/cjs/components/ToastNotifications/ToastNotifications.js +9 -0
  283. package/lib/cjs/components/UserCreatedCoursesWidget/Skeleton.d.ts +21 -0
  284. package/lib/cjs/components/UserCreatedCoursesWidget/Skeleton.js +43 -0
  285. package/lib/cjs/components/UserCreatedCoursesWidget/UserCreatedCoursesWidget.d.ts +63 -0
  286. package/lib/cjs/components/UserCreatedCoursesWidget/UserCreatedCoursesWidget.js +154 -0
  287. package/lib/cjs/components/UserCreatedCoursesWidget/constants.d.ts +1 -0
  288. package/lib/cjs/components/UserCreatedCoursesWidget/constants.js +4 -0
  289. package/lib/cjs/components/UserCreatedCoursesWidget/index.d.ts +4 -0
  290. package/lib/cjs/components/UserCreatedCoursesWidget/index.js +8 -0
  291. package/lib/cjs/constants/Course.d.ts +6 -0
  292. package/lib/cjs/constants/Course.js +10 -0
  293. package/lib/cjs/constants/LiveStream.d.ts +1 -0
  294. package/lib/cjs/constants/LiveStream.js +2 -1
  295. package/lib/cjs/constants/PubSub.d.ts +14 -0
  296. package/lib/cjs/constants/PubSub.js +16 -1
  297. package/lib/cjs/index.d.ts +23 -2
  298. package/lib/cjs/index.js +60 -5
  299. package/lib/cjs/shared/AccordionLessons/AccordionLessons.d.ts +8 -0
  300. package/lib/cjs/shared/AccordionLessons/AccordionLessons.js +65 -0
  301. package/lib/cjs/shared/AccordionLessons/Skeleton.d.ts +1 -0
  302. package/lib/cjs/shared/AccordionLessons/Skeleton.js +21 -0
  303. package/lib/cjs/shared/AccordionLessons/constants.d.ts +1 -0
  304. package/lib/cjs/shared/AccordionLessons/constants.js +4 -0
  305. package/lib/cjs/shared/AccordionLessons/index.d.ts +4 -0
  306. package/lib/cjs/shared/AccordionLessons/index.js +8 -0
  307. package/lib/cjs/shared/AddUsersButton/AddUsersButton.d.ts +29 -0
  308. package/lib/cjs/shared/AddUsersButton/AddUsersButton.js +136 -0
  309. package/lib/cjs/shared/AddUsersButton/index.d.ts +3 -0
  310. package/lib/cjs/shared/AddUsersButton/index.js +5 -0
  311. package/lib/cjs/shared/CourseTypePopover/CourseTypePopover.d.ts +9 -0
  312. package/lib/cjs/shared/CourseTypePopover/CourseTypePopover.js +48 -0
  313. package/lib/cjs/shared/CourseTypePopover/index.d.ts +3 -0
  314. package/lib/cjs/shared/CourseTypePopover/index.js +5 -0
  315. package/lib/cjs/shared/CourseUsersTable/ChangeUsersStatus.d.ts +9 -0
  316. package/lib/cjs/shared/CourseUsersTable/ChangeUsersStatus.js +58 -0
  317. package/lib/cjs/shared/CourseUsersTable/CourseUsersTable.d.ts +21 -0
  318. package/lib/cjs/shared/CourseUsersTable/CourseUsersTable.js +155 -0
  319. package/lib/cjs/shared/CourseUsersTable/RemoveButton.d.ts +10 -0
  320. package/lib/cjs/shared/CourseUsersTable/RemoveButton.js +51 -0
  321. package/lib/cjs/shared/CourseUsersTable/RequestButton.d.ts +10 -0
  322. package/lib/cjs/shared/CourseUsersTable/RequestButton.js +79 -0
  323. package/lib/cjs/shared/CourseUsersTable/RowSkeleton.d.ts +8 -0
  324. package/lib/cjs/shared/CourseUsersTable/RowSkeleton.js +14 -0
  325. package/lib/cjs/shared/CourseUsersTable/SeeProgressButton.d.ts +9 -0
  326. package/lib/cjs/shared/CourseUsersTable/SeeProgressButton.js +56 -0
  327. package/lib/cjs/shared/CourseUsersTable/Skeleton.d.ts +1 -0
  328. package/lib/cjs/shared/CourseUsersTable/Skeleton.js +19 -0
  329. package/lib/cjs/shared/CourseUsersTable/constants.d.ts +1 -0
  330. package/lib/cjs/shared/CourseUsersTable/constants.js +4 -0
  331. package/lib/cjs/shared/CourseUsersTable/index.d.ts +4 -0
  332. package/lib/cjs/shared/CourseUsersTable/index.js +8 -0
  333. package/lib/cjs/shared/DateTimeAgo/index.d.ts +1 -1
  334. package/lib/cjs/shared/EmptyStatus/EmptyStatus.d.ts +11 -0
  335. package/lib/cjs/shared/EmptyStatus/EmptyStatus.js +26 -0
  336. package/lib/cjs/shared/EmptyStatus/index.d.ts +3 -0
  337. package/lib/cjs/shared/EmptyStatus/index.js +5 -0
  338. package/lib/cjs/shared/EventActionsMenu/index.js +5 -1
  339. package/lib/cjs/shared/LessonCommentActionsMenu/index.d.ts +41 -0
  340. package/lib/cjs/shared/LessonCommentActionsMenu/index.js +197 -0
  341. package/lib/cjs/shared/LessonFilePreview/index.d.ts +12 -0
  342. package/lib/cjs/shared/LessonFilePreview/index.js +29 -0
  343. package/lib/cjs/shared/Media/Link/UrlTextField/index.js +2 -3
  344. package/lib/cjs/shared/UpScalingTierBadge/index.js +9 -0
  345. package/lib/cjs/types/course.d.ts +40 -0
  346. package/lib/cjs/types/course.js +33 -0
  347. package/lib/cjs/types/index.d.ts +2 -1
  348. package/lib/cjs/types/index.js +6 -1
  349. package/lib/cjs/utils/buttonCounters.d.ts +1 -0
  350. package/lib/cjs/utils/buttonCounters.js +4 -3
  351. package/lib/cjs/utils/course.d.ts +14 -0
  352. package/lib/cjs/utils/course.js +39 -0
  353. package/lib/cjs/utils/events.d.ts +1 -0
  354. package/lib/cjs/utils/events.js +6 -1
  355. package/lib/esm/assets/courses/clapping.d.ts +1 -0
  356. package/lib/esm/assets/courses/clapping.js +1 -0
  357. package/lib/esm/components/BottomNavigation/BottomNavigation.js +17 -2
  358. package/lib/esm/components/CategoryAutocomplete/CategoryAutocomplete.d.ts +5 -0
  359. package/lib/esm/components/CategoryAutocomplete/CategoryAutocomplete.js +9 -11
  360. package/lib/esm/components/CommentObject/CommentObject.d.ts +5 -0
  361. package/lib/esm/components/CommentObject/CommentObject.js +2 -2
  362. package/lib/esm/components/CommentObjectReply/CommentObjectReply.d.ts +24 -2
  363. package/lib/esm/components/CommentObjectReply/CommentObjectReply.js +18 -5
  364. package/lib/esm/components/Composer/Content/ContentLesson/ContentLesson.d.ts +38 -0
  365. package/lib/esm/components/Composer/Content/ContentLesson/ContentLesson.js +64 -0
  366. package/lib/esm/components/Composer/Content/ContentLesson/index.d.ts +3 -0
  367. package/lib/esm/components/Composer/Content/ContentLesson/index.js +2 -0
  368. package/lib/esm/components/Composer/Layer/AudienceLayer/AudienceLayer.js +2 -2
  369. package/lib/esm/components/Composer/Layer/CategoryLayer/CategoryLayer.d.ts +1 -1
  370. package/lib/esm/components/Composer/Layer/CategoryLayer/CategoryLayer.js +4 -1
  371. package/lib/esm/components/ComposerIconButton/ComposerIconButton.d.ts +9 -3
  372. package/lib/esm/components/ComposerIconButton/ComposerIconButton.js +47 -10
  373. package/lib/esm/components/Course/Course.d.ts +92 -0
  374. package/lib/esm/components/Course/Course.js +182 -0
  375. package/lib/esm/components/Course/CreatePlaceholder.d.ts +39 -0
  376. package/lib/esm/components/Course/CreatePlaceholder.js +56 -0
  377. package/lib/esm/components/Course/Skeleton.d.ts +51 -0
  378. package/lib/esm/components/Course/Skeleton.js +74 -0
  379. package/lib/esm/components/Course/constants.d.ts +1 -0
  380. package/lib/esm/components/Course/constants.js +1 -0
  381. package/lib/esm/components/Course/index.d.ts +4 -0
  382. package/lib/esm/components/Course/index.js +4 -0
  383. package/lib/esm/components/CourseCompletedDialog/CourseCompletedDialog.d.ts +9 -0
  384. package/lib/esm/components/CourseCompletedDialog/CourseCompletedDialog.js +37 -0
  385. package/lib/esm/components/CourseCompletedDialog/index.d.ts +3 -0
  386. package/lib/esm/components/CourseCompletedDialog/index.js +2 -0
  387. package/lib/esm/components/CourseContentMenu/CourseContentMenu.d.ts +25 -0
  388. package/lib/esm/components/CourseContentMenu/CourseContentMenu.js +44 -0
  389. package/lib/esm/components/CourseContentMenu/constants.d.ts +1 -0
  390. package/lib/esm/components/CourseContentMenu/constants.js +1 -0
  391. package/lib/esm/components/CourseContentMenu/index.d.ts +3 -0
  392. package/lib/esm/components/CourseContentMenu/index.js +2 -0
  393. package/lib/esm/components/CourseDashboard/Header/Skeleton.d.ts +1 -0
  394. package/lib/esm/components/CourseDashboard/Header/Skeleton.js +13 -0
  395. package/lib/esm/components/CourseDashboard/Header.d.ts +9 -0
  396. package/lib/esm/components/CourseDashboard/Header.js +41 -0
  397. package/lib/esm/components/CourseDashboard/Student/ActionButton.d.ts +8 -0
  398. package/lib/esm/components/CourseDashboard/Student/ActionButton.js +13 -0
  399. package/lib/esm/components/CourseDashboard/Student/Skeleton.d.ts +1 -0
  400. package/lib/esm/components/CourseDashboard/Student/Skeleton.js +26 -0
  401. package/lib/esm/components/CourseDashboard/Student.d.ts +11 -0
  402. package/lib/esm/components/CourseDashboard/Student.js +201 -0
  403. package/lib/esm/components/CourseDashboard/Teacher/Comments.d.ts +9 -0
  404. package/lib/esm/components/CourseDashboard/Teacher/Comments.js +106 -0
  405. package/lib/esm/components/CourseDashboard/Teacher/Info.d.ts +11 -0
  406. package/lib/esm/components/CourseDashboard/Teacher/Info.js +16 -0
  407. package/lib/esm/components/CourseDashboard/Teacher/Skeleton.d.ts +1 -0
  408. package/lib/esm/components/CourseDashboard/Teacher/Skeleton.js +21 -0
  409. package/lib/esm/components/CourseDashboard/Teacher/Students.d.ts +10 -0
  410. package/lib/esm/components/CourseDashboard/Teacher/Students.js +68 -0
  411. package/lib/esm/components/CourseDashboard/Teacher.d.ts +11 -0
  412. package/lib/esm/components/CourseDashboard/Teacher.js +60 -0
  413. package/lib/esm/components/CourseDashboard/constants.d.ts +1 -0
  414. package/lib/esm/components/CourseDashboard/constants.js +1 -0
  415. package/lib/esm/components/CourseDashboard/index.d.ts +11 -0
  416. package/lib/esm/components/CourseDashboard/index.js +6 -0
  417. package/lib/esm/components/CourseDashboard/types.d.ts +8 -0
  418. package/lib/esm/components/CourseDashboard/types.js +10 -0
  419. package/lib/esm/components/CourseForm/CourseForm.d.ts +74 -0
  420. package/lib/esm/components/CourseForm/CourseForm.js +270 -0
  421. package/lib/esm/components/CourseForm/Dialog.d.ts +8 -0
  422. package/lib/esm/components/CourseForm/Dialog.js +16 -0
  423. package/lib/esm/components/CourseForm/Edit.d.ts +24 -0
  424. package/lib/esm/components/CourseForm/Edit.js +50 -0
  425. package/lib/esm/components/CourseForm/Skeleton.d.ts +1 -0
  426. package/lib/esm/components/CourseForm/Skeleton.js +14 -0
  427. package/lib/esm/components/CourseForm/UploadCourseCover.d.ts +45 -0
  428. package/lib/esm/components/CourseForm/UploadCourseCover.js +91 -0
  429. package/lib/esm/components/CourseForm/constants.d.ts +1 -0
  430. package/lib/esm/components/CourseForm/constants.js +1 -0
  431. package/lib/esm/components/CourseForm/index.d.ts +4 -0
  432. package/lib/esm/components/CourseForm/index.js +4 -0
  433. package/lib/esm/components/CourseFormDialog/CourseFormDialog.d.ts +48 -0
  434. package/lib/esm/components/CourseFormDialog/CourseFormDialog.js +64 -0
  435. package/lib/esm/components/CourseFormDialog/constants.d.ts +1 -0
  436. package/lib/esm/components/CourseFormDialog/constants.js +1 -0
  437. package/lib/esm/components/CourseFormDialog/index.d.ts +3 -0
  438. package/lib/esm/components/CourseFormDialog/index.js +2 -0
  439. package/lib/esm/components/CourseJoinButton/CourseJoinButton.d.ts +56 -0
  440. package/lib/esm/components/CourseJoinButton/CourseJoinButton.js +145 -0
  441. package/lib/esm/components/CourseJoinButton/index.d.ts +3 -0
  442. package/lib/esm/components/CourseJoinButton/index.js +2 -0
  443. package/lib/esm/components/CourseParticipantsButton/CourseParticipantsButton.d.ts +53 -0
  444. package/lib/esm/components/CourseParticipantsButton/CourseParticipantsButton.js +147 -0
  445. package/lib/esm/components/CourseParticipantsButton/index.d.ts +3 -0
  446. package/lib/esm/components/CourseParticipantsButton/index.js +2 -0
  447. package/lib/esm/components/Courses/Courses.d.ts +100 -0
  448. package/lib/esm/components/Courses/Courses.js +233 -0
  449. package/lib/esm/components/Courses/Skeleton.d.ts +54 -0
  450. package/lib/esm/components/Courses/Skeleton.js +42 -0
  451. package/lib/esm/components/Courses/constants.d.ts +1 -0
  452. package/lib/esm/components/Courses/constants.js +1 -0
  453. package/lib/esm/components/Courses/index.d.ts +4 -0
  454. package/lib/esm/components/Courses/index.js +4 -0
  455. package/lib/esm/components/Courses/prefetchedCourses.d.ts +81 -0
  456. package/lib/esm/components/Courses/prefetchedCourses.js +183 -0
  457. package/lib/esm/components/CreateCourseButton/CreateCourseButton.d.ts +38 -0
  458. package/lib/esm/components/CreateCourseButton/CreateCourseButton.js +78 -0
  459. package/lib/esm/components/CreateCourseButton/index.d.ts +3 -0
  460. package/lib/esm/components/CreateCourseButton/index.js +2 -0
  461. package/lib/esm/components/CreateEventButton/CreateEventButton.d.ts +1 -1
  462. package/lib/esm/components/CreateEventButton/CreateEventButton.js +1 -1
  463. package/lib/esm/components/CreateLiveStreamButton/CreateLiveStreamButton.d.ts +0 -6
  464. package/lib/esm/components/CreateLiveStreamButton/CreateLiveStreamButton.js +2 -9
  465. package/lib/esm/components/CreateLiveStreamDialog/CreateLiveStreamDialog.d.ts +10 -4
  466. package/lib/esm/components/CreateLiveStreamDialog/CreateLiveStreamDialog.js +17 -11
  467. package/lib/esm/components/CreateLiveStreamDialog/LiveStreamSelector/LiveStreamSelector.js +12 -4
  468. package/lib/esm/components/EditCourse/Customize.d.ts +9 -0
  469. package/lib/esm/components/EditCourse/Customize.js +28 -0
  470. package/lib/esm/components/EditCourse/EditCourse.d.ts +13 -0
  471. package/lib/esm/components/EditCourse/EditCourse.js +107 -0
  472. package/lib/esm/components/EditCourse/Lessons/AddButton.d.ts +9 -0
  473. package/lib/esm/components/EditCourse/Lessons/AddButton.js +27 -0
  474. package/lib/esm/components/EditCourse/Lessons/ChangeLessonStatus.d.ts +13 -0
  475. package/lib/esm/components/EditCourse/Lessons/ChangeLessonStatus.js +89 -0
  476. package/lib/esm/components/EditCourse/Lessons/FieldName.d.ts +15 -0
  477. package/lib/esm/components/EditCourse/Lessons/FieldName.js +80 -0
  478. package/lib/esm/components/EditCourse/Lessons/LessonRow.d.ts +15 -0
  479. package/lib/esm/components/EditCourse/Lessons/LessonRow.js +65 -0
  480. package/lib/esm/components/EditCourse/Lessons/SectionRow.d.ts +14 -0
  481. package/lib/esm/components/EditCourse/Lessons/SectionRow.js +155 -0
  482. package/lib/esm/components/EditCourse/Lessons/Skeleton.d.ts +1 -0
  483. package/lib/esm/components/EditCourse/Lessons/Skeleton.js +17 -0
  484. package/lib/esm/components/EditCourse/Lessons.d.ts +11 -0
  485. package/lib/esm/components/EditCourse/Lessons.js +193 -0
  486. package/lib/esm/components/EditCourse/MenuRow.d.ts +9 -0
  487. package/lib/esm/components/EditCourse/MenuRow.js +22 -0
  488. package/lib/esm/components/EditCourse/Options/Skeleton.d.ts +1 -0
  489. package/lib/esm/components/EditCourse/Options/Skeleton.js +12 -0
  490. package/lib/esm/components/EditCourse/Options/SwitchForm.d.ts +11 -0
  491. package/lib/esm/components/EditCourse/Options/SwitchForm.js +18 -0
  492. package/lib/esm/components/EditCourse/Options.d.ts +9 -0
  493. package/lib/esm/components/EditCourse/Options.js +93 -0
  494. package/lib/esm/components/EditCourse/Requests.d.ts +12 -0
  495. package/lib/esm/components/EditCourse/Requests.js +94 -0
  496. package/lib/esm/components/EditCourse/Skeleton.d.ts +8 -0
  497. package/lib/esm/components/EditCourse/Skeleton.js +25 -0
  498. package/lib/esm/components/EditCourse/Status.d.ts +9 -0
  499. package/lib/esm/components/EditCourse/Status.js +29 -0
  500. package/lib/esm/components/EditCourse/Users/Skeleton.d.ts +1 -0
  501. package/lib/esm/components/EditCourse/Users/Skeleton.js +12 -0
  502. package/lib/esm/components/EditCourse/Users.d.ts +11 -0
  503. package/lib/esm/components/EditCourse/Users.js +137 -0
  504. package/lib/esm/components/EditCourse/constants.d.ts +1 -0
  505. package/lib/esm/components/EditCourse/constants.js +1 -0
  506. package/lib/esm/components/EditCourse/hooks.d.ts +3 -0
  507. package/lib/esm/components/EditCourse/hooks.js +17 -0
  508. package/lib/esm/components/EditCourse/index.d.ts +4 -0
  509. package/lib/esm/components/EditCourse/index.js +4 -0
  510. package/lib/esm/components/EditCourse/types.d.ts +29 -0
  511. package/lib/esm/components/EditCourse/types.js +16 -0
  512. package/lib/esm/components/Editor/Editor.d.ts +37 -0
  513. package/lib/esm/components/Editor/Editor.js +14 -11
  514. package/lib/esm/components/Editor/nodes/HashtagNode.js +2 -0
  515. package/lib/esm/components/Editor/nodes/MentionNode.js +2 -0
  516. package/lib/esm/components/Editor/plugins/EmojiPlugin.d.ts +3 -1
  517. package/lib/esm/components/Editor/plugins/EmojiPlugin.js +4 -10
  518. package/lib/esm/components/Editor/plugins/HorizontalRulePlugin.d.ts +8 -0
  519. package/lib/esm/components/Editor/plugins/HorizontalRulePlugin.js +30 -0
  520. package/lib/esm/components/Editor/plugins/LexicalRichTextPlugin.d.ts +2 -2
  521. package/lib/esm/components/Editor/plugins/LexicalRichTextPlugin.js +1 -1
  522. package/lib/esm/components/Editor/plugins/MediaPlugin.d.ts +14 -0
  523. package/lib/esm/components/Editor/plugins/MediaPlugin.js +117 -0
  524. package/lib/esm/components/Editor/plugins/ToolbarPlugin.d.ts +5 -0
  525. package/lib/esm/components/Editor/plugins/ToolbarPlugin.js +3 -2
  526. package/lib/esm/components/Editor/plugins/index.d.ts +2 -1
  527. package/lib/esm/components/Editor/plugins/index.js +2 -1
  528. package/lib/esm/components/Event/Event.js +6 -3
  529. package/lib/esm/components/EventForm/EventAddress.js +1 -1
  530. package/lib/esm/components/EventForm/EventForm.js +43 -25
  531. package/lib/esm/components/EventForm/utils.d.ts +1 -0
  532. package/lib/esm/components/EventForm/utils.js +4 -0
  533. package/lib/esm/components/EventFormDialog/EventFormDialog.d.ts +1 -1
  534. package/lib/esm/components/EventFormDialog/EventFormDialog.js +3 -3
  535. package/lib/esm/components/EventHeader/EventHeader.js +3 -2
  536. package/lib/esm/components/EventMembersWidget/EventMembersWidget.js +14 -14
  537. package/lib/esm/components/EventMembersWidget/TabContentComponent.js +9 -9
  538. package/lib/esm/components/EventMembersWidget/types.d.ts +4 -5
  539. package/lib/esm/components/EventMembersWidget/types.js +6 -6
  540. package/lib/esm/components/EventParticipantsButton/EventParticipantsButton.js +1 -1
  541. package/lib/esm/components/EventSubscribeButton/EventSubscribeButton.js +1 -1
  542. package/lib/esm/components/Events/Events.d.ts +11 -0
  543. package/lib/esm/components/Events/Events.js +22 -11
  544. package/lib/esm/components/Events/OngoingEventsFilter.d.ts +8 -0
  545. package/lib/esm/components/Events/OngoingEventsFilter.js +21 -0
  546. package/lib/esm/components/FeedObject/Actions/Share/Share.js +4 -1
  547. package/lib/esm/components/FeedObject/Activities/Activities.js +1 -1
  548. package/lib/esm/components/Footer/Footer.js +10 -7
  549. package/lib/esm/components/Footer/constants.d.ts +1 -0
  550. package/lib/esm/components/Footer/constants.js +1 -0
  551. package/lib/esm/components/GroupForm/GroupForm.js +2 -2
  552. package/lib/esm/components/GroupInvitedWidget/GroupInvitedWidget.js +1 -1
  553. package/lib/esm/components/GroupRequestsWidget/GroupRequestsWidget.js +1 -1
  554. package/lib/esm/components/Groups/Groups.js +21 -19
  555. package/lib/esm/components/LessonAppbar/LessonAppbar.d.ts +42 -0
  556. package/lib/esm/components/LessonAppbar/LessonAppbar.js +31 -0
  557. package/lib/esm/components/LessonAppbar/constants.d.ts +1 -0
  558. package/lib/esm/components/LessonAppbar/constants.js +1 -0
  559. package/lib/esm/components/LessonAppbar/index.d.ts +3 -0
  560. package/lib/esm/components/LessonAppbar/index.js +2 -0
  561. package/lib/esm/components/LessonCommentObject/LessonCommentObject.d.ts +94 -0
  562. package/lib/esm/components/LessonCommentObject/LessonCommentObject.js +199 -0
  563. package/lib/esm/components/LessonCommentObject/Skeleton.d.ts +21 -0
  564. package/lib/esm/components/LessonCommentObject/Skeleton.js +43 -0
  565. package/lib/esm/components/LessonCommentObject/constants.d.ts +1 -0
  566. package/lib/esm/components/LessonCommentObject/constants.js +1 -0
  567. package/lib/esm/components/LessonCommentObject/index.d.ts +4 -0
  568. package/lib/esm/components/LessonCommentObject/index.js +4 -0
  569. package/lib/esm/components/LessonCommentObjects/LessonCommentObjects.d.ts +76 -0
  570. package/lib/esm/components/LessonCommentObjects/LessonCommentObjects.js +182 -0
  571. package/lib/esm/components/LessonCommentObjects/Skeleton.d.ts +23 -0
  572. package/lib/esm/components/LessonCommentObjects/Skeleton.js +37 -0
  573. package/lib/esm/components/LessonCommentObjects/constants.d.ts +1 -0
  574. package/lib/esm/components/LessonCommentObjects/constants.js +1 -0
  575. package/lib/esm/components/LessonCommentObjects/index.d.ts +4 -0
  576. package/lib/esm/components/LessonCommentObjects/index.js +4 -0
  577. package/lib/esm/components/LessonDrawer/LessonDrawer.d.ts +50 -0
  578. package/lib/esm/components/LessonDrawer/LessonDrawer.js +34 -0
  579. package/lib/esm/components/LessonDrawer/constants.d.ts +1 -0
  580. package/lib/esm/components/LessonDrawer/constants.js +1 -0
  581. package/lib/esm/components/LessonDrawer/index.d.ts +3 -0
  582. package/lib/esm/components/LessonDrawer/index.js +2 -0
  583. package/lib/esm/components/LessonEditForm/LessonEditForm.d.ts +24 -0
  584. package/lib/esm/components/LessonEditForm/LessonEditForm.js +42 -0
  585. package/lib/esm/components/LessonEditForm/constants.d.ts +1 -0
  586. package/lib/esm/components/LessonEditForm/constants.js +1 -0
  587. package/lib/esm/components/LessonEditForm/index.d.ts +3 -0
  588. package/lib/esm/components/LessonEditForm/index.js +2 -0
  589. package/lib/esm/components/LessonObject/LessonObject.d.ts +40 -0
  590. package/lib/esm/components/LessonObject/LessonObject.js +67 -0
  591. package/lib/esm/components/LessonObject/constants.d.ts +1 -0
  592. package/lib/esm/components/LessonObject/constants.js +1 -0
  593. package/lib/esm/components/LessonObject/index.d.ts +3 -0
  594. package/lib/esm/components/LessonObject/index.js +2 -0
  595. package/lib/esm/components/LessonReleaseMenu/LessonReleaseMenu.d.ts +26 -0
  596. package/lib/esm/components/LessonReleaseMenu/LessonReleaseMenu.js +169 -0
  597. package/lib/esm/components/LessonReleaseMenu/constants.d.ts +5 -0
  598. package/lib/esm/components/LessonReleaseMenu/constants.js +6 -0
  599. package/lib/esm/components/LessonReleaseMenu/index.d.ts +3 -0
  600. package/lib/esm/components/LessonReleaseMenu/index.js +2 -0
  601. package/lib/esm/components/LiveStreamForm/LiveStreamForm.js +67 -8
  602. package/lib/esm/components/LiveStreamForm/LiveStreamFormSettings.js +8 -3
  603. package/lib/esm/components/LiveStreamRoom/LiveStreamRoom.js +8 -6
  604. package/lib/esm/components/LiveStreamRoom/LiveStreamVideoConference/ControlBar.js +3 -1
  605. package/lib/esm/components/LiveStreamRoom/LiveStreamVideoConference/FocusLayout.d.ts +2 -1
  606. package/lib/esm/components/LiveStreamRoom/LiveStreamVideoConference/FocusLayout.js +2 -2
  607. package/lib/esm/components/LiveStreamRoom/LiveStreamVideoConference/LiveStreamSettingsMenu.d.ts +9 -0
  608. package/lib/esm/components/LiveStreamRoom/LiveStreamVideoConference/LiveStreamSettingsMenu.js +103 -0
  609. package/lib/esm/components/LiveStreamRoom/LiveStreamVideoConference/NoParticipants.d.ts +4 -0
  610. package/lib/esm/components/LiveStreamRoom/LiveStreamVideoConference/NoParticipants.js +34 -0
  611. package/lib/esm/components/LiveStreamRoom/LiveStreamVideoConference/ParticipantTile.d.ts +1 -0
  612. package/lib/esm/components/LiveStreamRoom/LiveStreamVideoConference/ParticipantTile.js +2 -2
  613. package/lib/esm/components/LiveStreamRoom/LiveStreamVideoConference/PreJoin.d.ts +3 -2
  614. package/lib/esm/components/LiveStreamRoom/LiveStreamVideoConference/PreJoin.js +45 -2
  615. package/lib/esm/components/LiveStreamRoom/LiveStreamVideoConference/VideoConference.js +66 -9
  616. package/lib/esm/components/NavigationMenuIconButton/DefaultDrawerContent.js +9 -7
  617. package/lib/esm/components/NavigationMenuIconButton/NavigationMenuDrawer.d.ts +3 -1
  618. package/lib/esm/components/NavigationMenuIconButton/NavigationMenuDrawer.js +13 -6
  619. package/lib/esm/components/NavigationToolbar/NavigationToolbar.d.ts +1 -1
  620. package/lib/esm/components/NavigationToolbar/NavigationToolbar.js +14 -3
  621. package/lib/esm/components/NavigationToolbarMobile/NavigationToolbarMobile.d.ts +1 -1
  622. package/lib/esm/components/NavigationToolbarMobile/NavigationToolbarMobile.js +4 -4
  623. package/lib/esm/components/Notification/Course/Course.d.ts +15 -0
  624. package/lib/esm/components/Notification/Course/Course.js +86 -0
  625. package/lib/esm/components/Notification/Course/index.d.ts +3 -0
  626. package/lib/esm/components/Notification/Course/index.js +2 -0
  627. package/lib/esm/components/Notification/Course/utils.d.ts +5 -0
  628. package/lib/esm/components/Notification/Course/utils.js +39 -0
  629. package/lib/esm/components/Notification/Event/Event.js +21 -3
  630. package/lib/esm/components/Notification/Notification.js +9 -0
  631. package/lib/esm/components/RelatedEventsWidget/RelatedEventsWidget.js +1 -2
  632. package/lib/esm/components/SearchDialog/SearchDialog.d.ts +4 -1
  633. package/lib/esm/components/SearchDialog/SearchDialog.js +2 -2
  634. package/lib/esm/components/SnippetNotifications/SnippetNotifications.js +9 -0
  635. package/lib/esm/components/TagAutocomplete/TagAutocomplete.js +2 -2
  636. package/lib/esm/components/ToastNotifications/ToastNotifications.js +9 -0
  637. package/lib/esm/components/UserCreatedCoursesWidget/Skeleton.d.ts +21 -0
  638. package/lib/esm/components/UserCreatedCoursesWidget/Skeleton.js +39 -0
  639. package/lib/esm/components/UserCreatedCoursesWidget/UserCreatedCoursesWidget.d.ts +63 -0
  640. package/lib/esm/components/UserCreatedCoursesWidget/UserCreatedCoursesWidget.js +151 -0
  641. package/lib/esm/components/UserCreatedCoursesWidget/constants.d.ts +1 -0
  642. package/lib/esm/components/UserCreatedCoursesWidget/constants.js +1 -0
  643. package/lib/esm/components/UserCreatedCoursesWidget/index.d.ts +4 -0
  644. package/lib/esm/components/UserCreatedCoursesWidget/index.js +4 -0
  645. package/lib/esm/constants/Course.d.ts +6 -0
  646. package/lib/esm/constants/Course.js +7 -0
  647. package/lib/esm/constants/LiveStream.d.ts +1 -0
  648. package/lib/esm/constants/LiveStream.js +1 -0
  649. package/lib/esm/constants/PubSub.d.ts +14 -0
  650. package/lib/esm/constants/PubSub.js +15 -0
  651. package/lib/esm/index.d.ts +23 -2
  652. package/lib/esm/index.js +26 -5
  653. package/lib/esm/shared/AccordionLessons/AccordionLessons.d.ts +8 -0
  654. package/lib/esm/shared/AccordionLessons/AccordionLessons.js +61 -0
  655. package/lib/esm/shared/AccordionLessons/Skeleton.d.ts +1 -0
  656. package/lib/esm/shared/AccordionLessons/Skeleton.js +18 -0
  657. package/lib/esm/shared/AccordionLessons/constants.d.ts +1 -0
  658. package/lib/esm/shared/AccordionLessons/constants.js +1 -0
  659. package/lib/esm/shared/AccordionLessons/index.d.ts +4 -0
  660. package/lib/esm/shared/AccordionLessons/index.js +4 -0
  661. package/lib/esm/shared/AddUsersButton/AddUsersButton.d.ts +29 -0
  662. package/lib/esm/shared/AddUsersButton/AddUsersButton.js +134 -0
  663. package/lib/esm/shared/AddUsersButton/index.d.ts +3 -0
  664. package/lib/esm/shared/AddUsersButton/index.js +2 -0
  665. package/lib/esm/shared/CourseTypePopover/CourseTypePopover.d.ts +9 -0
  666. package/lib/esm/shared/CourseTypePopover/CourseTypePopover.js +45 -0
  667. package/lib/esm/shared/CourseTypePopover/index.d.ts +3 -0
  668. package/lib/esm/shared/CourseTypePopover/index.js +2 -0
  669. package/lib/esm/shared/CourseUsersTable/ChangeUsersStatus.d.ts +9 -0
  670. package/lib/esm/shared/CourseUsersTable/ChangeUsersStatus.js +56 -0
  671. package/lib/esm/shared/CourseUsersTable/CourseUsersTable.d.ts +21 -0
  672. package/lib/esm/shared/CourseUsersTable/CourseUsersTable.js +152 -0
  673. package/lib/esm/shared/CourseUsersTable/RemoveButton.d.ts +10 -0
  674. package/lib/esm/shared/CourseUsersTable/RemoveButton.js +48 -0
  675. package/lib/esm/shared/CourseUsersTable/RequestButton.d.ts +10 -0
  676. package/lib/esm/shared/CourseUsersTable/RequestButton.js +76 -0
  677. package/lib/esm/shared/CourseUsersTable/RowSkeleton.d.ts +8 -0
  678. package/lib/esm/shared/CourseUsersTable/RowSkeleton.js +11 -0
  679. package/lib/esm/shared/CourseUsersTable/SeeProgressButton.d.ts +9 -0
  680. package/lib/esm/shared/CourseUsersTable/SeeProgressButton.js +53 -0
  681. package/lib/esm/shared/CourseUsersTable/Skeleton.d.ts +1 -0
  682. package/lib/esm/shared/CourseUsersTable/Skeleton.js +15 -0
  683. package/lib/esm/shared/CourseUsersTable/constants.d.ts +1 -0
  684. package/lib/esm/shared/CourseUsersTable/constants.js +1 -0
  685. package/lib/esm/shared/CourseUsersTable/index.d.ts +4 -0
  686. package/lib/esm/shared/CourseUsersTable/index.js +4 -0
  687. package/lib/esm/shared/DateTimeAgo/index.d.ts +1 -1
  688. package/lib/esm/shared/EmptyStatus/EmptyStatus.d.ts +11 -0
  689. package/lib/esm/shared/EmptyStatus/EmptyStatus.js +23 -0
  690. package/lib/esm/shared/EmptyStatus/index.d.ts +3 -0
  691. package/lib/esm/shared/EmptyStatus/index.js +2 -0
  692. package/lib/esm/shared/EventActionsMenu/index.js +6 -2
  693. package/lib/esm/shared/LessonCommentActionsMenu/index.d.ts +41 -0
  694. package/lib/esm/shared/LessonCommentActionsMenu/index.js +194 -0
  695. package/lib/esm/shared/LessonFilePreview/index.d.ts +12 -0
  696. package/lib/esm/shared/LessonFilePreview/index.js +25 -0
  697. package/lib/esm/shared/Media/Link/UrlTextField/index.js +3 -4
  698. package/lib/esm/shared/UpScalingTierBadge/index.js +9 -0
  699. package/lib/esm/types/course.d.ts +40 -0
  700. package/lib/esm/types/course.js +30 -0
  701. package/lib/esm/types/index.d.ts +2 -1
  702. package/lib/esm/types/index.js +2 -1
  703. package/lib/esm/utils/buttonCounters.d.ts +1 -0
  704. package/lib/esm/utils/buttonCounters.js +3 -2
  705. package/lib/esm/utils/course.d.ts +14 -0
  706. package/lib/esm/utils/course.js +32 -0
  707. package/lib/esm/utils/events.d.ts +1 -0
  708. package/lib/esm/utils/events.js +4 -0
  709. package/lib/umd/578.js +2 -0
  710. package/lib/umd/60a7fdeaadfe844bc015.woff2 +0 -0
  711. package/lib/umd/assets/icons.svg +9 -3
  712. package/lib/umd/{c3528e120c4e831db2ae.woff → b6dbec3d5816ff8baef1.woff} +0 -0
  713. package/lib/umd/{2aa155858f48b8f3911a.eot → ba74e493633796d551d1.ttf} +0 -0
  714. package/lib/umd/{a221d3aba0f6753cfbb7.ttf → c473ce30406a3dad83e1.eot} +0 -0
  715. package/lib/umd/react-ui.js +1 -1
  716. package/package.json +16 -14
  717. package/lib/umd/36f3af7f155d916c26ff.woff2 +0 -0
  718. package/lib/umd/653.js +0 -2
  719. /package/lib/umd/{653.js.LICENSE.txt → 578.js.LICENSE.txt} +0 -0
@@ -4,7 +4,7 @@ import { useState } from 'react';
4
4
  import { styled } from '@mui/material/styles';
5
5
  import { Avatar, Box, Icon, Stack, Typography } from '@mui/material';
6
6
  import { Link, SCRoutes, useSCRouting } from '@selfcommunity/react-core';
7
- import { SCEventLocationType } from '@selfcommunity/types';
7
+ import { SCEventLocationType, SCEventSubscriptionStatusType, SCNotificationTypologyType } from '@selfcommunity/types';
8
8
  import { FormattedMessage, useIntl } from 'react-intl';
9
9
  import DateTimeAgo from '../../../shared/DateTimeAgo';
10
10
  import classNames from 'classnames';
@@ -15,6 +15,7 @@ import UserDeletedSnackBar from '../../../shared/UserDeletedSnackBar';
15
15
  import UserAvatar from '../../../shared/UserAvatar';
16
16
  import { PREFIX } from '../constants';
17
17
  import { default as EventItem } from '../../Event';
18
+ import { EventService } from '@selfcommunity/api-services';
18
19
  const classes = {
19
20
  root: `${PREFIX}-event-root`,
20
21
  avatar: `${PREFIX}-avatar`,
@@ -40,10 +41,20 @@ export default function EventNotification(props) {
40
41
  const scRoutingContext = useSCRouting();
41
42
  // STATE
42
43
  const [openAlert, setOpenAlert] = useState(false);
44
+ const [loading, setLoading] = useState(false);
45
+ const [disabled, setDisabled] = useState(notificationObject.event.subscription_status !== SCEventSubscriptionStatusType.REQUESTED);
43
46
  // CONST
44
47
  const isSnippetTemplate = template === SCNotificationObjectTemplateType.SNIPPET;
45
48
  const isToastTemplate = template === SCNotificationObjectTemplateType.TOAST;
46
49
  const intl = useIntl();
50
+ //HANDLERS
51
+ const acceptRequest = (event) => {
52
+ setLoading(true);
53
+ EventService.inviteOrAcceptEventRequest(event.id, { users: [notificationObject.user.id] }).then(() => {
54
+ setLoading(false);
55
+ setDisabled(true);
56
+ });
57
+ };
47
58
  // RENDER
48
59
  if (isSnippetTemplate || isToastTemplate) {
49
60
  return (_jsx(Root, Object.assign({ id: id, className: classNames(classes.root, className, `${PREFIX}-${template}`), template: template, isNew: notificationObject.is_new, disableTypography: true, image: _jsx(Link, Object.assign({}, (!notificationObject.user.deleted && {
@@ -64,7 +75,7 @@ export default function EventNotification(props) {
64
75
  month: 'long'
65
76
  }),
66
77
  hour: intl.formatDate(notificationObject.event.start_date, { hour: 'numeric', minute: 'numeric' })
67
- } }) })), _jsxs(Typography, Object.assign({ component: "p", variant: "body2" }, { children: [_jsx(FormattedMessage, { id: `ui.notification.event.privacy.${notificationObject.event.privacy}`, defaultMessage: `ui.notification.event.privacy.${notificationObject.event.privacy}` }), ' ', "-", ' ', notificationObject.event.location === SCEventLocationType.PERSON ? (_jsx(FormattedMessage, { id: `ui.notification.event.address.live.label`, defaultMessage: `ui.notification.event.address.live.label` })) : (_jsx(FormattedMessage, { id: `ui.notification.event.address.online.label`, defaultMessage: `ui.notification.event.address.online.label` }))] }))] }), footer: isToastTemplate ? (_jsxs(Stack, Object.assign({ direction: "row", justifyContent: "space-between", alignItems: "center", spacing: 2 }, { children: [_jsx(DateTimeAgo, { date: notificationObject.active_at }), _jsx(Typography, Object.assign({ color: "primary" }, { children: _jsx(Link, Object.assign({ to: scRoutingContext.url(SCRoutes.EVENT_ROUTE_NAME, notificationObject.event) }, { children: _jsx(FormattedMessage, { id: "ui.notification.event.button.see", defaultMessage: "ui.notification.event.button.see" }) })) }))] }))) : (_jsx(DateTimeAgo, { date: notificationObject.active_at, className: classes.snippetTime })) }, rest)));
78
+ } }) })), _jsxs(Typography, Object.assign({ component: "p", variant: "body2" }, { children: [_jsx(FormattedMessage, { id: `ui.notification.event.privacy.${notificationObject.event.privacy}`, defaultMessage: `ui.notification.event.privacy.${notificationObject.event.privacy}` }), ' ', "-", ' ', notificationObject.event.location === SCEventLocationType.PERSON ? (_jsx(FormattedMessage, { id: `ui.notification.event.address.live.label`, defaultMessage: `ui.notification.event.address.live.label` })) : (_jsx(FormattedMessage, { id: `ui.notification.event.address.online.label`, defaultMessage: `ui.notification.event.address.online.label` }))] }))] }), footer: isToastTemplate ? (_jsxs(Stack, Object.assign({ direction: "row", justifyContent: "space-between", alignItems: "center", spacing: 2 }, { children: [_jsx(DateTimeAgo, { date: notificationObject.active_at }), _jsx(Typography, Object.assign({ color: "primary" }, { children: notificationObject.type === SCNotificationTypologyType.USER_REQUESTED_TO_JOIN_EVENT ? (_jsx(LoadingButton, Object.assign({ disabled: disabled, loading: loading, color: 'primary', variant: "text", size: "small", onClick: () => acceptRequest(notificationObject.event) }, { children: disabled ? (_jsx(FormattedMessage, { id: "ui.notification.event.button.accepted", defaultMessage: "ui.notification.event.button.accepted" })) : (_jsx(FormattedMessage, { id: "ui.notification.event.button.accept", defaultMessage: "ui.notification.event.button.accept" })) }))) : (_jsx(Link, Object.assign({ to: scRoutingContext.url(SCRoutes.EVENT_ROUTE_NAME, notificationObject.event) }, { children: _jsx(FormattedMessage, { id: "ui.notification.event.button.see", defaultMessage: "ui.notification.event.button.see" }) }))) }))] }))) : (_jsx(DateTimeAgo, { date: notificationObject.active_at, className: classes.snippetTime })) }, rest)));
68
79
  }
69
80
  return (_jsxs(_Fragment, { children: [_jsx(Root, Object.assign({ id: id, className: classNames(classes.root, className, `${PREFIX}-${template}`), template: template, isNew: notificationObject.is_new, disableTypography: true, image: _jsx(Link, Object.assign({}, (!notificationObject.user.deleted && {
70
81
  to: scRoutingContext.url(SCRoutes.USER_PROFILE_ROUTE_NAME, notificationObject.user)
@@ -76,5 +87,12 @@ export default function EventNotification(props) {
76
87
  icon: (...chunks) => _jsx(Icon, { children: chunks }),
77
88
  event: notificationObject.event.name,
78
89
  link: (...chunks) => _jsx(Link, Object.assign({ to: scRoutingContext.url(SCRoutes.EVENT_ROUTE_NAME, notificationObject.event) }, { children: chunks }))
79
- } }), _jsx(EventItem, { event: notificationObject.event, actions: _jsx(_Fragment, {}), elevation: 0 })] }), actions: _jsxs(Stack, Object.assign({ direction: "row", justifyContent: "space-between", alignItems: "center", spacing: 2 }, { children: [_jsx(DateTimeAgo, { date: notificationObject.active_at, className: classes.activeAt }), _jsx(LoadingButton, Object.assign({ color: 'primary', variant: "outlined", size: "small", classes: { root: classes.seeButton }, component: Link, to: scRoutingContext.url(SCRoutes.EVENT_ROUTE_NAME, notificationObject.event) }, { children: _jsx(FormattedMessage, { id: "ui.notification.event.button.see", defaultMessage: "ui.notification.event.button.see" }) }))] })) }, rest)), openAlert && _jsx(UserDeletedSnackBar, { open: openAlert, handleClose: () => setOpenAlert(false) })] }));
90
+ } }), _jsx(EventItem, { event: notificationObject.event, actions: _jsx(_Fragment, {}), elevation: 0 })] }), actions: _jsxs(Stack, Object.assign({ direction: "row", justifyContent: "space-between", alignItems: "center", spacing: 2 }, { children: [_jsx(DateTimeAgo, { date: notificationObject.active_at, className: classes.activeAt }), _jsx(LoadingButton, Object.assign({}, (notificationObject.type === SCNotificationTypologyType.USER_REQUESTED_TO_JOIN_EVENT && {
91
+ disabled: disabled
92
+ }), { loading: loading, color: 'primary', variant: "outlined", size: "small", classes: { root: classes.seeButton } }, (notificationObject.type !== SCNotificationTypologyType.USER_REQUESTED_TO_JOIN_EVENT && {
93
+ component: Link,
94
+ to: scRoutingContext.url(SCRoutes.EVENT_ROUTE_NAME, notificationObject.event)
95
+ }), { onClick: notificationObject.type === SCNotificationTypologyType.USER_REQUESTED_TO_JOIN_EVENT
96
+ ? () => acceptRequest(notificationObject.event)
97
+ : null }, { children: notificationObject.type === SCNotificationTypologyType.USER_REQUESTED_TO_JOIN_EVENT ? (_jsx(_Fragment, { children: disabled ? (_jsx(FormattedMessage, { id: "ui.notification.event.button.accepted", defaultMessage: "ui.notification.event.button.accepted" })) : (_jsx(FormattedMessage, { id: "ui.notification.event.button.accept", defaultMessage: "ui.notification.event.button.accept" })) })) : (_jsx(FormattedMessage, { id: "ui.notification.event.button.see", defaultMessage: "ui.notification.event.button.see" })) }))] })) }, rest)), openAlert && _jsx(UserDeletedSnackBar, { open: openAlert, handleClose: () => setOpenAlert(false) })] }));
80
98
  }
@@ -37,6 +37,7 @@ import UserDeletedSnackBar from '../../shared/UserDeletedSnackBar';
37
37
  import UserAvatar from '../../shared/UserAvatar';
38
38
  import { PREFIX } from './constants';
39
39
  import GroupNotification from './Group';
40
+ import CourseNotification from './Course';
40
41
  const messages = defineMessages({
41
42
  receivePrivateMessage: {
42
43
  id: 'ui.notification.receivePrivateMessage',
@@ -307,6 +308,14 @@ export default function UserNotification(inProps) {
307
308
  n.type === SCNotificationTypologyType.USER_REQUESTED_TO_JOIN_EVENT) {
308
309
  return _jsx(EventNotification, { notificationObject: n }, i);
309
310
  }
311
+ else if (n.type === SCNotificationTypologyType.USER_ADDED_TO_COURSE ||
312
+ n.type === SCNotificationTypologyType.MANAGER_ADDED_TO_COURSE ||
313
+ n.type === SCNotificationTypologyType.USER_COMMENTED_A_COURSE_LESSON ||
314
+ n.type === SCNotificationTypologyType.USER_INVITED_TO_JOIN_COURSE ||
315
+ n.type === SCNotificationTypologyType.USER_ACCEPTED_TO_JOIN_COURSE ||
316
+ n.type === SCNotificationTypologyType.USER_REQUESTED_TO_JOIN_COURSE) {
317
+ return _jsx(CourseNotification, { notificationObject: n }, i);
318
+ }
310
319
  else if (n.type === SCNotificationTypologyType.LIVE_STREAM_STARTED) {
311
320
  return _jsx(LiveStreamNotification, { notificationObject: n }, i);
312
321
  }
@@ -49,7 +49,6 @@ const DialogRoot = styled(BaseDialog, {
49
49
  overridesResolver: (_props, styles) => styles.dialogRoot
50
50
  })(() => ({}));
51
51
  export default function RelatedEventsWidget(inProps) {
52
- var _a;
53
52
  // PROPS
54
53
  const props = useThemeProps({
55
54
  props: inProps,
@@ -119,5 +118,5 @@ export default function RelatedEventsWidget(inProps) {
119
118
  if (!scEvent || (state === null || state === void 0 ? void 0 : state.count) === 0) {
120
119
  return _jsx(HiddenPlaceholder, {});
121
120
  }
122
- return (_jsxs(Root, Object.assign({ className: classes.root }, rest, { children: [_jsxs(CardContent, Object.assign({ className: classes.content }, { children: [_jsxs(Stack, Object.assign({ className: classes.header }, { children: [_jsx(Button, Object.assign({ component: Link, to: scRoutingContext.url(SCRoutes.USER_PROFILE_ROUTE_NAME, { id: (_a = scUserContext.user) === null || _a === void 0 ? void 0 : _a.id }), className: classes.avatarWrapper }, { children: _jsx(Avatar, { variant: "rounded", src: scEvent.managed_by.avatar, alt: scEvent.managed_by.username, className: classes.avatar }) })), _jsx(Typography, Object.assign({ variant: "h4" }, { children: _jsx("b", { children: intl.formatMessage(messages.title, { user: scEvent.managed_by.username }) }) }))] })), _jsx(Stack, Object.assign({ className: classes.eventWrapper }, { children: state === null || state === void 0 ? void 0 : state.results.map((_event, i, array) => (_jsxs(Fragment, { children: [_jsx(Event, Object.assign({ event: _event, eventId: _event.id }, eventComponentProps, { className: classes.event })), i < array.length - 1 && _jsx(Divider, {})] }, i))) }))] })), state.count > state.visibleItems && (_jsx(CardActions, Object.assign({ className: classes.actions }, { children: _jsx(Button, Object.assign({ onClick: handleToggleDialogOpen, className: classes.actionButton }, { children: _jsx(Typography, Object.assign({ variant: "caption" }, { children: _jsx(FormattedMessage, { id: "ui.relatedEventsWidget.showAll", defaultMessage: "ui.relatedEventsWidget.showAll" }) })) })) }))), _jsx(DialogRoot, Object.assign({ className: classes.dialogRoot, title: intl.formatMessage(messages.title, { user: scEvent.managed_by.username }), onClose: handleToggleDialogOpen, open: openDialog }, dialogProps, { children: _jsx(InfiniteScroll, Object.assign({ dataLength: state.results.length, next: handleNext, hasMoreNext: Boolean(state.next), loaderNext: _jsx(EventSkeleton, Object.assign({ elevation: 0 }, eventComponentProps)), className: classes.infiniteScroll, endMessage: _jsx(Typography, Object.assign({ className: classes.endMessage }, { children: _jsx(FormattedMessage, { id: "ui.relatedEventsWidget.noMoreResults", defaultMessage: "ui.eventMembersWidget.noMoreResults" }) })) }, { children: _jsx(List, { children: state.results.map((event) => (_jsx(ListItem, { children: _jsx(Event, Object.assign({ elevation: 0, event: event }, eventComponentProps)) }, event.id))) }) })) }))] })));
121
+ return (_jsxs(Root, Object.assign({ className: classes.root }, rest, { children: [_jsxs(CardContent, Object.assign({ className: classes.content }, { children: [_jsxs(Stack, Object.assign({ className: classes.header }, { children: [_jsx(Button, Object.assign({ component: Link, to: scRoutingContext.url(SCRoutes.USER_PROFILE_ROUTE_NAME, scEvent.managed_by), className: classes.avatarWrapper }, { children: _jsx(Avatar, { variant: "rounded", src: scEvent.managed_by.avatar, alt: scEvent.managed_by.username, className: classes.avatar }) })), _jsx(Typography, Object.assign({ variant: "h4" }, { children: _jsx("b", { children: intl.formatMessage(messages.title, { user: scEvent.managed_by.username }) }) }))] })), _jsx(Stack, Object.assign({ className: classes.eventWrapper }, { children: state === null || state === void 0 ? void 0 : state.results.map((_event, i, array) => (_jsxs(Fragment, { children: [_jsx(Event, Object.assign({ event: _event, eventId: _event.id }, eventComponentProps, { className: classes.event })), i < array.length - 1 && _jsx(Divider, {})] }, i))) }))] })), state.count > state.visibleItems && (_jsx(CardActions, Object.assign({ className: classes.actions }, { children: _jsx(Button, Object.assign({ onClick: handleToggleDialogOpen, className: classes.actionButton }, { children: _jsx(Typography, Object.assign({ variant: "caption" }, { children: _jsx(FormattedMessage, { id: "ui.relatedEventsWidget.showAll", defaultMessage: "ui.relatedEventsWidget.showAll" }) })) })) }))), _jsx(DialogRoot, Object.assign({ className: classes.dialogRoot, title: intl.formatMessage(messages.title, { user: scEvent.managed_by.username }), onClose: handleToggleDialogOpen, open: openDialog }, dialogProps, { children: _jsx(InfiniteScroll, Object.assign({ dataLength: state.results.length, next: handleNext, hasMoreNext: Boolean(state.next), loaderNext: _jsx(EventSkeleton, Object.assign({ elevation: 0 }, eventComponentProps)), className: classes.infiniteScroll, endMessage: _jsx(Typography, Object.assign({ className: classes.endMessage }, { children: _jsx(FormattedMessage, { id: "ui.relatedEventsWidget.noMoreResults", defaultMessage: "ui.eventMembersWidget.noMoreResults" }) })) }, { children: _jsx(List, { children: state.results.map((event) => (_jsx(ListItem, { children: _jsx(Event, Object.assign({ elevation: 0, event: event }, eventComponentProps)) }, event.id))) }) })) }))] })));
123
122
  }
@@ -6,7 +6,10 @@ export interface SearchDialogProps extends DialogProps {
6
6
  * @default null
7
7
  */
8
8
  className?: string;
9
- SearchAutocompleteProps: SearchAutocompleteProps;
9
+ /**
10
+ * Overrides props for the SearchAutocomplete component.
11
+ */
12
+ SearchAutocompleteComponentProps: SearchAutocompleteProps;
10
13
  /**
11
14
  * Other props
12
15
  */
@@ -28,6 +28,6 @@ export default function Search(inProps) {
28
28
  props: inProps,
29
29
  name: PREFIX
30
30
  });
31
- const { className, SearchAutocompleteProps = { autoFocus: true } } = props, rest = __rest(props, ["className", "SearchAutocompleteProps"]);
32
- return (_jsx(Root, Object.assign({ className: classNames(classes.root, className) }, rest, { children: _jsx(DialogContent, { children: _jsx(SearchAutocomplete, Object.assign({ className: classes.search, blurOnSelect: false, open: true, disablePortal: true }, SearchAutocompleteProps)) }) })));
31
+ const { className, SearchAutocompleteComponentProps = { autoFocus: true } } = props, rest = __rest(props, ["className", "SearchAutocompleteComponentProps"]);
32
+ return (_jsx(Root, Object.assign({ className: classNames(classes.root, className) }, rest, { children: _jsx(DialogContent, { children: _jsx(SearchAutocomplete, Object.assign({ className: classes.search, blurOnSelect: false, open: true, disablePortal: true }, SearchAutocompleteComponentProps)) }) })));
33
33
  }
@@ -35,6 +35,7 @@ import { PREFIX } from './constants';
35
35
  import GroupNotification from '../Notification/Group';
36
36
  import EventNotification from '../Notification/Event/Event';
37
37
  import LiveStreamNotification from '../Notification/LiveStream';
38
+ import CourseNotification from '../Notification/Course';
38
39
  const classes = {
39
40
  root: `${PREFIX}-root`,
40
41
  notificationsWrap: `${PREFIX}-notifications-wrap`,
@@ -268,6 +269,14 @@ export default function SnippetNotifications(inProps) {
268
269
  n.type === SCNotificationTypologyType.USER_REQUESTED_TO_JOIN_EVENT) {
269
270
  return _jsx(EventNotification, { notificationObject: n, template: SCNotificationObjectTemplateType.SNIPPET }, i);
270
271
  }
272
+ else if (n.type === SCNotificationTypologyType.USER_ADDED_TO_COURSE ||
273
+ n.type === SCNotificationTypologyType.MANAGER_ADDED_TO_COURSE ||
274
+ n.type === SCNotificationTypologyType.USER_COMMENTED_A_COURSE_LESSON ||
275
+ n.type === SCNotificationTypologyType.USER_INVITED_TO_JOIN_COURSE ||
276
+ n.type === SCNotificationTypologyType.USER_ACCEPTED_TO_JOIN_COURSE ||
277
+ n.type === SCNotificationTypologyType.USER_REQUESTED_TO_JOIN_COURSE) {
278
+ return _jsx(CourseNotification, { notificationObject: n, template: SCNotificationObjectTemplateType.SNIPPET }, i);
279
+ }
271
280
  else if (type === SCNotificationTypologyType.LIVE_STREAM_STARTED) {
272
281
  content = _jsx(LiveStreamNotification, { notificationObject: n, template: SCNotificationObjectTemplateType.SNIPPET }, i);
273
282
  }
@@ -17,7 +17,7 @@ const classes = {
17
17
  const Root = styled(Autocomplete, {
18
18
  name: PREFIX,
19
19
  slot: 'Root',
20
- overridesResolver: (props, styles) => styles.root
20
+ overridesResolver: (_props, styles) => styles.root
21
21
  })(() => ({}));
22
22
  /**
23
23
  * > API documentation for the Community-JS Tag Autocomplete component. Learn about the available props and the CSS API.
@@ -73,7 +73,7 @@ const TagAutocomplete = (inProps) => {
73
73
  const handleClose = () => {
74
74
  setOpen(false);
75
75
  };
76
- const handleChange = (event, newValue) => {
76
+ const handleChange = (_event, newValue) => {
77
77
  setValue(newValue);
78
78
  };
79
79
  // Render
@@ -25,6 +25,7 @@ import ContributionNotification from '../Notification/Contribution';
25
25
  import GroupNotification from '../Notification/Group';
26
26
  import EventNotification from '../Notification/Event/Event';
27
27
  import LiveStreamNotification from '../Notification/LiveStream';
28
+ import CourseNotification from '../Notification/Course';
28
29
  const Root = styled(Box, {
29
30
  name: PREFIX,
30
31
  slot: 'Root'
@@ -124,6 +125,14 @@ export default function UserToastNotifications(inProps) {
124
125
  type === SCNotificationTypologyType.USER_REQUESTED_TO_JOIN_EVENT) {
125
126
  content = _jsx(EventNotification, { notificationObject: n.notification_obj, template: SCNotificationObjectTemplateType.TOAST });
126
127
  }
128
+ else if (type === SCNotificationTypologyType.USER_ADDED_TO_COURSE ||
129
+ type === SCNotificationTypologyType.MANAGER_ADDED_TO_COURSE ||
130
+ type === SCNotificationTypologyType.USER_COMMENTED_A_COURSE_LESSON ||
131
+ type === SCNotificationTypologyType.USER_INVITED_TO_JOIN_COURSE ||
132
+ type === SCNotificationTypologyType.USER_ACCEPTED_TO_JOIN_COURSE ||
133
+ type === SCNotificationTypologyType.USER_REQUESTED_TO_JOIN_COURSE) {
134
+ content = _jsx(CourseNotification, { notificationObject: n.notification_obj, template: SCNotificationObjectTemplateType.TOAST });
135
+ }
127
136
  else if (type === SCNotificationTypologyType.LIVE_STREAM_STARTED) {
128
137
  content = _jsx(LiveStreamNotification, { notificationObject: n.notification_obj, template: SCNotificationObjectTemplateType.TOAST });
129
138
  }
@@ -0,0 +1,21 @@
1
+ /**
2
+ * > API documentation for the Community-JS User Profile Categories Followed Widget Skeleton component. Learn about the available props and the CSS API.
3
+
4
+ #### Import
5
+
6
+ ```jsx
7
+ import {UserCreatedCoursesWidgetSkeleton} from '@selfcommunity/react-ui';
8
+ ```
9
+
10
+ #### Component Name
11
+
12
+ The name `SCUserCategoriesFollowedWidget-skeleton-root` can be used when providing style overrides in the theme.
13
+
14
+ #### CSS
15
+
16
+ |Rule Name|Global class|Description|
17
+ |---|---|---|
18
+ |root|.SCUserCreatedCoursesWidget-skeleton-root|Styles applied to the root element.|
19
+ *
20
+ */
21
+ export default function UserCreatedCoursesWidgetSkeleton(props: any): JSX.Element;
@@ -0,0 +1,39 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import Widget from '../Widget';
3
+ import { styled } from '@mui/material/styles';
4
+ import { CardContent, ListItem } from '@mui/material';
5
+ import List from '@mui/material/List';
6
+ import CourseSkeleton from '../Course/Skeleton';
7
+ import { SCCourseTemplateType } from '../../types/course';
8
+ const PREFIX = 'SCUserCreatedCoursesWidgetSkeleton';
9
+ const classes = {
10
+ root: `${PREFIX}-skeleton-root`,
11
+ list: `${PREFIX}-list`
12
+ };
13
+ const Root = styled(Widget, {
14
+ name: PREFIX,
15
+ slot: 'SkeletonRoot'
16
+ })(() => ({}));
17
+ /**
18
+ * > API documentation for the Community-JS User Profile Categories Followed Widget Skeleton component. Learn about the available props and the CSS API.
19
+
20
+ #### Import
21
+
22
+ ```jsx
23
+ import {UserCreatedCoursesWidgetSkeleton} from '@selfcommunity/react-ui';
24
+ ```
25
+
26
+ #### Component Name
27
+
28
+ The name `SCUserCategoriesFollowedWidget-skeleton-root` can be used when providing style overrides in the theme.
29
+
30
+ #### CSS
31
+
32
+ |Rule Name|Global class|Description|
33
+ |---|---|---|
34
+ |root|.SCUserCreatedCoursesWidget-skeleton-root|Styles applied to the root element.|
35
+ *
36
+ */
37
+ export default function UserCreatedCoursesWidgetSkeleton(props) {
38
+ return (_jsx(Root, Object.assign({ className: classes.root }, props, { children: _jsx(CardContent, { children: _jsx(List, Object.assign({ className: classes.list }, { children: [...Array(3)].map((category, index) => (_jsx(ListItem, { children: _jsx(CourseSkeleton, { template: SCCourseTemplateType.SNIPPET, CourseProps: { userProfileSnippet: true }, elevation: 0 }) }, index))) })) }) })));
39
+ }
@@ -0,0 +1,63 @@
1
+ import { CacheStrategies } from '@selfcommunity/utils';
2
+ import { BaseDialogProps } from '../../shared/BaseDialog';
3
+ import { WidgetProps } from '../Widget';
4
+ import { VirtualScrollerItemProps } from '../../types/virtualScroller';
5
+ import { CourseProps } from '../Course';
6
+ export interface UserCreatedCoursesWidgetProps extends VirtualScrollerItemProps, WidgetProps {
7
+ /**
8
+ * The user id
9
+ * @default null
10
+ */
11
+ userId: number;
12
+ /**
13
+ * Limit the number of courses to show
14
+ * @default false
15
+ */
16
+ limit?: number;
17
+ /**
18
+ * Props to spread to single course object
19
+ * @default empty object
20
+ */
21
+ CourseProps?: CourseProps;
22
+ /**
23
+ * Caching strategies
24
+ * @default CacheStrategies.CACHE_FIRST
25
+ */
26
+ cacheStrategy?: CacheStrategies;
27
+ /**
28
+ * Props to spread to subscribed courses dialog
29
+ * @default {}
30
+ */
31
+ DialogProps?: BaseDialogProps;
32
+ /**
33
+ * Other props
34
+ */
35
+ [p: string]: any;
36
+ }
37
+ /**
38
+ * > API documentation for the Community-JS User Profile Courses Created Widget component. Learn about the available props and the CSS API.
39
+ *
40
+ *
41
+ * This component renders the list of the courses that the given user follows.
42
+ * Take a look at our <strong>demo</strong> component [here](/docs/sdk/community-js/react-ui/Components/UserCreatedCourses)
43
+
44
+ #### Import
45
+ ```jsx
46
+ import {UserCreatedCoursesWidget} from '@selfcommunity/react-ui';
47
+ ```
48
+ #### Component Name
49
+ The name `SCUserCreatedCoursesWidget` can be used when providing style overrides in the theme.
50
+
51
+ #### CSS
52
+
53
+ |Rule Name|Global class|Description|
54
+ |---|---|---|
55
+ |root|.SCUserCreatedCoursesWidget-root|Styles applied to the root element.|
56
+ |title|.SCUserCreatedCoursesWidget-title|Styles applied to the title element.|
57
+ |noResults|.SCUserCreatedCoursesWidget-no-results|Styles applied to no results section.|
58
+ |showMore|.SCUserCreatedCoursesWidget-show-more|Styles applied to show more button element.|
59
+ |dialogRoot|.SCUserCreatedCoursesWidget-dialog-root|Styles applied to the root dialog element.|
60
+ |endMessage|.SCUserCreatedCoursesWidget-end-message|Styles applied to the end message element.|
61
+ * @param inProps
62
+ */
63
+ export default function UserCreatedCoursesWidget(inProps: UserCreatedCoursesWidgetProps): JSX.Element;
@@ -0,0 +1,151 @@
1
+ import { __rest } from "tslib";
2
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
+ import React, { useEffect, useMemo, useReducer, useState } from 'react';
4
+ import { styled } from '@mui/material/styles';
5
+ import List from '@mui/material/List';
6
+ import { Button, CardContent, ListItem, Typography } from '@mui/material';
7
+ import { CourseService } from '@selfcommunity/api-services';
8
+ import { CacheStrategies, isInteger, Logger } from '@selfcommunity/utils';
9
+ import { SCCache, SCPreferences, useSCPreferences, useSCUser } from '@selfcommunity/react-core';
10
+ import { actionWidgetTypes, dataWidgetReducer, stateWidgetInitializer } from '../../utils/widget';
11
+ import { SCCourseJoinStatusType, SCFeatureName } from '@selfcommunity/types';
12
+ import { SCOPE_SC_UI } from '../../constants/Errors';
13
+ import { FormattedMessage } from 'react-intl';
14
+ import Skeleton from './Skeleton';
15
+ import classNames from 'classnames';
16
+ import BaseDialog from '../../shared/BaseDialog';
17
+ import Widget from '../Widget';
18
+ import { useThemeProps } from '@mui/system';
19
+ import HiddenPlaceholder from '../../shared/HiddenPlaceholder';
20
+ import { PREFIX } from './constants';
21
+ import Course, { CourseSkeleton } from '../Course';
22
+ import { SCCourseTemplateType } from '../../types/course';
23
+ const classes = {
24
+ root: `${PREFIX}-root`,
25
+ title: `${PREFIX}-title`,
26
+ noResults: `${PREFIX}-no-results`,
27
+ showMore: `${PREFIX}-show-more`,
28
+ dialogRoot: `${PREFIX}-dialog-root`,
29
+ endMessage: `${PREFIX}-end-message`
30
+ };
31
+ const Root = styled(Widget, {
32
+ name: PREFIX,
33
+ slot: 'Root'
34
+ })(() => ({}));
35
+ const DialogRoot = styled(BaseDialog, {
36
+ name: PREFIX,
37
+ slot: 'DialogRoot'
38
+ })(() => ({}));
39
+ /**
40
+ * > API documentation for the Community-JS User Profile Courses Created Widget component. Learn about the available props and the CSS API.
41
+ *
42
+ *
43
+ * This component renders the list of the courses that the given user follows.
44
+ * Take a look at our <strong>demo</strong> component [here](/docs/sdk/community-js/react-ui/Components/UserCreatedCourses)
45
+
46
+ #### Import
47
+ ```jsx
48
+ import {UserCreatedCoursesWidget} from '@selfcommunity/react-ui';
49
+ ```
50
+ #### Component Name
51
+ The name `SCUserCreatedCoursesWidget` can be used when providing style overrides in the theme.
52
+
53
+ #### CSS
54
+
55
+ |Rule Name|Global class|Description|
56
+ |---|---|---|
57
+ |root|.SCUserCreatedCoursesWidget-root|Styles applied to the root element.|
58
+ |title|.SCUserCreatedCoursesWidget-title|Styles applied to the title element.|
59
+ |noResults|.SCUserCreatedCoursesWidget-no-results|Styles applied to no results section.|
60
+ |showMore|.SCUserCreatedCoursesWidget-show-more|Styles applied to show more button element.|
61
+ |dialogRoot|.SCUserCreatedCoursesWidget-dialog-root|Styles applied to the root dialog element.|
62
+ |endMessage|.SCUserCreatedCoursesWidget-end-message|Styles applied to the end message element.|
63
+ * @param inProps
64
+ */
65
+ export default function UserCreatedCoursesWidget(inProps) {
66
+ // PROPS
67
+ const props = useThemeProps({
68
+ props: inProps,
69
+ name: PREFIX
70
+ });
71
+ const { userId, limit = 3, className, CourseProps = {}, cacheStrategy = CacheStrategies.NETWORK_ONLY, onHeightChange, onStateChange, DialogProps = {} } = props, rest = __rest(props, ["userId", "limit", "className", "CourseProps", "cacheStrategy", "onHeightChange", "onStateChange", "DialogProps"]);
72
+ // CONTEXT
73
+ const scUserContext = useSCUser();
74
+ const { preferences, features } = useSCPreferences();
75
+ const coursesEnabled = useMemo(() => preferences &&
76
+ features &&
77
+ features.includes(SCFeatureName.TAGGING) &&
78
+ features.includes(SCFeatureName.COURSE) &&
79
+ SCPreferences.CONFIGURATIONS_COURSES_ENABLED in preferences &&
80
+ preferences[SCPreferences.CONFIGURATIONS_COURSES_ENABLED].value, [preferences, features]);
81
+ // STATE
82
+ const [state, dispatch] = useReducer(dataWidgetReducer, {
83
+ isLoadingNext: false,
84
+ next: null,
85
+ cacheKey: SCCache.getWidgetStateCacheKey(SCCache.USER_CREATED_COURSES_STATE_CACHE_PREFIX_KEY, userId),
86
+ cacheStrategy
87
+ }, stateWidgetInitializer);
88
+ const [openDialog, setOpenDialog] = useState(false);
89
+ /**
90
+ * Initialize component
91
+ * Fetch data only if the component is not initialized, and it is not loading data
92
+ */
93
+ const _initComponent = useMemo(() => () => {
94
+ if (!state.initialized && !state.isLoadingNext) {
95
+ CourseService.getUserJoinedCourses(userId, { statuses: SCCourseJoinStatusType.CREATOR })
96
+ .then((courses) => {
97
+ dispatch({
98
+ type: actionWidgetTypes.LOAD_NEXT_SUCCESS,
99
+ payload: {
100
+ count: courses.count,
101
+ results: courses.results,
102
+ initialized: true
103
+ }
104
+ });
105
+ })
106
+ .catch((error) => {
107
+ dispatch({ type: actionWidgetTypes.LOAD_NEXT_FAILURE, payload: { errorLoadNext: error } });
108
+ Logger.error(SCOPE_SC_UI, error);
109
+ });
110
+ }
111
+ }, [state.isLoadingNext, state.initialized, userId, dispatch]);
112
+ // EFFECTS
113
+ useEffect(() => {
114
+ let _t;
115
+ if (coursesEnabled && isInteger(userId) && scUserContext.user !== undefined) {
116
+ _t = setTimeout(_initComponent);
117
+ return () => {
118
+ _t && clearTimeout(_t);
119
+ };
120
+ }
121
+ }, [scUserContext.user, coursesEnabled, userId]);
122
+ /**
123
+ * Virtual feed update
124
+ */
125
+ useEffect(() => {
126
+ onHeightChange && onHeightChange();
127
+ }, [state.results.length]);
128
+ useEffect(() => {
129
+ if (!coursesEnabled && !scUserContext.user && !isInteger(userId)) {
130
+ return;
131
+ }
132
+ else if (cacheStrategy === CacheStrategies.NETWORK_ONLY) {
133
+ onStateChange && onStateChange({ cacheStrategy: CacheStrategies.CACHE_FIRST });
134
+ }
135
+ }, [coursesEnabled, cacheStrategy, scUserContext.user, userId]);
136
+ // HANDLERS
137
+ const handleToggleDialogOpen = () => {
138
+ setOpenDialog((prev) => !prev);
139
+ };
140
+ // RENDER
141
+ if (!coursesEnabled || (!state.count && state.initialized) || !userId) {
142
+ return _jsx(HiddenPlaceholder, {});
143
+ }
144
+ if (!state.initialized) {
145
+ return _jsx(Skeleton, {});
146
+ }
147
+ const content = (_jsxs(CardContent, { children: [_jsx(Typography, Object.assign({ className: classes.title, variant: "h5" }, { children: _jsx(FormattedMessage, { id: "ui.userCreatedCoursesWidget.title", defaultMessage: "ui.userCreatedCoursesWidget.title", values: {
148
+ total: state.count
149
+ } }) })), !state.count ? (_jsx(Typography, Object.assign({ className: classes.noResults, variant: "body2" }, { children: _jsx(FormattedMessage, { id: "ui.userCreatedCoursesWidget.subtitle.noResults", defaultMessage: "ui.userCreatedCoursesWidget.subtitle.noResults" }) }))) : (_jsxs(React.Fragment, { children: [_jsx(List, { children: state.results.slice(0, limit).map((course) => (_jsx(ListItem, { children: _jsx(Course, Object.assign({ elevation: 0, template: SCCourseTemplateType.SNIPPET, course: course, userProfileSnippet: true }, CourseProps)) }, course.id))) }), limit < state.count && (_jsx(Button, Object.assign({ className: classes.showMore, onClick: handleToggleDialogOpen }, { children: _jsx(FormattedMessage, { id: "ui.userCreatedCoursesWidget.button.showAll", defaultMessage: "ui.userCreatedCoursesWidget.button.showAll" }) }))), openDialog && (_jsxs(DialogRoot, Object.assign({ className: classes.dialogRoot, title: _jsx(FormattedMessage, { id: "ui.userCreatedCoursesWidget.title", defaultMessage: "ui.userCreatedCoursesWidget.title", values: { total: state.count } }), onClose: handleToggleDialogOpen, open: openDialog, scroll: "paper" }, DialogProps, { children: [_jsxs(List, { children: [state.results.map((c) => (_jsx(ListItem, { children: _jsx(Course, Object.assign({ elevation: 0, template: SCCourseTemplateType.SNIPPET, course: c, userProfileSnippet: true }, CourseProps)) }, c.id))), state.isLoadingNext && (_jsx(ListItem, { children: _jsx(CourseSkeleton, { template: SCCourseTemplateType.SNIPPET, elevation: 0, CourseProps: { userProfileSnippet: true } }) }))] }), _jsx(Typography, Object.assign({ className: classes.endMessage }, { children: _jsx(FormattedMessage, { id: "ui.userCreatedCoursesWidget.noMoreResults", defaultMessage: "ui.userCreatedCoursesWidget.noMoreResults" }) }))] })))] }))] }));
150
+ return (_jsx(Root, Object.assign({ className: classNames(classes.root, className) }, rest, { children: content })));
151
+ }
@@ -0,0 +1 @@
1
+ export declare const PREFIX = "SCUserCreatedCoursesWidget";
@@ -0,0 +1 @@
1
+ export const PREFIX = 'SCUserCreatedCoursesWidget';
@@ -0,0 +1,4 @@
1
+ import UserCreatedCoursesWidget, { UserCreatedCoursesWidgetProps } from './UserCreatedCoursesWidget';
2
+ import UserCreatedCoursesWidgetSkeleton from './Skeleton';
3
+ export default UserCreatedCoursesWidget;
4
+ export { UserCreatedCoursesWidgetSkeleton, UserCreatedCoursesWidgetProps };
@@ -0,0 +1,4 @@
1
+ import UserCreatedCoursesWidget from './UserCreatedCoursesWidget';
2
+ import UserCreatedCoursesWidgetSkeleton from './Skeleton';
3
+ export default UserCreatedCoursesWidget;
4
+ export { UserCreatedCoursesWidgetSkeleton };
@@ -0,0 +1,6 @@
1
+ export declare const COURSE_TITLE_MAX_LENGTH = 50;
2
+ export declare const COURSE_DESCRIPTION_MAX_LENGTH = 500;
3
+ export declare enum SCCourseFormStepType {
4
+ GENERAL = "general",
5
+ CUSTOMIZATION = "customization"
6
+ }
@@ -0,0 +1,7 @@
1
+ export const COURSE_TITLE_MAX_LENGTH = 50;
2
+ export const COURSE_DESCRIPTION_MAX_LENGTH = 500;
3
+ export var SCCourseFormStepType;
4
+ (function (SCCourseFormStepType) {
5
+ SCCourseFormStepType["GENERAL"] = "general";
6
+ SCCourseFormStepType["CUSTOMIZATION"] = "customization";
7
+ })(SCCourseFormStepType || (SCCourseFormStepType = {}));
@@ -1,3 +1,4 @@
1
1
  export declare const LIVE_STREAM_TITLE_MAX_LENGTH = 100;
2
2
  export declare const LIVE_STREAM_SLUG_MAX_LENGTH = 50;
3
3
  export declare const LIVE_STREAM_DESCRIPTION_MAX_LENGTH = 500;
4
+ export declare const CHOICE_VIDEO_BLUR_EFFECT = "lk-video-blur";
@@ -1,3 +1,4 @@
1
1
  export const LIVE_STREAM_TITLE_MAX_LENGTH = 100;
2
2
  export const LIVE_STREAM_SLUG_MAX_LENGTH = 50;
3
3
  export const LIVE_STREAM_DESCRIPTION_MAX_LENGTH = 500;
4
+ export const CHOICE_VIDEO_BLUR_EFFECT = 'lk-video-blur';
@@ -3,6 +3,7 @@ import { SCUserType, SCGroupType, SCEventType } from '@selfcommunity/types';
3
3
  * Define topics for pubsub
4
4
  */
5
5
  export declare enum SCTopicType {
6
+ COURSE = "course",
6
7
  GROUP = "group",
7
8
  EVENT = "event",
8
9
  CATEGORY = "category"
@@ -14,11 +15,24 @@ export declare enum SCGroupEventType {
14
15
  CREATE = "create",
15
16
  EDIT = "edit",
16
17
  DELETE = "delete",
18
+ UPDATE = "update",
17
19
  MEMBERS = "members",
18
20
  ADD_MEMBER = "members.add_member",
19
21
  INVITE_MEMBER = "members.invite_member",
20
22
  REMOVE_MEMBER = "members.remove_member"
21
23
  }
24
+ /**
25
+ * Course event types
26
+ */
27
+ export declare enum SCCourseEventType {
28
+ CREATE = "create",
29
+ EDIT = "edit",
30
+ DELETE = "delete",
31
+ ADD_MEMBER = "members.add_member",
32
+ INVITE_MEMBER = "members.invite_member",
33
+ REMOVE_MEMBER = "members.remove_member",
34
+ REJECT_MEMBER = "members.reject_member"
35
+ }
22
36
  /**
23
37
  * Category event types
24
38
  */
@@ -3,6 +3,7 @@
3
3
  */
4
4
  export var SCTopicType;
5
5
  (function (SCTopicType) {
6
+ SCTopicType["COURSE"] = "course";
6
7
  SCTopicType["GROUP"] = "group";
7
8
  SCTopicType["EVENT"] = "event";
8
9
  SCTopicType["CATEGORY"] = "category";
@@ -15,11 +16,25 @@ export var SCGroupEventType;
15
16
  SCGroupEventType["CREATE"] = "create";
16
17
  SCGroupEventType["EDIT"] = "edit";
17
18
  SCGroupEventType["DELETE"] = "delete";
19
+ SCGroupEventType["UPDATE"] = "update";
18
20
  SCGroupEventType["MEMBERS"] = "members";
19
21
  SCGroupEventType["ADD_MEMBER"] = "members.add_member";
20
22
  SCGroupEventType["INVITE_MEMBER"] = "members.invite_member";
21
23
  SCGroupEventType["REMOVE_MEMBER"] = "members.remove_member";
22
24
  })(SCGroupEventType || (SCGroupEventType = {}));
25
+ /**
26
+ * Course event types
27
+ */
28
+ export var SCCourseEventType;
29
+ (function (SCCourseEventType) {
30
+ SCCourseEventType["CREATE"] = "create";
31
+ SCCourseEventType["EDIT"] = "edit";
32
+ SCCourseEventType["DELETE"] = "delete";
33
+ SCCourseEventType["ADD_MEMBER"] = "members.add_member";
34
+ SCCourseEventType["INVITE_MEMBER"] = "members.invite_member";
35
+ SCCourseEventType["REMOVE_MEMBER"] = "members.remove_member";
36
+ SCCourseEventType["REJECT_MEMBER"] = "members.reject_member";
37
+ })(SCCourseEventType || (SCCourseEventType = {}));
23
38
  /**
24
39
  * Category event types
25
40
  */