@selfcommunity/react-ui 0.8.0-embeds.17 → 0.8.0-live.41

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 (317) hide show
  1. package/lib/cjs/components/BottomNavigation/BottomNavigation.d.ts +1 -1
  2. package/lib/cjs/components/Categories/Categories.js +22 -0
  3. package/lib/cjs/components/CategoriesPopularWidget/CategoriesPopularWidget.js +21 -0
  4. package/lib/cjs/components/CategoriesSuggestionWidget/CategoriesSuggestionWidget.js +21 -0
  5. package/lib/cjs/components/Composer/TypeSwitchButtonGroup/TypeSwitchButtonGroup.js +1 -1
  6. package/lib/cjs/components/CreateEventButton/CreateEventButton.d.ts +2 -2
  7. package/lib/cjs/components/CreateEventButton/CreateEventButton.js +4 -4
  8. package/lib/cjs/components/CreateLiveStreamButton/CreateLiveStreamButton.d.ts +49 -0
  9. package/lib/cjs/components/CreateLiveStreamButton/CreateLiveStreamButton.js +94 -0
  10. package/lib/cjs/components/CreateLiveStreamButton/index.d.ts +3 -0
  11. package/lib/cjs/components/CreateLiveStreamButton/index.js +5 -0
  12. package/lib/cjs/components/CreateLiveStreamDialog/CreateLiveStreamDialog.d.ts +51 -0
  13. package/lib/cjs/components/CreateLiveStreamDialog/CreateLiveStreamDialog.js +123 -0
  14. package/lib/cjs/components/CreateLiveStreamDialog/LiveStreamSelector/LiveStreamSelector.d.ts +46 -0
  15. package/lib/cjs/components/CreateLiveStreamDialog/LiveStreamSelector/LiveStreamSelector.js +166 -0
  16. package/lib/cjs/components/CreateLiveStreamDialog/constants.d.ts +1 -0
  17. package/lib/cjs/components/CreateLiveStreamDialog/constants.js +4 -0
  18. package/lib/cjs/components/CreateLiveStreamDialog/index.d.ts +3 -0
  19. package/lib/cjs/components/CreateLiveStreamDialog/index.js +5 -0
  20. package/lib/cjs/components/CreateLiveStreamDialog/types.d.ts +8 -0
  21. package/lib/cjs/components/CreateLiveStreamDialog/types.js +13 -0
  22. package/lib/cjs/components/EditEventButton/EditEventButton.js +1 -1
  23. package/lib/cjs/components/Editor/Editor.d.ts +1 -1
  24. package/lib/cjs/components/Editor/nodes/HashtagNode.d.ts +1 -1
  25. package/lib/cjs/components/Editor/nodes/HashtagNode.js +4 -4
  26. package/lib/cjs/components/Editor/nodes/ImageNode.d.ts +1 -1
  27. package/lib/cjs/components/Editor/nodes/ImageNode.js +6 -6
  28. package/lib/cjs/components/Editor/nodes/MentionNode.d.ts +1 -1
  29. package/lib/cjs/components/Editor/nodes/MentionNode.js +4 -4
  30. package/lib/cjs/components/Editor/plugins/ApiPlugin.d.ts +1 -1
  31. package/lib/cjs/components/Editor/plugins/MentionsPlugin.d.ts +2 -2
  32. package/lib/cjs/components/Editor/shared/useDecorators.d.ts +2 -2
  33. package/lib/cjs/components/Event/Event.js +1 -1
  34. package/lib/cjs/components/EventForm/EventForm.d.ts +7 -12
  35. package/lib/cjs/components/EventForm/EventForm.js +55 -55
  36. package/lib/cjs/components/EventForm/types.d.ts +5 -5
  37. package/lib/cjs/components/EventFormDialog/EventFormDialog.d.ts +48 -0
  38. package/lib/cjs/components/EventFormDialog/EventFormDialog.js +56 -0
  39. package/lib/cjs/components/EventFormDialog/constants.d.ts +1 -0
  40. package/lib/cjs/components/EventFormDialog/constants.js +4 -0
  41. package/lib/cjs/components/EventFormDialog/index.d.ts +3 -0
  42. package/lib/cjs/components/EventFormDialog/index.js +5 -0
  43. package/lib/cjs/components/EventHeader/EventHeader.js +3 -7
  44. package/lib/cjs/components/EventInfoWidget/EventInfoWidget.js +6 -4
  45. package/lib/cjs/components/EventMediaWidget/EventMediaWidget.d.ts +41 -0
  46. package/lib/cjs/components/EventMediaWidget/EventMediaWidget.js +253 -0
  47. package/lib/cjs/components/EventMediaWidget/Skeleton.d.ts +2 -0
  48. package/lib/cjs/components/EventMediaWidget/Skeleton.js +28 -0
  49. package/lib/cjs/components/EventMediaWidget/TriggerButton.d.ts +17 -0
  50. package/lib/cjs/components/EventMediaWidget/TriggerButton.js +66 -0
  51. package/lib/cjs/components/EventMediaWidget/asUploadButton.d.ts +7 -0
  52. package/lib/cjs/components/EventMediaWidget/asUploadButton.js +25 -0
  53. package/lib/cjs/components/EventMediaWidget/constants.d.ts +1 -0
  54. package/lib/cjs/components/EventMediaWidget/constants.js +4 -0
  55. package/lib/cjs/components/EventMediaWidget/index.d.ts +4 -0
  56. package/lib/cjs/components/EventMediaWidget/index.js +8 -0
  57. package/lib/cjs/components/EventMembersWidget/EventMembersWidget.d.ts +3 -0
  58. package/lib/cjs/components/EventMembersWidget/EventMembersWidget.js +18 -13
  59. package/lib/cjs/components/EventMembersWidget/types.d.ts +1 -1
  60. package/lib/cjs/components/Events/Events.js +15 -6
  61. package/lib/cjs/components/Events/LocationEventsFilter.d.ts +14 -0
  62. package/lib/cjs/components/Events/LocationEventsFilter.js +45 -0
  63. package/lib/cjs/components/Events/PastEventsFilter.js +1 -2
  64. package/lib/cjs/components/Feed/Feed.d.ts +2 -2
  65. package/lib/cjs/components/Feed/Feed.js +3 -2
  66. package/lib/cjs/components/Feed/Skeleton.d.ts +1 -1
  67. package/lib/cjs/components/GroupActionsMenu/index.d.ts +57 -0
  68. package/lib/cjs/components/GroupActionsMenu/index.js +157 -0
  69. package/lib/cjs/components/GroupHeader/GroupHeader.d.ts +6 -0
  70. package/lib/cjs/components/GroupHeader/GroupHeader.js +8 -4
  71. package/lib/cjs/components/Groups/Groups.js +26 -0
  72. package/lib/cjs/components/LiveStreamForm/LiveStreamForm.d.ts +55 -0
  73. package/lib/cjs/components/LiveStreamForm/LiveStreamForm.js +156 -0
  74. package/lib/cjs/components/LiveStreamForm/constants.d.ts +1 -0
  75. package/lib/cjs/components/LiveStreamForm/constants.js +4 -0
  76. package/lib/cjs/components/LiveStreamForm/index.d.ts +3 -0
  77. package/lib/cjs/components/LiveStreamForm/index.js +5 -0
  78. package/lib/cjs/components/LiveStreamForm/types.d.ts +10 -0
  79. package/lib/cjs/components/LiveStreamForm/types.js +2 -0
  80. package/lib/cjs/components/LiveStreamRoom/LiveStreamRoom.d.ts +48 -0
  81. package/lib/cjs/components/LiveStreamRoom/LiveStreamRoom.js +123 -0
  82. package/lib/cjs/components/LiveStreamRoom/LiveStreamVideoConference/LiveStreamVideoConference.d.ts +69 -0
  83. package/lib/cjs/components/LiveStreamRoom/LiveStreamVideoConference/LiveStreamVideoConference.js +186 -0
  84. package/lib/cjs/components/LiveStreamRoom/LiveStreamVideoConference/RecordingIndicator.d.ts +4 -0
  85. package/lib/cjs/components/LiveStreamRoom/LiveStreamVideoConference/RecordingIndicator.js +31 -0
  86. package/lib/cjs/components/LiveStreamRoom/LiveStreamVideoConference/constants.d.ts +1 -0
  87. package/lib/cjs/components/LiveStreamRoom/LiveStreamVideoConference/constants.js +4 -0
  88. package/lib/cjs/components/LiveStreamRoom/LiveStreamVideoConference/index.d.ts +3 -0
  89. package/lib/cjs/components/LiveStreamRoom/LiveStreamVideoConference/index.js +5 -0
  90. package/lib/cjs/components/LiveStreamRoom/constants.d.ts +5 -0
  91. package/lib/cjs/components/LiveStreamRoom/constants.js +8 -0
  92. package/lib/cjs/components/LiveStreamRoom/index.d.ts +3 -0
  93. package/lib/cjs/components/LiveStreamRoom/index.js +5 -0
  94. package/lib/cjs/components/LiveStreamRoom/types.d.ts +22 -0
  95. package/lib/cjs/components/LiveStreamRoom/types.js +8 -0
  96. package/lib/cjs/components/NavigationMenuIconButton/DefaultDrawerContent.js +1 -1
  97. package/lib/cjs/components/NavigationMenuIconButton/DefaultHeaderContent.d.ts +1 -1
  98. package/lib/cjs/components/NavigationMenuIconButton/NavigationMenuDrawer.d.ts +47 -0
  99. package/lib/cjs/components/NavigationMenuIconButton/NavigationMenuDrawer.js +39 -0
  100. package/lib/cjs/components/NavigationMenuIconButton/NavigationMenuIconButton.d.ts +9 -20
  101. package/lib/cjs/components/NavigationMenuIconButton/NavigationMenuIconButton.js +4 -20
  102. package/lib/cjs/components/NavigationMenuIconButton/index.d.ts +2 -1
  103. package/lib/cjs/components/NavigationMenuIconButton/index.js +3 -1
  104. package/lib/cjs/components/NavigationSettingsIconButton/NavigationSettingsIconButton.js +35 -2
  105. package/lib/cjs/components/NavigationToolbar/NavigationToolbar.d.ts +5 -0
  106. package/lib/cjs/components/NavigationToolbar/NavigationToolbar.js +3 -3
  107. package/lib/cjs/components/OnBoardingWidget/ActionsButton.d.ts +7 -0
  108. package/lib/cjs/components/OnBoardingWidget/ActionsButton.js +84 -0
  109. package/lib/cjs/components/OnBoardingWidget/OnBoardingWidget.d.ts +5 -1
  110. package/lib/cjs/components/OnBoardingWidget/OnBoardingWidget.js +96 -23
  111. package/lib/cjs/components/OnBoardingWidget/Steps/Appearance/Appearance.js +23 -16
  112. package/lib/cjs/components/OnBoardingWidget/Steps/Invite/Invite.js +56 -12
  113. package/lib/cjs/components/PlatformWidget/constants.d.ts +0 -4
  114. package/lib/cjs/components/PlatformWidget/constants.js +1 -5
  115. package/lib/cjs/components/PrivateMessageComponent/Skeleton.d.ts +1 -1
  116. package/lib/cjs/components/PrivateMessageThreadItem/PrivateMessageThreadItem.js +1 -3
  117. package/lib/cjs/constants/GroupActionsMenu.d.ts +5 -0
  118. package/lib/cjs/constants/GroupActionsMenu.js +8 -0
  119. package/lib/cjs/constants/LiveStream.d.ts +3 -0
  120. package/lib/cjs/constants/LiveStream.js +6 -0
  121. package/lib/cjs/constants/PubSub.d.ts +8 -1
  122. package/lib/cjs/constants/PubSub.js +9 -1
  123. package/lib/cjs/index.d.ts +15 -4
  124. package/lib/cjs/index.js +35 -9
  125. package/lib/cjs/shared/EventActionsMenu/index.d.ts +1 -1
  126. package/lib/cjs/shared/EventActionsMenu/index.js +11 -15
  127. package/lib/cjs/shared/EventInfoDetails/index.js +3 -3
  128. package/lib/cjs/shared/InfiniteScroll/index.d.ts +1 -1
  129. package/lib/cjs/shared/InfiniteScroll/index.js +4 -4
  130. package/lib/cjs/shared/Lightbox/BaseLightbox.d.ts +19 -0
  131. package/lib/cjs/shared/Lightbox/BaseLightbox.js +35 -0
  132. package/lib/cjs/shared/Lightbox/Lightbox.d.ts +31 -17
  133. package/lib/cjs/shared/Lightbox/Lightbox.js +16 -19
  134. package/lib/cjs/shared/Lightbox/constants.d.ts +1 -0
  135. package/lib/cjs/shared/Lightbox/constants.js +4 -0
  136. package/lib/cjs/shared/Lightbox/index.d.ts +4 -2
  137. package/lib/cjs/shared/Lightbox/index.js +4 -1
  138. package/lib/cjs/shared/Media/File/DisplayComponent.js +23 -6
  139. package/lib/cjs/shared/Media/File/asUploadButton.d.ts +1 -1
  140. package/lib/cjs/shared/Media/Link/DisplayComponent.js +5 -5
  141. package/lib/cjs/shared/Media/Link/UrlTextField/index.d.ts +1 -1
  142. package/lib/cjs/shared/MediaChunkUploader/index.js +13 -11
  143. package/lib/cjs/shared/MetadataField/MetadataField.d.ts +1 -1
  144. package/lib/cjs/shared/StickyBox/index.d.ts +4 -4
  145. package/lib/cjs/shared/UsernameTextField/index.d.ts +1 -1
  146. package/lib/cjs/types/composer.d.ts +1 -1
  147. package/lib/cjs/utils/events.d.ts +2 -0
  148. package/lib/cjs/utils/events.js +10 -0
  149. package/lib/cjs/utils/hash.d.ts +2 -1
  150. package/lib/cjs/utils/liveStream.d.ts +4 -0
  151. package/lib/cjs/utils/liveStream.js +25 -0
  152. package/lib/cjs/utils/widget.d.ts +1 -0
  153. package/lib/cjs/utils/widget.js +14 -0
  154. package/lib/esm/components/BottomNavigation/BottomNavigation.d.ts +1 -1
  155. package/lib/esm/components/Categories/Categories.js +23 -1
  156. package/lib/esm/components/CategoriesPopularWidget/CategoriesPopularWidget.js +22 -1
  157. package/lib/esm/components/CategoriesSuggestionWidget/CategoriesSuggestionWidget.js +22 -1
  158. package/lib/esm/components/Composer/TypeSwitchButtonGroup/TypeSwitchButtonGroup.js +2 -2
  159. package/lib/esm/components/CreateEventButton/CreateEventButton.d.ts +2 -2
  160. package/lib/esm/components/CreateEventButton/CreateEventButton.js +4 -4
  161. package/lib/esm/components/CreateLiveStreamButton/CreateLiveStreamButton.d.ts +49 -0
  162. package/lib/esm/components/CreateLiveStreamButton/CreateLiveStreamButton.js +91 -0
  163. package/lib/esm/components/CreateLiveStreamButton/index.d.ts +3 -0
  164. package/lib/esm/components/CreateLiveStreamButton/index.js +2 -0
  165. package/lib/esm/components/CreateLiveStreamDialog/CreateLiveStreamDialog.d.ts +51 -0
  166. package/lib/esm/components/CreateLiveStreamDialog/CreateLiveStreamDialog.js +120 -0
  167. package/lib/esm/components/CreateLiveStreamDialog/LiveStreamSelector/LiveStreamSelector.d.ts +46 -0
  168. package/lib/esm/components/CreateLiveStreamDialog/LiveStreamSelector/LiveStreamSelector.js +163 -0
  169. package/lib/esm/components/CreateLiveStreamDialog/constants.d.ts +1 -0
  170. package/lib/esm/components/CreateLiveStreamDialog/constants.js +1 -0
  171. package/lib/esm/components/CreateLiveStreamDialog/index.d.ts +3 -0
  172. package/lib/esm/components/CreateLiveStreamDialog/index.js +2 -0
  173. package/lib/esm/components/CreateLiveStreamDialog/types.d.ts +8 -0
  174. package/lib/esm/components/CreateLiveStreamDialog/types.js +10 -0
  175. package/lib/esm/components/EditEventButton/EditEventButton.js +1 -1
  176. package/lib/esm/components/Editor/Editor.d.ts +1 -1
  177. package/lib/esm/components/Editor/nodes/HashtagNode.d.ts +1 -1
  178. package/lib/esm/components/Editor/nodes/HashtagNode.js +4 -4
  179. package/lib/esm/components/Editor/nodes/ImageNode.d.ts +1 -1
  180. package/lib/esm/components/Editor/nodes/ImageNode.js +6 -6
  181. package/lib/esm/components/Editor/nodes/MentionNode.d.ts +1 -1
  182. package/lib/esm/components/Editor/nodes/MentionNode.js +4 -4
  183. package/lib/esm/components/Editor/plugins/ApiPlugin.d.ts +1 -1
  184. package/lib/esm/components/Editor/plugins/MentionsPlugin.d.ts +2 -2
  185. package/lib/esm/components/Editor/shared/useDecorators.d.ts +2 -2
  186. package/lib/esm/components/Event/Event.js +1 -1
  187. package/lib/esm/components/EventForm/EventForm.d.ts +7 -12
  188. package/lib/esm/components/EventForm/EventForm.js +56 -56
  189. package/lib/esm/components/EventForm/types.d.ts +5 -5
  190. package/lib/esm/components/EventFormDialog/EventFormDialog.d.ts +48 -0
  191. package/lib/esm/components/EventFormDialog/EventFormDialog.js +53 -0
  192. package/lib/esm/components/EventFormDialog/constants.d.ts +1 -0
  193. package/lib/esm/components/EventFormDialog/constants.js +1 -0
  194. package/lib/esm/components/EventFormDialog/index.d.ts +3 -0
  195. package/lib/esm/components/EventFormDialog/index.js +2 -0
  196. package/lib/esm/components/EventHeader/EventHeader.js +3 -7
  197. package/lib/esm/components/EventInfoWidget/EventInfoWidget.js +6 -4
  198. package/lib/esm/components/EventMediaWidget/EventMediaWidget.d.ts +41 -0
  199. package/lib/esm/components/EventMediaWidget/EventMediaWidget.js +250 -0
  200. package/lib/esm/components/EventMediaWidget/Skeleton.d.ts +2 -0
  201. package/lib/esm/components/EventMediaWidget/Skeleton.js +22 -0
  202. package/lib/esm/components/EventMediaWidget/TriggerButton.d.ts +17 -0
  203. package/lib/esm/components/EventMediaWidget/TriggerButton.js +64 -0
  204. package/lib/esm/components/EventMediaWidget/asUploadButton.d.ts +7 -0
  205. package/lib/esm/components/EventMediaWidget/asUploadButton.js +23 -0
  206. package/lib/esm/components/EventMediaWidget/constants.d.ts +1 -0
  207. package/lib/esm/components/EventMediaWidget/constants.js +1 -0
  208. package/lib/esm/components/EventMediaWidget/index.d.ts +4 -0
  209. package/lib/esm/components/EventMediaWidget/index.js +4 -0
  210. package/lib/esm/components/EventMembersWidget/EventMembersWidget.d.ts +3 -0
  211. package/lib/esm/components/EventMembersWidget/EventMembersWidget.js +18 -13
  212. package/lib/esm/components/EventMembersWidget/types.d.ts +1 -1
  213. package/lib/esm/components/Events/Events.js +16 -7
  214. package/lib/esm/components/Events/LocationEventsFilter.d.ts +14 -0
  215. package/lib/esm/components/Events/LocationEventsFilter.js +41 -0
  216. package/lib/esm/components/Events/PastEventsFilter.js +1 -2
  217. package/lib/esm/components/Feed/Feed.d.ts +2 -2
  218. package/lib/esm/components/Feed/Feed.js +4 -3
  219. package/lib/esm/components/Feed/Skeleton.d.ts +1 -1
  220. package/lib/esm/components/GroupActionsMenu/index.d.ts +57 -0
  221. package/lib/esm/components/GroupActionsMenu/index.js +154 -0
  222. package/lib/esm/components/GroupHeader/GroupHeader.d.ts +6 -0
  223. package/lib/esm/components/GroupHeader/GroupHeader.js +9 -5
  224. package/lib/esm/components/Groups/Groups.js +27 -1
  225. package/lib/esm/components/LiveStreamForm/LiveStreamForm.d.ts +55 -0
  226. package/lib/esm/components/LiveStreamForm/LiveStreamForm.js +153 -0
  227. package/lib/esm/components/LiveStreamForm/constants.d.ts +1 -0
  228. package/lib/esm/components/LiveStreamForm/constants.js +1 -0
  229. package/lib/esm/components/LiveStreamForm/index.d.ts +3 -0
  230. package/lib/esm/components/LiveStreamForm/index.js +2 -0
  231. package/lib/esm/components/LiveStreamForm/types.d.ts +10 -0
  232. package/lib/esm/components/LiveStreamForm/types.js +1 -0
  233. package/lib/esm/components/LiveStreamRoom/LiveStreamRoom.d.ts +48 -0
  234. package/lib/esm/components/LiveStreamRoom/LiveStreamRoom.js +120 -0
  235. package/lib/esm/components/LiveStreamRoom/LiveStreamVideoConference/LiveStreamVideoConference.d.ts +69 -0
  236. package/lib/esm/components/LiveStreamRoom/LiveStreamVideoConference/LiveStreamVideoConference.js +183 -0
  237. package/lib/esm/components/LiveStreamRoom/LiveStreamVideoConference/RecordingIndicator.d.ts +4 -0
  238. package/lib/esm/components/LiveStreamRoom/LiveStreamVideoConference/RecordingIndicator.js +28 -0
  239. package/lib/esm/components/LiveStreamRoom/LiveStreamVideoConference/constants.d.ts +1 -0
  240. package/lib/esm/components/LiveStreamRoom/LiveStreamVideoConference/constants.js +1 -0
  241. package/lib/esm/components/LiveStreamRoom/LiveStreamVideoConference/index.d.ts +3 -0
  242. package/lib/esm/components/LiveStreamRoom/LiveStreamVideoConference/index.js +2 -0
  243. package/lib/esm/components/LiveStreamRoom/constants.d.ts +5 -0
  244. package/lib/esm/components/LiveStreamRoom/constants.js +5 -0
  245. package/lib/esm/components/LiveStreamRoom/index.d.ts +3 -0
  246. package/lib/esm/components/LiveStreamRoom/index.js +2 -0
  247. package/lib/esm/components/LiveStreamRoom/types.d.ts +22 -0
  248. package/lib/esm/components/LiveStreamRoom/types.js +4 -0
  249. package/lib/esm/components/NavigationMenuIconButton/DefaultDrawerContent.js +2 -2
  250. package/lib/esm/components/NavigationMenuIconButton/DefaultHeaderContent.d.ts +1 -1
  251. package/lib/esm/components/NavigationMenuIconButton/NavigationMenuDrawer.d.ts +47 -0
  252. package/lib/esm/components/NavigationMenuIconButton/NavigationMenuDrawer.js +36 -0
  253. package/lib/esm/components/NavigationMenuIconButton/NavigationMenuIconButton.d.ts +9 -20
  254. package/lib/esm/components/NavigationMenuIconButton/NavigationMenuIconButton.js +6 -22
  255. package/lib/esm/components/NavigationMenuIconButton/index.d.ts +2 -1
  256. package/lib/esm/components/NavigationMenuIconButton/index.js +2 -1
  257. package/lib/esm/components/NavigationSettingsIconButton/NavigationSettingsIconButton.js +38 -5
  258. package/lib/esm/components/NavigationToolbar/NavigationToolbar.d.ts +5 -0
  259. package/lib/esm/components/NavigationToolbar/NavigationToolbar.js +3 -3
  260. package/lib/esm/components/OnBoardingWidget/ActionsButton.d.ts +7 -0
  261. package/lib/esm/components/OnBoardingWidget/ActionsButton.js +81 -0
  262. package/lib/esm/components/OnBoardingWidget/OnBoardingWidget.d.ts +5 -1
  263. package/lib/esm/components/OnBoardingWidget/OnBoardingWidget.js +99 -26
  264. package/lib/esm/components/OnBoardingWidget/Steps/Appearance/Appearance.js +24 -17
  265. package/lib/esm/components/OnBoardingWidget/Steps/Invite/Invite.js +59 -14
  266. package/lib/esm/components/PlatformWidget/constants.d.ts +0 -4
  267. package/lib/esm/components/PlatformWidget/constants.js +0 -4
  268. package/lib/esm/components/PrivateMessageComponent/Skeleton.d.ts +1 -1
  269. package/lib/esm/components/PrivateMessageThreadItem/PrivateMessageThreadItem.js +1 -3
  270. package/lib/esm/constants/GroupActionsMenu.d.ts +5 -0
  271. package/lib/esm/constants/GroupActionsMenu.js +5 -0
  272. package/lib/esm/constants/LiveStream.d.ts +3 -0
  273. package/lib/esm/constants/LiveStream.js +3 -0
  274. package/lib/esm/constants/PubSub.d.ts +8 -1
  275. package/lib/esm/constants/PubSub.js +8 -0
  276. package/lib/esm/index.d.ts +15 -4
  277. package/lib/esm/index.js +17 -7
  278. package/lib/esm/shared/EventActionsMenu/index.d.ts +1 -1
  279. package/lib/esm/shared/EventActionsMenu/index.js +11 -15
  280. package/lib/esm/shared/EventInfoDetails/index.js +3 -3
  281. package/lib/esm/shared/InfiniteScroll/index.d.ts +1 -1
  282. package/lib/esm/shared/InfiniteScroll/index.js +4 -4
  283. package/lib/esm/shared/Lightbox/BaseLightbox.d.ts +19 -0
  284. package/lib/esm/shared/Lightbox/BaseLightbox.js +33 -0
  285. package/lib/esm/shared/Lightbox/Lightbox.d.ts +31 -17
  286. package/lib/esm/shared/Lightbox/Lightbox.js +15 -19
  287. package/lib/esm/shared/Lightbox/constants.d.ts +1 -0
  288. package/lib/esm/shared/Lightbox/constants.js +1 -0
  289. package/lib/esm/shared/Lightbox/index.d.ts +4 -2
  290. package/lib/esm/shared/Lightbox/index.js +3 -1
  291. package/lib/esm/shared/Media/File/DisplayComponent.js +23 -6
  292. package/lib/esm/shared/Media/File/asUploadButton.d.ts +1 -1
  293. package/lib/esm/shared/Media/Link/DisplayComponent.js +5 -5
  294. package/lib/esm/shared/Media/Link/UrlTextField/index.d.ts +1 -1
  295. package/lib/esm/shared/MediaChunkUploader/index.js +14 -12
  296. package/lib/esm/shared/MetadataField/MetadataField.d.ts +1 -1
  297. package/lib/esm/shared/StickyBox/index.d.ts +4 -4
  298. package/lib/esm/shared/UsernameTextField/index.d.ts +1 -1
  299. package/lib/esm/types/composer.d.ts +1 -1
  300. package/lib/esm/utils/events.d.ts +2 -0
  301. package/lib/esm/utils/events.js +6 -0
  302. package/lib/esm/utils/hash.d.ts +2 -1
  303. package/lib/esm/utils/liveStream.d.ts +4 -0
  304. package/lib/esm/utils/liveStream.js +18 -0
  305. package/lib/esm/utils/widget.d.ts +1 -0
  306. package/lib/esm/utils/widget.js +14 -0
  307. package/lib/umd/245.js +1 -0
  308. package/lib/umd/43.js +2 -0
  309. package/lib/umd/react-ui.js +1 -1
  310. package/lib/umd/react-ui.js.LICENSE.txt +2 -0
  311. package/package.json +22 -10
  312. package/lib/cjs/shared/Media/File/Lightbox/index.d.ts +0 -28
  313. package/lib/cjs/shared/Media/File/Lightbox/index.js +0 -37
  314. package/lib/esm/shared/Media/File/Lightbox/index.d.ts +0 -28
  315. package/lib/esm/shared/Media/File/Lightbox/index.js +0 -34
  316. package/lib/umd/99.js +0 -2
  317. /package/lib/umd/{99.js.LICENSE.txt → 43.js.LICENSE.txt} +0 -0
