@selfcommunity/react-ui 0.10.2-alpha.8 → 0.10.2-courses.100

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 (848) 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/assets/deafultCover.d.ts +2 -0
  4. package/lib/cjs/assets/deafultCover.js +3 -0
  5. package/lib/cjs/assets/liveStream/event.d.ts +2 -0
  6. package/lib/cjs/assets/liveStream/event.js +3 -0
  7. package/lib/cjs/assets/liveStream/live.d.ts +2 -0
  8. package/lib/cjs/assets/liveStream/live.js +3 -0
  9. package/lib/cjs/components/AccountDeleteButton/AccountDeleteButton.js +2 -1
  10. package/lib/cjs/components/BottomNavigation/BottomNavigation.js +17 -1
  11. package/lib/cjs/components/Category/Skeleton.js +1 -1
  12. package/lib/cjs/components/ChangeCover/ChangeCover.js +1 -1
  13. package/lib/cjs/components/CommentObject/CommentObject.d.ts +5 -0
  14. package/lib/cjs/components/CommentObject/CommentObject.js +7 -4
  15. package/lib/cjs/components/CommentObjectReply/CommentObjectReply.d.ts +24 -2
  16. package/lib/cjs/components/CommentObjectReply/CommentObjectReply.js +11 -4
  17. package/lib/cjs/components/Composer/Composer.js +27 -4
  18. package/lib/cjs/components/Composer/Content/ContentDiscussion/ContentDiscussion.d.ts +18 -0
  19. package/lib/cjs/components/Composer/Content/ContentDiscussion/ContentDiscussion.js +36 -4
  20. package/lib/cjs/components/Composer/Content/ContentLesson/ContentLesson.d.ts +38 -0
  21. package/lib/cjs/components/Composer/Content/ContentLesson/ContentLesson.js +36 -0
  22. package/lib/cjs/components/Composer/Content/ContentLesson/index.d.ts +3 -0
  23. package/lib/cjs/components/Composer/Content/ContentLesson/index.js +5 -0
  24. package/lib/cjs/components/Composer/constants.d.ts +3 -0
  25. package/lib/cjs/components/Composer/constants.js +4 -1
  26. package/lib/cjs/components/ComposerIconButton/ComposerIconButton.d.ts +30 -2
  27. package/lib/cjs/components/ComposerIconButton/ComposerIconButton.js +124 -19
  28. package/lib/cjs/components/Course/Course.d.ts +91 -0
  29. package/lib/cjs/components/Course/Course.js +179 -0
  30. package/lib/cjs/components/Course/Placeholder.d.ts +40 -0
  31. package/lib/cjs/components/Course/Placeholder.js +65 -0
  32. package/lib/cjs/components/Course/Skeleton.d.ts +46 -0
  33. package/lib/cjs/components/Course/Skeleton.js +77 -0
  34. package/lib/cjs/components/Course/constants.d.ts +1 -0
  35. package/lib/cjs/components/Course/constants.js +4 -0
  36. package/lib/cjs/components/Course/index.d.ts +4 -0
  37. package/lib/cjs/components/Course/index.js +8 -0
  38. package/lib/cjs/components/CourseContentMenu/CourseContentMenu.d.ts +20 -0
  39. package/lib/cjs/components/CourseContentMenu/CourseContentMenu.js +47 -0
  40. package/lib/cjs/components/CourseContentMenu/constants.d.ts +1 -0
  41. package/lib/cjs/components/CourseContentMenu/constants.js +4 -0
  42. package/lib/cjs/components/CourseContentMenu/index.d.ts +3 -0
  43. package/lib/cjs/components/CourseContentMenu/index.js +5 -0
  44. package/lib/cjs/components/CourseDashboard/Header.d.ts +9 -0
  45. package/lib/cjs/components/CourseDashboard/Header.js +55 -0
  46. package/lib/cjs/components/CourseDashboard/Student/ActionButton.d.ts +8 -0
  47. package/lib/cjs/components/CourseDashboard/Student/ActionButton.js +16 -0
  48. package/lib/cjs/components/CourseDashboard/Student.d.ts +11 -0
  49. package/lib/cjs/components/CourseDashboard/Student.js +129 -0
  50. package/lib/cjs/components/CourseDashboard/Teacher/Comments.d.ts +9 -0
  51. package/lib/cjs/components/CourseDashboard/Teacher/Comments.js +106 -0
  52. package/lib/cjs/components/CourseDashboard/Teacher/Info.d.ts +10 -0
  53. package/lib/cjs/components/CourseDashboard/Teacher/Info.js +30 -0
  54. package/lib/cjs/components/CourseDashboard/Teacher/Students.d.ts +9 -0
  55. package/lib/cjs/components/CourseDashboard/Teacher/Students.js +67 -0
  56. package/lib/cjs/components/CourseDashboard/Teacher.d.ts +14 -0
  57. package/lib/cjs/components/CourseDashboard/Teacher.js +58 -0
  58. package/lib/cjs/components/CourseDashboard/constants.d.ts +1 -0
  59. package/lib/cjs/components/CourseDashboard/constants.js +4 -0
  60. package/lib/cjs/components/CourseDashboard/index.d.ts +9 -0
  61. package/lib/cjs/components/CourseDashboard/index.js +6 -0
  62. package/lib/cjs/components/CourseDashboard/types.d.ts +24 -0
  63. package/lib/cjs/components/CourseDashboard/types.js +8 -0
  64. package/lib/cjs/components/CourseForm/CourseForm.d.ts +72 -0
  65. package/lib/cjs/components/CourseForm/CourseForm.js +261 -0
  66. package/lib/cjs/components/CourseForm/Edit.d.ts +24 -0
  67. package/lib/cjs/components/CourseForm/Edit.js +49 -0
  68. package/lib/cjs/components/CourseForm/Skeleton.d.ts +1 -0
  69. package/lib/cjs/components/CourseForm/Skeleton.js +17 -0
  70. package/lib/cjs/components/CourseForm/UploadCourseCover.d.ts +50 -0
  71. package/lib/cjs/components/CourseForm/UploadCourseCover.js +125 -0
  72. package/lib/cjs/components/CourseForm/constants.d.ts +1 -0
  73. package/lib/cjs/components/CourseForm/constants.js +4 -0
  74. package/lib/cjs/components/CourseForm/index.d.ts +4 -0
  75. package/lib/cjs/components/CourseForm/index.js +8 -0
  76. package/lib/cjs/components/CourseFormDialog/CourseFormDialog.d.ts +48 -0
  77. package/lib/cjs/components/CourseFormDialog/CourseFormDialog.js +57 -0
  78. package/lib/cjs/components/CourseFormDialog/constants.d.ts +1 -0
  79. package/lib/cjs/components/CourseFormDialog/constants.js +4 -0
  80. package/lib/cjs/components/CourseFormDialog/index.d.ts +3 -0
  81. package/lib/cjs/components/CourseFormDialog/index.js +5 -0
  82. package/lib/cjs/components/CourseJoinButton/CourseJoinButton.d.ts +56 -0
  83. package/lib/cjs/components/CourseJoinButton/CourseJoinButton.js +148 -0
  84. package/lib/cjs/components/CourseJoinButton/index.d.ts +3 -0
  85. package/lib/cjs/components/CourseJoinButton/index.js +5 -0
  86. package/lib/cjs/components/CourseParticipantsButton/CourseParticipantsButton.d.ts +53 -0
  87. package/lib/cjs/components/CourseParticipantsButton/CourseParticipantsButton.js +148 -0
  88. package/lib/cjs/components/CourseParticipantsButton/index.d.ts +3 -0
  89. package/lib/cjs/components/CourseParticipantsButton/index.js +5 -0
  90. package/lib/cjs/components/Courses/Courses.d.ts +95 -0
  91. package/lib/cjs/components/Courses/Courses.js +236 -0
  92. package/lib/cjs/components/Courses/Skeleton.d.ts +54 -0
  93. package/lib/cjs/components/Courses/Skeleton.js +45 -0
  94. package/lib/cjs/components/Courses/constants.d.ts +1 -0
  95. package/lib/cjs/components/Courses/constants.js +4 -0
  96. package/lib/cjs/components/Courses/index.d.ts +4 -0
  97. package/lib/cjs/components/Courses/index.js +8 -0
  98. package/lib/cjs/components/Courses/prefetchedCourses.d.ts +81 -0
  99. package/lib/cjs/components/Courses/prefetchedCourses.js +186 -0
  100. package/lib/cjs/components/CreateCourseButton/CreateCourseButton.d.ts +38 -0
  101. package/lib/cjs/components/CreateCourseButton/CreateCourseButton.js +81 -0
  102. package/lib/cjs/components/CreateCourseButton/index.d.ts +3 -0
  103. package/lib/cjs/components/CreateCourseButton/index.js +5 -0
  104. package/lib/cjs/components/CreateEventButton/CreateEventButton.d.ts +1 -1
  105. package/lib/cjs/components/CreateEventButton/CreateEventButton.js +1 -1
  106. package/lib/cjs/components/CreateEventWidget/CreateEventWidget.js +2 -2
  107. package/lib/cjs/components/CreateLiveStreamButton/CreateLiveStreamButton.d.ts +44 -0
  108. package/lib/cjs/components/CreateLiveStreamButton/CreateLiveStreamButton.js +92 -0
  109. package/lib/cjs/components/CreateLiveStreamButton/index.d.ts +3 -0
  110. package/lib/cjs/components/CreateLiveStreamButton/index.js +5 -0
  111. package/lib/cjs/components/CreateLiveStreamDialog/CreateLiveStreamDialog.d.ts +49 -0
  112. package/lib/cjs/components/CreateLiveStreamDialog/CreateLiveStreamDialog.js +105 -0
  113. package/lib/cjs/components/CreateLiveStreamDialog/LiveStreamSelector/LiveStreamSelector.d.ts +47 -0
  114. package/lib/cjs/components/CreateLiveStreamDialog/LiveStreamSelector/LiveStreamSelector.js +189 -0
  115. package/lib/cjs/components/CreateLiveStreamDialog/constants.d.ts +1 -0
  116. package/lib/cjs/components/CreateLiveStreamDialog/constants.js +4 -0
  117. package/lib/cjs/components/CreateLiveStreamDialog/index.d.ts +3 -0
  118. package/lib/cjs/components/CreateLiveStreamDialog/index.js +5 -0
  119. package/lib/cjs/components/CreateLiveStreamDialog/types.d.ts +8 -0
  120. package/lib/cjs/components/CreateLiveStreamDialog/types.js +13 -0
  121. package/lib/cjs/components/EditCourse/Customize.d.ts +9 -0
  122. package/lib/cjs/components/EditCourse/Customize.js +35 -0
  123. package/lib/cjs/components/EditCourse/EditCourse.d.ts +12 -0
  124. package/lib/cjs/components/EditCourse/EditCourse.js +99 -0
  125. package/lib/cjs/components/EditCourse/Lessons/AddButton.d.ts +9 -0
  126. package/lib/cjs/components/EditCourse/Lessons/AddButton.js +29 -0
  127. package/lib/cjs/components/EditCourse/Lessons/ChangeLessonStatus.d.ts +11 -0
  128. package/lib/cjs/components/EditCourse/Lessons/ChangeLessonStatus.js +90 -0
  129. package/lib/cjs/components/EditCourse/Lessons/FieldName.d.ts +15 -0
  130. package/lib/cjs/components/EditCourse/Lessons/FieldName.js +83 -0
  131. package/lib/cjs/components/EditCourse/Lessons/LessonRow.d.ts +15 -0
  132. package/lib/cjs/components/EditCourse/Lessons/LessonRow.js +72 -0
  133. package/lib/cjs/components/EditCourse/Lessons/SectionRow.d.ts +14 -0
  134. package/lib/cjs/components/EditCourse/Lessons/SectionRow.js +136 -0
  135. package/lib/cjs/components/EditCourse/Lessons/Skeleton.d.ts +1 -0
  136. package/lib/cjs/components/EditCourse/Lessons/Skeleton.js +20 -0
  137. package/lib/cjs/components/EditCourse/Lessons.d.ts +9 -0
  138. package/lib/cjs/components/EditCourse/Lessons.js +153 -0
  139. package/lib/cjs/components/EditCourse/MenuRow.d.ts +9 -0
  140. package/lib/cjs/components/EditCourse/MenuRow.js +22 -0
  141. package/lib/cjs/components/EditCourse/Options/Skeleton.d.ts +1 -0
  142. package/lib/cjs/components/EditCourse/Options/Skeleton.js +14 -0
  143. package/lib/cjs/components/EditCourse/Options/SwitchForm.d.ts +11 -0
  144. package/lib/cjs/components/EditCourse/Options/SwitchForm.js +20 -0
  145. package/lib/cjs/components/EditCourse/Options.d.ts +9 -0
  146. package/lib/cjs/components/EditCourse/Options.js +99 -0
  147. package/lib/cjs/components/EditCourse/Requests.d.ts +9 -0
  148. package/lib/cjs/components/EditCourse/Requests.js +96 -0
  149. package/lib/cjs/components/EditCourse/Status.d.ts +6 -0
  150. package/lib/cjs/components/EditCourse/Status.js +24 -0
  151. package/lib/cjs/components/EditCourse/Users/Skeleton.d.ts +1 -0
  152. package/lib/cjs/components/EditCourse/Users/Skeleton.js +19 -0
  153. package/lib/cjs/components/EditCourse/Users.d.ts +9 -0
  154. package/lib/cjs/components/EditCourse/Users.js +120 -0
  155. package/lib/cjs/components/EditCourse/constants.d.ts +1 -0
  156. package/lib/cjs/components/EditCourse/constants.js +4 -0
  157. package/lib/cjs/components/EditCourse/hooks.d.ts +3 -0
  158. package/lib/cjs/components/EditCourse/hooks.js +22 -0
  159. package/lib/cjs/components/EditCourse/index.d.ts +3 -0
  160. package/lib/cjs/components/EditCourse/index.js +6 -0
  161. package/lib/cjs/components/EditCourse/types.d.ts +24 -0
  162. package/lib/cjs/components/EditCourse/types.js +21 -0
  163. package/lib/cjs/components/EditEventButton/EditEventButton.js +2 -2
  164. package/lib/cjs/components/Editor/Editor.d.ts +20 -0
  165. package/lib/cjs/components/Editor/Editor.js +7 -3
  166. package/lib/cjs/components/Editor/nodes/DocNode.d.ts +39 -0
  167. package/lib/cjs/components/Editor/nodes/DocNode.js +181 -0
  168. package/lib/cjs/components/Editor/nodes/index.d.ts +2 -1
  169. package/lib/cjs/components/Editor/nodes/index.js +3 -1
  170. package/lib/cjs/components/Editor/plugins/AutoLinkPlugin.js +14 -2
  171. package/lib/cjs/components/Editor/plugins/MediaPlugin.d.ts +13 -0
  172. package/lib/cjs/components/Editor/plugins/MediaPlugin.js +143 -0
  173. package/lib/cjs/components/Editor/plugins/ToolbarPlugin.d.ts +3 -0
  174. package/lib/cjs/components/Editor/plugins/ToolbarPlugin.js +4 -3
  175. package/lib/cjs/components/Editor/plugins/index.d.ts +2 -1
  176. package/lib/cjs/components/Editor/plugins/index.js +3 -1
  177. package/lib/cjs/components/Event/Event.js +4 -4
  178. package/lib/cjs/components/EventForm/EventAddress.d.ts +4 -2
  179. package/lib/cjs/components/EventForm/EventAddress.js +55 -8
  180. package/lib/cjs/components/EventForm/EventForm.d.ts +12 -1
  181. package/lib/cjs/components/EventForm/EventForm.js +87 -21
  182. package/lib/cjs/components/EventForm/types.d.ts +2 -1
  183. package/lib/cjs/components/EventFormDialog/EventFormDialog.d.ts +1 -1
  184. package/lib/cjs/components/EventFormDialog/EventFormDialog.js +3 -3
  185. package/lib/cjs/components/EventInfoWidget/EventInfoWidget.js +1 -1
  186. package/lib/cjs/components/EventInviteButton/EventInviteButton.js +5 -5
  187. package/lib/cjs/components/EventMediaWidget/EventMediaWidget.js +5 -2
  188. package/lib/cjs/components/EventMembersWidget/EventMembersWidget.js +11 -7
  189. package/lib/cjs/components/EventMembersWidget/TabContentComponent.js +11 -6
  190. package/lib/cjs/components/EventParticipantsButton/EventParticipantsButton.js +5 -5
  191. package/lib/cjs/components/EventSubscribeButton/EventSubscribeButton.js +1 -1
  192. package/lib/cjs/components/Events/Events.d.ts +6 -0
  193. package/lib/cjs/components/Events/Events.js +11 -11
  194. package/lib/cjs/components/FeedObject/Actions/Share/Share.js +2 -2
  195. package/lib/cjs/components/FeedObject/Activities/Activities.js +2 -2
  196. package/lib/cjs/components/FeedObject/Activities/ActivitiesMenu/ActivitiesMenu.js +19 -19
  197. package/lib/cjs/components/FeedObject/FeedObject.js +2 -2
  198. package/lib/cjs/components/GroupActionsMenu/index.js +1 -1
  199. package/lib/cjs/components/GroupSettingsIconButton/GroupSettingsIconButton.js +1 -1
  200. package/lib/cjs/components/InlineComposerWidget/InlineComposerWidget.js +1 -1
  201. package/lib/cjs/components/LessonAppbar/LessonAppbar.d.ts +42 -0
  202. package/lib/cjs/components/LessonAppbar/LessonAppbar.js +32 -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 +93 -0
  208. package/lib/cjs/components/LessonCommentObject/LessonCommentObject.js +201 -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 +172 -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/LessonCompletedDialog/LessonCompletedDialog.d.ts +8 -0
  224. package/lib/cjs/components/LessonCompletedDialog/LessonCompletedDialog.js +36 -0
  225. package/lib/cjs/components/LessonCompletedDialog/index.d.ts +3 -0
  226. package/lib/cjs/components/LessonCompletedDialog/index.js +5 -0
  227. package/lib/cjs/components/LessonDrawer/LessonDrawer.d.ts +45 -0
  228. package/lib/cjs/components/LessonDrawer/LessonDrawer.js +37 -0
  229. package/lib/cjs/components/LessonDrawer/constants.d.ts +1 -0
  230. package/lib/cjs/components/LessonDrawer/constants.js +4 -0
  231. package/lib/cjs/components/LessonDrawer/index.d.ts +3 -0
  232. package/lib/cjs/components/LessonDrawer/index.js +5 -0
  233. package/lib/cjs/components/LessonEditForm/LessonEditForm.d.ts +24 -0
  234. package/lib/cjs/components/LessonEditForm/LessonEditForm.js +45 -0
  235. package/lib/cjs/components/LessonEditForm/constants.d.ts +1 -0
  236. package/lib/cjs/components/LessonEditForm/constants.js +4 -0
  237. package/lib/cjs/components/LessonEditForm/index.d.ts +3 -0
  238. package/lib/cjs/components/LessonEditForm/index.js +5 -0
  239. package/lib/cjs/components/LessonObject/LessonObject.d.ts +40 -0
  240. package/lib/cjs/components/LessonObject/LessonObject.js +85 -0
  241. package/lib/cjs/components/LessonObject/constants.d.ts +1 -0
  242. package/lib/cjs/components/LessonObject/constants.js +4 -0
  243. package/lib/cjs/components/LessonObject/index.d.ts +3 -0
  244. package/lib/cjs/components/LessonObject/index.js +5 -0
  245. package/lib/cjs/components/LessonReleaseMenu/LessonReleaseMenu.d.ts +26 -0
  246. package/lib/cjs/components/LessonReleaseMenu/LessonReleaseMenu.js +142 -0
  247. package/lib/cjs/components/LessonReleaseMenu/constants.d.ts +5 -0
  248. package/lib/cjs/components/LessonReleaseMenu/constants.js +9 -0
  249. package/lib/cjs/components/LessonReleaseMenu/index.d.ts +3 -0
  250. package/lib/cjs/components/LessonReleaseMenu/index.js +5 -0
  251. package/lib/cjs/components/LiveStream/LiveStream.d.ts +79 -0
  252. package/lib/cjs/components/LiveStream/LiveStream.js +143 -0
  253. package/lib/cjs/components/LiveStream/Skeleton.d.ts +46 -0
  254. package/lib/cjs/components/LiveStream/Skeleton.js +92 -0
  255. package/lib/cjs/components/LiveStream/constants.d.ts +1 -0
  256. package/lib/cjs/components/LiveStream/constants.js +4 -0
  257. package/lib/cjs/components/LiveStream/index.d.ts +4 -0
  258. package/lib/cjs/components/LiveStream/index.js +8 -0
  259. package/lib/cjs/components/LiveStreamForm/LiveStreamForm.d.ts +55 -0
  260. package/lib/cjs/components/LiveStreamForm/LiveStreamForm.js +242 -0
  261. package/lib/cjs/components/LiveStreamForm/LiveStreamFormSettings.d.ts +47 -0
  262. package/lib/cjs/components/LiveStreamForm/LiveStreamFormSettings.js +80 -0
  263. package/lib/cjs/components/LiveStreamForm/constants.d.ts +15 -0
  264. package/lib/cjs/components/LiveStreamForm/constants.js +18 -0
  265. package/lib/cjs/components/LiveStreamForm/index.d.ts +3 -0
  266. package/lib/cjs/components/LiveStreamForm/index.js +5 -0
  267. package/lib/cjs/components/LiveStreamForm/types.d.ts +11 -0
  268. package/lib/cjs/components/LiveStreamForm/types.js +2 -0
  269. package/lib/cjs/components/LiveStreamRoom/LiveStreamRoom.d.ts +85 -0
  270. package/lib/cjs/components/LiveStreamRoom/LiveStreamRoom.js +215 -0
  271. package/lib/cjs/components/LiveStreamRoom/LiveStreamVideoConference/ControlBar.d.ts +29 -0
  272. package/lib/cjs/components/LiveStreamRoom/LiveStreamVideoConference/ControlBar.js +62 -0
  273. package/lib/cjs/components/LiveStreamRoom/LiveStreamVideoConference/DisconnectButton.d.ts +10 -0
  274. package/lib/cjs/components/LiveStreamRoom/LiveStreamVideoConference/DisconnectButton.js +76 -0
  275. package/lib/cjs/components/LiveStreamRoom/LiveStreamVideoConference/FocusLayout.d.ts +22 -0
  276. package/lib/cjs/components/LiveStreamRoom/LiveStreamVideoConference/FocusLayout.js +33 -0
  277. package/lib/cjs/components/LiveStreamRoom/LiveStreamVideoConference/LiveStreamProvider.d.ts +17 -0
  278. package/lib/cjs/components/LiveStreamRoom/LiveStreamVideoConference/LiveStreamProvider.js +13 -0
  279. package/lib/cjs/components/LiveStreamRoom/LiveStreamVideoConference/LiveStreamVideoConference.d.ts +77 -0
  280. package/lib/cjs/components/LiveStreamRoom/LiveStreamVideoConference/LiveStreamVideoConference.js +155 -0
  281. package/lib/cjs/components/LiveStreamRoom/LiveStreamVideoConference/NoParticipants.d.ts +4 -0
  282. package/lib/cjs/components/LiveStreamRoom/LiveStreamVideoConference/NoParticipants.js +37 -0
  283. package/lib/cjs/components/LiveStreamRoom/LiveStreamVideoConference/ParticipantPlaceholder.d.ts +6 -0
  284. package/lib/cjs/components/LiveStreamRoom/LiveStreamVideoConference/ParticipantPlaceholder.js +8 -0
  285. package/lib/cjs/components/LiveStreamRoom/LiveStreamVideoConference/ParticipantTile.d.ts +29 -0
  286. package/lib/cjs/components/LiveStreamRoom/LiveStreamVideoConference/ParticipantTile.js +65 -0
  287. package/lib/cjs/components/LiveStreamRoom/LiveStreamVideoConference/ParticipantTileActions.d.ts +30 -0
  288. package/lib/cjs/components/LiveStreamRoom/LiveStreamVideoConference/ParticipantTileActions.js +215 -0
  289. package/lib/cjs/components/LiveStreamRoom/LiveStreamVideoConference/ParticipantTileAvatar.d.ts +15 -0
  290. package/lib/cjs/components/LiveStreamRoom/LiveStreamVideoConference/ParticipantTileAvatar.js +39 -0
  291. package/lib/cjs/components/LiveStreamRoom/LiveStreamVideoConference/PreJoin.d.ts +58 -0
  292. package/lib/cjs/components/LiveStreamRoom/LiveStreamVideoConference/PreJoin.js +257 -0
  293. package/lib/cjs/components/LiveStreamRoom/LiveStreamVideoConference/RecordingIndicator.d.ts +5 -0
  294. package/lib/cjs/components/LiveStreamRoom/LiveStreamVideoConference/RecordingIndicator.js +32 -0
  295. package/lib/cjs/components/LiveStreamRoom/LiveStreamVideoConference/SettingsMenuToggle.d.ts +19 -0
  296. package/lib/cjs/components/LiveStreamRoom/LiveStreamVideoConference/SettingsMenuToggle.js +35 -0
  297. package/lib/cjs/components/LiveStreamRoom/LiveStreamVideoConference/TrackToggle.d.ts +23 -0
  298. package/lib/cjs/components/LiveStreamRoom/LiveStreamVideoConference/TrackToggle.js +31 -0
  299. package/lib/cjs/components/LiveStreamRoom/LiveStreamVideoConference/VideoConference.d.ts +26 -0
  300. package/lib/cjs/components/LiveStreamRoom/LiveStreamVideoConference/VideoConference.js +153 -0
  301. package/lib/cjs/components/LiveStreamRoom/LiveStreamVideoConference/constants.d.ts +3 -0
  302. package/lib/cjs/components/LiveStreamRoom/LiveStreamVideoConference/constants.js +6 -0
  303. package/lib/cjs/components/LiveStreamRoom/LiveStreamVideoConference/index.d.ts +3 -0
  304. package/lib/cjs/components/LiveStreamRoom/LiveStreamVideoConference/index.js +5 -0
  305. package/lib/cjs/components/LiveStreamRoom/LiveStreamVideoConference/useLiveStreamCheck.d.ts +7 -0
  306. package/lib/cjs/components/LiveStreamRoom/LiveStreamVideoConference/useLiveStreamCheck.js +195 -0
  307. package/lib/cjs/components/LiveStreamRoom/LiveStreamVideoConference/utils.d.ts +27 -0
  308. package/lib/cjs/components/LiveStreamRoom/LiveStreamVideoConference/utils.js +82 -0
  309. package/lib/cjs/components/LiveStreamRoom/constants.d.ts +21 -0
  310. package/lib/cjs/components/LiveStreamRoom/constants.js +24 -0
  311. package/lib/cjs/components/LiveStreamRoom/index.d.ts +3 -0
  312. package/lib/cjs/components/LiveStreamRoom/index.js +5 -0
  313. package/lib/cjs/components/LiveStreamRoom/types.d.ts +22 -0
  314. package/lib/cjs/components/LiveStreamRoom/types.js +8 -0
  315. package/lib/cjs/components/MyEventsWidget/Skeleton.js +2 -4
  316. package/lib/cjs/components/NavigationMenuIconButton/DefaultDrawerContent.js +29 -2
  317. package/lib/cjs/components/NavigationMenuIconButton/DefaultDrawerSkeleton.d.ts +24 -0
  318. package/lib/cjs/components/NavigationMenuIconButton/DefaultDrawerSkeleton.js +40 -0
  319. package/lib/cjs/components/NavigationMenuIconButton/NavigationMenuDrawer.d.ts +16 -0
  320. package/lib/cjs/components/NavigationMenuIconButton/NavigationMenuDrawer.js +12 -3
  321. package/lib/cjs/components/NavigationSettingsIconButton/NavigationSettingsIconButton.js +1 -1
  322. package/lib/cjs/components/NavigationToolbar/NavigationToolbar.js +13 -4
  323. package/lib/cjs/components/NavigationToolbarMobile/NavigationToolbarMobile.d.ts +6 -0
  324. package/lib/cjs/components/NavigationToolbarMobile/NavigationToolbarMobile.js +3 -4
  325. package/lib/cjs/components/Notification/Comment/Comment.js +2 -2
  326. package/lib/cjs/components/Notification/LiveStream/LiveStream.d.ts +15 -0
  327. package/lib/cjs/components/Notification/LiveStream/LiveStream.js +75 -0
  328. package/lib/cjs/components/Notification/LiveStream/index.d.ts +3 -0
  329. package/lib/cjs/components/Notification/LiveStream/index.js +5 -0
  330. package/lib/cjs/components/Notification/Notification.js +6 -2
  331. package/lib/cjs/components/OnBoardingWidget/ActionsButton.js +1 -1
  332. package/lib/cjs/components/OnBoardingWidget/OnBoardingWidget.js +5 -5
  333. package/lib/cjs/components/PlatformWidget/constants.d.ts +4 -0
  334. package/lib/cjs/components/PlatformWidget/constants.js +5 -1
  335. package/lib/cjs/components/PrivateMessageSettingsIconButton/PrivateMessageSettingsIconButton.js +1 -1
  336. package/lib/cjs/components/PrivateMessageThread/PrivateMessageThread.js +3 -6
  337. package/lib/cjs/components/RelatedEventsWidget/RelatedEventsWidget.js +1 -1
  338. package/lib/cjs/components/SnippetNotifications/SnippetNotifications.js +4 -0
  339. package/lib/cjs/components/ToastNotifications/ToastNotifications.js +6 -2
  340. package/lib/cjs/components/UserActionIconButton/UserActionIconButton.js +1 -1
  341. package/lib/cjs/components/UserLiveStreamWidget/Skeleton.d.ts +2 -0
  342. package/lib/cjs/components/UserLiveStreamWidget/Skeleton.js +28 -0
  343. package/lib/cjs/components/UserLiveStreamWidget/UserLiveStreamWidget.d.ts +47 -0
  344. package/lib/cjs/components/UserLiveStreamWidget/UserLiveStreamWidget.js +133 -0
  345. package/lib/cjs/components/UserLiveStreamWidget/constants.d.ts +1 -0
  346. package/lib/cjs/components/UserLiveStreamWidget/constants.js +4 -0
  347. package/lib/cjs/components/UserLiveStreamWidget/index.d.ts +4 -0
  348. package/lib/cjs/components/UserLiveStreamWidget/index.js +8 -0
  349. package/lib/cjs/components/UserProfileHeader/UserProfileHeader.js +1 -1
  350. package/lib/cjs/components/VoteButton/VoteButton.js +1 -1
  351. package/lib/cjs/constants/Course.d.ts +2 -0
  352. package/lib/cjs/constants/Course.js +5 -0
  353. package/lib/cjs/constants/LiveStream.d.ts +3 -0
  354. package/lib/cjs/constants/LiveStream.js +6 -0
  355. package/lib/cjs/constants/PubSub.d.ts +12 -0
  356. package/lib/cjs/constants/PubSub.js +14 -1
  357. package/lib/cjs/index.d.ts +32 -2
  358. package/lib/cjs/index.js +78 -6
  359. package/lib/cjs/shared/AccordionLessons/AccordionLessons.d.ts +7 -0
  360. package/lib/cjs/shared/AccordionLessons/AccordionLessons.js +47 -0
  361. package/lib/cjs/shared/AccordionLessons/index.d.ts +3 -0
  362. package/lib/cjs/shared/AccordionLessons/index.js +5 -0
  363. package/lib/cjs/shared/AddUsersButton/AddUsersButton.d.ts +35 -0
  364. package/lib/cjs/shared/AddUsersButton/AddUsersButton.js +135 -0
  365. package/lib/cjs/shared/AddUsersButton/index.d.ts +3 -0
  366. package/lib/cjs/shared/AddUsersButton/index.js +5 -0
  367. package/lib/cjs/shared/AutoPlayer/index.js +1 -1
  368. package/lib/cjs/shared/BackdropScrollDisabled/BackdropScrollDisabled.d.ts +5 -0
  369. package/lib/cjs/shared/BackdropScrollDisabled/BackdropScrollDisabled.js +14 -0
  370. package/lib/cjs/shared/BackdropScrollDisabled/index.d.ts +2 -0
  371. package/lib/cjs/shared/BackdropScrollDisabled/index.js +5 -0
  372. package/lib/cjs/shared/ContributionActionsMenu/index.js +1 -1
  373. package/lib/cjs/shared/CopyTextArea/index.d.ts +2 -2
  374. package/lib/cjs/shared/CopyTextArea/index.js +8 -2
  375. package/lib/cjs/shared/CourseUsersTable/ChangeUsersStatus.d.ts +9 -0
  376. package/lib/cjs/shared/CourseUsersTable/ChangeUsersStatus.js +58 -0
  377. package/lib/cjs/shared/CourseUsersTable/CourseUsersTable.d.ts +17 -0
  378. package/lib/cjs/shared/CourseUsersTable/CourseUsersTable.js +105 -0
  379. package/lib/cjs/shared/CourseUsersTable/RequestButton.d.ts +9 -0
  380. package/lib/cjs/shared/CourseUsersTable/RequestButton.js +75 -0
  381. package/lib/cjs/shared/CourseUsersTable/RowSkeleton.d.ts +8 -0
  382. package/lib/cjs/shared/CourseUsersTable/RowSkeleton.js +14 -0
  383. package/lib/cjs/shared/CourseUsersTable/SeeProgressButton.d.ts +9 -0
  384. package/lib/cjs/shared/CourseUsersTable/SeeProgressButton.js +53 -0
  385. package/lib/cjs/shared/CourseUsersTable/Skeleton.d.ts +1 -0
  386. package/lib/cjs/shared/CourseUsersTable/Skeleton.js +16 -0
  387. package/lib/cjs/shared/CourseUsersTable/constants.d.ts +1 -0
  388. package/lib/cjs/shared/CourseUsersTable/constants.js +4 -0
  389. package/lib/cjs/shared/CourseUsersTable/index.d.ts +4 -0
  390. package/lib/cjs/shared/CourseUsersTable/index.js +8 -0
  391. package/lib/cjs/shared/DateTimeAgo/index.d.ts +1 -1
  392. package/lib/cjs/shared/EmptyStatus/EmptyStatus.d.ts +11 -0
  393. package/lib/cjs/shared/EmptyStatus/EmptyStatus.js +26 -0
  394. package/lib/cjs/shared/EmptyStatus/index.d.ts +3 -0
  395. package/lib/cjs/shared/EmptyStatus/index.js +5 -0
  396. package/lib/cjs/shared/EventInfoDetails/index.js +18 -2
  397. package/lib/cjs/shared/LessonCommentActionsMenu/index.d.ts +41 -0
  398. package/lib/cjs/shared/LessonCommentActionsMenu/index.js +197 -0
  399. package/lib/cjs/shared/LiveStreamInfoDetails/index.d.ts +17 -0
  400. package/lib/cjs/shared/LiveStreamInfoDetails/index.js +53 -0
  401. package/lib/cjs/shared/Media/File/PreviewComponent.js +3 -4
  402. package/lib/cjs/shared/Media/Link/DisplayComponent.js +1 -4
  403. package/lib/cjs/shared/UpScalingTierBadge/UpScalingTierBadge.d.ts +5 -0
  404. package/lib/cjs/shared/UpScalingTierBadge/UpScalingTierBadge.js +14 -0
  405. package/lib/cjs/shared/UpScalingTierBadge/index.d.ts +7 -0
  406. package/lib/cjs/shared/UpScalingTierBadge/index.js +72 -0
  407. package/lib/cjs/types/course.d.ts +13 -0
  408. package/lib/cjs/types/course.js +19 -0
  409. package/lib/cjs/types/index.d.ts +2 -1
  410. package/lib/cjs/types/index.js +5 -1
  411. package/lib/cjs/types/liveStream.d.ts +5 -0
  412. package/lib/cjs/types/liveStream.js +9 -0
  413. package/lib/cjs/utils/contribution.d.ts +7 -0
  414. package/lib/cjs/utils/contribution.js +14 -3
  415. package/lib/cjs/utils/course.d.ts +16 -0
  416. package/lib/cjs/utils/course.js +41 -0
  417. package/lib/cjs/utils/liveStream.d.ts +4 -0
  418. package/lib/cjs/utils/liveStream.js +25 -0
  419. package/lib/esm/assets/courses/clapping.d.ts +1 -0
  420. package/lib/esm/assets/courses/clapping.js +1 -0
  421. package/lib/esm/assets/deafultCover.d.ts +2 -0
  422. package/lib/esm/assets/deafultCover.js +1 -0
  423. package/lib/esm/assets/liveStream/event.d.ts +2 -0
  424. package/lib/esm/assets/liveStream/event.js +1 -0
  425. package/lib/esm/assets/liveStream/live.d.ts +2 -0
  426. package/lib/esm/assets/liveStream/live.js +1 -0
  427. package/lib/esm/components/AccountDeleteButton/AccountDeleteButton.js +4 -3
  428. package/lib/esm/components/BottomNavigation/BottomNavigation.js +17 -1
  429. package/lib/esm/components/Category/Skeleton.js +1 -1
  430. package/lib/esm/components/ChangeCover/ChangeCover.js +1 -1
  431. package/lib/esm/components/CommentObject/CommentObject.d.ts +5 -0
  432. package/lib/esm/components/CommentObject/CommentObject.js +9 -6
  433. package/lib/esm/components/CommentObjectReply/CommentObjectReply.d.ts +24 -2
  434. package/lib/esm/components/CommentObjectReply/CommentObjectReply.js +12 -5
  435. package/lib/esm/components/Composer/Composer.js +27 -4
  436. package/lib/esm/components/Composer/Content/ContentDiscussion/ContentDiscussion.d.ts +18 -0
  437. package/lib/esm/components/Composer/Content/ContentDiscussion/ContentDiscussion.js +39 -7
  438. package/lib/esm/components/Composer/Content/ContentLesson/ContentLesson.d.ts +38 -0
  439. package/lib/esm/components/Composer/Content/ContentLesson/ContentLesson.js +33 -0
  440. package/lib/esm/components/Composer/Content/ContentLesson/index.d.ts +3 -0
  441. package/lib/esm/components/Composer/Content/ContentLesson/index.js +2 -0
  442. package/lib/esm/components/Composer/constants.d.ts +3 -0
  443. package/lib/esm/components/Composer/constants.js +3 -0
  444. package/lib/esm/components/ComposerIconButton/ComposerIconButton.d.ts +30 -2
  445. package/lib/esm/components/ComposerIconButton/ComposerIconButton.js +126 -21
  446. package/lib/esm/components/Course/Course.d.ts +91 -0
  447. package/lib/esm/components/Course/Course.js +176 -0
  448. package/lib/esm/components/Course/Placeholder.d.ts +40 -0
  449. package/lib/esm/components/Course/Placeholder.js +62 -0
  450. package/lib/esm/components/Course/Skeleton.d.ts +46 -0
  451. package/lib/esm/components/Course/Skeleton.js +74 -0
  452. package/lib/esm/components/Course/constants.d.ts +1 -0
  453. package/lib/esm/components/Course/constants.js +1 -0
  454. package/lib/esm/components/Course/index.d.ts +4 -0
  455. package/lib/esm/components/Course/index.js +4 -0
  456. package/lib/esm/components/CourseContentMenu/CourseContentMenu.d.ts +20 -0
  457. package/lib/esm/components/CourseContentMenu/CourseContentMenu.js +44 -0
  458. package/lib/esm/components/CourseContentMenu/constants.d.ts +1 -0
  459. package/lib/esm/components/CourseContentMenu/constants.js +1 -0
  460. package/lib/esm/components/CourseContentMenu/index.d.ts +3 -0
  461. package/lib/esm/components/CourseContentMenu/index.js +2 -0
  462. package/lib/esm/components/CourseDashboard/Header.d.ts +9 -0
  463. package/lib/esm/components/CourseDashboard/Header.js +53 -0
  464. package/lib/esm/components/CourseDashboard/Student/ActionButton.d.ts +8 -0
  465. package/lib/esm/components/CourseDashboard/Student/ActionButton.js +13 -0
  466. package/lib/esm/components/CourseDashboard/Student.d.ts +11 -0
  467. package/lib/esm/components/CourseDashboard/Student.js +127 -0
  468. package/lib/esm/components/CourseDashboard/Teacher/Comments.d.ts +9 -0
  469. package/lib/esm/components/CourseDashboard/Teacher/Comments.js +104 -0
  470. package/lib/esm/components/CourseDashboard/Teacher/Info.d.ts +10 -0
  471. package/lib/esm/components/CourseDashboard/Teacher/Info.js +27 -0
  472. package/lib/esm/components/CourseDashboard/Teacher/Students.d.ts +9 -0
  473. package/lib/esm/components/CourseDashboard/Teacher/Students.js +64 -0
  474. package/lib/esm/components/CourseDashboard/Teacher.d.ts +14 -0
  475. package/lib/esm/components/CourseDashboard/Teacher.js +56 -0
  476. package/lib/esm/components/CourseDashboard/constants.d.ts +1 -0
  477. package/lib/esm/components/CourseDashboard/constants.js +1 -0
  478. package/lib/esm/components/CourseDashboard/index.d.ts +9 -0
  479. package/lib/esm/components/CourseDashboard/index.js +3 -0
  480. package/lib/esm/components/CourseDashboard/types.d.ts +24 -0
  481. package/lib/esm/components/CourseDashboard/types.js +5 -0
  482. package/lib/esm/components/CourseForm/CourseForm.d.ts +72 -0
  483. package/lib/esm/components/CourseForm/CourseForm.js +257 -0
  484. package/lib/esm/components/CourseForm/Edit.d.ts +24 -0
  485. package/lib/esm/components/CourseForm/Edit.js +46 -0
  486. package/lib/esm/components/CourseForm/Skeleton.d.ts +1 -0
  487. package/lib/esm/components/CourseForm/Skeleton.js +14 -0
  488. package/lib/esm/components/CourseForm/UploadCourseCover.d.ts +50 -0
  489. package/lib/esm/components/CourseForm/UploadCourseCover.js +122 -0
  490. package/lib/esm/components/CourseForm/constants.d.ts +1 -0
  491. package/lib/esm/components/CourseForm/constants.js +1 -0
  492. package/lib/esm/components/CourseForm/index.d.ts +4 -0
  493. package/lib/esm/components/CourseForm/index.js +4 -0
  494. package/lib/esm/components/CourseFormDialog/CourseFormDialog.d.ts +48 -0
  495. package/lib/esm/components/CourseFormDialog/CourseFormDialog.js +54 -0
  496. package/lib/esm/components/CourseFormDialog/constants.d.ts +1 -0
  497. package/lib/esm/components/CourseFormDialog/constants.js +1 -0
  498. package/lib/esm/components/CourseFormDialog/index.d.ts +3 -0
  499. package/lib/esm/components/CourseFormDialog/index.js +2 -0
  500. package/lib/esm/components/CourseJoinButton/CourseJoinButton.d.ts +56 -0
  501. package/lib/esm/components/CourseJoinButton/CourseJoinButton.js +145 -0
  502. package/lib/esm/components/CourseJoinButton/index.d.ts +3 -0
  503. package/lib/esm/components/CourseJoinButton/index.js +2 -0
  504. package/lib/esm/components/CourseParticipantsButton/CourseParticipantsButton.d.ts +53 -0
  505. package/lib/esm/components/CourseParticipantsButton/CourseParticipantsButton.js +145 -0
  506. package/lib/esm/components/CourseParticipantsButton/index.d.ts +3 -0
  507. package/lib/esm/components/CourseParticipantsButton/index.js +2 -0
  508. package/lib/esm/components/Courses/Courses.d.ts +95 -0
  509. package/lib/esm/components/Courses/Courses.js +232 -0
  510. package/lib/esm/components/Courses/Skeleton.d.ts +54 -0
  511. package/lib/esm/components/Courses/Skeleton.js +42 -0
  512. package/lib/esm/components/Courses/constants.d.ts +1 -0
  513. package/lib/esm/components/Courses/constants.js +1 -0
  514. package/lib/esm/components/Courses/index.d.ts +4 -0
  515. package/lib/esm/components/Courses/index.js +4 -0
  516. package/lib/esm/components/Courses/prefetchedCourses.d.ts +81 -0
  517. package/lib/esm/components/Courses/prefetchedCourses.js +183 -0
  518. package/lib/esm/components/CreateCourseButton/CreateCourseButton.d.ts +38 -0
  519. package/lib/esm/components/CreateCourseButton/CreateCourseButton.js +78 -0
  520. package/lib/esm/components/CreateCourseButton/index.d.ts +3 -0
  521. package/lib/esm/components/CreateCourseButton/index.js +2 -0
  522. package/lib/esm/components/CreateEventButton/CreateEventButton.d.ts +1 -1
  523. package/lib/esm/components/CreateEventButton/CreateEventButton.js +1 -1
  524. package/lib/esm/components/CreateEventWidget/CreateEventWidget.js +2 -2
  525. package/lib/esm/components/CreateLiveStreamButton/CreateLiveStreamButton.d.ts +44 -0
  526. package/lib/esm/components/CreateLiveStreamButton/CreateLiveStreamButton.js +89 -0
  527. package/lib/esm/components/CreateLiveStreamButton/index.d.ts +3 -0
  528. package/lib/esm/components/CreateLiveStreamButton/index.js +2 -0
  529. package/lib/esm/components/CreateLiveStreamDialog/CreateLiveStreamDialog.d.ts +49 -0
  530. package/lib/esm/components/CreateLiveStreamDialog/CreateLiveStreamDialog.js +102 -0
  531. package/lib/esm/components/CreateLiveStreamDialog/LiveStreamSelector/LiveStreamSelector.d.ts +47 -0
  532. package/lib/esm/components/CreateLiveStreamDialog/LiveStreamSelector/LiveStreamSelector.js +184 -0
  533. package/lib/esm/components/CreateLiveStreamDialog/constants.d.ts +1 -0
  534. package/lib/esm/components/CreateLiveStreamDialog/constants.js +1 -0
  535. package/lib/esm/components/CreateLiveStreamDialog/index.d.ts +3 -0
  536. package/lib/esm/components/CreateLiveStreamDialog/index.js +2 -0
  537. package/lib/esm/components/CreateLiveStreamDialog/types.d.ts +8 -0
  538. package/lib/esm/components/CreateLiveStreamDialog/types.js +10 -0
  539. package/lib/esm/components/EditCourse/Customize.d.ts +9 -0
  540. package/lib/esm/components/EditCourse/Customize.js +32 -0
  541. package/lib/esm/components/EditCourse/EditCourse.d.ts +12 -0
  542. package/lib/esm/components/EditCourse/EditCourse.js +96 -0
  543. package/lib/esm/components/EditCourse/Lessons/AddButton.d.ts +9 -0
  544. package/lib/esm/components/EditCourse/Lessons/AddButton.js +27 -0
  545. package/lib/esm/components/EditCourse/Lessons/ChangeLessonStatus.d.ts +11 -0
  546. package/lib/esm/components/EditCourse/Lessons/ChangeLessonStatus.js +87 -0
  547. package/lib/esm/components/EditCourse/Lessons/FieldName.d.ts +15 -0
  548. package/lib/esm/components/EditCourse/Lessons/FieldName.js +80 -0
  549. package/lib/esm/components/EditCourse/Lessons/LessonRow.d.ts +15 -0
  550. package/lib/esm/components/EditCourse/Lessons/LessonRow.js +69 -0
  551. package/lib/esm/components/EditCourse/Lessons/SectionRow.d.ts +14 -0
  552. package/lib/esm/components/EditCourse/Lessons/SectionRow.js +133 -0
  553. package/lib/esm/components/EditCourse/Lessons/Skeleton.d.ts +1 -0
  554. package/lib/esm/components/EditCourse/Lessons/Skeleton.js +17 -0
  555. package/lib/esm/components/EditCourse/Lessons.d.ts +9 -0
  556. package/lib/esm/components/EditCourse/Lessons.js +150 -0
  557. package/lib/esm/components/EditCourse/MenuRow.d.ts +9 -0
  558. package/lib/esm/components/EditCourse/MenuRow.js +19 -0
  559. package/lib/esm/components/EditCourse/Options/Skeleton.d.ts +1 -0
  560. package/lib/esm/components/EditCourse/Options/Skeleton.js +11 -0
  561. package/lib/esm/components/EditCourse/Options/SwitchForm.d.ts +11 -0
  562. package/lib/esm/components/EditCourse/Options/SwitchForm.js +18 -0
  563. package/lib/esm/components/EditCourse/Options.d.ts +9 -0
  564. package/lib/esm/components/EditCourse/Options.js +96 -0
  565. package/lib/esm/components/EditCourse/Requests.d.ts +9 -0
  566. package/lib/esm/components/EditCourse/Requests.js +93 -0
  567. package/lib/esm/components/EditCourse/Status.d.ts +6 -0
  568. package/lib/esm/components/EditCourse/Status.js +21 -0
  569. package/lib/esm/components/EditCourse/Users/Skeleton.d.ts +1 -0
  570. package/lib/esm/components/EditCourse/Users/Skeleton.js +16 -0
  571. package/lib/esm/components/EditCourse/Users.d.ts +9 -0
  572. package/lib/esm/components/EditCourse/Users.js +117 -0
  573. package/lib/esm/components/EditCourse/constants.d.ts +1 -0
  574. package/lib/esm/components/EditCourse/constants.js +1 -0
  575. package/lib/esm/components/EditCourse/hooks.d.ts +3 -0
  576. package/lib/esm/components/EditCourse/hooks.js +17 -0
  577. package/lib/esm/components/EditCourse/index.d.ts +3 -0
  578. package/lib/esm/components/EditCourse/index.js +3 -0
  579. package/lib/esm/components/EditCourse/types.d.ts +24 -0
  580. package/lib/esm/components/EditCourse/types.js +18 -0
  581. package/lib/esm/components/EditEventButton/EditEventButton.js +2 -2
  582. package/lib/esm/components/Editor/Editor.d.ts +20 -0
  583. package/lib/esm/components/Editor/Editor.js +8 -4
  584. package/lib/esm/components/Editor/nodes/DocNode.d.ts +39 -0
  585. package/lib/esm/components/Editor/nodes/DocNode.js +175 -0
  586. package/lib/esm/components/Editor/nodes/index.d.ts +2 -1
  587. package/lib/esm/components/Editor/nodes/index.js +3 -1
  588. package/lib/esm/components/Editor/plugins/AutoLinkPlugin.js +14 -2
  589. package/lib/esm/components/Editor/plugins/MediaPlugin.d.ts +13 -0
  590. package/lib/esm/components/Editor/plugins/MediaPlugin.js +139 -0
  591. package/lib/esm/components/Editor/plugins/ToolbarPlugin.d.ts +3 -0
  592. package/lib/esm/components/Editor/plugins/ToolbarPlugin.js +4 -3
  593. package/lib/esm/components/Editor/plugins/index.d.ts +2 -1
  594. package/lib/esm/components/Editor/plugins/index.js +2 -1
  595. package/lib/esm/components/Event/Event.js +4 -4
  596. package/lib/esm/components/EventForm/EventAddress.d.ts +4 -2
  597. package/lib/esm/components/EventForm/EventAddress.js +55 -8
  598. package/lib/esm/components/EventForm/EventForm.d.ts +12 -1
  599. package/lib/esm/components/EventForm/EventForm.js +89 -23
  600. package/lib/esm/components/EventForm/types.d.ts +2 -1
  601. package/lib/esm/components/EventFormDialog/EventFormDialog.d.ts +1 -1
  602. package/lib/esm/components/EventFormDialog/EventFormDialog.js +3 -3
  603. package/lib/esm/components/EventInfoWidget/EventInfoWidget.js +1 -1
  604. package/lib/esm/components/EventInviteButton/EventInviteButton.js +5 -5
  605. package/lib/esm/components/EventMediaWidget/EventMediaWidget.js +5 -2
  606. package/lib/esm/components/EventMembersWidget/EventMembersWidget.js +11 -7
  607. package/lib/esm/components/EventMembersWidget/TabContentComponent.js +11 -6
  608. package/lib/esm/components/EventParticipantsButton/EventParticipantsButton.js +5 -5
  609. package/lib/esm/components/EventSubscribeButton/EventSubscribeButton.js +1 -1
  610. package/lib/esm/components/Events/Events.d.ts +6 -0
  611. package/lib/esm/components/Events/Events.js +11 -11
  612. package/lib/esm/components/FeedObject/Actions/Share/Share.js +2 -2
  613. package/lib/esm/components/FeedObject/Activities/Activities.js +2 -2
  614. package/lib/esm/components/FeedObject/Activities/ActivitiesMenu/ActivitiesMenu.js +20 -20
  615. package/lib/esm/components/FeedObject/FeedObject.js +2 -2
  616. package/lib/esm/components/GroupActionsMenu/index.js +1 -1
  617. package/lib/esm/components/GroupSettingsIconButton/GroupSettingsIconButton.js +1 -1
  618. package/lib/esm/components/InlineComposerWidget/InlineComposerWidget.js +2 -2
  619. package/lib/esm/components/LessonAppbar/LessonAppbar.d.ts +42 -0
  620. package/lib/esm/components/LessonAppbar/LessonAppbar.js +29 -0
  621. package/lib/esm/components/LessonAppbar/constants.d.ts +1 -0
  622. package/lib/esm/components/LessonAppbar/constants.js +1 -0
  623. package/lib/esm/components/LessonAppbar/index.d.ts +3 -0
  624. package/lib/esm/components/LessonAppbar/index.js +2 -0
  625. package/lib/esm/components/LessonCommentObject/LessonCommentObject.d.ts +93 -0
  626. package/lib/esm/components/LessonCommentObject/LessonCommentObject.js +198 -0
  627. package/lib/esm/components/LessonCommentObject/Skeleton.d.ts +21 -0
  628. package/lib/esm/components/LessonCommentObject/Skeleton.js +43 -0
  629. package/lib/esm/components/LessonCommentObject/constants.d.ts +1 -0
  630. package/lib/esm/components/LessonCommentObject/constants.js +1 -0
  631. package/lib/esm/components/LessonCommentObject/index.d.ts +4 -0
  632. package/lib/esm/components/LessonCommentObject/index.js +4 -0
  633. package/lib/esm/components/LessonCommentObjects/LessonCommentObjects.d.ts +76 -0
  634. package/lib/esm/components/LessonCommentObjects/LessonCommentObjects.js +169 -0
  635. package/lib/esm/components/LessonCommentObjects/Skeleton.d.ts +23 -0
  636. package/lib/esm/components/LessonCommentObjects/Skeleton.js +37 -0
  637. package/lib/esm/components/LessonCommentObjects/constants.d.ts +1 -0
  638. package/lib/esm/components/LessonCommentObjects/constants.js +1 -0
  639. package/lib/esm/components/LessonCommentObjects/index.d.ts +4 -0
  640. package/lib/esm/components/LessonCommentObjects/index.js +4 -0
  641. package/lib/esm/components/LessonCompletedDialog/LessonCompletedDialog.d.ts +8 -0
  642. package/lib/esm/components/LessonCompletedDialog/LessonCompletedDialog.js +32 -0
  643. package/lib/esm/components/LessonCompletedDialog/index.d.ts +3 -0
  644. package/lib/esm/components/LessonCompletedDialog/index.js +2 -0
  645. package/lib/esm/components/LessonDrawer/LessonDrawer.d.ts +45 -0
  646. package/lib/esm/components/LessonDrawer/LessonDrawer.js +34 -0
  647. package/lib/esm/components/LessonDrawer/constants.d.ts +1 -0
  648. package/lib/esm/components/LessonDrawer/constants.js +1 -0
  649. package/lib/esm/components/LessonDrawer/index.d.ts +3 -0
  650. package/lib/esm/components/LessonDrawer/index.js +2 -0
  651. package/lib/esm/components/LessonEditForm/LessonEditForm.d.ts +24 -0
  652. package/lib/esm/components/LessonEditForm/LessonEditForm.js +42 -0
  653. package/lib/esm/components/LessonEditForm/constants.d.ts +1 -0
  654. package/lib/esm/components/LessonEditForm/constants.js +1 -0
  655. package/lib/esm/components/LessonEditForm/index.d.ts +3 -0
  656. package/lib/esm/components/LessonEditForm/index.js +2 -0
  657. package/lib/esm/components/LessonObject/LessonObject.d.ts +40 -0
  658. package/lib/esm/components/LessonObject/LessonObject.js +82 -0
  659. package/lib/esm/components/LessonObject/constants.d.ts +1 -0
  660. package/lib/esm/components/LessonObject/constants.js +1 -0
  661. package/lib/esm/components/LessonObject/index.d.ts +3 -0
  662. package/lib/esm/components/LessonObject/index.js +2 -0
  663. package/lib/esm/components/LessonReleaseMenu/LessonReleaseMenu.d.ts +26 -0
  664. package/lib/esm/components/LessonReleaseMenu/LessonReleaseMenu.js +139 -0
  665. package/lib/esm/components/LessonReleaseMenu/constants.d.ts +5 -0
  666. package/lib/esm/components/LessonReleaseMenu/constants.js +6 -0
  667. package/lib/esm/components/LessonReleaseMenu/index.d.ts +3 -0
  668. package/lib/esm/components/LessonReleaseMenu/index.js +2 -0
  669. package/lib/esm/components/LiveStream/LiveStream.d.ts +79 -0
  670. package/lib/esm/components/LiveStream/LiveStream.js +140 -0
  671. package/lib/esm/components/LiveStream/Skeleton.d.ts +46 -0
  672. package/lib/esm/components/LiveStream/Skeleton.js +89 -0
  673. package/lib/esm/components/LiveStream/constants.d.ts +1 -0
  674. package/lib/esm/components/LiveStream/constants.js +1 -0
  675. package/lib/esm/components/LiveStream/index.d.ts +4 -0
  676. package/lib/esm/components/LiveStream/index.js +4 -0
  677. package/lib/esm/components/LiveStreamForm/LiveStreamForm.d.ts +55 -0
  678. package/lib/esm/components/LiveStreamForm/LiveStreamForm.js +239 -0
  679. package/lib/esm/components/LiveStreamForm/LiveStreamFormSettings.d.ts +47 -0
  680. package/lib/esm/components/LiveStreamForm/LiveStreamFormSettings.js +76 -0
  681. package/lib/esm/components/LiveStreamForm/constants.d.ts +15 -0
  682. package/lib/esm/components/LiveStreamForm/constants.js +15 -0
  683. package/lib/esm/components/LiveStreamForm/index.d.ts +3 -0
  684. package/lib/esm/components/LiveStreamForm/index.js +2 -0
  685. package/lib/esm/components/LiveStreamForm/types.d.ts +11 -0
  686. package/lib/esm/components/LiveStreamForm/types.js +1 -0
  687. package/lib/esm/components/LiveStreamRoom/LiveStreamRoom.d.ts +85 -0
  688. package/lib/esm/components/LiveStreamRoom/LiveStreamRoom.js +212 -0
  689. package/lib/esm/components/LiveStreamRoom/LiveStreamVideoConference/ControlBar.d.ts +29 -0
  690. package/lib/esm/components/LiveStreamRoom/LiveStreamVideoConference/ControlBar.js +58 -0
  691. package/lib/esm/components/LiveStreamRoom/LiveStreamVideoConference/DisconnectButton.d.ts +10 -0
  692. package/lib/esm/components/LiveStreamRoom/LiveStreamVideoConference/DisconnectButton.js +73 -0
  693. package/lib/esm/components/LiveStreamRoom/LiveStreamVideoConference/FocusLayout.d.ts +22 -0
  694. package/lib/esm/components/LiveStreamRoom/LiveStreamVideoConference/FocusLayout.js +27 -0
  695. package/lib/esm/components/LiveStreamRoom/LiveStreamVideoConference/LiveStreamProvider.d.ts +17 -0
  696. package/lib/esm/components/LiveStreamRoom/LiveStreamVideoConference/LiveStreamProvider.js +9 -0
  697. package/lib/esm/components/LiveStreamRoom/LiveStreamVideoConference/LiveStreamVideoConference.d.ts +77 -0
  698. package/lib/esm/components/LiveStreamRoom/LiveStreamVideoConference/LiveStreamVideoConference.js +152 -0
  699. package/lib/esm/components/LiveStreamRoom/LiveStreamVideoConference/NoParticipants.d.ts +4 -0
  700. package/lib/esm/components/LiveStreamRoom/LiveStreamVideoConference/NoParticipants.js +34 -0
  701. package/lib/esm/components/LiveStreamRoom/LiveStreamVideoConference/ParticipantPlaceholder.d.ts +6 -0
  702. package/lib/esm/components/LiveStreamRoom/LiveStreamVideoConference/ParticipantPlaceholder.js +6 -0
  703. package/lib/esm/components/LiveStreamRoom/LiveStreamVideoConference/ParticipantTile.d.ts +29 -0
  704. package/lib/esm/components/LiveStreamRoom/LiveStreamVideoConference/ParticipantTile.js +60 -0
  705. package/lib/esm/components/LiveStreamRoom/LiveStreamVideoConference/ParticipantTileActions.d.ts +30 -0
  706. package/lib/esm/components/LiveStreamRoom/LiveStreamVideoConference/ParticipantTileActions.js +212 -0
  707. package/lib/esm/components/LiveStreamRoom/LiveStreamVideoConference/ParticipantTileAvatar.d.ts +15 -0
  708. package/lib/esm/components/LiveStreamRoom/LiveStreamVideoConference/ParticipantTileAvatar.js +36 -0
  709. package/lib/esm/components/LiveStreamRoom/LiveStreamVideoConference/PreJoin.d.ts +58 -0
  710. package/lib/esm/components/LiveStreamRoom/LiveStreamVideoConference/PreJoin.js +251 -0
  711. package/lib/esm/components/LiveStreamRoom/LiveStreamVideoConference/RecordingIndicator.d.ts +5 -0
  712. package/lib/esm/components/LiveStreamRoom/LiveStreamVideoConference/RecordingIndicator.js +29 -0
  713. package/lib/esm/components/LiveStreamRoom/LiveStreamVideoConference/SettingsMenuToggle.d.ts +19 -0
  714. package/lib/esm/components/LiveStreamRoom/LiveStreamVideoConference/SettingsMenuToggle.js +30 -0
  715. package/lib/esm/components/LiveStreamRoom/LiveStreamVideoConference/TrackToggle.d.ts +23 -0
  716. package/lib/esm/components/LiveStreamRoom/LiveStreamVideoConference/TrackToggle.js +27 -0
  717. package/lib/esm/components/LiveStreamRoom/LiveStreamVideoConference/VideoConference.d.ts +26 -0
  718. package/lib/esm/components/LiveStreamRoom/LiveStreamVideoConference/VideoConference.js +149 -0
  719. package/lib/esm/components/LiveStreamRoom/LiveStreamVideoConference/constants.d.ts +3 -0
  720. package/lib/esm/components/LiveStreamRoom/LiveStreamVideoConference/constants.js +3 -0
  721. package/lib/esm/components/LiveStreamRoom/LiveStreamVideoConference/index.d.ts +3 -0
  722. package/lib/esm/components/LiveStreamRoom/LiveStreamVideoConference/index.js +2 -0
  723. package/lib/esm/components/LiveStreamRoom/LiveStreamVideoConference/useLiveStreamCheck.d.ts +7 -0
  724. package/lib/esm/components/LiveStreamRoom/LiveStreamVideoConference/useLiveStreamCheck.js +191 -0
  725. package/lib/esm/components/LiveStreamRoom/LiveStreamVideoConference/utils.d.ts +27 -0
  726. package/lib/esm/components/LiveStreamRoom/LiveStreamVideoConference/utils.js +74 -0
  727. package/lib/esm/components/LiveStreamRoom/constants.d.ts +21 -0
  728. package/lib/esm/components/LiveStreamRoom/constants.js +21 -0
  729. package/lib/esm/components/LiveStreamRoom/index.d.ts +3 -0
  730. package/lib/esm/components/LiveStreamRoom/index.js +2 -0
  731. package/lib/esm/components/LiveStreamRoom/types.d.ts +22 -0
  732. package/lib/esm/components/LiveStreamRoom/types.js +4 -0
  733. package/lib/esm/components/MyEventsWidget/Skeleton.js +1 -3
  734. package/lib/esm/components/NavigationMenuIconButton/DefaultDrawerContent.js +32 -5
  735. package/lib/esm/components/NavigationMenuIconButton/DefaultDrawerSkeleton.d.ts +24 -0
  736. package/lib/esm/components/NavigationMenuIconButton/DefaultDrawerSkeleton.js +35 -0
  737. package/lib/esm/components/NavigationMenuIconButton/NavigationMenuDrawer.d.ts +16 -0
  738. package/lib/esm/components/NavigationMenuIconButton/NavigationMenuDrawer.js +12 -3
  739. package/lib/esm/components/NavigationSettingsIconButton/NavigationSettingsIconButton.js +1 -1
  740. package/lib/esm/components/NavigationToolbar/NavigationToolbar.js +13 -4
  741. package/lib/esm/components/NavigationToolbarMobile/NavigationToolbarMobile.d.ts +6 -0
  742. package/lib/esm/components/NavigationToolbarMobile/NavigationToolbarMobile.js +3 -4
  743. package/lib/esm/components/Notification/Comment/Comment.js +2 -2
  744. package/lib/esm/components/Notification/LiveStream/LiveStream.d.ts +15 -0
  745. package/lib/esm/components/Notification/LiveStream/LiveStream.js +72 -0
  746. package/lib/esm/components/Notification/LiveStream/index.d.ts +3 -0
  747. package/lib/esm/components/Notification/LiveStream/index.js +2 -0
  748. package/lib/esm/components/Notification/Notification.js +6 -2
  749. package/lib/esm/components/OnBoardingWidget/ActionsButton.js +1 -1
  750. package/lib/esm/components/OnBoardingWidget/OnBoardingWidget.js +5 -5
  751. package/lib/esm/components/PlatformWidget/constants.d.ts +4 -0
  752. package/lib/esm/components/PlatformWidget/constants.js +4 -0
  753. package/lib/esm/components/PrivateMessageSettingsIconButton/PrivateMessageSettingsIconButton.js +1 -1
  754. package/lib/esm/components/PrivateMessageThread/PrivateMessageThread.js +3 -6
  755. package/lib/esm/components/RelatedEventsWidget/RelatedEventsWidget.js +1 -1
  756. package/lib/esm/components/SnippetNotifications/SnippetNotifications.js +4 -0
  757. package/lib/esm/components/ToastNotifications/ToastNotifications.js +6 -2
  758. package/lib/esm/components/UserActionIconButton/UserActionIconButton.js +1 -1
  759. package/lib/esm/components/UserLiveStreamWidget/Skeleton.d.ts +2 -0
  760. package/lib/esm/components/UserLiveStreamWidget/Skeleton.js +24 -0
  761. package/lib/esm/components/UserLiveStreamWidget/UserLiveStreamWidget.d.ts +47 -0
  762. package/lib/esm/components/UserLiveStreamWidget/UserLiveStreamWidget.js +130 -0
  763. package/lib/esm/components/UserLiveStreamWidget/constants.d.ts +1 -0
  764. package/lib/esm/components/UserLiveStreamWidget/constants.js +1 -0
  765. package/lib/esm/components/UserLiveStreamWidget/index.d.ts +4 -0
  766. package/lib/esm/components/UserLiveStreamWidget/index.js +4 -0
  767. package/lib/esm/components/UserProfileHeader/UserProfileHeader.js +1 -1
  768. package/lib/esm/components/VoteButton/VoteButton.js +1 -1
  769. package/lib/esm/constants/Course.d.ts +2 -0
  770. package/lib/esm/constants/Course.js +2 -0
  771. package/lib/esm/constants/LiveStream.d.ts +3 -0
  772. package/lib/esm/constants/LiveStream.js +3 -0
  773. package/lib/esm/constants/PubSub.d.ts +12 -0
  774. package/lib/esm/constants/PubSub.js +13 -0
  775. package/lib/esm/index.d.ts +32 -2
  776. package/lib/esm/index.js +36 -6
  777. package/lib/esm/shared/AccordionLessons/AccordionLessons.d.ts +7 -0
  778. package/lib/esm/shared/AccordionLessons/AccordionLessons.js +43 -0
  779. package/lib/esm/shared/AccordionLessons/index.d.ts +3 -0
  780. package/lib/esm/shared/AccordionLessons/index.js +2 -0
  781. package/lib/esm/shared/AddUsersButton/AddUsersButton.d.ts +35 -0
  782. package/lib/esm/shared/AddUsersButton/AddUsersButton.js +133 -0
  783. package/lib/esm/shared/AddUsersButton/index.d.ts +3 -0
  784. package/lib/esm/shared/AddUsersButton/index.js +2 -0
  785. package/lib/esm/shared/AutoPlayer/index.js +1 -1
  786. package/lib/esm/shared/BackdropScrollDisabled/BackdropScrollDisabled.d.ts +5 -0
  787. package/lib/esm/shared/BackdropScrollDisabled/BackdropScrollDisabled.js +11 -0
  788. package/lib/esm/shared/BackdropScrollDisabled/index.d.ts +2 -0
  789. package/lib/esm/shared/BackdropScrollDisabled/index.js +2 -0
  790. package/lib/esm/shared/ContributionActionsMenu/index.js +1 -1
  791. package/lib/esm/shared/CopyTextArea/index.d.ts +2 -2
  792. package/lib/esm/shared/CopyTextArea/index.js +8 -2
  793. package/lib/esm/shared/CourseUsersTable/ChangeUsersStatus.d.ts +9 -0
  794. package/lib/esm/shared/CourseUsersTable/ChangeUsersStatus.js +56 -0
  795. package/lib/esm/shared/CourseUsersTable/CourseUsersTable.d.ts +17 -0
  796. package/lib/esm/shared/CourseUsersTable/CourseUsersTable.js +102 -0
  797. package/lib/esm/shared/CourseUsersTable/RequestButton.d.ts +9 -0
  798. package/lib/esm/shared/CourseUsersTable/RequestButton.js +72 -0
  799. package/lib/esm/shared/CourseUsersTable/RowSkeleton.d.ts +8 -0
  800. package/lib/esm/shared/CourseUsersTable/RowSkeleton.js +11 -0
  801. package/lib/esm/shared/CourseUsersTable/SeeProgressButton.d.ts +9 -0
  802. package/lib/esm/shared/CourseUsersTable/SeeProgressButton.js +50 -0
  803. package/lib/esm/shared/CourseUsersTable/Skeleton.d.ts +1 -0
  804. package/lib/esm/shared/CourseUsersTable/Skeleton.js +12 -0
  805. package/lib/esm/shared/CourseUsersTable/constants.d.ts +1 -0
  806. package/lib/esm/shared/CourseUsersTable/constants.js +1 -0
  807. package/lib/esm/shared/CourseUsersTable/index.d.ts +4 -0
  808. package/lib/esm/shared/CourseUsersTable/index.js +4 -0
  809. package/lib/esm/shared/DateTimeAgo/index.d.ts +1 -1
  810. package/lib/esm/shared/EmptyStatus/EmptyStatus.d.ts +11 -0
  811. package/lib/esm/shared/EmptyStatus/EmptyStatus.js +23 -0
  812. package/lib/esm/shared/EmptyStatus/index.d.ts +3 -0
  813. package/lib/esm/shared/EmptyStatus/index.js +2 -0
  814. package/lib/esm/shared/EventInfoDetails/index.js +22 -6
  815. package/lib/esm/shared/LessonCommentActionsMenu/index.d.ts +41 -0
  816. package/lib/esm/shared/LessonCommentActionsMenu/index.js +194 -0
  817. package/lib/esm/shared/LiveStreamInfoDetails/index.d.ts +17 -0
  818. package/lib/esm/shared/LiveStreamInfoDetails/index.js +50 -0
  819. package/lib/esm/shared/Media/File/PreviewComponent.js +3 -4
  820. package/lib/esm/shared/Media/Link/DisplayComponent.js +1 -4
  821. package/lib/esm/shared/UpScalingTierBadge/UpScalingTierBadge.d.ts +5 -0
  822. package/lib/esm/shared/UpScalingTierBadge/UpScalingTierBadge.js +10 -0
  823. package/lib/esm/shared/UpScalingTierBadge/index.d.ts +7 -0
  824. package/lib/esm/shared/UpScalingTierBadge/index.js +69 -0
  825. package/lib/esm/types/course.d.ts +13 -0
  826. package/lib/esm/types/course.js +16 -0
  827. package/lib/esm/types/index.d.ts +2 -1
  828. package/lib/esm/types/index.js +2 -1
  829. package/lib/esm/types/liveStream.d.ts +5 -0
  830. package/lib/esm/types/liveStream.js +6 -0
  831. package/lib/esm/utils/contribution.d.ts +7 -0
  832. package/lib/esm/utils/contribution.js +12 -2
  833. package/lib/esm/utils/course.d.ts +16 -0
  834. package/lib/esm/utils/course.js +34 -0
  835. package/lib/esm/utils/liveStream.d.ts +4 -0
  836. package/lib/esm/utils/liveStream.js +18 -0
  837. package/lib/umd/125.js +2 -0
  838. package/lib/umd/60a7fdeaadfe844bc015.woff2 +0 -0
  839. package/lib/umd/assets/icons.svg +9 -3
  840. package/lib/umd/{c3528e120c4e831db2ae.woff → b6dbec3d5816ff8baef1.woff} +0 -0
  841. package/lib/umd/{a221d3aba0f6753cfbb7.ttf → ba74e493633796d551d1.ttf} +0 -0
  842. package/lib/umd/{2aa155858f48b8f3911a.eot → c473ce30406a3dad83e1.eot} +0 -0
  843. package/lib/umd/react-ui.js +1 -19
  844. package/lib/umd/react-ui.js.LICENSE.txt +2 -0
  845. package/package.json +24 -8
  846. package/lib/umd/148.js +0 -2
  847. package/lib/umd/36f3af7f155d916c26ff.woff2 +0 -0
  848. /package/lib/umd/{148.js.LICENSE.txt → 125.js.LICENSE.txt} +0 -0
