@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.
- package/lib/cjs/components/ChangePicture/ChangePictureDialog/ChangePictureDialog.d.ts +1 -1
- package/lib/cjs/components/ChangePicture/ChangePictureDialog/ChangePictureDialog.js +1 -6
- package/lib/cjs/components/CommentObject/CommentObject.d.ts +10 -0
- package/lib/cjs/components/CommentObject/CommentObject.js +8 -40
- package/lib/cjs/components/CommentObjectReply/CommentObjectReply.js +2 -3
- package/lib/cjs/components/FeedObject/Activities/RelevantActivities/CommentActivity/CommentActivity.js +19 -10
- package/lib/cjs/components/FeedObjectMediaPreview/FeedObjectMediaPreview.d.ts +2 -2
- package/lib/cjs/components/FeedObjectMediaPreview/FeedObjectMediaPreview.js +7 -7
- package/lib/cjs/components/IncubatorListWidget/CreateIncubatorDialog/CreateIncubatorDialog.d.ts +1 -1
- package/lib/cjs/components/IncubatorListWidget/CreateIncubatorDialog/CreateIncubatorDialog.js +1 -6
- package/lib/cjs/components/Notification/CollapsedFor/CollapsedFor.d.ts +2 -2
- package/lib/cjs/components/Notification/CollapsedFor/CollapsedFor.js +2 -7
- package/lib/cjs/components/Notification/Comment/Comment.d.ts +2 -2
- package/lib/cjs/components/Notification/Comment/Comment.js +2 -7
- package/lib/cjs/components/Notification/Contribution/Contribution.d.ts +2 -2
- package/lib/cjs/components/Notification/Contribution/Contribution.js +2 -7
- package/lib/cjs/components/Notification/ContributionFollow/ContributionFollow.d.ts +2 -2
- package/lib/cjs/components/Notification/ContributionFollow/ContributionFollow.js +2 -7
- package/lib/cjs/components/Notification/DeletedFor/DeletedFor.d.ts +2 -2
- package/lib/cjs/components/Notification/DeletedFor/DeletedFor.js +2 -7
- package/lib/cjs/components/Notification/IncubatorApproved/IncubatorApproved.d.ts +1 -1
- package/lib/cjs/components/Notification/IncubatorApproved/IncubatorApproved.js +1 -6
- package/lib/cjs/components/Notification/KindlyNoticeFlag/KindlyNoticeFlag.d.ts +2 -2
- package/lib/cjs/components/Notification/KindlyNoticeFlag/KindlyNoticeFlag.js +2 -7
- package/lib/cjs/components/Notification/KindlyNoticeFor/KindlyNoticeFor.d.ts +2 -2
- package/lib/cjs/components/Notification/KindlyNoticeFor/KindlyNoticeFor.js +2 -7
- package/lib/cjs/components/Notification/Mention/Mention.d.ts +2 -2
- package/lib/cjs/components/Notification/Mention/Mention.js +2 -7
- package/lib/cjs/components/Notification/PrivateMessage/PrivateMessage.d.ts +2 -2
- package/lib/cjs/components/Notification/PrivateMessage/PrivateMessage.js +2 -7
- package/lib/cjs/components/Notification/UndeletedFor/UndeletedFor.d.ts +2 -2
- package/lib/cjs/components/Notification/UndeletedFor/UndeletedFor.js +2 -7
- package/lib/cjs/components/Notification/UserBlocked/UserBlocked.d.ts +2 -2
- package/lib/cjs/components/Notification/UserBlocked/UserBlocked.js +2 -7
- package/lib/cjs/components/Notification/UserConnection/UserConnection.d.ts +2 -2
- package/lib/cjs/components/Notification/UserConnection/UserConnection.js +2 -7
- package/lib/cjs/components/Notification/UserFollow/UserFollow.d.ts +2 -2
- package/lib/cjs/components/Notification/UserFollow/UserFollow.js +2 -7
- package/lib/cjs/components/Notification/VoteUp/VoteUp.d.ts +2 -2
- package/lib/cjs/components/Notification/VoteUp/VoteUp.js +2 -7
- package/lib/cjs/components/PollSuggestionWidget/PollSnippet/PollSnippet.d.ts +2 -2
- package/lib/cjs/components/PollSuggestionWidget/PollSnippet/PollSnippet.js +2 -7
- package/lib/cjs/components/UserProfileEdit/Section/Account.d.ts +1 -1
- package/lib/cjs/components/UserProfileEdit/Section/Account.js +2 -7
- package/lib/cjs/components/UserProfileEdit/Section/AccountCredentials.d.ts +1 -1
- package/lib/cjs/components/UserProfileEdit/Section/AccountCredentials.js +1 -7
- package/lib/cjs/components/UserProfileEdit/Section/PublicInfo.d.ts +1 -1
- package/lib/cjs/components/UserProfileEdit/Section/PublicInfo.js +1 -6
- package/lib/cjs/components/UserProfileEdit/Section/Settings.d.ts +1 -1
- package/lib/cjs/components/UserProfileEdit/Section/Settings.js +1 -6
- package/lib/esm/components/ChangePicture/ChangePictureDialog/ChangePictureDialog.d.ts +1 -1
- package/lib/esm/components/ChangePicture/ChangePictureDialog/ChangePictureDialog.js +1 -6
- package/lib/esm/components/CommentObject/CommentObject.d.ts +10 -0
- package/lib/esm/components/CommentObject/CommentObject.js +8 -40
- package/lib/esm/components/CommentObjectReply/CommentObjectReply.js +2 -3
- package/lib/esm/components/FeedObject/Activities/RelevantActivities/CommentActivity/CommentActivity.js +22 -13
- package/lib/esm/components/FeedObjectMediaPreview/FeedObjectMediaPreview.d.ts +2 -2
- package/lib/esm/components/FeedObjectMediaPreview/FeedObjectMediaPreview.js +5 -5
- package/lib/esm/components/IncubatorListWidget/CreateIncubatorDialog/CreateIncubatorDialog.d.ts +1 -1
- package/lib/esm/components/IncubatorListWidget/CreateIncubatorDialog/CreateIncubatorDialog.js +1 -6
- package/lib/esm/components/Notification/CollapsedFor/CollapsedFor.d.ts +2 -2
- package/lib/esm/components/Notification/CollapsedFor/CollapsedFor.js +2 -7
- package/lib/esm/components/Notification/Comment/Comment.d.ts +2 -2
- package/lib/esm/components/Notification/Comment/Comment.js +2 -7
- package/lib/esm/components/Notification/Contribution/Contribution.d.ts +2 -2
- package/lib/esm/components/Notification/Contribution/Contribution.js +2 -7
- package/lib/esm/components/Notification/ContributionFollow/ContributionFollow.d.ts +2 -2
- package/lib/esm/components/Notification/ContributionFollow/ContributionFollow.js +2 -7
- package/lib/esm/components/Notification/DeletedFor/DeletedFor.d.ts +2 -2
- package/lib/esm/components/Notification/DeletedFor/DeletedFor.js +2 -7
- package/lib/esm/components/Notification/IncubatorApproved/IncubatorApproved.d.ts +1 -1
- package/lib/esm/components/Notification/IncubatorApproved/IncubatorApproved.js +1 -6
- package/lib/esm/components/Notification/KindlyNoticeFlag/KindlyNoticeFlag.d.ts +2 -2
- package/lib/esm/components/Notification/KindlyNoticeFlag/KindlyNoticeFlag.js +2 -7
- package/lib/esm/components/Notification/KindlyNoticeFor/KindlyNoticeFor.d.ts +2 -2
- package/lib/esm/components/Notification/KindlyNoticeFor/KindlyNoticeFor.js +2 -7
- package/lib/esm/components/Notification/Mention/Mention.d.ts +2 -2
- package/lib/esm/components/Notification/Mention/Mention.js +2 -7
- package/lib/esm/components/Notification/PrivateMessage/PrivateMessage.d.ts +2 -2
- package/lib/esm/components/Notification/PrivateMessage/PrivateMessage.js +2 -7
- package/lib/esm/components/Notification/UndeletedFor/UndeletedFor.d.ts +2 -2
- package/lib/esm/components/Notification/UndeletedFor/UndeletedFor.js +2 -7
- package/lib/esm/components/Notification/UserBlocked/UserBlocked.d.ts +2 -2
- package/lib/esm/components/Notification/UserBlocked/UserBlocked.js +2 -7
- package/lib/esm/components/Notification/UserConnection/UserConnection.d.ts +2 -2
- package/lib/esm/components/Notification/UserConnection/UserConnection.js +2 -7
- package/lib/esm/components/Notification/UserFollow/UserFollow.d.ts +2 -2
- package/lib/esm/components/Notification/UserFollow/UserFollow.js +2 -7
- package/lib/esm/components/Notification/VoteUp/VoteUp.d.ts +2 -2
- package/lib/esm/components/Notification/VoteUp/VoteUp.js +2 -7
- package/lib/esm/components/PollSuggestionWidget/PollSnippet/PollSnippet.d.ts +2 -2
- package/lib/esm/components/PollSuggestionWidget/PollSnippet/PollSnippet.js +2 -7
- package/lib/esm/components/UserProfileEdit/Section/Account.d.ts +1 -1
- package/lib/esm/components/UserProfileEdit/Section/Account.js +2 -7
- package/lib/esm/components/UserProfileEdit/Section/AccountCredentials.d.ts +1 -1
- package/lib/esm/components/UserProfileEdit/Section/AccountCredentials.js +1 -7
- package/lib/esm/components/UserProfileEdit/Section/PublicInfo.d.ts +1 -1
- package/lib/esm/components/UserProfileEdit/Section/PublicInfo.js +1 -6
- package/lib/esm/components/UserProfileEdit/Section/Settings.d.ts +1 -1
- package/lib/esm/components/UserProfileEdit/Section/Settings.js +1 -6
- package/lib/umd/react-ui.js +1 -1
- 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
|
|
47
|
+
* @param props
|
|
49
48
|
*/
|
|
50
|
-
export default function PollSnippet(
|
|
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();
|
|
@@ -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(
|
|
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);
|
|
@@ -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(
|
|
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
|
|
@@ -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(
|
|
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();
|
|
@@ -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(
|
|
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();
|