@atlaskit/user-picker 10.12.3 → 10.12.4
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/analytics.js +1 -1
- package/dist/cjs/components/AddOptionAvatar.js +2 -4
- package/dist/cjs/components/AvatarItemOption.js +11 -11
- package/dist/cjs/components/BaseUserPicker.js +6 -3
- package/dist/cjs/components/CustomOption/main.js +8 -9
- package/dist/cjs/components/EmailOption/main.js +6 -7
- package/dist/cjs/components/ExternalUserOption/ExternalAvatarItemOption.js +7 -7
- package/dist/cjs/components/ExternalUserOption/InfoIcon.js +2 -4
- package/dist/cjs/components/ExternalUserOption/SourcesTooltipContent.js +12 -14
- package/dist/cjs/components/ExternalUserOption/main.js +10 -10
- package/dist/cjs/components/GroupOption/main.js +8 -8
- package/dist/cjs/components/Menu.js +2 -2
- package/dist/cjs/components/MultiValue.js +9 -9
- package/dist/cjs/components/PopupControl.js +4 -4
- package/dist/cjs/components/SingleValue.js +3 -4
- package/dist/cjs/components/SingleValueContainer.js +3 -3
- package/dist/cjs/components/TeamOption/main.js +13 -14
- package/dist/cjs/components/UserOption.js +11 -12
- package/dist/es2019/analytics.js +1 -1
- package/dist/es2019/components/AddOptionAvatar.js +3 -4
- package/dist/es2019/components/AvatarItemOption.js +11 -12
- package/dist/es2019/components/BaseUserPicker.js +6 -3
- package/dist/es2019/components/CustomOption/main.js +5 -7
- package/dist/es2019/components/EmailOption/main.js +5 -7
- package/dist/es2019/components/ExternalUserOption/ExternalAvatarItemOption.js +7 -9
- package/dist/es2019/components/ExternalUserOption/InfoIcon.js +3 -4
- package/dist/es2019/components/ExternalUserOption/SourcesTooltipContent.js +13 -14
- package/dist/es2019/components/ExternalUserOption/main.js +10 -11
- package/dist/es2019/components/GroupOption/main.js +8 -9
- package/dist/es2019/components/Menu.js +2 -3
- package/dist/es2019/components/MultiValue.js +8 -9
- package/dist/es2019/components/PopupControl.js +4 -5
- package/dist/es2019/components/SingleValue.js +4 -5
- package/dist/es2019/components/SingleValueContainer.js +3 -4
- package/dist/es2019/components/TeamOption/main.js +10 -12
- package/dist/es2019/components/UserOption.js +8 -10
- package/dist/esm/analytics.js +1 -1
- package/dist/esm/components/AddOptionAvatar.js +3 -4
- package/dist/esm/components/AvatarItemOption.js +11 -12
- package/dist/esm/components/BaseUserPicker.js +6 -3
- package/dist/esm/components/CustomOption/main.js +5 -7
- package/dist/esm/components/EmailOption/main.js +5 -7
- package/dist/esm/components/ExternalUserOption/ExternalAvatarItemOption.js +7 -9
- package/dist/esm/components/ExternalUserOption/InfoIcon.js +3 -4
- package/dist/esm/components/ExternalUserOption/SourcesTooltipContent.js +13 -14
- package/dist/esm/components/ExternalUserOption/main.js +10 -11
- package/dist/esm/components/GroupOption/main.js +8 -9
- package/dist/esm/components/Menu.js +2 -3
- package/dist/esm/components/MultiValue.js +9 -10
- package/dist/esm/components/PopupControl.js +4 -5
- package/dist/esm/components/SingleValue.js +4 -5
- package/dist/esm/components/SingleValueContainer.js +3 -4
- package/dist/esm/components/TeamOption/main.js +10 -12
- package/dist/esm/components/UserOption.js +8 -10
- package/package.json +3 -3
- package/tmp/api-report-tmp.d.ts +0 -450
|
@@ -13,7 +13,6 @@ var _select = require("@atlaskit/select");
|
|
|
13
13
|
var _SizeableAvatar = require("./SizeableAvatar");
|
|
14
14
|
var _utils = require("./utils");
|
|
15
15
|
var _excluded = ["ref"];
|
|
16
|
-
/** @jsx jsx */
|
|
17
16
|
var avatarItemComponent = (0, _react.css)({
|
|
18
17
|
border: 'none !important',
|
|
19
18
|
padding: '0 !important',
|
|
@@ -36,9 +35,9 @@ var SingleValue = exports.SingleValue = function SingleValue(props) {
|
|
|
36
35
|
_props$selectProps = props.selectProps,
|
|
37
36
|
appearance = _props$selectProps.appearance,
|
|
38
37
|
isFocused = _props$selectProps.isFocused;
|
|
39
|
-
return !isFocused ?
|
|
38
|
+
return !isFocused ? /*#__PURE__*/React.createElement(_select.components.SingleValue, props, /*#__PURE__*/React.createElement(_avatar.AvatarItem, {
|
|
40
39
|
backgroundColor: "transparent",
|
|
41
|
-
avatar:
|
|
40
|
+
avatar: /*#__PURE__*/React.createElement(_SizeableAvatar.SizeableAvatar, {
|
|
42
41
|
src: (0, _utils.getAvatarUrl)(data),
|
|
43
42
|
appearance: appearance,
|
|
44
43
|
name: label
|
|
@@ -47,7 +46,7 @@ var SingleValue = exports.SingleValue = function SingleValue(props) {
|
|
|
47
46
|
}, function (_ref) {
|
|
48
47
|
var ref = _ref.ref,
|
|
49
48
|
props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
50
|
-
return
|
|
49
|
+
return /*#__PURE__*/React.createElement("div", (0, _extends2.default)({
|
|
51
50
|
css: avatarItemComponent
|
|
52
51
|
}, props));
|
|
53
52
|
})) : null;
|
|
@@ -20,7 +20,7 @@ var _SizeableAvatar = require("./SizeableAvatar");
|
|
|
20
20
|
var _styles = require("./styles");
|
|
21
21
|
var _excluded = ["children"];
|
|
22
22
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
|
|
23
|
-
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
23
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
24
24
|
var placeholderIconContainer = (0, _react2.css)({
|
|
25
25
|
paddingLeft: "".concat(_styles.BORDER_PADDING, "px"),
|
|
26
26
|
lineHeight: 0,
|
|
@@ -48,7 +48,7 @@ var SingleValueContainer = exports.SingleValueContainer = /*#__PURE__*/function
|
|
|
48
48
|
inputValue = _this$props$selectPro.inputValue,
|
|
49
49
|
value = _this$props$selectPro.value;
|
|
50
50
|
if (isFocused || !hasValue) {
|
|
51
|
-
return
|
|
51
|
+
return /*#__PURE__*/_react.default.createElement(_SizeableAvatar.SizeableAvatar, {
|
|
52
52
|
appearance: appearance,
|
|
53
53
|
src: showUserAvatar(inputValue, value) ? value.data.avatarUrl : undefined
|
|
54
54
|
});
|
|
@@ -63,7 +63,7 @@ var SingleValueContainer = exports.SingleValueContainer = /*#__PURE__*/function
|
|
|
63
63
|
var _this$props2 = this.props,
|
|
64
64
|
children = _this$props2.children,
|
|
65
65
|
valueContainerProps = (0, _objectWithoutProperties2.default)(_this$props2, _excluded);
|
|
66
|
-
return
|
|
66
|
+
return /*#__PURE__*/_react.default.createElement(_select.components.ValueContainer, valueContainerProps, /*#__PURE__*/_react.default.createElement("div", {
|
|
67
67
|
css: placeholderIconContainer
|
|
68
68
|
}, this.renderAvatar()), children);
|
|
69
69
|
}
|
|
@@ -14,15 +14,14 @@ var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime
|
|
|
14
14
|
var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
|
|
15
15
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
16
16
|
var _colors = require("@atlaskit/theme/colors");
|
|
17
|
-
var _react = require("
|
|
18
|
-
var _react2 = _interopRequireDefault(require("react"));
|
|
17
|
+
var _react = _interopRequireDefault(require("react"));
|
|
19
18
|
var _reactIntlNext = require("react-intl-next");
|
|
20
19
|
var _AvatarItemOption = require("../AvatarItemOption");
|
|
21
20
|
var _HighlightText = require("../HighlightText");
|
|
22
21
|
var _i18n = require("../i18n");
|
|
23
22
|
var _SizeableAvatar = require("../SizeableAvatar");
|
|
24
23
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
|
|
25
|
-
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
24
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
26
25
|
var TeamOption = exports.TeamOption = /*#__PURE__*/function (_React$PureComponent) {
|
|
27
26
|
(0, _inherits2.default)(TeamOption, _React$PureComponent);
|
|
28
27
|
var _super = _createSuper(TeamOption);
|
|
@@ -37,10 +36,10 @@ var TeamOption = exports.TeamOption = /*#__PURE__*/function (_React$PureComponen
|
|
|
37
36
|
var _this$props$team = _this.props.team,
|
|
38
37
|
name = _this$props$team.name,
|
|
39
38
|
highlight = _this$props$team.highlight;
|
|
40
|
-
return [
|
|
39
|
+
return [/*#__PURE__*/_react.default.createElement("span", {
|
|
41
40
|
key: "name",
|
|
42
41
|
css: (0, _AvatarItemOption.textWrapper)(_this.props.isSelected ? "var(--ds-text-selected, ".concat(_colors.B400, ")") : "var(--ds-text, ".concat(_colors.N800, ")"))
|
|
43
|
-
},
|
|
42
|
+
}, /*#__PURE__*/_react.default.createElement(_HighlightText.HighlightText, {
|
|
44
43
|
highlights: highlight && highlight.name
|
|
45
44
|
}, name))];
|
|
46
45
|
});
|
|
@@ -57,9 +56,9 @@ var TeamOption = exports.TeamOption = /*#__PURE__*/function (_React$PureComponen
|
|
|
57
56
|
} else {
|
|
58
57
|
if (includesYou === true) {
|
|
59
58
|
if (memberCount > 50) {
|
|
60
|
-
return _this.getBylineComponent(isSelected,
|
|
59
|
+
return _this.getBylineComponent(isSelected, /*#__PURE__*/_react.default.createElement(_reactIntlNext.FormattedMessage, _i18n.messages.plus50MembersWithYou));
|
|
61
60
|
} else {
|
|
62
|
-
return _this.getBylineComponent(isSelected,
|
|
61
|
+
return _this.getBylineComponent(isSelected, /*#__PURE__*/_react.default.createElement(_reactIntlNext.FormattedMessage, (0, _extends2.default)({}, _i18n.messages.memberCountWithYou, {
|
|
63
62
|
values: {
|
|
64
63
|
count: memberCount
|
|
65
64
|
}
|
|
@@ -67,9 +66,9 @@ var TeamOption = exports.TeamOption = /*#__PURE__*/function (_React$PureComponen
|
|
|
67
66
|
}
|
|
68
67
|
} else {
|
|
69
68
|
if (memberCount > 50) {
|
|
70
|
-
return _this.getBylineComponent(isSelected,
|
|
69
|
+
return _this.getBylineComponent(isSelected, /*#__PURE__*/_react.default.createElement(_reactIntlNext.FormattedMessage, _i18n.messages.plus50MembersWithoutYou));
|
|
71
70
|
} else {
|
|
72
|
-
return _this.getBylineComponent(isSelected,
|
|
71
|
+
return _this.getBylineComponent(isSelected, /*#__PURE__*/_react.default.createElement(_reactIntlNext.FormattedMessage, (0, _extends2.default)({}, _i18n.messages.memberCountWithoutYou, {
|
|
73
72
|
values: {
|
|
74
73
|
count: memberCount
|
|
75
74
|
}
|
|
@@ -79,7 +78,7 @@ var TeamOption = exports.TeamOption = /*#__PURE__*/function (_React$PureComponen
|
|
|
79
78
|
}
|
|
80
79
|
});
|
|
81
80
|
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "getBylineComponent", function (isSelected, message) {
|
|
82
|
-
return
|
|
81
|
+
return /*#__PURE__*/_react.default.createElement("span", {
|
|
83
82
|
css: (0, _AvatarItemOption.textWrapper)(isSelected ? "var(--ds-text-selected, ".concat(_colors.B400, ")") : "var(--ds-text-subtlest, ".concat(_colors.N200, ")")),
|
|
84
83
|
"data-testid": "user-picker-team-secondary-text"
|
|
85
84
|
}, message);
|
|
@@ -88,7 +87,7 @@ var TeamOption = exports.TeamOption = /*#__PURE__*/function (_React$PureComponen
|
|
|
88
87
|
var _this$props$team3 = _this.props.team,
|
|
89
88
|
avatarUrl = _this$props$team3.avatarUrl,
|
|
90
89
|
name = _this$props$team3.name;
|
|
91
|
-
return
|
|
90
|
+
return /*#__PURE__*/_react.default.createElement(_SizeableAvatar.SizeableAvatar, {
|
|
92
91
|
appearance: "big",
|
|
93
92
|
src: avatarUrl,
|
|
94
93
|
name: name
|
|
@@ -104,7 +103,7 @@ var TeamOption = exports.TeamOption = /*#__PURE__*/function (_React$PureComponen
|
|
|
104
103
|
if (!((_this$props$team4 = _this.props.team) !== null && _this$props$team4 !== void 0 && _this$props$team4.byline)) {
|
|
105
104
|
return undefined;
|
|
106
105
|
}
|
|
107
|
-
return
|
|
106
|
+
return /*#__PURE__*/_react.default.createElement("span", {
|
|
108
107
|
css: (0, _AvatarItemOption.textWrapper)(_this.props.isSelected ? "var(--ds-text-selected, ".concat(_colors.B400, ")") : "var(--ds-text-subtlest, ".concat(_colors.N200, ")"))
|
|
109
108
|
}, _this.props.team.byline);
|
|
110
109
|
});
|
|
@@ -113,7 +112,7 @@ var TeamOption = exports.TeamOption = /*#__PURE__*/function (_React$PureComponen
|
|
|
113
112
|
(0, _createClass2.default)(TeamOption, [{
|
|
114
113
|
key: "render",
|
|
115
114
|
value: function render() {
|
|
116
|
-
return
|
|
115
|
+
return /*#__PURE__*/_react.default.createElement(_AvatarItemOption.AvatarItemOption, {
|
|
117
116
|
avatar: this.renderAvatar(),
|
|
118
117
|
isDisabled: this.props.team.isDisabled,
|
|
119
118
|
lozenge: this.getLozengeProps(),
|
|
@@ -123,4 +122,4 @@ var TeamOption = exports.TeamOption = /*#__PURE__*/function (_React$PureComponen
|
|
|
123
122
|
}
|
|
124
123
|
}]);
|
|
125
124
|
return TeamOption;
|
|
126
|
-
}(
|
|
125
|
+
}(_react.default.PureComponent);
|
|
@@ -13,14 +13,13 @@ var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime
|
|
|
13
13
|
var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
|
|
14
14
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
15
15
|
var _colors = require("@atlaskit/theme/colors");
|
|
16
|
-
var _react = require("
|
|
17
|
-
var _react2 = _interopRequireDefault(require("react"));
|
|
16
|
+
var _react = _interopRequireDefault(require("react"));
|
|
18
17
|
var _AvatarItemOption = require("./AvatarItemOption");
|
|
19
18
|
var _HighlightText = require("./HighlightText");
|
|
20
19
|
var _SizeableAvatar = require("./SizeableAvatar");
|
|
21
20
|
var _utils = require("./utils");
|
|
22
21
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
|
|
23
|
-
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
22
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
24
23
|
var UserOption = exports.UserOption = /*#__PURE__*/function (_React$PureComponent) {
|
|
25
24
|
(0, _inherits2.default)(UserOption, _React$PureComponent);
|
|
26
25
|
var _super = _createSuper(UserOption);
|
|
@@ -36,25 +35,25 @@ var UserOption = exports.UserOption = /*#__PURE__*/function (_React$PureComponen
|
|
|
36
35
|
name = _this$props$user.name,
|
|
37
36
|
publicName = _this$props$user.publicName,
|
|
38
37
|
highlight = _this$props$user.highlight;
|
|
39
|
-
var result = [
|
|
38
|
+
var result = [/*#__PURE__*/_react.default.createElement("span", {
|
|
40
39
|
key: "name",
|
|
41
40
|
css: (0, _AvatarItemOption.textWrapper)(_this.props.isSelected ? "var(--ds-text-selected, ".concat(_colors.B400, ")") : "var(--ds-text, ".concat(_colors.N800, ")"))
|
|
42
|
-
},
|
|
41
|
+
}, /*#__PURE__*/_react.default.createElement(_HighlightText.HighlightText, {
|
|
43
42
|
highlights: highlight && highlight.name
|
|
44
43
|
}, name))];
|
|
45
44
|
if ((0, _utils.hasValue)(publicName) && name.trim() !== publicName.trim()) {
|
|
46
|
-
result.push(
|
|
45
|
+
result.push( /*#__PURE__*/_react.default.createElement(_react.default.Fragment, {
|
|
47
46
|
key: "publicName"
|
|
48
|
-
}, ' ',
|
|
47
|
+
}, ' ', /*#__PURE__*/_react.default.createElement("span", {
|
|
49
48
|
css: (0, _AvatarItemOption.textWrapper)(_this.props.isSelected ? "var(--ds-text-selected, ".concat(_colors.B400, ")") : "var(--ds-text-subtlest, ".concat(_colors.N200, ")"))
|
|
50
|
-
}, "(",
|
|
49
|
+
}, "(", /*#__PURE__*/_react.default.createElement(_HighlightText.HighlightText, {
|
|
51
50
|
highlights: highlight && highlight.publicName
|
|
52
51
|
}, publicName), ")")));
|
|
53
52
|
}
|
|
54
53
|
return result;
|
|
55
54
|
});
|
|
56
55
|
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "renderSecondaryText", function () {
|
|
57
|
-
return _this.props.user.byline ?
|
|
56
|
+
return _this.props.user.byline ? /*#__PURE__*/_react.default.createElement("span", {
|
|
58
57
|
css: (0, _AvatarItemOption.textWrapper)(_this.props.isSelected ? "var(--ds-text-selected, ".concat(_colors.B400, ")") : "var(--ds-text-subtlest, ".concat(_colors.N200, ")"))
|
|
59
58
|
}, _this.props.user.byline) : undefined;
|
|
60
59
|
});
|
|
@@ -64,7 +63,7 @@ var UserOption = exports.UserOption = /*#__PURE__*/function (_React$PureComponen
|
|
|
64
63
|
avatarUrl = _this$props$user2.avatarUrl,
|
|
65
64
|
name = _this$props$user2.name,
|
|
66
65
|
status = _this$props.status;
|
|
67
|
-
return
|
|
66
|
+
return /*#__PURE__*/_react.default.createElement(_SizeableAvatar.SizeableAvatar, {
|
|
68
67
|
appearance: "big",
|
|
69
68
|
src: avatarUrl,
|
|
70
69
|
presence: status,
|
|
@@ -81,7 +80,7 @@ var UserOption = exports.UserOption = /*#__PURE__*/function (_React$PureComponen
|
|
|
81
80
|
(0, _createClass2.default)(UserOption, [{
|
|
82
81
|
key: "render",
|
|
83
82
|
value: function render() {
|
|
84
|
-
return
|
|
83
|
+
return /*#__PURE__*/_react.default.createElement(_AvatarItemOption.AvatarItemOption, {
|
|
85
84
|
avatar: this.renderAvatar(),
|
|
86
85
|
lozenge: this.getLozengeProps(),
|
|
87
86
|
isDisabled: this.props.user.isDisabled,
|
|
@@ -91,4 +90,4 @@ var UserOption = exports.UserOption = /*#__PURE__*/function (_React$PureComponen
|
|
|
91
90
|
}
|
|
92
91
|
}]);
|
|
93
92
|
return UserOption;
|
|
94
|
-
}(
|
|
93
|
+
}(_react.default.PureComponent);
|
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.12.
|
|
5
|
+
const packageVersion = "10.12.4";
|
|
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}$/;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
/** @jsx jsx */
|
|
2
1
|
import EmailIcon from '@atlaskit/icon/glyph/email';
|
|
3
2
|
import { N40, N500 } from '@atlaskit/theme/colors';
|
|
4
3
|
import React from 'react';
|
|
5
|
-
import { css
|
|
4
|
+
import { css } from '@emotion/react';
|
|
6
5
|
const getEmailAvatarWrapperStyle = isLozenge => {
|
|
7
6
|
const padding = isLozenge ? 0 : 4;
|
|
8
7
|
return css({
|
|
@@ -17,9 +16,9 @@ export const AddOptionAvatar = ({
|
|
|
17
16
|
isLozenge,
|
|
18
17
|
label
|
|
19
18
|
}) => {
|
|
20
|
-
return
|
|
19
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
21
20
|
css: getEmailAvatarWrapperStyle(isLozenge)
|
|
22
|
-
},
|
|
21
|
+
}, /*#__PURE__*/React.createElement(EmailIcon, {
|
|
23
22
|
label: label,
|
|
24
23
|
size: isLozenge ? 'small' : 'medium',
|
|
25
24
|
primaryColor: `var(--ds-text-subtle, ${N500})`
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
/** @jsx jsx */
|
|
2
1
|
import React from 'react';
|
|
3
|
-
import { css
|
|
2
|
+
import { css } from '@emotion/react';
|
|
4
3
|
import Lozenge from '@atlaskit/lozenge';
|
|
5
4
|
import { isLozengeText } from './utils';
|
|
6
5
|
const AsyncTooltip = /*#__PURE__*/React.lazy(() => import( /* webpackChunkName: "@atlaskit-internal_@atlaskit/tooltip" */'@atlaskit/tooltip').then(module => {
|
|
@@ -59,25 +58,25 @@ export const AvatarItemOption = ({
|
|
|
59
58
|
if (lozenge !== null && lozenge !== void 0 && lozenge.tooltip) {
|
|
60
59
|
// Note that entire Lozenge must be wrapped in the Tooltip (rather than just the
|
|
61
60
|
// Lozenge text) or tooltip won't work
|
|
62
|
-
return
|
|
63
|
-
fallback:
|
|
64
|
-
},
|
|
61
|
+
return /*#__PURE__*/React.createElement(React.Suspense, {
|
|
62
|
+
fallback: /*#__PURE__*/React.createElement(Lozenge, lozenge, lozenge.text)
|
|
63
|
+
}, /*#__PURE__*/React.createElement(AsyncTooltip, {
|
|
65
64
|
content: lozenge.tooltip
|
|
66
|
-
},
|
|
65
|
+
}, /*#__PURE__*/React.createElement(Lozenge, lozenge, lozenge.text)));
|
|
67
66
|
}
|
|
68
|
-
return
|
|
67
|
+
return /*#__PURE__*/React.createElement(Lozenge, lozenge, lozenge.text);
|
|
69
68
|
}
|
|
70
69
|
return lozenge;
|
|
71
70
|
};
|
|
72
|
-
return
|
|
71
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
73
72
|
css: wrapper(isDisabled)
|
|
74
|
-
}, avatar,
|
|
73
|
+
}, avatar, /*#__PURE__*/React.createElement("div", {
|
|
75
74
|
css: optionWrapper
|
|
76
|
-
},
|
|
75
|
+
}, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
|
|
77
76
|
css: getTextStyle()
|
|
78
|
-
}, primaryText), secondaryText &&
|
|
77
|
+
}, primaryText), secondaryText && /*#__PURE__*/React.createElement("div", {
|
|
79
78
|
css: getTextStyle(true)
|
|
80
|
-
}, secondaryText))), lozenge &&
|
|
79
|
+
}, secondaryText))), lozenge && /*#__PURE__*/React.createElement("div", {
|
|
81
80
|
css: additionalInfo
|
|
82
81
|
}, renderLozenge()));
|
|
83
82
|
};
|
|
@@ -303,7 +303,10 @@ export class BaseUserPickerWithoutAnalytics extends React.Component {
|
|
|
303
303
|
}
|
|
304
304
|
}
|
|
305
305
|
});
|
|
306
|
-
|
|
306
|
+
// for SSR, MutationObserver not existed in node, need to check its existence first
|
|
307
|
+
// using typeof MutationObserver to check if MutationObserver is function, it is undefined in node
|
|
308
|
+
// if it is node environment, focusedOptionObserver will be falsy value.
|
|
309
|
+
_defineProperty(this, "focusedOptionObserver", typeof MutationObserver === 'function' && new MutationObserver(this.focusedOptionObserverCallback));
|
|
307
310
|
_defineProperty(this, "handleKeyDown", event => {
|
|
308
311
|
// Escape
|
|
309
312
|
if (event.keyCode === 27) {
|
|
@@ -400,7 +403,7 @@ export class BaseUserPickerWithoutAnalytics extends React.Component {
|
|
|
400
403
|
var _menuRef$children$;
|
|
401
404
|
const menuRef = this.selectRef.select.menuListRef;
|
|
402
405
|
((_menuRef$children$ = menuRef.children[0]) === null || _menuRef$children$ === void 0 ? void 0 : _menuRef$children$.classList.contains(optionFocusedClass)) && this.selectRef.select.inputRef.setAttribute('aria-activedescendant', menuRef.children[0].id);
|
|
403
|
-
this.focusedOptionObserver.observe(menuRef, observerOptions);
|
|
406
|
+
this.focusedOptionObserver && this.focusedOptionObserver.observe(menuRef, observerOptions);
|
|
404
407
|
}
|
|
405
408
|
if (!this.session) {
|
|
406
409
|
// session should have been created onFocus
|
|
@@ -417,7 +420,7 @@ export class BaseUserPickerWithoutAnalytics extends React.Component {
|
|
|
417
420
|
this.session = undefined;
|
|
418
421
|
if (getBooleanFF('platform.design-system-team.select-aria-activedescendant_psxzq')) {
|
|
419
422
|
this.selectRef.select.inputRef.removeAttribute('aria-activedescendant');
|
|
420
|
-
this.focusedOptionObserver.disconnect();
|
|
423
|
+
this.focusedOptionObserver && this.focusedOptionObserver.disconnect();
|
|
421
424
|
}
|
|
422
425
|
}
|
|
423
426
|
if (menuIsOpen && (!prevState.menuIsOpen && options.length > 0 || options.length !== prevState.options.length)) {
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
|
-
/** @jsx jsx */
|
|
3
2
|
import { B400, N800, N200 } from '@atlaskit/theme/colors';
|
|
4
|
-
import { jsx } from '@emotion/react';
|
|
5
3
|
import React from 'react';
|
|
6
4
|
import { AvatarItemOption, textWrapper } from '../AvatarItemOption';
|
|
7
5
|
import { HighlightText } from '../HighlightText';
|
|
@@ -16,14 +14,14 @@ export class CustomOption extends React.PureComponent {
|
|
|
16
14
|
highlight
|
|
17
15
|
}
|
|
18
16
|
} = this.props;
|
|
19
|
-
return [
|
|
17
|
+
return [/*#__PURE__*/React.createElement("span", {
|
|
20
18
|
key: "name",
|
|
21
19
|
css: textWrapper(this.props.isSelected ? `var(--ds-text-selected, ${B400})` : `var(--ds-text, ${N800})`)
|
|
22
|
-
},
|
|
20
|
+
}, /*#__PURE__*/React.createElement(HighlightText, {
|
|
23
21
|
highlights: highlight && highlight.name
|
|
24
22
|
}, name))];
|
|
25
23
|
});
|
|
26
|
-
_defineProperty(this, "getBylineComponent", (isSelected, message) =>
|
|
24
|
+
_defineProperty(this, "getBylineComponent", (isSelected, message) => /*#__PURE__*/React.createElement("span", {
|
|
27
25
|
css: textWrapper(isSelected ? `var(--ds-text-selected, ${B400})` : `var(--ds-text-subtlest, ${N200})`),
|
|
28
26
|
"data-testid": "user-picker-custom-secondary-text"
|
|
29
27
|
}, message));
|
|
@@ -41,7 +39,7 @@ export class CustomOption extends React.PureComponent {
|
|
|
41
39
|
name
|
|
42
40
|
}
|
|
43
41
|
} = this.props;
|
|
44
|
-
return
|
|
42
|
+
return /*#__PURE__*/React.createElement(SizeableAvatar, {
|
|
45
43
|
appearance: "big",
|
|
46
44
|
src: avatarUrl,
|
|
47
45
|
name: name
|
|
@@ -52,7 +50,7 @@ export class CustomOption extends React.PureComponent {
|
|
|
52
50
|
} : this.props.data.lozenge);
|
|
53
51
|
}
|
|
54
52
|
render() {
|
|
55
|
-
return
|
|
53
|
+
return /*#__PURE__*/React.createElement(AvatarItemOption, {
|
|
56
54
|
avatar: this.renderAvatar(),
|
|
57
55
|
isDisabled: this.props.data.isDisabled,
|
|
58
56
|
lozenge: this.getLozengeProps(),
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
|
-
/** @jsx jsx */
|
|
3
2
|
import React from 'react';
|
|
4
3
|
import { FormattedMessage } from 'react-intl-next';
|
|
5
4
|
import { B400, N200, N800 } from '@atlaskit/theme/colors';
|
|
6
|
-
import { jsx } from '@emotion/react';
|
|
7
5
|
import { AddOptionAvatar } from '../AddOptionAvatar';
|
|
8
6
|
import { AvatarItemOption, textWrapper } from '../AvatarItemOption';
|
|
9
7
|
import { messages } from '../i18n';
|
|
@@ -20,19 +18,19 @@ export class EmailOption extends React.PureComponent {
|
|
|
20
18
|
id
|
|
21
19
|
}
|
|
22
20
|
} = this.props;
|
|
23
|
-
return
|
|
21
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
24
22
|
key: "name",
|
|
25
23
|
css: textWrapper(this.props.isSelected ? `var(--ds-text-selected, ${B400})` : `var(--ds-text, ${N800})`)
|
|
26
24
|
}, id);
|
|
27
25
|
});
|
|
28
26
|
_defineProperty(this, "renderSecondaryText", label => {
|
|
29
|
-
return
|
|
27
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
30
28
|
css: textWrapper(this.props.isSelected ? `var(--ds-text-selected, ${B400})` : `var(--ds-text-subtlest, ${N200})`),
|
|
31
29
|
"data-testid": "user-picker-email-secondary-text"
|
|
32
30
|
}, label);
|
|
33
31
|
});
|
|
34
|
-
_defineProperty(this, "renderOption", label =>
|
|
35
|
-
avatar:
|
|
32
|
+
_defineProperty(this, "renderOption", label => /*#__PURE__*/React.createElement(AvatarItemOption, {
|
|
33
|
+
avatar: /*#__PURE__*/React.createElement(AddOptionAvatar, {
|
|
36
34
|
label: label
|
|
37
35
|
}),
|
|
38
36
|
lozenge: this.getLozengeProps(),
|
|
@@ -46,6 +44,6 @@ export class EmailOption extends React.PureComponent {
|
|
|
46
44
|
label,
|
|
47
45
|
emailValidity
|
|
48
46
|
} = this.props;
|
|
49
|
-
return label !== undefined ? this.renderOption(label) :
|
|
47
|
+
return label !== undefined ? this.renderOption(label) : /*#__PURE__*/React.createElement(FormattedMessage, getAddEmailMessage(emailValidity), label => this.renderOption(label));
|
|
50
48
|
}
|
|
51
49
|
}
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
import { css, jsx } from '@emotion/react';
|
|
1
|
+
import { css } from '@emotion/react';
|
|
4
2
|
import { B400 } from '@atlaskit/theme/colors';
|
|
5
3
|
const outerWrapper = isDisabled => css({
|
|
6
4
|
alignItems: 'center',
|
|
@@ -51,14 +49,14 @@ export const ExternalAvatarItemOption = ({
|
|
|
51
49
|
primaryText,
|
|
52
50
|
secondaryText,
|
|
53
51
|
sourcesInfoTooltip
|
|
54
|
-
}) =>
|
|
52
|
+
}) => /*#__PURE__*/React.createElement("div", {
|
|
55
53
|
css: outerWrapper(isDisabled)
|
|
56
|
-
}, avatar,
|
|
54
|
+
}, avatar, /*#__PURE__*/React.createElement("div", {
|
|
57
55
|
css: detailsWrapper
|
|
58
|
-
},
|
|
56
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
59
57
|
css: textSection
|
|
60
|
-
},
|
|
58
|
+
}, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
|
|
61
59
|
css: getTextStyle()
|
|
62
|
-
}, primaryText)), secondaryText &&
|
|
60
|
+
}, primaryText)), secondaryText && /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
|
|
63
61
|
css: getTextStyle(true)
|
|
64
|
-
}, secondaryText))),
|
|
62
|
+
}, secondaryText))), /*#__PURE__*/React.createElement("div", null, sourcesInfoTooltip)));
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
/** @jsx jsx */
|
|
2
1
|
import { useCallback, useState } from 'react';
|
|
3
|
-
import { css
|
|
2
|
+
import { css } from '@emotion/react';
|
|
4
3
|
import EditorPanelIcon from '@atlaskit/icon/glyph/editor/panel';
|
|
5
4
|
import { N50, N200 } from '@atlaskit/theme/colors';
|
|
6
5
|
const wrapper = css({
|
|
@@ -10,11 +9,11 @@ export default (() => {
|
|
|
10
9
|
const [isMouseHovered, setHoverState] = useState(false);
|
|
11
10
|
const onMouseEnter = useCallback(() => setHoverState(true), [setHoverState]);
|
|
12
11
|
const onMouseLeave = useCallback(() => setHoverState(false), [setHoverState]);
|
|
13
|
-
return
|
|
12
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
14
13
|
css: wrapper,
|
|
15
14
|
onMouseEnter: onMouseEnter,
|
|
16
15
|
onMouseLeave: onMouseLeave
|
|
17
|
-
},
|
|
16
|
+
}, /*#__PURE__*/React.createElement(EditorPanelIcon, {
|
|
18
17
|
testId: "source-icon",
|
|
19
18
|
label: "",
|
|
20
19
|
size: "large",
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
/** @jsx jsx */
|
|
2
1
|
import React from 'react';
|
|
3
2
|
import { FormattedMessage } from 'react-intl-next';
|
|
4
|
-
import { css
|
|
3
|
+
import { css } from '@emotion/react';
|
|
5
4
|
import { AtlassianIcon, ConfluenceIcon, JiraIcon } from '@atlaskit/logo';
|
|
6
5
|
import Spinner from '@atlaskit/spinner/spinner';
|
|
7
6
|
import { SlackIcon } from '../assets/slack';
|
|
@@ -21,37 +20,37 @@ export const sourceWrapper = css({
|
|
|
21
20
|
});
|
|
22
21
|
const SUPPORTED_SOURCES = [{
|
|
23
22
|
sourceType: 'jira',
|
|
24
|
-
icon:
|
|
23
|
+
icon: /*#__PURE__*/React.createElement(JiraIcon, {
|
|
25
24
|
size: 'xsmall'
|
|
26
25
|
}),
|
|
27
26
|
label: messages.jiraSource
|
|
28
27
|
}, {
|
|
29
28
|
sourceType: 'confluence',
|
|
30
|
-
icon:
|
|
29
|
+
icon: /*#__PURE__*/React.createElement(ConfluenceIcon, {
|
|
31
30
|
size: 'xsmall'
|
|
32
31
|
}),
|
|
33
32
|
label: messages.confluenceSource
|
|
34
33
|
}, {
|
|
35
34
|
sourceType: 'other-atlassian',
|
|
36
|
-
icon:
|
|
35
|
+
icon: /*#__PURE__*/React.createElement(AtlassianIcon, {
|
|
37
36
|
size: 'xsmall'
|
|
38
37
|
}),
|
|
39
38
|
label: messages.otherAtlassianSource
|
|
40
39
|
}, {
|
|
41
40
|
sourceType: 'slack',
|
|
42
|
-
icon:
|
|
41
|
+
icon: /*#__PURE__*/React.createElement(SlackIcon, null),
|
|
43
42
|
label: messages.slackProvider
|
|
44
43
|
}, {
|
|
45
44
|
sourceType: 'google',
|
|
46
|
-
icon:
|
|
45
|
+
icon: /*#__PURE__*/React.createElement(GoogleIcon, null),
|
|
47
46
|
label: messages.googleProvider
|
|
48
47
|
}, {
|
|
49
48
|
sourceType: 'microsoft',
|
|
50
|
-
icon:
|
|
49
|
+
icon: /*#__PURE__*/React.createElement(MicrosoftIcon, null),
|
|
51
50
|
label: messages.microsoftProvider
|
|
52
51
|
}, {
|
|
53
52
|
sourceType: 'github',
|
|
54
|
-
icon:
|
|
53
|
+
icon: /*#__PURE__*/React.createElement(GitHubIcon, null),
|
|
55
54
|
label: messages.gitHubProvider
|
|
56
55
|
}];
|
|
57
56
|
export const SourcesTooltipContent = ({
|
|
@@ -59,19 +58,19 @@ export const SourcesTooltipContent = ({
|
|
|
59
58
|
sourcesLoading
|
|
60
59
|
}) => {
|
|
61
60
|
const sourcesToRender = React.useMemo(() => SUPPORTED_SOURCES.filter(supportedSource => sources.includes(supportedSource.sourceType)), [sources]);
|
|
62
|
-
return
|
|
61
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, !sourcesLoading && sources.length === 0 ? /*#__PURE__*/React.createElement("span", null, /*#__PURE__*/React.createElement(FormattedMessage, messages.externalUserSourcesError)) : /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("span", null, /*#__PURE__*/React.createElement(FormattedMessage, messages.externalUserSourcesHeading)), /*#__PURE__*/React.createElement("div", {
|
|
63
62
|
css: sourcesTooltipContainer
|
|
64
|
-
}, sourcesLoading &&
|
|
63
|
+
}, sourcesLoading && /*#__PURE__*/React.createElement(Spinner, {
|
|
65
64
|
size: "small",
|
|
66
65
|
appearance: "invert"
|
|
67
66
|
}), !sourcesLoading && sourcesToRender.map(({
|
|
68
67
|
sourceType,
|
|
69
68
|
icon,
|
|
70
69
|
label
|
|
71
|
-
}) =>
|
|
70
|
+
}) => /*#__PURE__*/React.createElement("div", {
|
|
72
71
|
css: sourceWrapper,
|
|
73
72
|
key: sourceType
|
|
74
|
-
},
|
|
73
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
75
74
|
css: imageContainer
|
|
76
|
-
}, icon),
|
|
75
|
+
}, icon), /*#__PURE__*/React.createElement("span", null, /*#__PURE__*/React.createElement(FormattedMessage, label)))))));
|
|
77
76
|
};
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
|
-
/** @jsx jsx */
|
|
3
2
|
import React from 'react';
|
|
4
|
-
import { css
|
|
3
|
+
import { css } from '@emotion/react';
|
|
5
4
|
import { B400, N200, N800 } from '@atlaskit/theme/colors';
|
|
6
5
|
import Tooltip from '@atlaskit/tooltip';
|
|
7
6
|
import { withAnalyticsEvents } from '@atlaskit/analytics-next';
|
|
@@ -32,7 +31,7 @@ class ExternalUserOptionImpl extends React.PureComponent {
|
|
|
32
31
|
name
|
|
33
32
|
}
|
|
34
33
|
} = this.props;
|
|
35
|
-
return
|
|
34
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
36
35
|
key: "name",
|
|
37
36
|
css: textWrapper(this.props.isSelected ? `var(--ds-text-selected, ${B400})` : `var(--ds-text, ${N800})`)
|
|
38
37
|
}, name);
|
|
@@ -46,9 +45,9 @@ class ExternalUserOptionImpl extends React.PureComponent {
|
|
|
46
45
|
}
|
|
47
46
|
const [emailUser, emailDomain] = email.split('@');
|
|
48
47
|
const emailDomainWithAt = `@${emailDomain}`;
|
|
49
|
-
return
|
|
48
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
50
49
|
css: textWrapper(this.props.isSelected ? `var(--ds-text-selected, ${B400})` : `var(--ds-text-subtlest, ${N200})`)
|
|
51
|
-
}, emailUser,
|
|
50
|
+
}, emailUser, /*#__PURE__*/React.createElement("span", {
|
|
52
51
|
css: emailDomainWrapper
|
|
53
52
|
}, emailDomainWithAt));
|
|
54
53
|
});
|
|
@@ -60,7 +59,7 @@ class ExternalUserOptionImpl extends React.PureComponent {
|
|
|
60
59
|
},
|
|
61
60
|
status
|
|
62
61
|
} = this.props;
|
|
63
|
-
return
|
|
62
|
+
return /*#__PURE__*/React.createElement(SizeableAvatar, {
|
|
64
63
|
appearance: "big",
|
|
65
64
|
src: avatarUrl,
|
|
66
65
|
presence: status,
|
|
@@ -81,14 +80,14 @@ class ExternalUserOptionImpl extends React.PureComponent {
|
|
|
81
80
|
} = this.props;
|
|
82
81
|
this.fireEvent(userInfoEvent, user.sources, user.id);
|
|
83
82
|
});
|
|
84
|
-
_defineProperty(this, "getSourcesInfoTooltip", () => this.props.user.isExternal ?
|
|
83
|
+
_defineProperty(this, "getSourcesInfoTooltip", () => this.props.user.isExternal ? /*#__PURE__*/React.createElement(Tooltip, {
|
|
85
84
|
content: this.formattedTooltipContent(),
|
|
86
85
|
position: 'right-start',
|
|
87
86
|
onShow: this.onShow
|
|
88
|
-
},
|
|
87
|
+
}, /*#__PURE__*/React.createElement(InfoIcon, null)) : undefined);
|
|
89
88
|
}
|
|
90
89
|
render() {
|
|
91
|
-
return
|
|
90
|
+
return /*#__PURE__*/React.createElement(ExternalAvatarItemOption, {
|
|
92
91
|
avatar: this.renderAvatar(),
|
|
93
92
|
isDisabled: this.props.user.isDisabled,
|
|
94
93
|
primaryText: this.getPrimaryText(),
|
|
@@ -104,11 +103,11 @@ class ExternalUserOptionImpl extends React.PureComponent {
|
|
|
104
103
|
sources
|
|
105
104
|
}
|
|
106
105
|
} = this.props;
|
|
107
|
-
return
|
|
106
|
+
return /*#__PURE__*/React.createElement(ExternalUserSourcesContainer, {
|
|
108
107
|
accountId: id,
|
|
109
108
|
shouldFetchSources: Boolean(requiresSourceHydration),
|
|
110
109
|
initialSources: sources
|
|
111
|
-
}, sourceData =>
|
|
110
|
+
}, sourceData => /*#__PURE__*/React.createElement(SourcesTooltipContent, sourceData));
|
|
112
111
|
}
|
|
113
112
|
}
|
|
114
113
|
export const ExternalUserOption = withAnalyticsEvents()(ExternalUserOptionImpl);
|