@@ -25,6 +25,7 @@ const classes = {
25
25
  explore: `${PREFIX}-explore`,
26
26
  events: `${PREFIX}-events`,
27
27
  groups: `${PREFIX}-groups`,
28
+ courses: `${PREFIX}-courses`,
28
29
  search: `${PREFIX}-search`,
29
30
  composer: `${PREFIX}-composer`,
30
31
  profile: `${PREFIX}-profile`,
@@ -117,8 +118,14 @@ export default function NavigationToolbar(inProps) {
117
118
  const eventsEnabled = useMemo(() => scPreferences.preferences &&
118
119
  scPreferences.features &&
119
120
  scPreferences.features.includes(SCFeatureName.TAGGING) &&
121
+ scPreferences.features.includes(SCFeatureName.EVENT) &&
120
122
  SCPreferences.CONFIGURATIONS_EVENTS_ENABLED in scPreferences.preferences &&
121
123
  scPreferences.preferences[SCPreferences.CONFIGURATIONS_EVENTS_ENABLED].value, [scPreferences.preferences, scPreferences.features]);
124
+ const coursesEnabled = useMemo(() => scPreferences.preferences &&
125
+ scPreferences.features &&
126
+ scPreferences.features.includes(SCFeatureName.TAGGING) &&
127
+ SCPreferences.CONFIGURATIONS_COURSES_ENABLED in scPreferences.preferences &&
128
+ scPreferences.preferences[SCPreferences.CONFIGURATIONS_COURSES_ENABLED].value, [scPreferences.preferences, scPreferences.features]);
122
129
  const showComposer = useMemo(() => {
123
130
  return (!disableComposer &&
124
131
  (!scPreferences.preferences[SCPreferences.CONFIGURATIONS_POST_ONLY_STAFF_ENABLED].value || UserUtils.isStaff(scUserContext.user)));
@@ -138,16 +145,18 @@ export default function NavigationToolbar(inProps) {
138
145
  if (scUserContext.loading) {
139
146
  return _jsx(NavigationToolbarSkeleton, {});
140
147
  }
141
- const _children = children || (_jsxs(Box, Object.assign({ className: classes.navigation }, { children: [scUserContext.user && (_jsx(IconButton, Object.assign({ className: classNames(classes.home, { [classes.active]: value.startsWith(scRoutingContext.url(SCRoutes.HOME_ROUTE_NAME, {})) }), "aria-label": "Home", to: scRoutingContext.url(SCRoutes.HOME_ROUTE_NAME, {}), component: Link }, { children: _jsx(Icon, { children: "home" }) }))), preferences[SCPreferences.CONFIGURATIONS_EXPLORE_STREAM_ENABLED] &&
142
- (preferences[SCPreferences.CONFIGURATIONS_CONTENT_AVAILABILITY] || scUserContext.user) && (_jsx(IconButton, Object.assign({ className: classNames(classes.explore, { [classes.active]: value.startsWith(scRoutingContext.url(SCRoutes.EXPLORE_ROUTE_NAME, {})) }), "aria-label": "Explore", to: scRoutingContext.url(SCRoutes.EXPLORE_ROUTE_NAME, {}), component: Link }, { children: _jsx(Icon, { children: "explore" }) }))), groupsEnabled && scUserContext.user && (_jsx(IconButton, Object.assign({ className: classNames(classes.groups, {
148
+ const _children = children || (_jsxs(Box, Object.assign({ className: classes.navigation }, { children: [scUserContext.user && (_jsx(IconButton, Object.assign({ className: classNames(classes.home, { [classes.active]: value.startsWith(scRoutingContext.url(SCRoutes.HOME_ROUTE_NAME, {})) }), "aria-label": "Home", to: scRoutingContext.url(SCRoutes.HOME_ROUTE_NAME, {}), component: Link }, { children: _jsx(Icon, { children: "home" }) }))), coursesEnabled && scUserContext.user && (_jsx(IconButton, Object.assign({ className: classNames(classes.courses, {
149
+ [classes.active]: value.startsWith(scRoutingContext.url(SCRoutes.COURSES_SUBSCRIBED_ROUTE_NAME, {})) ||
150
+ value.startsWith(scRoutingContext.url(SCRoutes.COURSES_ROUTE_NAME, {}))
151
+ }), "aria-label": "Courses", to: scRoutingContext.url(SCRoutes.GROUPS_SUBSCRIBED_ROUTE_NAME, {}), component: Link }, { children: _jsx(Icon, { children: "courses" }) }))), groupsEnabled && scUserContext.user && (_jsx(IconButton, Object.assign({ className: classNames(classes.groups, {
143
152
  [classes.active]: value.startsWith(scRoutingContext.url(SCRoutes.GROUPS_SUBSCRIBED_ROUTE_NAME, {})) ||
144
153
  value.startsWith(scRoutingContext.url(SCRoutes.GROUPS_ROUTE_NAME, {}))
145
154
  }), "aria-label": "Groups", to: scRoutingContext.url(SCRoutes.GROUPS_SUBSCRIBED_ROUTE_NAME, {}), component: Link }, { children: _jsx(Icon, { children: "groups" }) }))), eventsEnabled && (scUserContext.user || preferences[SCPreferences.CONFIGURATIONS_CONTENT_AVAILABILITY]) && (_jsx(IconButton, Object.assign({ className: classNames(classes.events, {
146
155
  [classes.active]: value.startsWith(scRoutingContext.url(SCRoutes.EVENTS_ROUTE_NAME, {}))
147
- }), "aria-label": "Groups", to: scRoutingContext.url(SCRoutes.EVENTS_ROUTE_NAME, {}), component: Link }, { children: _jsx(Icon, { children: "CalendarIcon" }) })))] })));
156
+ }), "aria-label": "Events", to: scRoutingContext.url(SCRoutes.EVENTS_ROUTE_NAME, {}), component: Link }, { children: _jsx(Icon, { children: "CalendarIcon" }) })))] })));
148
157
  return (_jsxs(Root, Object.assign({ className: classNames(className, classes.root) }, rest, { children: [_jsx(NavigationMenuIconButtonComponent, Object.assign({}, NavigationMenuIconButtonComponentProps)), _jsx(Link, Object.assign({ to: scRoutingContext.url(SCRoutes.HOME_ROUTE_NAME, {}), className: classes.logo }, { children: _jsx("img", { src: preferences[SCPreferences.LOGO_NAVBAR_LOGO], alt: "logo" }) })), !scUserContext.user && !preferences[SCPreferences.ADDONS_CLOSED_COMMUNITY] && (_jsx(Button, Object.assign({ color: "inherit", component: Link, to: scRoutingContext.url(SCRoutes.SIGNUP_ROUTE_NAME, {}), className: classes.register }, { children: _jsx(FormattedMessage, { id: "ui.appBar.navigation.register", defaultMessage: "ui.appBar.navigation.register" }) }))), preferences[SCPreferences.CONFIGURATIONS_CUSTOM_NAVBAR_ITEM_ENABLED] && (_jsx(_Fragment, { children: preferences[SCPreferences.CONFIGURATIONS_CUSTOM_NAVBAR_ITEM_TEXT] ? (_jsx(Tooltip, Object.assign({ title: preferences[SCPreferences.CONFIGURATIONS_CUSTOM_NAVBAR_ITEM_TEXT] }, { children: _jsx(Link, Object.assign({ target: "blank", to: preferences[SCPreferences.CONFIGURATIONS_CUSTOM_NAVBAR_ITEM_URL], className: classes.customItem }, { children: _jsx("img", { src: preferences[SCPreferences.CONFIGURATIONS_CUSTOM_NAVBAR_ITEM_IMAGE], alt: "custom_item" }) })) }))) : (_jsx(Link, Object.assign({ target: "blank", to: preferences[SCPreferences.CONFIGURATIONS_CUSTOM_NAVBAR_ITEM_URL], className: classes.customItem }, { children: _jsx("img", { src: preferences[SCPreferences.CONFIGURATIONS_CUSTOM_NAVBAR_ITEM_IMAGE], alt: "custom_item" }) }))) })), _children, (preferences[SCPreferences.CONFIGURATIONS_CONTENT_AVAILABILITY] || scUserContext.user) && !disableSearch ? (_jsx(SearchAutocomplete, Object.assign({ className: classes.search, blurOnSelect: true }, SearchAutocompleteProps))) : (_jsx(Box, { className: classes.search })), startActions, scUserContext.user ? (_jsxs(_Fragment, { children: [showComposer && _jsx(ComposerIconButton, Object.assign({ className: classes.composer }, ComposerIconButtonProps)), _jsx(Tooltip, Object.assign({ title: scUserContext.user.username }, { children: _jsx(IconButton, Object.assign({ component: Link, to: scRoutingContext.url(SCRoutes.USER_PROFILE_ROUTE_NAME, scUserContext.user), "aria-label": "Profile", className: classes.profile }, { children: _jsx(Avatar, { alt: scUserContext.user.username, src: scUserContext.user.avatar }) })) })), _jsxs(_Fragment, { children: [_jsx(IconButton, Object.assign({ className: classNames(classes.notification, {
149
158
  [classes.active]: value.startsWith(scRoutingContext.url(SCRoutes.USER_NOTIFICATIONS_ROUTE_NAME, {}))
150
- }), "aria-label": "Notification", onClick: handleOpenNotificationMenu }, { children: _jsx(Badge, Object.assign({ badgeContent: scUserContext.user.unseen_notification_banners_counter + scUserContext.user.unseen_interactions_counter, color: "secondary" }, { children: _jsx(Icon, { children: "notifications_active" }) })) })), _jsx(NotificationMenu, Object.assign({ className: classes.notificationsMenu, id: "notification-menu", anchorEl: anchorNotification, open: Boolean(anchorNotification), onClose: handleCloseNotificationMenu, onClick: handleCloseNotificationMenu, transformOrigin: { horizontal: 'right', vertical: 'top' }, anchorOrigin: { horizontal: 'right', vertical: 'bottom' } }, NotificationMenuProps))] }), privateMessagingEnabled && (_jsx(IconButton, Object.assign({ className: classNames(classes.messages, {
159
+ }), "aria-label": "Notification", onClick: handleOpenNotificationMenu }, { children: _jsx(Badge, Object.assign({ badgeContent: scUserContext.user.unseen_notification_banners_counter + scUserContext.user.unseen_interactions_counter, color: "secondary" }, { children: _jsx(Icon, { children: "notifications_active" }) })) })), Boolean(anchorNotification) && (_jsx(NotificationMenu, Object.assign({ className: classes.notificationsMenu, id: "notification-menu", anchorEl: anchorNotification, open: true, onClose: handleCloseNotificationMenu, onClick: handleCloseNotificationMenu, transformOrigin: { horizontal: 'right', vertical: 'top' }, anchorOrigin: { horizontal: 'right', vertical: 'bottom' } }, NotificationMenuProps)))] }), privateMessagingEnabled && (_jsx(IconButton, Object.assign({ className: classNames(classes.messages, {
151
160
  [classes.active]: value.startsWith(scRoutingContext.url(SCRoutes.USER_PRIVATE_MESSAGES_ROUTE_NAME, {}))
152
161
  }), "aria-label": "Messages", to: scRoutingContext.url(SCRoutes.USER_PRIVATE_MESSAGES_ROUTE_NAME, {}), component: Link }, { children: _jsx(Badge, Object.assign({ badgeContent: 0, color: "secondary" }, { children: _jsx(Icon, { children: "email" }) })) }))), endActions, _jsx(NavigationSettingsIconButtonComponent, { className: classes.settings })] })) : (_jsxs(_Fragment, { children: [endActions, _jsx(Button, Object.assign({ color: "inherit", component: Link, to: scRoutingContext.url(SCRoutes.SIGNIN_ROUTE_NAME, {}) }, { children: _jsx(FormattedMessage, { id: "ui.appBar.navigation.login", defaultMessage: "ui.appBar.navigation.login" }) }))] }))] })));
153
162
  }
@@ -3,6 +3,7 @@ import React from 'react';
3
3
  import { SearchAutocompleteProps } from '../SearchAutocomplete';
4
4
  import { NavigationSettingsIconButtonProps } from '../NavigationSettingsIconButton';
5
5
  import { NavigationMenuIconButtonProps } from '../NavigationMenuIconButton';
6
+ import { ComposerIconButtonProps } from '../ComposerIconButton';
6
7
  export interface NavigationToolbarMobileProps extends ToolbarProps {
7
8
  /**
8
9
  * Disable search action if possible
@@ -32,6 +33,11 @@ export interface NavigationToolbarMobileProps extends ToolbarProps {
32
33
  * Component for Navigation Settings
33
34
  */
34
35
  NavigationSettingsIconButtonComponent?: (inProps: NavigationSettingsIconButtonProps) => JSX.Element;
36
+ /**
37
+ * Props to spread to the ComposerIconButton
38
+ * @default {}
39
+ */
40
+ ComposerIconButtonProps?: ComposerIconButtonProps;
35
41
  }
36
42
  /**
37
43
  * > API documentation for the Community-JS Navigation Toolbar Mobile component. Learn about the available props and the CSS API.
@@ -69,7 +69,7 @@ export default function NavigationToolbarMobile(inProps) {
69
69
  props: inProps,
70
70
  name: PREFIX
71
71
  });
72
- const { className = '', disableSearch = false, preserveDesktopLogo = false, SearchAutocompleteProps = {}, children = null, startActions = null, endActions = null, NavigationMenuIconButtonComponent = NavigationMenuIconButton, NavigationSettingsIconButtonComponent = NavigationSettingsIconButton } = props, rest = __rest(props, ["className", "disableSearch", "preserveDesktopLogo", "SearchAutocompleteProps", "children", "startActions", "endActions", "NavigationMenuIconButtonComponent", "NavigationSettingsIconButtonComponent"]);
72
+ const { className = '', disableSearch = false, preserveDesktopLogo = false, SearchAutocompleteProps = {}, children = null, startActions = null, endActions = null, NavigationMenuIconButtonComponent = NavigationMenuIconButton, NavigationSettingsIconButtonComponent = NavigationSettingsIconButton, ComposerIconButtonProps = {} } = props, rest = __rest(props, ["className", "disableSearch", "preserveDesktopLogo", "SearchAutocompleteProps", "children", "startActions", "endActions", "NavigationMenuIconButtonComponent", "NavigationSettingsIconButtonComponent", "ComposerIconButtonProps"]);
73
73
  // CONTEXT
74
74
  const scUserContext = useSCUser();
75
75
  const scRoutingContext = useSCRouting();
@@ -87,6 +87,7 @@ export default function NavigationToolbarMobile(inProps) {
87
87
  const eventsEnabled = useMemo(() => preferences &&
88
88
  features &&
89
89
  features.includes(SCFeatureName.TAGGING) &&
90
+ features.includes(SCFeatureName.EVENT) &&
90
91
  SCPreferences.CONFIGURATIONS_EVENTS_ENABLED in preferences &&
91
92
  preferences[SCPreferences.CONFIGURATIONS_EVENTS_ENABLED].value, [preferences, features]);
92
93
  const exploreStreamEnabled = preferences[SCPreferences.CONFIGURATIONS_EXPLORE_STREAM_ENABLED].value;
@@ -107,8 +108,6 @@ export default function NavigationToolbarMobile(inProps) {
107
108
  [classes.logoFlex]: preferences[SCPreferences.CONFIGURATIONS_CUSTOM_NAVBAR_ITEM_URL].value
108
109
  }) }, { children: !preserveDesktopLogo ? (_jsx("img", { src: preferences[SCPreferences.LOGO_NAVBAR_LOGO_MOBILE].value, alt: "logo" })) : (_jsx("img", { src: preferences[SCPreferences.LOGO_NAVBAR_LOGO].value, alt: "logo" })) })), preferences[SCPreferences.CONFIGURATIONS_CUSTOM_NAVBAR_ITEM_ENABLED].value && (_jsx(Link, Object.assign({ target: "blank", to: preferences[SCPreferences.CONFIGURATIONS_CUSTOM_NAVBAR_ITEM_URL].value, className: classes.customItem }, { children: _jsx("img", { src: preferences[SCPreferences.CONFIGURATIONS_CUSTOM_NAVBAR_ITEM_IMAGE].value, alt: "custom_item" }) })))] }));
109
110
  return (_jsxs(Root, Object.assign({ className: classNames(className, classes.root) }, rest, { children: [_children, startActions, (contentAvailable || scUserContext.user) && !disableSearch && (_jsxs(_Fragment, { children: [_jsx(IconButton, Object.assign({ className: classes.search, onClick: handleOpenSearch }, { children: _jsx(Icon, { children: "search" }) })), _jsx(SearchDialog, { className: classes.searchDialog, fullScreen: true, open: searchOpen, SearchAutocompleteProps: Object.assign(Object.assign({}, SearchAutocompleteProps), { onClear: handleCloseSearch }) })] })), endActions, (!postOnlyStaffEnabled || (UserUtils.isStaff(scUserContext.user) && postOnlyStaffEnabled)) &&
110
- groupsEnabled &&
111
- eventsEnabled &&
112
111
  (scUserContext.user || contentAvailable) &&
113
- exploreStreamEnabled && _jsx(ComposerIconButton, {}), scUserContext.user && (groupsEnabled || eventsEnabled) && (_jsx(IconButton, Object.assign({ className: classes.notifications, component: Link, to: scRoutingContext.url(SCRoutes.USER_NOTIFICATIONS_ROUTE_NAME, {}) }, { children: _jsx(Badge, Object.assign({ badgeContent: scUserContext.user.unseen_notification_banners_counter + scUserContext.user.unseen_interactions_counter, color: "secondary" }, { children: _jsx(Icon, { children: "notifications_active" }) })) }))), scUserContext.user ? (_jsx(NavigationSettingsIconButtonComponent, { className: classes.settings })) : (_jsx(Button, Object.assign({ className: classes.login, color: "inherit", component: Link, to: scRoutingContext.url(SCRoutes.SIGNIN_ROUTE_NAME, {}) }, { children: _jsx(FormattedMessage, { id: "ui.appBar.navigation.login", defaultMessage: "ui.appBar.navigation.login" }) })))] })));
112
+ exploreStreamEnabled && _jsx(ComposerIconButton, Object.assign({}, ComposerIconButtonProps)), scUserContext.user && (groupsEnabled || eventsEnabled) && (_jsx(IconButton, Object.assign({ className: classes.notifications, component: Link, to: scRoutingContext.url(SCRoutes.USER_NOTIFICATIONS_ROUTE_NAME, {}) }, { children: _jsx(Badge, Object.assign({ badgeContent: scUserContext.user.unseen_notification_banners_counter + scUserContext.user.unseen_interactions_counter, color: "secondary" }, { children: _jsx(Icon, { children: "notifications_active" }) })) }))), scUserContext.user ? (_jsx(NavigationSettingsIconButtonComponent, { className: classes.settings })) : (_jsx(Button, Object.assign({ className: classes.login, color: "inherit", component: Link, to: scRoutingContext.url(SCRoutes.SIGNIN_ROUTE_NAME, {}) }, { children: _jsx(FormattedMessage, { id: "ui.appBar.navigation.login", defaultMessage: "ui.appBar.navigation.login" }) })))] })));
114
113
  }
@@ -65,10 +65,10 @@ export default function CommentNotification(props) {
65
65
  }), { onClick: notificationObject.comment.author.deleted ? () => setOpenAlert(true) : null }, { children: _jsx(UserAvatar, Object.assign({ hide: !notificationObject.comment.author.community_badge, smaller: true }, { children: _jsx(Avatar, { alt: notificationObject.comment.author.username, variant: "circular", src: notificationObject.comment.author.avatar, classes: { root: classes.avatar } }) })) })), primary: _jsxs(_Fragment, { children: [_jsx(Link, Object.assign({}, (!notificationObject.comment.author.deleted && {
66
66
  to: scRoutingContext.url(SCRoutes.USER_PROFILE_ROUTE_NAME, notificationObject.comment.author)
67
67
  }), { onClick: notificationObject.comment.author.deleted ? () => setOpenAlert(true) : null, className: classes.username }, { children: notificationObject.comment.author.username })), ' ', notificationObject.type === SCNotificationTypologyType.NESTED_COMMENT
68
- ? intl.formatMessage(messages.comment, {
68
+ ? intl.formatMessage(messages.nestedComment, {
69
69
  b: (...chunks) => _jsx("strong", { children: chunks })
70
70
  })
71
- : intl.formatMessage(messages.nestedComment, {
71
+ : intl.formatMessage(messages.comment, {
72
72
  b: (...chunks) => _jsx("strong", { children: chunks })
73
73
  })] }), secondary: _jsxs(React.Fragment, { children: [_jsx(Link, Object.assign({ to: scRoutingContext.url(SCRoutes.COMMENT_ROUTE_NAME, getRouteData(notificationObject.comment)) }, { children: _jsx(Typography, Object.assign({ variant: "body2", className: classes.contributionText }, { children: getContributionSnippet(notificationObject.comment) })) })), (template === SCNotificationObjectTemplateType.DETAIL || template === SCNotificationObjectTemplateType.SNIPPET) && (_jsxs(Stack, Object.assign({ direction: "row", justifyContent: "flex-start", alignItems: "center", spacing: 1 }, { children: [_jsx(DateTimeAgo, { date: notificationObject.active_at, className: classes.activeAt }), _jsx(Bullet, { className: classes.bullet }), _jsx(VoteButton, { className: classes.voteButton, variant: "text", size: "small", contributionId: notificationObject.comment.id, contributionType: SCContributionType.COMMENT, contribution: notificationObject.comment, onVote: handleVote })] })))] }), footer: template === SCNotificationObjectTemplateType.TOAST && (_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", component: 'div' }, { children: _jsx(Link, Object.assign({ to: scRoutingContext.url(SCRoutes.COMMENT_ROUTE_NAME, getRouteData(notificationObject.comment)) }, { children: _jsx(FormattedMessage, { id: "ui.userToastNotifications.viewContribution", defaultMessage: 'ui.userToastNotifications.viewContribution' }) })) }))] }))) }, rest)), openAlert && _jsx(UserDeletedSnackBar, { open: openAlert, handleClose: () => setOpenAlert(false) })] }));
74
74
  }
@@ -0,0 +1,15 @@
1
+ import { SCNotificationLiveStreamActivityType } from '@selfcommunity/types';
2
+ import { NotificationItemProps } from '../../../shared/NotificationItem';
3
+ export interface NotificationLiveStreamProps extends Pick<NotificationItemProps, Exclude<keyof NotificationItemProps, 'image' | 'disableTypography' | 'primary' | 'primaryTypographyProps' | 'secondary' | 'secondaryTypographyProps' | 'actions' | 'footer' | 'isNew'>> {
4
+ /**
5
+ * Notification obj
6
+ * @default null
7
+ */
8
+ notificationObject: SCNotificationLiveStreamActivityType;
9
+ }
10
+ /**
11
+ * This component render the content of the notification of type live stream
12
+ * @constructor
13
+ * @param props
14
+ */
15
+ export default function LiveStreamNotification(props: NotificationLiveStreamProps): JSX.Element;
@@ -0,0 +1,72 @@
1
+ import { __rest } from "tslib";
2
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
3
+ import { useState } from 'react';
4
+ import { styled } from '@mui/material/styles';
5
+ import { Avatar, Box, Icon, Stack, Typography } from '@mui/material';
6
+ import { Link, SCRoutes, useSCRouting } from '@selfcommunity/react-core';
7
+ import { FormattedMessage } from 'react-intl';
8
+ import DateTimeAgo from '../../../shared/DateTimeAgo';
9
+ import classNames from 'classnames';
10
+ import { SCNotificationObjectTemplateType } from '../../../types';
11
+ import NotificationItem from '../../../shared/NotificationItem';
12
+ import { LoadingButton } from '@mui/lab';
13
+ import UserDeletedSnackBar from '../../../shared/UserDeletedSnackBar';
14
+ import UserAvatar from '../../../shared/UserAvatar';
15
+ import { PREFIX } from '../constants';
16
+ import LiveStream from '../../LiveStream';
17
+ const classes = {
18
+ root: `${PREFIX}-live-root`,
19
+ avatar: `${PREFIX}-avatar`,
20
+ actions: `${PREFIX}-actions`,
21
+ seeButton: `${PREFIX}see-button`,
22
+ activeAt: `${PREFIX}-active-at`,
23
+ snippetTime: `${PREFIX}-snippet-time`,
24
+ username: `${PREFIX}-username`
25
+ };
26
+ const Root = styled(NotificationItem, {
27
+ name: PREFIX,
28
+ slot: 'LiveStreamRoot'
29
+ })(() => ({}));
30
+ /**
31
+ * This component render the content of the notification of type live stream
32
+ * @constructor
33
+ * @param props
34
+ */
35
+ export default function LiveStreamNotification(props) {
36
+ // PROPS
37
+ const { notificationObject, id = `n_${props.notificationObject['sid']}`, className, template = SCNotificationObjectTemplateType.DETAIL } = props, rest = __rest(props, ["notificationObject", "id", "className", "template"]);
38
+ // CONTEXT
39
+ const scRoutingContext = useSCRouting();
40
+ // STATE
41
+ const [openAlert, setOpenAlert] = useState(false);
42
+ // CONST
43
+ const isSnippetTemplate = template === SCNotificationObjectTemplateType.SNIPPET;
44
+ const isToastTemplate = template === SCNotificationObjectTemplateType.TOAST;
45
+ const inProgress = Boolean(!notificationObject.live_stream.closed_at_by_host &&
46
+ notificationObject.live_stream.last_started_at &&
47
+ !notificationObject.live_stream.last_finished_at);
48
+ // RENDER
49
+ if (isSnippetTemplate) {
50
+ 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.live_stream.host.deleted && {
51
+ to: scRoutingContext.url(SCRoutes.USER_PROFILE_ROUTE_NAME, notificationObject.live_stream.host)
52
+ }), { onClick: notificationObject.live_stream.host.deleted ? () => setOpenAlert(true) : null }, { children: _jsx(UserAvatar, Object.assign({ hide: !notificationObject.live_stream.host.community_badge, smaller: true }, { children: _jsx(Avatar, { alt: notificationObject.live_stream.host.username, variant: "circular", src: notificationObject.live_stream.host.avatar, classes: { root: classes.avatar } }) })) })), primary: _jsxs(Box, { children: [_jsx(Link, Object.assign({}, (!notificationObject.live_stream.host.deleted && {
53
+ to: scRoutingContext.url(SCRoutes.USER_PROFILE_ROUTE_NAME, notificationObject.live_stream.host)
54
+ }), { onClick: notificationObject.live_stream.host.deleted ? () => setOpenAlert(true) : null, className: classes.username }, { children: notificationObject.live_stream.host.username })), ' ', _jsx(FormattedMessage, { id: `ui.notification.${notificationObject.type}.title`, defaultMessage: `ui.notification.${notificationObject.type}.title`, values: {
55
+ // eslint-disable-next-line @typescript-eslint/ban-ts-ignore
56
+ // @ts-ignore
57
+ icon: (...chunks) => _jsx(Icon, { children: chunks }),
58
+ live: notificationObject.live_stream.title,
59
+ link: (...chunks) => _jsx(Link, Object.assign({ to: scRoutingContext.url(SCRoutes.LIVESTREAM_ROUTE_NAME, notificationObject.live_stream) }, { children: chunks }))
60
+ } })] }), 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.LIVESTREAM_ROUTE_NAME, notificationObject.live_stream) }, { children: _jsx(FormattedMessage, { id: "ui.notification.live_stream_started.join", defaultMessage: "ui.notification.live_stream_started.join" }) })) }))] }))) : (_jsx(DateTimeAgo, { date: notificationObject.active_at, className: classes.snippetTime })) }, rest)));
61
+ }
62
+ 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.live_stream.host.deleted && {
63
+ to: scRoutingContext.url(SCRoutes.USER_PROFILE_ROUTE_NAME, notificationObject.live_stream.host)
64
+ }), { onClick: notificationObject.live_stream.host.deleted ? () => setOpenAlert(true) : null }, { children: _jsx(UserAvatar, Object.assign({ hide: !notificationObject.live_stream.host.community_badge, smaller: true }, { children: _jsx(Avatar, { className: classes.avatar, alt: notificationObject.live_stream.host.username, variant: "circular", src: notificationObject.live_stream.host.avatar }) })) })), primary: _jsxs(_Fragment, { children: [_jsx(Link, Object.assign({}, (!notificationObject.live_stream.host.deleted && {
65
+ to: scRoutingContext.url(SCRoutes.USER_PROFILE_ROUTE_NAME, notificationObject.live_stream.host)
66
+ }), { onClick: notificationObject.live_stream.host.deleted ? () => setOpenAlert(true) : null, className: classes.username }, { children: notificationObject.live_stream.host.username })), ' ', _jsx(FormattedMessage, { id: `ui.notification.${notificationObject.type}`, defaultMessage: `ui.notification.${notificationObject.type}`, values: {
67
+ // eslint-disable-next-line @typescript-eslint/ban-ts-ignore
68
+ // @ts-ignore
69
+ live: notificationObject.live_stream.title,
70
+ link: (...chunks) => _jsx(Link, Object.assign({ to: scRoutingContext.url(SCRoutes.LIVESTREAM_ROUTE_NAME, notificationObject.live_stream) }, { children: chunks }))
71
+ } }), _jsx(LiveStream, { liveStream: notificationObject.live_stream, hideInProgress: !inProgress, 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, disabled: Boolean(notificationObject.live_stream.closed_at_by_host), to: scRoutingContext.url(SCRoutes.LIVESTREAM_ROUTE_NAME, notificationObject.live_stream) }, { children: _jsx(FormattedMessage, { id: "ui.notification.live_stream_started.join", defaultMessage: "ui.notification.live_stream_started.join" }) }))] })) }, rest)), openAlert && _jsx(UserDeletedSnackBar, { open: openAlert, handleClose: () => setOpenAlert(false) })] }));
72
+ }
@@ -0,0 +1,3 @@
1
+ import LiveStreamNotification, { NotificationLiveStreamProps } from './LiveStream';
2
+ export default LiveStreamNotification;
3
+ export { NotificationLiveStreamProps };
@@ -0,0 +1,2 @@
1
+ import LiveStreamNotification from './LiveStream';
2
+ export default LiveStreamNotification;
@@ -16,6 +16,8 @@ import KindlyNoticeForNotification from './KindlyNoticeFor';
16
16
  import { defineMessages, FormattedMessage, useIntl } from 'react-intl';
