@atlaskit/user-picker 11.0.12 → 11.0.14

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 CHANGED
@@ -1,5 +1,19 @@
1
1
  # @atlaskit/user-picker
2
2
 
3
+ ## 11.0.14
4
+
5
+ ### Patch Changes
6
+
7
+ - [#155339](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/155339)
8
+ [`4e0fe53072701`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/4e0fe53072701) -
9
+ Clean up verified-team-in-user-picker
10
+
11
+ ## 11.0.13
12
+
13
+ ### Patch Changes
14
+
15
+ - Updated dependencies
16
+
3
17
  ## 11.0.12
4
18
 
5
19
  ### Patch Changes
@@ -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 = "11.0.12";
15
+ var packageVersion = "11.0.14";
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}$/;
@@ -22,7 +22,6 @@ var _SizeableAvatar = require("./SizeableAvatar");
22
22
  var _utils = require("./utils");
23
23
  var _peopleGroupPeople = _interopRequireDefault(require("@atlaskit/icon/core/migration/people-group--people"));
24
24
  var _verifiedTeamIcon = require("@atlaskit/people-teams-ui-public/verified-team-icon");
25
- var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
26
25
  var _excluded = ["children", "innerProps"];
27
26
  function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); }
28
27
  function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } /**
@@ -77,12 +76,12 @@ var MultiValue = exports.MultiValue = /*#__PURE__*/function (_React$Component) {
77
76
  return (0, _react2.jsx)(_SizeableAvatar.SizeableAvatar, {
78
77
  appearance: "multi",
79
78
  src: (0, _utils.getAvatarUrl)(data),
80
- type: (0, _utils.isTeam)(data) && (0, _platformFeatureFlags.fg)('verified-team-in-user-picker') ? 'team' : 'person'
79
+ type: (0, _utils.isTeam)(data) ? 'team' : 'person'
81
80
  });
82
81
  });
83
82
  (0, _defineProperty2.default)(_this, "getElemAfter", function () {
84
83
  var data = _this.props.data.data;
85
- if ((0, _utils.isTeam)(data) && data.verified && (0, _platformFeatureFlags.fg)('verified-team-in-user-picker')) {
84
+ if ((0, _utils.isTeam)(data) && data.verified) {
86
85
  return (0, _react2.jsx)(_verifiedTeamIcon.VerifiedTeamIcon, null);
87
86
  }
88
87
  return null;
@@ -65,8 +65,8 @@ var PopupUserPickerWithoutAnalytics = exports.PopupUserPickerWithoutAnalytics =
65
65
  strategy = _this$props.strategy;
66
66
  var width = this.props.width;
67
67
  var selectStyles = (0, _styles.getPopupStyles)(width, isMulti, styles,
68
- // eslint-disable-next-line @atlaskit/platform/no-preconditioning, @atlaskit/platform/ensure-feature-flag-prefix
69
- (0, _platformFeatureFlags.fg)('platform-component-visual-refresh') && (0, _platformFeatureFlags.fg)('visual-refresh-user-picker'));
68
+ // eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-prefix
69
+ (0, _platformFeatureFlags.fg)('platform-component-visual-refresh'));
70
70
  return /*#__PURE__*/_react.default.createElement(_BaseUserPicker.BaseUserPickerWithoutAnalytics, (0, _extends2.default)({}, this.props, {
71
71
  SelectComponent: _select.PopupSelect,
72
72
  width: width,
@@ -13,7 +13,6 @@ var _select = require("@atlaskit/select");
13
13
  var _SizeableAvatar = require("./SizeableAvatar");
14
14
  var _utils = require("./utils");
15
15
  var _verifiedTeamIcon = require("@atlaskit/people-teams-ui-public/verified-team-icon");
16
- var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
17
16
  var _compiled = require("@atlaskit/primitives/compiled");
18
17
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
19
18
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
@@ -41,14 +40,14 @@ var SingleValue = exports.SingleValue = function SingleValue(props) {
41
40
  }, /*#__PURE__*/React.createElement(_SizeableAvatar.SizeableAvatar, {
42
41
  src: (0, _utils.getAvatarUrl)(data),
43
42
  appearance: appearance,
44
- type: (0, _utils.isTeam)(data) && (0, _platformFeatureFlags.fg)('verified-team-in-user-picker') ? 'team' : 'person'
43
+ type: (0, _utils.isTeam)(data) ? 'team' : 'person'
45
44
  }), /*#__PURE__*/React.createElement(_compiled.Box, {
46
45
  xcss: styles.avatarItem
47
46
  }, /*#__PURE__*/React.createElement("div", {
48
47
  className: (0, _runtime.ax)([styles.avatarItemTextWrapper])
49
48
  }, /*#__PURE__*/React.createElement(_compiled.Box, {
50
49
  xcss: styles.avatarItemText
51
- }, (0, _platformFeatureFlags.fg)('verified-team-in-user-picker') ? /*#__PURE__*/React.createElement(_compiled.Inline, {
50
+ }, /*#__PURE__*/React.createElement(_compiled.Inline, {
52
51
  alignBlock: "center"
53
- }, label, /*#__PURE__*/React.createElement(ElementAfter, props)) : label))))) : null;
52
+ }, label, /*#__PURE__*/React.createElement(ElementAfter, props))))))) : null;
54
53
  };
