@atlaskit/user-picker 10.16.0 → 10.16.1

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,11 @@
1
1
  # @atlaskit/user-picker
2
2
 
3
+ ## 10.16.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [#70460](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/70460) [`2f37600156ae`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/2f37600156ae) - The internal composition of a component in this package has changed. There is no expected change in behaviour.
8
+
3
9
  ## 10.16.0
4
10
 
5
11
  ### Minor 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 = "10.16.0";
15
+ var packageVersion = "10.16.1";
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}$/;
@@ -16,6 +16,7 @@ var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/ge
16
16
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
17
17
  var _react = _interopRequireDefault(require("react"));
18
18
  var _reactIntlNext = require("react-intl-next");
19
+ var _primitives = require("@atlaskit/primitives");
19
20
  var _select = require("@atlaskit/select");
20
21
  var _react2 = require("@emotion/react");
21
22
  var _AddOptionAvatar = require("./AddOptionAvatar");
@@ -39,8 +40,8 @@ var scrollToValue = exports.scrollToValue = function scrollToValue(valueContaine
39
40
  valueContainer.scrollIntoView(false);
40
41
  }
41
42
  };
42
- var groupTagContainer = (0, _react2.css)({
43
- paddingLeft: "var(--ds-space-025, 2px)"
43
+ var groupTagContainer = (0, _primitives.xcss)({
44
+ paddingLeft: 'space.025'
44
45
  });
45
46
  var nameWrapper = (0, _react2.css)({
46
47
  paddingLeft: '5px'
@@ -68,8 +69,8 @@ var MultiValue = exports.MultiValue = /*#__PURE__*/function (_React$Component) {
68
69
  });
69
70
  }
70
71
  if ((0, _utils.isGroup)(data)) {
71
- return (0, _react2.jsx)("div", {
72
- css: groupTagContainer
72
+ return (0, _react2.jsx)(_primitives.Box, {
73
+ xcss: groupTagContainer
73
74
  }, (0, _react2.jsx)(_people.default, {
74
75
  label: "group-icon",
75
76
  size: "small"
@@ -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 = "10.16.0";
5
+ const packageVersion = "10.16.1";
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}$/;
@@ -3,6 +3,7 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
3
3
  /** @jsx jsx */
4
4
  import React from 'react';
5
5
  import { FormattedMessage } from 'react-intl-next';
6
+ import { Box, xcss } from '@atlaskit/primitives';
6
7
  import { components } from '@atlaskit/select';
7
8
  import { css, jsx } from '@emotion/react';
8
9
  import { AddOptionAvatar } from './AddOptionAvatar';
@@ -25,8 +26,8 @@ export const scrollToValue = (valueContainer, control) => {
25
26
  valueContainer.scrollIntoView(false);
26
27
  }
27
28
  };
28
- const groupTagContainer = css({
29
- paddingLeft: "var(--ds-space-025, 2px)"
29
+ const groupTagContainer = xcss({
30
+ paddingLeft: 'space.025'
30
31
  });
31
32
  const nameWrapper = css({
32
33
  paddingLeft: '5px'
@@ -51,8 +52,8 @@ export class MultiValue extends React.Component {
51
52
  }));
52
53
  }
53
54
  if (isGroup(data)) {
54
- return jsx("div", {
55
- css: groupTagContainer
55
+ return jsx(Box, {
56
+ xcss: groupTagContainer
56
57
  }, jsx(PeopleIcon, {
57
58
  label: "group-icon",
58
59
  size: "small"
@@ -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 = "10.16.0";
8
+ var packageVersion = "10.16.1";
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}$/;
@@ -13,6 +13,7 @@ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Re
13
13
  /** @jsx jsx */
14
14
  import React from 'react';
15
15
  import { FormattedMessage } from 'react-intl-next';
16
+ import { Box, xcss } from '@atlaskit/primitives';
16
17
  import { components } from '@atlaskit/select';
17
18
  import { css, jsx } from '@emotion/react';
18
19
  import { AddOptionAvatar } from './AddOptionAvatar';
@@ -33,8 +34,8 @@ export var scrollToValue = function scrollToValue(valueContainer, control) {
33
34
  valueContainer.scrollIntoView(false);
34
35
  }
35
36
  };
36
- var groupTagContainer = css({
37
- paddingLeft: "var(--ds-space-025, 2px)"
37
+ var groupTagContainer = xcss({
38
+ paddingLeft: 'space.025'
38
39
  });
39
40
  var nameWrapper = css({
40
41
  paddingLeft: '5px'
@@ -62,8 +63,8 @@ export var MultiValue = /*#__PURE__*/function (_React$Component) {
62
63
  });
63
64
  }
64
65
  if (isGroup(data)) {
65
- return jsx("div", {
66
- css: groupTagContainer
66
+ return jsx(Box, {
67
+ xcss: groupTagContainer
67
68
  }, jsx(PeopleIcon, {
68
69
  label: "group-icon",
69
70
  size: "small"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/user-picker",
3
- "version": "10.16.0",
3
+ "version": "10.16.1",
4
4
  "description": "Fabric component for display a dropdown to select a user from",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"