@atlaskit/user-picker 10.28.0 → 10.29.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 +20 -0
- package/dist/cjs/analytics.js +1 -1
- package/dist/cjs/components/MultiValue.js +1 -3
- 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/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/SingleValue.js +1 -3
- package/dist/esm/components/TeamOption/main.js +1 -3
- package/dist/types/types.d.ts +1 -0
- package/dist/types-ts4.5/types.d.ts +1 -0
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,25 @@
|
|
|
1
1
|
# @atlaskit/user-picker
|
|
2
2
|
|
|
3
|
+
## 10.29.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#179984](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/179984)
|
|
8
|
+
[`e232332e5f674`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/e232332e5f674) -
|
|
9
|
+
[ux] Remove verified icon size
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- Updated dependencies
|
|
14
|
+
|
|
15
|
+
## 10.28.1
|
|
16
|
+
|
|
17
|
+
### Patch Changes
|
|
18
|
+
|
|
19
|
+
- [#178696](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/178696)
|
|
20
|
+
[`268232b3ae8c6`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/268232b3ae8c6) -
|
|
21
|
+
added rendering verified team icon to default-result-renderer if search result includes isVerified
|
|
22
|
+
|
|
3
23
|
## 10.28.0
|
|
4
24
|
|
|
5
25
|
### Minor 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.0";
|
|
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
|
});
|
|
@@ -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.0";
|
|
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
|
});
|
|
@@ -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.0";
|
|
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
|
});
|
|
@@ -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/dist/types/types.d.ts
CHANGED
|
@@ -249,6 +249,7 @@ export interface OptionData {
|
|
|
249
249
|
type?: 'user' | 'team' | 'email' | 'group' | 'custom' | 'external_user';
|
|
250
250
|
tooltip?: string;
|
|
251
251
|
title?: string;
|
|
252
|
+
verified?: boolean;
|
|
252
253
|
}
|
|
253
254
|
export declare const UserType = "user";
|
|
254
255
|
export declare const ExternalUserType = "external_user";
|
|
@@ -252,6 +252,7 @@ export interface OptionData {
|
|
|
252
252
|
type?: 'user' | 'team' | 'email' | 'group' | 'custom' | 'external_user';
|
|
253
253
|
tooltip?: string;
|
|
254
254
|
title?: string;
|
|
255
|
+
verified?: boolean;
|
|
255
256
|
}
|
|
256
257
|
export declare const UserType = "user";
|
|
257
258
|
export declare const ExternalUserType = "external_user";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/user-picker",
|
|
3
|
-
"version": "10.
|
|
3
|
+
"version": "10.29.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/"
|
|
@@ -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",
|