@atlaskit/user-picker 8.6.4 → 8.7.0
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 +6 -0
- package/dist/cjs/components/ExternalUserOption/main.js +9 -5
- package/dist/cjs/components/i18n.js +6 -1
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/components/ExternalUserOption/main.js +7 -2
- package/dist/es2019/components/i18n.js +6 -1
- package/dist/es2019/version.json +1 -1
- package/dist/esm/components/ExternalUserOption/main.js +7 -2
- package/dist/esm/components/i18n.js +6 -1
- package/dist/esm/version.json +1 -1
- package/dist/types/components/i18n.d.ts +5 -0
- package/dist/types/types.d.ts +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @atlaskit/user-picker
|
|
2
2
|
|
|
3
|
+
## 8.7.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`90f5bb4745c`](https://bitbucket.org/atlassian/atlassian-frontend/commits/90f5bb4745c) - [ux] Sources tooltip: support 'Other Atlassian products', change heading
|
|
8
|
+
|
|
3
9
|
## 8.6.4
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
|
@@ -31,9 +31,7 @@ var _reactIntlNext = require("react-intl-next");
|
|
|
31
31
|
|
|
32
32
|
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
33
33
|
|
|
34
|
-
var
|
|
35
|
-
|
|
36
|
-
var _jiraIcon = require("@atlaskit/logo/jira-icon");
|
|
34
|
+
var _logo = require("@atlaskit/logo");
|
|
37
35
|
|
|
38
36
|
var _spinner = _interopRequireDefault(require("@atlaskit/spinner"));
|
|
39
37
|
|
|
@@ -102,16 +100,22 @@ var SourcesInfoMap = new Map([['slack', {
|
|
|
102
100
|
label: _i18n.messages.gitHubProvider
|
|
103
101
|
}], ['jira', {
|
|
104
102
|
key: 'jira',
|
|
105
|
-
icon: /*#__PURE__*/_react.default.createElement(
|
|
103
|
+
icon: /*#__PURE__*/_react.default.createElement(_logo.JiraIcon, {
|
|
106
104
|
size: 'xsmall'
|
|
107
105
|
}),
|
|
108
106
|
label: _i18n.messages.jiraSource
|
|
109
107
|
}], ['confluence', {
|
|
110
108
|
key: 'confluence',
|
|
111
|
-
icon: /*#__PURE__*/_react.default.createElement(
|
|
109
|
+
icon: /*#__PURE__*/_react.default.createElement(_logo.ConfluenceIcon, {
|
|
112
110
|
size: 'xsmall'
|
|
113
111
|
}),
|
|
114
112
|
label: _i18n.messages.confluenceSource
|
|
113
|
+
}], ['other-atlassian', {
|
|
114
|
+
key: 'other-atlassian',
|
|
115
|
+
icon: /*#__PURE__*/_react.default.createElement(_logo.AtlassianIcon, {
|
|
116
|
+
size: 'xsmall'
|
|
117
|
+
}),
|
|
118
|
+
label: _i18n.messages.otherAtlassianSource
|
|
115
119
|
}]]);
|
|
116
120
|
|
|
117
121
|
var ExternalUserOption = /*#__PURE__*/function (_React$PureComponent) {
|
|
@@ -70,7 +70,7 @@ var messages = (0, _reactIntlNext.defineMessages)({
|
|
|
70
70
|
},
|
|
71
71
|
externalUserSourcesHeading: {
|
|
72
72
|
id: 'fabric.elements.user-picker.external.sourced.from',
|
|
73
|
-
defaultMessage: '
|
|
73
|
+
defaultMessage: 'Also found in:',
|
|
74
74
|
description: 'From where the external user is coming'
|
|
75
75
|
},
|
|
76
76
|
externalUserSourcesError: {
|
|
@@ -108,6 +108,11 @@ var messages = (0, _reactIntlNext.defineMessages)({
|
|
|
108
108
|
defaultMessage: 'Confluence',
|
|
109
109
|
description: 'This external user is sourced from Confluence'
|
|
110
110
|
},
|
|
111
|
+
otherAtlassianSource: {
|
|
112
|
+
id: 'fabric.elements.user-picker.source.other-atlassian',
|
|
113
|
+
defaultMessage: 'Other Atlassian products',
|
|
114
|
+
description: 'This external user is sourced from Atlassian products other than Jira and Confluence'
|
|
115
|
+
},
|
|
111
116
|
memberLozengeText: {
|
|
112
117
|
id: 'fabric.elements.user-picker.member.lozenge.text',
|
|
113
118
|
defaultMessage: 'MEMBER',
|
package/dist/cjs/version.json
CHANGED
|
@@ -2,8 +2,7 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { FormattedMessage } from 'react-intl-next';
|
|
4
4
|
import styled from 'styled-components';
|
|
5
|
-
import { ConfluenceIcon } from '@atlaskit/logo
|
|
6
|
-
import { JiraIcon } from '@atlaskit/logo/jira-icon';
|
|
5
|
+
import { ConfluenceIcon, JiraIcon, AtlassianIcon } from '@atlaskit/logo';
|
|
7
6
|
import Spinner from '@atlaskit/spinner';
|
|
8
7
|
import { B400, N200, N800 } from '@atlaskit/theme/colors';
|
|
9
8
|
import { token } from '@atlaskit/tokens';
|
|
@@ -66,6 +65,12 @@ const SourcesInfoMap = new Map([['slack', {
|
|
|
66
65
|
size: 'xsmall'
|
|
67
66
|
}),
|
|
68
67
|
label: messages.confluenceSource
|
|
68
|
+
}], ['other-atlassian', {
|
|
69
|
+
key: 'other-atlassian',
|
|
70
|
+
icon: /*#__PURE__*/React.createElement(AtlassianIcon, {
|
|
71
|
+
size: 'xsmall'
|
|
72
|
+
}),
|
|
73
|
+
label: messages.otherAtlassianSource
|
|
69
74
|
}]]);
|
|
70
75
|
export class ExternalUserOption extends React.PureComponent {
|
|
71
76
|
constructor(...args) {
|
|
@@ -62,7 +62,7 @@ export const messages = defineMessages({
|
|
|
62
62
|
},
|
|
63
63
|
externalUserSourcesHeading: {
|
|
64
64
|
id: 'fabric.elements.user-picker.external.sourced.from',
|
|
65
|
-
defaultMessage: '
|
|
65
|
+
defaultMessage: 'Also found in:',
|
|
66
66
|
description: 'From where the external user is coming'
|
|
67
67
|
},
|
|
68
68
|
externalUserSourcesError: {
|
|
@@ -100,6 +100,11 @@ export const messages = defineMessages({
|
|
|
100
100
|
defaultMessage: 'Confluence',
|
|
101
101
|
description: 'This external user is sourced from Confluence'
|
|
102
102
|
},
|
|
103
|
+
otherAtlassianSource: {
|
|
104
|
+
id: 'fabric.elements.user-picker.source.other-atlassian',
|
|
105
|
+
defaultMessage: 'Other Atlassian products',
|
|
106
|
+
description: 'This external user is sourced from Atlassian products other than Jira and Confluence'
|
|
107
|
+
},
|
|
103
108
|
memberLozengeText: {
|
|
104
109
|
id: 'fabric.elements.user-picker.member.lozenge.text',
|
|
105
110
|
defaultMessage: 'MEMBER',
|
package/dist/es2019/version.json
CHANGED
|
@@ -17,8 +17,7 @@ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Re
|
|
|
17
17
|
import React from 'react';
|
|
18
18
|
import { FormattedMessage } from 'react-intl-next';
|
|
19
19
|
import styled from 'styled-components';
|
|
20
|
-
import { ConfluenceIcon } from '@atlaskit/logo
|
|
21
|
-
import { JiraIcon } from '@atlaskit/logo/jira-icon';
|
|
20
|
+
import { ConfluenceIcon, JiraIcon, AtlassianIcon } from '@atlaskit/logo';
|
|
22
21
|
import Spinner from '@atlaskit/spinner';
|
|
23
22
|
import { B400, N200, N800 } from '@atlaskit/theme/colors';
|
|
24
23
|
import { token } from '@atlaskit/tokens';
|
|
@@ -65,6 +64,12 @@ var SourcesInfoMap = new Map([['slack', {
|
|
|
65
64
|
size: 'xsmall'
|
|
66
65
|
}),
|
|
67
66
|
label: messages.confluenceSource
|
|
67
|
+
}], ['other-atlassian', {
|
|
68
|
+
key: 'other-atlassian',
|
|
69
|
+
icon: /*#__PURE__*/React.createElement(AtlassianIcon, {
|
|
70
|
+
size: 'xsmall'
|
|
71
|
+
}),
|
|
72
|
+
label: messages.otherAtlassianSource
|
|
68
73
|
}]]);
|
|
69
74
|
export var ExternalUserOption = /*#__PURE__*/function (_React$PureComponent) {
|
|
70
75
|
_inherits(ExternalUserOption, _React$PureComponent);
|
|
@@ -62,7 +62,7 @@ export var messages = defineMessages({
|
|
|
62
62
|
},
|
|
63
63
|
externalUserSourcesHeading: {
|
|
64
64
|
id: 'fabric.elements.user-picker.external.sourced.from',
|
|
65
|
-
defaultMessage: '
|
|
65
|
+
defaultMessage: 'Also found in:',
|
|
66
66
|
description: 'From where the external user is coming'
|
|
67
67
|
},
|
|
68
68
|
externalUserSourcesError: {
|
|
@@ -100,6 +100,11 @@ export var messages = defineMessages({
|
|
|
100
100
|
defaultMessage: 'Confluence',
|
|
101
101
|
description: 'This external user is sourced from Confluence'
|
|
102
102
|
},
|
|
103
|
+
otherAtlassianSource: {
|
|
104
|
+
id: 'fabric.elements.user-picker.source.other-atlassian',
|
|
105
|
+
defaultMessage: 'Other Atlassian products',
|
|
106
|
+
description: 'This external user is sourced from Atlassian products other than Jira and Confluence'
|
|
107
|
+
},
|
|
103
108
|
memberLozengeText: {
|
|
104
109
|
id: 'fabric.elements.user-picker.member.lozenge.text',
|
|
105
110
|
defaultMessage: 'MEMBER',
|
package/dist/esm/version.json
CHANGED
|
@@ -99,6 +99,11 @@ export declare const messages: {
|
|
|
99
99
|
defaultMessage: string;
|
|
100
100
|
description: string;
|
|
101
101
|
};
|
|
102
|
+
otherAtlassianSource: {
|
|
103
|
+
id: string;
|
|
104
|
+
defaultMessage: string;
|
|
105
|
+
description: string;
|
|
106
|
+
};
|
|
102
107
|
memberLozengeText: {
|
|
103
108
|
id: string;
|
|
104
109
|
defaultMessage: string;
|
package/dist/types/types.d.ts
CHANGED
|
@@ -202,7 +202,7 @@ export interface OptionData {
|
|
|
202
202
|
lozenge?: string | LozengeProps;
|
|
203
203
|
}
|
|
204
204
|
export declare const UserType = "user";
|
|
205
|
-
export declare type UserSource = 'google' | 'slack' | 'microsoft' | 'github' | 'jira' | 'confluence';
|
|
205
|
+
export declare type UserSource = 'google' | 'slack' | 'microsoft' | 'github' | 'jira' | 'confluence' | 'other-atlassian';
|
|
206
206
|
export interface ExternalUser extends User {
|
|
207
207
|
requiresSourceHydration?: boolean;
|
|
208
208
|
sources: UserSource[];
|