17
17
  import KindlyNoticeFlagNotification from './KindlyNoticeFlag';
18
18
  import VoteUpNotification from './VoteUp';
19
+ import EventNotification from './Event/Event';
20
+ import LiveStreamNotification from './LiveStream/LiveStream';
19
21
  import Icon from '@mui/material/Icon';
20
22
  import { SCOPE_SC_UI } from '../../constants/Errors';
21
23
  import { getContribution, getContributionRouteName, getContributionSnippet, getRouteData } from '../../utils/contribution';
@@ -35,7 +37,6 @@ import UserDeletedSnackBar from '../../shared/UserDeletedSnackBar';
35
37
  import UserAvatar from '../../shared/UserAvatar';
36
38
  import { PREFIX } from './constants';
37
39
  import GroupNotification from './Group';
38
- import EventNotification from './Event/Event';
39
40
  const messages = defineMessages({
40
41
  receivePrivateMessage: {
41
42
  id: 'ui.notification.receivePrivateMessage',
@@ -224,7 +225,7 @@ export default function UserNotification(inProps) {
224
225
  notificationObject.aggregated[0].type === SCNotificationTypologyType.VOTE_UP ||
225
226
  notificationObject.aggregated[0].type === SCNotificationTypologyType.CONTRIBUTION)) {
226
227
  const contribution = getContribution(notificationObject);
227
- return (_jsx(CardHeader, { className: classes.header, titleTypographyProps: { className: classes.title, variant: 'subtitle1' }, title: _jsx(Link, Object.assign({ to: scRoutingContext.url(getContributionRouteName(contribution), getRouteData(notificationObject[contribution.type])) }, { children: getContributionSnippet(contribution) })), action: contribution && (_jsx(Tooltip, Object.assign({ title: contribution.suspended ? (_jsx(FormattedMessage, { id: 'ui.notification.notificationSuspended', defaultMessage: 'ui.notification.notificationSuspended' })) : (_jsx(FormattedMessage, { id: 'ui.notification.notificationSuspend', defaultMessage: 'ui.notification.notificationSuspend' })) }, { children: _jsx(LoadingButton, Object.assign({ variant: "text", size: "small", loading: loadingSuspendNotification, color: 'inherit', classes: { root: classes.stopButton }, onClick: () => handleStopContentNotification(contribution) }, { children: contribution.suspended ? _jsx(Icon, Object.assign({ color: 'primary' }, { children: "notifications_off" })) : _jsx(Icon, Object.assign({ color: 'inherit' }, { children: "notifications" })) })) }))) }));
228
+ return (_jsx(CardHeader, { className: classes.header, titleTypographyProps: { className: classes.title, variant: 'subtitle1' }, title: _jsx(Link, Object.assign({ to: scRoutingContext.url(getContributionRouteName(contribution), getRouteData(notificationObject[contribution.type])) }, { children: getContributionSnippet(contribution) })), action: contribution && (_jsx(Tooltip, Object.assign({ title: contribution.suspended ? (_jsx(FormattedMessage, { id: 'ui.notification.notificationSuspended', defaultMessage: 'ui.notification.notificationSuspended' })) : (_jsx(FormattedMessage, { id: 'ui.notification.notificationSuspend', defaultMessage: 'ui.notification.notificationSuspend' })) }, { children: _jsx(LoadingButton, Object.assign({ variant: "text", size: "small", loading: loadingSuspendNotification, color: 'inherit', classes: { root: classes.stopButton }, onClick: () => handleStopContentNotification(contribution) }, { children: contribution.suspended ? _jsx(Icon, Object.assign({ color: 'primary' }, { children: "notifications_off" })) : _jsx(Icon, Object.assign({ color: 'inherit' }, { children: "notifications_active" })) })) }))) }));
228
229
  }
229
230
  return null;
230
231
  }
@@ -306,6 +307,9 @@ export default function UserNotification(inProps) {
306
307
  n.type === SCNotificationTypologyType.USER_REQUESTED_TO_JOIN_EVENT) {
307
308
  return _jsx(EventNotification, { notificationObject: n }, i);
308
309
  }
310
+ else if (n.type === SCNotificationTypologyType.LIVE_STREAM_STARTED) {
311
+ return _jsx(LiveStreamNotification, { notificationObject: n }, i);
312
+ }
309
313
  return null;
310
314
  }
