@atlaskit/user-picker 10.19.8 → 10.19.10
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 +13 -0
- package/dist/cjs/analytics.js +1 -1
- package/dist/cjs/components/CustomOption/main.js +2 -5
- package/dist/cjs/components/ExternalUserOption/main.js +6 -9
- package/dist/cjs/components/SingleValue.js +1 -2
- package/dist/cjs/components/SizeableAvatar.js +0 -2
- package/dist/cjs/components/TeamOption/main.js +3 -6
- package/dist/cjs/components/UserOption.js +2 -5
- package/dist/es2019/analytics.js +1 -1
- package/dist/es2019/components/CustomOption/main.js +2 -4
- package/dist/es2019/components/ExternalUserOption/main.js +2 -4
- package/dist/es2019/components/SingleValue.js +1 -2
- package/dist/es2019/components/SizeableAvatar.js +0 -2
- package/dist/es2019/components/TeamOption/main.js +1 -3
- package/dist/es2019/components/UserOption.js +2 -4
- package/dist/esm/analytics.js +1 -1
- package/dist/esm/components/CustomOption/main.js +2 -5
- package/dist/esm/components/ExternalUserOption/main.js +6 -9
- package/dist/esm/components/SingleValue.js +1 -2
- package/dist/esm/components/SizeableAvatar.js +0 -2
- package/dist/esm/components/TeamOption/main.js +3 -6
- package/dist/esm/components/UserOption.js +2 -5
- package/dist/types/components/BaseUserPicker.d.ts +1 -1
- package/dist/types/components/SizeableAvatar.d.ts +0 -1
- package/dist/types/components/utils.d.ts +1 -1
- package/dist/types-ts4.5/components/BaseUserPicker.d.ts +1 -1
- package/dist/types-ts4.5/components/SizeableAvatar.d.ts +0 -1
- package/dist/types-ts4.5/components/utils.d.ts +1 -1
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# @atlaskit/user-picker
|
|
2
2
|
|
|
3
|
+
## 10.19.10
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#85437](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/85437) [`b3bed8af54a0`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/b3bed8af54a0) - Remove duplicate hidden name announcement in single-value picker
|
|
8
|
+
- Updated dependencies
|
|
9
|
+
|
|
10
|
+
## 10.19.9
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- [#85640](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/85640) [`da6c4e34a2a0`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/da6c4e34a2a0) - [ux] Removed name prop being passed to Avatar to fix an issue where VoiceOver users have the selected user name repeated twice.
|
|
15
|
+
|
|
3
16
|
## 10.19.8
|
|
4
17
|
|
|
5
18
|
### Patch Changes
|
package/dist/cjs/analytics.js
CHANGED
|
@@ -12,7 +12,7 @@ var _utils = require("./components/utils");
|
|
|
12
12
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
13
13
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
14
14
|
var packageName = "@atlaskit/user-picker";
|
|
15
|
-
var packageVersion = "10.19.
|
|
15
|
+
var packageVersion = "10.19.10";
|
|
16
16
|
var UUID_REGEXP_TEAMS_GROUPS = /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/;
|
|
17
17
|
var UUID_REGEXP_OLD_AAID = /^[a-fA-F0-9]{1,8}:[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/;
|
|
18
18
|
var UUID_REGEXP_NEW_AAID = /^[a-fA-F0-9]{24,24}$/;
|
|
@@ -55,13 +55,10 @@ var CustomOption = exports.CustomOption = /*#__PURE__*/function (_React$PureComp
|
|
|
55
55
|
return _this.getBylineComponent(_this.props.isSelected, _this.props.data.byline);
|
|
56
56
|
});
|
|
57
57
|
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "renderAvatar", function () {
|
|
58
|
-
var
|
|
59
|
-
avatarUrl = _this$props$data3.avatarUrl,
|
|
60
|
-
name = _this$props$data3.name;
|
|
58
|
+
var avatarUrl = _this.props.data.avatarUrl;
|
|
61
59
|
return (0, _react.jsx)(_SizeableAvatar.SizeableAvatar, {
|
|
62
60
|
appearance: "big",
|
|
63
|
-
src: avatarUrl
|
|
64
|
-
name: name
|
|
61
|
+
src: avatarUrl
|
|
65
62
|
});
|
|
66
63
|
});
|
|
67
64
|
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "getLozengeProps", function () {
|
|
@@ -87,15 +87,12 @@ var ExternalUserOptionImpl = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
87
87
|
});
|
|
88
88
|
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "renderAvatar", function () {
|
|
89
89
|
var _this$props = _this.props,
|
|
90
|
-
|
|
91
|
-
avatarUrl = _this$props$user2.avatarUrl,
|
|
92
|
-
name = _this$props$user2.name,
|
|
90
|
+
avatarUrl = _this$props.user.avatarUrl,
|
|
93
91
|
status = _this$props.status;
|
|
94
92
|
return (0, _react2.jsx)(_SizeableAvatar.SizeableAvatar, {
|
|
95
93
|
appearance: "big",
|
|
96
94
|
src: avatarUrl,
|
|
97
|
-
presence: status
|
|
98
|
-
name: name
|
|
95
|
+
presence: status
|
|
99
96
|
});
|
|
100
97
|
});
|
|
101
98
|
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "fireEvent", function (eventCreator) {
|
|
@@ -134,10 +131,10 @@ var ExternalUserOptionImpl = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
134
131
|
}, {
|
|
135
132
|
key: "formattedTooltipContent",
|
|
136
133
|
value: function formattedTooltipContent() {
|
|
137
|
-
var _this$props$
|
|
138
|
-
id = _this$props$
|
|
139
|
-
requiresSourceHydration = _this$props$
|
|
140
|
-
sources = _this$props$
|
|
134
|
+
var _this$props$user2 = this.props.user,
|
|
135
|
+
id = _this$props$user2.id,
|
|
136
|
+
requiresSourceHydration = _this$props$user2.requiresSourceHydration,
|
|
137
|
+
sources = _this$props$user2.sources;
|
|
141
138
|
return (0, _react2.jsx)(_ExternalUserSourcesContainer.ExternalUserSourcesContainer, {
|
|
142
139
|
accountId: id,
|
|
143
140
|
shouldFetchSources: Boolean(requiresSourceHydration),
|
|
@@ -40,8 +40,7 @@ var SingleValue = exports.SingleValue = function SingleValue(props) {
|
|
|
40
40
|
backgroundColor: "transparent",
|
|
41
41
|
avatar: (0, _react.jsx)(_SizeableAvatar.SizeableAvatar, {
|
|
42
42
|
src: (0, _utils.getAvatarUrl)(data),
|
|
43
|
-
appearance: appearance
|
|
44
|
-
name: label
|
|
43
|
+
appearance: appearance
|
|
45
44
|
}),
|
|
46
45
|
primaryText: label
|
|
47
46
|
}, function (_ref) {
|
|
@@ -28,7 +28,6 @@ var SizeableAvatar = exports.SizeableAvatar = /*#__PURE__*/function (_React$Pure
|
|
|
28
28
|
value: function render() {
|
|
29
29
|
var _this$props = this.props,
|
|
30
30
|
src = _this$props.src,
|
|
31
|
-
name = _this$props.name,
|
|
32
31
|
presence = _this$props.presence,
|
|
33
32
|
appearance = _this$props.appearance,
|
|
34
33
|
_this$props$type = _this$props.type,
|
|
@@ -36,7 +35,6 @@ var SizeableAvatar = exports.SizeableAvatar = /*#__PURE__*/function (_React$Pure
|
|
|
36
35
|
var props = {
|
|
37
36
|
size: (0, _utils.getAvatarSize)(appearance),
|
|
38
37
|
src: src,
|
|
39
|
-
name: name,
|
|
40
38
|
borderColor: 'transparent',
|
|
41
39
|
presence: presence
|
|
42
40
|
};
|
|
@@ -85,13 +85,10 @@ var TeamOption = exports.TeamOption = /*#__PURE__*/function (_React$PureComponen
|
|
|
85
85
|
}, message);
|
|
86
86
|
});
|
|
87
87
|
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "renderAvatar", function () {
|
|
88
|
-
var
|
|
89
|
-
avatarUrl = _this$props$team3.avatarUrl,
|
|
90
|
-
name = _this$props$team3.name;
|
|
88
|
+
var avatarUrl = _this.props.team.avatarUrl;
|
|
91
89
|
return (0, _react.jsx)(_SizeableAvatar.SizeableAvatar, {
|
|
92
90
|
appearance: "big",
|
|
93
91
|
src: avatarUrl,
|
|
94
|
-
name: name,
|
|
95
92
|
type: "team"
|
|
96
93
|
});
|
|
97
94
|
});
|
|
@@ -101,8 +98,8 @@ var TeamOption = exports.TeamOption = /*#__PURE__*/function (_React$PureComponen
|
|
|
101
98
|
} : _this.props.team.lozenge;
|
|
102
99
|
});
|
|
103
100
|
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "renderCustomByLine", function () {
|
|
104
|
-
var _this$props$
|
|
105
|
-
if (!((_this$props$
|
|
101
|
+
var _this$props$team3;
|
|
102
|
+
if (!((_this$props$team3 = _this.props.team) !== null && _this$props$team3 !== void 0 && _this$props$team3.byline)) {
|
|
106
103
|
return undefined;
|
|
107
104
|
}
|
|
108
105
|
return (0, _react.jsx)("span", {
|
|
@@ -60,15 +60,12 @@ var UserOption = exports.UserOption = /*#__PURE__*/function (_React$PureComponen
|
|
|
60
60
|
});
|
|
61
61
|
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "renderAvatar", function () {
|
|
62
62
|
var _this$props = _this.props,
|
|
63
|
-
|
|
64
|
-
avatarUrl = _this$props$user2.avatarUrl,
|
|
65
|
-
name = _this$props$user2.name,
|
|
63
|
+
avatarUrl = _this$props.user.avatarUrl,
|
|
66
64
|
status = _this$props.status;
|
|
67
65
|
return (0, _react.jsx)(_SizeableAvatar.SizeableAvatar, {
|
|
68
66
|
appearance: "big",
|
|
69
67
|
src: avatarUrl,
|
|
70
|
-
presence: status
|
|
71
|
-
name: name
|
|
68
|
+
presence: status
|
|
72
69
|
});
|
|
73
70
|
});
|
|
74
71
|
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "getLozengeProps", function () {
|
package/dist/es2019/analytics.js
CHANGED
|
@@ -2,7 +2,7 @@ import { createAndFireEvent } from '@atlaskit/analytics-next';
|
|
|
2
2
|
import { v4 as uuidv4 } from 'uuid';
|
|
3
3
|
import { isCustom, isExternalUser } from './components/utils';
|
|
4
4
|
const packageName = "@atlaskit/user-picker";
|
|
5
|
-
const packageVersion = "10.19.
|
|
5
|
+
const packageVersion = "10.19.10";
|
|
6
6
|
const UUID_REGEXP_TEAMS_GROUPS = /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/;
|
|
7
7
|
const UUID_REGEXP_OLD_AAID = /^[a-fA-F0-9]{1,8}:[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/;
|
|
8
8
|
const UUID_REGEXP_NEW_AAID = /^[a-fA-F0-9]{24,24}$/;
|
|
@@ -37,14 +37,12 @@ export class CustomOption extends React.PureComponent {
|
|
|
37
37
|
_defineProperty(this, "renderAvatar", () => {
|
|
38
38
|
const {
|
|
39
39
|
data: {
|
|
40
|
-
avatarUrl
|
|
41
|
-
name
|
|
40
|
+
avatarUrl
|
|
42
41
|
}
|
|
43
42
|
} = this.props;
|
|
44
43
|
return jsx(SizeableAvatar, {
|
|
45
44
|
appearance: "big",
|
|
46
|
-
src: avatarUrl
|
|
47
|
-
name: name
|
|
45
|
+
src: avatarUrl
|
|
48
46
|
});
|
|
49
47
|
});
|
|
50
48
|
_defineProperty(this, "getLozengeProps", () => typeof this.props.data.lozenge === 'string' ? {
|
|
@@ -68,16 +68,14 @@ class ExternalUserOptionImpl extends React.PureComponent {
|
|
|
68
68
|
_defineProperty(this, "renderAvatar", () => {
|
|
69
69
|
const {
|
|
70
70
|
user: {
|
|
71
|
-
avatarUrl
|
|
72
|
-
name
|
|
71
|
+
avatarUrl
|
|
73
72
|
},
|
|
74
73
|
status
|
|
75
74
|
} = this.props;
|
|
76
75
|
return jsx(SizeableAvatar, {
|
|
77
76
|
appearance: "big",
|
|
78
77
|
src: avatarUrl,
|
|
79
|
-
presence: status
|
|
80
|
-
name: name
|
|
78
|
+
presence: status
|
|
81
79
|
});
|
|
82
80
|
});
|
|
83
81
|
_defineProperty(this, "fireEvent", (eventCreator, ...args) => {
|
|
@@ -6,7 +6,6 @@ export class SizeableAvatar extends React.PureComponent {
|
|
|
6
6
|
render() {
|
|
7
7
|
const {
|
|
8
8
|
src,
|
|
9
|
-
name,
|
|
10
9
|
presence,
|
|
11
10
|
appearance,
|
|
12
11
|
type = 'person'
|
|
@@ -14,7 +13,6 @@ export class SizeableAvatar extends React.PureComponent {
|
|
|
14
13
|
const props = {
|
|
15
14
|
size: getAvatarSize(appearance),
|
|
16
15
|
src,
|
|
17
|
-
name,
|
|
18
16
|
borderColor: 'transparent',
|
|
19
17
|
presence
|
|
20
18
|
};
|
|
@@ -69,14 +69,12 @@ export class TeamOption extends React.PureComponent {
|
|
|
69
69
|
_defineProperty(this, "renderAvatar", () => {
|
|
70
70
|
const {
|
|
71
71
|
team: {
|
|
72
|
-
avatarUrl
|
|
73
|
-
name
|
|
72
|
+
avatarUrl
|
|
74
73
|
}
|
|
75
74
|
} = this.props;
|
|
76
75
|
return jsx(SizeableAvatar, {
|
|
77
76
|
appearance: "big",
|
|
78
77
|
src: avatarUrl,
|
|
79
|
-
name: name,
|
|
80
78
|
type: "team"
|
|
81
79
|
});
|
|
82
80
|
});
|
|
@@ -41,16 +41,14 @@ export class UserOption extends React.PureComponent {
|
|
|
41
41
|
_defineProperty(this, "renderAvatar", () => {
|
|
42
42
|
const {
|
|
43
43
|
user: {
|
|
44
|
-
avatarUrl
|
|
45
|
-
name
|
|
44
|
+
avatarUrl
|
|
46
45
|
},
|
|
47
46
|
status
|
|
48
47
|
} = this.props;
|
|
49
48
|
return jsx(SizeableAvatar, {
|
|
50
49
|
appearance: "big",
|
|
51
50
|
src: avatarUrl,
|
|
52
|
-
presence: status
|
|
53
|
-
name: name
|
|
51
|
+
presence: status
|
|
54
52
|
});
|
|
55
53
|
});
|
|
56
54
|
_defineProperty(this, "getLozengeProps", () => typeof this.props.user.lozenge === 'string' ? {
|
package/dist/esm/analytics.js
CHANGED
|
@@ -5,7 +5,7 @@ import { createAndFireEvent } from '@atlaskit/analytics-next';
|
|
|
5
5
|
import { v4 as uuidv4 } from 'uuid';
|
|
6
6
|
import { isCustom, isExternalUser } from './components/utils';
|
|
7
7
|
var packageName = "@atlaskit/user-picker";
|
|
8
|
-
var packageVersion = "10.19.
|
|
8
|
+
var packageVersion = "10.19.10";
|
|
9
9
|
var UUID_REGEXP_TEAMS_GROUPS = /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/;
|
|
10
10
|
var UUID_REGEXP_OLD_AAID = /^[a-fA-F0-9]{1,8}:[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/;
|
|
11
11
|
var UUID_REGEXP_NEW_AAID = /^[a-fA-F0-9]{24,24}$/;
|
|
@@ -49,13 +49,10 @@ export var CustomOption = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
49
49
|
return _this.getBylineComponent(_this.props.isSelected, _this.props.data.byline);
|
|
50
50
|
});
|
|
51
51
|
_defineProperty(_assertThisInitialized(_this), "renderAvatar", function () {
|
|
52
|
-
var
|
|
53
|
-
avatarUrl = _this$props$data3.avatarUrl,
|
|
54
|
-
name = _this$props$data3.name;
|
|
52
|
+
var avatarUrl = _this.props.data.avatarUrl;
|
|
55
53
|
return jsx(SizeableAvatar, {
|
|
56
54
|
appearance: "big",
|
|
57
|
-
src: avatarUrl
|
|
58
|
-
name: name
|
|
55
|
+
src: avatarUrl
|
|
59
56
|
});
|
|
60
57
|
});
|
|
61
58
|
_defineProperty(_assertThisInitialized(_this), "getLozengeProps", function () {
|
|
@@ -81,15 +81,12 @@ var ExternalUserOptionImpl = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
81
81
|
});
|
|
82
82
|
_defineProperty(_assertThisInitialized(_this), "renderAvatar", function () {
|
|
83
83
|
var _this$props = _this.props,
|
|
84
|
-
|
|
85
|
-
avatarUrl = _this$props$user2.avatarUrl,
|
|
86
|
-
name = _this$props$user2.name,
|
|
84
|
+
avatarUrl = _this$props.user.avatarUrl,
|
|
87
85
|
status = _this$props.status;
|
|
88
86
|
return jsx(SizeableAvatar, {
|
|
89
87
|
appearance: "big",
|
|
90
88
|
src: avatarUrl,
|
|
91
|
-
presence: status
|
|
92
|
-
name: name
|
|
89
|
+
presence: status
|
|
93
90
|
});
|
|
94
91
|
});
|
|
95
92
|
_defineProperty(_assertThisInitialized(_this), "fireEvent", function (eventCreator) {
|
|
@@ -128,10 +125,10 @@ var ExternalUserOptionImpl = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
128
125
|
}, {
|
|
129
126
|
key: "formattedTooltipContent",
|
|
130
127
|
value: function formattedTooltipContent() {
|
|
131
|
-
var _this$props$
|
|
132
|
-
id = _this$props$
|
|
133
|
-
requiresSourceHydration = _this$props$
|
|
134
|
-
sources = _this$props$
|
|
128
|
+
var _this$props$user2 = this.props.user,
|
|
129
|
+
id = _this$props$user2.id,
|
|
130
|
+
requiresSourceHydration = _this$props$user2.requiresSourceHydration,
|
|
131
|
+
sources = _this$props$user2.sources;
|
|
135
132
|
return jsx(ExternalUserSourcesContainer, {
|
|
136
133
|
accountId: id,
|
|
137
134
|
shouldFetchSources: Boolean(requiresSourceHydration),
|
|
@@ -33,8 +33,7 @@ export var SingleValue = function SingleValue(props) {
|
|
|
33
33
|
backgroundColor: "transparent",
|
|
34
34
|
avatar: jsx(SizeableAvatar, {
|
|
35
35
|
src: getAvatarUrl(data),
|
|
36
|
-
appearance: appearance
|
|
37
|
-
name: label
|
|
36
|
+
appearance: appearance
|
|
38
37
|
}),
|
|
39
38
|
primaryText: label
|
|
40
39
|
}, function (_ref) {
|
|
@@ -21,7 +21,6 @@ export var SizeableAvatar = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
21
21
|
value: function render() {
|
|
22
22
|
var _this$props = this.props,
|
|
23
23
|
src = _this$props.src,
|
|
24
|
-
name = _this$props.name,
|
|
25
24
|
presence = _this$props.presence,
|
|
26
25
|
appearance = _this$props.appearance,
|
|
27
26
|
_this$props$type = _this$props.type,
|
|
@@ -29,7 +28,6 @@ export var SizeableAvatar = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
29
28
|
var props = {
|
|
30
29
|
size: getAvatarSize(appearance),
|
|
31
30
|
src: src,
|
|
32
|
-
name: name,
|
|
33
31
|
borderColor: 'transparent',
|
|
34
32
|
presence: presence
|
|
35
33
|
};
|
|
@@ -79,13 +79,10 @@ export var TeamOption = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
79
79
|
}, message);
|
|
80
80
|
});
|
|
81
81
|
_defineProperty(_assertThisInitialized(_this), "renderAvatar", function () {
|
|
82
|
-
var
|
|
83
|
-
avatarUrl = _this$props$team3.avatarUrl,
|
|
84
|
-
name = _this$props$team3.name;
|
|
82
|
+
var avatarUrl = _this.props.team.avatarUrl;
|
|
85
83
|
return jsx(SizeableAvatar, {
|
|
86
84
|
appearance: "big",
|
|
87
85
|
src: avatarUrl,
|
|
88
|
-
name: name,
|
|
89
86
|
type: "team"
|
|
90
87
|
});
|
|
91
88
|
});
|
|
@@ -95,8 +92,8 @@ export var TeamOption = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
95
92
|
} : _this.props.team.lozenge;
|
|
96
93
|
});
|
|
97
94
|
_defineProperty(_assertThisInitialized(_this), "renderCustomByLine", function () {
|
|
98
|
-
var _this$props$
|
|
99
|
-
if (!((_this$props$
|
|
95
|
+
var _this$props$team3;
|
|
96
|
+
if (!((_this$props$team3 = _this.props.team) !== null && _this$props$team3 !== void 0 && _this$props$team3.byline)) {
|
|
100
97
|
return undefined;
|
|
101
98
|
}
|
|
102
99
|
return jsx("span", {
|
|
@@ -54,15 +54,12 @@ export var UserOption = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
54
54
|
});
|
|
55
55
|
_defineProperty(_assertThisInitialized(_this), "renderAvatar", function () {
|
|
56
56
|
var _this$props = _this.props,
|
|
57
|
-
|
|
58
|
-
avatarUrl = _this$props$user2.avatarUrl,
|
|
59
|
-
name = _this$props$user2.name,
|
|
57
|
+
avatarUrl = _this$props.user.avatarUrl,
|
|
60
58
|
status = _this$props.status;
|
|
61
59
|
return jsx(SizeableAvatar, {
|
|
62
60
|
appearance: "big",
|
|
63
61
|
src: avatarUrl,
|
|
64
|
-
presence: status
|
|
65
|
-
name: name
|
|
62
|
+
presence: status
|
|
66
63
|
});
|
|
67
64
|
});
|
|
68
65
|
_defineProperty(_assertThisInitialized(_this), "getLozengeProps", function () {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { UserPickerProps, UserPickerState } from '../types';
|
|
3
3
|
export type BaseUserPickerProps = UserPickerProps & {
|
|
4
|
-
SelectComponent: React.
|
|
4
|
+
SelectComponent: React.ComponentType<any>;
|
|
5
5
|
pickerProps?: any;
|
|
6
6
|
styles: any;
|
|
7
7
|
components: any;
|
|
@@ -24,6 +24,6 @@ export declare const isSingleValue: (value?: AtlaskitSelectValue) => value is Op
|
|
|
24
24
|
export declare const hasValue: (value?: string) => value is string;
|
|
25
25
|
export declare const callCallback: <U extends any[], R>(callback: ((...U: U) => R) | undefined, ...args: U) => R | undefined;
|
|
26
26
|
export declare const getAvatarUrl: (optionData: OptionData) => string | undefined;
|
|
27
|
-
export declare const isPopupUserPickerByComponent: (SelectComponent: React.
|
|
27
|
+
export declare const isPopupUserPickerByComponent: (SelectComponent: React.ComponentType<any>) => boolean;
|
|
28
28
|
export declare const isPopupUserPickerByProps: (selectProps: any) => boolean;
|
|
29
29
|
export declare const isLozengeText: (lozengeProp: ReactNode | LozengeProps) => lozengeProp is LozengeProps;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { UserPickerProps, UserPickerState } from '../types';
|
|
3
3
|
export type BaseUserPickerProps = UserPickerProps & {
|
|
4
|
-
SelectComponent: React.
|
|
4
|
+
SelectComponent: React.ComponentType<any>;
|
|
5
5
|
pickerProps?: any;
|
|
6
6
|
styles: any;
|
|
7
7
|
components: any;
|
|
@@ -24,6 +24,6 @@ export declare const isSingleValue: (value?: AtlaskitSelectValue) => value is Op
|
|
|
24
24
|
export declare const hasValue: (value?: string) => value is string;
|
|
25
25
|
export declare const callCallback: <U extends any[], R>(callback: ((...U: U) => R) | undefined, ...args: U) => R | undefined;
|
|
26
26
|
export declare const getAvatarUrl: (optionData: OptionData) => string | undefined;
|
|
27
|
-
export declare const isPopupUserPickerByComponent: (SelectComponent: React.
|
|
27
|
+
export declare const isPopupUserPickerByComponent: (SelectComponent: React.ComponentType<any>) => boolean;
|
|
28
28
|
export declare const isPopupUserPickerByProps: (selectProps: any) => boolean;
|
|
29
29
|
export declare const isLozengeText: (lozengeProp: ReactNode | LozengeProps) => lozengeProp is LozengeProps;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/user-picker",
|
|
3
|
-
"version": "10.19.
|
|
3
|
+
"version": "10.19.10",
|
|
4
4
|
"description": "Fabric component for display a dropdown to select a user from",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -49,12 +49,12 @@
|
|
|
49
49
|
"@atlaskit/lozenge": "^11.6.0",
|
|
50
50
|
"@atlaskit/platform-feature-flags": "^0.2.0",
|
|
51
51
|
"@atlaskit/popper": "^5.5.0",
|
|
52
|
-
"@atlaskit/primitives": "^5.
|
|
53
|
-
"@atlaskit/select": "^17.
|
|
52
|
+
"@atlaskit/primitives": "^5.5.0",
|
|
53
|
+
"@atlaskit/select": "^17.6.0",
|
|
54
54
|
"@atlaskit/spinner": "^16.0.0",
|
|
55
55
|
"@atlaskit/teams-avatar": "^1.0.0",
|
|
56
|
-
"@atlaskit/theme": "^12.
|
|
57
|
-
"@atlaskit/tokens": "^1.
|
|
56
|
+
"@atlaskit/theme": "^12.7.0",
|
|
57
|
+
"@atlaskit/tokens": "^1.43.0",
|
|
58
58
|
"@atlaskit/tooltip": "^18.1.0",
|
|
59
59
|
"@atlaskit/ufo": "^0.2.0",
|
|
60
60
|
"@babel/runtime": "^7.0.0",
|