@selfcommunity/react-ui 0.7.0-alpha.352 → 0.7.0-alpha.354

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 (100) 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/CommentObjectReply/CommentObjectReply.js +2 -3
  4. package/lib/cjs/components/FeedObject/Activities/RelevantActivities/CommentActivity/CommentActivity.js +19 -10
  5. package/lib/cjs/components/FeedObject/Poll/Poll.js +5 -8
  6. package/lib/cjs/components/FeedObjectMediaPreview/FeedObjectMediaPreview.d.ts +2 -2
  7. package/lib/cjs/components/FeedObjectMediaPreview/FeedObjectMediaPreview.js +7 -7
  8. package/lib/cjs/components/IncubatorListWidget/CreateIncubatorDialog/CreateIncubatorDialog.d.ts +1 -1
  9. package/lib/cjs/components/IncubatorListWidget/CreateIncubatorDialog/CreateIncubatorDialog.js +1 -6
  10. package/lib/cjs/components/Notification/CollapsedFor/CollapsedFor.d.ts +2 -2
  11. package/lib/cjs/components/Notification/CollapsedFor/CollapsedFor.js +2 -7
  12. package/lib/cjs/components/Notification/Comment/Comment.d.ts +2 -2
  13. package/lib/cjs/components/Notification/Comment/Comment.js +2 -7
  14. package/lib/cjs/components/Notification/Contribution/Contribution.d.ts +2 -2
  15. package/lib/cjs/components/Notification/Contribution/Contribution.js +2 -7
  16. package/lib/cjs/components/Notification/ContributionFollow/ContributionFollow.d.ts +2 -2
  17. package/lib/cjs/components/Notification/ContributionFollow/ContributionFollow.js +2 -7
  18. package/lib/cjs/components/Notification/DeletedFor/DeletedFor.d.ts +2 -2
  19. package/lib/cjs/components/Notification/DeletedFor/DeletedFor.js +2 -7
  20. package/lib/cjs/components/Notification/IncubatorApproved/IncubatorApproved.d.ts +1 -1
  21. package/lib/cjs/components/Notification/IncubatorApproved/IncubatorApproved.js +1 -6
  22. package/lib/cjs/components/Notification/KindlyNoticeFlag/KindlyNoticeFlag.d.ts +2 -2
  23. package/lib/cjs/components/Notification/KindlyNoticeFlag/KindlyNoticeFlag.js +2 -7
  24. package/lib/cjs/components/Notification/KindlyNoticeFor/KindlyNoticeFor.d.ts +2 -2
  25. package/lib/cjs/components/Notification/KindlyNoticeFor/KindlyNoticeFor.js +2 -7
  26. package/lib/cjs/components/Notification/Mention/Mention.d.ts +2 -2
  27. package/lib/cjs/components/Notification/Mention/Mention.js +2 -7
  28. package/lib/cjs/components/Notification/PrivateMessage/PrivateMessage.d.ts +2 -2
  29. package/lib/cjs/components/Notification/PrivateMessage/PrivateMessage.js +2 -7
  30. package/lib/cjs/components/Notification/UndeletedFor/UndeletedFor.d.ts +2 -2
  31. package/lib/cjs/components/Notification/UndeletedFor/UndeletedFor.js +2 -7
  32. package/lib/cjs/components/Notification/UserBlocked/UserBlocked.d.ts +2 -2
  33. package/lib/cjs/components/Notification/UserBlocked/UserBlocked.js +2 -7
  34. package/lib/cjs/components/Notification/UserConnection/UserConnection.d.ts +2 -2
  35. package/lib/cjs/components/Notification/UserConnection/UserConnection.js +2 -7
  36. package/lib/cjs/components/Notification/UserFollow/UserFollow.d.ts +2 -2
  37. package/lib/cjs/components/Notification/UserFollow/UserFollow.js +2 -7
  38. package/lib/cjs/components/Notification/VoteUp/VoteUp.d.ts +2 -2
  39. package/lib/cjs/components/Notification/VoteUp/VoteUp.js +2 -7
  40. package/lib/cjs/components/PollSuggestionWidget/PollSnippet/PollSnippet.d.ts +2 -2
  41. package/lib/cjs/components/PollSuggestionWidget/PollSnippet/PollSnippet.js +2 -7
  42. package/lib/cjs/components/UserProfileEdit/Section/Account.d.ts +1 -1
  43. package/lib/cjs/components/UserProfileEdit/Section/Account.js +2 -7
  44. package/lib/cjs/components/UserProfileEdit/Section/AccountCredentials.d.ts +1 -1
  45. package/lib/cjs/components/UserProfileEdit/Section/AccountCredentials.js +1 -7
  46. package/lib/cjs/components/UserProfileEdit/Section/PublicInfo.d.ts +1 -1
  47. package/lib/cjs/components/UserProfileEdit/Section/PublicInfo.js +1 -6
  48. package/lib/cjs/components/UserProfileEdit/Section/Settings.d.ts +1 -1
  49. package/lib/cjs/components/UserProfileEdit/Section/Settings.js +1 -6
  50. package/lib/esm/components/ChangePicture/ChangePictureDialog/ChangePictureDialog.d.ts +1 -1
  51. package/lib/esm/components/ChangePicture/ChangePictureDialog/ChangePictureDialog.js +1 -6
  52. package/lib/esm/components/CommentObjectReply/CommentObjectReply.js +2 -3
  53. package/lib/esm/components/FeedObject/Activities/RelevantActivities/CommentActivity/CommentActivity.js +22 -13
  54. package/lib/esm/components/FeedObject/Poll/Poll.js +5 -8
  55. package/lib/esm/components/FeedObjectMediaPreview/FeedObjectMediaPreview.d.ts +2 -2
  56. package/lib/esm/components/FeedObjectMediaPreview/FeedObjectMediaPreview.js +5 -5
  57. package/lib/esm/components/IncubatorListWidget/CreateIncubatorDialog/CreateIncubatorDialog.d.ts +1 -1
  58. package/lib/esm/components/IncubatorListWidget/CreateIncubatorDialog/CreateIncubatorDialog.js +1 -6
  59. package/lib/esm/components/Notification/CollapsedFor/CollapsedFor.d.ts +2 -2
  60. package/lib/esm/components/Notification/CollapsedFor/CollapsedFor.js +2 -7
  61. package/lib/esm/components/Notification/Comment/Comment.d.ts +2 -2
  62. package/lib/esm/components/Notification/Comment/Comment.js +2 -7
  63. package/lib/esm/components/Notification/Contribution/Contribution.d.ts +2 -2
  64. package/lib/esm/components/Notification/Contribution/Contribution.js +2 -7
  65. package/lib/esm/components/Notification/ContributionFollow/ContributionFollow.d.ts +2 -2
  66. package/lib/esm/components/Notification/ContributionFollow/ContributionFollow.js +2 -7
  67. package/lib/esm/components/Notification/DeletedFor/DeletedFor.d.ts +2 -2
  68. package/lib/esm/components/Notification/DeletedFor/DeletedFor.js +2 -7
  69. package/lib/esm/components/Notification/IncubatorApproved/IncubatorApproved.d.ts +1 -1
  70. package/lib/esm/components/Notification/IncubatorApproved/IncubatorApproved.js +1 -6
  71. package/lib/esm/components/Notification/KindlyNoticeFlag/KindlyNoticeFlag.d.ts +2 -2
  72. package/lib/esm/components/Notification/KindlyNoticeFlag/KindlyNoticeFlag.js +2 -7
  73. package/lib/esm/components/Notification/KindlyNoticeFor/KindlyNoticeFor.d.ts +2 -2
  74. package/lib/esm/components/Notification/KindlyNoticeFor/KindlyNoticeFor.js +2 -7
  75. package/lib/esm/components/Notification/Mention/Mention.d.ts +2 -2
  76. package/lib/esm/components/Notification/Mention/Mention.js +2 -7
  77. package/lib/esm/components/Notification/PrivateMessage/PrivateMessage.d.ts +2 -2
  78. package/lib/esm/components/Notification/PrivateMessage/PrivateMessage.js +2 -7
  79. package/lib/esm/components/Notification/UndeletedFor/UndeletedFor.d.ts +2 -2
  80. package/lib/esm/components/Notification/UndeletedFor/UndeletedFor.js +2 -7
  81. package/lib/esm/components/Notification/UserBlocked/UserBlocked.d.ts +2 -2
  82. package/lib/esm/components/Notification/UserBlocked/UserBlocked.js +2 -7
  83. package/lib/esm/components/Notification/UserConnection/UserConnection.d.ts +2 -2
  84. package/lib/esm/components/Notification/UserConnection/UserConnection.js +2 -7
  85. package/lib/esm/components/Notification/UserFollow/UserFollow.d.ts +2 -2
  86. package/lib/esm/components/Notification/UserFollow/UserFollow.js +2 -7
  87. package/lib/esm/components/Notification/VoteUp/VoteUp.d.ts +2 -2
  88. package/lib/esm/components/Notification/VoteUp/VoteUp.js +2 -7
  89. package/lib/esm/components/PollSuggestionWidget/PollSnippet/PollSnippet.d.ts +2 -2
  90. package/lib/esm/components/PollSuggestionWidget/PollSnippet/PollSnippet.js +2 -7
  91. package/lib/esm/components/UserProfileEdit/Section/Account.d.ts +1 -1
  92. package/lib/esm/components/UserProfileEdit/Section/Account.js +2 -7
  93. package/lib/esm/components/UserProfileEdit/Section/AccountCredentials.d.ts +1 -1
  94. package/lib/esm/components/UserProfileEdit/Section/AccountCredentials.js +1 -7
  95. package/lib/esm/components/UserProfileEdit/Section/PublicInfo.d.ts +1 -1
  96. package/lib/esm/components/UserProfileEdit/Section/PublicInfo.js +1 -6
  97. package/lib/esm/components/UserProfileEdit/Section/Settings.d.ts +1 -1
  98. package/lib/esm/components/UserProfileEdit/Section/Settings.js +1 -6
  99. package/lib/umd/react-ui.js +1 -1
  100. package/package.json +4 -4