311
315
  /**
@@ -77,5 +77,5 @@ export default function OnBoardingActionsButton(inProps) {
77
77
  ];
78
78
  }
79
79
  };
80
- return (_jsxs(_Fragment, { children: [_jsx(Root, Object.assign({ className: classNames(classes.root, className) }, rest, { onClick: handleOpen }, { children: _jsx(Icon, { children: "more_vert" }) })), isMobile ? (_jsx(SwipeableDrawerRoot, Object.assign({ onClick: () => setAnchorEl(null), className: classes.drawerRoot, anchor: "bottom", open: Boolean(anchorEl), onClose: handleClose, onOpen: handleOpen, PaperProps: { className: classes.paper }, disableSwipeToOpen: true }, { children: _jsx(List, { children: renderList() }) }))) : (_jsx(MenuRoot, Object.assign({ onClick: () => setAnchorEl(null), className: classes.menuRoot, anchorEl: anchorEl, open: Boolean(anchorEl), onClose: handleClose, PaperProps: { className: classes.paper } }, { children: renderList() })))] }));
80
+ return (_jsxs(_Fragment, { children: [_jsx(Root, Object.assign({ className: classNames(classes.root, className) }, rest, { onClick: handleOpen }, { children: _jsx(Icon, { children: "more_vert" }) })), Boolean(anchorEl) && (_jsx(_Fragment, { children: isMobile ? (_jsx(SwipeableDrawerRoot, Object.assign({ onClick: () => setAnchorEl(null), className: classes.drawerRoot, anchor: "bottom", open: true, onClose: handleClose, onOpen: handleOpen, PaperProps: { className: classes.paper }, disableSwipeToOpen: true }, { children: _jsx(List, { children: renderList() }) }))) : (_jsx(MenuRoot, Object.assign({ onClick: () => setAnchorEl(null), className: classes.menuRoot, anchorEl: anchorEl, open: true, onClose: handleClose, PaperProps: { className: classes.paper } }, { children: renderList() }))) }))] }));
81
81
  }
@@ -189,17 +189,17 @@ const OnBoardingWidget = (inProps) => {
189
189
  });
190
190
  const startStep = (stepId) => __awaiter(void 0, void 0, void 0, function* () {
191
191
  showCategoriesWarningModal && setShowWarningCategoriesModal(false);
192
- yield OnBoardingService.startAStep(stepId, GenerateContentsParams)
193
- .then(() => {
192
+ try {
193
+ yield OnBoardingService.startAStep(stepId, GenerateContentsParams);
194
194
  setIsGenerating(true);
195
- })
196
- .catch((error) => {
195
+ }
196
+ catch (error) {
197
197
  Logger.error(SCOPE_SC_UI, error);
198
198
  enqueueSnackbar(_jsx(FormattedMessage, { id: "ui.common.error.action", defaultMessage: "ui.common.error.action" }), {
199
199
  variant: 'error',
200
200
  autoHideDuration: 3000
201
201
  });
202
- });
202
+ }
203
203
  });
204
204
  const handlePreferencesUpdate = () => {
205
205
  PreferenceService.getAllPreferences().then((preferences) => {
@@ -3,3 +3,7 @@ export declare const HUB_STAGE = "https://hub.stage.quentrix.com/";
3
3
  export declare const HUB_PROD = "https://hub.selfcommunity.com/";
4
4
  export declare const CONTACT_STAGE = "https://hub.stage.quentrix.com/dashboard/account/contact-us";
5
5
  export declare const CONTACT_PROD = "https://hub.selfcommunity.com/dashboard/account/contact-us";
6
+ export declare const SELFCOMMUNITY_PRICING: {
7
+ en: string;
8
+ it: string;
9
+ };
@@ -3,3 +3,7 @@ export const HUB_STAGE = 'https://hub.stage.quentrix.com/';
3
3
  export const HUB_PROD = 'https://hub.selfcommunity.com/';
4
4
  export const CONTACT_STAGE = 'https://hub.stage.quentrix.com/dashboard/account/contact-us';
5
5
  export const CONTACT_PROD = 'https://hub.selfcommunity.com/dashboard/account/contact-us';
6
+ export const SELFCOMMUNITY_PRICING = {
7
+ en: 'https://selfcommunity.com/community-software-pricing/',
8
+ it: 'https://selfcommunity.com/it/community-software-prezzi/'
9
+ };
@@ -122,5 +122,5 @@ export default function PrivateMessageSettingsIconButton(inProps) {
122
122
  ];
123
123
  }
124
124
  };
125
- return (_jsxs(_Fragment, { children: [_jsx(Root, Object.assign({ className: classNames(classes.root, className) }, rest, { onClick: handleOpen }, { children: _jsx(Icon, { children: "more_vert" }) })), isMobile ? (_jsx(SwipeableDrawerRoot, Object.assign({ className: classes.drawerRoot, anchor: "bottom", open: Boolean(anchorEl), onClose: handleClose, onOpen: handleOpen, PaperProps: { className: classes.paper }, disableSwipeToOpen: true }, { children: _jsx(List, { children: renderList() }) }))) : (_jsx(MenuRoot, Object.assign({ className: classes.menuRoot, anchorEl: anchorEl, open: Boolean(anchorEl), onClose: handleClose, PaperProps: { className: classes.paper } }, { children: renderList() }))), openConfirmDialog && (_jsx(ConfirmDialog, { open: openConfirmDialog, title: _jsx(FormattedMessage, { id: "ui.privateMessageSettingsIconButton.dialog.msg", defaultMessage: "ui.privateMessageSettingsIconButton.dialog.msg" }), btnConfirm: _jsx(FormattedMessage, { id: "ui.privateMessageSettingsIconButton.dialog.confirm", defaultMessage: "ui.privateMessageSettingsIconButton.dialog.confirm" }), onConfirm: handleDeleteThread, onClose: handleCloseDialog }))] }));
125
+ return (_jsxs(_Fragment, { children: [_jsx(Root, Object.assign({ className: classNames(classes.root, className) }, rest, { onClick: handleOpen }, { children: _jsx(Icon, { children: "more_vert" }) })), Boolean(anchorEl) && (_jsx(_Fragment, { children: isMobile ? (_jsx(SwipeableDrawerRoot, Object.assign({ className: classes.drawerRoot, anchor: "bottom", open: true, onClose: handleClose, onOpen: handleOpen, PaperProps: { className: classes.paper }, disableSwipeToOpen: true }, { children: _jsx(List, { children: renderList() }) }))) : (_jsx(MenuRoot, Object.assign({ className: classes.menuRoot, anchorEl: anchorEl, open: true, onClose: handleClose, PaperProps: { className: classes.paper } }, { children: renderList() }))) })), openConfirmDialog && (_jsx(ConfirmDialog, { open: openConfirmDialog, title: _jsx(FormattedMessage, { id: "ui.privateMessageSettingsIconButton.dialog.msg", defaultMessage: "ui.privateMessageSettingsIconButton.dialog.msg" }), btnConfirm: _jsx(FormattedMessage, { id: "ui.privateMessageSettingsIconButton.dialog.confirm", defaultMessage: "ui.privateMessageSettingsIconButton.dialog.confirm" }), onConfirm: handleDeleteThread, onClose: handleCloseDialog }))] }));
126
126
  }
@@ -175,12 +175,9 @@ export default function PrivateMessageThread(inProps) {
175
175
  * Memoized message recipients ids
176
176
  */
