@atlaskit/user-picker 10.28.1 → 10.29.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 +20 -0
- package/dist/cjs/analytics.js +1 -1
- package/dist/cjs/components/MultiValue.js +1 -3
- package/dist/cjs/components/PopupControl.js +10 -18
- package/dist/cjs/components/SingleValue.js +1 -3
- package/dist/cjs/components/TeamOption/main.js +1 -3
- package/dist/es2019/analytics.js +1 -1
- package/dist/es2019/components/MultiValue.js +1 -3
- package/dist/es2019/components/PopupControl.js +3 -9
- package/dist/es2019/components/SingleValue.js +1 -3
- package/dist/es2019/components/TeamOption/main.js +1 -3
- package/dist/esm/analytics.js +1 -1
- package/dist/esm/components/MultiValue.js +1 -3
- package/dist/esm/components/PopupControl.js +10 -18
- package/dist/esm/components/SingleValue.js +1 -3
- package/dist/esm/components/TeamOption/main.js +1 -3
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,25 @@
|
|
|
1
1
|
# @atlaskit/user-picker
|
|
2
2
|
|
|
3
|
+
## 10.29.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#181817](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/181817)
|
|
8
|
+
[`c75a0ced77056`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/c75a0ced77056) -
|
|
9
|
+
Internal changes to typography.
|
|
10
|
+
|
|
11
|
+
## 10.29.0
|
|
12
|
+
|
|
13
|
+
### Minor Changes
|
|
14
|
+
|
|
15
|
+
- [#179984](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/179984)
|
|
16
|
+
[`e232332e5f674`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/e232332e5f674) -
|
|
17
|
+
[ux] Remove verified icon size
|
|
18
|
+
|
|
19
|
+
### Patch Changes
|
|
20
|
+
|
|
21
|
+
- Updated dependencies
|
|
22
|
+
|
|
3
23
|
## 10.28.1
|
|
4
24
|
|
|
5
25
|
### Patch Changes
|
package/dist/cjs/analytics.js
CHANGED
|
@@ -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.
|
|
15
|
+
var packageVersion = "10.29.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}$/;
|
|
@@ -83,9 +83,7 @@ var MultiValue = exports.MultiValue = /*#__PURE__*/function (_React$Component) {
|
|
|
83
83
|
(0, _defineProperty2.default)(_this, "getElemAfter", function () {
|
|
84
84
|
var data = _this.props.data.data;
|
|
85
85
|
if ((0, _utils.isTeam)(data) && data.verified && (0, _platformFeatureFlags.fg)('verified-team-in-user-picker')) {
|
|
86
|
-
return (0, _react2.jsx)(_verifiedTeamIcon.VerifiedTeamIcon,
|
|
87
|
-
size: "small"
|
|
88
|
-
});
|
|
86
|
+
return (0, _react2.jsx)(_verifiedTeamIcon.VerifiedTeamIcon, null);
|
|
89
87
|
}
|
|
90
88
|
return null;
|
|
91
89
|
});
|
|
@@ -19,28 +19,20 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
|
|
|
19
19
|
* @jsxRuntime classic
|
|
20
20
|
* @jsx jsx
|
|
21
21
|
*/ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
22
|
-
var spacing = 8;
|
|
23
|
-
var fontSize = 12;
|
|
24
|
-
var innerHeight = spacing * 2; // 16px
|
|
25
|
-
var lineHeight = innerHeight / fontSize;
|
|
26
22
|
var controlWrapper = (0, _react2.css)({
|
|
27
23
|
display: 'flex',
|
|
28
24
|
flexDirection: 'column',
|
|
29
25
|
padding: "0px ".concat("var(--ds-space-100, 8px)", " ", "var(--ds-space-100, 8px)")
|
|
30
26
|
});
|
|
31
|
-
var
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
paddingRight: "var(--ds-space-0, 0px)",
|
|
41
|
-
paddingTop: "var(--ds-space-250, 20px)"
|
|
42
|
-
});
|
|
43
|
-
};
|
|
27
|
+
var labelStyle = (0, _react2.css)({
|
|
28
|
+
color: "var(--ds-text-subtlest, ".concat(_colors.N200, ")"),
|
|
29
|
+
font: "var(--ds-font-body-UNSAFE_small, normal 400 12px/16px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)",
|
|
30
|
+
fontWeight: "var(--ds-font-weight-semibold, 600)",
|
|
31
|
+
paddingBottom: "var(--ds-space-050, 4px)",
|
|
32
|
+
paddingLeft: "var(--ds-space-0, 0px)",
|
|
33
|
+
paddingRight: "var(--ds-space-0, 0px)",
|
|
34
|
+
paddingTop: "var(--ds-space-250, 20px)"
|
|
35
|
+
});
|
|
44
36
|
var PopupControl = exports.PopupControl = /*#__PURE__*/function (_React$PureComponent) {
|
|
45
37
|
function PopupControl() {
|
|
46
38
|
(0, _classCallCheck2.default)(this, PopupControl);
|
|
@@ -54,7 +46,7 @@ var PopupControl = exports.PopupControl = /*#__PURE__*/function (_React$PureComp
|
|
|
54
46
|
return (0, _react2.jsx)("div", {
|
|
55
47
|
css: controlWrapper
|
|
56
48
|
}, (0, _react2.jsx)("div", {
|
|
57
|
-
css:
|
|
49
|
+
css: labelStyle
|
|
58
50
|
}, popupTitle), (0, _react2.jsx)(_select.components.Control, this.props));
|
|
59
51
|
}
|
|
60
52
|
}]);
|
|
@@ -42,9 +42,7 @@ var avatarItemComponent = (0, _react.css)({
|
|
|
42
42
|
var ElementAfter = function ElementAfter(props) {
|
|
43
43
|
var data = props.data.data;
|
|
44
44
|
if ((0, _utils.isTeam)(data) && data.verified) {
|
|
45
|
-
return (0, _react.jsx)(_verifiedTeamIcon.VerifiedTeamIcon,
|
|
46
|
-
size: "small"
|
|
47
|
-
});
|
|
45
|
+
return (0, _react.jsx)(_verifiedTeamIcon.VerifiedTeamIcon, null);
|
|
48
46
|
}
|
|
49
47
|
return null;
|
|
50
48
|
};
|
|
@@ -50,9 +50,7 @@ var TeamOption = exports.TeamOption = /*#__PURE__*/function (_React$PureComponen
|
|
|
50
50
|
alignBlock: "center"
|
|
51
51
|
}, (0, _react.jsx)(_HighlightText.HighlightText, {
|
|
52
52
|
highlights: highlight && highlight.name
|
|
53
|
-
}, name), verified && (0, _react.jsx)(_verifiedTeamIcon.VerifiedTeamIcon, {
|
|
54
|
-
size: "small"
|
|
55
|
-
})) : (0, _react.jsx)(_HighlightText.HighlightText, {
|
|
53
|
+
}, name), verified && (0, _react.jsx)(_verifiedTeamIcon.VerifiedTeamIcon, null)) : (0, _react.jsx)(_HighlightText.HighlightText, {
|
|
56
54
|
highlights: highlight && highlight.name
|
|
57
55
|
}, name))];
|
|
58
56
|
});
|
package/dist/es2019/analytics.js
CHANGED
|
@@ -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.
|
|
5
|
+
const packageVersion = "10.29.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}$/;
|
|
@@ -77,9 +77,7 @@ export class MultiValue extends React.Component {
|
|
|
77
77
|
}
|
|
78
78
|
} = this.props;
|
|
79
79
|
if (isTeam(data) && data.verified && fg('verified-team-in-user-picker')) {
|
|
80
|
-
return jsx(VerifiedTeamIcon,
|
|
81
|
-
size: "small"
|
|
82
|
-
});
|
|
80
|
+
return jsx(VerifiedTeamIcon, null);
|
|
83
81
|
}
|
|
84
82
|
return null;
|
|
85
83
|
});
|
|
@@ -7,21 +7,15 @@ import { components } from '@atlaskit/select';
|
|
|
7
7
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
8
8
|
import { css, jsx } from '@emotion/react';
|
|
9
9
|
import { N200 } from '@atlaskit/theme/colors';
|
|
10
|
-
const spacing = 8;
|
|
11
|
-
const fontSize = 12;
|
|
12
|
-
const innerHeight = spacing * 2; // 16px
|
|
13
|
-
const lineHeight = innerHeight / fontSize;
|
|
14
10
|
const controlWrapper = css({
|
|
15
11
|
display: 'flex',
|
|
16
12
|
flexDirection: 'column',
|
|
17
13
|
padding: `0px ${"var(--ds-space-100, 8px)"} ${"var(--ds-space-100, 8px)"}`
|
|
18
14
|
});
|
|
19
|
-
const
|
|
15
|
+
const labelStyle = css({
|
|
20
16
|
color: `var(--ds-text-subtlest, ${N200})`,
|
|
21
|
-
|
|
17
|
+
font: "var(--ds-font-body-UNSAFE_small, normal 400 12px/16px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)",
|
|
22
18
|
fontWeight: "var(--ds-font-weight-semibold, 600)",
|
|
23
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
24
|
-
lineHeight: `${lineHeight}`,
|
|
25
19
|
paddingBottom: "var(--ds-space-050, 4px)",
|
|
26
20
|
paddingLeft: "var(--ds-space-0, 0px)",
|
|
27
21
|
paddingRight: "var(--ds-space-0, 0px)",
|
|
@@ -38,7 +32,7 @@ export class PopupControl extends React.PureComponent {
|
|
|
38
32
|
return jsx("div", {
|
|
39
33
|
css: controlWrapper
|
|
40
34
|
}, jsx("div", {
|
|
41
|
-
css:
|
|
35
|
+
css: labelStyle
|
|
42
36
|
}, popupTitle), jsx(components.Control, this.props));
|
|
43
37
|
}
|
|
44
38
|
}
|
|
@@ -36,9 +36,7 @@ export class TeamOption extends React.PureComponent {
|
|
|
36
36
|
alignBlock: "center"
|
|
37
37
|
}, jsx(HighlightText, {
|
|
38
38
|
highlights: highlight && highlight.name
|
|
39
|
-
}, name), verified && jsx(VerifiedTeamIcon, {
|
|
40
|
-
size: "small"
|
|
41
|
-
})) : jsx(HighlightText, {
|
|
39
|
+
}, name), verified && jsx(VerifiedTeamIcon, null)) : jsx(HighlightText, {
|
|
42
40
|
highlights: highlight && highlight.name
|
|
43
41
|
}, name))];
|
|
44
42
|
});
|
package/dist/esm/analytics.js
CHANGED
|
@@ -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.
|
|
8
|
+
var packageVersion = "10.29.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}$/;
|
|
@@ -78,9 +78,7 @@ export var MultiValue = /*#__PURE__*/function (_React$Component) {
|
|
|
78
78
|
_defineProperty(_this, "getElemAfter", function () {
|
|
79
79
|
var data = _this.props.data.data;
|
|
80
80
|
if (isTeam(data) && data.verified && fg('verified-team-in-user-picker')) {
|
|
81
|
-
return jsx(VerifiedTeamIcon,
|
|
82
|
-
size: "small"
|
|
83
|
-
});
|
|
81
|
+
return jsx(VerifiedTeamIcon, null);
|
|
84
82
|
}
|
|
85
83
|
return null;
|
|
86
84
|
});
|
|
@@ -14,28 +14,20 @@ import { components } from '@atlaskit/select';
|
|
|
14
14
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
15
15
|
import { css, jsx } from '@emotion/react';
|
|
16
16
|
import { N200 } from '@atlaskit/theme/colors';
|
|
17
|
-
var spacing = 8;
|
|
18
|
-
var fontSize = 12;
|
|
19
|
-
var innerHeight = spacing * 2; // 16px
|
|
20
|
-
var lineHeight = innerHeight / fontSize;
|
|
21
17
|
var controlWrapper = css({
|
|
22
18
|
display: 'flex',
|
|
23
19
|
flexDirection: 'column',
|
|
24
20
|
padding: "0px ".concat("var(--ds-space-100, 8px)", " ", "var(--ds-space-100, 8px)")
|
|
25
21
|
});
|
|
26
|
-
var
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
paddingRight: "var(--ds-space-0, 0px)",
|
|
36
|
-
paddingTop: "var(--ds-space-250, 20px)"
|
|
37
|
-
});
|
|
38
|
-
};
|
|
22
|
+
var labelStyle = css({
|
|
23
|
+
color: "var(--ds-text-subtlest, ".concat(N200, ")"),
|
|
24
|
+
font: "var(--ds-font-body-UNSAFE_small, normal 400 12px/16px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)",
|
|
25
|
+
fontWeight: "var(--ds-font-weight-semibold, 600)",
|
|
26
|
+
paddingBottom: "var(--ds-space-050, 4px)",
|
|
27
|
+
paddingLeft: "var(--ds-space-0, 0px)",
|
|
28
|
+
paddingRight: "var(--ds-space-0, 0px)",
|
|
29
|
+
paddingTop: "var(--ds-space-250, 20px)"
|
|
30
|
+
});
|
|
39
31
|
export var PopupControl = /*#__PURE__*/function (_React$PureComponent) {
|
|
40
32
|
function PopupControl() {
|
|
41
33
|
_classCallCheck(this, PopupControl);
|
|
@@ -49,7 +41,7 @@ export var PopupControl = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
49
41
|
return jsx("div", {
|
|
50
42
|
css: controlWrapper
|
|
51
43
|
}, jsx("div", {
|
|
52
|
-
css:
|
|
44
|
+
css: labelStyle
|
|
53
45
|
}, popupTitle), jsx(components.Control, this.props));
|
|
54
46
|
}
|
|
55
47
|
}]);
|
|
@@ -35,9 +35,7 @@ var avatarItemComponent = css({
|
|
|
35
35
|
var ElementAfter = function ElementAfter(props) {
|
|
36
36
|
var data = props.data.data;
|
|
37
37
|
if (isTeam(data) && data.verified) {
|
|
38
|
-
return jsx(VerifiedTeamIcon,
|
|
39
|
-
size: "small"
|
|
40
|
-
});
|
|
38
|
+
return jsx(VerifiedTeamIcon, null);
|
|
41
39
|
}
|
|
42
40
|
return null;
|
|
43
41
|
};
|
|
@@ -45,9 +45,7 @@ export var TeamOption = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
45
45
|
alignBlock: "center"
|
|
46
46
|
}, jsx(HighlightText, {
|
|
47
47
|
highlights: highlight && highlight.name
|
|
48
|
-
}, name), verified && jsx(VerifiedTeamIcon, {
|
|
49
|
-
size: "small"
|
|
50
|
-
})) : jsx(HighlightText, {
|
|
48
|
+
}, name), verified && jsx(VerifiedTeamIcon, null)) : jsx(HighlightText, {
|
|
51
49
|
highlights: highlight && highlight.name
|
|
52
50
|
}, name))];
|
|
53
51
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/user-picker",
|
|
3
|
-
"version": "10.
|
|
3
|
+
"version": "10.29.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/"
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
"@atlaskit/icon": "^23.1.0",
|
|
52
52
|
"@atlaskit/logo": "^15.1.0",
|
|
53
53
|
"@atlaskit/lozenge": "^11.12.0",
|
|
54
|
-
"@atlaskit/people-teams-ui-public": "^
|
|
54
|
+
"@atlaskit/people-teams-ui-public": "^2.0.0",
|
|
55
55
|
"@atlaskit/platform-feature-flags": "^0.3.0",
|
|
56
56
|
"@atlaskit/popper": "^6.3.0",
|
|
57
57
|
"@atlaskit/primitives": "^13.3.0",
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
"@atlaskit/spinner": "^16.3.0",
|
|
60
60
|
"@atlaskit/teams-avatar": "^1.1.0",
|
|
61
61
|
"@atlaskit/theme": "^14.0.0",
|
|
62
|
-
"@atlaskit/tokens": "^2.
|
|
62
|
+
"@atlaskit/tokens": "^2.5.0",
|
|
63
63
|
"@atlaskit/tooltip": "^19.0.0",
|
|
64
64
|
"@atlaskit/ufo": "^0.3.0",
|
|
65
65
|
"@babel/runtime": "^7.0.0",
|