@atlaskit/user-picker 11.0.13 → 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,13 @@
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
+
3
11
  ## 11.0.13
4
12
 
5
13
  ### 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.13";
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;
@@ -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,
@@ -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.13";
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;
@@ -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 {
@@ -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.13";
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;
@@ -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,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/user-picker",
3
- "version": "11.0.13",
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,7 +50,7 @@
50
50
  },
51
51
  "dependencies": {
52
52
  "@atlaskit/analytics-next": "^11.0.0",
53
- "@atlaskit/avatar": "^25.0.0",
53
+ "@atlaskit/avatar": "^25.1.0",
54
54
  "@atlaskit/icon": "^26.0.0",
55
55
  "@atlaskit/logo": "^18.0.0",
56
56
  "@atlaskit/lozenge": "^12.2.0",
@@ -109,9 +109,6 @@
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
  },