177
177
  const ids = useMemo(() => {
178
- if (recipients && openNewMessage) {
179
- return recipients.map((u) => {
180
- return parseInt(u.id, 10);
181
- });
182
- }
183
- return [parseInt(recipients === null || recipients === void 0 ? void 0 : recipients.id, 10) || recipients];
178
+ if (!recipients)
179
+ return [];
180
+ return Array.isArray(recipients) ? recipients.map((u) => parseInt(u.id, 10)) : [parseInt(recipients.id || recipients, 10)];
184
181
  }, [recipients, openNewMessage]);
185
182
  function fetchResults() {
186
183
  setLoading(true);
@@ -119,5 +119,5 @@ export default function RelatedEventsWidget(inProps) {
119
119
  if (!scEvent || (state === null || state === void 0 ? void 0 : state.count) === 0) {
120
120
  return _jsx(HiddenPlaceholder, {});
121
121
  }
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" }) })) })) }))), openDialog && (_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))) }) })) })))] })));
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))) }) })) }))] })));
123
123
  }
@@ -34,6 +34,7 @@ import NotificationItem from '../../shared/NotificationItem';
34
34
  import { PREFIX } from './constants';
35
35
  import GroupNotification from '../Notification/Group';
36
36
  import EventNotification from '../Notification/Event/Event';
