@atlaskit/user-picker 13.8.8 → 13.10.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 +44 -0
- package/dist/cjs/analytics.js +7 -7
- package/dist/cjs/components/AvatarItemOption.js +5 -5
- package/dist/cjs/components/BaseUserPicker.js +7 -7
- package/dist/cjs/components/ClearIndicator.js +2 -3
- package/dist/cjs/components/Control.js +2 -2
- package/dist/cjs/components/ExternalUserOption/SourcesTooltipContent.js +5 -4
- package/dist/cjs/components/ExternalUserOption/main.js +7 -7
- package/dist/cjs/components/GroupOption/main.js +2 -2
- package/dist/cjs/components/Input.js +2 -3
- package/dist/cjs/components/Menu.js +2 -2
- package/dist/cjs/components/MultiValue.js +15 -16
- package/dist/cjs/components/MultiValueContainer.js +4 -6
- package/dist/cjs/components/Option.js +11 -6
- package/dist/cjs/components/PopupUserPicker.js +6 -6
- package/dist/cjs/components/SingleValue.js +8 -8
- package/dist/cjs/components/SingleValueContainer.js +5 -6
- package/dist/cjs/components/SizeableAvatar.js +1 -1
- package/dist/cjs/components/TeamOption/main.js +2 -2
- package/dist/cjs/components/UserOption.js +5 -5
- package/dist/cjs/components/UserPicker.js +10 -11
- package/dist/cjs/components/styles.js +11 -11
- package/dist/cjs/components/utils.js +2 -2
- package/dist/cjs/util/group-options-by-type/index.js +2 -2
- package/dist/cjs/util/ufoExperiences.js +10 -8
- package/dist/es2019/analytics.js +4 -4
- package/dist/es2019/components/AvatarItemOption.js +3 -3
- package/dist/es2019/components/BaseUserPicker.js +3 -3
- package/dist/es2019/components/ClearIndicator.js +1 -3
- package/dist/es2019/components/Control.js +1 -1
- package/dist/es2019/components/ExternalUserOption/SourcesTooltipContent.js +3 -2
- package/dist/es2019/components/ExternalUserOption/main.js +3 -3
- package/dist/es2019/components/GroupOption/main.js +1 -1
- package/dist/es2019/components/Input.js +1 -2
- package/dist/es2019/components/Menu.js +1 -1
- package/dist/es2019/components/MultiValue.js +7 -6
- package/dist/es2019/components/MultiValueContainer.js +2 -5
- package/dist/es2019/components/Option.js +11 -5
- package/dist/es2019/components/PopupControl.js +0 -1
- package/dist/es2019/components/PopupUserPicker.js +3 -3
- package/dist/es2019/components/SingleValue.js +4 -5
- package/dist/es2019/components/SingleValueContainer.js +2 -4
- package/dist/es2019/components/SizeableAvatar.js +1 -1
- package/dist/es2019/components/TeamOption/main.js +1 -1
- package/dist/es2019/components/UserOption.js +2 -2
- package/dist/es2019/components/UserPicker.js +5 -4
- package/dist/es2019/components/styles.js +2 -2
- package/dist/es2019/components/utils.js +1 -1
- package/dist/es2019/util/group-options-by-type/index.js +1 -1
- package/dist/es2019/util/ufoExperiences.js +3 -1
- package/dist/esm/analytics.js +4 -4
- package/dist/esm/components/AvatarItemOption.js +3 -3
- package/dist/esm/components/BaseUserPicker.js +3 -3
- package/dist/esm/components/ClearIndicator.js +1 -2
- package/dist/esm/components/Control.js +1 -1
- package/dist/esm/components/ExternalUserOption/SourcesTooltipContent.js +3 -2
- package/dist/esm/components/ExternalUserOption/main.js +3 -3
- package/dist/esm/components/GroupOption/main.js +1 -1
- package/dist/esm/components/Input.js +1 -2
- package/dist/esm/components/Menu.js +1 -1
- package/dist/esm/components/MultiValue.js +7 -6
- package/dist/esm/components/MultiValueContainer.js +2 -4
- package/dist/esm/components/Option.js +10 -5
- package/dist/esm/components/PopupUserPicker.js +3 -3
- package/dist/esm/components/SingleValue.js +4 -4
- package/dist/esm/components/SingleValueContainer.js +2 -3
- package/dist/esm/components/SizeableAvatar.js +1 -1
- package/dist/esm/components/TeamOption/main.js +1 -1
- package/dist/esm/components/UserOption.js +2 -2
- package/dist/esm/components/UserPicker.js +5 -4
- package/dist/esm/components/styles.js +2 -2
- package/dist/esm/components/utils.js +1 -1
- package/dist/esm/util/group-options-by-type/index.js +1 -1
- package/dist/esm/util/ufoExperiences.js +3 -1
- package/dist/types/analytics.d.ts +3 -1
- package/dist/types/components/AvatarOrIcon.d.ts +1 -1
- package/dist/types/components/BaseUserPicker.d.ts +3 -2
- package/dist/types/components/ClearIndicator.d.ts +1 -1
- package/dist/types/components/Control.d.ts +1 -5
- package/dist/types/components/ExternalUserOption/index.d.ts +1 -1
- package/dist/types/components/ExternalUserOption/main.d.ts +1 -1
- package/dist/types/components/Input.d.ts +1 -1
- package/dist/types/components/MultiValue.d.ts +2 -2
- package/dist/types/components/MultiValueContainer.d.ts +1 -5
- package/dist/types/components/Option.d.ts +4 -3
- package/dist/types/components/PopupControl.d.ts +1 -1
- package/dist/types/components/PopupUserPicker.d.ts +5 -3
- package/dist/types/components/SingleValue.d.ts +1 -1
- package/dist/types/components/SingleValueContainer.d.ts +1 -1
- package/dist/types/components/SizeableAvatar.d.ts +1 -1
- package/dist/types/components/UserPicker.d.ts +3 -2
- package/dist/types/components/components.d.ts +12 -2
- package/dist/types/components/popup.d.ts +1 -1
- package/dist/types/components/styles.d.ts +1 -1
- package/dist/types/types.d.ts +4 -3
- package/dist/types/util/ufoExperiences.d.ts +1 -1
- package/docs/0-intro.tsx +2 -2
- package/docs/1-smart-user-picker.tsx +2 -2
- package/package.json +20 -17
- package/user-picker.docs.tsx +0 -55
|
@@ -7,20 +7,21 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
|
7
7
|
import React from 'react';
|
|
8
8
|
// eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
|
|
9
9
|
import { Box, Inline, xcss } from '@atlaskit/primitives';
|
|
10
|
-
import { components } from '@atlaskit/select';
|
|
10
|
+
import { components } from '@atlaskit/select/react-select';
|
|
11
11
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
12
12
|
import { css, jsx } from '@emotion/react';
|
|
13
|
-
import Avatar from '@atlaskit/avatar';
|
|
14
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
15
|
-
import
|
|
13
|
+
import Avatar from '@atlaskit/avatar/avatar';
|
|
14
|
+
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
15
|
+
import AvatarTag from '@atlaskit/tag/avatar-tag';
|
|
16
|
+
import { default as Tag } from '@atlaskit/tag/removable-tag';
|
|
16
17
|
import TeamAvatar from '@atlaskit/teams-avatar/teams-avatar';
|
|
17
18
|
import { AddOptionAvatar } from './AddOptionAvatar';
|
|
18
19
|
import { AvatarOrIcon } from './AvatarOrIcon';
|
|
19
20
|
import { SizeableAvatar } from './SizeableAvatar';
|
|
20
21
|
import { getAvatarUrl, isEmail, isGroup, isTeam } from './utils';
|
|
21
|
-
import Lozenge from '@atlaskit/lozenge';
|
|
22
|
+
import Lozenge from '@atlaskit/lozenge/lozenge';
|
|
22
23
|
import PeopleIcon from '@atlaskit/icon/core/people-group';
|
|
23
|
-
import { VerifiedTeamIcon } from '@atlaskit/people-teams-ui-public/verified-team-icon';
|
|
24
|
+
import { VerifiedTeamIcon } from '@atlaskit/people-teams-ui-public/verified-team-icon/main';
|
|
24
25
|
import { FormattedMessage } from 'react-intl';
|
|
25
26
|
import { messages } from './i18n';
|
|
26
27
|
export const scrollToValue = (valueContainer, control) => {
|
|
@@ -3,10 +3,10 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
3
3
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
4
4
|
import "./MultiValueContainer.compiled.css";
|
|
5
5
|
import { ax, ix } from "@compiled/react/runtime";
|
|
6
|
-
import { components } from '@atlaskit/select';
|
|
6
|
+
import { components } from '@atlaskit/select/react-select';
|
|
7
7
|
import React, { Fragment } from 'react';
|
|
8
8
|
import { FormattedMessage } from 'react-intl';
|
|
9
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
9
|
+
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
10
10
|
import { messages } from './i18n';
|
|
11
11
|
import { isChildInput } from './utils';
|
|
12
12
|
import ValueContainerWrapper from './ValueContainerWrapper';
|
|
@@ -59,7 +59,6 @@ export class MultiValueContainer extends React.PureComponent {
|
|
|
59
59
|
});
|
|
60
60
|
_defineProperty(this, "renderChildren", () => {
|
|
61
61
|
const {
|
|
62
|
-
//@ts-ignore react-select unsupported props
|
|
63
62
|
selectProps: {
|
|
64
63
|
addMoreMessage,
|
|
65
64
|
isDisabled
|
|
@@ -82,7 +81,6 @@ export class MultiValueContainer extends React.PureComponent {
|
|
|
82
81
|
}
|
|
83
82
|
return this.addPlaceholder(addMoreMessage);
|
|
84
83
|
});
|
|
85
|
-
//@ts-ignore react-select unsupported props
|
|
86
84
|
_defineProperty(this, "onValueContainerClick", this.props.selectProps.onValueContainerClick);
|
|
87
85
|
this.state = {
|
|
88
86
|
valueSize: 0,
|
|
@@ -97,7 +95,6 @@ export class MultiValueContainer extends React.PureComponent {
|
|
|
97
95
|
previousValueSize,
|
|
98
96
|
valueSize
|
|
99
97
|
} = this.state;
|
|
100
|
-
//@ts-ignore react-select unsupported props
|
|
101
98
|
const {
|
|
102
99
|
isFocused
|
|
103
100
|
} = this.props.selectProps;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Box } from '@atlaskit/primitives/compiled';
|
|
2
|
-
import { components } from '@atlaskit/select';
|
|
3
|
-
import Tooltip from '@atlaskit/tooltip';
|
|
2
|
+
import { components } from '@atlaskit/select/react-select';
|
|
3
|
+
import Tooltip from '@atlaskit/tooltip/Tooltip';
|
|
4
4
|
import React from 'react';
|
|
5
5
|
import { UserOption } from './UserOption';
|
|
6
6
|
import AsyncExternalOption from './ExternalUserOption';
|
|
@@ -86,6 +86,12 @@ const dataOptionWithTooltip = props => {
|
|
|
86
86
|
}
|
|
87
87
|
return dataOption(props);
|
|
88
88
|
};
|
|
89
|
-
export const Option =
|
|
90
|
-
|
|
91
|
-
|
|
89
|
+
export const Option = ({
|
|
90
|
+
renderOptionContent,
|
|
91
|
+
...props
|
|
92
|
+
}) => {
|
|
93
|
+
const defaultContent = /*#__PURE__*/React.createElement(React.Suspense, {
|
|
94
|
+
fallback: defaultOption(props)
|
|
95
|
+
}, dataOptionWithTooltip(props));
|
|
96
|
+
return /*#__PURE__*/React.createElement(components.Option, props, renderOptionContent ? renderOptionContent(defaultContent) : defaultContent);
|
|
97
|
+
};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
3
|
-
import
|
|
4
|
-
import { PopupSelect } from '@atlaskit/select';
|
|
3
|
+
import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
|
|
4
|
+
import { PopupSelect } from '@atlaskit/select/popup-select';
|
|
5
5
|
import React from 'react';
|
|
6
6
|
import { getPopupComponents } from './components';
|
|
7
7
|
import { getPopupStyles } from './styles';
|
|
8
8
|
import { getPopupProps } from './popup';
|
|
9
9
|
import { BaseUserPickerWithoutAnalytics } from './BaseUserPicker';
|
|
10
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
10
|
+
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
11
11
|
export class PopupUserPickerWithoutAnalytics extends React.Component {
|
|
12
12
|
constructor(...args) {
|
|
13
13
|
super(...args);
|
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
import "./SingleValue.compiled.css";
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
5
|
-
import { components } from '@atlaskit/select';
|
|
6
|
-
import Lozenge from '@atlaskit/lozenge';
|
|
5
|
+
import { components } from '@atlaskit/select/react-select';
|
|
6
|
+
import Lozenge from '@atlaskit/lozenge/lozenge';
|
|
7
7
|
import { AvatarOrIcon } from './AvatarOrIcon';
|
|
8
8
|
import { SizeableAvatar } from './SizeableAvatar';
|
|
9
9
|
import { getAvatarUrl, isTeam, isGroup } from './utils';
|
|
10
|
-
import
|
|
11
|
-
import { VerifiedTeamIcon } from '@atlaskit/people-teams-ui-public/verified-team-icon';
|
|
10
|
+
import getAppearanceForAppType from '@atlaskit/avatar/get-appearance';
|
|
11
|
+
import { VerifiedTeamIcon } from '@atlaskit/people-teams-ui-public/verified-team-icon/main';
|
|
12
12
|
import { FormattedMessage } from 'react-intl';
|
|
13
13
|
import { Box, Flex, Inline } from '@atlaskit/primitives/compiled';
|
|
14
14
|
import { messages } from './i18n';
|
|
@@ -39,7 +39,6 @@ export const SingleValue = props => {
|
|
|
39
39
|
label,
|
|
40
40
|
data
|
|
41
41
|
},
|
|
42
|
-
//@ts-ignore react-select unsupported props
|
|
43
42
|
selectProps: {
|
|
44
43
|
appearance,
|
|
45
44
|
isFocused
|
|
@@ -4,11 +4,11 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
|
4
4
|
import "./SingleValueContainer.compiled.css";
|
|
5
5
|
import { ax, ix } from "@compiled/react/runtime";
|
|
6
6
|
import React from 'react';
|
|
7
|
-
import { components } from '@atlaskit/select';
|
|
7
|
+
import { components } from '@atlaskit/select/react-select';
|
|
8
8
|
import { AvatarOrIcon } from './AvatarOrIcon';
|
|
9
9
|
import { SizeableAvatar } from './SizeableAvatar';
|
|
10
10
|
import ValueContainerWrapper from './ValueContainerWrapper';
|
|
11
|
-
import
|
|
11
|
+
import getAppearanceForAppType from '@atlaskit/avatar/get-appearance';
|
|
12
12
|
const valueContainerStyles = {
|
|
13
13
|
root: "_yv0e5bpd _ca0q12x7 _n3td12x7 _19bvze3t _1reo15vq _18m91wug _1fjgglyw _c71l1osq _1suq1j28 _1ke8idpf"
|
|
14
14
|
};
|
|
@@ -21,7 +21,6 @@ export class SingleValueContainer extends React.Component {
|
|
|
21
21
|
_defineProperty(this, "renderAvatar", () => {
|
|
22
22
|
const {
|
|
23
23
|
hasValue,
|
|
24
|
-
//@ts-ignore react-select unsupported props
|
|
25
24
|
selectProps: {
|
|
26
25
|
appearance,
|
|
27
26
|
isFocused,
|
|
@@ -52,7 +51,6 @@ export class SingleValueContainer extends React.Component {
|
|
|
52
51
|
}
|
|
53
52
|
return null;
|
|
54
53
|
});
|
|
55
|
-
//@ts-ignore react-select unsupported props
|
|
56
54
|
_defineProperty(this, "onValueContainerClick", this.props.selectProps.onValueContainerClick);
|
|
57
55
|
_defineProperty(this, "Wrapper", ({
|
|
58
56
|
children
|
|
@@ -6,7 +6,7 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
8
|
import { Inline } from '@atlaskit/primitives/compiled';
|
|
9
|
-
import { VerifiedTeamIcon } from '@atlaskit/people-teams-ui-public/verified-team-icon';
|
|
9
|
+
import { VerifiedTeamIcon } from '@atlaskit/people-teams-ui-public/verified-team-icon/main';
|
|
10
10
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
11
11
|
import { jsx } from '@emotion/react';
|
|
12
12
|
import React from 'react';
|
|
@@ -3,7 +3,7 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
|
3
3
|
* @jsxRuntime classic
|
|
4
4
|
* @jsx jsx
|
|
5
5
|
*/
|
|
6
|
-
import
|
|
6
|
+
import getAppearanceForAppType from '@atlaskit/avatar/get-appearance';
|
|
7
7
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports -- Ignored via go/DSP-18766
|
|
8
8
|
import { jsx } from '@emotion/react';
|
|
9
9
|
import React from 'react';
|
|
@@ -12,7 +12,7 @@ import { HighlightText } from './HighlightText';
|
|
|
12
12
|
import { AvatarOrIcon } from './AvatarOrIcon';
|
|
13
13
|
import { SizeableAvatar } from './SizeableAvatar';
|
|
14
14
|
import { hasValue } from './utils';
|
|
15
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
15
|
+
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
16
16
|
export class UserOption extends React.PureComponent {
|
|
17
17
|
constructor(...args) {
|
|
18
18
|
super(...args);
|
|
@@ -2,9 +2,10 @@
|
|
|
2
2
|
import _extends from "@babel/runtime/helpers/extends";
|
|
3
3
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
4
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
5
|
-
import
|
|
6
|
-
import Select
|
|
7
|
-
import
|
|
5
|
+
import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
|
|
6
|
+
import Select from '@atlaskit/select/default';
|
|
7
|
+
import CreatableSelect from '@atlaskit/select/creatable-select';
|
|
8
|
+
import { UFOExperienceState } from '@atlaskit/ufo/experience-state';
|
|
8
9
|
import React from 'react';
|
|
9
10
|
import { BaseUserPickerWithoutAnalytics } from './BaseUserPicker';
|
|
10
11
|
import { getStyles } from './styles';
|
|
@@ -16,7 +17,7 @@ import { ExusUserSourceProvider } from '../clients/UserSourceProvider';
|
|
|
16
17
|
import { userPickerRenderedUfoExperience as experience, UfoErrorBoundary } from '../util/ufoExperiences';
|
|
17
18
|
// eslint-disable-next-line @atlaskit/platform/prefer-crypto-random-uuid -- Use crypto.randomUUID instead
|
|
18
19
|
import { v4 as uuidv4 } from 'uuid';
|
|
19
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
20
|
+
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
20
21
|
export class UserPickerWithoutAnalytics extends React.Component {
|
|
21
22
|
constructor(props) {
|
|
22
23
|
super(props);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
2
|
-
import { mergeStyles } from '@atlaskit/select';
|
|
1
|
+
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
2
|
+
import { mergeStyles } from '@atlaskit/select/react-select';
|
|
3
3
|
import memoizeOne from 'memoize-one';
|
|
4
4
|
export const BORDER_PADDING = "var(--ds-space-075, 6px)";
|
|
5
5
|
export const AVATAR_PADDING = 6;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import memoizeOne from 'memoize-one';
|
|
2
2
|
import { CustomType, EmailType, TeamType, GroupType, UserType, ExternalUserType } from '../types';
|
|
3
|
-
import { PopupSelect } from '@atlaskit/select';
|
|
3
|
+
import { PopupSelect } from '@atlaskit/select/popup-select';
|
|
4
4
|
export const isExternalUser = option => option.type === ExternalUserType || Boolean(option.isExternal);
|
|
5
5
|
export const isUser = option => option.type === undefined || option.type === UserType;
|
|
6
6
|
export const isTeam = option => (option === null || option === void 0 ? void 0 : option.type) === TeamType;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
2
|
+
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
3
3
|
import { FormattedMessage } from 'react-intl';
|
|
4
4
|
import memoizeOne from 'memoize-one';
|
|
5
5
|
import { messages } from '../../components/i18n';
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { ExperiencePerformanceTypes, ExperienceTypes
|
|
2
|
+
import { ExperiencePerformanceTypes, ExperienceTypes } from '@atlaskit/ufo/experience-types';
|
|
3
|
+
import { ConcurrentExperience } from '@atlaskit/ufo/concurrent-experience';
|
|
4
|
+
import { UFOExperienceState } from '@atlaskit/ufo/experience-state';
|
|
3
5
|
export const userPickerRenderedUfoExperience = new ConcurrentExperience('user-picker-rendered', {
|
|
4
6
|
platform: {
|
|
5
7
|
component: 'user-picker'
|
package/dist/esm/analytics.js
CHANGED
|
@@ -2,14 +2,14 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
|
2
2
|
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; }
|
|
3
3
|
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) { _defineProperty(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; }
|
|
4
4
|
// eslint-disable-next-line @typescript-eslint/consistent-type-imports
|
|
5
|
-
import
|
|
6
|
-
import FeatureGates from '@atlaskit/feature-gate-js-client';
|
|
7
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
5
|
+
import createAndFireEvent from '@atlaskit/analytics-next/createAndFireEvents';
|
|
6
|
+
import FeatureGates from '@atlaskit/feature-gate-js-client/feature-gates';
|
|
7
|
+
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
8
8
|
// eslint-disable-next-line @atlaskit/platform/prefer-crypto-random-uuid -- Use crypto.randomUUID instead
|
|
9
9
|
import { v4 as uuidv4 } from 'uuid';
|
|
10
10
|
import { isCustom, isExternalUser } from './components/utils';
|
|
11
11
|
var packageName = "@atlaskit/user-picker";
|
|
12
|
-
var packageVersion = "13.
|
|
12
|
+
var packageVersion = "13.9.0";
|
|
13
13
|
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}$/;
|
|
14
14
|
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}$/;
|
|
15
15
|
var UUID_REGEXP_NEW_AAID = /^[a-fA-F0-9]{24,24}$/;
|
|
@@ -8,10 +8,10 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
8
8
|
import React from 'react';
|
|
9
9
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports
|
|
10
10
|
import { css, jsx } from '@emotion/react';
|
|
11
|
-
import Lozenge from '@atlaskit/lozenge';
|
|
12
|
-
import Tag from '@atlaskit/tag';
|
|
11
|
+
import Lozenge from '@atlaskit/lozenge/lozenge';
|
|
12
|
+
import Tag from '@atlaskit/tag/removable-tag';
|
|
13
13
|
import { isLozengeText } from './utils';
|
|
14
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
14
|
+
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
15
15
|
var AsyncTooltip = /*#__PURE__*/React.lazy(function () {
|
|
16
16
|
return import( /* webpackChunkName: "@atlaskit-internal_@atlaskit/tooltip" */'@atlaskit/tooltip').then(function (module) {
|
|
17
17
|
return {
|
|
@@ -14,9 +14,9 @@ function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r)
|
|
|
14
14
|
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
15
15
|
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
16
16
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
17
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
18
|
-
import
|
|
19
|
-
import { UFOExperienceState } from '@atlaskit/ufo';
|
|
17
|
+
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
18
|
+
import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
|
|
19
|
+
import { UFOExperienceState } from '@atlaskit/ufo/experience-state';
|
|
20
20
|
import debounce from 'lodash/debounce';
|
|
21
21
|
import React from 'react';
|
|
22
22
|
import { FormattedMessage } from 'react-intl';
|
|
@@ -13,7 +13,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
13
13
|
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
14
14
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
15
15
|
import React from 'react';
|
|
16
|
-
import { components } from '@atlaskit/select';
|
|
16
|
+
import { components } from '@atlaskit/select/react-select';
|
|
17
17
|
var AsyncTooltip = /*#__PURE__*/React.lazy(function () {
|
|
18
18
|
return import( /* webpackChunkName: "@atlaskit-internal_@atlaskit/tooltip" */'@atlaskit/tooltip').then(function (module) {
|
|
19
19
|
return {
|
|
@@ -41,7 +41,6 @@ export var ClearIndicator = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
41
41
|
clearValue = _this$props.clearValue,
|
|
42
42
|
selectProps = _this$props.selectProps;
|
|
43
43
|
clearValue();
|
|
44
|
-
//@ts-ignore react-select unsupported props
|
|
45
44
|
if (selectProps && !selectProps.isFocused) {
|
|
46
45
|
event.stopPropagation();
|
|
47
46
|
}
|
|
@@ -3,7 +3,7 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
3
3
|
import "./Control.compiled.css";
|
|
4
4
|
import * as React from 'react';
|
|
5
5
|
import { ax, ix } from "@compiled/react/runtime";
|
|
6
|
-
import { components } from '@atlaskit/select';
|
|
6
|
+
import { components } from '@atlaskit/select/react-select';
|
|
7
7
|
import { cx } from '@compiled/react';
|
|
8
8
|
var controlStyles = {
|
|
9
9
|
invalid: "_1h6d1bqt _4cvx1bqt",
|
|
@@ -2,13 +2,14 @@
|
|
|
2
2
|
import { Box, xcss } from '@atlaskit/primitives';
|
|
3
3
|
import React from 'react';
|
|
4
4
|
import { FormattedMessage } from 'react-intl';
|
|
5
|
-
import { AtlassianIcon
|
|
5
|
+
import { AtlassianIcon } from '@atlaskit/logo/atlassian-icon';
|
|
6
|
+
import { ConfluenceIcon, JiraIcon } from '@atlaskit/logo';
|
|
6
7
|
import Spinner from '@atlaskit/spinner/spinner';
|
|
7
8
|
import { SlackIcon } from '../assets/slack';
|
|
8
9
|
import { GoogleIcon } from '../assets/google';
|
|
9
10
|
import { MicrosoftIcon } from '../assets/microsoft';
|
|
10
11
|
import { messages } from '../i18n';
|
|
11
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
12
|
+
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
12
13
|
var sourcesTooltipContainer = xcss({
|
|
13
14
|
paddingBottom: 'space.050',
|
|
14
15
|
paddingRight: 'space.050'
|
|
@@ -14,8 +14,8 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
|
|
|
14
14
|
import React from 'react';
|
|
15
15
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
16
16
|
import { css, jsx } from '@emotion/react';
|
|
17
|
-
import Tooltip from '@atlaskit/tooltip';
|
|
18
|
-
import
|
|
17
|
+
import Tooltip from '@atlaskit/tooltip/Tooltip';
|
|
18
|
+
import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
|
|
19
19
|
import { createAndFireEventInElementsChannel, userInfoEvent } from '../../analytics';
|
|
20
20
|
import { textWrapper } from '../AvatarItemOption';
|
|
21
21
|
import { AvatarOrIcon } from '../AvatarOrIcon';
|
|
@@ -24,7 +24,7 @@ import { ExternalUserSourcesContainer } from '../ExternalUserSourcesContainer';
|
|
|
24
24
|
import InfoIcon from './InfoIcon';
|
|
25
25
|
import { ExternalAvatarItemOption } from './ExternalAvatarItemOption';
|
|
26
26
|
import { SourcesTooltipContent } from './SourcesTooltipContent';
|
|
27
|
-
import
|
|
27
|
+
import getAppearanceForAppType from '@atlaskit/avatar/get-appearance';
|
|
28
28
|
|
|
29
29
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
30
30
|
export var imageContainer = css({
|
|
@@ -16,7 +16,7 @@ import { FormattedMessage } from 'react-intl';
|
|
|
16
16
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports
|
|
17
17
|
import { css, jsx } from '@emotion/react';
|
|
18
18
|
import PeopleIcon from '@atlaskit/icon/core/people-group';
|
|
19
|
-
import { VerifiedTeamIcon } from '@atlaskit/people-teams-ui-public/verified-team-icon';
|
|
19
|
+
import { VerifiedTeamIcon } from '@atlaskit/people-teams-ui-public/verified-team-icon/main';
|
|
20
20
|
import { AvatarItemOption, textWrapper } from '../AvatarItemOption';
|
|
21
21
|
import { messages } from '../i18n';
|
|
22
22
|
import { HighlightText } from '../HighlightText';
|
|
@@ -11,7 +11,7 @@ import { ax, ix } from "@compiled/react/runtime";
|
|
|
11
11
|
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
12
12
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
13
13
|
import React from 'react';
|
|
14
|
-
import { components } from '@atlaskit/select';
|
|
14
|
+
import { components } from '@atlaskit/select/react-select';
|
|
15
15
|
var inputStyles = {
|
|
16
16
|
root: "_5ce61rpy _1ir3kb7n _h5gq1rpy"
|
|
17
17
|
};
|
|
@@ -30,7 +30,6 @@ export var Input = /*#__PURE__*/function (_React$Component) {
|
|
|
30
30
|
if (e.key === 'Enter') {
|
|
31
31
|
e.preventDefault();
|
|
32
32
|
}
|
|
33
|
-
//@ts-ignore react-select unsupported props
|
|
34
33
|
if ((_this$props$selectPro = _this.props.selectProps) !== null && _this$props$selectPro !== void 0 && _this$props$selectPro.disableInput) {
|
|
35
34
|
e.preventDefault();
|
|
36
35
|
}
|
|
@@ -10,7 +10,7 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
|
|
|
10
10
|
* @jsx jsx
|
|
11
11
|
*/
|
|
12
12
|
import React from 'react';
|
|
13
|
-
import { components } from '@atlaskit/select';
|
|
13
|
+
import { components } from '@atlaskit/select/react-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
|
var getFooterStyle = function getFooterStyle() {
|
|
@@ -16,20 +16,21 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
|
|
|
16
16
|
import React from 'react';
|
|
17
17
|
// eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
|
|
18
18
|
import { Box, Inline, xcss } from '@atlaskit/primitives';
|
|
19
|
-
import { components } from '@atlaskit/select';
|
|
19
|
+
import { components } from '@atlaskit/select/react-select';
|
|
20
20
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
21
21
|
import { css, jsx } from '@emotion/react';
|
|
22
|
-
import Avatar from '@atlaskit/avatar';
|
|
23
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
24
|
-
import
|
|
22
|
+
import Avatar from '@atlaskit/avatar/avatar';
|
|
23
|
+
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
24
|
+
import AvatarTag from '@atlaskit/tag/avatar-tag';
|
|
25
|
+
import { default as Tag } from '@atlaskit/tag/removable-tag';
|
|
25
26
|
import TeamAvatar from '@atlaskit/teams-avatar/teams-avatar';
|
|
26
27
|
import { AddOptionAvatar } from './AddOptionAvatar';
|
|
27
28
|
import { AvatarOrIcon } from './AvatarOrIcon';
|
|
28
29
|
import { SizeableAvatar } from './SizeableAvatar';
|
|
29
30
|
import { getAvatarUrl, isEmail, isGroup, isTeam } from './utils';
|
|
30
|
-
import Lozenge from '@atlaskit/lozenge';
|
|
31
|
+
import Lozenge from '@atlaskit/lozenge/lozenge';
|
|
31
32
|
import PeopleIcon from '@atlaskit/icon/core/people-group';
|
|
32
|
-
import { VerifiedTeamIcon } from '@atlaskit/people-teams-ui-public/verified-team-icon';
|
|
33
|
+
import { VerifiedTeamIcon } from '@atlaskit/people-teams-ui-public/verified-team-icon/main';
|
|
33
34
|
import { FormattedMessage } from 'react-intl';
|
|
34
35
|
import { messages } from './i18n';
|
|
35
36
|
export var scrollToValue = function scrollToValue(valueContainer, control) {
|
|
@@ -14,10 +14,10 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
|
|
|
14
14
|
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) { _defineProperty(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; }
|
|
15
15
|
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
16
16
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
17
|
-
import { components } from '@atlaskit/select';
|
|
17
|
+
import { components } from '@atlaskit/select/react-select';
|
|
18
18
|
import React, { Fragment } from 'react';
|
|
19
19
|
import { FormattedMessage } from 'react-intl';
|
|
20
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
20
|
+
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
21
21
|
import { messages } from './i18n';
|
|
22
22
|
import { isChildInput } from './utils';
|
|
23
23
|
import ValueContainerWrapper from './ValueContainerWrapper';
|
|
@@ -79,7 +79,6 @@ export var MultiValueContainer = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
79
79
|
}
|
|
80
80
|
return _this.addPlaceholder(addMoreMessage);
|
|
81
81
|
});
|
|
82
|
-
//@ts-ignore react-select unsupported props
|
|
83
82
|
_defineProperty(_this, "onValueContainerClick", _this.props.selectProps.onValueContainerClick);
|
|
84
83
|
_this.state = {
|
|
85
84
|
valueSize: 0,
|
|
@@ -97,7 +96,6 @@ export var MultiValueContainer = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
97
96
|
var _this$state = this.state,
|
|
98
97
|
previousValueSize = _this$state.previousValueSize,
|
|
99
98
|
valueSize = _this$state.valueSize;
|
|
100
|
-
//@ts-ignore react-select unsupported props
|
|
101
99
|
var isFocused = this.props.selectProps.isFocused;
|
|
102
100
|
if (valueSize > previousValueSize && isFocused) {
|
|
103
101
|
if (this.timeoutId) {
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
+
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
2
|
+
var _excluded = ["renderOptionContent"];
|
|
1
3
|
import { Box } from '@atlaskit/primitives/compiled';
|
|
2
|
-
import { components } from '@atlaskit/select';
|
|
3
|
-
import Tooltip from '@atlaskit/tooltip';
|
|
4
|
+
import { components } from '@atlaskit/select/react-select';
|
|
5
|
+
import Tooltip from '@atlaskit/tooltip/Tooltip';
|
|
4
6
|
import React from 'react';
|
|
5
7
|
import { UserOption } from './UserOption';
|
|
6
8
|
import AsyncExternalOption from './ExternalUserOption';
|
|
@@ -85,8 +87,11 @@ var dataOptionWithTooltip = function dataOptionWithTooltip(props) {
|
|
|
85
87
|
}
|
|
86
88
|
return dataOption(props);
|
|
87
89
|
};
|
|
88
|
-
export var Option = function Option(
|
|
89
|
-
|
|
90
|
+
export var Option = function Option(_ref3) {
|
|
91
|
+
var renderOptionContent = _ref3.renderOptionContent,
|
|
92
|
+
props = _objectWithoutProperties(_ref3, _excluded);
|
|
93
|
+
var defaultContent = /*#__PURE__*/React.createElement(React.Suspense, {
|
|
90
94
|
fallback: defaultOption(props)
|
|
91
|
-
}, dataOptionWithTooltip(props))
|
|
95
|
+
}, dataOptionWithTooltip(props));
|
|
96
|
+
return /*#__PURE__*/React.createElement(components.Option, props, renderOptionContent ? renderOptionContent(defaultContent) : defaultContent);
|
|
92
97
|
};
|
|
@@ -9,14 +9,14 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
|
|
|
9
9
|
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) { _defineProperty(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; }
|
|
10
10
|
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
11
11
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
12
|
-
import
|
|
13
|
-
import { PopupSelect } from '@atlaskit/select';
|
|
12
|
+
import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
|
|
13
|
+
import { PopupSelect } from '@atlaskit/select/popup-select';
|
|
14
14
|
import React from 'react';
|
|
15
15
|
import { getPopupComponents } from './components';
|
|
16
16
|
import { getPopupStyles } from './styles';
|
|
17
17
|
import { getPopupProps } from './popup';
|
|
18
18
|
import { BaseUserPickerWithoutAnalytics } from './BaseUserPicker';
|
|
19
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
19
|
+
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
20
20
|
export var PopupUserPickerWithoutAnalytics = /*#__PURE__*/function (_React$Component) {
|
|
21
21
|
function PopupUserPickerWithoutAnalytics() {
|
|
22
22
|
var _this;
|
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
import "./SingleValue.compiled.css";
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
5
|
-
import { components } from '@atlaskit/select';
|
|
6
|
-
import Lozenge from '@atlaskit/lozenge';
|
|
5
|
+
import { components } from '@atlaskit/select/react-select';
|
|
6
|
+
import Lozenge from '@atlaskit/lozenge/lozenge';
|
|
7
7
|
import { AvatarOrIcon } from './AvatarOrIcon';
|
|
8
8
|
import { SizeableAvatar } from './SizeableAvatar';
|
|
9
9
|
import { getAvatarUrl, isTeam, isGroup } from './utils';
|
|
10
|
-
import
|
|
11
|
-
import { VerifiedTeamIcon } from '@atlaskit/people-teams-ui-public/verified-team-icon';
|
|
10
|
+
import getAppearanceForAppType from '@atlaskit/avatar/get-appearance';
|
|
11
|
+
import { VerifiedTeamIcon } from '@atlaskit/people-teams-ui-public/verified-team-icon/main';
|
|
12
12
|
import { FormattedMessage } from 'react-intl';
|
|
13
13
|
import { Box, Flex, Inline } from '@atlaskit/primitives/compiled';
|
|
14
14
|
import { messages } from './i18n';
|
|
@@ -13,11 +13,11 @@ import { ax, ix } from "@compiled/react/runtime";
|
|
|
13
13
|
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
14
14
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
15
15
|
import React from 'react';
|
|
16
|
-
import { components } from '@atlaskit/select';
|
|
16
|
+
import { components } from '@atlaskit/select/react-select';
|
|
17
17
|
import { AvatarOrIcon } from './AvatarOrIcon';
|
|
18
18
|
import { SizeableAvatar } from './SizeableAvatar';
|
|
19
19
|
import ValueContainerWrapper from './ValueContainerWrapper';
|
|
20
|
-
import
|
|
20
|
+
import getAppearanceForAppType from '@atlaskit/avatar/get-appearance';
|
|
21
21
|
var valueContainerStyles = {
|
|
22
22
|
root: "_yv0e5bpd _ca0q12x7 _n3td12x7 _19bvze3t _1reo15vq _18m91wug _1fjgglyw _c71l1osq _1suq1j28 _1ke8idpf"
|
|
23
23
|
};
|
|
@@ -65,7 +65,6 @@ export var SingleValueContainer = /*#__PURE__*/function (_React$Component) {
|
|
|
65
65
|
}
|
|
66
66
|
return null;
|
|
67
67
|
});
|
|
68
|
-
//@ts-ignore react-select unsupported props
|
|
69
68
|
_defineProperty(_this, "onValueContainerClick", _this.props.selectProps.onValueContainerClick);
|
|
70
69
|
_defineProperty(_this, "Wrapper", function (_ref) {
|
|
71
70
|
var children = _ref.children;
|
|
@@ -8,7 +8,7 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
|
|
|
8
8
|
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) { _defineProperty(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; }
|
|
9
9
|
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
10
10
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
11
|
-
import Avatar from '@atlaskit/avatar';
|
|
11
|
+
import Avatar from '@atlaskit/avatar/avatar';
|
|
12
12
|
import TeamAvatar from '@atlaskit/teams-avatar/teams-avatar';
|
|
13
13
|
import React from 'react';
|
|
14
14
|
import { getAvatarSize } from './utils';
|
|
@@ -13,7 +13,7 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { Inline } from '@atlaskit/primitives/compiled';
|
|
16
|
-
import { VerifiedTeamIcon } from '@atlaskit/people-teams-ui-public/verified-team-icon';
|
|
16
|
+
import { VerifiedTeamIcon } from '@atlaskit/people-teams-ui-public/verified-team-icon/main';
|
|
17
17
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
18
18
|
import { jsx } from '@emotion/react';
|
|
19
19
|
import React from 'react';
|