@@ -13,7 +13,6 @@ var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/ge
13
13
  var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
14
14
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
15
15
  var _colors = require("@atlaskit/theme/colors");
16
- var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
17
16
  var _compiled = require("@atlaskit/primitives/compiled");
18
17
  var _verifiedTeamIcon = require("@atlaskit/people-teams-ui-public/verified-team-icon");
19
18
  var _react = require("@emotion/react");
@@ -46,13 +45,11 @@ var TeamOption = exports.TeamOption = /*#__PURE__*/function (_React$PureComponen
46
45
  // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
47
46
  ,
48
47
  css: (0, _AvatarItemOption.textWrapper)(_this.props.isSelected ? "var(--ds-text-selected, ".concat(_colors.B400, ")") : "var(--ds-text, ".concat(_colors.N800, ")"))
49
- }, (0, _platformFeatureFlags.fg)('verified-team-in-user-picker') ? (0, _react.jsx)(_compiled.Inline, {
48
+ }, (0, _react.jsx)(_compiled.Inline, {
50
49
  alignBlock: "center"
51
50
  }, (0, _react.jsx)(_HighlightText.HighlightText, {
52
51
  highlights: highlight && highlight.name
53
- }, name), verified && (0, _react.jsx)(_verifiedTeamIcon.VerifiedTeamIcon, null)) : (0, _react.jsx)(_HighlightText.HighlightText, {
54
- highlights: highlight && highlight.name
55
- }, name))];
52
+ }, name), verified && (0, _react.jsx)(_verifiedTeamIcon.VerifiedTeamIcon, null)))];
56
53
  });
