@selfcommunity/react-ui 0.7.50-events.46 → 0.7.50-events.48

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 (121) hide show
  1. package/lib/cjs/components/CreateEventWidget/CreateEventWidget.d.ts +6 -0
  2. package/lib/cjs/components/CreateEventWidget/CreateEventWidget.js +5 -4
  3. package/lib/cjs/components/CreateEventWidget/Skeleton.js +1 -1
  4. package/lib/cjs/components/Event/Event.d.ts +28 -0
  5. package/lib/cjs/components/Event/Event.js +64 -8
  6. package/lib/cjs/components/Event/Skeleton.d.ts +9 -3
  7. package/lib/cjs/components/Event/Skeleton.js +48 -6
  8. package/lib/cjs/components/EventHeader/EventHeader.js +10 -3
  9. package/lib/cjs/components/EventInfoWidget/EventInfoWidget.js +2 -1
  10. package/lib/cjs/components/EventInfoWidget/Skeleton.js +1 -1
  11. package/lib/cjs/components/EventLocationWidget/EventLocationWidget.js +8 -3
  12. package/lib/cjs/components/EventPartecipantsButton/EventPartecipantsButton.js +7 -8
  13. package/lib/cjs/components/EventSubscribeButton/EventSubscribeButton.js +3 -2
  14. package/lib/cjs/components/Events/Events.d.ts +6 -1
  15. package/lib/cjs/components/Events/Events.js +3 -3
  16. package/lib/cjs/components/FeedObjectMediaPreview/FeedObjectMediaPreview.d.ts +1 -1
  17. package/lib/cjs/components/FeedObjectMediaPreview/FeedObjectMediaPreview.js +1 -1
  18. package/lib/cjs/components/MyEventsWidget/MyEventsWidget.js +11 -9
  19. package/lib/cjs/components/MyEventsWidget/Skeleton.js +6 -3
  20. package/lib/cjs/components/Notification/Event/Event.d.ts +15 -0
  21. package/lib/cjs/components/Notification/Event/Event.js +71 -0
  22. package/lib/cjs/components/Notification/Event/index.d.ts +3 -0
  23. package/lib/cjs/components/Notification/Event/index.js +5 -0
  24. package/lib/cjs/components/Notification/Notification.js +26 -0
  25. package/lib/cjs/components/SnippetNotifications/SnippetNotifications.js +7 -0
  26. package/lib/cjs/components/SuggestedEventsWidget/Skeleton.d.ts +2 -0
  27. package/lib/cjs/components/SuggestedEventsWidget/Skeleton.js +28 -0
  28. package/lib/cjs/components/SuggestedEventsWidget/SuggestedEventsWidget.d.ts +14 -0
  29. package/lib/cjs/components/SuggestedEventsWidget/SuggestedEventsWidget.js +80 -0
  30. package/lib/cjs/components/SuggestedEventsWidget/constants.d.ts +1 -0
  31. package/lib/cjs/components/SuggestedEventsWidget/constants.js +4 -0
  32. package/lib/cjs/components/SuggestedEventsWidget/index.d.ts +4 -0
  33. package/lib/cjs/components/SuggestedEventsWidget/index.js +8 -0
  34. package/lib/cjs/components/ToastNotifications/ToastNotifications.js +7 -0
  35. package/lib/cjs/constants/EventActionsMenu.d.ts +6 -0
  36. package/lib/cjs/constants/EventActionsMenu.js +9 -0
  37. package/lib/cjs/constants/Media.d.ts +2 -0
  38. package/lib/cjs/constants/Media.js +3 -1
  39. package/lib/cjs/index.d.ts +3 -1
  40. package/lib/cjs/index.js +9 -4
  41. package/lib/cjs/shared/Calendar/index.js +1 -1
  42. package/lib/cjs/shared/EventActionsMenu/index.d.ts +49 -0
  43. package/lib/cjs/shared/EventActionsMenu/index.js +154 -0
  44. package/lib/cjs/shared/EventInfoDetails/index.d.ts +12 -0
  45. package/lib/cjs/shared/EventInfoDetails/index.js +3 -3
  46. package/lib/cjs/shared/Media/Event/DisplayComponent.d.ts +15 -0
  47. package/lib/cjs/shared/Media/Event/DisplayComponent.js +31 -0
  48. package/lib/cjs/shared/Media/Event/constants.d.ts +1 -0
  49. package/lib/cjs/shared/Media/Event/constants.js +4 -0
  50. package/lib/cjs/shared/Media/Event/filter.d.ts +3 -0
  51. package/lib/cjs/shared/Media/Event/filter.js +4 -0
  52. package/lib/cjs/shared/Media/Event/index.d.ts +3 -0
  53. package/lib/cjs/shared/Media/Event/index.js +14 -0
  54. package/lib/cjs/shared/Media/Link/PreviewComponent.js +1 -1
  55. package/lib/cjs/shared/Media/index.d.ts +2 -1
  56. package/lib/cjs/shared/Media/index.js +3 -1
  57. package/lib/cjs/types/event.d.ts +5 -0
  58. package/lib/cjs/types/event.js +9 -0
  59. package/lib/esm/components/CreateEventWidget/CreateEventWidget.d.ts +6 -0
  60. package/lib/esm/components/CreateEventWidget/CreateEventWidget.js +5 -4
  61. package/lib/esm/components/CreateEventWidget/Skeleton.js +1 -1
  62. package/lib/esm/components/Event/Event.d.ts +28 -0
  63. package/lib/esm/components/Event/Event.js +66 -10
  64. package/lib/esm/components/Event/Skeleton.d.ts +9 -3
  65. package/lib/esm/components/Event/Skeleton.js +50 -7
  66. package/lib/esm/components/EventHeader/EventHeader.js +11 -4
  67. package/lib/esm/components/EventInfoWidget/EventInfoWidget.js +2 -1
  68. package/lib/esm/components/EventInfoWidget/Skeleton.js +1 -1
  69. package/lib/esm/components/EventLocationWidget/EventLocationWidget.js +8 -3
  70. package/lib/esm/components/EventPartecipantsButton/EventPartecipantsButton.js +8 -9
  71. package/lib/esm/components/EventSubscribeButton/EventSubscribeButton.js +3 -2
  72. package/lib/esm/components/Events/Events.d.ts +6 -1
  73. package/lib/esm/components/Events/Events.js +3 -3
  74. package/lib/esm/components/FeedObjectMediaPreview/FeedObjectMediaPreview.d.ts +1 -1
  75. package/lib/esm/components/FeedObjectMediaPreview/FeedObjectMediaPreview.js +2 -2
  76. package/lib/esm/components/MyEventsWidget/MyEventsWidget.js +13 -11
  77. package/lib/esm/components/MyEventsWidget/Skeleton.js +7 -4
  78. package/lib/esm/components/Notification/Event/Event.d.ts +15 -0
  79. package/lib/esm/components/Notification/Event/Event.js +68 -0
  80. package/lib/esm/components/Notification/Event/index.d.ts +3 -0
  81. package/lib/esm/components/Notification/Event/index.js +2 -0
  82. package/lib/esm/components/Notification/Notification.js +26 -0
  83. package/lib/esm/components/SnippetNotifications/SnippetNotifications.js +7 -0
  84. package/lib/esm/components/SuggestedEventsWidget/Skeleton.d.ts +2 -0
  85. package/lib/esm/components/SuggestedEventsWidget/Skeleton.js +24 -0
  86. package/lib/esm/components/SuggestedEventsWidget/SuggestedEventsWidget.d.ts +14 -0
  87. package/lib/esm/components/SuggestedEventsWidget/SuggestedEventsWidget.js +77 -0
  88. package/lib/esm/components/SuggestedEventsWidget/constants.d.ts +1 -0
  89. package/lib/esm/components/SuggestedEventsWidget/constants.js +1 -0
  90. package/lib/esm/components/SuggestedEventsWidget/index.d.ts +4 -0
  91. package/lib/esm/components/SuggestedEventsWidget/index.js +4 -0
  92. package/lib/esm/components/ToastNotifications/ToastNotifications.js +7 -0
  93. package/lib/esm/constants/EventActionsMenu.d.ts +6 -0
  94. package/lib/esm/constants/EventActionsMenu.js +6 -0
  95. package/lib/esm/constants/Media.d.ts +2 -0
  96. package/lib/esm/constants/Media.js +2 -0
  97. package/lib/esm/index.d.ts +3 -1
  98. package/lib/esm/index.js +4 -2
  99. package/lib/esm/shared/Calendar/index.js +1 -1
  100. package/lib/esm/shared/EventActionsMenu/index.d.ts +49 -0
  101. package/lib/esm/shared/EventActionsMenu/index.js +151 -0
  102. package/lib/esm/shared/EventInfoDetails/index.d.ts +12 -0
  103. package/lib/esm/shared/EventInfoDetails/index.js +3 -3
  104. package/lib/esm/shared/Media/Event/DisplayComponent.d.ts +15 -0
  105. package/lib/esm/shared/Media/Event/DisplayComponent.js +29 -0
  106. package/lib/esm/shared/Media/Event/constants.d.ts +1 -0
  107. package/lib/esm/shared/Media/Event/constants.js +1 -0
  108. package/lib/esm/shared/Media/Event/filter.d.ts +3 -0
  109. package/lib/esm/shared/Media/Event/filter.js +2 -0
  110. package/lib/esm/shared/Media/Event/index.d.ts +3 -0
  111. package/lib/esm/shared/Media/Event/index.js +11 -0
  112. package/lib/esm/shared/Media/Link/PreviewComponent.js +1 -1
  113. package/lib/esm/shared/Media/index.d.ts +2 -1
  114. package/lib/esm/shared/Media/index.js +2 -1
  115. package/lib/esm/types/event.d.ts +5 -0
  116. package/lib/esm/types/event.js +6 -0
  117. package/lib/umd/224.js +2 -0
  118. package/lib/umd/react-ui.js +1 -1
  119. package/package.json +7 -7
  120. package/lib/umd/84.js +0 -2
  121. /package/lib/umd/{84.js.LICENSE.txt → 224.js.LICENSE.txt} +0 -0
