@atlaskit/user-picker 13.7.0 → 13.7.2

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
+ ## 13.7.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [`0e7deed0f8954`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/0e7deed0f8954) -
8
+ Clean up feature gate `enable-sup-archive-experience`. The archived team lozenge for DISBANDED
9
+ teams is now always shown.
10
+
11
+ ## 13.7.1
12
+
13
+ ### Patch Changes
14
+
15
+ - Updated dependencies
16
+
3
17
  ## 13.7.0
4
18
 
5
19
  ### Minor Changes
@@ -15,7 +15,7 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
15
15
  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; } // eslint-disable-next-line @typescript-eslint/consistent-type-imports
16
16
  // eslint-disable-next-line @atlaskit/platform/prefer-crypto-random-uuid -- Use crypto.randomUUID instead
17
17
  var packageName = "@atlaskit/user-picker";
18
- var packageVersion = "13.6.0";
18
+ var packageVersion = "13.7.1";
19
19
  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}$/;
20
20
  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}$/;
21
21
  var UUID_REGEXP_NEW_AAID = /^[a-fA-F0-9]{24,24}$/;
@@ -119,7 +119,7 @@ var MultiValue = exports.MultiValue = /*#__PURE__*/function (_React$Component) {
119
119
  });
120
120
  (0, _defineProperty2.default)(_this, "getElemAfter", function () {
121
121
  var data = _this.props.data.data;
122
- var canShowArchivedLozenge = (0, _utils.isTeam)(data) && (data === null || data === void 0 ? void 0 : data.state) === 'DISBANDED' && (0, _platformFeatureFlags.fg)('enable-sup-archive-experience');
122
+ var canShowArchivedLozenge = (0, _utils.isTeam)(data) && (data === null || data === void 0 ? void 0 : data.state) === 'DISBANDED';
123
123
  if ((0, _utils.isGroup)(data) && data.includeTeamsUpdates || (0, _utils.isTeam)(data) && data.verified) {
124
124
  return (0, _react2.jsx)(_verifiedTeamIcon.VerifiedTeamIcon, {
125
125
  size: data.includeTeamsUpdates ? 'small' : 'medium'
@@ -186,7 +186,7 @@ var MultiValue = exports.MultiValue = /*#__PURE__*/function (_React$Component) {
186
186
  var isEmailOption = (0, _utils.isEmail)(data);
187
187
  var avatarUrl = (0, _utils.getAvatarUrl)(data);
188
188
  var isDisabled = Boolean((_this$props$selectPro = this.props.selectProps) === null || _this$props$selectPro === void 0 ? void 0 : _this$props$selectPro.isDisabled);
189
- var canShowArchivedLozenge = (0, _utils.isTeam)(data) && (data === null || data === void 0 ? void 0 : data.state) === 'DISBANDED' && (0, _platformFeatureFlags.fg)('enable-sup-archive-experience');
189
+ var canShowArchivedLozenge = (0, _utils.isTeam)(data) && (data === null || data === void 0 ? void 0 : data.state) === 'DISBANDED';
190
190
  var avatarProps = avatarUrl ? {
191
191
  name: data.name,
192
192
  src: avatarUrl
@@ -16,7 +16,6 @@ var _AvatarOrIcon = require("./AvatarOrIcon");
16
16
  var _SizeableAvatar = require("./SizeableAvatar");
17
17
  var _utils = require("./utils");
18
18
  var _avatar = require("@atlaskit/avatar");
19
- var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
20
19
  var _verifiedTeamIcon = require("@atlaskit/people-teams-ui-public/verified-team-icon");
21
20
  var _reactIntl = require("react-intl");
22
21
  var _compiled = require("@atlaskit/primitives/compiled");
@@ -46,7 +45,7 @@ var SingleValue = exports.SingleValue = function SingleValue(props) {
46
45
  _props$selectProps = props.selectProps,
47
46
  appearance = _props$selectProps.appearance,
48
47
  isFocused = _props$selectProps.isFocused;
49
- var canShowArchivedLozenge = (0, _utils.isTeam)(data) && (data === null || data === void 0 ? void 0 : data.state) === 'DISBANDED' && (0, _platformFeatureFlags.fg)('enable-sup-archive-experience');
48
+ var canShowArchivedLozenge = (0, _utils.isTeam)(data) && (data === null || data === void 0 ? void 0 : data.state) === 'DISBANDED';
50
49
  return !isFocused ? /*#__PURE__*/React.createElement(_select.components.SingleValue, props, /*#__PURE__*/React.createElement(_compiled.Flex, {
51
50
  xcss: styles.avatarItem
52
51
  }, data.icon ? /*#__PURE__*/React.createElement(_AvatarOrIcon.AvatarOrIcon, {
@@ -12,7 +12,7 @@ var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime
12
12
  var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
13
13
  var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
14
14
  var _avatar = _interopRequireDefault(require("@atlaskit/avatar"));
15
- var _teamsAvatar = _interopRequireDefault(require("@atlaskit/teams-avatar"));
15
+ var _teamsAvatar = _interopRequireDefault(require("@atlaskit/teams-avatar/teams-avatar"));
16
16
  var _react = _interopRequireDefault(require("react"));
17
17
  var _utils = require("./utils");
18
18
  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; }
@@ -6,7 +6,7 @@ import { fg } from '@atlaskit/platform-feature-flags';
6
6
  import { v4 as uuidv4 } from 'uuid';
7
7
  import { isCustom, isExternalUser } from './components/utils';
8
8
  const packageName = "@atlaskit/user-picker";
9
- const packageVersion = "13.6.0";
9
+ const packageVersion = "13.7.1";
10
10
  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}$/;
11
11
  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}$/;
12
12
  const UUID_REGEXP_NEW_AAID = /^[a-fA-F0-9]{24,24}$/;
@@ -111,7 +111,7 @@ export class MultiValue extends React.Component {
111
111
  data
112
112
  }
113
113
  } = this.props;
114
- const canShowArchivedLozenge = isTeam(data) && (data === null || data === void 0 ? void 0 : data.state) === 'DISBANDED' && fg('enable-sup-archive-experience');
114
+ const canShowArchivedLozenge = isTeam(data) && (data === null || data === void 0 ? void 0 : data.state) === 'DISBANDED';
115
115
  if (isGroup(data) && data.includeTeamsUpdates || isTeam(data) && data.verified) {
116
116
  return jsx(VerifiedTeamIcon, {
117
117
  size: data.includeTeamsUpdates ? 'small' : 'medium'
@@ -182,7 +182,7 @@ export class MultiValue extends React.Component {
182
182
  const isEmailOption = isEmail(data);
183
183
  const avatarUrl = getAvatarUrl(data);
184
184
  const isDisabled = Boolean((_this$props$selectPro = this.props.selectProps) === null || _this$props$selectPro === void 0 ? void 0 : _this$props$selectPro.isDisabled);
185
- const canShowArchivedLozenge = isTeam(data) && (data === null || data === void 0 ? void 0 : data.state) === 'DISBANDED' && fg('enable-sup-archive-experience');
185
+ const canShowArchivedLozenge = isTeam(data) && (data === null || data === void 0 ? void 0 : data.state) === 'DISBANDED';
186
186
  const avatarProps = avatarUrl ? {
187
187
  name: data.name,
188
188
  src: avatarUrl
@@ -8,7 +8,6 @@ import { AvatarOrIcon } from './AvatarOrIcon';
8
8
  import { SizeableAvatar } from './SizeableAvatar';
9
9
  import { getAvatarUrl, isTeam, isGroup } from './utils';
10
10
  import { getAppearanceForAppType } from '@atlaskit/avatar';
11
- import { fg } from '@atlaskit/platform-feature-flags';
12
11
  import { VerifiedTeamIcon } from '@atlaskit/people-teams-ui-public/verified-team-icon';
13
12
  import { FormattedMessage } from 'react-intl';
14
13
  import { Box, Flex, Inline } from '@atlaskit/primitives/compiled';
@@ -46,7 +45,7 @@ export const SingleValue = props => {
46
45
  isFocused
47
46
  }
48
47
  } = props;
49
- const canShowArchivedLozenge = isTeam(data) && (data === null || data === void 0 ? void 0 : data.state) === 'DISBANDED' && fg('enable-sup-archive-experience');
48
+ const canShowArchivedLozenge = isTeam(data) && (data === null || data === void 0 ? void 0 : data.state) === 'DISBANDED';
50
49
  return !isFocused ? /*#__PURE__*/React.createElement(components.SingleValue, props, /*#__PURE__*/React.createElement(Flex, {
51
50
  xcss: styles.avatarItem
52
51
  }, data.icon ? /*#__PURE__*/React.createElement(AvatarOrIcon, {
@@ -1,5 +1,5 @@
1
1
  import Avatar from '@atlaskit/avatar';
2
- import TeamAvatar from '@atlaskit/teams-avatar';
2
+ import TeamAvatar from '@atlaskit/teams-avatar/teams-avatar';
3
3
  import React from 'react';
4
4
  import { getAvatarSize } from './utils';
5
5
  export class SizeableAvatar extends React.PureComponent {
@@ -9,7 +9,7 @@ import { fg } from '@atlaskit/platform-feature-flags';
9
9
  import { v4 as uuidv4 } from 'uuid';
10
10
  import { isCustom, isExternalUser } from './components/utils';
11
11
  var packageName = "@atlaskit/user-picker";
12
- var packageVersion = "13.6.0";
12
+ var packageVersion = "13.7.1";
13
13
  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}$/;
14
14
  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}$/;
15
15
  var UUID_REGEXP_NEW_AAID = /^[a-fA-F0-9]{24,24}$/;
@@ -112,7 +112,7 @@ export var MultiValue = /*#__PURE__*/function (_React$Component) {
112
112
  });
113
113
  _defineProperty(_this, "getElemAfter", function () {
114
114
  var data = _this.props.data.data;
115
- var canShowArchivedLozenge = isTeam(data) && (data === null || data === void 0 ? void 0 : data.state) === 'DISBANDED' && fg('enable-sup-archive-experience');
115
+ var canShowArchivedLozenge = isTeam(data) && (data === null || data === void 0 ? void 0 : data.state) === 'DISBANDED';
116
116
  if (isGroup(data) && data.includeTeamsUpdates || isTeam(data) && data.verified) {
117
117
  return jsx(VerifiedTeamIcon, {
118
118
  size: data.includeTeamsUpdates ? 'small' : 'medium'
@@ -179,7 +179,7 @@ export var MultiValue = /*#__PURE__*/function (_React$Component) {
179
179
  var isEmailOption = isEmail(data);
180
180
  var avatarUrl = getAvatarUrl(data);
181
181
  var isDisabled = Boolean((_this$props$selectPro = this.props.selectProps) === null || _this$props$selectPro === void 0 ? void 0 : _this$props$selectPro.isDisabled);
182
- var canShowArchivedLozenge = isTeam(data) && (data === null || data === void 0 ? void 0 : data.state) === 'DISBANDED' && fg('enable-sup-archive-experience');
182
+ var canShowArchivedLozenge = isTeam(data) && (data === null || data === void 0 ? void 0 : data.state) === 'DISBANDED';
183
183
  var avatarProps = avatarUrl ? {
184
184
  name: data.name,
185
185
  src: avatarUrl
@@ -8,7 +8,6 @@ import { AvatarOrIcon } from './AvatarOrIcon';
8
8
  import { SizeableAvatar } from './SizeableAvatar';
9
9
  import { getAvatarUrl, isTeam, isGroup } from './utils';
10
10
  import { getAppearanceForAppType } from '@atlaskit/avatar';
11
- import { fg } from '@atlaskit/platform-feature-flags';
12
11
  import { VerifiedTeamIcon } from '@atlaskit/people-teams-ui-public/verified-team-icon';
13
12
  import { FormattedMessage } from 'react-intl';
14
13
  import { Box, Flex, Inline } from '@atlaskit/primitives/compiled';
@@ -37,7 +36,7 @@ export var SingleValue = function SingleValue(props) {
37
36
  _props$selectProps = props.selectProps,
38
37
  appearance = _props$selectProps.appearance,
39
38
  isFocused = _props$selectProps.isFocused;
40
- var canShowArchivedLozenge = isTeam(data) && (data === null || data === void 0 ? void 0 : data.state) === 'DISBANDED' && fg('enable-sup-archive-experience');
39
+ var canShowArchivedLozenge = isTeam(data) && (data === null || data === void 0 ? void 0 : data.state) === 'DISBANDED';
41
40
  return !isFocused ? /*#__PURE__*/React.createElement(components.SingleValue, props, /*#__PURE__*/React.createElement(Flex, {
42
41
  xcss: styles.avatarItem
43
42
  }, data.icon ? /*#__PURE__*/React.createElement(AvatarOrIcon, {
@@ -9,7 +9,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
9
9
  function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
10
10
  function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
11
11
  import Avatar from '@atlaskit/avatar';
12
- import TeamAvatar from '@atlaskit/teams-avatar';
12
+ import TeamAvatar from '@atlaskit/teams-avatar/teams-avatar';
13
13
  import React from 'react';
14
14
  import { getAvatarSize } from './utils';
15
15
  export var SizeableAvatar = /*#__PURE__*/function (_React$PureComponent) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/user-picker",
3
- "version": "13.7.0",
3
+ "version": "13.7.2",
4
4
  "description": "Fabric component for display a dropdown to select a user from",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -78,7 +78,7 @@
78
78
  "@atlaskit/select": "^22.5.0",
79
79
  "@atlaskit/spinner": "^20.1.0",
80
80
  "@atlaskit/tag": "^15.4.0",
81
- "@atlaskit/teams-avatar": "^3.2.0",
81
+ "@atlaskit/teams-avatar": "^4.0.0",
82
82
  "@atlaskit/tokens": "^16.3.0",
83
83
  "@atlaskit/tooltip": "^23.1.0",
84
84
  "@atlaskit/ufo": "^1.0.0",
@@ -118,9 +118,6 @@
118
118
  "platform-dst-lozenge-tag-badge-visual-uplifts": {
119
119
  "type": "boolean"
120
120
  },
121
- "enable-sup-archive-experience": {
122
- "type": "boolean"
123
- },
124
121
  "jsm_routing_recommended_agent_minor_fix": {
125
122
  "type": "boolean"
126
123
  },