@selfcommunity/react-ui 0.7.0-alpha.351 → 0.7.0-alpha.353

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 (102) hide show
  1. package/lib/cjs/components/ChangePicture/ChangePictureDialog/ChangePictureDialog.d.ts +1 -1
  2. package/lib/cjs/components/ChangePicture/ChangePictureDialog/ChangePictureDialog.js +1 -6
  3. package/lib/cjs/components/CommentObject/CommentObject.d.ts +10 -0
  4. package/lib/cjs/components/CommentObject/CommentObject.js +8 -40
  5. package/lib/cjs/components/CommentObjectReply/CommentObjectReply.js +2 -3
  6. package/lib/cjs/components/FeedObject/Activities/RelevantActivities/CommentActivity/CommentActivity.js +19 -10
  7. package/lib/cjs/components/FeedObjectMediaPreview/FeedObjectMediaPreview.d.ts +2 -2
  8. package/lib/cjs/components/FeedObjectMediaPreview/FeedObjectMediaPreview.js +7 -7
  9. package/lib/cjs/components/IncubatorListWidget/CreateIncubatorDialog/CreateIncubatorDialog.d.ts +1 -1
  10. package/lib/cjs/components/IncubatorListWidget/CreateIncubatorDialog/CreateIncubatorDialog.js +1 -6
  11. package/lib/cjs/components/Notification/CollapsedFor/CollapsedFor.d.ts +2 -2
  12. package/lib/cjs/components/Notification/CollapsedFor/CollapsedFor.js +2 -7
  13. package/lib/cjs/components/Notification/Comment/Comment.d.ts +2 -2
  14. package/lib/cjs/components/Notification/Comment/Comment.js +2 -7
  15. package/lib/cjs/components/Notification/Contribution/Contribution.d.ts +2 -2
  16. package/lib/cjs/components/Notification/Contribution/Contribution.js +2 -7
  17. package/lib/cjs/components/Notification/ContributionFollow/ContributionFollow.d.ts +2 -2
  18. package/lib/cjs/components/Notification/ContributionFollow/ContributionFollow.js +2 -7
  19. package/lib/cjs/components/Notification/DeletedFor/DeletedFor.d.ts +2 -2
  20. package/lib/cjs/components/Notification/DeletedFor/DeletedFor.js +2 -7
  21. package/lib/cjs/components/Notification/IncubatorApproved/IncubatorApproved.d.ts +1 -1
  22. package/lib/cjs/components/Notification/IncubatorApproved/IncubatorApproved.js +1 -6
  23. package/lib/cjs/components/Notification/KindlyNoticeFlag/KindlyNoticeFlag.d.ts +2 -2
  24. package/lib/cjs/components/Notification/KindlyNoticeFlag/KindlyNoticeFlag.js +2 -7
  25. package/lib/cjs/components/Notification/KindlyNoticeFor/KindlyNoticeFor.d.ts +2 -2
  26. package/lib/cjs/components/Notification/KindlyNoticeFor/KindlyNoticeFor.js +2 -7
  27. package/lib/cjs/components/Notification/Mention/Mention.d.ts +2 -2
  28. package/lib/cjs/components/Notification/Mention/Mention.js +2 -7
  29. package/lib/cjs/components/Notification/PrivateMessage/PrivateMessage.d.ts +2 -2
  30. package/lib/cjs/components/Notification/PrivateMessage/PrivateMessage.js +2 -7
  31. package/lib/cjs/components/Notification/UndeletedFor/UndeletedFor.d.ts +2 -2
  32. package/lib/cjs/components/Notification/UndeletedFor/UndeletedFor.js +2 -7
  33. package/lib/cjs/components/Notification/UserBlocked/UserBlocked.d.ts +2 -2
  34. package/lib/cjs/components/Notification/UserBlocked/UserBlocked.js +2 -7
  35. package/lib/cjs/components/Notification/UserConnection/UserConnection.d.ts +2 -2
  36. package/lib/cjs/components/Notification/UserConnection/UserConnection.js +2 -7
  37. package/lib/cjs/components/Notification/UserFollow/UserFollow.d.ts +2 -2
  38. package/lib/cjs/components/Notification/UserFollow/UserFollow.js +2 -7
  39. package/lib/cjs/components/Notification/VoteUp/VoteUp.d.ts +2 -2
  40. package/lib/cjs/components/Notification/VoteUp/VoteUp.js +2 -7
  41. package/lib/cjs/components/PollSuggestionWidget/PollSnippet/PollSnippet.d.ts +2 -2
  42. package/lib/cjs/components/PollSuggestionWidget/PollSnippet/PollSnippet.js +2 -7
  43. package/lib/cjs/components/UserProfileEdit/Section/Account.d.ts +1 -1
  44. package/lib/cjs/components/UserProfileEdit/Section/Account.js +2 -7
  45. package/lib/cjs/components/UserProfileEdit/Section/AccountCredentials.d.ts +1 -1
  46. package/lib/cjs/components/UserProfileEdit/Section/AccountCredentials.js +1 -7
  47. package/lib/cjs/components/UserProfileEdit/Section/PublicInfo.d.ts +1 -1
  48. package/lib/cjs/components/UserProfileEdit/Section/PublicInfo.js +1 -6
  49. package/lib/cjs/components/UserProfileEdit/Section/Settings.d.ts +1 -1
  50. package/lib/cjs/components/UserProfileEdit/Section/Settings.js +1 -6
  51. package/lib/esm/components/ChangePicture/ChangePictureDialog/ChangePictureDialog.d.ts +1 -1
  52. package/lib/esm/components/ChangePicture/ChangePictureDialog/ChangePictureDialog.js +1 -6
  53. package/lib/esm/components/CommentObject/CommentObject.d.ts +10 -0
  54. package/lib/esm/components/CommentObject/CommentObject.js +8 -40
  55. package/lib/esm/components/CommentObjectReply/CommentObjectReply.js +2 -3
  56. package/lib/esm/components/FeedObject/Activities/RelevantActivities/CommentActivity/CommentActivity.js +22 -13
  57. package/lib/esm/components/FeedObjectMediaPreview/FeedObjectMediaPreview.d.ts +2 -2
  58. package/lib/esm/components/FeedObjectMediaPreview/FeedObjectMediaPreview.js +5 -5
  59. package/lib/esm/components/IncubatorListWidget/CreateIncubatorDialog/CreateIncubatorDialog.d.ts +1 -1
  60. package/lib/esm/components/IncubatorListWidget/CreateIncubatorDialog/CreateIncubatorDialog.js +1 -6
  61. package/lib/esm/components/Notification/CollapsedFor/CollapsedFor.d.ts +2 -2
  62. package/lib/esm/components/Notification/CollapsedFor/CollapsedFor.js +2 -7
  63. package/lib/esm/components/Notification/Comment/Comment.d.ts +2 -2
  64. package/lib/esm/components/Notification/Comment/Comment.js +2 -7
  65. package/lib/esm/components/Notification/Contribution/Contribution.d.ts +2 -2
  66. package/lib/esm/components/Notification/Contribution/Contribution.js +2 -7
  67. package/lib/esm/components/Notification/ContributionFollow/ContributionFollow.d.ts +2 -2
  68. package/lib/esm/components/Notification/ContributionFollow/ContributionFollow.js +2 -7
  69. package/lib/esm/components/Notification/DeletedFor/DeletedFor.d.ts +2 -2
  70. package/lib/esm/components/Notification/DeletedFor/DeletedFor.js +2 -7
  71. package/lib/esm/components/Notification/IncubatorApproved/IncubatorApproved.d.ts +1 -1
  72. package/lib/esm/components/Notification/IncubatorApproved/IncubatorApproved.js +1 -6
  73. package/lib/esm/components/Notification/KindlyNoticeFlag/KindlyNoticeFlag.d.ts +2 -2
  74. package/lib/esm/components/Notification/KindlyNoticeFlag/KindlyNoticeFlag.js +2 -7
  75. package/lib/esm/components/Notification/KindlyNoticeFor/KindlyNoticeFor.d.ts +2 -2
  76. package/lib/esm/components/Notification/KindlyNoticeFor/KindlyNoticeFor.js +2 -7
  77. package/lib/esm/components/Notification/Mention/Mention.d.ts +2 -2
  78. package/lib/esm/components/Notification/Mention/Mention.js +2 -7
  79. package/lib/esm/components/Notification/PrivateMessage/PrivateMessage.d.ts +2 -2
  80. package/lib/esm/components/Notification/PrivateMessage/PrivateMessage.js +2 -7
  81. package/lib/esm/components/Notification/UndeletedFor/UndeletedFor.d.ts +2 -2
  82. package/lib/esm/components/Notification/UndeletedFor/UndeletedFor.js +2 -7
  83. package/lib/esm/components/Notification/UserBlocked/UserBlocked.d.ts +2 -2
  84. package/lib/esm/components/Notification/UserBlocked/UserBlocked.js +2 -7
  85. package/lib/esm/components/Notification/UserConnection/UserConnection.d.ts +2 -2
  86. package/lib/esm/components/Notification/UserConnection/UserConnection.js +2 -7
  87. package/lib/esm/components/Notification/UserFollow/UserFollow.d.ts +2 -2
  88. package/lib/esm/components/Notification/UserFollow/UserFollow.js +2 -7
  89. package/lib/esm/components/Notification/VoteUp/VoteUp.d.ts +2 -2
  90. package/lib/esm/components/Notification/VoteUp/VoteUp.js +2 -7
  91. package/lib/esm/components/PollSuggestionWidget/PollSnippet/PollSnippet.d.ts +2 -2
  92. package/lib/esm/components/PollSuggestionWidget/PollSnippet/PollSnippet.js +2 -7
  93. package/lib/esm/components/UserProfileEdit/Section/Account.d.ts +1 -1
  94. package/lib/esm/components/UserProfileEdit/Section/Account.js +2 -7
  95. package/lib/esm/components/UserProfileEdit/Section/AccountCredentials.d.ts +1 -1
  96. package/lib/esm/components/UserProfileEdit/Section/AccountCredentials.js +1 -7
  97. package/lib/esm/components/UserProfileEdit/Section/PublicInfo.d.ts +1 -1
  98. package/lib/esm/components/UserProfileEdit/Section/PublicInfo.js +1 -6
  99. package/lib/esm/components/UserProfileEdit/Section/Settings.d.ts +1 -1
  100. package/lib/esm/components/UserProfileEdit/Section/Settings.js +1 -6
  101. package/lib/umd/react-ui.js +1 -1
  102. package/package.json +4 -4
