@atlaskit/smart-user-picker 10.0.1 → 10.0.2
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/CHANGELOG.md +8 -0
- package/dist/cjs/i18n.js +1 -1
- package/dist/cjs/service/users-transformer.js +3 -1
- package/dist/es2019/i18n.js +1 -1
- package/dist/es2019/service/users-transformer.js +3 -1
- package/dist/esm/i18n.js +1 -1
- package/dist/esm/service/users-transformer.js +3 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @atlassian/smart-user-picker
|
|
2
2
|
|
|
3
|
+
## 10.0.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`a95470b46e97e`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/a95470b46e97e) -
|
|
8
|
+
Map `appType` field from the recommendation service response through `users-transformer` so that
|
|
9
|
+
agent principals correctly expose `appType` on the resulting `OptionData` object.
|
|
10
|
+
|
|
3
11
|
## 10.0.1
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
package/dist/cjs/i18n.js
CHANGED
|
@@ -9,7 +9,7 @@ var messages = exports.messages = (0, _reactIntl.defineMessages)({
|
|
|
9
9
|
externalUserSourcesHeading: {
|
|
10
10
|
id: 'fabric.elements.user-picker.external.sourced.from',
|
|
11
11
|
defaultMessage: 'Found in:',
|
|
12
|
-
description: '
|
|
12
|
+
description: 'The text is shown as a label in the user picker dropdown preceding the list of external organizations or directories where the external user account was found (e.g. a guest directory or external workspace).'
|
|
13
13
|
},
|
|
14
14
|
slackProvider: {
|
|
15
15
|
id: 'fabric.elements.user-picker.slack.provider',
|
|
@@ -30,6 +30,7 @@ var getLozenzeProperties = function getLozenzeProperties(entity, intl) {
|
|
|
30
30
|
var transformUser = function transformUser(item, intl) {
|
|
31
31
|
var type = item.entityType;
|
|
32
32
|
if (type === _types.EntityType.USER) {
|
|
33
|
+
var _user$attributes;
|
|
33
34
|
var user = item;
|
|
34
35
|
var lozenge = getLozenzeProperties(user, intl);
|
|
35
36
|
return {
|
|
@@ -43,7 +44,8 @@ var transformUser = function transformUser(item, intl) {
|
|
|
43
44
|
lozenge: lozenge,
|
|
44
45
|
tooltip: user.name,
|
|
45
46
|
isExternal: Boolean(user.nonLicensedUser),
|
|
46
|
-
sources: user.nonLicensedUser ? ['other-atlassian'] : undefined
|
|
47
|
+
sources: user.nonLicensedUser ? ['other-atlassian'] : undefined,
|
|
48
|
+
appType: user.appType !== undefined ? user.appType : (_user$attributes = user.attributes) === null || _user$attributes === void 0 ? void 0 : _user$attributes.appType
|
|
47
49
|
};
|
|
48
50
|
}
|
|
49
51
|
if (type === _types.EntityType.TEAM) {
|
package/dist/es2019/i18n.js
CHANGED
|
@@ -3,7 +3,7 @@ export const messages = defineMessages({
|
|
|
3
3
|
externalUserSourcesHeading: {
|
|
4
4
|
id: 'fabric.elements.user-picker.external.sourced.from',
|
|
5
5
|
defaultMessage: 'Found in:',
|
|
6
|
-
description: '
|
|
6
|
+
description: 'The text is shown as a label in the user picker dropdown preceding the list of external organizations or directories where the external user account was found (e.g. a guest directory or external workspace).'
|
|
7
7
|
},
|
|
8
8
|
slackProvider: {
|
|
9
9
|
id: 'fabric.elements.user-picker.slack.provider',
|
|
@@ -24,6 +24,7 @@ const getLozenzeProperties = (entity, intl) => {
|
|
|
24
24
|
const transformUser = (item, intl) => {
|
|
25
25
|
const type = item.entityType;
|
|
26
26
|
if (type === EntityType.USER) {
|
|
27
|
+
var _user$attributes;
|
|
27
28
|
const user = item;
|
|
28
29
|
const lozenge = getLozenzeProperties(user, intl);
|
|
29
30
|
return {
|
|
@@ -37,7 +38,8 @@ const transformUser = (item, intl) => {
|
|
|
37
38
|
lozenge: lozenge,
|
|
38
39
|
tooltip: user.name,
|
|
39
40
|
isExternal: Boolean(user.nonLicensedUser),
|
|
40
|
-
sources: user.nonLicensedUser ? ['other-atlassian'] : undefined
|
|
41
|
+
sources: user.nonLicensedUser ? ['other-atlassian'] : undefined,
|
|
42
|
+
appType: user.appType !== undefined ? user.appType : (_user$attributes = user.attributes) === null || _user$attributes === void 0 ? void 0 : _user$attributes.appType
|
|
41
43
|
};
|
|
42
44
|
}
|
|
43
45
|
if (type === EntityType.TEAM) {
|
package/dist/esm/i18n.js
CHANGED
|
@@ -3,7 +3,7 @@ export var messages = defineMessages({
|
|
|
3
3
|
externalUserSourcesHeading: {
|
|
4
4
|
id: 'fabric.elements.user-picker.external.sourced.from',
|
|
5
5
|
defaultMessage: 'Found in:',
|
|
6
|
-
description: '
|
|
6
|
+
description: 'The text is shown as a label in the user picker dropdown preceding the list of external organizations or directories where the external user account was found (e.g. a guest directory or external workspace).'
|
|
7
7
|
},
|
|
8
8
|
slackProvider: {
|
|
9
9
|
id: 'fabric.elements.user-picker.slack.provider',
|
|
@@ -24,6 +24,7 @@ var getLozenzeProperties = function getLozenzeProperties(entity, intl) {
|
|
|
24
24
|
var transformUser = function transformUser(item, intl) {
|
|
25
25
|
var type = item.entityType;
|
|
26
26
|
if (type === EntityType.USER) {
|
|
27
|
+
var _user$attributes;
|
|
27
28
|
var user = item;
|
|
28
29
|
var lozenge = getLozenzeProperties(user, intl);
|
|
29
30
|
return {
|
|
@@ -37,7 +38,8 @@ var transformUser = function transformUser(item, intl) {
|
|
|
37
38
|
lozenge: lozenge,
|
|
38
39
|
tooltip: user.name,
|
|
39
40
|
isExternal: Boolean(user.nonLicensedUser),
|
|
40
|
-
sources: user.nonLicensedUser ? ['other-atlassian'] : undefined
|
|
41
|
+
sources: user.nonLicensedUser ? ['other-atlassian'] : undefined,
|
|
42
|
+
appType: user.appType !== undefined ? user.appType : (_user$attributes = user.attributes) === null || _user$attributes === void 0 ? void 0 : _user$attributes.appType
|
|
41
43
|
};
|
|
42
44
|
}
|
|
43
45
|
if (type === EntityType.TEAM) {
|