@atlaskit/user-picker 11.14.0 → 11.16.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 +14 -0
- package/dist/cjs/analytics.js +1 -1
- package/dist/cjs/components/SingleValue.js +8 -3
- package/dist/cjs/components/SingleValueContainer.js +4 -1
- package/dist/cjs/index.js +7 -0
- package/dist/es2019/analytics.js +1 -1
- package/dist/es2019/components/SingleValue.js +8 -3
- package/dist/es2019/components/SingleValueContainer.js +4 -1
- package/dist/es2019/index.js +1 -0
- package/dist/esm/analytics.js +1 -1
- package/dist/esm/components/SingleValue.js +8 -3
- package/dist/esm/components/SingleValueContainer.js +4 -1
- package/dist/esm/index.js +1 -0
- package/dist/types/components/SingleValue.d.ts +4 -2
- package/dist/types/index.d.ts +1 -0
- package/dist/types/types.d.ts +1 -0
- package/dist/types-ts4.5/components/SingleValue.d.ts +4 -2
- package/dist/types-ts4.5/index.d.ts +1 -0
- package/dist/types-ts4.5/types.d.ts +1 -0
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @atlaskit/user-picker
|
|
2
2
|
|
|
3
|
+
## 11.16.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`d94a169c0305b`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/d94a169c0305b) -
|
|
8
|
+
set avatarAppearanceShape for SingleValue and SingleValueContainer based on appType
|
|
9
|
+
|
|
10
|
+
## 11.15.0
|
|
11
|
+
|
|
12
|
+
### Minor Changes
|
|
13
|
+
|
|
14
|
+
- [`9b49b64b62885`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/9b49b64b62885) -
|
|
15
|
+
set avatarAppearanceShape for SingleValue and SingleValueContainer based on appType
|
|
16
|
+
|
|
3
17
|
## 11.14.0
|
|
4
18
|
|
|
5
19
|
### 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; } // eslint-disable-next-line @atlaskit/platform/prefer-crypto-random-uuid -- Use crypto.randomUUID instead
|
|
14
14
|
var packageName = "@atlaskit/user-picker";
|
|
15
|
-
var packageVersion = "
|
|
15
|
+
var packageVersion = "0.0.0-development";
|
|
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}$/;
|
|
@@ -12,6 +12,8 @@ var _runtime = require("@compiled/react/runtime");
|
|
|
12
12
|
var _select = require("@atlaskit/select");
|
|
13
13
|
var _SizeableAvatar = require("./SizeableAvatar");
|
|
14
14
|
var _utils = require("./utils");
|
|
15
|
+
var _avatar = require("@atlaskit/avatar");
|
|
16
|
+
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
15
17
|
var _verifiedTeamIcon = require("@atlaskit/people-teams-ui-public/verified-team-icon");
|
|
16
18
|
var _compiled = require("@atlaskit/primitives/compiled");
|
|
17
19
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
@@ -21,8 +23,10 @@ var styles = {
|
|
|
21
23
|
avatarItemText: "_syazi7uo _1reo15vq _1bto1l2s _o5721q9c"
|
|
22
24
|
};
|
|
23
25
|
var ElementAfter = function ElementAfter(props) {
|
|
24
|
-
var data = props.data.data
|
|
25
|
-
|
|
26
|
+
var data = props.data.data,
|
|
27
|
+
shouldShowVerifiedIcon = props.shouldShowVerifiedIcon;
|
|
28
|
+
var showIcon = shouldShowVerifiedIcon ? shouldShowVerifiedIcon(data) : (0, _utils.isTeam)(data) && data.verified;
|
|
29
|
+
if (showIcon) {
|
|
26
30
|
return /*#__PURE__*/React.createElement(_verifiedTeamIcon.VerifiedTeamIcon, null);
|
|
27
31
|
}
|
|
28
32
|
return null;
|
|
@@ -39,7 +43,8 @@ var SingleValue = exports.SingleValue = function SingleValue(props) {
|
|
|
39
43
|
}, /*#__PURE__*/React.createElement(_SizeableAvatar.SizeableAvatar, {
|
|
40
44
|
src: (0, _utils.getAvatarUrl)(data),
|
|
41
45
|
appearance: appearance,
|
|
42
|
-
type: (0, _utils.isTeam)(data) ? 'team' : 'person'
|
|
46
|
+
type: (0, _utils.isTeam)(data) ? 'team' : 'person',
|
|
47
|
+
avatarAppearanceShape: (0, _platformFeatureFlags.fg)('jira_ai_agent_avatar_user_picker_user_option') ? (0, _avatar.getAppearanceForAppType)(data.appType) : undefined
|
|
43
48
|
}), /*#__PURE__*/React.createElement(_compiled.Box, {
|
|
44
49
|
xcss: styles.avatarItem
|
|
45
50
|
}, /*#__PURE__*/React.createElement("div", {
|
|
@@ -20,6 +20,8 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
20
20
|
var _select = require("@atlaskit/select");
|
|
21
21
|
var _SizeableAvatar = require("./SizeableAvatar");
|
|
22
22
|
var _ValueContainerWrapper = _interopRequireDefault(require("./ValueContainerWrapper"));
|
|
23
|
+
var _avatar = require("@atlaskit/avatar");
|
|
24
|
+
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
23
25
|
var _excluded = ["children"];
|
|
24
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)); }
|
|
25
27
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
@@ -52,7 +54,8 @@ var SingleValueContainer = exports.SingleValueContainer = /*#__PURE__*/function
|
|
|
52
54
|
return /*#__PURE__*/_react.default.createElement(_SizeableAvatar.SizeableAvatar, {
|
|
53
55
|
appearance: appearance,
|
|
54
56
|
type: placeholderAvatar,
|
|
55
|
-
src: showUserAvatar(inputValue, value) ? value.data.avatarUrl : undefined
|
|
57
|
+
src: showUserAvatar(inputValue, value) ? value.data.avatarUrl : undefined,
|
|
58
|
+
avatarAppearanceShape: value && value.data && (0, _platformFeatureFlags.fg)('jira_ai_agent_avatar_user_picker_user_option') ? (0, _avatar.getAppearanceForAppType)(value.data.appType) : undefined
|
|
56
59
|
});
|
|
57
60
|
}
|
|
58
61
|
return null;
|
package/dist/cjs/index.js
CHANGED
|
@@ -33,6 +33,12 @@ Object.defineProperty(exports, "PopupUserPicker", {
|
|
|
33
33
|
return _PopupUserPicker.PopupUserPicker;
|
|
34
34
|
}
|
|
35
35
|
});
|
|
36
|
+
Object.defineProperty(exports, "SingleValue", {
|
|
37
|
+
enumerable: true,
|
|
38
|
+
get: function get() {
|
|
39
|
+
return _SingleValue.SingleValue;
|
|
40
|
+
}
|
|
41
|
+
});
|
|
36
42
|
Object.defineProperty(exports, "TeamType", {
|
|
37
43
|
enumerable: true,
|
|
38
44
|
get: function get() {
|
|
@@ -90,5 +96,6 @@ Object.defineProperty(exports, "isValidEmail", {
|
|
|
90
96
|
var _emailValidation = require("./components/emailValidation");
|
|
91
97
|
var _UserPicker = require("./components/UserPicker");
|
|
92
98
|
var _PopupUserPicker = require("./components/PopupUserPicker");
|
|
99
|
+
var _SingleValue = require("./components/SingleValue");
|
|
93
100
|
var _utils = require("./components/utils");
|
|
94
101
|
var _types = require("./types");
|
package/dist/es2019/analytics.js
CHANGED
|
@@ -3,7 +3,7 @@ import { createAndFireEvent } from '@atlaskit/analytics-next';
|
|
|
3
3
|
import { v4 as uuidv4 } from 'uuid';
|
|
4
4
|
import { isCustom, isExternalUser } from './components/utils';
|
|
5
5
|
const packageName = "@atlaskit/user-picker";
|
|
6
|
-
const packageVersion = "
|
|
6
|
+
const packageVersion = "0.0.0-development";
|
|
7
7
|
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}$/;
|
|
8
8
|
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}$/;
|
|
9
9
|
const UUID_REGEXP_NEW_AAID = /^[a-fA-F0-9]{24,24}$/;
|
|
@@ -5,6 +5,8 @@ import { ax, ix } from "@compiled/react/runtime";
|
|
|
5
5
|
import { components } from '@atlaskit/select';
|
|
6
6
|
import { SizeableAvatar } from './SizeableAvatar';
|
|
7
7
|
import { getAvatarUrl, isTeam } from './utils';
|
|
8
|
+
import { getAppearanceForAppType } from '@atlaskit/avatar';
|
|
9
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
8
10
|
import { VerifiedTeamIcon } from '@atlaskit/people-teams-ui-public/verified-team-icon';
|
|
9
11
|
import { Box, Flex, Inline } from '@atlaskit/primitives/compiled';
|
|
10
12
|
const styles = {
|
|
@@ -16,9 +18,11 @@ const ElementAfter = props => {
|
|
|
16
18
|
const {
|
|
17
19
|
data: {
|
|
18
20
|
data
|
|
19
|
-
}
|
|
21
|
+
},
|
|
22
|
+
shouldShowVerifiedIcon
|
|
20
23
|
} = props;
|
|
21
|
-
|
|
24
|
+
const showIcon = shouldShowVerifiedIcon ? shouldShowVerifiedIcon(data) : isTeam(data) && data.verified;
|
|
25
|
+
if (showIcon) {
|
|
22
26
|
return /*#__PURE__*/React.createElement(VerifiedTeamIcon, null);
|
|
23
27
|
}
|
|
24
28
|
return null;
|
|
@@ -40,7 +44,8 @@ export const SingleValue = props => {
|
|
|
40
44
|
}, /*#__PURE__*/React.createElement(SizeableAvatar, {
|
|
41
45
|
src: getAvatarUrl(data),
|
|
42
46
|
appearance: appearance,
|
|
43
|
-
type: isTeam(data) ? 'team' : 'person'
|
|
47
|
+
type: isTeam(data) ? 'team' : 'person',
|
|
48
|
+
avatarAppearanceShape: fg('jira_ai_agent_avatar_user_picker_user_option') ? getAppearanceForAppType(data.appType) : undefined
|
|
44
49
|
}), /*#__PURE__*/React.createElement(Box, {
|
|
45
50
|
xcss: styles.avatarItem
|
|
46
51
|
}, /*#__PURE__*/React.createElement("div", {
|
|
@@ -7,6 +7,8 @@ import React from 'react';
|
|
|
7
7
|
import { components } from '@atlaskit/select';
|
|
8
8
|
import { SizeableAvatar } from './SizeableAvatar';
|
|
9
9
|
import ValueContainerWrapper from './ValueContainerWrapper';
|
|
10
|
+
import { getAppearanceForAppType } from '@atlaskit/avatar';
|
|
11
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
10
12
|
const valueContainerStyles = {
|
|
11
13
|
root: "_yv0e5bpd _ca0q12x7 _n3td12x7 _19bvze3t _1reo15vq _18m91wug _1fjgglyw _c71l1osq _1suq1j28 _1ke8idpf"
|
|
12
14
|
};
|
|
@@ -32,7 +34,8 @@ export class SingleValueContainer extends React.Component {
|
|
|
32
34
|
return /*#__PURE__*/React.createElement(SizeableAvatar, {
|
|
33
35
|
appearance: appearance,
|
|
34
36
|
type: placeholderAvatar,
|
|
35
|
-
src: showUserAvatar(inputValue, value) ? value.data.avatarUrl : undefined
|
|
37
|
+
src: showUserAvatar(inputValue, value) ? value.data.avatarUrl : undefined,
|
|
38
|
+
avatarAppearanceShape: value && value.data && fg('jira_ai_agent_avatar_user_picker_user_option') ? getAppearanceForAppType(value.data.appType) : undefined
|
|
36
39
|
});
|
|
37
40
|
}
|
|
38
41
|
return null;
|
package/dist/es2019/index.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export { isValidEmail } from './components/emailValidation';
|
|
2
2
|
export { UserPicker as default } from './components/UserPicker';
|
|
3
3
|
export { PopupUserPicker } from './components/PopupUserPicker';
|
|
4
|
+
export { SingleValue } from './components/SingleValue';
|
|
4
5
|
export { isEmail, isExternalUser, isTeam, isUser, isGroup } from './components/utils';
|
|
5
6
|
export {
|
|
6
7
|
// Constants
|
package/dist/esm/analytics.js
CHANGED
|
@@ -6,7 +6,7 @@ import { createAndFireEvent } from '@atlaskit/analytics-next';
|
|
|
6
6
|
import { v4 as uuidv4 } from 'uuid';
|
|
7
7
|
import { isCustom, isExternalUser } from './components/utils';
|
|
8
8
|
var packageName = "@atlaskit/user-picker";
|
|
9
|
-
var packageVersion = "
|
|
9
|
+
var packageVersion = "0.0.0-development";
|
|
10
10
|
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}$/;
|
|
11
11
|
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}$/;
|
|
12
12
|
var UUID_REGEXP_NEW_AAID = /^[a-fA-F0-9]{24,24}$/;
|
|
@@ -5,6 +5,8 @@ import { ax, ix } from "@compiled/react/runtime";
|
|
|
5
5
|
import { components } from '@atlaskit/select';
|
|
6
6
|
import { SizeableAvatar } from './SizeableAvatar';
|
|
7
7
|
import { getAvatarUrl, isTeam } from './utils';
|
|
8
|
+
import { getAppearanceForAppType } from '@atlaskit/avatar';
|
|
9
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
8
10
|
import { VerifiedTeamIcon } from '@atlaskit/people-teams-ui-public/verified-team-icon';
|
|
9
11
|
import { Box, Flex, Inline } from '@atlaskit/primitives/compiled';
|
|
10
12
|
var styles = {
|
|
@@ -13,8 +15,10 @@ var styles = {
|
|
|
13
15
|
avatarItemText: "_syazi7uo _1reo15vq _1bto1l2s _o5721q9c"
|
|
14
16
|
};
|
|
15
17
|
var ElementAfter = function ElementAfter(props) {
|
|
16
|
-
var data = props.data.data
|
|
17
|
-
|
|
18
|
+
var data = props.data.data,
|
|
19
|
+
shouldShowVerifiedIcon = props.shouldShowVerifiedIcon;
|
|
20
|
+
var showIcon = shouldShowVerifiedIcon ? shouldShowVerifiedIcon(data) : isTeam(data) && data.verified;
|
|
21
|
+
if (showIcon) {
|
|
18
22
|
return /*#__PURE__*/React.createElement(VerifiedTeamIcon, null);
|
|
19
23
|
}
|
|
20
24
|
return null;
|
|
@@ -31,7 +35,8 @@ export var SingleValue = function SingleValue(props) {
|
|
|
31
35
|
}, /*#__PURE__*/React.createElement(SizeableAvatar, {
|
|
32
36
|
src: getAvatarUrl(data),
|
|
33
37
|
appearance: appearance,
|
|
34
|
-
type: isTeam(data) ? 'team' : 'person'
|
|
38
|
+
type: isTeam(data) ? 'team' : 'person',
|
|
39
|
+
avatarAppearanceShape: fg('jira_ai_agent_avatar_user_picker_user_option') ? getAppearanceForAppType(data.appType) : undefined
|
|
35
40
|
}), /*#__PURE__*/React.createElement(Box, {
|
|
36
41
|
xcss: styles.avatarItem
|
|
37
42
|
}, /*#__PURE__*/React.createElement("div", {
|
|
@@ -16,6 +16,8 @@ import React from 'react';
|
|
|
16
16
|
import { components } from '@atlaskit/select';
|
|
17
17
|
import { SizeableAvatar } from './SizeableAvatar';
|
|
18
18
|
import ValueContainerWrapper from './ValueContainerWrapper';
|
|
19
|
+
import { getAppearanceForAppType } from '@atlaskit/avatar';
|
|
20
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
19
21
|
var valueContainerStyles = {
|
|
20
22
|
root: "_yv0e5bpd _ca0q12x7 _n3td12x7 _19bvze3t _1reo15vq _18m91wug _1fjgglyw _c71l1osq _1suq1j28 _1ke8idpf"
|
|
21
23
|
};
|
|
@@ -45,7 +47,8 @@ export var SingleValueContainer = /*#__PURE__*/function (_React$Component) {
|
|
|
45
47
|
return /*#__PURE__*/React.createElement(SizeableAvatar, {
|
|
46
48
|
appearance: appearance,
|
|
47
49
|
type: placeholderAvatar,
|
|
48
|
-
src: showUserAvatar(inputValue, value) ? value.data.avatarUrl : undefined
|
|
50
|
+
src: showUserAvatar(inputValue, value) ? value.data.avatarUrl : undefined,
|
|
51
|
+
avatarAppearanceShape: value && value.data && fg('jira_ai_agent_avatar_user_picker_user_option') ? getAppearanceForAppType(value.data.appType) : undefined
|
|
49
52
|
});
|
|
50
53
|
}
|
|
51
54
|
return null;
|
package/dist/esm/index.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export { isValidEmail } from './components/emailValidation';
|
|
2
2
|
export { UserPicker as default } from './components/UserPicker';
|
|
3
3
|
export { PopupUserPicker } from './components/PopupUserPicker';
|
|
4
|
+
export { SingleValue } from './components/SingleValue';
|
|
4
5
|
export { isEmail, isExternalUser, isTeam, isUser, isGroup } from './components/utils';
|
|
5
6
|
export {
|
|
6
7
|
// Constants
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
import { type Option } from '../types';
|
|
1
|
+
import { type Option, type OptionData } from '../types';
|
|
2
2
|
import { type SingleValueProps } from '@atlaskit/select';
|
|
3
|
-
export type Props = SingleValueProps<Option
|
|
3
|
+
export type Props = SingleValueProps<Option> & {
|
|
4
|
+
shouldShowVerifiedIcon?: (data: OptionData) => boolean;
|
|
5
|
+
};
|
|
4
6
|
export declare const SingleValue: (props: Props) => JSX.Element | null;
|
package/dist/types/index.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ export { isValidEmail } from './components/emailValidation';
|
|
|
2
2
|
export type { EmailValidationResponse, EmailValidator } from './components/emailValidation';
|
|
3
3
|
export { UserPicker as default } from './components/UserPicker';
|
|
4
4
|
export { PopupUserPicker } from './components/PopupUserPicker';
|
|
5
|
+
export { SingleValue } from './components/SingleValue';
|
|
5
6
|
export { isEmail, isExternalUser, isTeam, isUser, isGroup } from './components/utils';
|
|
6
7
|
export { CustomType, EmailType, GroupType, TeamType, UserType, ExternalUserType, } from './types';
|
|
7
8
|
export type { ActionTypes, Appearance, AtlasKitSelectChange, AtlaskitSelectValue, DefaultValue, InputActionTypes, LozengeProps, OnChange, OnInputChange, OnOption, OnPicker, Option, OptionData, OptionIdentifier, PopupUserPickerProps, Promisable, Target, UserPickerProps, UserPickerState, Value, Custom, Email, Group, GroupHighlight, HighlightRange, LoadOptions, Team, TeamMember, TeamHighlight, User, UserHighlight, ExternalUser, UserSource, } from './types';
|
package/dist/types/types.d.ts
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
import { type Option } from '../types';
|
|
1
|
+
import { type Option, type OptionData } from '../types';
|
|
2
2
|
import { type SingleValueProps } from '@atlaskit/select';
|
|
3
|
-
export type Props = SingleValueProps<Option
|
|
3
|
+
export type Props = SingleValueProps<Option> & {
|
|
4
|
+
shouldShowVerifiedIcon?: (data: OptionData) => boolean;
|
|
5
|
+
};
|
|
4
6
|
export declare const SingleValue: (props: Props) => JSX.Element | null;
|
|
@@ -2,6 +2,7 @@ export { isValidEmail } from './components/emailValidation';
|
|
|
2
2
|
export type { EmailValidationResponse, EmailValidator } from './components/emailValidation';
|
|
3
3
|
export { UserPicker as default } from './components/UserPicker';
|
|
4
4
|
export { PopupUserPicker } from './components/PopupUserPicker';
|
|
5
|
+
export { SingleValue } from './components/SingleValue';
|
|
5
6
|
export { isEmail, isExternalUser, isTeam, isUser, isGroup } from './components/utils';
|
|
6
7
|
export { CustomType, EmailType, GroupType, TeamType, UserType, ExternalUserType, } from './types';
|
|
7
8
|
export type { ActionTypes, Appearance, AtlasKitSelectChange, AtlaskitSelectValue, DefaultValue, InputActionTypes, LozengeProps, OnChange, OnInputChange, OnOption, OnPicker, Option, OptionData, OptionIdentifier, PopupUserPickerProps, Promisable, Target, UserPickerProps, UserPickerState, Value, Custom, Email, Group, GroupHighlight, HighlightRange, LoadOptions, Team, TeamMember, TeamHighlight, User, UserHighlight, ExternalUser, UserSource, } from './types';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/user-picker",
|
|
3
|
-
"version": "11.
|
|
3
|
+
"version": "11.16.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,13 +51,13 @@
|
|
|
51
51
|
"@atlaskit/people-teams-ui-public": "^3.7.0",
|
|
52
52
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
53
53
|
"@atlaskit/popper": "^7.1.0",
|
|
54
|
-
"@atlaskit/primitives": "^16.
|
|
54
|
+
"@atlaskit/primitives": "^16.2.0",
|
|
55
55
|
"@atlaskit/select": "^21.4.0",
|
|
56
56
|
"@atlaskit/spinner": "^19.0.0",
|
|
57
57
|
"@atlaskit/teams-avatar": "^2.4.0",
|
|
58
58
|
"@atlaskit/theme": "^21.0.0",
|
|
59
|
-
"@atlaskit/tokens": "^8.
|
|
60
|
-
"@atlaskit/tooltip": "^20.
|
|
59
|
+
"@atlaskit/tokens": "^8.1.0",
|
|
60
|
+
"@atlaskit/tooltip": "^20.10.0",
|
|
61
61
|
"@atlaskit/ufo": "^0.4.0",
|
|
62
62
|
"@babel/runtime": "^7.0.0",
|
|
63
63
|
"@compiled/react": "^0.18.6",
|