@@ -6,13 +6,13 @@ import { useSCMediaClick } from '@selfcommunity/react-core';
6
6
  import { useThemeProps } from '@mui/system';
7
7
  import { File, Link, Share } from '../../shared/Media';
8
8
  import classNames from 'classnames';
9
- import { PREFIX } from '../FeedObject/constants';
9
+ const PREFIX = 'SCFeedObjectMediaPreview';
10
10
  const classes = {
11
- root: `${PREFIX}-media-preview-root`
11
+ root: `${PREFIX}-root`
12
12
  };
13
13
  const Root = styled(Box, {
14
14
  name: PREFIX,
15
- slot: 'MediaPreviewRoot'
15
+ slot: 'Root'
16
16
  })(() => ({}));
17
17
  /**
18
18
  * > API documentation for the Community-JS FeedObjectMediaPreview component. Learn about the available props and the CSS API.
@@ -25,13 +25,13 @@ const Root = styled(Box, {
25
25
  import {FeedObjectMediaPreview} from '@selfcommunity/react-ui';
26
26
  ```
27
27
  #### Component Name
28
- The name `SCFeedObject-media-preview-root` can be used when providing style overrides in the theme.
28
+ The name `SCFeedObjectMediaPreview` can be used when providing style overrides in the theme.
29
29
 
30
30
  #### CSS
31
31
 
32
32
  |Rule Name|Global class|Description|
33
33
  |---|---|---|
34
- |root|.SCFeedObject-media-preview-root|Styles applied to the root element.|
34
+ |root|.SCFeedObjectMediaPreview-root|Styles applied to the root element.|
35
35
 
36
36
 
37
37
  * @param inProps
@@ -15,4 +15,4 @@ export interface CreateIncubatorDialogProps {
15
15
  */
