@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
@@ -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();