@@ -0,0 +1,120 @@
1
+ import { __rest } from "tslib";
2
+ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
3
+ import React, { useCallback, useEffect, useMemo, useState } from 'react';
4
+ import { styled } from '@mui/material/styles';
5
+ import { useThemeProps } from '@mui/system';
6
+ import { SCPreferences, UserUtils, useSCContext, useSCPreferences, useSCUser } from '@selfcommunity/react-core';
7
+ import { SCFeatureName } from '@selfcommunity/types';
8
+ import classNames from 'classnames';
9
+ import { FormattedMessage } from 'react-intl';
10
+ import BaseDialog from '../../shared/BaseDialog';
11
+ import { PREFIX } from './constants';
12
+ import EventForm from '../EventForm';
13
+ import LiveStreamSelector from './LiveStreamSelector/LiveStreamSelector';
14
+ import { CreateLiveStreamStep, LiveStreamType } from './types';
15
+ import LiveStreamForm from '../LiveStreamForm';
16
+ import Slide from '@mui/material/Slide';
17
+ import { Box, Button, Icon } from '@mui/material';
18
+ const classes = {
19
+ root: `${PREFIX}-root`,
20
+ title: `${PREFIX}-title`,
21
+ content: `${PREFIX}-content`
22
+ };
23
+ const Root = styled(BaseDialog, {
24
+ name: PREFIX,
25
+ slot: 'Root'
26
+ })(({ theme }) => ({
27
+ paddingBottom: '0px !important',
28
+ [`& .${classes.title}`]: {
29
+ display: 'flex'
30
+ },
31
+ [`& .${classes.content}`]: {
32
+ paddingBottom: 0
33
+ }
34
+ }));
35
+ const Transition = React.forwardRef(function Transition(props, ref) {
36
+ return _jsx(Slide, Object.assign({ direction: "up", ref: ref }, props));
37
+ });
38
+ /**
39
+ *> API documentation for the Community-JS CreateLiveStreamDialog component. Learn about the available props and the CSS API.
40
+ *
41
+ #### Import
42
+ ```jsx
43
+ import {CreateLivestreamDialog} from '@selfcommunity/react-ui';
44
+ ```
45
+
46
+ #### Component Name
47
+ The name `SCCreateLivestreamDialog` can be used when providing style overrides in the theme.
48
+
49
+ #### CSS
50
+
51
+ |Rule Name|Global class|Description|
52
+ |---|---|---|
53
+ |root|.SCCreateLivestreamDialog-root|Styles applied to the root element.|
54
+ |content|.SCCreateLivestreamDialog-content|Styles applied to the content element.|
55
+
56
+
57
+
58
+ * @param inProps
59
+ */
60
+ export default function CreateLiveStreamDialog(inProps) {
61
+ //PROPS
62
+ const props = useThemeProps({
63
+ props: inProps,
64
+ name: PREFIX
65
+ });
66
+ const { className, open = true, onClose, onSuccess } = props, rest = __rest(props, ["className", "open", "onClose", "onSuccess"]);
67
+ // CONTEXT
68
+ const scContext = useSCContext();
69
+ const scUserContext = useSCUser();
70
+ const { preferences, features } = useSCPreferences();
71
+ const liveStreamEnabled = useMemo(() => true,
72
+ /* preferences &&
73
+ features &&
74
+ features.includes(SCFeatureName.LIVE_STREAM) &&
75
+ SCPreferences.CONFIGURATIONS_LIVE_STREAM_ENABLED in preferences &&
76
+ preferences[SCPreferences.CONFIGURATIONS_LIVE_STREAM_ENABLED].value*/ [preferences, features]);
77
+ const onlyStaffLiveStreamEnabled = useMemo(() => true /* preferences[SCPreferences.CONFIGURATIONS_LIVESTREAM_ONLY_STAFF_ENABLED].value */, [preferences]);
78
+ const canCreateLiveStream = useMemo(() => true /* liveStreamEnabled && (scUserContext?.user?.permission?.create_livestream || (onlyStaffLiveStreamEnabled && UserUtils.isStaff(scUserContext.user)))*/, [scUserContext === null || scUserContext === void 0 ? void 0 : scUserContext.user, onlyStaffLiveStreamEnabled]);
79
+ console.log(canCreateLiveStream);
80
+ const eventsEnabled = useMemo(() => preferences &&
81
+ features &&
82
+ features.includes(SCFeatureName.TAGGING) &&
83
+ SCPreferences.CONFIGURATIONS_EVENTS_ENABLED in preferences &&
84
+ preferences[SCPreferences.CONFIGURATIONS_EVENTS_ENABLED].value, [preferences, features]);
85
+ const onlyStaffEventEnabled = useMemo(() => preferences[SCPreferences.CONFIGURATIONS_EVENTS_ONLY_STAFF_ENABLED].value, [preferences]);
86
+ const canCreateEvent = useMemo(() => { var _a, _b; return eventsEnabled && (((_b = (_a = scUserContext === null || scUserContext === void 0 ? void 0 : scUserContext.user) === null || _a === void 0 ? void 0 : _a.permission) === null || _b === void 0 ? void 0 : _b.create_event) || true || (onlyStaffEventEnabled && UserUtils.isStaff(scUserContext.user))); }, [scUserContext === null || scUserContext === void 0 ? void 0 : scUserContext.user, eventsEnabled, onlyStaffEventEnabled]);
87
+ console.log(canCreateEvent);
88
+ const canCreateLiveStreamEvent = useMemo(() => Boolean(canCreateLiveStream && canCreateEvent), [canCreateEvent, canCreateLiveStream]);
89
+ console.log(canCreateLiveStreamEvent);
90
+ // STATE
91
+ const [step, setStep] = useState(canCreateLiveStreamEvent ? CreateLiveStreamStep.SELECT_TYPE : CreateLiveStreamStep.CREATE_LIVE);
92
+ const [liveType, setLiveType] = useState(canCreateLiveStreamEvent ? null : LiveStreamType.DIRECT_LIVE);
93
+ // HANDLER
94
+ const handleLiveTypeSelected = useCallback((l) => {
95
+ setLiveType(l);
96
+ }, []);
97
+ const handleLiveTypeSelectedNext = useCallback((l) => {
98
+ setLiveType(l);
99
+ setStep(CreateLiveStreamStep.CREATE_LIVE);
100
+ }, []);
101
+ const handleBack = useCallback((l) => {
102
+ setStep(CreateLiveStreamStep.SELECT_TYPE);
103
+ }, []);
104
+ const handleSubmit = useCallback((e) => {
105
+ onSuccess && onSuccess(e);
106
+ }, []);
107
+ useEffect(() => {
108
+ if (!canCreateLiveStreamEvent) {
109
+ setLiveType(LiveStreamType.DIRECT_LIVE);
110
+ }
111
+ }, [canCreateLiveStreamEvent]);
112
+ // user must be logged
113
+ if (!scUserContext.user) {
114
+ return null;
115
+ }
116
+ /**
117
+ * Renders root object
118
+ */
119
+ return (_jsx(Root, Object.assign({ DialogContentProps: { dividers: false }, maxWidth: 'md', title: _jsxs(Box, Object.assign({ className: classes.title, component: 'span' }, { children: [step === CreateLiveStreamStep.CREATE_LIVE && (_jsx(Button, Object.assign({ variant: "text", onClick: handleBack, startIcon: _jsx(Icon, { children: "arrow_back" }) }, { children: "Back" }))), _jsx(Box, Object.assign({ component: 'span' }, { children: _jsx(FormattedMessage, { id: "ui.createLivestreamDialog.title", defaultMessage: "ui.createLivestreamDialog.title" }) }))] })), fullWidth: true, open: open, onClose: onClose, className: classNames(classes.root, className), TransitionComponent: Transition, PaperProps: { elevation: 0 } }, rest, { children: _jsxs(Box, Object.assign({ className: classes.content }, { children: [step === CreateLiveStreamStep.SELECT_TYPE && (_jsx(LiveStreamSelector, { liveSelected: liveType, onLiveSelected: handleLiveTypeSelected, onNext: handleLiveTypeSelectedNext })), step === CreateLiveStreamStep.CREATE_LIVE && (_jsx(_Fragment, { children: liveType === LiveStreamType.EVENT_LIVE ? _jsx(EventForm, { onSuccess: handleSubmit }) : _jsx(LiveStreamForm, { onSuccess: handleSubmit }) }))] })) })));
120
+ }
@@ -0,0 +1,46 @@
1
+ import { LiveStreamType } from '../types';
2
+ export interface LiveStreamSelectorProps {
3
+ /**
4
+ * Overrides or extends the styles applied to the component.
5
+ * @default null
6
+ */
7
+ className?: string;
8
+ /**
9
+ * Option selected
10
+ */
11
+ liveSelected?: LiveStreamType;
12
+ /**
13
+ * Callback on selected option
14
+ * @param LiveStreamType
15
+ */
16
+ onLiveSelected?: (live: LiveStreamType) => void;
17
+ /**
18
+ * On success callback function
19
+ * @default null
20
+ */
21
+ onNext?: (live: LiveStreamType) => void;
22
+ /**
23
+ * Any other properties
24
+ */
25
+ [p: string]: any;
26
+ }
27
+ /**
28
+ *> API documentation for the Community-JS LiveStreamSelector component. Learn about the available props and the CSS API.
29
+ *
30
+ #### Import
31
+ ```jsx
32
+ import {LiveStreamSelector} from '@selfcommunity/react-ui';
33
+ ```
34
+
35
+ #### Component Name
36
+ The name `SCLiveStreamSelector` can be used when providing style overrides in the theme.
37
+
38
+ #### CSS
39
+
40
+ |Rule Name|Global class|Description|
41
+ |---|---|---|
42
+ |root|.SCCreateLivestreamDialog-root|Styles applied to the root element.|
43
+
44
+ * @param inProps
45
+ */
46
+ export default function LiveStreamSelector(inProps: LiveStreamSelectorProps): JSX.Element;
@@ -0,0 +1,163 @@
1
+ import { __rest } from "tslib";
2
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
+ import { useState } from 'react';
4
+ import { styled } from '@mui/material/styles';
5
+ import { Box, Typography, Button, Paper, Container, Radio } from '@mui/material';
6
+ import Icon from '@mui/material/Icon';
7
+ import { PREFIX } from '../constants';
8
+ import { useThemeProps } from '@mui/system';
9
+ import classNames from 'classnames';
10
+ import { LiveStreamType } from '../types';
11
+ import { useSnackbar } from 'notistack';
12
+ import { FormattedMessage } from 'react-intl';
13
+ const classes = {
14
+ root: `${PREFIX}-root`,
15
+ options: `${PREFIX}-options`,
16
+ actions: `${PREFIX}-actions`
17
+ };
18
+ const Root = styled(Container, {
19
+ name: PREFIX,
20
+ slot: 'Root'
21
+ })(({ theme }) => ({
22
+ [`& .${classes.options}`]: {
23
+ display: 'flex',
24
+ justifyContent: 'center',
25
+ alignItems: 'center'
26
+ },
27
+ [`& .${classes.actions}`]: {
28
+ display: 'flex',
29
+ justifyContent: 'flex-end',
30
+ alignItems: 'flex-end',
31
+ marginTop: theme.spacing(4)
32
+ }
33
+ }));
34
+ // Styled components
35
+ const OptionCard = styled(Paper, {
36
+ shouldForwardProp: (prop) => prop !== 'selected'
37
+ })(({ theme, selected }) => ({
38
+ maxWidth: '300px',
39
+ padding: theme.spacing(3),
40
+ margin: theme.spacing(0, 3),
41
+ cursor: 'pointer',
42
+ transition: theme.transitions.create(['background-color', 'box-shadow'], {
43
+ duration: theme.transitions.duration.short
44
+ }),
45
+ backgroundColor: selected ? theme.palette.grey[100] : theme.palette.background.paper,
46
+ '&:hover': {
47
+ backgroundColor: theme.palette.grey[50],
48
+ boxShadow: theme.shadows[2]
49
+ },
50
+ border: `1px solid ${theme.palette.divider}`,
51
+ [`& > div`]: {
52
+ display: 'flex',
53
+ justifyContent: 'space-between',
54
+ alignItems: 'center',
55
+ marginBottom: 2,
56
+ maxWidth: '300px'
57
+ },
58
+ [`& ul`]: {
59
+ marginTop: theme.spacing(2),
60
+ padding: 0,
61
+ listStyle: 'none'
62
+ }
63
+ }));
64
+ const RadioIndicator = styled(Radio, {
65
+ shouldForwardProp: (prop) => prop !== 'selected'
66
+ })(({ theme, selected }) => ({
67
+ width: 16,
68
+ height: 16,
69
+ borderRadius: '50%',
70
+ border: `2px solid ${selected ? theme.palette.secondary.main : theme.palette.grey[300]}`,
71
+ backgroundColor: selected ? theme.palette.secondary.main : 'transparent',
72
+ transition: theme.transitions.create(['border-color', 'background-color'], {
73
+ duration: theme.transitions.duration.shortest
74
+ })
75
+ }));
76
+ const FeatureItem = styled(Box)(({ theme }) => ({
77
+ display: 'flex',
78
+ alignItems: 'flex-start',
79
+ gap: theme.spacing(1.5),
80
+ marginBottom: theme.spacing(2),
81
+ '&:last-child': {
82
+ marginBottom: 0
83
+ }
84
+ }));
85
+ /**
86
+ *> API documentation for the Community-JS LiveStreamSelector component. Learn about the available props and the CSS API.
87
+ *
88
+ #### Import
89
+ ```jsx
90
+ import {LiveStreamSelector} from '@selfcommunity/react-ui';
91
+ ```
92
+
93
+ #### Component Name
94
+ The name `SCLiveStreamSelector` can be used when providing style overrides in the theme.
95
+
96
+ #### CSS
97
+
98
+ |Rule Name|Global class|Description|
99
+ |---|---|---|
100
+ |root|.SCCreateLivestreamDialog-root|Styles applied to the root element.|
101
+
102
+ * @param inProps
103
+ */
104
+ export default function LiveStreamSelector(inProps) {
105
+ //PROPS
106
+ const props = useThemeProps({
107
+ props: inProps,
108
+ name: PREFIX
109
+ });
110
+ const { className, liveSelected, onLiveSelected, onNext } = props, rest = __rest(props, ["className", "liveSelected", "onLiveSelected", "onNext"]);
111
+ // CONTEXT
112
+ const { enqueueSnackbar } = useSnackbar();
113
+ // STATE
114
+ const [selectedOption, setSelectedOption] = useState(liveSelected);
115
+ const options = [
116
+ {
117
+ title: 'Schedule a live event',
118
+ type: LiveStreamType.EVENT_LIVE,
119
+ features: [
120
+ 'Schedule a live room or stream in your event space',
121
+ 'Allow your members to RSVP, add to calendar, and receive event reminders',
122
+ 'Automatically post the event recording to your space',
123
+ 'Allow your members to host the event'
124
+ ],
125
+ icons: [_jsx(Icon, { children: "chevron_right" }), _jsx(Icon, { children: "chevron_right" }), _jsx(Icon, { children: "chevron_right" }), _jsx(Icon, { children: "chevron_right" })]
126
+ },
127
+ {
128
+ title: 'Start a live stream',
129
+ type: LiveStreamType.DIRECT_LIVE,
130
+ features: [
131
+ 'Best for webinars, Q&As, AMAs, and for presentations',
132
+ 'Up to 100 people',
133
+ 'Only co-hosts can talk to each other with audio/video',
134
+ 'View-only participants can only chat or be promoted to the stage'
135
+ ],
136
+ icons: [_jsx(Icon, { children: "chevron_right" }), _jsx(Icon, { children: "chevron_right" }), _jsx(Icon, { children: "chevron_right" }), _jsx(Icon, { children: "chevron_right" })]
137
+ }
138
+ ];
139
+ const handleOptionSelect = (type) => {
140
+ setSelectedOption(type);
141
+ onLiveSelected(type);
142
+ };
143
+ const handleNext = () => {
144
+ if (!selectedOption) {
145
+ enqueueSnackbar(_jsx(FormattedMessage, { id: "ui.common.error", defaultMessage: "ui.common.error" }), {
146
+ variant: 'error',
147
+ autoHideDuration: 3000
148
+ });
149
+ }
150
+ else {
151
+ onNext && onNext(selectedOption);
152
+ }
153
+ };
154
+ return (_jsxs(Root, Object.assign({ className: classNames(classes.root, className), maxWidth: "lg", sx: { py: 4 } }, { children: [_jsx(Typography, Object.assign({ variant: "h4", component: "h1", align: "center", gutterBottom: true, sx: { mb: 4, fontWeight: 500 } }, { children: "How do you want to go live?" })), _jsx(Box, Object.assign({ className: classes.options }, { children: options.map((option, index) => (_jsxs(OptionCard, Object.assign({ selected: selectedOption === option.type, onClick: () => handleOptionSelect(option.type), elevation: 0, role: "button", tabIndex: 0, onKeyDown: (e) => {
155
+ if (e.key === 'Enter' || e.key === ' ') {
156
+ handleOptionSelect(index);
157
+ e.preventDefault();
158
+ }
159
+ }, theme: undefined }, { children: [_jsxs(Box, { children: [_jsx(Typography, Object.assign({ variant: "h6", component: "h2", sx: { fontWeight: 500 } }, { children: option.title })), _jsx(RadioIndicator, { selected: selectedOption === option.type, theme: undefined })] }), _jsx(Box, Object.assign({ component: "ul" }, { children: option.features.map((feature, featureIndex) => {
160
+ const _Icon = option.icons[featureIndex];
161
+ return (_jsxs(FeatureItem, Object.assign({ component: "li" }, { children: [_Icon, _jsx(Typography, Object.assign({ variant: "body2", color: "text.secondary", sx: { flex: 1 } }, { children: feature }))] }), featureIndex));
162
+ }) }))] }), index))) })), _jsx(Box, Object.assign({ className: classes.actions }, { children: _jsx(Button, Object.assign({ disabled: !selectedOption, variant: "contained", onClick: handleNext, color: "secondary" }, { children: "Next" })) }))] })));
163
+ }
@@ -0,0 +1 @@
1
+ export declare const PREFIX = "SCCreateLiveStreamDialog";
@@ -0,0 +1 @@
1
+ export const PREFIX = 'SCCreateLiveStreamDialog';
@@ -0,0 +1,3 @@
1
+ import CreateLiveStreamDialog, { CreateLiveStreamDialogProps } from './CreateLiveStreamDialog';
2
+ export default CreateLiveStreamDialog;
3
+ export { CreateLiveStreamDialogProps };
@@ -0,0 +1,2 @@
1
+ import CreateLiveStreamDialog from './CreateLiveStreamDialog';
2
+ export default CreateLiveStreamDialog;
@@ -0,0 +1,8 @@
1
+ export declare enum CreateLiveStreamStep {
2
+ SELECT_TYPE = "_select_type",
3
+ CREATE_LIVE = "_create_live"
4
+ }
5
+ export declare enum LiveStreamType {
6
+ EVENT_LIVE = "_event_live",
7
+ DIRECT_LIVE = "_direct_live"
8
+ }
@@ -0,0 +1,10 @@
1
+ export var CreateLiveStreamStep;
2
+ (function (CreateLiveStreamStep) {
3
+ CreateLiveStreamStep["SELECT_TYPE"] = "_select_type";
4
+ CreateLiveStreamStep["CREATE_LIVE"] = "_create_live";
5
+ })(CreateLiveStreamStep || (CreateLiveStreamStep = {}));
6
+ export var LiveStreamType;
7
+ (function (LiveStreamType) {
8
+ LiveStreamType["EVENT_LIVE"] = "_event_live";
9
+ LiveStreamType["DIRECT_LIVE"] = "_direct_live";
10
+ })(LiveStreamType || (LiveStreamType = {}));
@@ -53,5 +53,5 @@ export default function EditEventButton(inProps) {
53
53
  /**
54
54
  * Renders root object
55
55
  */
56
- return (_jsx(Root, Object.assign({ variant: "outlined", className: classNames(classes.root, className), EventFormProps: { event: scEvent, onSuccess: handleSuccess } }, rest, { children: _jsx(FormattedMessage, { id: "ui.editEventButton", defaultMessage: "ui.editEventButton" }) })));
56
+ return (_jsx(Root, Object.assign({ variant: "outlined", className: classNames(classes.root, className), EventFormDialogComponentProps: { EventFormComponentProps: { event: scEvent, onSuccess: handleSuccess } } }, rest, { children: _jsx(FormattedMessage, { id: "ui.editEventButton", defaultMessage: "ui.editEventButton" }) })));
57
57
  }
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- export declare type EditorRef = {
2
+ export type EditorRef = {
3
3
  focus: () => void;
4
4
  };
5
5
  export interface EditorProps {
@@ -1,7 +1,7 @@
1
1
  import { DOMExportOutput, EditorConfig, LexicalNode, NodeKey, SerializedTextNode, Spread, TextNode } from 'lexical';
2
2
  import { SCCategoryType } from '@selfcommunity/types';
3
3
  import { DOMConversionMap } from 'lexical/LexicalNode';
4
- export declare type SerializedHashtagNode = Spread<{
4
+ export type SerializedHashtagNode = Spread<{
5
5
  category: SCCategoryType;
6
6
  type: 'hashtag';
7
7
  version: 1;
@@ -9,16 +9,16 @@ function convertHashtagElement(domNode) {
9
9
  };
10
10
  }
11
11
  export class HashtagNode extends TextNode {
12
- constructor(category, text, key) {
13
- super(text !== null && text !== void 0 ? text : `#${category.name}`, key);
14
- this.__category = category;
15
- }
16
12
  static getType() {
17
13
  return 'hashtag';
18
14
  }
19
15
  static clone(node) {
20
16
  return new HashtagNode(node.__category, node.__text, node.__key);
21
17
  }
18
+ constructor(category, text, key) {
19
+ super(text !== null && text !== void 0 ? text : `#${category.name}`, key);
20
+ this.__category = category;
21
+ }
22
22
  createDOM(config) {
23
23
  const tag = 'hashtag';
24
24
  const dom = document.createElement(tag);
@@ -12,7 +12,7 @@ export interface ImagePayload {
12
12
  declare function convertImageElement(domNode: any): {
13
13
  node: ImageNode;
14
14
  };
15
- export declare type SerializedImageNode = Spread<{
15
+ export type SerializedImageNode = Spread<{
16
16
  altText: string;
17
17
  maxWidth: number | string;
18
18
  src: string;
@@ -104,18 +104,18 @@ function convertImageElement(domNode) {
104
104
  // eslint-disable-next-line @typescript-eslint/ban-ts-ignore
105
105
  // @ts-ignore
106
106
  export class ImageNode extends DecoratorNode {
107
- constructor(src, altText, maxWidth, key) {
108
- super(key);
109
- this.__src = src;
110
- this.__altText = altText;
111
- this.__maxWidth = maxWidth;
112
- }
113
107
  static getType() {
114
108
  return 'image';
115
109
  }
116
110
  static clone(node) {
117
111
  return new ImageNode(node.__src, node.__altText, node.__maxWidth, node.__key);
118
112
  }
113
+ constructor(src, altText, maxWidth, key) {
114
+ super(key);
115
+ this.__src = src;
116
+ this.__altText = altText;
117
+ this.__maxWidth = maxWidth;
118
+ }
119
119
  setWidthAndHeight(width, height) {
120
120
  const writable = this.getWritable();
121
121
  // eslint-disable-next-line @typescript-eslint/ban-ts-ignore
@@ -1,7 +1,7 @@
1
1
  import { DOMExportOutput, EditorConfig, LexicalNode, NodeKey, SerializedTextNode, Spread, TextNode } from 'lexical';
2
2
  import { SCUserType } from '@selfcommunity/types';
3
3
  import { DOMConversionMap } from 'lexical/LexicalNode';
4
- export declare type SerializedMentionNode = Spread<{
4
+ export type SerializedMentionNode = Spread<{
5
5
  user: SCUserType;
6
6
  type: 'mention';
7
7
  version: 1;
@@ -22,16 +22,16 @@ function convertMentionElement(domNode) {
22
22
  };
23
23
  }
24
24
  export class MentionNode extends TextNode {
25
- constructor(user, text, key) {
26
- super(text !== null && text !== void 0 ? text : `@${user.username}`, key);
27
- this.__user = user;
28
- }
29
25
  static getType() {
30
26
  return 'mention';
31
27
  }
32
28
  static clone(node) {
33
29
  return new MentionNode(node.__user, node.__text, node.__key);
34
30
  }
31
+ constructor(user, text, key) {
32
+ super(text !== null && text !== void 0 ? text : `@${user.username}`, key);
33
+ this.__user = user;
34
+ }
35
35
  createDOM(config) {
36
36
  const tag = 'mention';
37
37
  const dom = document.createElement(tag);
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- export declare type ApiRef = {
2
+ export type ApiRef = {
3
3
  focus: () => void;
4
4
  };
5
5
  declare const _default: React.ForwardRefExoticComponent<Pick<any, string | number | symbol> & React.RefAttributes<ApiRef>>;
@@ -1,9 +1,9 @@
1
- declare type MentionMatch = {
1
+ type MentionMatch = {
2
2
  leadOffset: number;
3
3
  matchingString: string;
4
4
  replaceableString: string;
5
5
  };
6
- declare type Resolution = {
6
+ type Resolution = {
7
7
  match: MentionMatch;
8
8
  range: Range;
9
9
  };
@@ -7,10 +7,10 @@
7
7
  */
8
8
  import type { LexicalEditor } from 'lexical';
9
9
  import * as React from 'react';
10
- declare type ErrorBoundaryProps = {
10
+ type ErrorBoundaryProps = {
11
11
  children: JSX.Element;
12
12
  onError: (error: Error) => void;
13
13
  };
14
- export declare type ErrorBoundaryType = React.ComponentClass<ErrorBoundaryProps> | React.FC<ErrorBoundaryProps>;
14
+ export type ErrorBoundaryType = React.ComponentClass<ErrorBoundaryProps> | React.FC<ErrorBoundaryProps>;
15
15
  export declare function useDecorators(editor: LexicalEditor, ErrorBoundary: ErrorBoundaryType): Array<JSX.Element>;
16
16
  export {};
@@ -106,7 +106,7 @@ export default function Event(inProps) {
106
106
  });
107
107
  const { id = `event_object_${props.eventId ? props.eventId : props.event ? props.event.id : ''}`, eventId = null, event = null, className = null, template = SCEventTemplateType.SNIPPET, hideInProgress = false, hideEventParticipants = false, hideEventPlanner = false, actions, EventParticipantsButtonComponentProps = {}, EventSkeletonComponentProps = {} } = props, rest = __rest(props, ["id", "eventId", "event", "className", "template", "hideInProgress", "hideEventParticipants", "hideEventPlanner", "actions", "EventParticipantsButtonComponentProps", "EventSkeletonComponentProps"]);
108
108
  // STATE
109
- const { scEvent } = useSCFetchEvent({ id: eventId, event });
109
+ const { scEvent } = useSCFetchEvent({ id: eventId, event, autoSubscribe: false });
110
110
  const inProgress = useMemo(() => scEvent && scEvent.active && scEvent.running, [scEvent]);
111
111
  // CONTEXT
112
112
  const scRoutingContext = useSCRouting();
@@ -1,21 +1,11 @@
1
+ import { BoxProps } from '@mui/material';
1
2
  import { SCEventType } from '@selfcommunity/types';
2
- import { BaseDialogProps } from '../../shared/BaseDialog';
3
- export interface EventFormProps extends BaseDialogProps {
3
+ export interface EventFormProps extends BoxProps {
4
4
  /**
5
5
  * Overrides or extends the styles applied to the component.
6
6
  * @default null
7
7
  */
8
8
  className?: string;
9
- /**
10
- * Open dialog
11
- * @default true
12
- */
13
- open?: boolean;
14
- /**
15
- * On dialog close callback function
16
- * @default null
17
- */
18
- onClose?: () => void;
19
9
  /**
20
10
  * Event Object
21
11
  * @default null
@@ -26,6 +16,11 @@ export interface EventFormProps extends BaseDialogProps {
26
16
  * @default null
27
17
  */
28
18
  onSuccess?: (data: SCEventType) => void;
19
+ /**
20
+ * On error callback function
21
+ * @default null
22
+ */
23
+ onError?: (error: any) => void;
29
24
  /**
30
25
  * Any other properties
31
26
  */