@@ -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;
@@ -5,7 +5,6 @@ import { Avatar, Box, Button, Stack, Typography } from '@mui/material';
5
5
  import { Link, SCRoutes, useSCRouting } from '@selfcommunity/react-core';
6
6
  import { FormattedMessage } from 'react-intl';
7
7
  import classNames from 'classnames';
8
- import { useThemeProps } from '@mui/system';
9
8
  import { getContributionRouteName, getRouteData } from '../../../utils/contribution';
10
9
  import DateTimeAgo from '../../../shared/DateTimeAgo';
11
10
  import BaseItem from '../../../shared/BaseItem';
@@ -45,14 +44,10 @@ const Root = styled(BaseItem, {
45
44
  |title|.SCPollSuggestionWidget-title|Styles applied to the title element.|
46
45
  |activityAt|.SCPollSuggestionWidget-activity-at|Styles applied to activity section.|
47
46
 
48
- * @param inProps
47
+ * @param props
49
48
  */
50
- export default function PollSnippet(inProps) {
49
+ export default function PollSnippet(props) {
51
50
  // PROPS
52
- const props = useThemeProps({
53
- props: inProps,
54
- name: PREFIX
55
- });
56
51
  const { feedObj = null, className = null, autoHide = false } = props, rest = __rest(props, ["feedObj", "className", "autoHide"]);
57
52
  // CONTEXT
58
53
  const scRoutingContext = useSCRouting();
@@ -52,4 +52,4 @@ export interface AccountProps {
52
52
  */
53
53
  [p: string]: any;
54
54
  }
55
- export default function Account(inProps: AccountProps): JSX.Element;
55
+ export default function Account(props: AccountProps): JSX.Element;
@@ -3,7 +3,6 @@ import React, { useState } from 'react';
3
3
  import { styled } from '@mui/material/styles';
4
4
  import { Box, Typography } from '@mui/material';
5
5
  import classNames from 'classnames';
6
- import { useThemeProps } from '@mui/system';
7
6
  import { defineMessages, FormattedMessage, useIntl } from 'react-intl';
8
7
  import ConfirmDialog from '../../../shared/ConfirmDialog/ConfirmDialog';
9
8
  import UserSocialAssociation from '../../UserSocialAssociation';
@@ -40,14 +39,10 @@ const Root = styled(Box, {
40
39
  name: PREFIX,
41
40
  slot: 'AccountRoot'
42
41
  })(() => ({}));
43
- export default function Account(inProps) {
44
- // PROPS
45
- const props = useThemeProps({
46
- props: inProps,
47
- name: PREFIX
48
- });
42
+ export default function Account(props) {
49
43
  // CONTEXT
50
44
  const scUserContext = useSCUser();
45
+ // PROPS
51
46
  const { className = null, handleAssociationCreate, showSocialAccountSection = true, showCredentialsSection = false, AccountCredentialProps = {}, showLanguageSwitcher = false, LanguageSwitcherProps = {}, startActions = null, endActions = null } = props, rest = __rest(props, ["className", "handleAssociationCreate", "showSocialAccountSection", "showCredentialsSection", "AccountCredentialProps", "showLanguageSwitcher", "LanguageSwitcherProps", "startActions", "endActions"]);
52
47
  // STATE
53
48
  const [provider, setProvider] = useState(null);
@@ -20,4 +20,4 @@ export interface AccountCredentialProps {
20
20
  */
21
21
  [p: string]: any;
22
22
  }
23
- export default function AccountCredentials(inProps: AccountCredentialProps): JSX.Element;
23
+ export default function AccountCredentials(props: AccountCredentialProps): JSX.Element;
@@ -3,7 +3,6 @@ import React, { useState } from 'react';
3
3
  import { styled } from '@mui/material/styles';
4
4
  import { Box, Button, CircularProgress, FormGroup, IconButton, InputAdornment, Popover, Typography } from '@mui/material';
5
5
  import classNames from 'classnames';
6
- import { useThemeProps } from '@mui/system';
7
6
  import { defineMessages, FormattedMessage, useIntl } from 'react-intl';
8
7
  import { formatHttpErrorCode, UserService } from '@selfcommunity/api-services';
9
8
  import { SCOPE_SC_UI } from '../../../constants/Errors';
@@ -44,14 +43,9 @@ const PasswordDialogRoot = styled(BaseDialog, {
44
43
  name: PREFIX,
45
44
  slot: 'PasswordDialogRoot'
46
45
  })(() => ({}));
47
- export default function AccountCredentials(inProps) {
46
+ export default function AccountCredentials(props) {
48
47
  var _a;
49
48
  // PROPS
50
- const props = useThemeProps({
51
- props: inProps,
52
- name: PREFIX
53
- });
54
- // CONTEXT
55
49
  const { className = null, user, skipEmailValidation = false } = props, rest = __rest(props, ["className", "user", "skipEmailValidation"]);
56
50
  const { enqueueSnackbar } = useSnackbar();
57
51
  // STATE
@@ -39,4 +39,4 @@ export interface PublicInfoProps {
39
39
  */
40
40
  [p: string]: any;
41
41
  }
42
- export default function PublicInfo(inProps: PublicInfoProps): JSX.Element;
42
+ export default function PublicInfo(props: PublicInfoProps): JSX.Element;
@@ -13,7 +13,6 @@ import { DatePicker, LocalizationProvider } from '@mui/x-date-pickers';
13
13
  import { AdapterDateFns } from '@mui/x-date-pickers/AdapterDateFns';
14
14
  import UsernameTextField from '../../../shared/UsernameTextField';
15
15
  import { useDeepCompareEffectNoCheck } from 'use-deep-compare-effect';
16
- import { useThemeProps } from '@mui/system';
17
16
  import { SCUserProfileFields } from '../../../types';
18
17
  import MetadataField from '../../../shared/MetadataField';
19
18
  import { SCOPE_SC_UI } from '../../../constants/Errors';
@@ -48,12 +47,8 @@ const Root = styled(Box, {
48
47
  })(() => ({}));
49
48
  const GENDERS = ['Male', 'Female', 'Unspecified'];
50
49
  const DATEPICKER_MINDATE = new Date(1000, 1, 1);
51
- export default function PublicInfo(inProps) {
50
+ export default function PublicInfo(props) {
52
51
  // PROPS
53
- const props = useThemeProps({
54
- props: inProps,
55
- name: PREFIX
56
- });
57
52
  const { id = null, className = null, fields = [...DEFAULT_FIELDS], onEditSuccess = null, onEditFailure = null, startActions = null, endActions = null } = props, rest = __rest(props, ["id", "className", "fields", "onEditSuccess", "onEditFailure", "startActions", "endActions"]);
58
53
  // CONTEXT
59
54
  const scContext = useSCContext();
@@ -35,4 +35,4 @@ export interface SettingsProps {
35
35
  */
36
36
  [p: string]: any;
37
37
  }
38
- export default function Settings(inProps: SettingsProps): JSX.Element;
38
+ export default function Settings(props: SettingsProps): JSX.Element;
@@ -7,7 +7,6 @@ import { SCNotification, useSCUser } from '@selfcommunity/react-core';
7
7
  import classNames from 'classnames';
8
8
  import SettingsSkeleton from './SettingsSkeleton';
9
9
  import { useSnackbar } from 'notistack';
10
- import { useThemeProps } from '@mui/system';
11
10
  import { DEFAULT_SETTINGS } from '../../../constants/UserProfile';
12
11
  import { SCUserProfileSettings } from '../../../types';
13
12
  import { PREFIX } from '../constants';
@@ -19,12 +18,8 @@ const Root = styled(Box, {
19
18
  name: PREFIX,
20
19
  slot: 'SettingsRoot'
21
20
  })(() => ({}));
22
- export default function Settings(inProps) {
21
+ export default function Settings(props) {
23
22
  // PROPS
24
- const props = useThemeProps({
25
- props: inProps,
26
- name: PREFIX
27
- });
28
23
  const { id = null, className = null, settings = [...DEFAULT_SETTINGS], onEditSuccess = null, startActions = null, endActions = null } = props, rest = __rest(props, ["id", "className", "settings", "onEditSuccess", "startActions", "endActions"]);
29
24
  // CONTEXT
30
25
  const scUserContext = useSCUser();