@@ -1,9 +1,11 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { AvatarGroup, Box, CardActions, CardContent, Divider, Stack } from '@mui/material';
2
+ import { Box, CardActions } from '@mui/material';
3
3
  import Skeleton from '@mui/material/Skeleton';
4
4
  import { styled } from '@mui/material/styles';
5
5
  import Widget from '../Widget';
6
6
  import { PREFIX } from './constants';
7
+ import { SCEventTemplateType } from '../../types/event';
8
+ import { EventSkeleton } from '../Event';
7
9
  const classes = {
8
10
  root: `${PREFIX}-skeleton-root`,
9
11
  calendar: `${PREFIX}-calendar`,
@@ -14,8 +16,9 @@ const classes = {
14
16
  };
15
17
  const Root = styled(Widget, {
16
18
  name: PREFIX,
17
- slot: 'SkeletonRoot'
18
- })();
19
+ slot: 'SkeletonRoot',
20
+ overridesResolver: (_props, styles) => styles.skeletonRoot
21
+ })(() => ({}));
19
22
  export default function MyEventsWidgetSkeleton() {
20
- return (_jsxs(Root, Object.assign({ className: classes.root }, { children: [_jsx(Box, Object.assign({ padding: "12px 16px" }, { children: _jsx(Skeleton, { animation: "wave", width: "141px", height: "23px" }) })), _jsxs(Box, Object.assign({ position: "relative" }, { children: [_jsx(Skeleton, { variant: "rectangular", animation: "wave", width: "100%", height: "170px" }), _jsx(Skeleton, { className: classes.calendar, variant: "rounded", animation: "wave", width: "60px", height: "60px" })] })), _jsxs(CardContent, Object.assign({ className: classes.content }, { children: [_jsx(Skeleton, { animation: "wave", width: "26%", height: "30px" }), _jsxs(Stack, Object.assign({ direction: "row", alignItems: "center", gap: "8px", marginBottom: "9px" }, { children: [_jsx(Skeleton, { animation: "wave", variant: "circular", width: "21px", height: "21px" }), _jsx(Skeleton, { animation: "wave", width: "229px", height: "20px" })] })), _jsxs(Stack, Object.assign({ direction: "row", alignItems: "center", gap: "8px", marginBottom: "9px" }, { children: [_jsx(Skeleton, { animation: "wave", variant: "circular", width: "21px", height: "21px" }), _jsx(Skeleton, { animation: "wave", width: "124px", height: "20px" })] })), _jsxs(Stack, Object.assign({ direction: "row", alignItems: "center", gap: "8px", marginBottom: "14px" }, { children: [_jsx(Skeleton, { animation: "wave", variant: "circular", width: "21px", height: "21px" }), _jsx(Skeleton, { animation: "wave", width: "27%", height: "20px" })] })), _jsxs(Stack, Object.assign({ direction: "row", gap: "8px", alignItems: "center", height: "57px" }, { children: [_jsx(Skeleton, { animation: "wave", variant: "circular", width: "36px", height: "36px" }), _jsxs(Stack, Object.assign({ gap: "1px" }, { children: [_jsx(Skeleton, { animation: "wave", width: "75px", height: "15px" }), _jsx(Skeleton, { animation: "wave", width: "86px", height: "16px" })] }))] })), _jsx(Divider, { className: classes.firstDivider }), _jsxs(Stack, Object.assign({ direction: "row", gap: "8px", alignItems: "center", height: "44px", marginTop: "8px" }, { children: [_jsx(Skeleton, { animation: "wave", width: "68px", height: "20px" }), _jsxs(AvatarGroup, { children: [_jsx(Skeleton, { animation: "wave", variant: "circular", width: "40px", height: "40px" }), _jsx(Skeleton, { animation: "wave", variant: "circular", width: "40px", height: "40px" }), _jsx(Skeleton, { animation: "wave", variant: "circular", width: "40px", height: "40px" }), _jsx(Skeleton, { animation: "wave", variant: "circular", width: "40px", height: "40px" })] })] })), _jsx(Divider, { className: classes.secondDivider })] })), _jsxs(CardActions, Object.assign({ className: classes.actions }, { children: [_jsx(Skeleton, { animation: "wave", variant: "rounded", width: "14px", height: "14px" }), _jsx(Skeleton, { animation: "wave", width: "52px", height: "20px" }), _jsx(Skeleton, { animation: "wave", variant: "rounded", width: "14px", height: "14px" })] }))] })));
23
+ return (_jsxs(Root, Object.assign({ className: classes.root }, { children: [_jsx(Box, Object.assign({ padding: "12px 16px" }, { children: _jsx(Skeleton, { animation: "wave", width: "141px", height: "33px" }) })), _jsx(EventSkeleton, { template: SCEventTemplateType.DETAIL, elevation: 0, square: true }), _jsxs(CardActions, Object.assign({ className: classes.actions }, { children: [_jsx(Skeleton, { animation: "wave", variant: "rounded", width: "14px", height: "14px" }), _jsx(Skeleton, { animation: "wave", width: "52px", height: "20px" }), _jsx(Skeleton, { animation: "wave", variant: "rounded", width: "14px", height: "14px" })] }))] })));
21
24
  }
@@ -0,0 +1,15 @@
1
+ import { SCNotificationEventActivityType } from '@selfcommunity/types';
2
+ import { NotificationItemProps } from '../../../shared/NotificationItem';
3
+ export interface NotificationEventProps 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: SCNotificationEventActivityType;
9
+ }
10
+ /**
11
+ * This component render the content of the notification of type event
12
+ * @constructor
13
+ * @param props
14
+ */
15
+ export default function EventNotification(props: NotificationEventProps): JSX.Element;
@@ -0,0 +1,68 @@
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 { SCEventLocationType } from '@selfcommunity/types';
8
+ import { FormattedMessage, useIntl } from 'react-intl';
9
+ import DateTimeAgo from '../../../shared/DateTimeAgo';
10
+ import classNames from 'classnames';
11
+ import { SCNotificationObjectTemplateType } from '../../../types';
12
+ import NotificationItem from '../../../shared/NotificationItem';
13
+ import { LoadingButton } from '@mui/lab';
14
+ import UserDeletedSnackBar from '../../../shared/UserDeletedSnackBar';
15
+ import UserAvatar from '../../../shared/UserAvatar';
16
+ import { PREFIX } from '../constants';
17
+ import { default as EventItem } from '../../Event';
18
+ const classes = {
19
+ root: `${PREFIX}-event-root`,
20
+ avatar: `${PREFIX}-avatar`,
21
+ actions: `${PREFIX}-actions`,
22
+ seeButton: `${PREFIX}see-button`,
23
+ activeAt: `${PREFIX}-active-at`,
24
+ snippetTime: `${PREFIX}-snippet-time`,
25
+ username: `${PREFIX}-username`
26
+ };
27
+ const Root = styled(NotificationItem, {
28
+ name: PREFIX,
29
+ slot: 'EventRoot'
30
+ })(() => ({}));
31
+ /**
32
+ * This component render the content of the notification of type event
33
+ * @constructor
34
+ * @param props
35
+ */
36
+ export default function EventNotification(props) {
37
+ // PROPS
38
+ const { notificationObject, id = `n_${props.notificationObject['sid']}`, className, template = SCNotificationObjectTemplateType.DETAIL } = props, rest = __rest(props, ["notificationObject", "id", "className", "template"]);
39
+ // CONTEXT
40
+ const scRoutingContext = useSCRouting();
41
+ // STATE
42
+ const [openAlert, setOpenAlert] = useState(false);
43
+ // CONST
44
+ const isSnippetTemplate = template === SCNotificationObjectTemplateType.SNIPPET;
45
+ const isToastTemplate = template === SCNotificationObjectTemplateType.TOAST;
46
+ const intl = useIntl();
47
+ // RENDER
48
+ if (isSnippetTemplate || isToastTemplate) {
49
+ return (_jsx(Root, Object.assign({ id: id, className: classNames(classes.root, className, `${PREFIX}-${template}`), template: template, isNew: notificationObject.is_new, disableTypography: true, image: _jsx(Link, Object.assign({}, (!notificationObject.user.deleted && {
50
+ to: scRoutingContext.url(SCRoutes.USER_PROFILE_ROUTE_NAME, notificationObject.user)
51
+ }), { onClick: notificationObject.user.deleted ? () => setOpenAlert(true) : null }, { children: _jsx(UserAvatar, Object.assign({ hide: !notificationObject.user.community_badge, smaller: true }, { children: _jsx(Avatar, { alt: notificationObject.user.username, variant: "circular", src: notificationObject.user.avatar, classes: { root: classes.avatar } }) })) })), primary: _jsxs(Box, { children: [_jsx(Link, Object.assign({}, (!notificationObject.user.deleted && {
52
+ to: scRoutingContext.url(SCRoutes.USER_PROFILE_ROUTE_NAME, notificationObject.user)
53
+ }), { onClick: notificationObject.user.deleted ? () => setOpenAlert(true) : null, className: classes.username }, { children: notificationObject.user.username })), ' ', _jsx(FormattedMessage, { id: `ui.notification.event.${notificationObject.type}`, defaultMessage: `ui.notification.event.${notificationObject.type}`, values: {
54
+ icon: (...chunks) => _jsx(Icon, { children: chunks }),
55
+ event: notificationObject.event.name,
56
+ link: (...chunks) => _jsx(Link, Object.assign({ to: scRoutingContext.url(SCRoutes.EVENT_ROUTE_NAME, notificationObject.event) }, { children: chunks }))
57
+ } })] }), secondary: _jsxs(_Fragment, { children: [_jsx(Typography, Object.assign({ component: "span" }, { children: _jsx(FormattedMessage, { id: "ui.notification.event.dateTime", defaultMessage: "ui.notification.event.dateTime", values: {
58
+ date: intl.formatDate(notificationObject.event.start_date, {
59
+ weekday: 'long',
60
+ day: 'numeric',
61
+ year: 'numeric',
62
+ month: 'long'
63
+ }),
64
+ hour: intl.formatDate(notificationObject.event.start_date, { hour: 'numeric', minute: 'numeric' })
65
+ } }) })), _jsxs(Typography, Object.assign({ component: "p", variant: "body2" }, { children: [_jsx(FormattedMessage, { id: `ui.notification.event.privacy.${notificationObject.event.privacy}`, defaultMessage: `ui.notification.event.privacy.${notificationObject.event.privacy}` }), ' ', "-", ' ', notificationObject.event.location === SCEventLocationType.PERSON ? (_jsx(FormattedMessage, { id: `ui.notification.event.address.live.label`, defaultMessage: `ui.notification.event.address.live.label` })) : (_jsx(FormattedMessage, { id: `ui.notification.event.address.online.label`, defaultMessage: `ui.notification.event.address.online.label` }))] }))] }), footer: isToastTemplate ? (_jsxs(Stack, Object.assign({ direction: "row", justifyContent: "space-between", alignItems: "center", spacing: 2 }, { children: [_jsx(DateTimeAgo, { date: notificationObject.active_at }), _jsx(Typography, Object.assign({ color: "primary" }, { children: _jsx(Link, Object.assign({ to: scRoutingContext.url(SCRoutes.EVENT_ROUTE_NAME, notificationObject.event) }, { children: _jsx(FormattedMessage, { id: "ui.notification.event.button.see", defaultMessage: "ui.notification.event.button.see" }) })) }))] }))) : (_jsx(DateTimeAgo, { date: notificationObject.active_at, className: classes.snippetTime })) }, rest)));
66
+ }
67
+ 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, primary: _jsx(EventItem, { event: notificationObject.event, showActions: false }), actions: _jsxs(Stack, Object.assign({ direction: "row", justifyContent: "space-between", alignItems: "center", spacing: 2 }, { children: [_jsx(DateTimeAgo, { date: notificationObject.active_at, className: classes.activeAt }), _jsx(LoadingButton, Object.assign({ color: 'primary', variant: "outlined", size: "small", classes: { root: classes.seeButton }, component: Link, to: scRoutingContext.url(SCRoutes.EVENT_ROUTE_NAME, notificationObject.event) }, { children: _jsx(FormattedMessage, { id: "ui.notification.event.button.see", defaultMessage: "ui.notification.event.button.see" }) }))] })) }, rest)), openAlert && _jsx(UserDeletedSnackBar, { open: openAlert, handleClose: () => setOpenAlert(false) })] }));
68
+ }
@@ -0,0 +1,3 @@
1
+ import EventNotification, { NotificationEventProps } from './Event';
2
+ export default EventNotification;
3
+ export { NotificationEventProps };
@@ -0,0 +1,2 @@
1
+ import EventNotification from './Event';
2
+ export default EventNotification;
@@ -35,6 +35,7 @@ import UserDeletedSnackBar from '../../shared/UserDeletedSnackBar';
35
35
  import UserAvatar from '../../shared/UserAvatar';
