@selfcommunity/react-ui 0.7.0-alpha.44 → 0.7.0-alpha.45
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/UserProfileEdit/Section/SocialAccount.d.ts.map +1 -1
- package/lib/cjs/components/UserProfileEdit/Section/SocialAccount.js +3 -3
- package/lib/cjs/components/UserProfileEdit/Section/SocialAccount.js.map +1 -1
- package/lib/cjs/components/UserProfileInfo/UserProfileInfo.d.ts +0 -6
- package/lib/cjs/components/UserProfileInfo/UserProfileInfo.d.ts.map +1 -1
- package/lib/cjs/components/UserProfileInfo/UserProfileInfo.js +2 -22
- package/lib/cjs/components/UserProfileInfo/UserProfileInfo.js.map +1 -1
- package/lib/cjs/components/UserSocialAssociation/UserSocialAssociation.d.ts +2 -2
- package/lib/cjs/components/UserSocialAssociation/UserSocialAssociation.d.ts.map +1 -1
- package/lib/cjs/components/UserSocialAssociation/UserSocialAssociation.js +29 -63
- package/lib/cjs/components/UserSocialAssociation/UserSocialAssociation.js.map +1 -1
- package/lib/cjs/constants/UserProfile.d.ts.map +1 -1
- package/lib/cjs/constants/UserProfile.js +1 -2
- package/lib/cjs/constants/UserProfile.js.map +1 -1
- package/lib/esm/components/UserProfileEdit/Section/SocialAccount.d.ts.map +1 -1
- package/lib/esm/components/UserProfileEdit/Section/SocialAccount.js +3 -3
- package/lib/esm/components/UserProfileEdit/Section/SocialAccount.js.map +1 -1
- package/lib/esm/components/UserProfileInfo/UserProfileInfo.d.ts +0 -6
- package/lib/esm/components/UserProfileInfo/UserProfileInfo.d.ts.map +1 -1
- package/lib/esm/components/UserProfileInfo/UserProfileInfo.js +2 -22
- package/lib/esm/components/UserProfileInfo/UserProfileInfo.js.map +1 -1
- package/lib/esm/components/UserSocialAssociation/UserSocialAssociation.d.ts +2 -2
- package/lib/esm/components/UserSocialAssociation/UserSocialAssociation.d.ts.map +1 -1
- package/lib/esm/components/UserSocialAssociation/UserSocialAssociation.js +30 -64
- package/lib/esm/components/UserSocialAssociation/UserSocialAssociation.js.map +1 -1
- package/lib/esm/constants/UserProfile.d.ts.map +1 -1
- package/lib/esm/constants/UserProfile.js +1 -2
- package/lib/esm/constants/UserProfile.js.map +1 -1
- package/lib/umd/react-ui.js +2 -2
- package/lib/umd/react-ui.js.map +1 -1
- package/package.json +4 -4
|
@@ -38,9 +38,9 @@ export interface UserSocialAssociationProps extends StackProps {
|
|
|
38
38
|
*/
|
|
39
39
|
children?: React.ReactNode;
|
|
40
40
|
/**
|
|
41
|
-
* If providers list must be updated
|
|
41
|
+
* If present, providers list must be updated
|
|
42
42
|
*/
|
|
43
|
-
|
|
43
|
+
deletingProvider?: SCUserProviderAssociationType;
|
|
44
44
|
}
|
|
45
45
|
/**
|
|
46
46
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UserSocialAssociation.d.ts","sourceRoot":"","sources":["../../../../src/components/UserSocialAssociation/UserSocialAssociation.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA2B,MAAM,OAAO,CAAC;AAEhD,OAAO,EAAyB,UAAU,EAAa,MAAM,eAAe,CAAC;AAE7E,OAAO,EAAC,6BAA6B,EAAE,UAAU,EAAC,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"UserSocialAssociation.d.ts","sourceRoot":"","sources":["../../../../src/components/UserSocialAssociation/UserSocialAssociation.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA2B,MAAM,OAAO,CAAC;AAEhD,OAAO,EAAyB,UAAU,EAAa,MAAM,eAAe,CAAC;AAE7E,OAAO,EAAC,6BAA6B,EAAE,UAAU,EAAC,MAAM,sBAAsB,CAAC;AAsC/E,MAAM,WAAW,0BAA2B,SAAQ,UAAU;IAC5D;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;;OAGG;IACH,IAAI,CAAC,EAAE,UAAU,CAAC;IAElB;;;OAGG;IACH,SAAS,CAAC,EAAE,6BAA6B,EAAE,CAAC;IAC5C;;;OAGG;IACH,mBAAmB,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,GAAG,CAAC;IAChD;;;OAGG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;;OAGG;IACH,mBAAmB,CAAC,EAAE,CAAC,QAAQ,EAAE,6BAA6B,KAAK,GAAG,CAAC;IACvE;;;OAGG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B;;OAEG;IACH,gBAAgB,CAAC,EAAE,6BAA6B,CAAC;CAClD;AAED;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AAEH,MAAM,CAAC,OAAO,UAAU,qBAAqB,CAAC,OAAO,EAAE,0BAA0B,GAAG,GAAG,CAAC,OAAO,CAoF9F"}
|
|
@@ -13,14 +13,11 @@ import React, { useEffect, useMemo } from 'react';
|
|
|
13
13
|
import { styled } from '@mui/material/styles';
|
|
14
14
|
import { Box, IconButton, Stack, Typography } from '@mui/material';
|
|
15
15
|
import { defineMessages, useIntl } from 'react-intl';
|
|
16
|
-
import {
|
|
16
|
+
import { SCPreferences, useSCFetchUser, useSCFetchUserProviders, useSCPreferences } from '@selfcommunity/react-core';
|
|
17
17
|
import classNames from 'classnames';
|
|
18
18
|
import { useThemeProps } from '@mui/system';
|
|
19
19
|
import Icon from '@mui/material/Icon';
|
|
20
20
|
import { SCUserSocialAssociations } from '../../types';
|
|
21
|
-
import { UserService } from '@selfcommunity/api-services';
|
|
22
|
-
import { SCOPE_SC_UI } from '../../constants/Errors';
|
|
23
|
-
import { Logger } from '@selfcommunity/utils';
|
|
24
21
|
const messages = defineMessages({
|
|
25
22
|
socialAdd: {
|
|
26
23
|
id: 'ui.userSocialAssociation.add',
|
|
@@ -34,7 +31,6 @@ const messages = defineMessages({
|
|
|
34
31
|
const PREFIX = 'SCUserSocialAssociation';
|
|
35
32
|
const classes = {
|
|
36
33
|
root: `${PREFIX}-root`,
|
|
37
|
-
editView: `${PREFIX}-edit-view`,
|
|
38
34
|
field: `${PREFIX}-field`
|
|
39
35
|
};
|
|
40
36
|
const Root = styled(Stack, {
|
|
@@ -78,9 +74,8 @@ export default function UserSocialAssociation(inProps) {
|
|
|
78
74
|
props: inProps,
|
|
79
75
|
name: PREFIX
|
|
80
76
|
});
|
|
81
|
-
const { className = null, userId = null, user = null, providers = null, onCreateAssociation = null, onDeleteAssociation = null,
|
|
77
|
+
const { className = null, userId = null, user = null, providers = null, onCreateAssociation = null, onDeleteAssociation = null, children = null, deletingProvider = null } = props, rest = __rest(props, ["className", "userId", "user", "providers", "onCreateAssociation", "onDeleteAssociation", "children", "deletingProvider"]);
|
|
82
78
|
// HOOKS
|
|
83
|
-
const scUserContext = useSCUser();
|
|
84
79
|
const { scUser } = useSCFetchUser({ id: userId, user });
|
|
85
80
|
const { scUserProviders, setSCUserProviders } = useSCFetchUserProviders({ id: userId || scUser.id, providers });
|
|
86
81
|
// INTL
|
|
@@ -93,73 +88,44 @@ export default function UserSocialAssociation(inProps) {
|
|
|
93
88
|
return _preferences;
|
|
94
89
|
}, [scPreferences.preferences]);
|
|
95
90
|
// MEMO PROVIDERS
|
|
96
|
-
const isMe = useMemo(() => { var _a; return ((_a = scUserContext.user) === null || _a === void 0 ? void 0 : _a.id) === (scUser === null || scUser === void 0 ? void 0 : scUser.id); }, [scUserContext.user, scUser]);
|
|
97
91
|
const _providers = useMemo(() => {
|
|
98
92
|
return scUserProviders
|
|
99
93
|
.map((provider) => ({ [provider.provider]: provider }))
|
|
100
94
|
.reduce((prev, provider) => Object.assign(prev, provider), {});
|
|
101
95
|
}, [scUserProviders]);
|
|
102
|
-
const getProviderButtonProps = (name) => {
|
|
103
|
-
var _a, _b, _c;
|
|
104
|
-
if (((_a = _providers[name]) === null || _a === void 0 ? void 0 : _a.profile_url) && ((_b = _providers[name]) === null || _b === void 0 ? void 0 : _b.show_in_profile)) {
|
|
105
|
-
return { component: Link, to: (_c = _providers[name]) === null || _c === void 0 ? void 0 : _c.profile_url, color: 'primary', target: '_blank' };
|
|
106
|
-
}
|
|
107
|
-
else if (_providers[name]) {
|
|
108
|
-
return { color: 'primary' };
|
|
109
|
-
}
|
|
110
|
-
else if (isMe && onCreateAssociation) {
|
|
111
|
-
return { onClick: onCreateAssociation(name) };
|
|
112
|
-
}
|
|
113
|
-
else {
|
|
114
|
-
return { disabled: true };
|
|
115
|
-
}
|
|
116
|
-
};
|
|
117
96
|
const providersEnabled = Object.values(SCUserSocialAssociations).filter((p) => preferences[`providers.${p}_signin_enabled`]);
|
|
118
|
-
const providersToLink = providersEnabled === null || providersEnabled === void 0 ? void 0 : providersEnabled.filter((p) => { var _a, _b; return !((_a = _providers[p]) === null || _a === void 0 ? void 0 : _a.
|
|
97
|
+
const providersToLink = providersEnabled === null || providersEnabled === void 0 ? void 0 : providersEnabled.filter((p) => { var _a, _b; return !((_a = _providers[p]) === null || _a === void 0 ? void 0 : _a.provider) && !((_b = _providers[p]) === null || _b === void 0 ? void 0 : _b.ext_id); });
|
|
119
98
|
const providersLinked = Object.values(_providers).filter((p) => providersEnabled.includes(p.provider));
|
|
99
|
+
/**
|
|
100
|
+
* Updates providers list onDelete association
|
|
101
|
+
*/
|
|
120
102
|
useEffect(() => {
|
|
121
|
-
if (
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
setSCUserProviders(providers);
|
|
125
|
-
})
|
|
126
|
-
.catch((err) => {
|
|
127
|
-
Logger.error(SCOPE_SC_UI, `User with id ${scUser.id} not found`);
|
|
128
|
-
Logger.error(SCOPE_SC_UI, err.message);
|
|
129
|
-
});
|
|
103
|
+
if (deletingProvider) {
|
|
104
|
+
const updatedProviders = scUserProviders.filter((p) => p.provider !== deletingProvider.provider);
|
|
105
|
+
setSCUserProviders(updatedProviders);
|
|
130
106
|
}
|
|
131
|
-
}, [
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
providersToLink.length !== 0 && onCreateAssociation && (React.createElement(Box, null,
|
|
137
|
-
React.createElement(Typography, { variant: "body2" },
|
|
138
|
-
" ",
|
|
139
|
-
intl.formatMessage(messages.socialAdd)),
|
|
140
|
-
providersToLink.map((p, index) => (React.createElement(React.Fragment, { key: index },
|
|
141
|
-
React.createElement(IconButton, { onClick: onCreateAssociation ? () => onCreateAssociation(p) : null },
|
|
142
|
-
React.createElement(Icon, null, p))))))),
|
|
143
|
-
providersLinked.length !== 0 && (React.createElement(Box, null,
|
|
144
|
-
React.createElement(Typography, { variant: "body2" },
|
|
145
|
-
" ",
|
|
146
|
-
intl.formatMessage(messages.socialRemove)),
|
|
147
|
-
providersLinked.map((p, index) => (React.createElement(React.Fragment, { key: index },
|
|
148
|
-
React.createElement(IconButton, { color: "primary", onClick: () => onDeleteAssociation(p) },
|
|
149
|
-
React.createElement(Icon, null, p.provider)))))))));
|
|
150
|
-
}
|
|
151
|
-
else if ((isMe && !onCreateAssociation) || (!isMe && !providersLinked.length)) {
|
|
107
|
+
}, [deletingProvider]);
|
|
108
|
+
/**
|
|
109
|
+
* Renders social association block
|
|
110
|
+
*/
|
|
111
|
+
if (!providersEnabled) {
|
|
152
112
|
return null;
|
|
153
113
|
}
|
|
154
|
-
return (React.createElement(Root, Object.assign({ className: classNames(classes.root, className) }, rest),
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
React.createElement(
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
114
|
+
return (React.createElement(Root, Object.assign({ className: classNames(classes.root, className) }, rest, { direction: "column" }),
|
|
115
|
+
providersLinked.length !== 0 || (providersToLink.length !== 0 && onCreateAssociation) ? children : null,
|
|
116
|
+
providersToLink.length !== 0 && onCreateAssociation && (React.createElement(Box, null,
|
|
117
|
+
React.createElement(Typography, { variant: "body2" },
|
|
118
|
+
" ",
|
|
119
|
+
intl.formatMessage(messages.socialAdd)),
|
|
120
|
+
providersToLink.map((p, index) => (React.createElement(React.Fragment, { key: index },
|
|
121
|
+
React.createElement(IconButton, { onClick: onCreateAssociation ? () => onCreateAssociation(p) : null },
|
|
122
|
+
React.createElement(Icon, null, p))))))),
|
|
123
|
+
providersLinked.length !== 0 && (React.createElement(Box, null,
|
|
124
|
+
React.createElement(Typography, { variant: "body2" },
|
|
125
|
+
" ",
|
|
126
|
+
intl.formatMessage(messages.socialRemove)),
|
|
127
|
+
providersLinked.map((p, index) => (React.createElement(React.Fragment, { key: index },
|
|
128
|
+
React.createElement(IconButton, { color: "primary", onClick: () => onDeleteAssociation(p) },
|
|
129
|
+
React.createElement(Icon, null, p.provider)))))))));
|
|
164
130
|
}
|
|
165
131
|
//# sourceMappingURL=UserSocialAssociation.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UserSocialAssociation.js","sourceRoot":"","sources":["../../../../src/components/UserSocialAssociation/UserSocialAssociation.tsx"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,KAAK,EAAE,EAAC,SAAS,EAAE,OAAO,EAAC,MAAM,OAAO,CAAC;AAChD,OAAO,EAAC,MAAM,EAAC,MAAM,sBAAsB,CAAC;AAC5C,OAAO,EAAC,GAAG,EAAE,UAAU,EAAE,KAAK,EAAc,UAAU,EAAC,MAAM,eAAe,CAAC;AAC7E,OAAO,EAAC,cAAc,EAAE,OAAO,EAAC,MAAM,YAAY,CAAC;AAEnD,OAAO,
|
|
1
|
+
{"version":3,"file":"UserSocialAssociation.js","sourceRoot":"","sources":["../../../../src/components/UserSocialAssociation/UserSocialAssociation.tsx"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,KAAK,EAAE,EAAC,SAAS,EAAE,OAAO,EAAC,MAAM,OAAO,CAAC;AAChD,OAAO,EAAC,MAAM,EAAC,MAAM,sBAAsB,CAAC;AAC5C,OAAO,EAAC,GAAG,EAAE,UAAU,EAAE,KAAK,EAAc,UAAU,EAAC,MAAM,eAAe,CAAC;AAC7E,OAAO,EAAC,cAAc,EAAE,OAAO,EAAC,MAAM,YAAY,CAAC;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Q,CACd,CACE,CAClB,CAAC,CACE,CACP,CACI,CACR,CAAC;AACJ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UserProfile.d.ts","sourceRoot":"","sources":["../../../src/constants/UserProfile.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,mBAAmB,EAAE,qBAAqB,EAAC,MAAM,UAAU,CAAC;AAEpE,eAAO,MAAM,cAAc,
|
|
1
|
+
{"version":3,"file":"UserProfile.d.ts","sourceRoot":"","sources":["../../../src/constants/UserProfile.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,mBAAmB,EAAE,qBAAqB,EAAC,MAAM,UAAU,CAAC;AAEpE,eAAO,MAAM,cAAc,uBAQ1B,CAAC;AAEF,eAAO,MAAM,gBAAgB,yBAAiH,CAAC"}
|
|
@@ -6,8 +6,7 @@ export const DEFAULT_FIELDS = [
|
|
|
6
6
|
SCUserProfileFields.DATE_OF_BIRTH,
|
|
7
7
|
SCUserProfileFields.DESCRIPTION,
|
|
8
8
|
SCUserProfileFields.WEBSITE,
|
|
9
|
-
SCUserProfileFields.BIO
|
|
10
|
-
SCUserProfileFields.SOCIAL_ASSOCIATIONS
|
|
9
|
+
SCUserProfileFields.BIO
|
|
11
10
|
];
|
|
12
11
|
export const DEFAULT_SETTINGS = [SCUserProfileSettings.NOTIFICATION, SCUserProfileSettings.INTERACTION, SCUserProfileSettings.PRIVATE_MESSAGE];
|
|
13
12
|
//# sourceMappingURL=UserProfile.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UserProfile.js","sourceRoot":"","sources":["../../../src/constants/UserProfile.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,mBAAmB,EAAE,qBAAqB,EAAC,MAAM,UAAU,CAAC;AAEpE,MAAM,CAAC,MAAM,cAAc,GAAG;IAC5B,mBAAmB,CAAC,IAAI;IACxB,mBAAmB,CAAC,SAAS;IAC7B,mBAAmB,CAAC,WAAW;IAC/B,mBAAmB,CAAC,aAAa;IACjC,mBAAmB,CAAC,WAAW;IAC/B,mBAAmB,CAAC,OAAO;IAC3B,mBAAmB,CAAC,GAAG;
|
|
1
|
+
{"version":3,"file":"UserProfile.js","sourceRoot":"","sources":["../../../src/constants/UserProfile.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,mBAAmB,EAAE,qBAAqB,EAAC,MAAM,UAAU,CAAC;AAEpE,MAAM,CAAC,MAAM,cAAc,GAAG;IAC5B,mBAAmB,CAAC,IAAI;IACxB,mBAAmB,CAAC,SAAS;IAC7B,mBAAmB,CAAC,WAAW;IAC/B,mBAAmB,CAAC,aAAa;IACjC,mBAAmB,CAAC,WAAW;IAC/B,mBAAmB,CAAC,OAAO;IAC3B,mBAAmB,CAAC,GAAG;CACxB,CAAC;AAEF,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,qBAAqB,CAAC,YAAY,EAAE,qBAAqB,CAAC,WAAW,EAAE,qBAAqB,CAAC,eAAe,CAAC,CAAC"}
|