@atlaskit/user-picker 11.0.13 → 11.1.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 +17 -0
- package/afm-cc/tsconfig.json +3 -0
- package/dist/cjs/analytics.js +1 -1
- package/dist/cjs/components/MultiValue.js +2 -3
- package/dist/cjs/components/SingleValue.js +3 -4
- package/dist/cjs/components/TeamOption/main.js +2 -5
- package/dist/es2019/analytics.js +1 -1
- package/dist/es2019/components/MultiValue.js +2 -3
- package/dist/es2019/components/SingleValue.js +3 -4
- package/dist/es2019/components/TeamOption/main.js +2 -5
- package/dist/esm/analytics.js +1 -1
- package/dist/esm/components/MultiValue.js +2 -3
- package/dist/esm/components/SingleValue.js +3 -4
- package/dist/esm/components/TeamOption/main.js +2 -5
- package/docs/1-smart-user-picker.tsx +8 -2
- package/package.json +10 -9
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
# @atlaskit/user-picker
|
|
2
2
|
|
|
3
|
+
## 11.1.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#157101](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/157101)
|
|
8
|
+
[`22968df0284f0`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/22968df0284f0) -
|
|
9
|
+
We are testing the migration to the ADS Link component behind a feature flag. If this fix is
|
|
10
|
+
successful it will be available in a later release.
|
|
11
|
+
|
|
12
|
+
## 11.0.14
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- [#155339](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/155339)
|
|
17
|
+
[`4e0fe53072701`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/4e0fe53072701) -
|
|
18
|
+
Clean up verified-team-in-user-picker
|
|
19
|
+
|
|
3
20
|
## 11.0.13
|
|
4
21
|
|
|
5
22
|
### Patch Changes
|
package/afm-cc/tsconfig.json
CHANGED
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 = "11.0
|
|
15
|
+
var packageVersion = "11.1.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}$/;
|
|
@@ -22,7 +22,6 @@ var _SizeableAvatar = require("./SizeableAvatar");
|
|
|
22
22
|
var _utils = require("./utils");
|
|
23
23
|
var _peopleGroupPeople = _interopRequireDefault(require("@atlaskit/icon/core/migration/people-group--people"));
|
|
24
24
|
var _verifiedTeamIcon = require("@atlaskit/people-teams-ui-public/verified-team-icon");
|
|
25
|
-
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
26
25
|
var _excluded = ["children", "innerProps"];
|
|
27
26
|
function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); }
|
|
28
27
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } /**
|
|
@@ -77,12 +76,12 @@ var MultiValue = exports.MultiValue = /*#__PURE__*/function (_React$Component) {
|
|
|
77
76
|
return (0, _react2.jsx)(_SizeableAvatar.SizeableAvatar, {
|
|
78
77
|
appearance: "multi",
|
|
79
78
|
src: (0, _utils.getAvatarUrl)(data),
|
|
80
|
-
type: (0, _utils.isTeam)(data)
|
|
79
|
+
type: (0, _utils.isTeam)(data) ? 'team' : 'person'
|
|
81
80
|
});
|
|
82
81
|
});
|
|
83
82
|
(0, _defineProperty2.default)(_this, "getElemAfter", function () {
|
|
84
83
|
var data = _this.props.data.data;
|
|
85
|
-
if ((0, _utils.isTeam)(data) && data.verified
|
|
84
|
+
if ((0, _utils.isTeam)(data) && data.verified) {
|
|
86
85
|
return (0, _react2.jsx)(_verifiedTeamIcon.VerifiedTeamIcon, null);
|
|
87
86
|
}
|
|
88
87
|
return null;
|
|
@@ -13,7 +13,6 @@ var _select = require("@atlaskit/select");
|
|
|
13
13
|
var _SizeableAvatar = require("./SizeableAvatar");
|
|
14
14
|
var _utils = require("./utils");
|
|
15
15
|
var _verifiedTeamIcon = require("@atlaskit/people-teams-ui-public/verified-team-icon");
|
|
16
|
-
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
17
16
|
var _compiled = require("@atlaskit/primitives/compiled");
|
|
18
17
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
19
18
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
@@ -41,14 +40,14 @@ var SingleValue = exports.SingleValue = function SingleValue(props) {
|
|
|
41
40
|
}, /*#__PURE__*/React.createElement(_SizeableAvatar.SizeableAvatar, {
|
|
42
41
|
src: (0, _utils.getAvatarUrl)(data),
|
|
43
42
|
appearance: appearance,
|
|
44
|
-
type: (0, _utils.isTeam)(data)
|
|
43
|
+
type: (0, _utils.isTeam)(data) ? 'team' : 'person'
|
|
45
44
|
}), /*#__PURE__*/React.createElement(_compiled.Box, {
|
|
46
45
|
xcss: styles.avatarItem
|
|
47
46
|
}, /*#__PURE__*/React.createElement("div", {
|
|
48
47
|
className: (0, _runtime.ax)([styles.avatarItemTextWrapper])
|
|
49
48
|
}, /*#__PURE__*/React.createElement(_compiled.Box, {
|
|
50
49
|
xcss: styles.avatarItemText
|
|
51
|
-
},
|
|
50
|
+
}, /*#__PURE__*/React.createElement(_compiled.Inline, {
|
|
52
51
|
alignBlock: "center"
|
|
53
|
-
}, label, /*#__PURE__*/React.createElement(ElementAfter, props))
|
|
52
|
+
}, label, /*#__PURE__*/React.createElement(ElementAfter, props))))))) : null;
|
|
54
53
|
};
|
|
@@ -13,7 +13,6 @@ var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/ge
|
|
|
13
13
|
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
|
|
14
14
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
15
15
|
var _colors = require("@atlaskit/theme/colors");
|
|
16
|
-
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
17
16
|
var _compiled = require("@atlaskit/primitives/compiled");
|
|
18
17
|
var _verifiedTeamIcon = require("@atlaskit/people-teams-ui-public/verified-team-icon");
|
|
19
18
|
var _react = require("@emotion/react");
|
|
@@ -46,13 +45,11 @@ var TeamOption = exports.TeamOption = /*#__PURE__*/function (_React$PureComponen
|
|
|
46
45
|
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
47
46
|
,
|
|
48
47
|
css: (0, _AvatarItemOption.textWrapper)(_this.props.isSelected ? "var(--ds-text-selected, ".concat(_colors.B400, ")") : "var(--ds-text, ".concat(_colors.N800, ")"))
|
|
49
|
-
}, (0,
|
|
48
|
+
}, (0, _react.jsx)(_compiled.Inline, {
|
|
50
49
|
alignBlock: "center"
|
|
51
50
|
}, (0, _react.jsx)(_HighlightText.HighlightText, {
|
|
52
51
|
highlights: highlight && highlight.name
|
|
53
|
-
}, name), verified && (0, _react.jsx)(_verifiedTeamIcon.VerifiedTeamIcon, null))
|
|
54
|
-
highlights: highlight && highlight.name
|
|
55
|
-
}, name))];
|
|
52
|
+
}, name), verified && (0, _react.jsx)(_verifiedTeamIcon.VerifiedTeamIcon, null)))];
|
|
56
53
|
});
|
|
57
54
|
(0, _defineProperty2.default)(_this, "renderByline", function () {
|
|
58
55
|
var _this$props = _this.props,
|
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 = "11.0
|
|
5
|
+
const packageVersion = "11.1.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}$/;
|
|
@@ -14,7 +14,6 @@ import { SizeableAvatar } from './SizeableAvatar';
|
|
|
14
14
|
import { getAvatarUrl, isEmail, isGroup, isTeam } from './utils';
|
|
15
15
|
import PeopleIcon from '@atlaskit/icon/core/migration/people-group--people';
|
|
16
16
|
import { VerifiedTeamIcon } from '@atlaskit/people-teams-ui-public/verified-team-icon';
|
|
17
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
18
17
|
export const scrollToValue = (valueContainer, control) => {
|
|
19
18
|
const {
|
|
20
19
|
top,
|
|
@@ -67,7 +66,7 @@ export class MultiValue extends React.Component {
|
|
|
67
66
|
return jsx(SizeableAvatar, {
|
|
68
67
|
appearance: "multi",
|
|
69
68
|
src: getAvatarUrl(data),
|
|
70
|
-
type: isTeam(data)
|
|
69
|
+
type: isTeam(data) ? 'team' : 'person'
|
|
71
70
|
});
|
|
72
71
|
});
|
|
73
72
|
_defineProperty(this, "getElemAfter", () => {
|
|
@@ -76,7 +75,7 @@ export class MultiValue extends React.Component {
|
|
|
76
75
|
data
|
|
77
76
|
}
|
|
78
77
|
} = this.props;
|
|
79
|
-
if (isTeam(data) && data.verified
|
|
78
|
+
if (isTeam(data) && data.verified) {
|
|
80
79
|
return jsx(VerifiedTeamIcon, null);
|
|
81
80
|
}
|
|
82
81
|
return null;
|
|
@@ -6,7 +6,6 @@ import { components } from '@atlaskit/select';
|
|
|
6
6
|
import { SizeableAvatar } from './SizeableAvatar';
|
|
7
7
|
import { getAvatarUrl, isTeam } from './utils';
|
|
8
8
|
import { VerifiedTeamIcon } from '@atlaskit/people-teams-ui-public/verified-team-icon';
|
|
9
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
10
9
|
import { Box, Flex, Inline } from '@atlaskit/primitives/compiled';
|
|
11
10
|
const styles = {
|
|
12
11
|
avatarItem: "_1reo15vq _18m915vq _4cvr1h6o _1ul953f4",
|
|
@@ -41,14 +40,14 @@ export const SingleValue = props => {
|
|
|
41
40
|
}, /*#__PURE__*/React.createElement(SizeableAvatar, {
|
|
42
41
|
src: getAvatarUrl(data),
|
|
43
42
|
appearance: appearance,
|
|
44
|
-
type: isTeam(data)
|
|
43
|
+
type: isTeam(data) ? 'team' : 'person'
|
|
45
44
|
}), /*#__PURE__*/React.createElement(Box, {
|
|
46
45
|
xcss: styles.avatarItem
|
|
47
46
|
}, /*#__PURE__*/React.createElement("div", {
|
|
48
47
|
className: ax([styles.avatarItemTextWrapper])
|
|
49
48
|
}, /*#__PURE__*/React.createElement(Box, {
|
|
50
49
|
xcss: styles.avatarItemText
|
|
51
|
-
},
|
|
50
|
+
}, /*#__PURE__*/React.createElement(Inline, {
|
|
52
51
|
alignBlock: "center"
|
|
53
|
-
}, label, /*#__PURE__*/React.createElement(ElementAfter, props))
|
|
52
|
+
}, label, /*#__PURE__*/React.createElement(ElementAfter, props))))))) : null;
|
|
54
53
|
};
|
|
@@ -5,7 +5,6 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
|
5
5
|
* @jsx jsx
|
|
6
6
|
*/
|
|
7
7
|
import { B400, N800, N200 } from '@atlaskit/theme/colors';
|
|
8
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
9
8
|
import { Inline } from '@atlaskit/primitives/compiled';
|
|
10
9
|
import { VerifiedTeamIcon } from '@atlaskit/people-teams-ui-public/verified-team-icon';
|
|
11
10
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
@@ -32,13 +31,11 @@ export class TeamOption extends React.PureComponent {
|
|
|
32
31
|
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
33
32
|
,
|
|
34
33
|
css: textWrapper(this.props.isSelected ? `var(--ds-text-selected, ${B400})` : `var(--ds-text, ${N800})`)
|
|
35
|
-
},
|
|
34
|
+
}, jsx(Inline, {
|
|
36
35
|
alignBlock: "center"
|
|
37
36
|
}, jsx(HighlightText, {
|
|
38
37
|
highlights: highlight && highlight.name
|
|
39
|
-
}, name), verified && jsx(VerifiedTeamIcon, null))
|
|
40
|
-
highlights: highlight && highlight.name
|
|
41
|
-
}, name))];
|
|
38
|
+
}, name), verified && jsx(VerifiedTeamIcon, null)))];
|
|
42
39
|
});
|
|
43
40
|
_defineProperty(this, "renderByline", () => {
|
|
44
41
|
const {
|
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 = "11.0
|
|
8
|
+
var packageVersion = "11.1.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}$/;
|
|
@@ -23,7 +23,6 @@ import { SizeableAvatar } from './SizeableAvatar';
|
|
|
23
23
|
import { getAvatarUrl, isEmail, isGroup, isTeam } from './utils';
|
|
24
24
|
import PeopleIcon from '@atlaskit/icon/core/migration/people-group--people';
|
|
25
25
|
import { VerifiedTeamIcon } from '@atlaskit/people-teams-ui-public/verified-team-icon';
|
|
26
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
27
26
|
export var scrollToValue = function scrollToValue(valueContainer, control) {
|
|
28
27
|
var _valueContainer$getBo = valueContainer.getBoundingClientRect(),
|
|
29
28
|
top = _valueContainer$getBo.top,
|
|
@@ -72,12 +71,12 @@ export var MultiValue = /*#__PURE__*/function (_React$Component) {
|
|
|
72
71
|
return jsx(SizeableAvatar, {
|
|
73
72
|
appearance: "multi",
|
|
74
73
|
src: getAvatarUrl(data),
|
|
75
|
-
type: isTeam(data)
|
|
74
|
+
type: isTeam(data) ? 'team' : 'person'
|
|
76
75
|
});
|
|
77
76
|
});
|
|
78
77
|
_defineProperty(_this, "getElemAfter", function () {
|
|
79
78
|
var data = _this.props.data.data;
|
|
80
|
-
if (isTeam(data) && data.verified
|
|
79
|
+
if (isTeam(data) && data.verified) {
|
|
81
80
|
return jsx(VerifiedTeamIcon, null);
|
|
82
81
|
}
|
|
83
82
|
return null;
|
|
@@ -6,7 +6,6 @@ import { components } from '@atlaskit/select';
|
|
|
6
6
|
import { SizeableAvatar } from './SizeableAvatar';
|
|
7
7
|
import { getAvatarUrl, isTeam } from './utils';
|
|
8
8
|
import { VerifiedTeamIcon } from '@atlaskit/people-teams-ui-public/verified-team-icon';
|
|
9
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
10
9
|
import { Box, Flex, Inline } from '@atlaskit/primitives/compiled';
|
|
11
10
|
var styles = {
|
|
12
11
|
avatarItem: "_1reo15vq _18m915vq _4cvr1h6o _1ul953f4",
|
|
@@ -32,14 +31,14 @@ export var SingleValue = function SingleValue(props) {
|
|
|
32
31
|
}, /*#__PURE__*/React.createElement(SizeableAvatar, {
|
|
33
32
|
src: getAvatarUrl(data),
|
|
34
33
|
appearance: appearance,
|
|
35
|
-
type: isTeam(data)
|
|
34
|
+
type: isTeam(data) ? 'team' : 'person'
|
|
36
35
|
}), /*#__PURE__*/React.createElement(Box, {
|
|
37
36
|
xcss: styles.avatarItem
|
|
38
37
|
}, /*#__PURE__*/React.createElement("div", {
|
|
39
38
|
className: ax([styles.avatarItemTextWrapper])
|
|
40
39
|
}, /*#__PURE__*/React.createElement(Box, {
|
|
41
40
|
xcss: styles.avatarItemText
|
|
42
|
-
},
|
|
41
|
+
}, /*#__PURE__*/React.createElement(Inline, {
|
|
43
42
|
alignBlock: "center"
|
|
44
|
-
}, label, /*#__PURE__*/React.createElement(ElementAfter, props))
|
|
43
|
+
}, label, /*#__PURE__*/React.createElement(ElementAfter, props))))))) : null;
|
|
45
44
|
};
|
|
@@ -12,7 +12,6 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
|
|
|
12
12
|
* @jsx jsx
|
|
13
13
|
*/
|
|
14
14
|
import { B400, N800, N200 } from '@atlaskit/theme/colors';
|
|
15
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
16
15
|
import { Inline } from '@atlaskit/primitives/compiled';
|
|
17
16
|
import { VerifiedTeamIcon } from '@atlaskit/people-teams-ui-public/verified-team-icon';
|
|
18
17
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
@@ -41,13 +40,11 @@ export var TeamOption = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
41
40
|
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
42
41
|
,
|
|
43
42
|
css: textWrapper(_this.props.isSelected ? "var(--ds-text-selected, ".concat(B400, ")") : "var(--ds-text, ".concat(N800, ")"))
|
|
44
|
-
},
|
|
43
|
+
}, jsx(Inline, {
|
|
45
44
|
alignBlock: "center"
|
|
46
45
|
}, jsx(HighlightText, {
|
|
47
46
|
highlights: highlight && highlight.name
|
|
48
|
-
}, name), verified && jsx(VerifiedTeamIcon, null))
|
|
49
|
-
highlights: highlight && highlight.name
|
|
50
|
-
}, name))];
|
|
47
|
+
}, name), verified && jsx(VerifiedTeamIcon, null)))];
|
|
51
48
|
});
|
|
52
49
|
_defineProperty(_this, "renderByline", function () {
|
|
53
50
|
var _this$props = _this.props,
|
|
@@ -1,7 +1,13 @@
|
|
|
1
|
+
import Link from '@atlaskit/link';
|
|
2
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
1
3
|
import React from 'react';
|
|
2
4
|
import { md } from '@atlaskit/docs';
|
|
3
5
|
import SectionMessage from '@atlaskit/section-message';
|
|
4
6
|
|
|
7
|
+
const LinkComponent = (props: any) =>
|
|
8
|
+
// eslint-disable-next-line @atlaskit/design-system/no-html-anchor, jsx-a11y/anchor-has-content
|
|
9
|
+
fg('dst-a11y__replace-anchor-with-link__search-platfor') ? <Link {...props} /> : <a {...props} />;
|
|
10
|
+
|
|
5
11
|
export default md`
|
|
6
12
|
${(
|
|
7
13
|
<SectionMessage
|
|
@@ -9,9 +15,9 @@ export default md`
|
|
|
9
15
|
title="Note: @atlaskit/user-picker/smart-user-picker is deprecated."
|
|
10
16
|
>
|
|
11
17
|
SmartUserPicker has moved packages! Please use{' '}
|
|
12
|
-
<
|
|
18
|
+
<LinkComponent href="https://statlas.prod.atl-paas.net/atlassian-frontend/master#packages/smart-experiences/smart-user-picker">
|
|
13
19
|
@atlaskit/smart-user-picker
|
|
14
|
-
</
|
|
20
|
+
</LinkComponent>{' '}
|
|
15
21
|
instead. Alternatively, @atlaskit/smart-hooks will be ready by end of FY22Q4. Contact
|
|
16
22
|
#search-plex for further details.
|
|
17
23
|
</SectionMessage>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/user-picker",
|
|
3
|
-
"version": "11.0
|
|
3
|
+
"version": "11.1.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/"
|
|
@@ -50,19 +50,20 @@
|
|
|
50
50
|
},
|
|
51
51
|
"dependencies": {
|
|
52
52
|
"@atlaskit/analytics-next": "^11.0.0",
|
|
53
|
-
"@atlaskit/avatar": "^25.
|
|
54
|
-
"@atlaskit/icon": "^26.
|
|
53
|
+
"@atlaskit/avatar": "^25.1.0",
|
|
54
|
+
"@atlaskit/icon": "^26.1.0",
|
|
55
|
+
"@atlaskit/link": "^3.2.0",
|
|
55
56
|
"@atlaskit/logo": "^18.0.0",
|
|
56
57
|
"@atlaskit/lozenge": "^12.2.0",
|
|
57
58
|
"@atlaskit/people-teams-ui-public": "^3.1.0",
|
|
58
59
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
59
60
|
"@atlaskit/popper": "^7.0.0",
|
|
60
|
-
"@atlaskit/primitives": "^14.
|
|
61
|
-
"@atlaskit/select": "^20.
|
|
61
|
+
"@atlaskit/primitives": "^14.8.0",
|
|
62
|
+
"@atlaskit/select": "^20.6.0",
|
|
62
63
|
"@atlaskit/spinner": "^18.0.0",
|
|
63
64
|
"@atlaskit/teams-avatar": "^2.3.0",
|
|
64
65
|
"@atlaskit/theme": "^18.0.0",
|
|
65
|
-
"@atlaskit/tokens": "^4.
|
|
66
|
+
"@atlaskit/tokens": "^4.9.0",
|
|
66
67
|
"@atlaskit/tooltip": "^20.0.0",
|
|
67
68
|
"@atlaskit/ufo": "^0.4.0",
|
|
68
69
|
"@babel/runtime": "^7.0.0",
|
|
@@ -109,9 +110,6 @@
|
|
|
109
110
|
"ui"
|
|
110
111
|
],
|
|
111
112
|
"platform-feature-flags": {
|
|
112
|
-
"verified-team-in-user-picker": {
|
|
113
|
-
"type": "boolean"
|
|
114
|
-
},
|
|
115
113
|
"pass-aria-describedby-to-baseuserpicker": {
|
|
116
114
|
"type": "boolean"
|
|
117
115
|
},
|
|
@@ -120,6 +118,9 @@
|
|
|
120
118
|
},
|
|
121
119
|
"user-picker-show-clear-indicator": {
|
|
122
120
|
"type": "boolean"
|
|
121
|
+
},
|
|
122
|
+
"dst-a11y__replace-anchor-with-link__search-platfor": {
|
|
123
|
+
"type": "boolean"
|
|
123
124
|
}
|
|
124
125
|
}
|
|
125
126
|
}
|