36
36
  import { PREFIX } from './constants';
37
37
  import GroupNotification from './Group';
38
+ import EventNotification from './Event/Event';
38
39
  const messages = defineMessages({
39
40
  receivePrivateMessage: {
40
41
  id: 'ui.notification.receivePrivateMessage',
@@ -191,6 +192,25 @@ export default function UserNotification(inProps) {
191
192
  b: (...chunks) => _jsx("strong", { children: chunks })
192
193
  })] }) }));
193
194
  }
195
+ /**
196
+ * Event notifications header
197
+ */
198
+ if (notificationObject.aggregated &&
199
+ (notificationObject.aggregated[0].type === SCNotificationTypologyType.USER_INVITED_TO_JOIN_EVENT ||
200
+ notificationObject.aggregated[0].type === SCNotificationTypologyType.USER_ACCEPTED_TO_JOIN_EVENT ||
201
+ notificationObject.aggregated[0].type === SCNotificationTypologyType.USER_ADDED_TO_EVENT ||
202
+ notificationObject.aggregated[0].type === SCNotificationTypologyType.USER_REQUESTED_TO_JOIN_EVENT)) {
203
+ let eventNotification = notificationObject.aggregated[0];
204
+ return (_jsx(CardHeader, { className: classes.header, avatar: _jsx(Link, Object.assign({}, (!eventNotification.user.deleted && {
205
+ to: scRoutingContext.url(SCRoutes.USER_PROFILE_ROUTE_NAME, eventNotification.user)
206
+ }), { onClick: eventNotification.user.deleted ? () => setOpenAlert(true) : null }, { children: _jsx(UserAvatar, Object.assign({ hide: !eventNotification.user.community_badge, smaller: true }, { children: _jsx(Avatar, { className: classes.avatar, alt: eventNotification.user.username, variant: "circular", src: eventNotification.user.avatar }) })) })), titleTypographyProps: { className: classes.title, variant: 'subtitle1' }, title: _jsxs(_Fragment, { children: [_jsx(Link, Object.assign({}, (!eventNotification.user.deleted && {
207
+ to: scRoutingContext.url(SCRoutes.USER_PROFILE_ROUTE_NAME, eventNotification.user)
208
+ }), { onClick: eventNotification.user.deleted ? () => setOpenAlert(true) : null, className: classes.username }, { children: eventNotification.user.username })), ' ', _jsx(FormattedMessage, { id: `ui.notification.${notificationObject.aggregated[0].type}`, defaultMessage: `ui.notification.${notificationObject.aggregated[0].type}`, values: {
209
+ icon: (...chunks) => _jsx(Icon, { children: chunks }),
210
+ event: eventNotification.event.name,
211
+ link: (...chunks) => _jsx(Link, Object.assign({ to: scRoutingContext.url(SCRoutes.EVENTS_ROUTE_NAME, eventNotification.event) }, { children: chunks }))
212
+ } })] }) }));
213
+ }
194
214
  /**
195
215
  * Group notifications header
196
216
  */
@@ -299,6 +319,12 @@ export default function UserNotification(inProps) {
299
319
  n.type === SCNotificationTypologyType.USER_REQUESTED_TO_JOIN_GROUP) {
300
320
  return _jsx(GroupNotification, { notificationObject: n }, i);
301
321
  }
322
+ else if (n.type === SCNotificationTypologyType.USER_ADDED_TO_EVENT ||
323
+ n.type === SCNotificationTypologyType.USER_INVITED_TO_JOIN_EVENT ||
324
+ n.type === SCNotificationTypologyType.USER_ACCEPTED_TO_JOIN_EVENT ||
325
+ n.type === SCNotificationTypologyType.USER_REQUESTED_TO_JOIN_EVENT) {
326
+ return _jsx(EventNotification, { notificationObject: n }, i);
327
+ }
302
328
  return null;
303
329
  }
304
330
  /**
@@ -33,6 +33,7 @@ import ContributionNotification from '../Notification/Contribution';
33
33
  import NotificationItem from '../../shared/NotificationItem';
34
34
  import { PREFIX } from './constants';
35
35
  import GroupNotification from '../Notification/Group';
36
+ import EventNotification from '../Notification/Event/Event';
36
37
  const classes = {
37
38
  root: `${PREFIX}-root`,
38
39
  notificationsWrap: `${PREFIX}-notifications-wrap`,
@@ -260,6 +261,12 @@ export default function SnippetNotifications(inProps) {
260
261
  n.type === SCNotificationTypologyType.USER_REQUESTED_TO_JOIN_GROUP) {
261
262
  return _jsx(GroupNotification, { notificationObject: n, template: SCNotificationObjectTemplateType.SNIPPET }, i);
262
263
  }
264
+ else if (n.type === SCNotificationTypologyType.USER_ADDED_TO_EVENT ||
265
+ n.type === SCNotificationTypologyType.USER_INVITED_TO_JOIN_EVENT ||
266
+ n.type === SCNotificationTypologyType.USER_ACCEPTED_TO_JOIN_EVENT ||
267
+ n.type === SCNotificationTypologyType.USER_REQUESTED_TO_JOIN_EVENT) {
268
+ return _jsx(EventNotification, { notificationObject: n, template: SCNotificationObjectTemplateType.SNIPPET }, i);
269
+ }
263
270
  if (type && handleNotification) {
264
271
  /** Override content */
265
272
  content = handleNotification(type, n, content);
