@selfcommunity/react-ui 0.7.0-alpha.34 → 0.7.0-alpha.36
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/PublicInfo.d.ts +10 -0
- package/lib/cjs/components/UserProfileEdit/Section/PublicInfo.d.ts.map +1 -1
- package/lib/cjs/components/UserProfileEdit/Section/PublicInfo.js +5 -1
- package/lib/cjs/components/UserProfileEdit/Section/PublicInfo.js.map +1 -1
- package/lib/cjs/components/UserProfileEdit/Section/SocialAccount.d.ts +24 -0
- package/lib/cjs/components/UserProfileEdit/Section/SocialAccount.d.ts.map +1 -0
- package/lib/cjs/components/UserProfileEdit/Section/SocialAccount.js +113 -0
- package/lib/cjs/components/UserProfileEdit/Section/SocialAccount.js.map +1 -0
- package/lib/cjs/components/UserProfileEdit/index.d.ts +2 -1
- package/lib/cjs/components/UserProfileEdit/index.d.ts.map +1 -1
- package/lib/cjs/components/UserProfileEdit/index.js +3 -1
- package/lib/cjs/components/UserProfileEdit/index.js.map +1 -1
- package/lib/cjs/components/UserProfileInfo/UserProfileInfo.d.ts +6 -0
- package/lib/cjs/components/UserProfileInfo/UserProfileInfo.d.ts.map +1 -1
- package/lib/cjs/components/UserProfileInfo/UserProfileInfo.js +22 -2
- package/lib/cjs/components/UserProfileInfo/UserProfileInfo.js.map +1 -1
- package/lib/cjs/components/UserSocialAssociation/UserSocialAssociation.d.ts +70 -0
- package/lib/cjs/components/UserSocialAssociation/UserSocialAssociation.d.ts.map +1 -0
- package/lib/cjs/components/UserSocialAssociation/UserSocialAssociation.js +192 -0
- package/lib/cjs/components/UserSocialAssociation/UserSocialAssociation.js.map +1 -0
- package/lib/cjs/components/UserSocialAssociation/index.d.ts +4 -0
- package/lib/cjs/components/UserSocialAssociation/index.d.ts.map +1 -0
- package/lib/cjs/components/UserSocialAssociation/index.js +8 -0
- package/lib/cjs/components/UserSocialAssociation/index.js.map +1 -0
- package/lib/cjs/index.d.ts +4 -2
- package/lib/cjs/index.d.ts.map +1 -1
- package/lib/cjs/index.js +7 -2
- package/lib/cjs/index.js.map +1 -1
- package/lib/cjs/types/index.d.ts +2 -2
- package/lib/cjs/types/index.d.ts.map +1 -1
- package/lib/cjs/types/index.js +2 -1
- package/lib/cjs/types/index.js.map +1 -1
- package/lib/cjs/types/user.d.ts +11 -1
- package/lib/cjs/types/user.d.ts.map +1 -1
- package/lib/cjs/types/user.js +12 -1
- package/lib/cjs/types/user.js.map +1 -1
- package/lib/esm/components/UserProfileEdit/Section/PublicInfo.d.ts +10 -0
- package/lib/esm/components/UserProfileEdit/Section/PublicInfo.d.ts.map +1 -1
- package/lib/esm/components/UserProfileEdit/Section/PublicInfo.js +5 -1
- package/lib/esm/components/UserProfileEdit/Section/PublicInfo.js.map +1 -1
- package/lib/esm/components/UserProfileEdit/Section/SocialAccount.d.ts +24 -0
- package/lib/esm/components/UserProfileEdit/Section/SocialAccount.d.ts.map +1 -0
- package/lib/esm/components/UserProfileEdit/Section/SocialAccount.js +84 -0
- package/lib/esm/components/UserProfileEdit/Section/SocialAccount.js.map +1 -0
- package/lib/esm/components/UserProfileEdit/index.d.ts +2 -1
- package/lib/esm/components/UserProfileEdit/index.d.ts.map +1 -1
- package/lib/esm/components/UserProfileEdit/index.js +2 -1
- package/lib/esm/components/UserProfileEdit/index.js.map +1 -1
- package/lib/esm/components/UserProfileInfo/UserProfileInfo.d.ts +6 -0
- package/lib/esm/components/UserProfileInfo/UserProfileInfo.d.ts.map +1 -1
- package/lib/esm/components/UserProfileInfo/UserProfileInfo.js +22 -2
- package/lib/esm/components/UserProfileInfo/UserProfileInfo.js.map +1 -1
- package/lib/esm/components/UserSocialAssociation/UserSocialAssociation.d.ts +70 -0
- package/lib/esm/components/UserSocialAssociation/UserSocialAssociation.d.ts.map +1 -0
- package/lib/esm/components/UserSocialAssociation/UserSocialAssociation.js +163 -0
- package/lib/esm/components/UserSocialAssociation/UserSocialAssociation.js.map +1 -0
- package/lib/esm/components/UserSocialAssociation/index.d.ts +4 -0
- package/lib/esm/components/UserSocialAssociation/index.d.ts.map +1 -0
- package/lib/esm/components/UserSocialAssociation/index.js +3 -0
- package/lib/esm/components/UserSocialAssociation/index.js.map +1 -0
- package/lib/esm/index.d.ts +4 -2
- package/lib/esm/index.d.ts.map +1 -1
- package/lib/esm/index.js +5 -3
- package/lib/esm/index.js.map +1 -1
- package/lib/esm/types/index.d.ts +2 -2
- package/lib/esm/types/index.d.ts.map +1 -1
- package/lib/esm/types/index.js +2 -2
- package/lib/esm/types/index.js.map +1 -1
- package/lib/esm/types/user.d.ts +11 -1
- package/lib/esm/types/user.d.ts.map +1 -1
- package/lib/esm/types/user.js +11 -0
- package/lib/esm/types/user.js.map +1 -1
- package/lib/umd/react-ui.js +2 -2
- package/lib/umd/react-ui.js.map +1 -1
- package/package.json +6 -6
|
@@ -0,0 +1,192 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
26
|
+
var t = {};
|
|
27
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
28
|
+
t[p] = s[p];
|
|
29
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
30
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
31
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
32
|
+
t[p[i]] = s[p[i]];
|
|
33
|
+
}
|
|
34
|
+
return t;
|
|
35
|
+
};
|
|
36
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
37
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
38
|
+
};
|
|
39
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
40
|
+
const react_1 = __importStar(require("react"));
|
|
41
|
+
const styles_1 = require("@mui/material/styles");
|
|
42
|
+
const material_1 = require("@mui/material");
|
|
43
|
+
const react_intl_1 = require("react-intl");
|
|
44
|
+
const react_core_1 = require("@selfcommunity/react-core");
|
|
45
|
+
const classnames_1 = __importDefault(require("classnames"));
|
|
46
|
+
const system_1 = require("@mui/system");
|
|
47
|
+
const Icon_1 = __importDefault(require("@mui/material/Icon"));
|
|
48
|
+
const types_1 = require("../../types");
|
|
49
|
+
const api_services_1 = require("@selfcommunity/api-services");
|
|
50
|
+
const Errors_1 = require("../../constants/Errors");
|
|
51
|
+
const utils_1 = require("@selfcommunity/utils");
|
|
52
|
+
const messages = (0, react_intl_1.defineMessages)({
|
|
53
|
+
socialAdd: {
|
|
54
|
+
id: 'ui.userSocialAssociation.add',
|
|
55
|
+
defaultMessage: 'ui.userSocialAssociation.add'
|
|
56
|
+
},
|
|
57
|
+
socialRemove: {
|
|
58
|
+
id: 'ui.userSocialAssociation.remove',
|
|
59
|
+
defaultMessage: 'ui.userSocialAssociation.remove'
|
|
60
|
+
}
|
|
61
|
+
});
|
|
62
|
+
const PREFIX = 'SCUserSocialAssociation';
|
|
63
|
+
const classes = {
|
|
64
|
+
root: `${PREFIX}-root`,
|
|
65
|
+
editView: `${PREFIX}-edit-view`,
|
|
66
|
+
field: `${PREFIX}-field`
|
|
67
|
+
};
|
|
68
|
+
const Root = (0, styles_1.styled)(material_1.Stack, {
|
|
69
|
+
name: PREFIX,
|
|
70
|
+
slot: 'Root',
|
|
71
|
+
overridesResolver: (props, styles) => styles.root
|
|
72
|
+
})(({ theme }) => ({}));
|
|
73
|
+
const PREFERENCES = [
|
|
74
|
+
react_core_1.SCPreferences.PROVIDERS_FACEBOOK_SIGNIN_ENABLED,
|
|
75
|
+
react_core_1.SCPreferences.PROVIDERS_GOOGLE_SIGNIN_ENABLED,
|
|
76
|
+
react_core_1.SCPreferences.PROVIDERS_TWITTER_SIGNIN_ENABLED,
|
|
77
|
+
react_core_1.SCPreferences.PROVIDERS_LINKEDIN_SIGNIN_ENABLED
|
|
78
|
+
];
|
|
79
|
+
/**
|
|
80
|
+
*
|
|
81
|
+
> API documentation for the Community-JS User Social Association component. Learn about the available props and the CSS API.
|
|
82
|
+
|
|
83
|
+
#### Import
|
|
84
|
+
|
|
85
|
+
```jsx
|
|
86
|
+
import {UserSocialAssociation} from '@selfcommunity/react-ui';
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
#### Component Name
|
|
90
|
+
|
|
91
|
+
The name `SCUserSocialAssociation` can be used when providing style overrides in the theme.
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
#### CSS
|
|
95
|
+
|
|
96
|
+
|Rule Name|Global class|Description|
|
|
97
|
+
|---|---|---|
|
|
98
|
+
|root|.SCUserSocialAssociation-root|Styles applied to the root element.|
|
|
99
|
+
|field|.SCUserSocialAssociation-field|Styles applied to the field element.|
|
|
100
|
+
|
|
101
|
+
* @param inProps
|
|
102
|
+
*/
|
|
103
|
+
function UserSocialAssociation(inProps) {
|
|
104
|
+
// PROPS
|
|
105
|
+
const props = (0, system_1.useThemeProps)({
|
|
106
|
+
props: inProps,
|
|
107
|
+
name: PREFIX
|
|
108
|
+
});
|
|
109
|
+
const { className = null, userId = null, user = null, providers = null, onCreateAssociation = null, onDeleteAssociation = null, isEditView = false, children = null, shouldUpdate } = props, rest = __rest(props, ["className", "userId", "user", "providers", "onCreateAssociation", "onDeleteAssociation", "isEditView", "children", "shouldUpdate"]);
|
|
110
|
+
// HOOKS
|
|
111
|
+
const scUserContext = (0, react_core_1.useSCUser)();
|
|
112
|
+
const { scUser } = (0, react_core_1.useSCFetchUser)({ id: userId, user });
|
|
113
|
+
const { scUserProviders, setSCUserProviders } = (0, react_core_1.useSCFetchUserProviders)({ id: userId || scUser.id, providers });
|
|
114
|
+
// INTL
|
|
115
|
+
const intl = (0, react_intl_1.useIntl)();
|
|
116
|
+
// Compute preferences
|
|
117
|
+
const scPreferences = (0, react_core_1.useSCPreferences)();
|
|
118
|
+
const preferences = (0, react_1.useMemo)(() => {
|
|
119
|
+
const _preferences = {};
|
|
120
|
+
PREFERENCES.map((p) => (_preferences[p] = p in scPreferences.preferences ? scPreferences.preferences[p].value : null));
|
|
121
|
+
return _preferences;
|
|
122
|
+
}, [scPreferences.preferences]);
|
|
123
|
+
// MEMO PROVIDERS
|
|
124
|
+
const isMe = (0, react_1.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]);
|
|
125
|
+
const _providers = (0, react_1.useMemo)(() => {
|
|
126
|
+
return scUserProviders
|
|
127
|
+
.map((provider) => ({ [provider.provider]: provider }))
|
|
128
|
+
.reduce((prev, provider) => Object.assign(prev, provider), {});
|
|
129
|
+
}, [scUserProviders]);
|
|
130
|
+
const getProviderButtonProps = (name) => {
|
|
131
|
+
var _a, _b, _c;
|
|
132
|
+
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)) {
|
|
133
|
+
return { component: react_core_1.Link, to: (_c = _providers[name]) === null || _c === void 0 ? void 0 : _c.profile_url, color: 'primary', target: '_blank' };
|
|
134
|
+
}
|
|
135
|
+
else if (_providers[name]) {
|
|
136
|
+
return { color: 'primary' };
|
|
137
|
+
}
|
|
138
|
+
else if (isMe && onCreateAssociation) {
|
|
139
|
+
return { onClick: onCreateAssociation(name) };
|
|
140
|
+
}
|
|
141
|
+
else {
|
|
142
|
+
return { disabled: true };
|
|
143
|
+
}
|
|
144
|
+
};
|
|
145
|
+
const providersEnabled = Object.values(types_1.SCUserSocialAssociations).filter((p) => preferences[`providers.${p}_signin_enabled`]);
|
|
146
|
+
const providersList = (op) => {
|
|
147
|
+
return providersEnabled === null || providersEnabled === void 0 ? void 0 : providersEnabled.filter((p) => { var _a, _b; return (op === '!' ? !((_a = _providers[p]) === null || _a === void 0 ? void 0 : _a.profile_url) : (_b = _providers[p]) === null || _b === void 0 ? void 0 : _b.profile_url); });
|
|
148
|
+
};
|
|
149
|
+
(0, react_1.useEffect)(() => {
|
|
150
|
+
if (shouldUpdate) {
|
|
151
|
+
api_services_1.UserService.getProviderAssociations(scUser.id)
|
|
152
|
+
.then((providers) => {
|
|
153
|
+
setSCUserProviders(providers);
|
|
154
|
+
})
|
|
155
|
+
.catch((err) => {
|
|
156
|
+
utils_1.Logger.error(Errors_1.SCOPE_SC_UI, `User with id ${scUser.id} not found`);
|
|
157
|
+
utils_1.Logger.error(Errors_1.SCOPE_SC_UI, err.message);
|
|
158
|
+
});
|
|
159
|
+
}
|
|
160
|
+
}, [shouldUpdate]);
|
|
161
|
+
// RENDER
|
|
162
|
+
if (isEditView && providersEnabled) {
|
|
163
|
+
return (react_1.default.createElement(Root, Object.assign({ className: (0, classnames_1.default)(classes.editView, className) }, rest, { direction: "column" }),
|
|
164
|
+
providersList().length !== 0 || (providersList('!').length !== 0 && onCreateAssociation) ? children : null,
|
|
165
|
+
providersList('!').length !== 0 && onCreateAssociation && (react_1.default.createElement(material_1.Box, null,
|
|
166
|
+
react_1.default.createElement(material_1.Typography, { variant: "body2" },
|
|
167
|
+
" ",
|
|
168
|
+
intl.formatMessage(messages.socialAdd)),
|
|
169
|
+
providersList('!').map((p, index) => (react_1.default.createElement(react_1.default.Fragment, { key: index },
|
|
170
|
+
react_1.default.createElement(material_1.IconButton, { onClick: onCreateAssociation ? () => onCreateAssociation(p) : null },
|
|
171
|
+
react_1.default.createElement(Icon_1.default, null, p))))))),
|
|
172
|
+
providersList().length !== 0 && (react_1.default.createElement(material_1.Box, null,
|
|
173
|
+
react_1.default.createElement(material_1.Typography, { variant: "body2" },
|
|
174
|
+
" ",
|
|
175
|
+
intl.formatMessage(messages.socialRemove)),
|
|
176
|
+
providersList().map((p, index) => (react_1.default.createElement(react_1.default.Fragment, { key: index },
|
|
177
|
+
react_1.default.createElement(material_1.IconButton, { color: "primary", onClick: () => onDeleteAssociation(p) },
|
|
178
|
+
react_1.default.createElement(Icon_1.default, null, p)))))))));
|
|
179
|
+
}
|
|
180
|
+
return (react_1.default.createElement(Root, Object.assign({ className: (0, classnames_1.default)(classes.root, className) }, rest),
|
|
181
|
+
preferences[react_core_1.SCPreferences.PROVIDERS_FACEBOOK_SIGNIN_ENABLED] && (react_1.default.createElement(material_1.IconButton, Object.assign({}, getProviderButtonProps(types_1.SCUserSocialAssociations.FACEBOOK)),
|
|
182
|
+
react_1.default.createElement(Icon_1.default, null, "facebook"))),
|
|
183
|
+
preferences[react_core_1.SCPreferences.PROVIDERS_GOOGLE_SIGNIN_ENABLED] && (react_1.default.createElement(material_1.IconButton, Object.assign({}, getProviderButtonProps(types_1.SCUserSocialAssociations.GOOGLE)),
|
|
184
|
+
react_1.default.createElement(Icon_1.default, null, "google"))),
|
|
185
|
+
preferences[react_core_1.SCPreferences.PROVIDERS_TWITTER_SIGNIN_ENABLED] && (react_1.default.createElement(material_1.IconButton, Object.assign({}, getProviderButtonProps(types_1.SCUserSocialAssociations.TWITTER)),
|
|
186
|
+
react_1.default.createElement(Icon_1.default, null, "twitter"))),
|
|
187
|
+
preferences[react_core_1.SCPreferences.PROVIDERS_LINKEDIN_SIGNIN_ENABLED] && (react_1.default.createElement(material_1.IconButton, Object.assign({}, getProviderButtonProps(types_1.SCUserSocialAssociations.LINKEDIN)),
|
|
188
|
+
react_1.default.createElement(Icon_1.default, null, "linkedin"))),
|
|
189
|
+
children));
|
|
190
|
+
}
|
|
191
|
+
exports.default = UserSocialAssociation;
|
|
192
|
+
//# sourceMappingURL=UserSocialAssociation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"UserSocialAssociation.js","sourceRoot":"","sources":["../../../../src/components/UserSocialAssociation/UserSocialAssociation.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+CAAgD;AAChD,iDAA4C;AAC5C,4CAA6E;AAC7E,2CAAmD;AAEnD,0DASmC;AACnC,4DAAoC;AACpC,wCAA0C;AAC1C,8DAAsC;AACtC,uCAAqD;AACrD,8DAAwD;AACxD,mDAAmD;AACnD,gDAA4C;AAE5C,MAAM,QAAQ,GAAG,IAAA,2BAAc,EAAC;IAC9B,SAAS,EAAE;QACT,EAAE,EAAE,8BAA8B;QAClC,cAAc,EAAE,8BAA8B;KAC/C;IACD,YAAY,EAAE;QACZ,EAAE,EAAE,iCAAiC;QACrC,cAAc,EAAE,iCAAiC;KAClD;CACF,CAAC,CAAC;AAEH,MAAM,MAAM,GAAG,yBAAyB,CAAC;AAEzC,MAAM,OAAO,GAAG;IACd,IAAI,EAAE,GAAG,MAAM,OAAO;IACtB,QAAQ,EAAE,GAAG,MAAM,YAAY;IAC/B,KAAK,EAAE,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,CAAC,IAAI,CAC/D,8BAAC,qBAAU,oBAAK,sBAAsB,CAAC,gCAAwB,CAAC,QAAQ,CAAC;YACvE,8BAAC,cAAI,mBAAgB,CACV,CACd;QACA,QAAQ,CACJ,CACR,CAAC;AACJ,CAAC;AA9HD,wCA8HC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/UserSocialAssociation/index.tsx"],"names":[],"mappings":"AAAA,OAAO,qBAAqB,EAAE,EAAC,0BAA0B,EAAC,MAAM,yBAAyB,CAAC;AAC1F,eAAe,qBAAqB,CAAC;AACrC,OAAO,EAAC,0BAA0B,EAAC,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const UserSocialAssociation_1 = __importDefault(require("./UserSocialAssociation"));
|
|
7
|
+
exports.default = UserSocialAssociation_1.default;
|
|
8
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/UserSocialAssociation/index.tsx"],"names":[],"mappings":";;;;;AAAA,oFAA0F;AAC1F,kBAAe,+BAAqB,CAAC"}
|
package/lib/cjs/index.d.ts
CHANGED
|
@@ -33,6 +33,7 @@ import UserProfileHeader, { UserProfileHeaderProps, UserProfileHeaderSkeleton }
|
|
|
33
33
|
import UserProfileInfo, { UserProfileInfoProps, UserProfileInfoSkeleton } from './components/UserProfileInfo';
|
|
34
34
|
import UserProfileEdit, { UserProfileEditProps, UserProfileEditSectionPublicInfo, UserProfileEditSectionPublicInfoProps, UserProfileEditSectionSettings, UserProfileEditSectionSettingsProps } from './components/UserProfileEdit';
|
|
35
35
|
import UsersFollowed, { UsersFollowedProps, UsersFollowedSkeleton } from './components/UsersFollowed';
|
|
36
|
+
import UserSocialAssociation, { UserSocialAssociationProps } from './components/UserSocialAssociation';
|
|
36
37
|
import UserFollowers, { UserFollowersProps, UserFollowersSkeleton } from './components/UserFollowers';
|
|
37
38
|
import RelatedFeedObjects, { RelatedFeedObjectsProps, RelatedFeedObjectsSkeleton } from './components/RelatedFeedObjects';
|
|
38
39
|
import CommentObject, { CommentObjectProps, CommentObjectSkeleton } from './components/CommentObject';
|
|
@@ -50,7 +51,7 @@ import Notification, { NotificationProps, NotificationSkeleton } from './compone
|
|
|
50
51
|
import AccountRecover, { AccountRecoverProps } from './components/AccountRecover';
|
|
51
52
|
import AccountReset, { AccountResetProps } from './components/AccountReset';
|
|
52
53
|
import AccountVerify, { AccountVerifyProps } from './components/AccountVerify';
|
|
53
|
-
import { SCBroadcastMessageTemplateType, SCCommentsOrderBy, SCFeedObjectActivitiesType, SCFeedObjectTemplateType, SCFeedWidgetType, SCMediaChunkType, SCMediaObjectType, SCNotificationObjectTemplateType, SCHeaderMenuUrlsType, SCUserProfileFields, SCUserProfileSettings } from './types';
|
|
54
|
+
import { SCBroadcastMessageTemplateType, SCCommentsOrderBy, SCFeedObjectActivitiesType, SCFeedObjectTemplateType, SCFeedWidgetType, SCMediaChunkType, SCMediaObjectType, SCNotificationObjectTemplateType, SCHeaderMenuUrlsType, SCUserProfileFields, SCUserProfileSettings, SCUserSocialAssociations } from './types';
|
|
54
55
|
import Widget from './components/Widget';
|
|
55
56
|
import ConfirmDialog from './shared/ConfirmDialog/ConfirmDialog';
|
|
56
57
|
import BaseItem from './shared/BaseItem';
|
|
@@ -79,6 +80,7 @@ import { DEFAULT_PAGINATION_QUERY_PARAM_NAME, DEFAULT_PAGINATION_OFFSET, DEFAULT
|
|
|
79
80
|
import { FACEBOOK_SHARE, LINKEDIN_SHARE, TWITTER_SHARE } from './constants/SocialShare';
|
|
80
81
|
import { DEFAULT_PRELOAD_OFFSET_VIEWPORT, MAX_PRELOAD_OFFSET_VIEWPORT, MIN_PRELOAD_OFFSET_VIEWPORT } from './constants/LazyLoad';
|
|
81
82
|
import { LEGAL_POLICIES } from './constants/LegalPolicies';
|
|
83
|
+
import { DEFAULT_FIELDS } from './constants/UserProfile';
|
|
82
84
|
/**
|
|
83
85
|
* Utilities:
|
|
84
86
|
* contribute
|
|
@@ -88,5 +90,5 @@ import MetadataField from './shared/MetadataField';
|
|
|
88
90
|
/**
|
|
89
91
|
* List all exports
|
|
90
92
|
*/
|
|
91
|
-
export { AccountRecover, AccountRecoverProps, AccountReset, AccountResetProps, AccountVerify, AccountVerifyProps, BroadcastMessages, BroadcastMessagesProps, BroadcastMessagesSkeleton, Category, CategoryProps, CategorySkeleton, CategoryHeader, CategoryHeaderProps, CategoryHeaderSkeleton, Categories, CategoriesProps, CategoriesSkeleton, CategoriesSkeletonProps, CategoriesFollowed, CategoriesFollowedSkeleton, CategoriesPopular, CategoriesPopularSkeleton, CategoriesSuggestion, CategoriesListProps, CategoriesSuggestionSkeleton, ChangeCover, ChangePicture, ChangePictureProps, ChangeCoverProps, Composer, COMPOSER_TYPE_DISCUSSION, COMPOSER_TYPE_POST, ComposerProps, ComposerSkeleton, Editor, EditorProps, EditorSkeleton, FriendshipUserButton, FriendshipButtonProps, Feed, FeedRef, FeedProps, FeedSidebarProps, FeedSkeleton, FollowCategoryButton, FollowCategoryButtonProps, FollowUserButton, FollowUserButtonProps, ConnectionUserButton, FeedObject, FeedObjectProps, FeedObjectSkeleton, FeedUpdates, FeedUpdatesProps, FeedUpdatesSkeleton, GenericSkeleton, AvatarGroupSkeleton, CommentObject, CommentsObject, CommentsObjectProps, CommentObjectProps, CommentsObjectSkeleton, CommentObjectSkeleton, CommentsFeedObject, CommentsFeedObjectProps, CommentsFeedObjectSkeleton, ReplyComment, InlineComposer, InlineComposerProps, InlineComposerSkeleton, Notification, NotificationProps, NotificationSkeleton, PeopleSuggestion, PeopleSuggestionProps, PeopleSuggestionSkeleton, Platform, PlatformProps, PlatformSkeleton, LoyaltyProgram, LoyaltyProgramProps, LoyaltyProgramSkeleton, LoyaltyProgramDetail, LoyaltyProgramDetailSkeleton, LoyaltyProgramDetailProps, TrendingFeed, TrendingFeedProps, TrendingFeedSkeleton, TrendingPeople, TrendingPeopleProps, TrendingPeopleSkeleton, RelatedFeedObjects, RelatedFeedObjectsProps, RelatedFeedObjectsSkeleton, UserProfileHeader, UserProfileHeaderProps, UserProfileHeaderSkeleton, UserProfileInfo, UserProfileInfoProps, UserProfileInfoSkeleton, SCUserProfileFields, SCUserProfileSettings, UserProfileEdit, UserProfileEditProps, UserProfileEditSectionPublicInfo, UserProfileEditSectionPublicInfoProps, UserProfileEditSectionSettings, UserProfileEditSectionSettingsProps, UsersFollowed, UsersFollowedProps, UsersFollowedSkeleton, UserFollowers, UserFollowersProps, UserFollowersSkeleton, CustomAdv, CustomAdvProps, CustomAdvSkeleton, User, UserProps, UserSkeleton, Thread, ThreadProps, ThreadSkeleton, Message, MessageProps, MessageEditor, MessageEditorProps, MessageEditorSkeleton, Snippets, SnippetsProps, SnippetsSkeleton, MessageSkeleton, ToastNotifications, ToastNotificationsProps, ToastNotificationsSkeleton, SnippetNotifications, SnippetNotificationsProps, SnippetNotificationsSkeleton, Widget, SCFeedWidgetType, SCFeedObjectTemplateType, SCCommentsOrderBy, SCFeedObjectActivitiesType, SCMediaObjectType, SCMediaChunkType, SCNotificationObjectTemplateType, SCBroadcastMessageTemplateType, UrlTextField, UsernameTextField, EmailTextField, PasswordTextField, PhoneTextField, MetadataField, ConfirmDialog, MediaChunkUploader, MediaChunkUploaderProps, Document, Image, Link, Share, EditMediaProps, MEDIA_TYPE_EMBED, FACEBOOK_SHARE, TWITTER_SHARE, LINKEDIN_SHARE, DEFAULT_PRELOAD_OFFSET_VIEWPORT, MIN_PRELOAD_OFFSET_VIEWPORT, MAX_PRELOAD_OFFSET_VIEWPORT, ConsentSolution, ConsentSolutionProps, ConsentSolutionSkeleton, ConsentSolutionButton, ConsentSolutionButtonProps, LEGAL_POLICIES, DEFAULT_PAGINATION_QUERY_PARAM_NAME, DEFAULT_PAGINATION_OFFSET, DEFAULT_PAGINATION_LIMIT, DEFAULT_WIDGETS_NUMBER, PollSuggestion, PollSuggestionProps, Incubator, IncubatorProps, IncubatorsList, IncubatorsListProps, IncubatorDetail, IncubatorDetailProps, IncubatorSuggestion, IncubatorSuggestionProps, ContributionUtils, Footer, FooterProps, SCHeaderMenuUrlsType, Header, HeaderProps, HeaderSkeleton, BaseItem };
|
|
93
|
+
export { AccountRecover, AccountRecoverProps, AccountReset, AccountResetProps, AccountVerify, AccountVerifyProps, BroadcastMessages, BroadcastMessagesProps, BroadcastMessagesSkeleton, Category, CategoryProps, CategorySkeleton, CategoryHeader, CategoryHeaderProps, CategoryHeaderSkeleton, Categories, CategoriesProps, CategoriesSkeleton, CategoriesSkeletonProps, CategoriesFollowed, CategoriesFollowedSkeleton, CategoriesPopular, CategoriesPopularSkeleton, CategoriesSuggestion, CategoriesListProps, CategoriesSuggestionSkeleton, ChangeCover, ChangePicture, ChangePictureProps, ChangeCoverProps, Composer, COMPOSER_TYPE_DISCUSSION, COMPOSER_TYPE_POST, ComposerProps, ComposerSkeleton, Editor, EditorProps, EditorSkeleton, FriendshipUserButton, FriendshipButtonProps, Feed, FeedRef, FeedProps, FeedSidebarProps, FeedSkeleton, FollowCategoryButton, FollowCategoryButtonProps, FollowUserButton, FollowUserButtonProps, ConnectionUserButton, FeedObject, FeedObjectProps, FeedObjectSkeleton, FeedUpdates, FeedUpdatesProps, FeedUpdatesSkeleton, GenericSkeleton, AvatarGroupSkeleton, CommentObject, CommentsObject, CommentsObjectProps, CommentObjectProps, CommentsObjectSkeleton, CommentObjectSkeleton, CommentsFeedObject, CommentsFeedObjectProps, CommentsFeedObjectSkeleton, ReplyComment, InlineComposer, InlineComposerProps, InlineComposerSkeleton, Notification, NotificationProps, NotificationSkeleton, PeopleSuggestion, PeopleSuggestionProps, PeopleSuggestionSkeleton, Platform, PlatformProps, PlatformSkeleton, LoyaltyProgram, LoyaltyProgramProps, LoyaltyProgramSkeleton, LoyaltyProgramDetail, LoyaltyProgramDetailSkeleton, LoyaltyProgramDetailProps, TrendingFeed, TrendingFeedProps, TrendingFeedSkeleton, TrendingPeople, TrendingPeopleProps, TrendingPeopleSkeleton, RelatedFeedObjects, RelatedFeedObjectsProps, RelatedFeedObjectsSkeleton, UserProfileHeader, UserProfileHeaderProps, UserProfileHeaderSkeleton, UserProfileInfo, UserProfileInfoProps, UserProfileInfoSkeleton, SCUserProfileFields, SCUserProfileSettings, UserProfileEdit, UserProfileEditProps, UserProfileEditSectionPublicInfo, UserProfileEditSectionPublicInfoProps, UserProfileEditSectionSettings, UserProfileEditSectionSettingsProps, UsersFollowed, UsersFollowedProps, UsersFollowedSkeleton, UserFollowers, UserFollowersProps, UserFollowersSkeleton, UserSocialAssociation, UserSocialAssociationProps, SCUserSocialAssociations, CustomAdv, CustomAdvProps, CustomAdvSkeleton, User, UserProps, UserSkeleton, Thread, ThreadProps, ThreadSkeleton, Message, MessageProps, MessageEditor, MessageEditorProps, MessageEditorSkeleton, Snippets, SnippetsProps, SnippetsSkeleton, MessageSkeleton, ToastNotifications, ToastNotificationsProps, ToastNotificationsSkeleton, SnippetNotifications, SnippetNotificationsProps, SnippetNotificationsSkeleton, Widget, SCFeedWidgetType, SCFeedObjectTemplateType, SCCommentsOrderBy, SCFeedObjectActivitiesType, SCMediaObjectType, SCMediaChunkType, SCNotificationObjectTemplateType, SCBroadcastMessageTemplateType, UrlTextField, UsernameTextField, EmailTextField, PasswordTextField, PhoneTextField, MetadataField, ConfirmDialog, MediaChunkUploader, MediaChunkUploaderProps, Document, Image, Link, Share, EditMediaProps, MEDIA_TYPE_EMBED, FACEBOOK_SHARE, TWITTER_SHARE, LINKEDIN_SHARE, DEFAULT_PRELOAD_OFFSET_VIEWPORT, MIN_PRELOAD_OFFSET_VIEWPORT, MAX_PRELOAD_OFFSET_VIEWPORT, ConsentSolution, ConsentSolutionProps, ConsentSolutionSkeleton, ConsentSolutionButton, ConsentSolutionButtonProps, LEGAL_POLICIES, DEFAULT_FIELDS, DEFAULT_PAGINATION_QUERY_PARAM_NAME, DEFAULT_PAGINATION_OFFSET, DEFAULT_PAGINATION_LIMIT, DEFAULT_WIDGETS_NUMBER, PollSuggestion, PollSuggestionProps, Incubator, IncubatorProps, IncubatorsList, IncubatorsListProps, IncubatorDetail, IncubatorDetailProps, IncubatorSuggestion, IncubatorSuggestionProps, ContributionUtils, Footer, FooterProps, SCHeaderMenuUrlsType, Header, HeaderProps, HeaderSkeleton, BaseItem };
|
|
92
94
|
//# sourceMappingURL=index.d.ts.map
|
package/lib/cjs/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,iBAAiB,EAAE,EAAC,sBAAsB,EAAE,yBAAyB,EAAC,MAAM,gCAAgC,CAAC;AACpH,OAAO,QAAQ,EAAE,EAAC,aAAa,EAAE,gBAAgB,EAAC,MAAM,uBAAuB,CAAC;AAChF,OAAO,cAAc,EAAE,EAAC,mBAAmB,EAAE,sBAAsB,EAAC,MAAM,6BAA6B,CAAC;AACxG,OAAO,UAAU,EAAE,EAAC,eAAe,EAAE,kBAAkB,EAAE,uBAAuB,EAAC,MAAM,yBAAyB,CAAC;AACjH,OAAO,kBAAkB,EAAE,EAAC,0BAA0B,EAAC,MAAM,iCAAiC,CAAC;AAC/F,OAAO,iBAAiB,EAAE,EAAC,yBAAyB,EAAC,MAAM,gCAAgC,CAAC;AAC5F,OAAO,oBAAoB,EAAE,EAAC,mBAAmB,EAAE,4BAA4B,EAAC,MAAM,mCAAmC,CAAC;AAC1H,OAAO,WAAW,EAAE,EAAC,gBAAgB,EAAC,MAAM,0BAA0B,CAAC;AACvE,OAAO,aAAa,EAAE,EAAC,kBAAkB,EAAC,MAAM,4BAA4B,CAA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ACjB,cAAc,EACd,aAAa,EACb,aAAa,EACb,kBAAkB,EAClB,uBAAuB,EACvB,QAAQ,EACR,KAAK,EACL,IAAI,EACJ,KAAK,EACL,cAAc,EACd,gBAAgB,EAChB,cAAc,EACd,aAAa,EACb,cAAc,EACd,+BAA+B,EAC/B,2BAA2B,EAC3B,2BAA2B,EAE3B,eAAe,EACf,oBAAoB,EACpB,uBAAuB,EACvB,qBAAqB,EACrB,0BAA0B,EAC1B,cAAc,EACd,cAAc,EAEd,mCAAmC,EACnC,yBAAyB,EACzB,wBAAwB,EACxB,sBAAsB,EACtB,cAAc,EACd,mBAAmB,EACnB,SAAS,EACT,cAAc,EACd,cAAc,EACd,mBAAmB,EACnB,eAAe,EACf,oBAAoB,EACpB,mBAAmB,EACnB,wBAAwB,EACxB,iBAAiB,EACjB,MAAM,EACN,WAAW,EACX,oBAAoB,EACpB,MAAM,EACN,WAAW,EACX,cAAc,EACd,QAAQ,EACT,CAAC"}
|
package/lib/cjs/index.js
CHANGED
|
@@ -27,8 +27,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
29
|
exports.PeopleSuggestionSkeleton = exports.PeopleSuggestion = exports.NotificationSkeleton = exports.Notification = exports.InlineComposerSkeleton = exports.InlineComposer = exports.ReplyComment = exports.CommentsFeedObjectSkeleton = exports.CommentsFeedObject = exports.CommentObjectSkeleton = exports.CommentsObjectSkeleton = exports.CommentsObject = exports.CommentObject = exports.AvatarGroupSkeleton = exports.GenericSkeleton = exports.FeedUpdatesSkeleton = exports.FeedUpdates = exports.FeedObjectSkeleton = exports.FeedObject = exports.ConnectionUserButton = exports.FollowUserButton = exports.FollowCategoryButton = exports.FeedSkeleton = exports.Feed = exports.FriendshipUserButton = exports.EditorSkeleton = exports.Editor = exports.ComposerSkeleton = exports.COMPOSER_TYPE_POST = exports.COMPOSER_TYPE_DISCUSSION = exports.Composer = exports.ChangePicture = exports.ChangeCover = exports.CategoriesSuggestionSkeleton = exports.CategoriesSuggestion = exports.CategoriesPopularSkeleton = exports.CategoriesPopular = exports.CategoriesFollowedSkeleton = exports.CategoriesFollowed = exports.CategoriesSkeleton = exports.Categories = exports.CategoryHeaderSkeleton = exports.CategoryHeader = exports.CategorySkeleton = exports.Category = exports.BroadcastMessagesSkeleton = exports.BroadcastMessages = exports.AccountVerify = exports.AccountReset = exports.AccountRecover = void 0;
|
|
30
|
-
exports.
|
|
31
|
-
exports.BaseItem = exports.HeaderSkeleton = exports.Header = exports.Footer = exports.ContributionUtils = exports.IncubatorSuggestion = exports.IncubatorDetail = exports.IncubatorsList = exports.Incubator = exports.PollSuggestion = exports.DEFAULT_WIDGETS_NUMBER = exports.DEFAULT_PAGINATION_LIMIT = exports.DEFAULT_PAGINATION_OFFSET = exports.DEFAULT_PAGINATION_QUERY_PARAM_NAME = exports.LEGAL_POLICIES = exports.ConsentSolutionButton = exports.ConsentSolutionSkeleton = exports.ConsentSolution = exports.MAX_PRELOAD_OFFSET_VIEWPORT = exports.MIN_PRELOAD_OFFSET_VIEWPORT = exports.DEFAULT_PRELOAD_OFFSET_VIEWPORT = exports.LINKEDIN_SHARE = exports.TWITTER_SHARE = exports.FACEBOOK_SHARE = exports.MEDIA_TYPE_EMBED = exports.Share = exports.Link = exports.Image = exports.Document = exports.MediaChunkUploader = exports.ConfirmDialog = exports.MetadataField = exports.PhoneTextField = exports.PasswordTextField = void 0;
|
|
30
|
+
exports.UrlTextField = exports.SCBroadcastMessageTemplateType = exports.SCNotificationObjectTemplateType = exports.SCFeedObjectActivitiesType = exports.SCCommentsOrderBy = exports.SCFeedObjectTemplateType = exports.Widget = exports.SnippetNotificationsSkeleton = exports.SnippetNotifications = exports.ToastNotificationsSkeleton = exports.ToastNotifications = exports.MessageSkeleton = exports.SnippetsSkeleton = exports.Snippets = exports.MessageEditorSkeleton = exports.MessageEditor = exports.Message = exports.ThreadSkeleton = exports.Thread = exports.UserSkeleton = exports.User = exports.CustomAdvSkeleton = exports.CustomAdv = exports.SCUserSocialAssociations = exports.UserSocialAssociation = exports.UserFollowersSkeleton = exports.UserFollowers = exports.UsersFollowedSkeleton = exports.UsersFollowed = exports.UserProfileEditSectionSettings = exports.UserProfileEditSectionPublicInfo = exports.UserProfileEdit = exports.SCUserProfileSettings = exports.SCUserProfileFields = exports.UserProfileInfoSkeleton = exports.UserProfileInfo = exports.UserProfileHeaderSkeleton = exports.UserProfileHeader = exports.RelatedFeedObjectsSkeleton = exports.RelatedFeedObjects = exports.TrendingPeopleSkeleton = exports.TrendingPeople = exports.TrendingFeedSkeleton = exports.TrendingFeed = exports.LoyaltyProgramDetailSkeleton = exports.LoyaltyProgramDetail = exports.LoyaltyProgramSkeleton = exports.LoyaltyProgram = exports.PlatformSkeleton = exports.Platform = void 0;
|
|
31
|
+
exports.BaseItem = exports.HeaderSkeleton = exports.Header = exports.Footer = exports.ContributionUtils = exports.IncubatorSuggestion = exports.IncubatorDetail = exports.IncubatorsList = exports.Incubator = exports.PollSuggestion = exports.DEFAULT_WIDGETS_NUMBER = exports.DEFAULT_PAGINATION_LIMIT = exports.DEFAULT_PAGINATION_OFFSET = exports.DEFAULT_PAGINATION_QUERY_PARAM_NAME = exports.DEFAULT_FIELDS = exports.LEGAL_POLICIES = exports.ConsentSolutionButton = exports.ConsentSolutionSkeleton = exports.ConsentSolution = exports.MAX_PRELOAD_OFFSET_VIEWPORT = exports.MIN_PRELOAD_OFFSET_VIEWPORT = exports.DEFAULT_PRELOAD_OFFSET_VIEWPORT = exports.LINKEDIN_SHARE = exports.TWITTER_SHARE = exports.FACEBOOK_SHARE = exports.MEDIA_TYPE_EMBED = exports.Share = exports.Link = exports.Image = exports.Document = exports.MediaChunkUploader = exports.ConfirmDialog = exports.MetadataField = exports.PhoneTextField = exports.PasswordTextField = exports.EmailTextField = exports.UsernameTextField = void 0;
|
|
32
32
|
/**
|
|
33
33
|
* Components
|
|
34
34
|
*/
|
|
@@ -123,6 +123,8 @@ Object.defineProperty(exports, "UserProfileEditSectionSettings", { enumerable: t
|
|
|
123
123
|
const UsersFollowed_1 = __importStar(require("./components/UsersFollowed"));
|
|
124
124
|
exports.UsersFollowed = UsersFollowed_1.default;
|
|
125
125
|
Object.defineProperty(exports, "UsersFollowedSkeleton", { enumerable: true, get: function () { return UsersFollowed_1.UsersFollowedSkeleton; } });
|
|
126
|
+
const UserSocialAssociation_1 = __importDefault(require("./components/UserSocialAssociation"));
|
|
127
|
+
exports.UserSocialAssociation = UserSocialAssociation_1.default;
|
|
126
128
|
const UserFollowers_1 = __importStar(require("./components/UserFollowers"));
|
|
127
129
|
exports.UserFollowers = UserFollowers_1.default;
|
|
128
130
|
Object.defineProperty(exports, "UserFollowersSkeleton", { enumerable: true, get: function () { return UserFollowers_1.UserFollowersSkeleton; } });
|
|
@@ -178,6 +180,7 @@ Object.defineProperty(exports, "SCFeedObjectTemplateType", { enumerable: true, g
|
|
|
178
180
|
Object.defineProperty(exports, "SCNotificationObjectTemplateType", { enumerable: true, get: function () { return types_1.SCNotificationObjectTemplateType; } });
|
|
179
181
|
Object.defineProperty(exports, "SCUserProfileFields", { enumerable: true, get: function () { return types_1.SCUserProfileFields; } });
|
|
180
182
|
Object.defineProperty(exports, "SCUserProfileSettings", { enumerable: true, get: function () { return types_1.SCUserProfileSettings; } });
|
|
183
|
+
Object.defineProperty(exports, "SCUserSocialAssociations", { enumerable: true, get: function () { return types_1.SCUserSocialAssociations; } });
|
|
181
184
|
const Widget_1 = __importDefault(require("./components/Widget"));
|
|
182
185
|
exports.Widget = Widget_1.default;
|
|
183
186
|
const ConfirmDialog_1 = __importDefault(require("./shared/ConfirmDialog/ConfirmDialog"));
|
|
@@ -242,6 +245,8 @@ Object.defineProperty(exports, "MAX_PRELOAD_OFFSET_VIEWPORT", { enumerable: true
|
|
|
242
245
|
Object.defineProperty(exports, "MIN_PRELOAD_OFFSET_VIEWPORT", { enumerable: true, get: function () { return LazyLoad_1.MIN_PRELOAD_OFFSET_VIEWPORT; } });
|
|
243
246
|
const LegalPolicies_1 = require("./constants/LegalPolicies");
|
|
244
247
|
Object.defineProperty(exports, "LEGAL_POLICIES", { enumerable: true, get: function () { return LegalPolicies_1.LEGAL_POLICIES; } });
|
|
248
|
+
const UserProfile_1 = require("./constants/UserProfile");
|
|
249
|
+
Object.defineProperty(exports, "DEFAULT_FIELDS", { enumerable: true, get: function () { return UserProfile_1.DEFAULT_FIELDS; } });
|
|
245
250
|
/**
|
|
246
251
|
* Utilities:
|
|
247
252
|
* contribute
|
package/lib/cjs/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;GAEG;AACH,oFAAoH;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;GAEG;AACH,oFAAoH;AAsHlH,4BAtHK,2BAAiB,CAsHL;AAEjB,0GAxHiD,6CAAyB,OAwHjD;AAvH3B,kEAAgF;AAwH9E,mBAxHK,kBAAQ,CAwHL;AAER,iGA1H+B,2BAAgB,OA0H/B;AAzHlB,8EAAwG;AA0HtG,yBA1HK,wBAAc,CA0HL;AAEd,uGA5H2C,uCAAsB,OA4H3C;AA3HxB,sEAAiH;AA4H/G,qBA5HK,oBAAU,CA4HL;AAEV,mGA9HmC,+BAAkB,OA8HnC;AA7HpB,sFAA+F;AA+H7F,6BA/HK,4BAAkB,CA+HL;AAClB,2GAhI0B,+CAA0B,OAgI1B;AA/H5B,oFAA4F;AAgI1F,4BAhIK,2BAAiB,CAgIL;AACjB,0GAjIyB,6CAAyB,OAiIzB;AAhI3B,0FAA0H;AAiIxH,+BAjIK,8BAAoB,CAiIL;AAEpB,6GAnIiD,mDAA4B,OAmIjD;AAlI9B,2EAAuE;AAmIrE,sBAn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+FAjMM,4BAAc,OAiMN;AA/LhB;;;GAGG;AACH,wEAA0D;AA2MxD,8CAAiB;AA1MnB,2EAAmD;AAmKjD,wBAnKK,uBAAa,CAmKL"}
|
package/lib/cjs/types/index.d.ts
CHANGED
|
@@ -5,6 +5,6 @@ import { SCFeedObjectActivitiesType, SCFeedObjectTemplateType } from './feedObje
|
|
|
5
5
|
import { SCNotificationObjectTemplateType } from './notification';
|
|
6
6
|
import { SCBroadcastMessageTemplateType } from './broadcastMessage';
|
|
7
7
|
import { SCHeaderMenuUrlsType } from './headerMenuUrls';
|
|
8
|
-
import { SCUserProfileFields, SCUserProfileSettings } from './user';
|
|
9
|
-
export { SCFeedWidgetType, SCMediaObjectType, SCMediaChunkType, SCCommentsOrderBy, SCFeedObjectActivitiesType, SCFeedObjectTemplateType, SCNotificationObjectTemplateType, SCBroadcastMessageTemplateType, SCHeaderMenuUrlsType, SCUserProfileFields, SCUserProfileSettings };
|
|
8
|
+
import { SCUserProfileFields, SCUserProfileSettings, SCUserSocialAssociations } from './user';
|
|
9
|
+
export { SCFeedWidgetType, SCMediaObjectType, SCMediaChunkType, SCCommentsOrderBy, SCFeedObjectActivitiesType, SCFeedObjectTemplateType, SCNotificationObjectTemplateType, SCBroadcastMessageTemplateType, SCHeaderMenuUrlsType, SCUserProfileFields, SCUserProfileSettings, SCUserSocialAssociations };
|
|
10
10
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/types/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,gBAAgB,EAAC,MAAM,QAAQ,CAAC;AACxC,OAAO,EAAC,iBAAiB,EAAE,gBAAgB,EAAC,MAAM,SAAS,CAAC;AAC5D,OAAO,EAAC,iBAAiB,EAAC,MAAM,YAAY,CAAC;AAC7C,OAAO,EAAC,0BAA0B,EAAE,wBAAwB,EAAC,MAAM,cAAc,CAAC;AAClF,OAAO,EAAC,gCAAgC,EAAC,MAAM,gBAAgB,CAAC;AAChE,OAAO,EAAC,8BAA8B,EAAC,MAAM,oBAAoB,CAAC;AAClE,OAAO,EAAC,oBAAoB,EAAC,MAAM,kBAAkB,CAAC;AACtD,OAAO,EAAC,mBAAmB,EAAE,qBAAqB,EAAC,MAAM,QAAQ,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/types/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,gBAAgB,EAAC,MAAM,QAAQ,CAAC;AACxC,OAAO,EAAC,iBAAiB,EAAE,gBAAgB,EAAC,MAAM,SAAS,CAAC;AAC5D,OAAO,EAAC,iBAAiB,EAAC,MAAM,YAAY,CAAC;AAC7C,OAAO,EAAC,0BAA0B,EAAE,wBAAwB,EAAC,MAAM,cAAc,CAAC;AAClF,OAAO,EAAC,gCAAgC,EAAC,MAAM,gBAAgB,CAAC;AAChE,OAAO,EAAC,8BAA8B,EAAC,MAAM,oBAAoB,CAAC;AAClE,OAAO,EAAC,oBAAoB,EAAC,MAAM,kBAAkB,CAAC;AACtD,OAAO,EAAC,mBAAmB,EAAE,qBAAqB,EAAE,wBAAwB,EAAC,MAAM,QAAQ,CAAC;AAE5F,OAAO,EACL,gBAAgB,EAChB,iBAAiB,EACjB,gBAAgB,EAChB,iBAAiB,EACjB,0BAA0B,EAC1B,wBAAwB,EACxB,gCAAgC,EAChC,8BAA8B,EAC9B,oBAAoB,EACpB,mBAAmB,EACnB,qBAAqB,EACrB,wBAAwB,EACzB,CAAC"}
|
package/lib/cjs/types/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SCUserProfileSettings = exports.SCUserProfileFields = exports.SCBroadcastMessageTemplateType = exports.SCNotificationObjectTemplateType = exports.SCFeedObjectTemplateType = exports.SCFeedObjectActivitiesType = exports.SCCommentsOrderBy = void 0;
|
|
3
|
+
exports.SCUserSocialAssociations = exports.SCUserProfileSettings = exports.SCUserProfileFields = exports.SCBroadcastMessageTemplateType = exports.SCNotificationObjectTemplateType = exports.SCFeedObjectTemplateType = exports.SCFeedObjectActivitiesType = exports.SCCommentsOrderBy = void 0;
|
|
4
4
|
const comments_1 = require("./comments");
|
|
5
5
|
Object.defineProperty(exports, "SCCommentsOrderBy", { enumerable: true, get: function () { return comments_1.SCCommentsOrderBy; } });
|
|
6
6
|
const feedObject_1 = require("./feedObject");
|
|
@@ -13,4 +13,5 @@ Object.defineProperty(exports, "SCBroadcastMessageTemplateType", { enumerable: t
|
|
|
13
13
|
const user_1 = require("./user");
|
|
14
14
|
Object.defineProperty(exports, "SCUserProfileFields", { enumerable: true, get: function () { return user_1.SCUserProfileFields; } });
|
|
15
15
|
Object.defineProperty(exports, "SCUserProfileSettings", { enumerable: true, get: function () { return user_1.SCUserProfileSettings; } });
|
|
16
|
+
Object.defineProperty(exports, "SCUserSocialAssociations", { enumerable: true, get: function () { return user_1.SCUserSocialAssociations; } });
|
|
16
17
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/index.ts"],"names":[],"mappings":";;;AAEA,yCAA6C;AAW3C,kGAXM,4BAAiB,OAWN;AAVnB,6CAAkF;AAWhF,2GAXM,uCAA0B,OAWN;AAC1B,yGAZkC,qCAAwB,OAYlC;AAX1B,iDAAgE;AAY9D,iHAZM,+CAAgC,OAYN;AAXlC,yDAAkE;AAYhE,+GAZM,iDAA8B,OAYN;AAVhC,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/index.ts"],"names":[],"mappings":";;;AAEA,yCAA6C;AAW3C,kGAXM,4BAAiB,OAWN;AAVnB,6CAAkF;AAWhF,2GAXM,uCAA0B,OAWN;AAC1B,yGAZkC,qCAAwB,OAYlC;AAX1B,iDAAgE;AAY9D,iHAZM,+CAAgC,OAYN;AAXlC,yDAAkE;AAYhE,+GAZM,iDAA8B,OAYN;AAVhC,iCAA4F;AAY1F,oGAZM,0BAAmB,OAYN;AACnB,sGAb2B,4BAAqB,OAa3B;AACrB,yGAdkD,+BAAwB,OAclD"}
|
package/lib/cjs/types/user.d.ts
CHANGED
|
@@ -11,7 +11,8 @@ export declare enum SCUserProfileFields {
|
|
|
11
11
|
DESCRIPTION = "description",
|
|
12
12
|
GENDER = "gender",
|
|
13
13
|
WEBSITE = "website",
|
|
14
|
-
TAGS = "tags"
|
|
14
|
+
TAGS = "tags",
|
|
15
|
+
SOCIAL_ASSOCIATIONS = "social_associations"
|
|
15
16
|
}
|
|
16
17
|
/**
|
|
17
18
|
* User Profile Settings
|
|
@@ -21,4 +22,13 @@ export declare enum SCUserProfileSettings {
|
|
|
21
22
|
INTERACTION = "interaction",
|
|
22
23
|
PRIVATE_MESSAGE = "private_message"
|
|
23
24
|
}
|
|
25
|
+
/**
|
|
26
|
+
* User Profile Settings
|
|
27
|
+
*/
|
|
28
|
+
export declare enum SCUserSocialAssociations {
|
|
29
|
+
GOOGLE = "google",
|
|
30
|
+
FACEBOOK = "facebook",
|
|
31
|
+
TWITTER = "twitter",
|
|
32
|
+
LINKEDIN = "linkedin"
|
|
33
|
+
}
|
|
24
34
|
//# sourceMappingURL=user.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user.d.ts","sourceRoot":"","sources":["../../../src/types/user.tsx"],"names":[],"mappings":"AAAA;;GAEG;AACH,oBAAY,mBAAmB;IAC7B,QAAQ,aAAa;IACrB,SAAS,cAAc;IACvB,WAAW,gBAAgB;IAC3B,GAAG,QAAQ;IACX,QAAQ,aAAa;IACrB,aAAa,kBAAkB;IAC/B,WAAW,gBAAgB;IAC3B,MAAM,WAAW;IACjB,OAAO,YAAY;IACnB,IAAI,SAAS;
|
|
1
|
+
{"version":3,"file":"user.d.ts","sourceRoot":"","sources":["../../../src/types/user.tsx"],"names":[],"mappings":"AAAA;;GAEG;AACH,oBAAY,mBAAmB;IAC7B,QAAQ,aAAa;IACrB,SAAS,cAAc;IACvB,WAAW,gBAAgB;IAC3B,GAAG,QAAQ;IACX,QAAQ,aAAa;IACrB,aAAa,kBAAkB;IAC/B,WAAW,gBAAgB;IAC3B,MAAM,WAAW;IACjB,OAAO,YAAY;IACnB,IAAI,SAAS;IACb,mBAAmB,wBAAwB;CAC5C;AAED;;GAEG;AACH,oBAAY,qBAAqB;IAC/B,YAAY,iBAAiB;IAC7B,WAAW,gBAAgB;IAC3B,eAAe,oBAAoB;CACpC;AAED;;GAEG;AACH,oBAAY,wBAAwB;IAClC,MAAM,WAAW;IACjB,QAAQ,aAAa;IACrB,OAAO,YAAY;IACnB,QAAQ,aAAa;CACtB"}
|
package/lib/cjs/types/user.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SCUserProfileSettings = exports.SCUserProfileFields = void 0;
|
|
3
|
+
exports.SCUserSocialAssociations = exports.SCUserProfileSettings = exports.SCUserProfileFields = void 0;
|
|
4
4
|
/**
|
|
5
5
|
* User Profile Fields
|
|
6
6
|
*/
|
|
@@ -16,6 +16,7 @@ var SCUserProfileFields;
|
|
|
16
16
|
SCUserProfileFields["GENDER"] = "gender";
|
|
17
17
|
SCUserProfileFields["WEBSITE"] = "website";
|
|
18
18
|
SCUserProfileFields["TAGS"] = "tags";
|
|
19
|
+
SCUserProfileFields["SOCIAL_ASSOCIATIONS"] = "social_associations";
|
|
19
20
|
})(SCUserProfileFields = exports.SCUserProfileFields || (exports.SCUserProfileFields = {}));
|
|
20
21
|
/**
|
|
21
22
|
* User Profile Settings
|
|
@@ -26,4 +27,14 @@ var SCUserProfileSettings;
|
|
|
26
27
|
SCUserProfileSettings["INTERACTION"] = "interaction";
|
|
27
28
|
SCUserProfileSettings["PRIVATE_MESSAGE"] = "private_message";
|
|
28
29
|
})(SCUserProfileSettings = exports.SCUserProfileSettings || (exports.SCUserProfileSettings = {}));
|
|
30
|
+
/**
|
|
31
|
+
* User Profile Settings
|
|
32
|
+
*/
|
|
33
|
+
var SCUserSocialAssociations;
|
|
34
|
+
(function (SCUserSocialAssociations) {
|
|
35
|
+
SCUserSocialAssociations["GOOGLE"] = "google";
|
|
36
|
+
SCUserSocialAssociations["FACEBOOK"] = "facebook";
|
|
37
|
+
SCUserSocialAssociations["TWITTER"] = "twitter";
|
|
38
|
+
SCUserSocialAssociations["LINKEDIN"] = "linkedin";
|
|
39
|
+
})(SCUserSocialAssociations = exports.SCUserSocialAssociations || (exports.SCUserSocialAssociations = {}));
|
|
29
40
|
//# sourceMappingURL=user.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user.js","sourceRoot":"","sources":["../../../src/types/user.tsx"],"names":[],"mappings":";;;AAAA;;GAEG;AACH,IAAY,
|
|
1
|
+
{"version":3,"file":"user.js","sourceRoot":"","sources":["../../../src/types/user.tsx"],"names":[],"mappings":";;;AAAA;;GAEG;AACH,IAAY,mBAYX;AAZD,WAAY,mBAAmB;IAC7B,4CAAqB,CAAA;IACrB,8CAAuB,CAAA;IACvB,kDAA2B,CAAA;IAC3B,kCAAW,CAAA;IACX,4CAAqB,CAAA;IACrB,sDAA+B,CAAA;IAC/B,kDAA2B,CAAA;IAC3B,wCAAiB,CAAA;IACjB,0CAAmB,CAAA;IACnB,oCAAa,CAAA;IACb,kEAA2C,CAAA;AAC7C,CAAC,EAZW,mBAAmB,GAAnB,2BAAmB,KAAnB,2BAAmB,QAY9B;AAED;;GAEG;AACH,IAAY,qBAIX;AAJD,WAAY,qBAAqB;IAC/B,sDAA6B,CAAA;IAC7B,oDAA2B,CAAA;IAC3B,4DAAmC,CAAA;AACrC,CAAC,EAJW,qBAAqB,GAArB,6BAAqB,KAArB,6BAAqB,QAIhC;AAED;;GAEG;AACH,IAAY,wBAKX;AALD,WAAY,wBAAwB;IAClC,6CAAiB,CAAA;IACjB,iDAAqB,CAAA;IACrB,+CAAmB,CAAA;IACnB,iDAAqB,CAAA;AACvB,CAAC,EALW,wBAAwB,GAAxB,gCAAwB,KAAxB,gCAAwB,QAKnC"}
|
|
@@ -19,6 +19,16 @@ export interface PublicInfoProps {
|
|
|
19
19
|
* Callback on edit data with success
|
|
20
20
|
*/
|
|
21
21
|
onEditSuccess?: (editedField?: {}) => void;
|
|
22
|
+
/**
|
|
23
|
+
* Callback on delete social association success
|
|
24
|
+
* @default null
|
|
25
|
+
*/
|
|
26
|
+
onAssociationDelete?: () => void;
|
|
27
|
+
/**
|
|
28
|
+
* Callback on create social association
|
|
29
|
+
* default null
|
|
30
|
+
*/
|
|
31
|
+
onAssociationCreate?: (provider: string) => void;
|
|
22
32
|
/**
|
|
23
33
|
* Any other properties
|
|
24
34
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PublicInfo.d.ts","sourceRoot":"","sources":["../../../../../src/components/UserProfileEdit/Section/PublicInfo.tsx"],"names":[],"mappings":"AAgBA,OAAO,EAAC,mBAAmB,EAAC,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"PublicInfo.d.ts","sourceRoot":"","sources":["../../../../../src/components/UserProfileEdit/Section/PublicInfo.tsx"],"names":[],"mappings":"AAgBA,OAAO,EAAC,mBAAmB,EAAC,MAAM,gBAAgB,CAAC;AAwCnD,MAAM,WAAW,eAAe;IAC9B;;;OAGG;IACH,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;OAGG;IACH,MAAM,CAAC,EAAE,mBAAmB,EAAE,CAAC;IAE/B;;OAEG;IACH,aAAa,CAAC,EAAE,CAAC,WAAW,CAAC,EAAE,EAAE,KAAK,IAAI,CAAC;IAC3C;;;OAGG;IACH,mBAAmB,CAAC,EAAE,MAAM,IAAI,CAAC;IACjC;;;OAGG;IACH,mBAAmB,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;IACjD;;OAEG;IACH,CAAC,CAAC,EAAE,MAAM,GAAG,GAAG,CAAC;CAClB;AAID,MAAM,CAAC,OAAO,UAAU,UAAU,CAAC,OAAO,EAAE,eAAe,GAAG,GAAG,CAAC,OAAO,CAgPxE"}
|
|
@@ -27,6 +27,7 @@ import { useThemeProps } from '@mui/system';
|
|
|
27
27
|
import { SCUserProfileFields } from '../../../types';
|
|
28
28
|
import MetadataField from '../../../shared/MetadataField';
|
|
29
29
|
import { SCOPE_SC_UI } from '../../../constants/Errors';
|
|
30
|
+
import SocialAccount from './SocialAccount';
|
|
30
31
|
const messages = defineMessages({
|
|
31
32
|
genderMale: {
|
|
32
33
|
id: 'ui.userProfileEditPublicInfo.genderMale',
|
|
@@ -66,7 +67,7 @@ export default function PublicInfo(inProps) {
|
|
|
66
67
|
props: inProps,
|
|
67
68
|
name: PREFIX
|
|
68
69
|
});
|
|
69
|
-
const { id = null, className = null, fields = [...DEFAULT_FIELDS], onEditSuccess = null, editingField } = props, rest = __rest(props, ["id", "className", "fields", "onEditSuccess", "editingField"]);
|
|
70
|
+
const { id = null, className = null, fields = [...DEFAULT_FIELDS], onEditSuccess = null, onAssociationDelete = null, onAssociationCreate = null, editingField } = props, rest = __rest(props, ["id", "className", "fields", "onEditSuccess", "onAssociationDelete", "onAssociationCreate", "editingField"]);
|
|
70
71
|
// CONTEXT
|
|
71
72
|
const scUserContext = useSCUser();
|
|
72
73
|
// PREFERENCES
|
|
@@ -195,6 +196,9 @@ export default function PublicInfo(inProps) {
|
|
|
195
196
|
break;
|
|
196
197
|
case SCUserProfileFields.TAGS:
|
|
197
198
|
return null;
|
|
199
|
+
case SCUserProfileFields.SOCIAL_ASSOCIATIONS:
|
|
200
|
+
return (React.createElement(React.Fragment, { key: field },
|
|
201
|
+
React.createElement(SocialAccount, { user: user, handleAssociation: onAssociationCreate })));
|
|
198
202
|
default:
|
|
199
203
|
if (metadataDefinitions && metadataDefinitions[field]) {
|
|
200
204
|
return (React.createElement(MetadataField, Object.assign({ id: field, key: field }, props, { className: classes.field, name: field, fullWidth: true, label: label, value: user[field] || '', onChange: handleChange, disabled: !isEditing || isSaving, error: _error, helperText: _error, metadata: metadataDefinitions[field] })));
|