@atlaskit/user-picker 13.4.5 → 13.5.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.
Files changed (44) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/dist/cjs/analytics.js +1 -1
  3. package/dist/cjs/components/ClearIndicator.compiled.css +0 -1
  4. package/dist/cjs/components/ClearIndicator.js +1 -1
  5. package/dist/cjs/components/Control.compiled.css +0 -1
  6. package/dist/cjs/components/Control.js +1 -1
  7. package/dist/cjs/components/Input.js +1 -1
  8. package/dist/cjs/components/MultiValue.js +6 -2
  9. package/dist/cjs/components/MultiValueContainer.compiled.css +0 -1
  10. package/dist/cjs/components/MultiValueContainer.js +1 -1
  11. package/dist/cjs/components/SingleValue.js +1 -1
  12. package/dist/cjs/components/SingleValueContainer.compiled.css +0 -1
  13. package/dist/cjs/components/SingleValueContainer.js +1 -1
  14. package/dist/cjs/components/SizeableAvatar.js +6 -1
  15. package/dist/cjs/components/UserPicker.js +1 -1
  16. package/dist/es2019/analytics.js +1 -1
  17. package/dist/es2019/components/ClearIndicator.compiled.css +0 -1
  18. package/dist/es2019/components/ClearIndicator.js +1 -1
  19. package/dist/es2019/components/Control.compiled.css +0 -1
  20. package/dist/es2019/components/Control.js +1 -1
  21. package/dist/es2019/components/Input.js +1 -1
  22. package/dist/es2019/components/MultiValue.js +5 -2
  23. package/dist/es2019/components/MultiValueContainer.compiled.css +0 -1
  24. package/dist/es2019/components/MultiValueContainer.js +1 -1
  25. package/dist/es2019/components/SingleValue.js +1 -1
  26. package/dist/es2019/components/SingleValueContainer.compiled.css +0 -1
  27. package/dist/es2019/components/SingleValueContainer.js +1 -1
  28. package/dist/es2019/components/SizeableAvatar.js +6 -1
  29. package/dist/es2019/components/UserPicker.js +1 -1
  30. package/dist/esm/analytics.js +1 -1
  31. package/dist/esm/components/ClearIndicator.compiled.css +0 -1
  32. package/dist/esm/components/ClearIndicator.js +1 -1
  33. package/dist/esm/components/Control.compiled.css +0 -1
  34. package/dist/esm/components/Control.js +1 -1
  35. package/dist/esm/components/Input.js +1 -1
  36. package/dist/esm/components/MultiValue.js +6 -2
  37. package/dist/esm/components/MultiValueContainer.compiled.css +0 -1
  38. package/dist/esm/components/MultiValueContainer.js +1 -1
  39. package/dist/esm/components/SingleValue.js +1 -1
  40. package/dist/esm/components/SingleValueContainer.compiled.css +0 -1
  41. package/dist/esm/components/SingleValueContainer.js +1 -1
  42. package/dist/esm/components/SizeableAvatar.js +6 -1
  43. package/dist/esm/components/UserPicker.js +1 -1
  44. package/package.json +8 -8
package/CHANGELOG.md CHANGED
@@ -1,5 +1,23 @@
1
1
  # @atlaskit/user-picker
2
2
 
3
+ ## 13.5.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`7da4b354a3633`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/7da4b354a3633) -
8
+ Update i18n NPM package versions for editor,editor-extensions,activity-platform,media,elements
9
+ (Group 3)
10
+
11
+ ## 13.4.6
12
+
13
+ ### Patch Changes
14
+
15
+ - [`0a1dac0483f0a`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/0a1dac0483f0a) -
16
+ Internal type fix: constrain the avatar `size` passed to `TeamAvatar` to the supported
17
+ `TeamAvatarSize` set (excludes the new private `UNSAFE_xsmall` 20px size, which has no team-avatar
18
+ artwork). No runtime behaviour change.
19
+ - Updated dependencies
20
+
3
21
  ## 13.4.5
4
22
 
5
23
  ### 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.4.4";