37
+ import LiveStreamNotification from '../Notification/LiveStream';
37
38
  const classes = {
38
39
  root: `${PREFIX}-root`,
39
40
  notificationsWrap: `${PREFIX}-notifications-wrap`,
@@ -267,6 +268,9 @@ export default function SnippetNotifications(inProps) {
267
268
  n.type === SCNotificationTypologyType.USER_REQUESTED_TO_JOIN_EVENT) {
268
269
  return _jsx(EventNotification, { notificationObject: n, template: SCNotificationObjectTemplateType.SNIPPET }, i);
269
270
  }
271
+ else if (type === SCNotificationTypologyType.LIVE_STREAM_STARTED) {
272
+ content = _jsx(LiveStreamNotification, { notificationObject: n, template: SCNotificationObjectTemplateType.SNIPPET }, i);
273
+ }
270
274
  if (type && handleNotification) {
271
275
  /** Override content */
272
276
  content = handleNotification(type, n, content);
@@ -6,8 +6,9 @@ import { SCNotification, useSCAlertMessages, useSCContext, useSCUser } from '@se
6
6
  import { SCNotificationTopicType, SCNotificationTypologyType } from '@selfcommunity/types';
7
7
  import PubSub from 'pubsub-js';
8
8
  import { useSnackbar } from 'notistack';
9
- import CustomSnackMessage from '../../shared/CustomSnackMessage';
9
+ import { PREFIX } from './constants';
10
10
  import { SCBroadcastMessageTemplateType, SCNotificationObjectTemplateType } from '../../types';
11
+ import CustomSnackMessage from '../../shared/CustomSnackMessage';
11
12
  import CommentNotification from '../Notification/Comment';
12
13
  import ContributionFollowNotification from '../Notification/ContributionFollow';
13
14
  import UserFollowNotification from '../Notification/UserFollow';
@@ -21,9 +22,9 @@ import UserBlockedNotification from '../Notification/UserBlocked';
21
22
  import Message from '../BroadcastMessages/Message';
22
23
  import { useThemeProps } from '@mui/system';
23
24
  import ContributionNotification from '../Notification/Contribution';
24
- import { PREFIX } from './constants';
25
25
  import GroupNotification from '../Notification/Group';
26
26
  import EventNotification from '../Notification/Event/Event';
27
+ import LiveStreamNotification from '../Notification/LiveStream';
27
28
  const Root = styled(Box, {
28
29
  name: PREFIX,
29
30
  slot: 'Root'
@@ -123,6 +124,9 @@ export default function UserToastNotifications(inProps) {
123
124
  type === SCNotificationTypologyType.USER_REQUESTED_TO_JOIN_EVENT) {
124
125
  content = _jsx(EventNotification, { notificationObject: n.notification_obj, template: SCNotificationObjectTemplateType.TOAST });
125
126
  }
127
+ else if (type === SCNotificationTypologyType.LIVE_STREAM_STARTED) {
128
+ content = _jsx(LiveStreamNotification, { notificationObject: n.notification_obj, template: SCNotificationObjectTemplateType.TOAST });
129
+ }
126
130
  }
127
131
  if (n.activity_type && n.activity_type === SCNotificationTypologyType.NOTIFICATION_BANNER) {
128
132
  /** Notification of type: 'notification_banner' */
@@ -186,5 +186,5 @@ export default function UserActionIconButton(inProps) {
186
186
  ];
187
187
  }
188
188
  };
189
- return (_jsxs(_Fragment, { children: [_jsx(Root, Object.assign({ className: classNames(classes.root, className) }, rest, { onClick: handleOpen }, { children: _jsx(Icon, { children: "more_vert" }) })), isMobile ? (_jsx(SwipeableDrawerRoot, Object.assign({ className: classes.drawerRoot, anchor: "bottom", open: Boolean(anchorEl), onClose: handleClose, onOpen: handleOpen, disableSwipeToOpen: true }, { children: _jsx(List, { children: renderList() }) }))) : (_jsx(MenuRoot, Object.assign({ className: classes.menuRoot, anchorEl: anchorEl, open: Boolean(anchorEl), onClose: handleClose }, { children: renderList() }))), _jsx(UserInfoDialog, { userId: userId, user: scUser, open: infoOpen, onClose: handleInfoClose }), openHideDialog && (_jsx(ConfirmDialog, { open: openHideDialog, isUpdating: isHiddenLoading, TransitionComponent: Transition, keepMounted: true, title: hidden ? (_jsx(FormattedMessage, { defaultMessage: "ui.userActionIconButton.show", id: "ui.userActionIconButton.show" })) : (_jsx(FormattedMessage, { defaultMessage: "ui.userActionIconButton.hide", id: "ui.userActionIconButton.hide" })), content: hidden ? (_jsx(FormattedMessage, { defaultMessage: "ui.userActionIconButton.dialogShowAction", id: "ui.userActionIconButton.dialogShowAction" })) : (_jsx(FormattedMessage, { defaultMessage: "ui.userActionIconButton.dialogHideAction", id: "ui.userActionIconButton.dialogHideAction" })), onConfirm: handleHideToggle, onClose: () => setOpenHideDialog(false) }))] }));
189
+ return (_jsxs(_Fragment, { children: [_jsx(Root, Object.assign({ className: classNames(classes.root, className) }, rest, { onClick: handleOpen }, { children: _jsx(Icon, { children: "more_vert" }) })), Boolean(anchorEl) && (_jsx(_Fragment, { children: isMobile ? (_jsx(SwipeableDrawerRoot, Object.assign({ className: classes.drawerRoot, anchor: "bottom", open: true, onClose: handleClose, onOpen: handleOpen, disableSwipeToOpen: true }, { children: _jsx(List, { children: renderList() }) }))) : (_jsx(MenuRoot, Object.assign({ className: classes.menuRoot, anchorEl: anchorEl, open: true, onClose: handleClose }, { children: renderList() }))) })), _jsx(UserInfoDialog, { userId: userId, user: scUser, open: infoOpen, onClose: handleInfoClose }), openHideDialog && (_jsx(ConfirmDialog, { open: openHideDialog, isUpdating: isHiddenLoading, TransitionComponent: Transition, keepMounted: true, title: hidden ? (_jsx(FormattedMessage, { defaultMessage: "ui.userActionIconButton.show", id: "ui.userActionIconButton.show" })) : (_jsx(FormattedMessage, { defaultMessage: "ui.userActionIconButton.hide", id: "ui.userActionIconButton.hide" })), content: hidden ? (_jsx(FormattedMessage, { defaultMessage: "ui.userActionIconButton.dialogShowAction", id: "ui.userActionIconButton.dialogShowAction" })) : (_jsx(FormattedMessage, { defaultMessage: "ui.userActionIconButton.dialogHideAction", id: "ui.userActionIconButton.dialogHideAction" })), onConfirm: handleHideToggle, onClose: () => setOpenHideDialog(false) }))] }));
190
190
  }
@@ -0,0 +1,2 @@
1
+ import 'swiper/css';
2
+ export default function UserLiveStreamWidgetSkeleton(): JSX.Element;
@@ -0,0 +1,24 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { CardActions, CardContent, Divider, Skeleton, Stack } from '@mui/material';
3
+ import { styled } from '@mui/system';
4
+ import { Fragment } from 'react';
5
+ import 'swiper/css';
6
+ import { EventSkeleton } from '../Event';
7
+ import Widget from '../Widget';
8
+ import { PREFIX } from './constants';
9
+ const classes = {
10
+ root: `${PREFIX}-skeleton-root`,
11
+ content: `${PREFIX}-content`,
12
+ user: `${PREFIX}-user`,
13
+ liveWrapper: `${PREFIX}-live-wrapper`,
14
+ event: `${PREFIX}-event`,
15
+ actions: `${PREFIX}-actions`
16
+ };
17
+ const Root = styled(Widget, {
18
+ name: PREFIX,
19
+ slot: 'SkeletonRoot',
20
+ overridesResolver: (_props, styles) => styles.skeletonRoot
21
+ })(() => ({}));
22
+ export default function UserLiveStreamWidgetSkeleton() {
23
+ return (_jsxs(Root, Object.assign({ className: classes.root }, { children: [_jsx(CardContent, Object.assign({ className: classes.content }, { children: _jsx(Stack, Object.assign({ className: classes.liveWrapper }, { children: [1, 2].map((_event, i, array) => (_jsxs(Fragment, { children: [_jsx(EventSkeleton, { elevation: 0, className: classes.event }), i < array.length - 1 && _jsx(Divider, {})] }, i))) })) })), _jsx(CardActions, Object.assign({ className: classes.actions }, { children: _jsx(Skeleton, { animation: "wave", width: "52px", height: "20px" }) }))] })));
24
+ }
@@ -0,0 +1,47 @@
1
+ import { SCUserType } from '@selfcommunity/types';
2
+ import { CacheStrategies } from '@selfcommunity/utils';
3
+ import 'swiper/css';
4
+ import { BaseDialogProps } from '../../shared/BaseDialog';
5
+ import { WidgetProps } from '../Widget';
6
+ import { LiveStreamProps } from '../LiveStream';
7
+ export interface UserLiveStreamWidgetProps extends WidgetProps {
8
+ /**
9
+ * The user id
10
+ * @default null
11
+ */
12
+ userId: number;
13
+ /**
14
+ * User Object
15
+ * @default null
16
+ */
17
+ user?: SCUserType;
18
+ /**
19
+ * Props to spread to single live stream object
20
+ * @default {}
21
+ */
22
+ liveStreamComponentProps?: LiveStreamProps;
23
+ /**
24
+ * API Query Params
25
+ * @default [{'limit': 20, 'offset': 0}]
26
+ */
27
+ endpointQueryParams?: Record<string, string | number>;
28
+ /**
29
+ * Caching strategies
30
+ * @default CacheStrategies.CACHE_FIRST
31
+ */
32
+ cacheStrategy?: CacheStrategies;
33
+ /**
34
+ * Props to spread to users suggestion dialog
35
+ * @default {}
36
+ */
37
+ dialogProps?: BaseDialogProps;
38
+ /**
39
+ * Limit param
40
+ */
41
+ limit?: number;
42
+ /**
43
+ * Other props
44
+ */
45
+ [p: string]: any;
46
+ }
47
+ export default function UserLiveStreamWidget(inProps: UserLiveStreamWidgetProps): JSX.Element;