57
54
  (0, _defineProperty2.default)(_this, "renderByline", function () {
58
55
  var _this$props = _this.props,
@@ -69,8 +69,8 @@ var UserOption = exports.UserOption = /*#__PURE__*/function (_React$PureComponen
69
69
  status = _this$props.status;
70
70
  return (0, _react.jsx)(_SizeableAvatar.SizeableAvatar, {
71
71
  appearance:
72
- // eslint-disable-next-line @atlaskit/platform/no-preconditioning, @atlaskit/platform/ensure-feature-flag-prefix
73
- (0, _platformFeatureFlags.fg)('platform-component-visual-refresh') && (0, _platformFeatureFlags.fg)('visual-refresh-user-picker') ? 'medium' : 'big',
72
+ // eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-prefix
73
+ (0, _platformFeatureFlags.fg)('platform-component-visual-refresh') ? 'medium' : 'big',
74
74
  src: avatarUrl,
75
75
  presence: status
76
76
  });
@@ -103,8 +103,8 @@ var UserPickerWithoutAnalytics = exports.UserPickerWithoutAnalytics = /*#__PURE_
103
103
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
104
104
  ,
105
105
  styles: (0, _styles.getStyles)(width, isMulti, this.props.appearance === 'compact', this.props.styles, this.props.isInvalid,
106
- // eslint-disable-next-line @atlaskit/platform/no-preconditioning, @atlaskit/platform/ensure-feature-flag-prefix
107
- (0, _platformFeatureFlags.fg)('platform-component-visual-refresh') && (0, _platformFeatureFlags.fg)('visual-refresh-user-picker')),
106
+ // eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-prefix
107
+ (0, _platformFeatureFlags.fg)('platform-component-visual-refresh')),
108
108
  components: (0, _components.getComponents)(isMulti, anchor, showClearIndicator && (0, _platformFeatureFlags.fg)('user-picker-show-clear-indicator'), (_this$props2 = this.props) !== null && _this$props2 !== void 0 && _this$props2.components ? this.props.components : {}),
109
109
  pickerProps: pickerProps
110
110
  })))));
@@ -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 = "11.0.12";
5
+ const packageVersion = "11.0.14";
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}$/;
@@ -14,7 +14,6 @@ import { SizeableAvatar } from './SizeableAvatar';
14
14
  import { getAvatarUrl, isEmail, isGroup, isTeam } from './utils';
15
15
  import PeopleIcon from '@atlaskit/icon/core/migration/people-group--people';
16
16
  import { VerifiedTeamIcon } from '@atlaskit/people-teams-ui-public/verified-team-icon';
17
- import { fg } from '@atlaskit/platform-feature-flags';
18
17
  export const scrollToValue = (valueContainer, control) => {
19
18
  const {
20
19
  top,
@@ -67,7 +66,7 @@ export class MultiValue extends React.Component {
67
66
  return jsx(SizeableAvatar, {
68
67
  appearance: "multi",
69
68
  src: getAvatarUrl(data),
70
- type: isTeam(data) && fg('verified-team-in-user-picker') ? 'team' : 'person'
69
+ type: isTeam(data) ? 'team' : 'person'
71
70
  });
72
71
  });
73
72
  _defineProperty(this, "getElemAfter", () => {
@@ -76,7 +75,7 @@ export class MultiValue extends React.Component {
76
75
  data
77
76
  }
78
77
  } = this.props;
79
- if (isTeam(data) && data.verified && fg('verified-team-in-user-picker')) {
78
+ if (isTeam(data) && data.verified) {
80
79
  return jsx(VerifiedTeamIcon, null);
81
80
  }
82
81
  return null;
@@ -49,8 +49,8 @@ export class PopupUserPickerWithoutAnalytics extends React.Component {
49
49
  } = this.props;
50
50
  const width = this.props.width;
51
51
  const selectStyles = getPopupStyles(width, isMulti, styles,
52
- // eslint-disable-next-line @atlaskit/platform/no-preconditioning, @atlaskit/platform/ensure-feature-flag-prefix
53
- fg('platform-component-visual-refresh') && fg('visual-refresh-user-picker'));
52
+ // eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-prefix
53
+ fg('platform-component-visual-refresh'));
54
54
  return /*#__PURE__*/React.createElement(BaseUserPickerWithoutAnalytics, _extends({}, this.props, {
55
55
  SelectComponent: PopupSelect,
56
56
  width: width,
@@ -6,7 +6,6 @@ import { components } from '@atlaskit/select';
6
6
  import { SizeableAvatar } from './SizeableAvatar';
7
7
  import { getAvatarUrl, isTeam } from './utils';
8
8
  import { VerifiedTeamIcon } from '@atlaskit/people-teams-ui-public/verified-team-icon';
9
- import { fg } from '@atlaskit/platform-feature-flags';
10
9
  import { Box, Flex, Inline } from '@atlaskit/primitives/compiled';
11
10
  const styles = {
12
11
  avatarItem: "_1reo15vq _18m915vq _4cvr1h6o _1ul953f4",
@@ -41,14 +40,14 @@ export const SingleValue = props => {
41
40
  }, /*#__PURE__*/React.createElement(SizeableAvatar, {
42
41
  src: getAvatarUrl(data),
43
42
  appearance: appearance,
44
- type: isTeam(data) && fg('verified-team-in-user-picker') ? 'team' : 'person'
43
+ type: isTeam(data) ? 'team' : 'person'
45
44
  }), /*#__PURE__*/React.createElement(Box, {
46
45
  xcss: styles.avatarItem
47
46
  }, /*#__PURE__*/React.createElement("div", {
48
47
  className: ax([styles.avatarItemTextWrapper])
49
48
  }, /*#__PURE__*/React.createElement(Box, {
50
49
  xcss: styles.avatarItemText
51
- }, fg('verified-team-in-user-picker') ? /*#__PURE__*/React.createElement(Inline, {
50
+ }, /*#__PURE__*/React.createElement(Inline, {
52
51
  alignBlock: "center"
53
- }, label, /*#__PURE__*/React.createElement(ElementAfter, props)) : label))))) : null;
52
+ }, label, /*#__PURE__*/React.createElement(ElementAfter, props))))))) : null;
54
53
  };