16
16
  onClose?: () => void;
17
17
  }
18
- export default function CreateIncubatorDialog(inProps: CreateIncubatorDialogProps): JSX.Element;
18
+ export default function CreateIncubatorDialog(props: CreateIncubatorDialogProps): JSX.Element;
@@ -8,7 +8,6 @@ import { Logger } from '@selfcommunity/utils';
8
8
  import { useSCUser } from '@selfcommunity/react-core';
9
9
  import BaseDialog from '../../../shared/BaseDialog';
10
10
  import classNames from 'classnames';
11
- import { useThemeProps } from '@mui/system';
12
11
  import { SCOPE_SC_UI } from '../../../constants/Errors';
13
12
  import { LoadingButton } from '@mui/lab';
14
13
  import { PREFIX } from '../constants';
@@ -34,12 +33,8 @@ const Root = styled(BaseDialog, {
34
33
  name: PREFIX,
35
34
  slot: 'CreateDialogRoot'
36
35
  })(() => ({}));
37
- export default function CreateIncubatorDialog(inProps) {
36
+ export default function CreateIncubatorDialog(props) {
38
37
  // PROPS
39
- const props = useThemeProps({
40
- props: inProps,
41
- name: PREFIX
42
- });
43
38
  const { className, open, onClose } = props, rest = __rest(props, ["className", "open", "onClose"]);
44
39
  // CONTEXT
45
40
  const scUserContext = useSCUser();
@@ -9,7 +9,7 @@ export interface NotificationCollapsedForProps extends Pick<NotificationItemProp
9
9
  }
10
10
  /**
11
11
  * This component render the content of the notification of type collapsed for
12
- * @param inProps
13
12
  * @constructor
13
+ * @param props
14
14
  */
15
- export default function CollapsedForNotification(inProps: NotificationCollapsedForProps): JSX.Element;
15
+ export default function CollapsedForNotification(props: NotificationCollapsedForProps): JSX.Element;
@@ -10,7 +10,6 @@ import { getContributionType, getContributionSnippet, getRouteData } from '../..
10
10
  import DateTimeAgo from '../../../shared/DateTimeAgo';
11
11
  import classNames from 'classnames';
12
12
  import { SCNotificationObjectTemplateType } from '../../../types';
13
- import { useThemeProps } from '@mui/system';
14
13
  import NotificationItem from '../../../shared/NotificationItem';
15
14
  import { PREFIX } from '../constants';
16
15
  const messages = defineMessages({
@@ -50,15 +49,11 @@ const Root = styled(NotificationItem, {
50
49
  })(() => ({}));
51
50
  /**
52
51
  * This component render the content of the notification of type collapsed for
53
- * @param inProps
54
52
  * @constructor
53
+ * @param props
55
54
  */
56
- export default function CollapsedForNotification(inProps) {
55
+ export default function CollapsedForNotification(props) {
57
56
  // PROPS
58
- const props = useThemeProps({
59
- props: inProps,
60
- name: PREFIX
61
- });
62
57
  const { notificationObject, id = `n_${props.notificationObject['sid']}`, template = SCNotificationObjectTemplateType.DETAIL, className } = props, rest = __rest(props, ["notificationObject", "id", "template", "className"]);
63
58
  // ROUTING
64
59
  const scRoutingContext = useSCRouting();
@@ -14,7 +14,7 @@ export interface CommentNotificationProps extends Pick<NotificationItemProps, Ex
14
14
  }
15
15
  /**
16
16
  * This component render the content of the notification of type comment/nested comment
17
- * @param inProps
17
+ * @param props
18
18
  * @constructor
19
19
  */
20
- export default function CommentNotification(inProps: CommentNotificationProps): JSX.Element;
20
+ export default function CommentNotification(props: CommentNotificationProps): JSX.Element;
@@ -10,7 +10,6 @@ import DateTimeAgo from '../../../shared/DateTimeAgo';
10
10
  import { getContributionSnippet, getRouteData } from '../../../utils/contribution';
11
11
  import classNames from 'classnames';
12
12
  import { SCNotificationObjectTemplateType } from '../../../types';
13
- import { useThemeProps } from '@mui/system';
14
13
  import NotificationItem from '../../../shared/NotificationItem';
15
14
  import VoteButton from '../../VoteButton';
16
15
  import UserDeletedSnackBar from '../../../shared/UserDeletedSnackBar';
@@ -41,15 +40,11 @@ const Root = styled(NotificationItem, {
41
40
  })(() => ({}));
42
41
  /**
43
42
  * This component render the content of the notification of type comment/nested comment
44
- * @param inProps
43
+ * @param props
45
44
  * @constructor
46
45
  */
47
- export default function CommentNotification(inProps) {
46
+ export default function CommentNotification(props) {
48
47
  // PROPS
49
- const props = useThemeProps({
50
- props: inProps,
51
- name: PREFIX
52
- });
53
48
  const { notificationObject, onVote, id = `n_${props.notificationObject['sid']}`, template = SCNotificationObjectTemplateType.DETAIL, className } = props, rest = __rest(props, ["notificationObject", "onVote", "id", "template", "className"]);
54
49
  // STATE
55
50
  const [openAlert, setOpenAlert] = useState(false);
@@ -14,7 +14,7 @@ export interface ContributionNotificationProps extends Pick<NotificationItemProp
14
14
  }
15
15
  /**
16
16
  * This component render the content of the notification of type follow (contribution)
17
- * @param inProps
18
17
  * @constructor
18
+ * @param props
19
19
  */
20
- export default function ContributionNotification(inProps: ContributionNotificationProps): JSX.Element;
20
+ export default function ContributionNotification(props: ContributionNotificationProps): JSX.Element;
@@ -9,7 +9,6 @@ import DateTimeAgo from '../../../shared/DateTimeAgo';
9
9
  import classNames from 'classnames';
10
10
  import { SCNotificationObjectTemplateType } from '../../../types';
11
11
  import { getContributionSnippet, getContributionType, getRouteData } from '../../../utils/contribution';
12
- import { useThemeProps } from '@mui/system';
13
12
  import NotificationItem from '../../../shared/NotificationItem';
14
13
  import Bullet from '../../../shared/Bullet';
15
14
  import VoteButton from '../../VoteButton';
@@ -49,15 +48,11 @@ const Root = styled(NotificationItem, {
49
48
  })(() => ({}));
50
49
  /**
51
50
  * This component render the content of the notification of type follow (contribution)
52
- * @param inProps
53
51
  * @constructor
52
+ * @param props
54
53
  */
55
- export default function ContributionNotification(inProps) {
54
+ export default function ContributionNotification(props) {
56
55
  // PROPS
57
- const props = useThemeProps({
58
- props: inProps,
59
- name: PREFIX
60
- });
61
56
  const { notificationObject, onVote, id = `n_${props.notificationObject['sid']}`, className, template = SCNotificationObjectTemplateType.DETAIL } = props, rest = __rest(props, ["notificationObject", "onVote", "id", "className", "template"]);
62
57
  // ROUTING
63
58
  const scRoutingContext = useSCRouting();
@@ -9,7 +9,7 @@ export interface ContributionFollowProps extends Pick<NotificationItemProps, Exc
9
9
  }
10
10
  /**
11
11
  * This component render the content of the notification of type follow (contribution)
12
- * @param inProps
13
12
  * @constructor
13
+ * @param props
14
14
  */
15
- export default function ContributionFollowNotification(inProps: ContributionFollowProps): JSX.Element;
15
+ export default function ContributionFollowNotification(props: ContributionFollowProps): JSX.Element;
@@ -8,7 +8,6 @@ import DateTimeAgo from '../../../shared/DateTimeAgo';
8
8
  import classNames from 'classnames';
9
9
  import { SCNotificationObjectTemplateType } from '../../../types';
10
10
  import { getContributionSnippet, getContributionType, getRouteData } from '../../../utils/contribution';
11
- import { useThemeProps } from '@mui/system';
12
11
  import NotificationItem from '../../../shared/NotificationItem';
13
12
  import UserDeletedSnackBar from '../../../shared/UserDeletedSnackBar';
14
13
  import UserAvatar from '../../../shared/UserAvatar';
@@ -33,15 +32,11 @@ const Root = styled(NotificationItem, {
33
32
  })(() => ({}));
34
33
  /**
35
34
  * This component render the content of the notification of type follow (contribution)
36
- * @param inProps
37
35
  * @constructor
36
+ * @param props
38
37
  */
39
- export default function ContributionFollowNotification(inProps) {
38
+ export default function ContributionFollowNotification(props) {
40
39
  // PROPS
41
- const props = useThemeProps({
42
- props: inProps,
43
- name: PREFIX
44
- });
45
40
  const { notificationObject, id = `n_${props.notificationObject['sid']}`, className, template = SCNotificationObjectTemplateType.DETAIL } = props, rest = __rest(props, ["notificationObject", "id", "className", "template"]);
46
41
  // CONTEXT
47
42
  const scRoutingContext = useSCRouting();
@@ -9,7 +9,7 @@ export interface NotificationDeletedForProps extends Pick<NotificationItemProps,
9
9
  }
10
10
  /**
11
11
  * This component render the content of the notification of type deleted for
12
- * @param inProps
13
12
  * @constructor
13
+ * @param props
14
14
  */
15
- export default function DeletedForNotification(inProps: NotificationDeletedForProps): JSX.Element;
15
+ export default function DeletedForNotification(props: NotificationDeletedForProps): JSX.Element;
@@ -11,7 +11,6 @@ import { camelCase } from '@selfcommunity/utils';
11
11
  import { Link, useSCRouting, SCRoutes } from '@selfcommunity/react-core';
12
12
  import classNames from 'classnames';
13
13
  import { SCNotificationObjectTemplateType } from '../../../types';
14
- import { useThemeProps } from '@mui/system';
15
14
  import NotificationItem from '../../../shared/NotificationItem';
16
15
  import { PREFIX } from '../constants';
17
16
  const messages = defineMessages({
@@ -52,15 +51,11 @@ const Root = styled(NotificationItem, {
52
51
  })(() => ({}));
53
52
  /**
54
53
  * This component render the content of the notification of type deleted for
55
- * @param inProps
56
54
  * @constructor
55
+ * @param props
57
56
  */
58
- export default function DeletedForNotification(inProps) {
57
+ export default function DeletedForNotification(props) {
59
58
  // PROPS
60
- const props = useThemeProps({
61
- props: inProps,
62
- name: PREFIX
63
- });
64
59
  const { notificationObject = null, id = `n_${props.notificationObject['feed_serialization_id']}`, template = SCNotificationObjectTemplateType.DETAIL, className } = props, rest = __rest(props, ["notificationObject", "id", "template", "className"]);
65
60
  // ROUTING
66
61
  const scRoutingContext = useSCRouting();
@@ -7,4 +7,4 @@ export interface NotificationIncubatorApprovedProps extends Pick<NotificationIte
7
7
  */
8
8
  notificationObject: SCNotificationIncubatorType;
9
9
  }
10
- export default function IncubatorApprovedNotification(inProps: NotificationIncubatorApprovedProps): JSX.Element;
10
+ export default function IncubatorApprovedNotification(props: NotificationIncubatorApprovedProps): JSX.Element;
@@ -8,7 +8,6 @@ import DateTimeAgo from '../../../shared/DateTimeAgo';
8
8
  import NewChip from '../../../shared/NewChip/NewChip';
9
9
  import classNames from 'classnames';
10
10
  import { SCNotificationObjectTemplateType } from '../../../types';
11
- import { useThemeProps } from '@mui/system';
12
11
  import NotificationItem from '../../../shared/NotificationItem';
13
12
  import { PREFIX } from '../constants';
14
13
  const messages = defineMessages({
@@ -28,12 +27,8 @@ const Root = styled(NotificationItem, {
28
27
  name: PREFIX,
29
28
  slot: 'IncubatorApprovedRoot'
30
29
  })(() => ({}));
31
- export default function IncubatorApprovedNotification(inProps) {
30
+ export default function IncubatorApprovedNotification(props) {
32
31
  // PROPS
33
- const props = useThemeProps({
34
- props: inProps,
35
- name: PREFIX
36
- });
37
32
  const { notificationObject = null, id = `n_${props.notificationObject['feed_serialization_id']}`, template = SCNotificationObjectTemplateType.DETAIL, className } = props, rest = __rest(props, ["notificationObject", "id", "template", "className"]);
38
33
  // ROUTING
39
34
  const scRoutingContext = useSCRouting();
@@ -9,7 +9,7 @@ export interface NotificationKindlyNoticeFlagProps extends Pick<NotificationItem
9
9
  }
10
10
  /**
11
11
  * This component render the content of the notification of type kindly notice flag
12
- * @param inProps
13
12
  * @constructor
13
+ * @param props
14
14
  */
15
- export default function KindlyNoticeFlagNotification(inProps: NotificationKindlyNoticeFlagProps): JSX.Element;
15
+ export default function KindlyNoticeFlagNotification(props: NotificationKindlyNoticeFlagProps): JSX.Element;
@@ -10,7 +10,6 @@ import { getContributionType, getContributionSnippet, getRouteData } from '../..
10
10
  import DateTimeAgo from '../../../shared/DateTimeAgo';
11
11
  import classNames from 'classnames';
12
12
  import { SCNotificationObjectTemplateType } from '../../../types';
13
- import { useThemeProps } from '@mui/system';
14
13
  import NotificationItem from '../../../shared/NotificationItem';
15
14
  import { PREFIX } from '../constants';
16
15
  const messages = defineMessages({
@@ -34,15 +33,11 @@ const Root = styled(NotificationItem, {
34
33
  })(() => ({}));
35
34
  /**
36
35
  * This component render the content of the notification of type kindly notice flag
37
- * @param inProps
38
36
  * @constructor
37
+ * @param props
39
38
  */
40
- export default function KindlyNoticeFlagNotification(inProps) {
39
+ export default function KindlyNoticeFlagNotification(props) {
41
40
  // PROPS
42
- const props = useThemeProps({
43
- props: inProps,
44
- name: PREFIX
45
- });
46
41
  const { notificationObject, id = `n_${props.notificationObject['sid']}`, className, template = SCNotificationObjectTemplateType.DETAIL } = props, rest = __rest(props, ["notificationObject", "id", "className", "template"]);
47
42
  // ROUTING
48
43
  const scRoutingContext = useSCRouting();
@@ -9,7 +9,7 @@ export interface NotificationKindlyNoticeForProps extends Pick<NotificationItemP
9
9
  }
10
10
  /**
11
11
  * This component render the content of the notification of type kindly notice for
12
- * @param inProps
13
12
  * @constructor
13
+ * @param props
14
14
  */
15
- export default function KindlyNoticeForNotification(inProps: NotificationKindlyNoticeForProps): JSX.Element;
15
+ export default function KindlyNoticeForNotification(props: NotificationKindlyNoticeForProps): JSX.Element;
@@ -10,7 +10,6 @@ import { getContributionType, getContributionSnippet, getRouteData } from '../..
10
10
  import DateTimeAgo from '../../../shared/DateTimeAgo';
11
11
  import classNames from 'classnames';
12
12
  import { SCNotificationObjectTemplateType } from '../../../types';
13
- import { useThemeProps } from '@mui/system';
14
13
  import NotificationItem from '../../../shared/NotificationItem';
15
14
  import { PREFIX } from '../constants';
16
15
  const messages = defineMessages({
@@ -54,15 +53,11 @@ const Root = styled(NotificationItem, {
54
53
  })(() => ({}));
55
54
  /**
56
55
  * This component render the content of the notification of type kindly notice for
57
- * @param inProps
58
56
  * @constructor
57
+ * @param props
59
58
  */
60
- export default function KindlyNoticeForNotification(inProps) {
59
+ export default function KindlyNoticeForNotification(props) {
61
60
  // PROPS
62
- const props = useThemeProps({
63
- props: inProps,
64
- name: PREFIX
65
- });
66
61
  const { notificationObject, id = `n_${props.notificationObject['sid']}`, className, template = SCNotificationObjectTemplateType.DETAIL } = props, rest = __rest(props, ["notificationObject", "id", "className", "template"]);
67
62
  // ROUTING
68
63
  const scRoutingContext = useSCRouting();
@@ -9,7 +9,7 @@ export interface MentionNotificationProps extends Pick<NotificationItemProps, Ex
9
9
  }
10
10
  /**
11
11
  * This component render the content of the notification of type mention
12
- * @param inProps
13
12
  * @constructor
13
+ * @param props
14
14
  */
15
- export default function MentionNotification(inProps: MentionNotificationProps): JSX.Element;
15
+ export default function MentionNotification(props: MentionNotificationProps): JSX.Element;
@@ -8,7 +8,6 @@ import { getRouteData, getContributionType, getContributionSnippet, getContribut
8
8
  import DateTimeAgo from '../../../shared/DateTimeAgo';
9
9
  import classNames from 'classnames';
10
10
  import { SCNotificationObjectTemplateType } from '../../../types';
11
- import { useThemeProps } from '@mui/system';
12
11
  import NotificationItem from '../../../shared/NotificationItem';
13
12
  import UserDeletedSnackBar from '../../../shared/UserDeletedSnackBar';
14
13
  import UserAvatar from '../../../shared/UserAvatar';
@@ -33,15 +32,11 @@ const Root = styled(NotificationItem, {
33
32
  })(() => ({}));
34
33
  /**
35
34
  * This component render the content of the notification of type mention
36
- * @param inProps
37
35
  * @constructor
36
+ * @param props
38
37
  */
39
- export default function MentionNotification(inProps) {
38
+ export default function MentionNotification(props) {
40
39
  // PROPS
41
- const props = useThemeProps({
42
- props: inProps,
43
- name: PREFIX
44
- });
45
40
  const { notificationObject, id = `n_${props.notificationObject['sid']}`, className, template = SCNotificationObjectTemplateType.DETAIL } = props, rest = __rest(props, ["notificationObject", "id", "className", "template"]);
46
41
  // CONTEXT
47
42
  const scRoutingContext = useSCRouting();
@@ -9,7 +9,7 @@ export interface NotificationPrivateMessageProps extends Pick<NotificationItemPr
9
9
  }
10
10
  /**
11
11
  * This component render the content of the notification of type private message
12
- * @param inProps
13
12
  * @constructor
13
+ * @param props
14
14
  */
15
- export default function PrivateMessageNotification(inProps: NotificationPrivateMessageProps): JSX.Element;
15
+ export default function PrivateMessageNotification(props: NotificationPrivateMessageProps): JSX.Element;
@@ -7,7 +7,6 @@ import { defineMessages, FormattedMessage, useIntl } from 'react-intl';
7
7
  import DateTimeAgo from '../../../shared/DateTimeAgo';
8
8
  import classNames from 'classnames';
9
9
  import { SCNotificationObjectTemplateType } from '../../../types';
10
- import { useThemeProps } from '@mui/system';
11
10
  import NotificationItem from '../../../shared/NotificationItem';
12
11
  import { LoadingButton } from '@mui/lab';
13
12
  import UserDeletedSnackBar from '../../../shared/UserDeletedSnackBar';
@@ -36,15 +35,11 @@ const Root = styled(NotificationItem, {
36
35
  })(() => ({}));
37
36
  /**
38
37
  * This component render the content of the notification of type private message
39
- * @param inProps
40
38
  * @constructor
39
+ * @param props
41
40
  */
42
- export default function PrivateMessageNotification(inProps) {
41
+ export default function PrivateMessageNotification(props) {
43
42
  // PROPS
44
- const props = useThemeProps({
45
- props: inProps,
46
- name: PREFIX
47
- });
48
43
  const { notificationObject, id = `n_${props.notificationObject['sid']}`, className, template = SCNotificationObjectTemplateType.DETAIL } = props, rest = __rest(props, ["notificationObject", "id", "className", "template"]);
49
44
  // CONTEXT
50
45
  const scRoutingContext = useSCRouting();
@@ -9,7 +9,7 @@ export interface NotificationUndeletedProps extends Pick<NotificationItemProps,
9
9
  }
10
10
  /**
11
11
  * This component render the content of the notification of type undeleted for
12
- * @param inProps
13
12
  * @constructor
13
+ * @param props
14
14
  */
15
- export default function UndeletedForNotification(inProps: NotificationUndeletedProps): JSX.Element;
15
+ export default function UndeletedForNotification(props: NotificationUndeletedProps): JSX.Element;
@@ -9,7 +9,6 @@ import { getContributionSnippet, getContributionType, getRouteData } from '../..
9
9
  import DateTimeAgo from '../../../shared/DateTimeAgo';
10
10
  import classNames from 'classnames';
11
11
  import { SCNotificationObjectTemplateType } from '../../../types';
12
- import { useThemeProps } from '@mui/system';
13
12
  import NotificationItem from '../../../shared/NotificationItem';
14
13
  import { PREFIX } from '../constants';
15
14
  const classes = {
@@ -27,15 +26,11 @@ const Root = styled(NotificationItem, {
27
26
  })(() => ({}));
28
27
  /**
29
28
  * This component render the content of the notification of type undeleted for
30
- * @param inProps
31
29
  * @constructor
30
+ * @param props
32
31
  */
33
- export default function UndeletedForNotification(inProps) {
32
+ export default function UndeletedForNotification(props) {
34
33
  // PROPS
35
- const props = useThemeProps({
36
- props: inProps,
37
- name: PREFIX
38
- });
39
34
  const { notificationObject, id = `n_${props.notificationObject['sid']}`, className, template = SCNotificationObjectTemplateType.DETAIL } = props, rest = __rest(props, ["notificationObject", "id", "className", "template"]);
40
35
  // CONTEXT
41
36
  const scRoutingContext = useSCRouting();
@@ -9,7 +9,7 @@ export interface NotificationBlockedProps extends Pick<NotificationItemProps, Ex
9
9
  }
10
10
  /**
11
11
  * This component render the content of the notification of type user blocked
12
- * @param inProps
13
12
  * @constructor
13
+ * @param props
14
14
  */
15
- export default function UserBlockedNotification(inProps: NotificationBlockedProps): JSX.Element;
15
+ export default function UserBlockedNotification(props: NotificationBlockedProps): JSX.Element;
@@ -8,7 +8,6 @@ import { defineMessages, useIntl } from 'react-intl';
8
8
  import DateTimeAgo from '../../../shared/DateTimeAgo';
9
9
  import classNames from 'classnames';
10
10
  import { SCNotificationObjectTemplateType } from '../../../types';
11
- import { useThemeProps } from '@mui/system';
12
11
  import NotificationItem from '../../../shared/NotificationItem';
13
12
  import { PREFIX } from '../constants';
14
13
  const messages = defineMessages({
@@ -34,15 +33,11 @@ const Root = styled(NotificationItem, {
34
33
  })(() => ({}));
35
34
  /**
36
35
  * This component render the content of the notification of type user blocked
37
- * @param inProps
38
36
  * @constructor
37
+ * @param props
39
38
  */
40
- export default function UserBlockedNotification(inProps) {
39
+ export default function UserBlockedNotification(props) {
41
40
  // PROPS
42
- const props = useThemeProps({
43
- props: inProps,
44
- name: PREFIX
45
- });
46
41
  const { notificationObject = null, id = `n_${props.notificationObject['sid']}`, template = SCNotificationObjectTemplateType.DETAIL, className } = props, rest = __rest(props, ["notificationObject", "id", "template", "className"]);
47
42
  // INTL
48
43
  const intl = useIntl();
@@ -9,7 +9,7 @@ export interface NotificationConnectionProps extends Pick<NotificationItemProps,
9
9
  }
10
10
  /**
11
11
  * This component render the content of the notification of connection accept/request
12
- * @param inProps
13
12
  * @constructor
13
+ * @param props
14
14
  */
15
- export default function UserConnectionNotification(inProps: NotificationConnectionProps): JSX.Element;
15
+ export default function UserConnectionNotification(props: NotificationConnectionProps): JSX.Element;
@@ -8,7 +8,6 @@ import { SCNotificationTypologyType } from '@selfcommunity/types';
8
8
  import { Link, SCRoutes, useSCRouting } from '@selfcommunity/react-core';
9
9
  import classNames from 'classnames';
10
10
  import { SCNotificationObjectTemplateType } from '../../../types';
11
- import { useThemeProps } from '@mui/system';
12
11
  import NotificationItem from '../../../shared/NotificationItem';
13
12
  import UserDeletedSnackBar from '../../../shared/UserDeletedSnackBar';
14
13
  import UserAvatar from '../../../shared/UserAvatar';
@@ -36,15 +35,11 @@ const Root = styled(NotificationItem, {
36
35
  })(() => ({}));
37
36
  /**
38
37
  * This component render the content of the notification of connection accept/request
39
- * @param inProps
40
38
  * @constructor
39
+ * @param props
41
40
  */
42
- export default function UserConnectionNotification(inProps) {
41
+ export default function UserConnectionNotification(props) {
43
42
  // PROPS
44
- const props = useThemeProps({
45
- props: inProps,
46
- name: PREFIX
47
- });
48
43
  const { notificationObject = null, id = `n_${props.notificationObject['sid']}`, className, template = SCNotificationObjectTemplateType.DETAIL } = props, rest = __rest(props, ["notificationObject", "id", "className", "template"]);
49
44
  // CONTEXT
50
45
  const scRoutingContext = useSCRouting();
@@ -9,7 +9,7 @@ export interface NotificationFollowProps extends Pick<NotificationItemProps, Exc
9
9
  }
10
10
  /**
11
11
  * This component render the content of the notification of type user follow
12
- * @param inProps
13
12
  * @constructor
13
+ * @param props
14
14
  */
15
- export default function UserFollowNotification(inProps: NotificationFollowProps): JSX.Element;
15
+ export default function UserFollowNotification(props: NotificationFollowProps): JSX.Element;
@@ -7,7 +7,6 @@ import { defineMessages, FormattedMessage, useIntl } from 'react-intl';
7
7
  import DateTimeAgo from '../../../shared/DateTimeAgo';
8
8
  import classNames from 'classnames';
9
9
  import { SCNotificationObjectTemplateType } from '../../../types';
10
- import { useThemeProps } from '@mui/system';
11
10
  import NotificationItem from '../../../shared/NotificationItem';
12
11
  import UserDeletedSnackBar from '../../../shared/UserDeletedSnackBar';
13
12
  import UserAvatar from '../../../shared/UserAvatar';
@@ -31,15 +30,11 @@ const Root = styled(NotificationItem, {
31
30
  })(() => ({}));
32
31
  /**
33
32
  * This component render the content of the notification of type user follow
34
- * @param inProps
35
33
  * @constructor
34
+ * @param props
36
35
  */
37
- export default function UserFollowNotification(inProps) {
36
+ export default function UserFollowNotification(props) {
38
37
  // PROPS
39
- const props = useThemeProps({
40
- props: inProps,
41
- name: PREFIX
42
- });
43
38
  const { notificationObject, id = `n_${props.notificationObject['sid']}`, className, template = SCNotificationObjectTemplateType.DETAIL } = props, rest = __rest(props, ["notificationObject", "id", "className", "template"]);
44
39
  // CONTEXT
45
40
  const scRoutingContext = useSCRouting();
@@ -9,7 +9,7 @@ export interface NotificationVoteUpProps extends Pick<NotificationItemProps, Exc
9
9
  }
10
10
  /**
11
11
  * This component render the content of the notification of type vote up
12
- * @param inProps
13
12
  * @constructor
13
+ * @param props
14
14
  */
15
- export default function VoteUpNotification(inProps: NotificationVoteUpProps): JSX.Element;
15
+ export default function VoteUpNotification(props: NotificationVoteUpProps): JSX.Element;
@@ -8,7 +8,6 @@ import DateTimeAgo from '../../../shared/DateTimeAgo';
8
8
  import { getContribution, getContributionType, getContributionSnippet, getRouteData, getContributionRouteName } from '../../../utils/contribution';
9
9
  import classNames from 'classnames';
10
10
  import { SCNotificationObjectTemplateType } from '../../../types/notification';
11
- import { useThemeProps } from '@mui/system';
12
11
  import NotificationItem from '../../../shared/NotificationItem';
13
12
  import UserDeletedSnackBar from '../../../shared/UserDeletedSnackBar';
14
13
  import UserAvatar from '../../../shared/UserAvatar';
@@ -33,15 +32,11 @@ const Root = styled(NotificationItem, {
33
32
  })(() => ({}));
34
33
  /**
35
34
  * This component render the content of the notification of type vote up
36
- * @param inProps
37
35
  * @constructor
36
+ * @param props
38
37
  */
39
- export default function VoteUpNotification(inProps) {
38
+ export default function VoteUpNotification(props) {
40
39
  // PROPS
41
- const props = useThemeProps({
42
- props: inProps,
43
- name: PREFIX
44
- });
45
40
  const { notificationObject, id = `n_${props.notificationObject['sid']}`, className, template = SCNotificationObjectTemplateType.DETAIL, index, onVote, loadingVote } = props, rest = __rest(props, ["notificationObject", "id", "className", "template", "index", "onVote", "loadingVote"]);
46
41
  // CONTEXT
47
42
  const scRoutingContext = useSCRouting();
@@ -42,6 +42,6 @@ export interface PollSnippetProps {
42
42
  |title|.SCPollSuggestionWidget-title|Styles applied to the title element.|
43
43
  |activityAt|.SCPollSuggestionWidget-activity-at|Styles applied to activity section.|
44
44
 
45
- * @param inProps
45
+ * @param props
46
46
  */
47
- export default function PollSnippet(inProps: PollSnippetProps): JSX.Element;
47
+ export default function PollSnippet(props: PollSnippetProps): JSX.Element;