@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
@@ -6,4 +6,4 @@ export interface CPDialogProps extends BaseDialogProps {
6
6
  */
7
7
  onChange?: (avatar: any) => void;
8
8
  }
9
- export default function ChangePictureDialog(inProps: CPDialogProps): JSX.Element;
9
+ export default function ChangePictureDialog(props: CPDialogProps): JSX.Element;
@@ -14,7 +14,6 @@ const BaseDialog_1 = tslib_1.__importDefault(require("../../../shared/BaseDialog
14
14
  const ConfirmDialog_1 = tslib_1.__importDefault(require("../../../shared/ConfirmDialog/ConfirmDialog"));
15
15
  const classnames_1 = tslib_1.__importDefault(require("classnames"));
16
16
  const CircularProgress_1 = tslib_1.__importDefault(require("@mui/material/CircularProgress"));
17
- const system_1 = require("@mui/system");
18
17
  const seamless_scroll_polyfill_1 = require("seamless-scroll-polyfill");
19
18
  const Errors_1 = require("../../../constants/Errors");
20
19
  const utils_1 = require("@selfcommunity/utils");
@@ -30,12 +29,8 @@ const Root = (0, styles_1.styled)(BaseDialog_1.default, {
30
29
  name: constants_1.PREFIX,
31
30
  slot: 'DialogRoot'
32
31
  })(() => ({}));
33
- function ChangePictureDialog(inProps) {
32
+ function ChangePictureDialog(props) {
34
33
  //PROPS
35
- const props = (0, system_1.useThemeProps)({
36
- props: inProps,
37
- name: constants_1.PREFIX
38
- });
39
34
  const { open, onChange, onClose, className } = props, rest = tslib_1.__rest(props, ["open", "onChange", "onClose", "className"]);
40
35
  //CONTEXT
41
36
  const scUserContext = (0, react_1.useContext)(react_core_1.SCUserContext);
@@ -10,9 +10,9 @@ const react_core_1 = require("@selfcommunity/react-core");
10
10
  const Editor_1 = tslib_1.__importDefault(require("../Editor"));
11
11
  const classnames_1 = tslib_1.__importDefault(require("classnames"));
12
12
  const lab_1 = require("@mui/lab");
13
- const system_1 = require("@mui/system");
14
13
  const BaseItem_1 = tslib_1.__importDefault(require("../../shared/BaseItem"));
15
14
  const UserAvatar_1 = tslib_1.__importDefault(require("../../shared/UserAvatar"));
15
+ const system_1 = require("@mui/system");
16
16
  const PREFIX = 'SCCommentObjectReply';
17
17
  const classes = {
18
18
  root: `${PREFIX}-root`,
@@ -26,8 +26,7 @@ const classes = {
26
26
  };
27
27
  const Root = (0, styles_1.styled)(BaseItem_1.default, {
28
28
  name: PREFIX,
29
- slot: 'Root',
30
- overridesResolver: (props, styles) => styles.root
29
+ slot: 'Root'
31
30
  })(() => ({}));
32
31
  /**
33
32
  *> API documentation for the Community-JS Comment Object Reply component. Learn about the available props and the CSS API.
@@ -11,7 +11,6 @@ const classnames_1 = tslib_1.__importDefault(require("classnames"));
11
11
  const BaseItem_1 = tslib_1.__importDefault(require("../../../../../shared/BaseItem"));
12
12
  const UserDeletedSnackBar_1 = tslib_1.__importDefault(require("../../../../../shared/UserDeletedSnackBar"));
13
13
  const contribution_1 = require("../../../../../utils/contribution");
14
- const Feed_1 = require("../../../../../constants/Feed");
15
14
  const constants_1 = require("../../../constants");
16
15
  const messages = (0, react_intl_1.defineMessages)({
17
16
  comment: {
@@ -39,19 +38,29 @@ function CommentRelevantActivity(props) {
39
38
  // INTL
40
39
  const intl = (0, react_intl_1.useIntl)();
41
40
  // RENDER
42
- const summaryHtmlTruncated = 'summary_truncated' in activityObject.comment
43
- ? activityObject.comment.summary_truncated
44
- : activityObject.comment.html.length >= Feed_1.MAX_SUMMARY_LENGTH;
45
- const commentHtml = 'summary_html' in activityObject.comment ? activityObject.comment.summary_html : activityObject.comment.summary;
46
- const summaryHtml = (0, contribution_1.getContributionHtml)(commentHtml, scRoutingContext.url);
41
+ // const summaryHtmlTruncated =
42
+ // 'summary_truncated' in activityObject.comment
43
+ // ? activityObject.comment.summary_truncated
44
+ // : activityObject.comment.html.length >= MAX_SUMMARY_LENGTH;
45
+ // const commentHtml = 'summary_html' in activityObject.comment ? activityObject.comment.summary_html : activityObject.comment.summary;
46
+ // const summaryHtml = getContributionHtml(commentHtml, scRoutingContext.url);
47
47
  return (react_1.default.createElement(react_1.default.Fragment, null,
48
48
  react_1.default.createElement(Root, Object.assign({}, rest, { className: (0, classnames_1.default)(classes.root, className), image: react_1.default.createElement(react_core_1.Link, Object.assign({}, (!activityObject.author.deleted && { to: scRoutingContext.url(react_core_1.SCRoutes.USER_PROFILE_ROUTE_NAME, activityObject.author) }), { onClick: activityObject.author.deleted ? () => setOpenAlert(true) : null }),
49
49
  react_1.default.createElement(material_1.Avatar, { alt: activityObject.author.username, variant: "circular", src: activityObject.author.avatar, className: classes.avatar })), primary: react_1.default.createElement(react_1.default.Fragment, null, intl.formatMessage(messages.comment, {
50
50
  username: (react_1.default.createElement(react_core_1.Link, Object.assign({}, (!activityObject.author.deleted && { to: scRoutingContext.url(react_core_1.SCRoutes.USER_PROFILE_ROUTE_NAME, activityObject.author) }), { onClick: activityObject.author.deleted ? () => setOpenAlert(true) : null, className: classes.username }), activityObject.author.username)),
51
- comment: (react_1.default.createElement(react_1.default.Fragment, null,
52
- react_1.default.createElement(material_1.Typography, { variant: "body2", gutterBottom: true, dangerouslySetInnerHTML: { __html: summaryHtml } }),
53
- summaryHtmlTruncated && (react_1.default.createElement(react_core_1.Link, { to: scRoutingContext.url(react_core_1.SCRoutes.COMMENT_ROUTE_NAME, (0, contribution_1.getRouteData)(activityObject.comment)), className: classes.showMoreContent },
54
- react_1.default.createElement(react_intl_1.FormattedMessage, { id: "ui.commentObject.showMore", defaultMessage: "ui.commentObject.showMore" })))))
51
+ link: (...chunks) => react_1.default.createElement(react_core_1.Link, { to: scRoutingContext.url(react_core_1.SCRoutes.COMMENT_ROUTE_NAME, (0, contribution_1.getRouteData)(activityObject.comment)) }, chunks)
52
+ // comment: (
53
+ // <>
54
+ // <Typography variant="body2" gutterBottom dangerouslySetInnerHTML={{__html: summaryHtml}} />
55
+ // {summaryHtmlTruncated && (
56
+ // <Link
57
+ // to={scRoutingContext.url(SCRoutes.COMMENT_ROUTE_NAME, getRouteData(activityObject.comment))}
58
+ // className={classes.showMoreContent}>
59
+ // <FormattedMessage id="ui.commentObject.showMore" defaultMessage="ui.commentObject.showMore" />
60
+ // </Link>
61
+ // )}
62
+ // </>
63
+ // )
55
64
  })), secondary: react_1.default.createElement(DateTimeAgo_1.default, { date: activityObject.active_at }) })),
56
65
  openAlert && react_1.default.createElement(UserDeletedSnackBar_1.default, { open: openAlert, handleClose: () => setOpenAlert(false) })));
57
66
  }
@@ -79,17 +79,14 @@ function PollObject(props) {
79
79
  setVotes((prevVotes) => prevVotes + 1);
80
80
  }
81
81
  else {
82
- let isVoted = false;
83
82
  setChoices((prevChoices) => {
84
- return prevChoices.map((choice) => {
85
- isVoted = isVoted || choice.voted;
86
- return Object.assign({}, choice, {
87
- voted: choice.id === id ? true : false,
88
- vote_count: choice.id === id ? choice.vote_count + 1 : choice.vote_count > 0 && choice.voted ? choice.vote_count - 1 : choice.vote_count
89
- });
83
+ const updatedChoices = prevChoices.map((choice) => {
84
+ return Object.assign(Object.assign({}, choice), { voted: choice.id === id, vote_count: choice.id === id ? choice.vote_count + 1 : choice.vote_count > 0 && choice.voted ? choice.vote_count - 1 : choice.vote_count });
90
85
  });
86
+ const newVotes = updatedChoices.reduce((totalVotes, choice) => totalVotes + choice.vote_count, 0);
87
+ setVotes(newVotes);
88
+ return updatedChoices;
91
89
  });
92
- !isVoted && setVotes((prevVotes) => prevVotes + 1);
93
90
  }
94
91
  };
95
92
  /**
@@ -23,13 +23,13 @@ export interface FeedObjectMediaPreviewProps extends BoxProps {
23
23
  import {FeedObjectMediaPreview} from '@selfcommunity/react-ui';
24
24
  ```
25
25
  #### Component Name
26
- The name `SCFeedObject-media-preview-root` can be used when providing style overrides in the theme.
26
+ The name `SCFeedObjectMediaPreview` can be used when providing style overrides in the theme.
27
27
 
28
28
  #### CSS
29
29
 
30
30
  |Rule Name|Global class|Description|
31
31
  |---|---|---|
32
- |root|.SCFeedObject-media-preview-root|Styles applied to the root element.|
32
+ |root|.SCFeedObjectMediaPreview-root|Styles applied to the root element.|
33
33
 
34
34
 
35
35
  * @param inProps
@@ -8,13 +8,13 @@ const react_core_1 = require("@selfcommunity/react-core");
8
8
  const system_1 = require("@mui/system");
9
9
  const Media_1 = require("../../shared/Media");
10
10
  const classnames_1 = tslib_1.__importDefault(require("classnames"));
11
- const constants_1 = require("../FeedObject/constants");
11
+ const PREFIX = 'SCFeedObjectMediaPreview';
12
12
  const classes = {
13
- root: `${constants_1.PREFIX}-media-preview-root`
13
+ root: `${PREFIX}-root`
14
14
  };
15
15
  const Root = (0, styles_1.styled)(Box_1.default, {
16
- name: constants_1.PREFIX,
17
- slot: 'MediaPreviewRoot'
16
+ name: PREFIX,
17
+ slot: 'Root'
18
18
  })(() => ({}));
19
19
  /**
20
20
  * > API documentation for the Community-JS FeedObjectMediaPreview component. Learn about the available props and the CSS API.
@@ -27,13 +27,13 @@ const Root = (0, styles_1.styled)(Box_1.default, {
27
27
  import {FeedObjectMediaPreview} from '@selfcommunity/react-ui';
28
28
  ```
29
29
  #### Component Name
30
- The name `SCFeedObject-media-preview-root` can be used when providing style overrides in the theme.
30
+ The name `SCFeedObjectMediaPreview` can be used when providing style overrides in the theme.
31
31
 
32
32
  #### CSS
33
33
 
34
34
  |Rule Name|Global class|Description|
35
35
  |---|---|---|
36
- |root|.SCFeedObject-media-preview-root|Styles applied to the root element.|
36
+ |root|.SCFeedObjectMediaPreview-root|Styles applied to the root element.|
37
37
 
38
38
 
39
39
  * @param inProps
@@ -42,7 +42,7 @@ exports.default = (inProps) => {
42
42
  //PROPS
43
43
  const props = (0, system_1.useThemeProps)({
44
44
  props: inProps,
45
- name: constants_1.PREFIX
45
+ name: PREFIX
46
46
  });
47
47
  const { className, medias, mediaObjectTypes = [Media_1.File, Media_1.Link, Media_1.Share] } = props, rest = tslib_1.__rest(props, ["className", "medias", "mediaObjectTypes"]);
48
48
  const { handleMediaClick } = (0, react_core_1.useSCMediaClick)();
@@ -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;
@@ -10,7 +10,6 @@ const utils_1 = require("@selfcommunity/utils");
10
10
  const react_core_1 = require("@selfcommunity/react-core");
11
11
  const BaseDialog_1 = tslib_1.__importDefault(require("../../../shared/BaseDialog"));
12
12
  const classnames_1 = tslib_1.__importDefault(require("classnames"));
13
- const system_1 = require("@mui/system");
14
13
  const Errors_1 = require("../../../constants/Errors");
15
14
  const lab_1 = require("@mui/lab");
16
15
  const constants_1 = require("../constants");
@@ -36,12 +35,8 @@ const Root = (0, styles_1.styled)(BaseDialog_1.default, {
36
35
  name: constants_1.PREFIX,
37
36
  slot: 'CreateDialogRoot'
38
37
  })(() => ({}));
39
- function CreateIncubatorDialog(inProps) {
38
+ function CreateIncubatorDialog(props) {
40
39
  // PROPS
41
- const props = (0, system_1.useThemeProps)({
42
- props: inProps,
43
- name: constants_1.PREFIX
44
- });
45
40
  const { className, open, onClose } = props, rest = tslib_1.__rest(props, ["className", "open", "onClose"]);
46
41
  // CONTEXT
47
42
  const scUserContext = (0, react_core_1.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;
@@ -12,7 +12,6 @@ const contribution_1 = require("../../../utils/contribution");
12
12
  const DateTimeAgo_1 = tslib_1.__importDefault(require("../../../shared/DateTimeAgo"));
13
13
  const classnames_1 = tslib_1.__importDefault(require("classnames"));
14
14
  const types_1 = require("../../../types");
15
- const system_1 = require("@mui/system");
16
15
  const NotificationItem_1 = tslib_1.__importDefault(require("../../../shared/NotificationItem"));
17
16
  const constants_1 = require("../constants");
18
17
  const messages = (0, react_intl_1.defineMessages)({
@@ -52,15 +51,11 @@ const Root = (0, styles_1.styled)(NotificationItem_1.default, {
52
51
  })(() => ({}));
53
52
  /**
54
53
  * This component render the content of the notification of type collapsed for
55
- * @param inProps
56
54
  * @constructor
55
+ * @param props
57
56
  */
58
- function CollapsedForNotification(inProps) {
57
+ function CollapsedForNotification(props) {
59
58
  // PROPS
60
- const props = (0, system_1.useThemeProps)({
61
- props: inProps,
62
- name: constants_1.PREFIX
63
- });
64
59
  const { notificationObject, id = `n_${props.notificationObject['sid']}`, template = types_1.SCNotificationObjectTemplateType.DETAIL, className } = props, rest = tslib_1.__rest(props, ["notificationObject", "id", "template", "className"]);
65
60
  // ROUTING
66
61
  const scRoutingContext = (0, react_core_1.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;
@@ -12,7 +12,6 @@ const DateTimeAgo_1 = tslib_1.__importDefault(require("../../../shared/DateTimeA
12
12
  const contribution_1 = require("../../../utils/contribution");
13
13
  const classnames_1 = tslib_1.__importDefault(require("classnames"));
14
14
  const types_2 = require("../../../types");
15
- const system_1 = require("@mui/system");
16
15
  const NotificationItem_1 = tslib_1.__importDefault(require("../../../shared/NotificationItem"));
17
16
  const VoteButton_1 = tslib_1.__importDefault(require("../../VoteButton"));
18
17
  const UserDeletedSnackBar_1 = tslib_1.__importDefault(require("../../../shared/UserDeletedSnackBar"));
@@ -43,15 +42,11 @@ const Root = (0, styles_1.styled)(NotificationItem_1.default, {
43
42
  })(() => ({}));
44
43
  /**
45
44
  * This component render the content of the notification of type comment/nested comment
46
- * @param inProps
45
+ * @param props
47
46
  * @constructor
48
47
  */
49
- function CommentNotification(inProps) {
48
+ function CommentNotification(props) {
50
49
  // PROPS
51
- const props = (0, system_1.useThemeProps)({
52
- props: inProps,
53
- name: constants_1.PREFIX
54
- });
55
50
  const { notificationObject, onVote, id = `n_${props.notificationObject['sid']}`, template = types_2.SCNotificationObjectTemplateType.DETAIL, className } = props, rest = tslib_1.__rest(props, ["notificationObject", "onVote", "id", "template", "className"]);
56
51
  // STATE
57
52
  const [openAlert, setOpenAlert] = (0, react_1.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;
@@ -11,7 +11,6 @@ const DateTimeAgo_1 = tslib_1.__importDefault(require("../../../shared/DateTimeA
11
11
  const classnames_1 = tslib_1.__importDefault(require("classnames"));
12
12
  const types_2 = require("../../../types");
13
13
  const contribution_1 = require("../../../utils/contribution");
14
- const system_1 = require("@mui/system");
15
14
  const NotificationItem_1 = tslib_1.__importDefault(require("../../../shared/NotificationItem"));
16
15
  const Bullet_1 = tslib_1.__importDefault(require("../../../shared/Bullet"));
17
16
  const VoteButton_1 = tslib_1.__importDefault(require("../../VoteButton"));
@@ -51,15 +50,11 @@ const Root = (0, styles_1.styled)(NotificationItem_1.default, {
51
50
  })(() => ({}));
52
51
  /**
53
52
  * This component render the content of the notification of type follow (contribution)
54
- * @param inProps
55
53
  * @constructor
54
+ * @param props
56
55
  */
57
- function ContributionNotification(inProps) {
56
+ function ContributionNotification(props) {
58
57
  // PROPS
59
- const props = (0, system_1.useThemeProps)({
60
- props: inProps,
61
- name: constants_1.PREFIX
62
- });
63
58
  const { notificationObject, onVote, id = `n_${props.notificationObject['sid']}`, className, template = types_2.SCNotificationObjectTemplateType.DETAIL } = props, rest = tslib_1.__rest(props, ["notificationObject", "onVote", "id", "className", "template"]);
64
59
  // ROUTING
65
60
  const scRoutingContext = (0, react_core_1.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;
@@ -10,7 +10,6 @@ const DateTimeAgo_1 = tslib_1.__importDefault(require("../../../shared/DateTimeA
10
10
  const classnames_1 = tslib_1.__importDefault(require("classnames"));
11
11
  const types_1 = require("../../../types");
12
12
  const contribution_1 = require("../../../utils/contribution");
13
- const system_1 = require("@mui/system");
14
13
  const NotificationItem_1 = tslib_1.__importDefault(require("../../../shared/NotificationItem"));
15
14
  const UserDeletedSnackBar_1 = tslib_1.__importDefault(require("../../../shared/UserDeletedSnackBar"));
16
15
  const UserAvatar_1 = tslib_1.__importDefault(require("../../../shared/UserAvatar"));
@@ -35,15 +34,11 @@ const Root = (0, styles_1.styled)(NotificationItem_1.default, {
35
34
  })(() => ({}));
36
35
  /**
37
36
  * This component render the content of the notification of type follow (contribution)
38
- * @param inProps
39
37
  * @constructor
38
+ * @param props
40
39
  */
41
- function ContributionFollowNotification(inProps) {
40
+ function ContributionFollowNotification(props) {
42
41
  // PROPS
43
- const props = (0, system_1.useThemeProps)({
44
- props: inProps,
45
- name: constants_1.PREFIX
46
- });
47
42
  const { notificationObject, id = `n_${props.notificationObject['sid']}`, className, template = types_1.SCNotificationObjectTemplateType.DETAIL } = props, rest = tslib_1.__rest(props, ["notificationObject", "id", "className", "template"]);
48
43
  // CONTEXT
49
44
  const scRoutingContext = (0, react_core_1.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;
@@ -13,7 +13,6 @@ const utils_1 = require("@selfcommunity/utils");
13
13
  const react_core_1 = require("@selfcommunity/react-core");
14
14
  const classnames_1 = tslib_1.__importDefault(require("classnames"));
15
15
  const types_1 = require("../../../types");
16
- const system_1 = require("@mui/system");
17
16
  const NotificationItem_1 = tslib_1.__importDefault(require("../../../shared/NotificationItem"));
18
17
  const constants_1 = require("../constants");
19
18
  const messages = (0, react_intl_1.defineMessages)({
@@ -54,15 +53,11 @@ const Root = (0, styles_1.styled)(NotificationItem_1.default, {
54
53
  })(() => ({}));
55
54
  /**
56
55
  * This component render the content of the notification of type deleted for
57
- * @param inProps
58
56
  * @constructor
57
+ * @param props
59
58
  */
60
- function DeletedForNotification(inProps) {
59
+ function DeletedForNotification(props) {
61
60
  // PROPS
62
- const props = (0, system_1.useThemeProps)({
63
- props: inProps,
64
- name: constants_1.PREFIX
65
- });
66
61
  const { notificationObject = null, id = `n_${props.notificationObject['feed_serialization_id']}`, template = types_1.SCNotificationObjectTemplateType.DETAIL, className } = props, rest = tslib_1.__rest(props, ["notificationObject", "id", "template", "className"]);
67
62
  // ROUTING
68
63
  const scRoutingContext = (0, react_core_1.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;
@@ -10,7 +10,6 @@ const DateTimeAgo_1 = tslib_1.__importDefault(require("../../../shared/DateTimeA
10
10
  const NewChip_1 = tslib_1.__importDefault(require("../../../shared/NewChip/NewChip"));
11
11
  const classnames_1 = tslib_1.__importDefault(require("classnames"));
12
12
  const types_1 = require("../../../types");
13
- const system_1 = require("@mui/system");
14
13
  const NotificationItem_1 = tslib_1.__importDefault(require("../../../shared/NotificationItem"));
15
14
  const constants_1 = require("../constants");
16
15
  const messages = (0, react_intl_1.defineMessages)({
@@ -30,12 +29,8 @@ const Root = (0, styles_1.styled)(NotificationItem_1.default, {
30
29
  name: constants_1.PREFIX,
31
30
  slot: 'IncubatorApprovedRoot'
32
31
  })(() => ({}));
33
- function IncubatorApprovedNotification(inProps) {
32
+ function IncubatorApprovedNotification(props) {
34
33
  // PROPS
35
- const props = (0, system_1.useThemeProps)({
36
- props: inProps,
37
- name: constants_1.PREFIX
38
- });
39
34
  const { notificationObject = null, id = `n_${props.notificationObject['feed_serialization_id']}`, template = types_1.SCNotificationObjectTemplateType.DETAIL, className } = props, rest = tslib_1.__rest(props, ["notificationObject", "id", "template", "className"]);
40
35
  // ROUTING
41
36
  const scRoutingContext = (0, react_core_1.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;
@@ -12,7 +12,6 @@ const contribution_1 = require("../../../utils/contribution");
12
12
  const DateTimeAgo_1 = tslib_1.__importDefault(require("../../../shared/DateTimeAgo"));
13
13
  const classnames_1 = tslib_1.__importDefault(require("classnames"));
14
14
  const types_1 = require("../../../types");
15
- const system_1 = require("@mui/system");
16
15
  const NotificationItem_1 = tslib_1.__importDefault(require("../../../shared/NotificationItem"));
17
16
  const constants_1 = require("../constants");
18
17
  const messages = (0, react_intl_1.defineMessages)({
@@ -36,15 +35,11 @@ const Root = (0, styles_1.styled)(NotificationItem_1.default, {
36
35
  })(() => ({}));
37
36
  /**
38
37
  * This component render the content of the notification of type kindly notice flag
39
- * @param inProps
40
38
  * @constructor
39
+ * @param props
41
40
  */
42
- function KindlyNoticeFlagNotification(inProps) {
41
+ function KindlyNoticeFlagNotification(props) {
43
42
  // PROPS
44
- const props = (0, system_1.useThemeProps)({
45
- props: inProps,
46
- name: constants_1.PREFIX
47
- });
48
43
  const { notificationObject, id = `n_${props.notificationObject['sid']}`, className, template = types_1.SCNotificationObjectTemplateType.DETAIL } = props, rest = tslib_1.__rest(props, ["notificationObject", "id", "className", "template"]);
49
44
  // ROUTING
50
45
  const scRoutingContext = (0, react_core_1.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;
@@ -12,7 +12,6 @@ const contribution_1 = require("../../../utils/contribution");
12
12
  const DateTimeAgo_1 = tslib_1.__importDefault(require("../../../shared/DateTimeAgo"));
13
13
  const classnames_1 = tslib_1.__importDefault(require("classnames"));
14
14
  const types_1 = require("../../../types");
15
- const system_1 = require("@mui/system");
16
15
  const NotificationItem_1 = tslib_1.__importDefault(require("../../../shared/NotificationItem"));
17
16
  const constants_1 = require("../constants");
18
17
  const messages = (0, react_intl_1.defineMessages)({
@@ -56,15 +55,11 @@ const Root = (0, styles_1.styled)(NotificationItem_1.default, {
56
55
  })(() => ({}));
57
56
  /**
58
57
  * This component render the content of the notification of type kindly notice for
59
- * @param inProps
60
58
  * @constructor
59
+ * @param props
61
60
  */
62
- function KindlyNoticeForNotification(inProps) {
61
+ function KindlyNoticeForNotification(props) {
63
62
  // PROPS
64
- const props = (0, system_1.useThemeProps)({
65
- props: inProps,
66
- name: constants_1.PREFIX
67
- });
68
63
  const { notificationObject, id = `n_${props.notificationObject['sid']}`, className, template = types_1.SCNotificationObjectTemplateType.DETAIL } = props, rest = tslib_1.__rest(props, ["notificationObject", "id", "className", "template"]);
69
64
  // ROUTING
70
65
  const scRoutingContext = (0, react_core_1.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;
@@ -10,7 +10,6 @@ const contribution_1 = require("../../../utils/contribution");
10
10
  const DateTimeAgo_1 = tslib_1.__importDefault(require("../../../shared/DateTimeAgo"));
11
11
  const classnames_1 = tslib_1.__importDefault(require("classnames"));
12
12
  const types_1 = require("../../../types");
13
- const system_1 = require("@mui/system");
14
13
  const NotificationItem_1 = tslib_1.__importDefault(require("../../../shared/NotificationItem"));
15
14
  const UserDeletedSnackBar_1 = tslib_1.__importDefault(require("../../../shared/UserDeletedSnackBar"));
16
15
  const UserAvatar_1 = tslib_1.__importDefault(require("../../../shared/UserAvatar"));
@@ -35,15 +34,11 @@ const Root = (0, styles_1.styled)(NotificationItem_1.default, {
35
34
  })(() => ({}));
36
35
  /**
37
36
  * This component render the content of the notification of type mention
38
- * @param inProps
39
37
  * @constructor
38
+ * @param props
40
39
  */
41
- function MentionNotification(inProps) {
40
+ function MentionNotification(props) {
42
41
  // PROPS
43
- const props = (0, system_1.useThemeProps)({
44
- props: inProps,
45
- name: constants_1.PREFIX
46
- });
47
42
  const { notificationObject, id = `n_${props.notificationObject['sid']}`, className, template = types_1.SCNotificationObjectTemplateType.DETAIL } = props, rest = tslib_1.__rest(props, ["notificationObject", "id", "className", "template"]);
48
43
  // CONTEXT
49
44
  const scRoutingContext = (0, react_core_1.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;
@@ -9,7 +9,6 @@ const react_intl_1 = require("react-intl");
9
9
  const DateTimeAgo_1 = tslib_1.__importDefault(require("../../../shared/DateTimeAgo"));
10
10
  const classnames_1 = tslib_1.__importDefault(require("classnames"));
11
11
  const types_1 = require("../../../types");
12
- const system_1 = require("@mui/system");
13
12
  const NotificationItem_1 = tslib_1.__importDefault(require("../../../shared/NotificationItem"));
14
13
  const lab_1 = require("@mui/lab");
15
14
  const UserDeletedSnackBar_1 = tslib_1.__importDefault(require("../../../shared/UserDeletedSnackBar"));
@@ -38,15 +37,11 @@ const Root = (0, styles_1.styled)(NotificationItem_1.default, {
38
37
  })(() => ({}));
39
38
  /**
40
39
  * This component render the content of the notification of type private message
41
- * @param inProps
42
40
  * @constructor
41
+ * @param props
43
42
  */
44
- function PrivateMessageNotification(inProps) {
43
+ function PrivateMessageNotification(props) {
45
44
  // PROPS
46
- const props = (0, system_1.useThemeProps)({
47
- props: inProps,
48
- name: constants_1.PREFIX
49
- });
50
45
  const { notificationObject, id = `n_${props.notificationObject['sid']}`, className, template = types_1.SCNotificationObjectTemplateType.DETAIL } = props, rest = tslib_1.__rest(props, ["notificationObject", "id", "className", "template"]);
51
46
  // CONTEXT
52
47
  const scRoutingContext = (0, react_core_1.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;
@@ -11,7 +11,6 @@ const contribution_1 = require("../../../utils/contribution");
11
11
  const DateTimeAgo_1 = tslib_1.__importDefault(require("../../../shared/DateTimeAgo"));
12
12
  const classnames_1 = tslib_1.__importDefault(require("classnames"));
13
13
  const types_1 = require("../../../types");
14
- const system_1 = require("@mui/system");
15
14
  const NotificationItem_1 = tslib_1.__importDefault(require("../../../shared/NotificationItem"));
16
15
  const constants_1 = require("../constants");
17
16
  const classes = {
@@ -29,15 +28,11 @@ const Root = (0, styles_1.styled)(NotificationItem_1.default, {
29
28
  })(() => ({}));
30
29
  /**
31
30
  * This component render the content of the notification of type undeleted for
32
- * @param inProps
33
31
  * @constructor
32
+ * @param props
34
33
  */
35
- function UndeletedForNotification(inProps) {
34
+ function UndeletedForNotification(props) {
36
35
  // PROPS
37
- const props = (0, system_1.useThemeProps)({
38
- props: inProps,
39
- name: constants_1.PREFIX
40
- });
41
36
  const { notificationObject, id = `n_${props.notificationObject['sid']}`, className, template = types_1.SCNotificationObjectTemplateType.DETAIL } = props, rest = tslib_1.__rest(props, ["notificationObject", "id", "className", "template"]);
42
37
  // CONTEXT
43
38
  const scRoutingContext = (0, react_core_1.useSCRouting)();