@@ -5,7 +5,6 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
5
5
  * @jsx jsx
6
6
  */
7
7
  import { B400, N800, N200 } from '@atlaskit/theme/colors';
8
- import { fg } from '@atlaskit/platform-feature-flags';
9
8
  import { Inline } from '@atlaskit/primitives/compiled';
10
9
  import { VerifiedTeamIcon } from '@atlaskit/people-teams-ui-public/verified-team-icon';
11
10
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
@@ -32,13 +31,11 @@ export class TeamOption extends React.PureComponent {
32
31
  // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
33
32
  ,
34
33
  css: textWrapper(this.props.isSelected ? `var(--ds-text-selected, ${B400})` : `var(--ds-text, ${N800})`)
35
- }, fg('verified-team-in-user-picker') ? jsx(Inline, {
34
+ }, jsx(Inline, {
36
35
  alignBlock: "center"
37
36
  }, jsx(HighlightText, {
38
37
  highlights: highlight && highlight.name
39
- }, name), verified && jsx(VerifiedTeamIcon, null)) : jsx(HighlightText, {
40
- highlights: highlight && highlight.name
41
- }, name))];
38
+ }, name), verified && jsx(VerifiedTeamIcon, null)))];
42
39
  });
43
40
  _defineProperty(this, "renderByline", () => {
44
41
  const {
@@ -56,8 +56,8 @@ export class UserOption extends React.PureComponent {
56
56
  } = this.props;
57
57
  return jsx(SizeableAvatar, {
58
58
  appearance:
59
- // eslint-disable-next-line @atlaskit/platform/no-preconditioning, @atlaskit/platform/ensure-feature-flag-prefix
60
- fg('platform-component-visual-refresh') && fg('visual-refresh-user-picker') ? 'medium' : 'big',
59
+ // eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-prefix
60
+ fg('platform-component-visual-refresh') ? 'medium' : 'big',
61
61
  src: avatarUrl,
62
62
  presence: status
63
63
  });
@@ -79,8 +79,8 @@ export class UserPickerWithoutAnalytics extends React.Component {
79
79
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
80
80
  ,
81
81
  styles: getStyles(width, isMulti, this.props.appearance === 'compact', this.props.styles, this.props.isInvalid,
82
- // eslint-disable-next-line @atlaskit/platform/no-preconditioning, @atlaskit/platform/ensure-feature-flag-prefix
83
- fg('platform-component-visual-refresh') && fg('visual-refresh-user-picker')),
82
+ // eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-prefix
83
+ fg('platform-component-visual-refresh')),
84
84
  components: getComponents(isMulti, anchor, showClearIndicator && fg('user-picker-show-clear-indicator'), (_this$props = this.props) !== null && _this$props !== void 0 && _this$props.components ? this.props.components : {}),
85
85
  pickerProps: pickerProps
86
86
  })))));
@@ -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 = "11.0.12";
8
+ var packageVersion = "11.0.14";
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}$/;
@@ -23,7 +23,6 @@ import { SizeableAvatar } from './SizeableAvatar';
23
23
  import { getAvatarUrl, isEmail, isGroup, isTeam } from './utils';
24
24
  import PeopleIcon from '@atlaskit/icon/core/migration/people-group--people';
25
25
  import { VerifiedTeamIcon } from '@atlaskit/people-teams-ui-public/verified-team-icon';