@@ -0,0 +1,2 @@
1
+ import 'swiper/css';
2
+ export default function SuggestedEventsWidgetSkeleton(): JSX.Element;
@@ -0,0 +1,24 @@
1
+ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { CardActions, CardContent, Skeleton } from '@mui/material';
3
+ import { styled } from '@mui/system';
4
+ import 'swiper/css';
5
+ import { Swiper, SwiperSlide } from 'swiper/react';
6
+ import Widget from '../Widget';
7
+ import { PREFIX } from './constants';
8
+ import { EventSkeleton } from '../Event';
9
+ import { SCEventTemplateType } from '../../types/event';
10
+ const classes = {
11
+ root: `${PREFIX}-skeleton-root`,
12
+ content: `${PREFIX}-content`,
13
+ title: `${PREFIX}-title`,
14
+ swiper: `${PREFIX}-swiper`,
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 SuggestedEventsWidgetSkeleton() {
23
+ return (_jsxs(Root, Object.assign({ className: classes.root }, { children: [_jsxs(CardContent, Object.assign({ className: classes.content }, { children: [_jsx(Skeleton, { className: classes.title, animation: "wave", width: "141px", height: "23px" }), _jsx(Swiper, Object.assign({ spaceBetween: 8, slidesPerView: "auto" }, { children: [1, 2, 3, 4, 5, 6, 7].map((_element, i) => (_jsx(SwiperSlide, Object.assign({ className: classes.swiper }, { children: _jsx(EventSkeleton, { template: SCEventTemplateType.PREVIEW, variant: "outlined", actions: _jsx(_Fragment, {}) }) }), i))) }))] })), _jsx(CardActions, Object.assign({ className: classes.actions }, { children: _jsx(Skeleton, { animation: "wave", width: "52px", height: "20px" }) }))] })));
24
+ }
@@ -0,0 +1,14 @@
1
+ import 'swiper/css';
2
+ import { WidgetProps } from '../Widget';
3
+ export interface SuggestedEventsWidgetProps extends WidgetProps {
4
+ /**
5
+ * Feed API Query Params
6
+ * @default [{'limit': 20, 'offset': 0}]
7
+ */
8
+ endpointQueryParams?: Record<string, string | number>;
9
+ /**
10
+ * Other props
11
+ */
12
+ [p: string]: any;
13
+ }
14
+ export default function SuggestedEventsWidget(inProps: SuggestedEventsWidgetProps): JSX.Element;
@@ -0,0 +1,77 @@
1
+ import { __rest } from "tslib";
2
+ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
3
+ import { Button, CardActions, CardContent, Typography, useThemeProps } from '@mui/material';
4
+ import { styled } from '@mui/system';
5
+ import { Endpoints, http, SuggestionService } from '@selfcommunity/api-services';
6
+ import { Link, SCRoutes, useSCRouting } from '@selfcommunity/react-core';
7
+ import { Logger } from '@selfcommunity/utils';
8
+ import { useCallback, useEffect, useState } from 'react';
9
+ import { FormattedMessage } from 'react-intl';
10
+ import 'swiper/css';
11
+ import { Swiper, SwiperSlide } from 'swiper/react';
12
+ import { SCOPE_SC_UI } from '../../constants/Errors';
13
+ import { DEFAULT_PAGINATION_LIMIT, DEFAULT_PAGINATION_OFFSET } from '../../constants/Pagination';
14
+ import HiddenPlaceholder from '../../shared/HiddenPlaceholder';
15
+ import Widget from '../Widget';
16
+ import { PREFIX } from './constants';
17
+ import Skeleton from './Skeleton';
18
+ import { SCEventTemplateType } from '../../types/event';
19
+ import Event from '../Event';
20
+ const classes = {
21
+ root: `${PREFIX}-root`,
22
+ content: `${PREFIX}-content`,
23
+ title: `${PREFIX}-title`,
24
+ swiper: `${PREFIX}-swiper`,
25
+ event: `${PREFIX}-event`,
26
+ actions: `${PREFIX}-actions`,
27
+ actionButton: `${PREFIX}-action-button`
28
+ };
29
+ const Root = styled(Widget, {
30
+ name: PREFIX,
31
+ slot: 'Root',
32
+ overridesResolver: (_props, styles) => styles.root
33
+ })(() => ({}));
34
+ export default function SuggestedEventsWidget(inProps) {
35
+ // PROPS
36
+ const props = useThemeProps({
37
+ props: inProps,
38
+ name: PREFIX
39
+ });
40
+ const { endpointQueryParams = { limit: DEFAULT_PAGINATION_LIMIT, offset: DEFAULT_PAGINATION_OFFSET } } = props, rest = __rest(props, ["endpointQueryParams"]);
41
+ // STATE
42
+ const [eventsData, setEventsData] = useState(null);
43
+ const [loading, setLoading] = useState(true);
44
+ // CONTEXT
45
+ const scRoutingContext = useSCRouting();
46
+ useEffect(() => {
47
+ SuggestionService.getEventSuggestion(Object.assign({}, endpointQueryParams))
48
+ .then((payload) => {
49
+ setEventsData(payload);
50
+ setLoading(false);
51
+ })
52
+ .catch((error) => {
53
+ Logger.error(SCOPE_SC_UI, error);
54
+ });
55
+ }, []);
56
+ const handleReachEnd = useCallback(() => {
57
+ if (eventsData.count > eventsData.results.length) {
58
+ http
59
+ .request({
60
+ url: eventsData.next,
61
+ method: Endpoints.GetEventSuggestedUsers.method
62
+ })
63
+ .then((res) => console.log('*** res ***', res))
64
+ .catch((error) => {
65
+ Logger.error(SCOPE_SC_UI, error);
66
+ });
67
+ }
68
+ }, [eventsData]);
69
+ // RENDER
70
+ if (!eventsData && loading) {
71
+ return _jsx(Skeleton, {});
72
+ }
73
+ if (!eventsData) {
74
+ return _jsx(HiddenPlaceholder, {});
75
+ }
76
+ return (_jsxs(Root, Object.assign({ className: classes.root }, rest, { children: [_jsxs(CardContent, Object.assign({ className: classes.content }, { children: [_jsx(Typography, Object.assign({ variant: "h5", className: classes.title }, { children: _jsx(FormattedMessage, { id: "ui.suggestedEventsWidget.title", defaultMessage: "ui.suggestedEventsWidget.title" }) })), _jsx(Swiper, Object.assign({ spaceBetween: 8, slidesPerView: "auto", onReachEnd: handleReachEnd }, { children: eventsData === null || eventsData === void 0 ? void 0 : eventsData.results.map((event, i) => (_jsx(SwiperSlide, Object.assign({ className: classes.swiper }, { children: _jsx(Event, { event: event, template: SCEventTemplateType.PREVIEW, actions: _jsx(_Fragment, {}), variant: "outlined", className: classes.event }) }), i))) }))] })), _jsx(CardActions, Object.assign({ className: classes.actions }, { children: _jsx(Button, Object.assign({ component: Link, to: scRoutingContext.url(SCRoutes.EVENT_ROUTE_NAME, {}), className: classes.actionButton }, { children: _jsx(Typography, Object.assign({ variant: "caption" }, { children: _jsx(FormattedMessage, { id: "ui.suggestedEventsWidget.showAll", defaultMessage: "ui.suggestedEventsWidget.showAll" }) })) })) }))] })));
77
+ }
@@ -0,0 +1 @@
1
+ export declare const PREFIX = "SCSuggestedEventsWidget";
@@ -0,0 +1 @@
1
+ export const PREFIX = 'SCSuggestedEventsWidget';
@@ -0,0 +1,4 @@
1
+ import SuggestedEventsWidgetSkeleton from './Skeleton';
2
+ import SuggestedEventsWidget, { SuggestedEventsWidgetProps } from './SuggestedEventsWidget';
3
+ export default SuggestedEventsWidget;
4
+ export { SuggestedEventsWidgetSkeleton, type SuggestedEventsWidgetProps };
@@ -0,0 +1,4 @@
1
+ import SuggestedEventsWidgetSkeleton from './Skeleton';
2
+ import SuggestedEventsWidget from './SuggestedEventsWidget';
3
+ export default SuggestedEventsWidget;
4
+ export { SuggestedEventsWidgetSkeleton };
@@ -23,6 +23,7 @@ import { useThemeProps } from '@mui/system';
23
23
  import ContributionNotification from '../Notification/Contribution';
24
24
  import { PREFIX } from './constants';
25
25
  import GroupNotification from '../Notification/Group';
26
+ import EventNotification from '../Notification/Event/Event';
26
27
  const Root = styled(Box, {
27
28
  name: PREFIX,
28
29
  slot: 'Root'
@@ -116,6 +117,12 @@ export default function UserToastNotifications(inProps) {
116
117
  type === SCNotificationTypologyType.USER_REQUESTED_TO_JOIN_GROUP) {
117
118
  content = _jsx(GroupNotification, { notificationObject: n.notification_obj, template: SCNotificationObjectTemplateType.TOAST });
118
119
  }
120
+ else if (type === SCNotificationTypologyType.USER_ADDED_TO_EVENT ||
121
+ type === SCNotificationTypologyType.USER_INVITED_TO_JOIN_EVENT ||
122
+ type === SCNotificationTypologyType.USER_ACCEPTED_TO_JOIN_EVENT ||
123
+ type === SCNotificationTypologyType.USER_REQUESTED_TO_JOIN_EVENT) {
124
+ content = _jsx(EventNotification, { notificationObject: n.notification_obj, template: SCNotificationObjectTemplateType.TOAST });
125
+ }
119
126
  }
120
127
  if (n.activity_type && n.activity_type === SCNotificationTypologyType.NOTIFICATION_BANNER) {
121
128
  /** Notification of type: 'notification_banner' */
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Actions
3
+ */
4
+ export declare const GET_EVENT_LINK = "_get_link";
5
+ export declare const CANCEL_EVENT = "_cancel_event";
6
+ export declare const ADD_EVENT_TO_CALENDAR = "_add_event_to_calendar";
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Actions
3
+ */
4
+ export const GET_EVENT_LINK = '_get_link';
5
+ export const CANCEL_EVENT = '_cancel_event';
6
+ export const ADD_EVENT_TO_CALENDAR = '_add_event_to_calendar';
@@ -5,10 +5,12 @@ export declare const MEDIA_TYPE_LINK = "link";
5
5
  export declare const MEDIA_TYPE_URL = "url";
6
6
  export declare const MEDIA_TYPE_SHARE = "share";
7
7
  export declare const MEDIA_TYPE_EMBED = "embed";
8
+ export declare const MEDIA_TYPE_EVENT = "event";
8
9
  /**
9
10
  * Embed types
10
11
  **/
11
12
  export declare const MEDIA_EMBED_SC_LINK_TYPE = "sc_link";
13
+ export declare const MEDIA_EMBED_SC_SHARED_EVENT = "sc_shared_event";
12
14
  /**
13
15
  * Grid Images
14
16
  * MAX_GRID_IMAGES: max number of box rendered in feed preview
@@ -5,10 +5,12 @@ export const MEDIA_TYPE_LINK = 'link';
5
5
  export const MEDIA_TYPE_URL = 'url';
6
6
  export const MEDIA_TYPE_SHARE = 'share';
7
7
  export const MEDIA_TYPE_EMBED = 'embed';
8
+ export const MEDIA_TYPE_EVENT = 'event';
8
9
  /**
9
10
  * Embed types
10
11
  **/
11
12
  export const MEDIA_EMBED_SC_LINK_TYPE = 'sc_link';
13
+ export const MEDIA_EMBED_SC_SHARED_EVENT = 'sc_shared_event';
12
14
  /**
13
15
  * Grid Images
14
16
  * MAX_GRID_IMAGES: max number of box rendered in feed preview
@@ -96,6 +96,7 @@ import SearchAutocomplete, { SearchAutocompleteProps } from './components/Search
96
96
  import SearchDialog, { SearchDialogProps } from './components/SearchDialog';
97
97
  import { AvatarGroupSkeleton, GenericSkeleton } from './components/Skeleton';
98
98
  import SnippetNotifications, { SnippetNotificationsProps, SnippetNotificationsSkeleton } from './components/SnippetNotifications';
99
+ import SuggestedEventsWidget, { SuggestedEventsWidgetProps, SuggestedEventsWidgetSkeleton } from './components/SuggestedEventsWidget';
99
100
  import ToastNotifications, { ToastNotificationsProps, ToastNotificationsSkeleton } from './components/ToastNotifications';
100
101
  import User, { UserProps, UserSkeleton } from './components/User';
101
102
  import UserActionIconButton, { UserActionIconButtonProps } from './components/UserActionIconButton';
@@ -121,6 +122,7 @@ import BaseItem, { BaseItemProps } from './shared/BaseItem';
121
122
  import Calendar, { CalendarProps } from './shared/Calendar';
122
123
  import ConfirmDialog from './shared/ConfirmDialog/ConfirmDialog';
123
124
  import EmailTextField from './shared/EmailTextField';
125
+ import EventActionsMenu, { EventActionsMenuProps } from './shared/EventActionsMenu';
124
126
  import EventInfoDetails, { EventInfoDetailsProps } from './shared/EventInfoDetails';
125
127
  import HiddenPlaceholder from './shared/HiddenPlaceholder';
126
128
  import LanguageSwitcher from './shared/LanguageSwitcher';
@@ -164,4 +166,4 @@ import LogoSelfCommunity from './assets/logo';
164
166
  /**
165
167
  * List all exports
166
168
  */
167
- export { AccountChangeMailValidation, AccountChangeMailValidationProps, AccountDataPortability, AccountDataPortabilityButton, AccountDataPortabilityButtonProps, AccountDataPortabilityProps, AccountDelete, AccountDeleteButton, AccountDeleteButtonProps, AccountDeleteProps, AccountRecover, AccountRecoverProps, AccountReset, AccountResetProps, AccountVerify, AccountVerifyProps, AvatarGroupSkeleton, BaseDialog, BaseDialogProps, BaseItem, BaseItemProps, BottomNavigation, BottomNavigationProps, BroadcastMessages, BroadcastMessagesProps, BroadcastMessagesSkeleton, bytesToSize, Calendar, CalendarProps, Categories, CategoriesPopularWidget, CategoriesPopularWidgetSkeleton, CategoriesProps, CategoriesSkeleton, CategoriesSkeletonProps, CategoriesSuggestionWidget, CategoriesSuggestionWidgetProps, CategoriesSuggestionWidgetSkeleton, Category, CategoryAutocomplete, CategoryAutocompleteProps, CategoryFollowButton, CategoryFollowButtonProps, CategoryFollowersButton, CategoryFollowersButtonProps, CategoryHeader, CategoryHeaderProps, CategoryHeaderSkeleton, CategoryProps, CategorySkeleton, CategoryTrendingFeedWidget, CategoryTrendingFeedWidgetProps, CategoryTrendingFeedWidgetSkeleton, CategoryTrendingPeopleWidgetSkeleton, CategoryTrendingUsersWidget, CategoryTrendingUsersWidgetProps, CentralProgress, ChangeCover, ChangeCoverProps, ChangeGroupCover, ChangeGroupCoverProps, ChangeGroupPicture, ChangeGroupPictureProps, ChangePicture, ChangePictureProps, CommentObject, CommentObjectProps, CommentObjectReply, CommentObjectReplyProps, CommentObjectSkeleton, CommentsFeedObject, CommentsFeedObjectProps, CommentsFeedObjectSkeleton, CommentsObject, CommentsObjectProps, CommentsObjectSkeleton, Composer, ComposerIconButton, ComposerIconButtonProps, ComposerProps, ConfirmDialog, ConnectionUserButton, ConsentSolution, ConsentSolutionButton, ConsentSolutionButtonProps, ConsentSolutionProps, ConsentSolutionSkeleton, ContributionUtils, CreateEventButton, CreateEventButtonProps, CreateEventWidget, CreateEventWidgetProps, CreateEventWidgetSkeleton, CreateGroupButton, CreateGroupButtonProps, CustomAdv, CustomAdvProps, CustomAdvSkeleton, DEFAULT_FIELDS, DEFAULT_PAGINATION_LIMIT, DEFAULT_PAGINATION_OFFSET, DEFAULT_PAGINATION_QUERY_PARAM_NAME, DEFAULT_PRELOAD_OFFSET_VIEWPORT, DEFAULT_WIDGETS_NUMBER, DefaultDrawerContent, DefaultDrawerContentProps, DefaultHeaderContent, DefaultHeaderContentProps, EditEventButton, EditEventButtonProps, EditGroupButton, EditGroupButtonProps, EditMediaProps, Editor, EditorProps, EditorSkeleton, EmailTextField, Event, EventHeader, EventHeaderProps, EventHeaderSkeleton, EventInfoDetails, EventInfoDetailsProps, EventInfoWidget, EventInfoWidgetProps, EventInviteButton, EventInviteButtonProps, EventLocationWidget, EventLocationWidgetProps, EventLocationWidgetSkeleton, EventPartecipantsButton, EventPartecipantsButtonProps, EventProps, Events, EventSkeleton, EventSkeletonProps, EventsProps, EventsSkeleton, EventsSkeletonProps, FACEBOOK_SHARE, Feed, FeedObject, FeedObjectMediaPreview, FeedObjectMediaPreviewProps, FeedObjectProps, FeedObjectSkeleton, FeedProps, FeedRef, FeedSidebarProps, FeedSkeleton, FeedUpdatesWidget, FeedUpdatesWidgetProps, FeedUpdatesWidgetSkeleton, File, FollowUserButton, FollowUserButtonProps, Footer, FooterProps, FooterSkeleton, FriendshipButtonProps, FriendshipUserButton, GenericSkeleton, getRelativeTime, getUnseenNotification, getUnseenNotificationCounter, Group, GroupForm, GroupFormProps, GroupHeader, GroupHeaderProps, GroupHeaderSkeleton, GroupInfoWidget, GroupInfoWidgetProps, GroupInfoWidgetSkeleton, GroupInviteButton, GroupInviteButtonProps, GroupInvitedWidget, GroupInvitedWidgetProps, GroupInvitedWidgetSkeleton, GroupMembersButton, GroupMembersButtonProps, GroupMembersWidget, GroupMembersWidgetProps, GroupMembersWidgetSkeleton, GroupProps, GroupRequestsWidget, GroupRequestsWidgetProps, GroupRequestsWidgetSkeleton, Groups, GroupSettingsIconButton, GroupSettingsIconButtonProps, GroupSkeleton, GroupsProps, GroupsSkeleton, GroupSubscribeButton, GroupSubscribeButtonProps, HiddenPlaceholder, Incubator, IncubatorDetail, IncubatorDetailProps, IncubatorListWidget, IncubatorListWidgetProps, IncubatorProps, IncubatorSubscribeButton, IncubatorSubscribeButtonProps, IncubatorSuggestionWidget, IncubatorSuggestionWidgetProps, InfiniteScroll, InlineComposerWidget, InlineComposerWidgetProps, InlineComposerWidgetSkeleton, LanguageSwitcher, LEGAL_POLICIES, Lightbox, Link, LINKEDIN_SHARE, LocationAutocomplete, LocationAutocompleteProps, LogoSelfCommunity, LoyaltyProgramWidget, LoyaltyProgramWidgetProps, LoyaltyProgramWidgetSkeleton, MAX_PRELOAD_OFFSET_VIEWPORT, MEDIA_TYPE_EMBED, MediaChunkUploader, MediaChunkUploaderProps, MessageUploaderUtils, MetadataField, MetadataFieldProps, MIN_PRELOAD_OFFSET_VIEWPORT, MyEventsWidget, MyEventsWidgetProps, MyEventsWidgetSkeleton, NavigationMenuContent, NavigationMenuHeader, NavigationMenuIconButton, NavigationMenuIconButtonProps, NavigationSettingsIconButton, NavigationSettingsIconButtonProps, NavigationSettingsItem, NavigationToolbar, NavigationToolbarMobile, NavigationToolbarMobileProps, NavigationToolbarMobileSkeleton, NavigationToolbarProps, NavigationToolbarSkeleton, Notification, NotificationProps, NotificationSkeleton, PasswordTextField, PhoneTextField, PlatformWidget, PlatformWidgetActionType, PlatformWidgetProps, PlatformWidgetSkeleton, PollSuggestionWidget, PollSuggestionWidgetProps, PrivateMessageComponent, PrivateMessageComponentProps, PrivateMessageComponentSkeleton, PrivateMessageEditor, PrivateMessageEditorProps, PrivateMessageEditorSkeleton, PrivateMessageSettingsIconButton, PrivateMessageSettingsIconButtonProps, PrivateMessageSnippetItem, PrivateMessageSnippetItemProps, PrivateMessageSnippetItemSkeleton, PrivateMessageSnippets, PrivateMessageSnippetsProps, PrivateMessageSnippetsSkeleton, PrivateMessageThread, PrivateMessageThreadItem, PrivateMessageThreadItemProps, PrivateMessageThreadItemSkeleton, PrivateMessageThreadProps, PrivateMessageThreadSkeleton, RelatedFeedObjectsWidget, RelatedFeedObjectsWidgetSkeleton, RelatedFeedObjectWidgetProps, ReplyComment, SCBroadcastMessageTemplateType, SCCommentsOrderBy, SCFeedObjectActivitiesType, SCFeedObjectTemplateType, SCFeedWidgetType, SCMediaChunkType, SCMediaObjectType, SCNotificationObjectTemplateType, SCUserProfileFields, SCUserProfileSettings, SCUserSocialAssociations, SearchAutocomplete, SearchAutocompleteProps, SearchDialog, SearchDialogProps, Share, SnippetNotifications, SnippetNotificationsProps, SnippetNotificationsSkeleton, StickyBox, StickyBoxComponent, StickyBoxProps, TagChip, TagChipProps, ToastNotifications, ToastNotificationsProps, ToastNotificationsSkeleton, UrlTextField, User, UserActionIconButton, UserActionIconButtonProps, UserAvatar, UserAvatarProps, UserConnectionsRequestsSentWidget, UserConnectionsRequestsSentWidgetProps, UserConnectionsRequestsSentWidgetSkeleton, UserConnectionsRequestsWidget, UserConnectionsRequestsWidgetProps, UserConnectionsRequestsWidgetSkeleton, UserConnectionsWidget, UserConnectionsWidgetProps, UserConnectionsWidgetSkeleton, UserCounters, UserCountersProps, UserDeletedSnackBar, UserDeletedSnackBarProps, UserFollowedCategoriesWidget, UserFollowedCategoriesWidgetProps, UserFollowedCategoriesWidgetSkeleton, UserFollowedUsersWidget, UserFollowedUsersWidgetProps, UserFollowedUsersWidgetSkeleton, UserFollowersWidget, UserFollowersWidgetProps, UserFollowersWidgetSkeleton, UserInfo, UserInfoDialog, UserInfoDialogProps, UserInfoProps, UserInfoSkeleton, UsernameTextField, UserProfileBlocked, UserProfileBlockedProps, UserProfileEdit, UserProfileEditProps, UserProfileEditSectionAccount, UserProfileEditSectionAccountProps, UserProfileEditSectionPublicInfo, UserProfileEditSectionPublicInfoProps, UserProfileEditSectionSettings, UserProfileEditSectionSettingsProps, UserProfileEditSkeleton, UserProfileHeader, UserProfileHeaderProps, UserProfileHeaderSkeleton, UserProps, UserSkeleton, UserSocialAssociation, UserSocialAssociationProps, UserSubscribedGroupsWidget, UserSubscribedGroupsWidgetProps, UserSubscribedGroupsWidgetSkeleton, UserSuggestionWidget, UserSuggestionWidgetProps, UserSuggestionWidgetSkeleton, useStickyBox, UseStickyBoxProps, VirtualScrollerItemProps, Widget, WidgetProps, X_SHARE };
169
+ export { AccountChangeMailValidation, AccountChangeMailValidationProps, AccountDataPortability, AccountDataPortabilityButton, AccountDataPortabilityButtonProps, AccountDataPortabilityProps, AccountDelete, AccountDeleteButton, AccountDeleteButtonProps, AccountDeleteProps, AccountRecover, AccountRecoverProps, AccountReset, AccountResetProps, AccountVerify, AccountVerifyProps, AvatarGroupSkeleton, BaseDialog, BaseDialogProps, BaseItem, BaseItemProps, BottomNavigation, BottomNavigationProps, BroadcastMessages, BroadcastMessagesProps, BroadcastMessagesSkeleton, bytesToSize, Calendar, CalendarProps, Categories, CategoriesPopularWidget, CategoriesPopularWidgetSkeleton, CategoriesProps, CategoriesSkeleton, CategoriesSkeletonProps, CategoriesSuggestionWidget, CategoriesSuggestionWidgetProps, CategoriesSuggestionWidgetSkeleton, Category, CategoryAutocomplete, CategoryAutocompleteProps, CategoryFollowButton, CategoryFollowButtonProps, CategoryFollowersButton, CategoryFollowersButtonProps, CategoryHeader, CategoryHeaderProps, CategoryHeaderSkeleton, CategoryProps, CategorySkeleton, CategoryTrendingFeedWidget, CategoryTrendingFeedWidgetProps, CategoryTrendingFeedWidgetSkeleton, CategoryTrendingPeopleWidgetSkeleton, CategoryTrendingUsersWidget, CategoryTrendingUsersWidgetProps, CentralProgress, ChangeCover, ChangeCoverProps, ChangeGroupCover, ChangeGroupCoverProps, ChangeGroupPicture, ChangeGroupPictureProps, ChangePicture, ChangePictureProps, CommentObject, CommentObjectProps, CommentObjectReply, CommentObjectReplyProps, CommentObjectSkeleton, CommentsFeedObject, CommentsFeedObjectProps, CommentsFeedObjectSkeleton, CommentsObject, CommentsObjectProps, CommentsObjectSkeleton, Composer, ComposerIconButton, ComposerIconButtonProps, ComposerProps, ConfirmDialog, ConnectionUserButton, ConsentSolution, ConsentSolutionButton, ConsentSolutionButtonProps, ConsentSolutionProps, ConsentSolutionSkeleton, ContributionUtils, CreateEventButton, CreateEventButtonProps, CreateEventWidget, CreateEventWidgetProps, CreateEventWidgetSkeleton, CreateGroupButton, CreateGroupButtonProps, CustomAdv, CustomAdvProps, CustomAdvSkeleton, DEFAULT_FIELDS, DEFAULT_PAGINATION_LIMIT, DEFAULT_PAGINATION_OFFSET, DEFAULT_PAGINATION_QUERY_PARAM_NAME, DEFAULT_PRELOAD_OFFSET_VIEWPORT, DEFAULT_WIDGETS_NUMBER, DefaultDrawerContent, DefaultDrawerContentProps, DefaultHeaderContent, DefaultHeaderContentProps, EditEventButton, EditEventButtonProps, EditGroupButton, EditGroupButtonProps, EditMediaProps, Editor, EditorProps, EditorSkeleton, EmailTextField, Event, EventActionsMenu, EventActionsMenuProps, EventHeader, EventHeaderProps, EventHeaderSkeleton, EventInfoDetails, EventInfoDetailsProps, EventInfoWidget, EventInfoWidgetProps, EventInviteButton, EventInviteButtonProps, EventLocationWidget, EventLocationWidgetProps, EventLocationWidgetSkeleton, EventPartecipantsButton, EventPartecipantsButtonProps, EventProps, Events, EventSkeleton, EventSkeletonProps, EventsProps, EventsSkeleton, EventsSkeletonProps, FACEBOOK_SHARE, Feed, FeedObject, FeedObjectMediaPreview, FeedObjectMediaPreviewProps, FeedObjectProps, FeedObjectSkeleton, FeedProps, FeedRef, FeedSidebarProps, FeedSkeleton, FeedUpdatesWidget, FeedUpdatesWidgetProps, FeedUpdatesWidgetSkeleton, File, FollowUserButton, FollowUserButtonProps, Footer, FooterProps, FooterSkeleton, FriendshipButtonProps, FriendshipUserButton, GenericSkeleton, getRelativeTime, getUnseenNotification, getUnseenNotificationCounter, Group, GroupForm, GroupFormProps, GroupHeader, GroupHeaderProps, GroupHeaderSkeleton, GroupInfoWidget, GroupInfoWidgetProps, GroupInfoWidgetSkeleton, GroupInviteButton, GroupInviteButtonProps, GroupInvitedWidget, GroupInvitedWidgetProps, GroupInvitedWidgetSkeleton, GroupMembersButton, GroupMembersButtonProps, GroupMembersWidget, GroupMembersWidgetProps, GroupMembersWidgetSkeleton, GroupProps, GroupRequestsWidget, GroupRequestsWidgetProps, GroupRequestsWidgetSkeleton, Groups, GroupSettingsIconButton, GroupSettingsIconButtonProps, GroupSkeleton, GroupsProps, GroupsSkeleton, GroupSubscribeButton, GroupSubscribeButtonProps, HiddenPlaceholder, Incubator, IncubatorDetail, IncubatorDetailProps, IncubatorListWidget, IncubatorListWidgetProps, IncubatorProps, IncubatorSubscribeButton, IncubatorSubscribeButtonProps, IncubatorSuggestionWidget, IncubatorSuggestionWidgetProps, InfiniteScroll, InlineComposerWidget, InlineComposerWidgetProps, InlineComposerWidgetSkeleton, LanguageSwitcher, LEGAL_POLICIES, Lightbox, Link, LINKEDIN_SHARE, LocationAutocomplete, LocationAutocompleteProps, LogoSelfCommunity, LoyaltyProgramWidget, LoyaltyProgramWidgetProps, LoyaltyProgramWidgetSkeleton, MAX_PRELOAD_OFFSET_VIEWPORT, MEDIA_TYPE_EMBED, MediaChunkUploader, MediaChunkUploaderProps, MessageUploaderUtils, MetadataField, MetadataFieldProps, MIN_PRELOAD_OFFSET_VIEWPORT, MyEventsWidget, MyEventsWidgetProps, MyEventsWidgetSkeleton, NavigationMenuContent, NavigationMenuHeader, NavigationMenuIconButton, NavigationMenuIconButtonProps, NavigationSettingsIconButton, NavigationSettingsIconButtonProps, NavigationSettingsItem, NavigationToolbar, NavigationToolbarMobile, NavigationToolbarMobileProps, NavigationToolbarMobileSkeleton, NavigationToolbarProps, NavigationToolbarSkeleton, Notification, NotificationProps, NotificationSkeleton, PasswordTextField, PhoneTextField, PlatformWidget, PlatformWidgetActionType, PlatformWidgetProps, PlatformWidgetSkeleton, PollSuggestionWidget, PollSuggestionWidgetProps, PrivateMessageComponent, PrivateMessageComponentProps, PrivateMessageComponentSkeleton, PrivateMessageEditor, PrivateMessageEditorProps, PrivateMessageEditorSkeleton, PrivateMessageSettingsIconButton, PrivateMessageSettingsIconButtonProps, PrivateMessageSnippetItem, PrivateMessageSnippetItemProps, PrivateMessageSnippetItemSkeleton, PrivateMessageSnippets, PrivateMessageSnippetsProps, PrivateMessageSnippetsSkeleton, PrivateMessageThread, PrivateMessageThreadItem, PrivateMessageThreadItemProps, PrivateMessageThreadItemSkeleton, PrivateMessageThreadProps, PrivateMessageThreadSkeleton, RelatedFeedObjectsWidget, RelatedFeedObjectsWidgetSkeleton, RelatedFeedObjectWidgetProps, ReplyComment, SCBroadcastMessageTemplateType, SCCommentsOrderBy, SCFeedObjectActivitiesType, SCFeedObjectTemplateType, SCFeedWidgetType, SCMediaChunkType, SCMediaObjectType, SCNotificationObjectTemplateType, SCUserProfileFields, SCUserProfileSettings, SCUserSocialAssociations, SearchAutocomplete, SearchAutocompleteProps, SearchDialog, SearchDialogProps, Share, SnippetNotifications, SnippetNotificationsProps, SnippetNotificationsSkeleton, StickyBox, StickyBoxComponent, StickyBoxProps, SuggestedEventsWidget, SuggestedEventsWidgetProps, SuggestedEventsWidgetSkeleton, TagChip, TagChipProps, ToastNotifications, ToastNotificationsProps, ToastNotificationsSkeleton, UrlTextField, User, UserActionIconButton, UserActionIconButtonProps, UserAvatar, UserAvatarProps, UserConnectionsRequestsSentWidget, UserConnectionsRequestsSentWidgetProps, UserConnectionsRequestsSentWidgetSkeleton, UserConnectionsRequestsWidget, UserConnectionsRequestsWidgetProps, UserConnectionsRequestsWidgetSkeleton, UserConnectionsWidget, UserConnectionsWidgetProps, UserConnectionsWidgetSkeleton, UserCounters, UserCountersProps, UserDeletedSnackBar, UserDeletedSnackBarProps, UserFollowedCategoriesWidget, UserFollowedCategoriesWidgetProps, UserFollowedCategoriesWidgetSkeleton, UserFollowedUsersWidget, UserFollowedUsersWidgetProps, UserFollowedUsersWidgetSkeleton, UserFollowersWidget, UserFollowersWidgetProps, UserFollowersWidgetSkeleton, UserInfo, UserInfoDialog, UserInfoDialogProps, UserInfoProps, UserInfoSkeleton, UsernameTextField, UserProfileBlocked, UserProfileBlockedProps, UserProfileEdit, UserProfileEditProps, UserProfileEditSectionAccount, UserProfileEditSectionAccountProps, UserProfileEditSectionPublicInfo, UserProfileEditSectionPublicInfoProps, UserProfileEditSectionSettings, UserProfileEditSectionSettingsProps, UserProfileEditSkeleton, UserProfileHeader, UserProfileHeaderProps, UserProfileHeaderSkeleton, UserProps, UserSkeleton, UserSocialAssociation, UserSocialAssociationProps, UserSubscribedGroupsWidget, UserSubscribedGroupsWidgetProps, UserSubscribedGroupsWidgetSkeleton, UserSuggestionWidget, UserSuggestionWidgetProps, UserSuggestionWidgetSkeleton, useStickyBox, UseStickyBoxProps, VirtualScrollerItemProps, Widget, WidgetProps, X_SHARE };
package/lib/esm/index.js CHANGED
@@ -96,6 +96,7 @@ import SearchAutocomplete from './components/SearchAutocomplete';
96
96
  import SearchDialog from './components/SearchDialog';
97
97
  import { AvatarGroupSkeleton, GenericSkeleton } from './components/Skeleton';
98
98
  import SnippetNotifications, { SnippetNotificationsSkeleton } from './components/SnippetNotifications';
99
+ import SuggestedEventsWidget, { SuggestedEventsWidgetSkeleton } from './components/SuggestedEventsWidget';
99
100
  import ToastNotifications, { ToastNotificationsSkeleton } from './components/ToastNotifications';
100
101
  import User, { UserSkeleton } from './components/User';
101
102
  import UserActionIconButton from './components/UserActionIconButton';
@@ -121,6 +122,7 @@ import BaseItem from './shared/BaseItem';
121
122
  import Calendar from './shared/Calendar';
122
123
  import ConfirmDialog from './shared/ConfirmDialog/ConfirmDialog';
123
124
  import EmailTextField from './shared/EmailTextField';
125
+ import EventActionsMenu from './shared/EventActionsMenu';
124
126
  import EventInfoDetails from './shared/EventInfoDetails';
125
127
  import HiddenPlaceholder from './shared/HiddenPlaceholder';
126
128
  import LanguageSwitcher from './shared/LanguageSwitcher';
@@ -168,8 +170,8 @@ export { AccountChangeMailValidation, AccountDataPortability, AccountDataPortabi
168
170
  /* SC CONSENT SOLUTION */
169
171
  ConsentSolution, ConsentSolutionButton, ConsentSolutionSkeleton, ContributionUtils, CreateEventButton, CreateEventWidget, CreateEventWidgetSkeleton, CreateGroupButton, CustomAdv, CustomAdvSkeleton, DEFAULT_FIELDS, DEFAULT_PAGINATION_LIMIT, DEFAULT_PAGINATION_OFFSET,
170
172
  /* SC UI PAGINATION */
171
- DEFAULT_PAGINATION_QUERY_PARAM_NAME, DEFAULT_PRELOAD_OFFSET_VIEWPORT, DEFAULT_WIDGETS_NUMBER, DefaultDrawerContent, DefaultHeaderContent, EditEventButton, EditGroupButton, Editor, EditorSkeleton, EmailTextField, Event, EventHeader, EventHeaderSkeleton, EventInfoDetails, EventInfoWidget, EventInviteButton, EventLocationWidget, EventLocationWidgetSkeleton, EventPartecipantsButton, Events, EventSkeleton, EventsSkeleton, FACEBOOK_SHARE, Feed, FeedObject, FeedObjectMediaPreview, FeedObjectSkeleton, FeedSkeleton, FeedUpdatesWidget, FeedUpdatesWidgetSkeleton, File, FollowUserButton, Footer, FooterSkeleton, FriendshipUserButton, GenericSkeleton, getRelativeTime, getUnseenNotification, getUnseenNotificationCounter, Group, GroupForm, GroupHeader, GroupHeaderSkeleton, GroupInfoWidget, GroupInfoWidgetSkeleton, GroupInviteButton, GroupInvitedWidget, GroupInvitedWidgetSkeleton, GroupMembersButton, GroupMembersWidget, GroupMembersWidgetSkeleton, GroupRequestsWidget, GroupRequestsWidgetSkeleton, Groups, GroupSettingsIconButton, GroupSkeleton, GroupsSkeleton, GroupSubscribeButton,
173
+ DEFAULT_PAGINATION_QUERY_PARAM_NAME, DEFAULT_PRELOAD_OFFSET_VIEWPORT, DEFAULT_WIDGETS_NUMBER, DefaultDrawerContent, DefaultHeaderContent, EditEventButton, EditGroupButton, Editor, EditorSkeleton, EmailTextField, Event, EventActionsMenu, EventHeader, EventHeaderSkeleton, EventInfoDetails, EventInfoWidget, EventInviteButton, EventLocationWidget, EventLocationWidgetSkeleton, EventPartecipantsButton, Events, EventSkeleton, EventsSkeleton, FACEBOOK_SHARE, Feed, FeedObject, FeedObjectMediaPreview, FeedObjectSkeleton, FeedSkeleton, FeedUpdatesWidget, FeedUpdatesWidgetSkeleton, File, FollowUserButton, Footer, FooterSkeleton, FriendshipUserButton, GenericSkeleton, getRelativeTime, getUnseenNotification, getUnseenNotificationCounter, Group, GroupForm, GroupHeader, GroupHeaderSkeleton, GroupInfoWidget, GroupInfoWidgetSkeleton, GroupInviteButton, GroupInvitedWidget, GroupInvitedWidgetSkeleton, GroupMembersButton, GroupMembersWidget, GroupMembersWidgetSkeleton, GroupRequestsWidget, GroupRequestsWidgetSkeleton, Groups, GroupSettingsIconButton, GroupSkeleton, GroupsSkeleton, GroupSubscribeButton,
172
174
  /* SC UI SHARED */
173
175
  HiddenPlaceholder, Incubator, IncubatorDetail, IncubatorListWidget, IncubatorSubscribeButton, IncubatorSuggestionWidget, InfiniteScroll, InlineComposerWidget, InlineComposerWidgetSkeleton, LanguageSwitcher, LEGAL_POLICIES, Lightbox, Link, LINKEDIN_SHARE, LocationAutocomplete,
174
176
  /* Assets */
175
- LogoSelfCommunity, LoyaltyProgramWidget, LoyaltyProgramWidgetSkeleton, MAX_PRELOAD_OFFSET_VIEWPORT, MEDIA_TYPE_EMBED, MediaChunkUploader, MessageUploaderUtils, MetadataField, MIN_PRELOAD_OFFSET_VIEWPORT, MyEventsWidget, MyEventsWidgetSkeleton, NavigationMenuContent, NavigationMenuHeader, NavigationMenuIconButton, NavigationSettingsIconButton, NavigationToolbar, NavigationToolbarMobile, NavigationToolbarMobileSkeleton, NavigationToolbarSkeleton, Notification, NotificationSkeleton, PasswordTextField, PhoneTextField, PlatformWidget, PlatformWidgetSkeleton, PollSuggestionWidget, PrivateMessageComponent, PrivateMessageComponentSkeleton, PrivateMessageEditor, PrivateMessageEditorSkeleton, PrivateMessageSettingsIconButton, PrivateMessageSnippetItem, PrivateMessageSnippetItemSkeleton, PrivateMessageSnippets, PrivateMessageSnippetsSkeleton, PrivateMessageThread, PrivateMessageThreadItem, PrivateMessageThreadItemSkeleton, PrivateMessageThreadSkeleton, RelatedFeedObjectsWidget, RelatedFeedObjectsWidgetSkeleton, ReplyComment, SCBroadcastMessageTemplateType, SCCommentsOrderBy, SCFeedObjectActivitiesType, SCFeedObjectTemplateType, SCNotificationObjectTemplateType, SCUserProfileFields, SCUserProfileSettings, SCUserSocialAssociations, SearchAutocomplete, SearchDialog, Share, SnippetNotifications, SnippetNotificationsSkeleton, StickyBox, TagChip, ToastNotifications, ToastNotificationsSkeleton, UrlTextField, User, UserActionIconButton, UserAvatar, UserConnectionsRequestsSentWidget, UserConnectionsRequestsSentWidgetSkeleton, UserConnectionsRequestsWidget, UserConnectionsRequestsWidgetSkeleton, UserConnectionsWidget, UserConnectionsWidgetSkeleton, UserCounters, UserDeletedSnackBar, UserFollowedCategoriesWidget, UserFollowedCategoriesWidgetSkeleton, UserFollowedUsersWidget, UserFollowedUsersWidgetSkeleton, UserFollowersWidget, UserFollowersWidgetSkeleton, UserInfo, UserInfoDialog, UserInfoSkeleton, UsernameTextField, UserProfileBlocked, UserProfileEdit, UserProfileEditSectionAccount, UserProfileEditSectionPublicInfo, UserProfileEditSectionSettings, UserProfileEditSkeleton, UserProfileHeader, UserProfileHeaderSkeleton, UserSkeleton, UserSocialAssociation, UserSubscribedGroupsWidget, UserSubscribedGroupsWidgetSkeleton, UserSuggestionWidget, UserSuggestionWidgetSkeleton, useStickyBox, Widget, X_SHARE };
177
+ LogoSelfCommunity, LoyaltyProgramWidget, LoyaltyProgramWidgetSkeleton, MAX_PRELOAD_OFFSET_VIEWPORT, MEDIA_TYPE_EMBED, MediaChunkUploader, MessageUploaderUtils, MetadataField, MIN_PRELOAD_OFFSET_VIEWPORT, MyEventsWidget, MyEventsWidgetSkeleton, NavigationMenuContent, NavigationMenuHeader, NavigationMenuIconButton, NavigationSettingsIconButton, NavigationToolbar, NavigationToolbarMobile, NavigationToolbarMobileSkeleton, NavigationToolbarSkeleton, Notification, NotificationSkeleton, PasswordTextField, PhoneTextField, PlatformWidget, PlatformWidgetSkeleton, PollSuggestionWidget, PrivateMessageComponent, PrivateMessageComponentSkeleton, PrivateMessageEditor, PrivateMessageEditorSkeleton, PrivateMessageSettingsIconButton, PrivateMessageSnippetItem, PrivateMessageSnippetItemSkeleton, PrivateMessageSnippets, PrivateMessageSnippetsSkeleton, PrivateMessageThread, PrivateMessageThreadItem, PrivateMessageThreadItemSkeleton, PrivateMessageThreadSkeleton, RelatedFeedObjectsWidget, RelatedFeedObjectsWidgetSkeleton, ReplyComment, SCBroadcastMessageTemplateType, SCCommentsOrderBy, SCFeedObjectActivitiesType, SCFeedObjectTemplateType, SCNotificationObjectTemplateType, SCUserProfileFields, SCUserProfileSettings, SCUserSocialAssociations, SearchAutocomplete, SearchDialog, Share, SnippetNotifications, SnippetNotificationsSkeleton, StickyBox, SuggestedEventsWidget, SuggestedEventsWidgetSkeleton, TagChip, ToastNotifications, ToastNotificationsSkeleton, UrlTextField, User, UserActionIconButton, UserAvatar, UserConnectionsRequestsSentWidget, UserConnectionsRequestsSentWidgetSkeleton, UserConnectionsRequestsWidget, UserConnectionsRequestsWidgetSkeleton, UserConnectionsWidget, UserConnectionsWidgetSkeleton, UserCounters, UserDeletedSnackBar, UserFollowedCategoriesWidget, UserFollowedCategoriesWidgetSkeleton, UserFollowedUsersWidget, UserFollowedUsersWidgetSkeleton, UserFollowersWidget, UserFollowersWidgetSkeleton, UserInfo, UserInfoDialog, UserInfoSkeleton, UsernameTextField, UserProfileBlocked, UserProfileEdit, UserProfileEditSectionAccount, UserProfileEditSectionPublicInfo, UserProfileEditSectionSettings, UserProfileEditSkeleton, UserProfileHeader, UserProfileHeaderSkeleton, UserSkeleton, UserSocialAssociation, UserSubscribedGroupsWidget, UserSubscribedGroupsWidgetSkeleton, UserSuggestionWidget, UserSuggestionWidgetSkeleton, useStickyBox, Widget, X_SHARE };
@@ -9,7 +9,7 @@ const Root = styled(Stack, {
9
9
  name: PREFIX,
10
10
  slot: 'Root',
11
11
  overridesResolver: (_props, styles) => styles.root
12
- })();
12
+ })(() => ({}));
13
13
  export default function Calendar(props) {
14
14
  const day = props.day;
15
15
  return (_jsxs(Root, Object.assign({ className: classes.root }, { children: [_jsx(Box, { className: classes.header }), _jsx(Typography, Object.assign({ variant: "h2", textAlign: "center" }, { children: day }))] })));
@@ -0,0 +1,49 @@
1
+ import { IconButtonProps } from '@mui/material';
2
+ import { SCEventType } from '@selfcommunity/types';
3
+ export interface EventActionsMenuProps extends IconButtonProps {
4
+ /**
5
+ * Overrides or extends the styles applied to the component.
6
+ * @default null
7
+ */
8
+ className?: string;
9
+ /**
10
+ * The event
11
+ */
12
+ event?: SCEventType;
13
+ /**
14
+ * The event id
15
+ */
16
+ eventId: number;
17
+ /**
18
+ * Any other properties
19
+ */
20
+ [p: string]: any;
21
+ }
22
+ /**
23
+ * > API documentation for the Community-JS EventActionsMenu component. Learn about the available props and the CSS API.
24
+
25
+ #### Import
26
+
27
+ ```jsx
28
+ import {EventActionsMenu} from '@selfcommunity/react-ui';
29
+ ```
30
+
31
+ #### Component Name
32
+
33
+ The name `SCEventActionsMenu` can be used when providing style overrides in the theme.
34
+
35
+
36
+ #### CSS
37
+
38
+ |Rule Name|Global class|Description|
39
+ |---|---|---|
40
+ |root|.SCEventActionsMenu-root|Styles applied to the root element.|
41
+ |drawerRoot|.SCEventActionsMenu-drawer-root|Styles applied to the drawer root element.|
42
+ |menuRoot|.SCEventActionsMenu-menu-root|Styles applied to the menu root element.|
43
+ |paper|.SCEventActionsMenu-paper|Styles applied to the paper element.|
44
+ |item|.SCEventActionsMenu-item|Styles applied to the item element.|
45
+
46
+
47
+ * @param inProps
48
+ */
49
+ export default function EventActionsMenu(inProps: EventActionsMenuProps): JSX.Element;