18
+ var packageVersion = "13.4.6";
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}$/;
@@ -1,4 +1,3 @@
1
-
2
1
  ._v5641ppt{transition:color .15s,opacity .15s}._19bvze3t{padding-left:var(--ds-space-0,0)}
3
2
  ._ca0qze3t{padding-top:var(--ds-space-0,0)}
4
3
  ._n3tdze3t{padding-bottom:var(--ds-space-0,0)}
@@ -1,4 +1,4 @@
1
- /* ClearIndicator.tsx generated by @compiled/babel-plugin v0.39.1 */
1
+ /* ClearIndicator.tsx generated by @compiled/babel-plugin v0.40.0 */
2
2
  "use strict";
3
3
 
4
4
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
@@ -1,4 +1,3 @@
1
-
2
1
  ._1h6d1bqt{border-color:var(--ds-border-danger,#e2483d)}
3
2
  ._1h6d1j28{border-color:transparent}
4
3
  ._1h6d1v1w{border-color:var(--ds-border-focused,#4688ec)}
@@ -1,4 +1,4 @@
1
- /* Control.tsx generated by @compiled/babel-plugin v0.39.1 */
1
+ /* Control.tsx generated by @compiled/babel-plugin v0.40.0 */
2
2
  "use strict";
3
3
 
4
4
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
@@ -1,4 +1,4 @@
1
- /* Input.tsx generated by @compiled/babel-plugin v0.39.1 */
1
+ /* Input.tsx generated by @compiled/babel-plugin v0.40.0 */
2
2
  "use strict";
3
3
 
4
4
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
@@ -21,7 +21,7 @@ var _react2 = require("@emotion/react");
21
21
  var _avatar = _interopRequireDefault(require("@atlaskit/avatar"));
22
22
  var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
23
23
  var _tag = _interopRequireWildcard(require("@atlaskit/tag"));
24
- var _teamsAvatar = _interopRequireDefault(require("@atlaskit/teams-avatar"));
24
+ var _teamsAvatar = _interopRequireDefault(require("@atlaskit/teams-avatar/teams-avatar"));
25
25
  var _AddOptionAvatar = require("./AddOptionAvatar");
26
26
  var _AvatarOrIcon = require("./AvatarOrIcon");
27
27
  var _SizeableAvatar = require("./SizeableAvatar");
@@ -261,7 +261,11 @@ var MultiValue = exports.MultiValue = /*#__PURE__*/function (_React$Component) {
261
261
  isRemovable: !isDisabled,
262
262
  onAfterRemoveAction: onAfterRemoveAction,
263
263
  avatar: function avatar(props) {
264
- return (0, _react2.jsx)(_teamsAvatar.default, (0, _extends2.default)({}, props, avatarProps));
264
+ return (
265
+ // AvatarTag always supplies size="xsmall", which is a valid
266
+ // TeamAvatarSize; TeamAvatar does not support UNSAFE_xsmall.
267
+ (0, _react2.jsx)(_teamsAvatar.default, (0, _extends2.default)({}, props, avatarProps))
268
+ );
265
269
  },
266
270
  hasMargin: false
267
271
  }), canShowArchivedLozenge ? (0, _react2.jsx)(_primitives.Box, {
@@ -1,4 +1,3 @@
1
-
2
1
  ._zulp1b66{gap:var(--ds-space-050,4px)}._18m91wug{overflow-y:auto}
3
2
  ._19bv12x7{padding-left:var(--ds-space-075,6px)}
4
3
  ._19bvu2gc{padding-left:var(--ds-space-100,8px)}
@@ -1,4 +1,4 @@
1
- /* MultiValueContainer.tsx generated by @compiled/babel-plugin v0.39.1 */
1
+ /* MultiValueContainer.tsx generated by @compiled/babel-plugin v0.40.0 */
2
2
  "use strict";
3
3
 
4
4
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
@@ -1,4 +1,4 @@
1
- /* SingleValue.tsx generated by @compiled/babel-plugin v0.39.1 */
1
+ /* SingleValue.tsx generated by @compiled/babel-plugin v0.40.0 */
2
2
  "use strict";
3
3
 
4
4
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
@@ -1,4 +1,3 @@
1
-
2
1
  ._nd5l1kqh{grid-area:1/1/2/2}._16jlkb7n{flex-grow:1}
3
2
  ._18m91wug{overflow-y:auto}
4
3
  ._19bv12x7{padding-left:var(--ds-space-075,6px)}
@@ -1,4 +1,4 @@
1
- /* SingleValueContainer.tsx generated by @compiled/babel-plugin v0.39.1 */
1
+ /* SingleValueContainer.tsx generated by @compiled/babel-plugin v0.40.0 */
2
2
  "use strict";
3
3
 
4
4
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
@@ -35,8 +35,13 @@ var SizeableAvatar = exports.SizeableAvatar = /*#__PURE__*/function (_React$Pure
35
35
  _this$props$type = _this$props.type,
36
36
  type = _this$props$type === void 0 ? 'person' : _this$props$type,
37
37
  avatarAppearanceShape = _this$props.avatarAppearanceShape;
38
+
39
+ // `getAvatarSize` only ever returns 'xsmall' | 'small' | 'medium', none of
40
+ // which is the team-avatar-unsupported `UNSAFE_xsmall` (20px) size. Keeping
41
+ // `size` narrowed here lets the object satisfy both Avatar and TeamAvatar.
42
+ var size = (0, _utils.getAvatarSize)(appearance);
38
43
  var props = _objectSpread({
39
- size: (0, _utils.getAvatarSize)(appearance),
44
+ size: size,
40
45
  src: src,
41
46
  borderColor: 'transparent',
42
47
  presence: presence
@@ -1,4 +1,4 @@
1
- /* UserPicker.tsx generated by @compiled/babel-plugin v0.39.1 */
1
+ /* UserPicker.tsx generated by @compiled/babel-plugin v0.40.0 */
2
2
  "use strict";
3
3
 
4
4
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
@@ -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.4.4";
9
+ const packageVersion = "13.4.6";
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}$/;
@@ -1,4 +1,3 @@
1
-
2
1
  ._v5641ppt{transition:color .15s,opacity .15s}._19bvze3t{padding-left:var(--ds-space-0,0)}
3
2
  ._ca0qze3t{padding-top:var(--ds-space-0,0)}
4
3
  ._n3tdze3t{padding-bottom:var(--ds-space-0,0)}
@@ -1,4 +1,4 @@
1
- /* ClearIndicator.tsx generated by @compiled/babel-plugin v0.39.1 */
1
+ /* ClearIndicator.tsx generated by @compiled/babel-plugin v0.40.0 */
2
2
  import _extends from "@babel/runtime/helpers/extends";
3
3
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
4
4
  import "./ClearIndicator.compiled.css";
@@ -1,4 +1,3 @@
1
-
2
1
  ._1h6d1bqt{border-color:var(--ds-border-danger,#e2483d)}
3
2
  ._1h6d1j28{border-color:transparent}
4
3
  ._1h6d1v1w{border-color:var(--ds-border-focused,#4688ec)}
@@ -1,4 +1,4 @@
1
- /* Control.tsx generated by @compiled/babel-plugin v0.39.1 */
1
+ /* Control.tsx generated by @compiled/babel-plugin v0.40.0 */
2
2
  import _extends from "@babel/runtime/helpers/extends";
3
3
  import "./Control.compiled.css";
4
4
  import * as React from 'react';
@@ -1,4 +1,4 @@
1
- /* Input.tsx generated by @compiled/babel-plugin v0.39.1 */
1
+ /* Input.tsx generated by @compiled/babel-plugin v0.40.0 */
2
2
  import _extends from "@babel/runtime/helpers/extends";
3
3
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
4
4
  import "./Input.compiled.css";
@@ -13,7 +13,7 @@ import { css, jsx } from '@emotion/react';
13
13
  import Avatar from '@atlaskit/avatar';
14
14
  import { fg } from '@atlaskit/platform-feature-flags';
15
15
  import { AvatarTag, default as Tag } from '@atlaskit/tag';
16
- import TeamAvatar from '@atlaskit/teams-avatar';
16
+ import TeamAvatar from '@atlaskit/teams-avatar/teams-avatar';
17
17
  import { AddOptionAvatar } from './AddOptionAvatar';
18
18
  import { AvatarOrIcon } from './AvatarOrIcon';
19
19
  import { SizeableAvatar } from './SizeableAvatar';
@@ -256,7 +256,10 @@ export class MultiValue extends React.Component {
256
256
  isVerified: isTeamOption ? data.verified : undefined,
257
257
  isRemovable: !isDisabled,
258
258
  onAfterRemoveAction: onAfterRemoveAction,
259
- avatar: props => jsx(TeamAvatar, _extends({}, props, avatarProps)),
259
+ avatar: props =>
260
+ // AvatarTag always supplies size="xsmall", which is a valid
261
+ // TeamAvatarSize; TeamAvatar does not support UNSAFE_xsmall.
262
+ jsx(TeamAvatar, _extends({}, props, avatarProps)),
260
263
  hasMargin: false
261
264
  }), canShowArchivedLozenge ? jsx(Box, {
262
265
  xcss: archivedLozengeWrapper
@@ -1,4 +1,3 @@
1
-
2
1
  ._zulp1b66{gap:var(--ds-space-050,4px)}._18m91wug{overflow-y:auto}
3
2
  ._19bv12x7{padding-left:var(--ds-space-075,6px)}
4
3
  ._19bvu2gc{padding-left:var(--ds-space-100,8px)}
@@ -1,4 +1,4 @@
1
- /* MultiValueContainer.tsx generated by @compiled/babel-plugin v0.39.1 */
1
+ /* MultiValueContainer.tsx generated by @compiled/babel-plugin v0.40.0 */
2
2
  import _extends from "@babel/runtime/helpers/extends";
3
3
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
4
4
  import "./MultiValueContainer.compiled.css";
@@ -1,4 +1,4 @@
1
- /* SingleValue.tsx generated by @compiled/babel-plugin v0.39.1 */
1
+ /* SingleValue.tsx generated by @compiled/babel-plugin v0.40.0 */
2
2
  import "./SingleValue.compiled.css";
3
3
  import * as React from 'react';
4
4
  import { ax, ix } from "@compiled/react/runtime";
@@ -1,4 +1,3 @@
1
-
2
1
  ._nd5l1kqh{grid-area:1/1/2/2}._16jlkb7n{flex-grow:1}
3
2
  ._18m91wug{overflow-y:auto}
4
3
  ._19bv12x7{padding-left:var(--ds-space-075,6px)}
@@ -1,4 +1,4 @@
1
- /* SingleValueContainer.tsx generated by @compiled/babel-plugin v0.39.1 */
1
+ /* SingleValueContainer.tsx generated by @compiled/babel-plugin v0.40.0 */
2
2
  import _extends from "@babel/runtime/helpers/extends";
3
3
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
4
4
  import "./SingleValueContainer.compiled.css";
@@ -11,8 +11,13 @@ export class SizeableAvatar extends React.PureComponent {
11
11
  type = 'person',
12
12
  avatarAppearanceShape
13
13
  } = this.props;
14
+
15
+ // `getAvatarSize` only ever returns 'xsmall' | 'small' | 'medium', none of
16
+ // which is the team-avatar-unsupported `UNSAFE_xsmall` (20px) size. Keeping
17
+ // `size` narrowed here lets the object satisfy both Avatar and TeamAvatar.
18
+ const size = getAvatarSize(appearance);
14
19
  const props = {
15
- size: getAvatarSize(appearance),
20
+ size,
16
21
  src,
17
22
  borderColor: 'transparent',
18
23
  presence,
@@ -1,4 +1,4 @@
1
- /* UserPicker.tsx generated by @compiled/babel-plugin v0.39.1 */
1
+ /* UserPicker.tsx generated by @compiled/babel-plugin v0.40.0 */
2
2
  import _extends from "@babel/runtime/helpers/extends";
3
3
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
4
4
  import { ax, ix } from "@compiled/react/runtime";
@@ -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.4.4";
12
+ var packageVersion = "13.4.6";
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}$/;
@@ -1,4 +1,3 @@
1
-
2
1
  ._v5641ppt{transition:color .15s,opacity .15s}._19bvze3t{padding-left:var(--ds-space-0,0)}
3
2
  ._ca0qze3t{padding-top:var(--ds-space-0,0)}
4
3
  ._n3tdze3t{padding-bottom:var(--ds-space-0,0)}
@@ -1,4 +1,4 @@
1
- /* ClearIndicator.tsx generated by @compiled/babel-plugin v0.39.1 */
1
+ /* ClearIndicator.tsx generated by @compiled/babel-plugin v0.40.0 */
2
2
  import _extends from "@babel/runtime/helpers/extends";
3
3
  import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
4
4
  import _createClass from "@babel/runtime/helpers/createClass";
@@ -1,4 +1,3 @@
1
-
2
1
  ._1h6d1bqt{border-color:var(--ds-border-danger,#e2483d)}
3
2
  ._1h6d1j28{border-color:transparent}
4
3
  ._1h6d1v1w{border-color:var(--ds-border-focused,#4688ec)}
@@ -1,4 +1,4 @@
1
- /* Control.tsx generated by @compiled/babel-plugin v0.39.1 */
1
+ /* Control.tsx generated by @compiled/babel-plugin v0.40.0 */
2
2
  import _extends from "@babel/runtime/helpers/extends";
3
3
  import "./Control.compiled.css";
4
4
  import * as React from 'react';
@@ -1,4 +1,4 @@
1
- /* Input.tsx generated by @compiled/babel-plugin v0.39.1 */
1
+ /* Input.tsx generated by @compiled/babel-plugin v0.40.0 */
2
2
  import _extends from "@babel/runtime/helpers/extends";
3
3
  import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
4
4
  import _createClass from "@babel/runtime/helpers/createClass";
@@ -22,7 +22,7 @@ import { css, jsx } from '@emotion/react';
22
22
  import Avatar from '@atlaskit/avatar';
23
23
  import { fg } from '@atlaskit/platform-feature-flags';
24
24
  import { AvatarTag, default as Tag } from '@atlaskit/tag';
25
- import TeamAvatar from '@atlaskit/teams-avatar';
25
+ import TeamAvatar from '@atlaskit/teams-avatar/teams-avatar';
26
26
  import { AddOptionAvatar } from './AddOptionAvatar';
27
27
  import { AvatarOrIcon } from './AvatarOrIcon';
28
28
  import { SizeableAvatar } from './SizeableAvatar';
@@ -254,7 +254,11 @@ export var MultiValue = /*#__PURE__*/function (_React$Component) {
254
254
  isRemovable: !isDisabled,
255
255
  onAfterRemoveAction: onAfterRemoveAction,
256
256
  avatar: function avatar(props) {
257
- return jsx(TeamAvatar, _extends({}, props, avatarProps));
257
+ return (
258
+ // AvatarTag always supplies size="xsmall", which is a valid
259
+ // TeamAvatarSize; TeamAvatar does not support UNSAFE_xsmall.
260
+ jsx(TeamAvatar, _extends({}, props, avatarProps))
261
+ );
258
262
  },
259
263
  hasMargin: false
260
264
  }), canShowArchivedLozenge ? jsx(Box, {
@@ -1,4 +1,3 @@
1
-
2
1
  ._zulp1b66{gap:var(--ds-space-050,4px)}._18m91wug{overflow-y:auto}
3
2
  ._19bv12x7{padding-left:var(--ds-space-075,6px)}
4
3
  ._19bvu2gc{padding-left:var(--ds-space-100,8px)}
@@ -1,4 +1,4 @@
1
- /* MultiValueContainer.tsx generated by @compiled/babel-plugin v0.39.1 */
1
+ /* MultiValueContainer.tsx generated by @compiled/babel-plugin v0.40.0 */
2
2
  import _extends from "@babel/runtime/helpers/extends";
3
3
  import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
4
4
  import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
@@ -1,4 +1,4 @@
1
- /* SingleValue.tsx generated by @compiled/babel-plugin v0.39.1 */
1
+ /* SingleValue.tsx generated by @compiled/babel-plugin v0.40.0 */
2
2
  import "./SingleValue.compiled.css";
3
3
  import * as React from 'react';
4
4
  import { ax, ix } from "@compiled/react/runtime";
@@ -1,4 +1,3 @@
1
-
2
1
  ._nd5l1kqh{grid-area:1/1/2/2}._16jlkb7n{flex-grow:1}
3
2
  ._18m91wug{overflow-y:auto}
4
3
  ._19bv12x7{padding-left:var(--ds-space-075,6px)}
@@ -1,4 +1,4 @@
1
- /* SingleValueContainer.tsx generated by @compiled/babel-plugin v0.39.1 */
1
+ /* SingleValueContainer.tsx generated by @compiled/babel-plugin v0.40.0 */
2
2
  import _extends from "@babel/runtime/helpers/extends";
3
3
  import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
4
4
  import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
@@ -28,8 +28,13 @@ export var SizeableAvatar = /*#__PURE__*/function (_React$PureComponent) {
28
28
  _this$props$type = _this$props.type,
29
29
  type = _this$props$type === void 0 ? 'person' : _this$props$type,
30
30
  avatarAppearanceShape = _this$props.avatarAppearanceShape;
31
+
32
+ // `getAvatarSize` only ever returns 'xsmall' | 'small' | 'medium', none of
33
+ // which is the team-avatar-unsupported `UNSAFE_xsmall` (20px) size. Keeping
34
+ // `size` narrowed here lets the object satisfy both Avatar and TeamAvatar.
35
+ var size = getAvatarSize(appearance);
31
36
  var props = _objectSpread({
32
- size: getAvatarSize(appearance),
37
+ size: size,
33
38
  src: src,
34
39
  borderColor: 'transparent',
35
40
  presence: presence
@@ -1,4 +1,4 @@
1
- /* UserPicker.tsx generated by @compiled/babel-plugin v0.39.1 */
1
+ /* UserPicker.tsx generated by @compiled/babel-plugin v0.40.0 */
2
2
  import _extends from "@babel/runtime/helpers/extends";
3
3
  import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
4
4
  import _createClass from "@babel/runtime/helpers/createClass";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/user-picker",
3
- "version": "13.4.5",
3
+ "version": "13.5.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,27 +63,27 @@
63
63
  "access": "public"
64
64
  },
65
65
  "dependencies": {
66
- "@atlaskit/afm-i18n-platform-elements-user-picker": "2.168.0",
66
+ "@atlaskit/afm-i18n-platform-elements-user-picker": "2.193.0",
67
67
  "@atlaskit/analytics-next": "^12.3.0",
68
- "@atlaskit/avatar": "^26.1.0",
68
+ "@atlaskit/avatar": "^26.2.0",
69
69
  "@atlaskit/feature-gate-js-client": "^6.0.0",
70
- "@atlaskit/icon": "^37.0.0",
70
+ "@atlaskit/icon": "^37.1.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.0.0",
75
75
  "@atlaskit/popper": "^8.3.0",
76
- "@atlaskit/primitives": "^21.0.0",
76
+ "@atlaskit/primitives": "^22.0.0",
77
77
  "@atlaskit/react-compiler-gating": "^0.2.0",
78
78
  "@atlaskit/select": "^22.5.0",
79
79
  "@atlaskit/spinner": "^20.1.0",
80
80
  "@atlaskit/tag": "^15.3.0",
81
- "@atlaskit/teams-avatar": "^3.1.0",
82
- "@atlaskit/tokens": "^16.0.0",
81
+ "@atlaskit/teams-avatar": "^3.2.0",
82
+ "@atlaskit/tokens": "^16.1.0",
83
83
  "@atlaskit/tooltip": "^23.1.0",
84
84
  "@atlaskit/ufo": "^1.0.0",
85
85
  "@babel/runtime": "^7.0.0",
86
- "@compiled/react": "^0.20.0",
86
+ "@compiled/react": "^0.22.2",
87
87
  "@emotion/react": "^11.7.1",
88
88
  "lodash": "^4.17.21",
89
89
  "memoize-one": "^6.0.0",