26
- import { fg } from '@atlaskit/platform-feature-flags';
27
26
  export var scrollToValue = function scrollToValue(valueContainer, control) {
28
27
  var _valueContainer$getBo = valueContainer.getBoundingClientRect(),
29
28
  top = _valueContainer$getBo.top,
@@ -72,12 +71,12 @@ export var MultiValue = /*#__PURE__*/function (_React$Component) {
72
71
  return jsx(SizeableAvatar, {
73
72
  appearance: "multi",
74
73
  src: getAvatarUrl(data),
75
- type: isTeam(data) && fg('verified-team-in-user-picker') ? 'team' : 'person'
74
+ type: isTeam(data) ? 'team' : 'person'
76
75
  });
77
76
  });
78
77
  _defineProperty(_this, "getElemAfter", function () {
79
78
  var data = _this.props.data.data;
80
- if (isTeam(data) && data.verified && fg('verified-team-in-user-picker')) {
79
+ if (isTeam(data) && data.verified) {
81
80
  return jsx(VerifiedTeamIcon, null);
82
81
  }
83
82
  return null;
@@ -58,8 +58,8 @@ export var PopupUserPickerWithoutAnalytics = /*#__PURE__*/function (_React$Compo
58
58
  strategy = _this$props.strategy;
59
59
  var width = this.props.width;
60
60
  var selectStyles = getPopupStyles(width, isMulti, styles,
61
- // eslint-disable-next-line @atlaskit/platform/no-preconditioning, @atlaskit/platform/ensure-feature-flag-prefix
62
- fg('platform-component-visual-refresh') && fg('visual-refresh-user-picker'));
61
+ // eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-prefix
62
+ fg('platform-component-visual-refresh'));
63
63
  return /*#__PURE__*/React.createElement(BaseUserPickerWithoutAnalytics, _extends({}, this.props, {
64
64
  SelectComponent: PopupSelect,
65
65
  width: width,
@@ -6,7 +6,6 @@ import { components } from '@atlaskit/select';
6
6
  import { SizeableAvatar } from './SizeableAvatar';
7
7
  import { getAvatarUrl, isTeam } from './utils';
8
8
  import { VerifiedTeamIcon } from '@atlaskit/people-teams-ui-public/verified-team-icon';
9
- import { fg } from '@atlaskit/platform-feature-flags';
10
9
  import { Box, Flex, Inline } from '@atlaskit/primitives/compiled';
11
10
  var styles = {
12
11
  avatarItem: "_1reo15vq _18m915vq _4cvr1h6o _1ul953f4",
@@ -32,14 +31,14 @@ export var SingleValue = function SingleValue(props) {
32
31
  }, /*#__PURE__*/React.createElement(SizeableAvatar, {
33
32
  src: getAvatarUrl(data),
34
33
  appearance: appearance,
35
- type: isTeam(data) && fg('verified-team-in-user-picker') ? 'team' : 'person'
34
+ type: isTeam(data) ? 'team' : 'person'
36
35
  }), /*#__PURE__*/React.createElement(Box, {
37
36
  xcss: styles.avatarItem
38
37
  }, /*#__PURE__*/React.createElement("div", {
39
38
  className: ax([styles.avatarItemTextWrapper])
40
39
  }, /*#__PURE__*/React.createElement(Box, {
41
40
  xcss: styles.avatarItemText
42
- }, fg('verified-team-in-user-picker') ? /*#__PURE__*/React.createElement(Inline, {
41
+ }, /*#__PURE__*/React.createElement(Inline, {
43
42
  alignBlock: "center"
44
- }, label, /*#__PURE__*/React.createElement(ElementAfter, props)) : label))))) : null;
43
+ }, label, /*#__PURE__*/React.createElement(ElementAfter, props))))))) : null;
45
44
  };
@@ -12,7 +12,6 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
12
12
  * @jsx jsx
13
13
  */
14
14
  import { B400, N800, N200 } from '@atlaskit/theme/colors';
15
- import { fg } from '@atlaskit/platform-feature-flags';
16
15
  import { Inline } from '@atlaskit/primitives/compiled';
17
16
  import { VerifiedTeamIcon } from '@atlaskit/people-teams-ui-public/verified-team-icon';
