@atlaskit/user-picker 13.7.1 → 13.8.0

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,21 @@
1
1
  # @atlaskit/user-picker
2
2
 
3
+ ## 13.8.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`7d37c14edffa7`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/7d37c14edffa7) -
8
+ Update i18n NPM package versions for editor,editor-extensions,activity-platform,media,elements
9
+ (Group 3)
10
+
11
+ ## 13.7.2
12
+
13
+ ### Patch Changes
14
+
15
+ - [`0e7deed0f8954`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/0e7deed0f8954) -
16
+ Clean up feature gate `enable-sup-archive-experience`. The archived team lozenge for DISBANDED
17
+ teams is now always shown.
18
+
3
19
  ## 13.7.1
4
20
 
5
21
  ### Patch 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.7.0";
18
+ var packageVersion = "13.7.2";
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, {
@@ -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.7.0";
9
+ const packageVersion = "13.7.2";
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, {
@@ -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.7.0";
12
+ var packageVersion = "13.7.2";
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, {
@@ -1,3 +1,3 @@
1
1
  import { jsx } from '@emotion/react';
2
- declare const _default: () => jsx.JSX.Element;
3
2
  export default _default;
3
+ declare function _default(): jsx.JSX.Element;
@@ -19,7 +19,7 @@ export interface OptionToSelectableOptions {
19
19
  (defaultValue?: DefaultValue): Option | Option[] | null | undefined;
20
20
  }
21
21
  export declare const optionToSelectableOptions: OptionToSelectableOptions;
22
- export declare const getAvatarSize: (appearance: string) => "xsmall" | "small" | "medium";
22
+ export declare const getAvatarSize: (appearance: string) => 'xsmall' | 'small' | 'medium';
23
23
  export declare const isChildInput: (child: ReactChild) => child is ReactElement<any>;
24
24
  export declare const isSingleValue: (value?: AtlaskitSelectValue) => value is Option;
25
25
  export declare const hasValue: (value?: string) => value is string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/user-picker",
3
- "version": "13.7.1",
3
+ "version": "13.8.0",
4
4
  "description": "Fabric component for display a dropdown to select a user from",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -63,24 +63,24 @@
63
63
  "access": "public"
64
64
  },
65
65
  "dependencies": {
66
- "@atlaskit/afm-i18n-platform-elements-user-picker": "2.196.0",
66
+ "@atlaskit/afm-i18n-platform-elements-user-picker": "2.200.0",
67
67
  "@atlaskit/analytics-next": "^12.3.0",
68
- "@atlaskit/avatar": "^26.2.0",
68
+ "@atlaskit/avatar": "^26.4.0",
69
69
  "@atlaskit/feature-gate-js-client": "^6.0.0",
70
- "@atlaskit/icon": "^37.1.0",
70
+ "@atlaskit/icon": "^37.2.0",
71
71
  "@atlaskit/logo": "^21.4.0",
72
72
  "@atlaskit/lozenge": "^14.1.0",
73
73
  "@atlaskit/people-teams-ui-public": "^5.1.0",
74
74
  "@atlaskit/platform-feature-flags": "^2.1.0",
75
- "@atlaskit/popper": "^8.3.0",
75
+ "@atlaskit/popper": "^8.4.0",
76
76
  "@atlaskit/primitives": "^22.2.0",
77
77
  "@atlaskit/react-compiler-gating": "^0.2.0",
78
- "@atlaskit/select": "^22.5.0",
78
+ "@atlaskit/select": "^22.6.0",
79
79
  "@atlaskit/spinner": "^20.1.0",
80
80
  "@atlaskit/tag": "^15.4.0",
81
81
  "@atlaskit/teams-avatar": "^4.0.0",
82
82
  "@atlaskit/tokens": "^16.3.0",
83
- "@atlaskit/tooltip": "^23.1.0",
83
+ "@atlaskit/tooltip": "^23.2.0",
84
84
  "@atlaskit/ufo": "^1.0.0",
85
85
  "@babel/runtime": "^7.0.0",
86
86
  "@compiled/react": "^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
  },