18
17
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
@@ -41,13 +40,11 @@ export var TeamOption = /*#__PURE__*/function (_React$PureComponent) {
41
40
  // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
42
41
  ,
43
42
  css: textWrapper(_this.props.isSelected ? "var(--ds-text-selected, ".concat(B400, ")") : "var(--ds-text, ".concat(N800, ")"))
44
- }, fg('verified-team-in-user-picker') ? jsx(Inline, {
43
+ }, jsx(Inline, {
45
44
  alignBlock: "center"
46
45
  }, jsx(HighlightText, {
47
46
  highlights: highlight && highlight.name
48
- }, name), verified && jsx(VerifiedTeamIcon, null)) : jsx(HighlightText, {
49
- highlights: highlight && highlight.name
50
- }, name))];
47
+ }, name), verified && jsx(VerifiedTeamIcon, null)))];
51
48
  });
52
49
  _defineProperty(_this, "renderByline", function () {
53
50
  var _this$props = _this.props,
@@ -64,8 +64,8 @@ export var UserOption = /*#__PURE__*/function (_React$PureComponent) {
64
64
  status = _this$props.status;
65
65
  return jsx(SizeableAvatar, {
66
66
  appearance:
67
- // eslint-disable-next-line @atlaskit/platform/no-preconditioning, @atlaskit/platform/ensure-feature-flag-prefix
68
- fg('platform-component-visual-refresh') && fg('visual-refresh-user-picker') ? 'medium' : 'big',
67
+ // eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-prefix
68
+ fg('platform-component-visual-refresh') ? 'medium' : 'big',
69
69
  src: avatarUrl,
70
70
  presence: status
71
71
  });
@@ -93,8 +93,8 @@ export var UserPickerWithoutAnalytics = /*#__PURE__*/function (_React$Component)
93
93
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
94
94
  ,
95
95
  styles: getStyles(width, isMulti, this.props.appearance === 'compact', this.props.styles, this.props.isInvalid,
96
- // eslint-disable-next-line @atlaskit/platform/no-preconditioning, @atlaskit/platform/ensure-feature-flag-prefix
97
- fg('platform-component-visual-refresh') && fg('visual-refresh-user-picker')),
96
+ // eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-prefix
97
+ fg('platform-component-visual-refresh')),
98
98
  components: getComponents(isMulti, anchor, showClearIndicator && fg('user-picker-show-clear-indicator'), (_this$props2 = this.props) !== null && _this$props2 !== void 0 && _this$props2.components ? this.props.components : {}),
99
99
  pickerProps: pickerProps
100
100
  })))));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/user-picker",
3
- "version": "11.0.12",
3
+ "version": "11.0.14",
4
4
  "description": "Fabric component for display a dropdown to select a user from",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -50,14 +50,14 @@
50
50
  },
51
51
  "dependencies": {
52
52
  "@atlaskit/analytics-next": "^11.0.0",
53
- "@atlaskit/avatar": "^25.0.0",
54
- "@atlaskit/icon": "^25.6.0",
53
+ "@atlaskit/avatar": "^25.1.0",
54
+ "@atlaskit/icon": "^26.0.0",
55
55
  "@atlaskit/logo": "^18.0.0",
56
56
  "@atlaskit/lozenge": "^12.2.0",
57
57
  "@atlaskit/people-teams-ui-public": "^3.1.0",
58
58
  "@atlaskit/platform-feature-flags": "^1.1.0",
59
59
  "@atlaskit/popper": "^7.0.0",
60
- "@atlaskit/primitives": "^14.6.0",
60
+ "@atlaskit/primitives": "^14.7.0",
61
61
  "@atlaskit/select": "^20.4.0",
62
62
  "@atlaskit/spinner": "^18.0.0",
63
63
  "@atlaskit/teams-avatar": "^2.3.0",
@@ -109,18 +109,12 @@
109
109
  "ui"
110
110
  ],
111
111
  "platform-feature-flags": {
112
- "verified-team-in-user-picker": {
113
- "type": "boolean"
114
- },
115
112
  "pass-aria-describedby-to-baseuserpicker": {
116
113
  "type": "boolean"
117
114
  },
118
115
  "platform-component-visual-refresh": {
119
116
  "type": "boolean"
120
117
  },
121
- "visual-refresh-user-picker": {
122
- "type": "boolean"
123
- },
124
118
  "user-picker-show-clear-indicator": {
125
119
  "type": "boolean"
126
120
  }