@atlaskit/user-picker 9.6.2 → 9.6.3
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 +6 -0
- package/dist/cjs/components/AddOptionAvatar.js +4 -4
- package/dist/cjs/components/AvatarItemOption.js +16 -16
- package/dist/cjs/components/CustomOption/main.js +8 -8
- package/dist/cjs/components/EmailOption/main.js +6 -6
- package/dist/cjs/components/ExternalUserOption/ExternalAvatarItemOption.js +11 -11
- package/dist/cjs/components/ExternalUserOption/InfoIcon.js +4 -4
- package/dist/cjs/components/ExternalUserOption/SourcesTooltipContent.js +15 -15
- package/dist/cjs/components/ExternalUserOption/main.js +12 -12
- package/dist/cjs/components/GroupOption/main.js +9 -9
- package/dist/cjs/components/MultiValue.js +11 -11
- package/dist/cjs/components/PopupControl.js +6 -6
- package/dist/cjs/components/SingleValue.js +5 -5
- package/dist/cjs/components/SingleValueContainer.js +4 -4
- package/dist/cjs/components/TeamOption/main.js +13 -13
- package/dist/cjs/components/UserOption.js +11 -11
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/components/AddOptionAvatar.js +1 -1
- package/dist/es2019/components/AvatarItemOption.js +1 -1
- package/dist/es2019/components/CustomOption/main.js +1 -1
- package/dist/es2019/components/EmailOption/main.js +1 -1
- package/dist/es2019/components/ExternalUserOption/ExternalAvatarItemOption.js +1 -1
- package/dist/es2019/components/ExternalUserOption/InfoIcon.js +1 -1
- package/dist/es2019/components/ExternalUserOption/SourcesTooltipContent.js +1 -1
- package/dist/es2019/components/ExternalUserOption/main.js +1 -1
- package/dist/es2019/components/GroupOption/main.js +1 -1
- package/dist/es2019/components/MultiValue.js +1 -1
- package/dist/es2019/components/PopupControl.js +1 -1
- package/dist/es2019/components/SingleValue.js +1 -1
- package/dist/es2019/components/SingleValueContainer.js +1 -1
- package/dist/es2019/components/TeamOption/main.js +1 -1
- package/dist/es2019/components/UserOption.js +1 -1
- package/dist/es2019/version.json +1 -1
- package/dist/esm/components/AddOptionAvatar.js +1 -1
- package/dist/esm/components/AvatarItemOption.js +1 -1
- package/dist/esm/components/CustomOption/main.js +1 -1
- package/dist/esm/components/EmailOption/main.js +1 -1
- package/dist/esm/components/ExternalUserOption/ExternalAvatarItemOption.js +1 -1
- package/dist/esm/components/ExternalUserOption/InfoIcon.js +1 -1
- package/dist/esm/components/ExternalUserOption/SourcesTooltipContent.js +1 -1
- package/dist/esm/components/ExternalUserOption/main.js +1 -1
- package/dist/esm/components/GroupOption/main.js +1 -1
- package/dist/esm/components/MultiValue.js +1 -1
- package/dist/esm/components/PopupControl.js +1 -1
- package/dist/esm/components/SingleValue.js +1 -1
- package/dist/esm/components/SingleValueContainer.js +1 -1
- package/dist/esm/components/TeamOption/main.js +1 -1
- package/dist/esm/components/UserOption.js +1 -1
- package/dist/esm/version.json +1 -1
- package/dist/types/components/AvatarItemOption.d.ts +3 -2
- package/dist/types/components/CustomOption/main.d.ts +2 -1
- package/dist/types/components/EmailOption/main.d.ts +2 -1
- package/dist/types/components/ExternalUserOption/ExternalAvatarItemOption.d.ts +2 -1
- package/dist/types/components/ExternalUserOption/InfoIcon.d.ts +2 -2
- package/dist/types/components/ExternalUserOption/SourcesTooltipContent.d.ts +2 -2
- package/dist/types/components/ExternalUserOption/main.d.ts +2 -2
- package/dist/types/components/GroupOption/main.d.ts +3 -2
- package/dist/types/components/MultiValue.d.ts +3 -2
- package/dist/types/components/PopupControl.d.ts +2 -1
- package/dist/types/components/SingleValue.d.ts +2 -2
- package/dist/types/components/SingleValueContainer.d.ts +2 -1
- package/dist/types/components/TeamOption/main.d.ts +2 -1
- package/dist/types/components/UserOption.d.ts +4 -3
- package/dist/types/components/components.d.ts +3 -3
- package/package.json +4 -4
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { jsx } from '@emotion/react';
|
|
1
2
|
import React from 'react';
|
|
2
3
|
import { Custom } from '../../types';
|
|
3
4
|
export declare type CustomOptionProps = {
|
|
@@ -10,5 +11,5 @@ export declare class CustomOption extends React.PureComponent<CustomOptionProps>
|
|
|
10
11
|
private renderByline;
|
|
11
12
|
private renderAvatar;
|
|
12
13
|
private getLozengeProps;
|
|
13
|
-
render(): JSX.Element;
|
|
14
|
+
render(): jsx.JSX.Element;
|
|
14
15
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
import React from 'react';
|
|
3
|
+
import { jsx } from '@emotion/react';
|
|
3
4
|
import { Email } from '../../types';
|
|
4
5
|
import { EmailValidationResponse } from '../emailValidation';
|
|
5
6
|
export declare type EmailOptionProps = {
|
|
@@ -13,5 +14,5 @@ export declare class EmailOption extends React.PureComponent<EmailOptionProps> {
|
|
|
13
14
|
private renderPrimaryText;
|
|
14
15
|
private renderSecondaryText;
|
|
15
16
|
private renderOption;
|
|
16
|
-
render(): JSX.Element;
|
|
17
|
+
render(): jsx.JSX.Element;
|
|
17
18
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
import { ReactNode } from 'react';
|
|
3
|
+
import { jsx } from '@emotion/react';
|
|
3
4
|
export declare type ExternalAvatarItemOptionProps = {
|
|
4
5
|
avatar: ReactNode;
|
|
5
6
|
isDisabled?: boolean;
|
|
@@ -7,4 +8,4 @@ export declare type ExternalAvatarItemOptionProps = {
|
|
|
7
8
|
secondaryText?: ReactNode;
|
|
8
9
|
sourcesInfoTooltip?: ReactNode;
|
|
9
10
|
};
|
|
10
|
-
export declare const ExternalAvatarItemOption: ({ avatar, isDisabled, primaryText, secondaryText, sourcesInfoTooltip, }: ExternalAvatarItemOptionProps) => JSX.Element;
|
|
11
|
+
export declare const ExternalAvatarItemOption: ({ avatar, isDisabled, primaryText, secondaryText, sourcesInfoTooltip, }: ExternalAvatarItemOptionProps) => jsx.JSX.Element;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
declare const _default: () => JSX.Element;
|
|
1
|
+
import { jsx } from '@emotion/react';
|
|
2
|
+
declare const _default: () => jsx.JSX.Element;
|
|
3
3
|
export default _default;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { ExternalUserSourcesData } from '../ExternalUserSourcesContainer';
|
|
4
|
-
export declare const sourcesTooltipContainer: import("@emotion/
|
|
5
|
-
export declare const sourceWrapper: import("@emotion/
|
|
4
|
+
export declare const sourcesTooltipContainer: import("@emotion/react").SerializedStyles;
|
|
5
|
+
export declare const sourceWrapper: import("@emotion/react").SerializedStyles;
|
|
6
6
|
export declare const SourcesTooltipContent: React.FC<ExternalUserSourcesData>;
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { WithAnalyticsEventsProps } from '@atlaskit/analytics-next';
|
|
4
4
|
import { ExternalUser } from '../../types';
|
|
5
|
-
export declare const imageContainer: import("@emotion/
|
|
6
|
-
export declare const emailDomainWrapper: import("@emotion/
|
|
5
|
+
export declare const imageContainer: import("@emotion/react").SerializedStyles;
|
|
6
|
+
export declare const emailDomainWrapper: import("@emotion/react").SerializedStyles;
|
|
7
7
|
export declare type ExternalUserOptionProps = WithAnalyticsEventsProps & {
|
|
8
8
|
user: ExternalUser;
|
|
9
9
|
status?: string;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
import React from 'react';
|
|
3
|
+
import { jsx } from '@emotion/react';
|
|
3
4
|
import { Group } from '../../types';
|
|
4
|
-
export declare const groupOptionIconWrapper: import("@emotion/
|
|
5
|
+
export declare const groupOptionIconWrapper: import("@emotion/react").SerializedStyles;
|
|
5
6
|
export declare type GroupOptionProps = {
|
|
6
7
|
group: Group;
|
|
7
8
|
isSelected: boolean;
|
|
@@ -11,5 +12,5 @@ export declare class GroupOption extends React.PureComponent<GroupOptionProps> {
|
|
|
11
12
|
private renderAvatar;
|
|
12
13
|
private renderByline;
|
|
13
14
|
private getLozengeProps;
|
|
14
|
-
render(): JSX.Element;
|
|
15
|
+
render(): jsx.JSX.Element;
|
|
15
16
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { OptionType } from '@atlaskit/select';
|
|
4
|
+
import { jsx } from '@emotion/react';
|
|
4
5
|
import { Option, UserPickerProps } from '../types';
|
|
5
6
|
import { MultiValueProps } from '@atlaskit/select/types';
|
|
6
7
|
export declare const scrollToValue: (valueContainer: HTMLDivElement, control: HTMLElement) => void;
|
|
@@ -19,7 +20,7 @@ export declare class MultiValue extends React.Component<Props> {
|
|
|
19
20
|
constructor(props: Props);
|
|
20
21
|
componentDidUpdate(): void;
|
|
21
22
|
shouldComponentUpdate(nextProps: Props): boolean;
|
|
22
|
-
getElemBefore: () => JSX.Element;
|
|
23
|
-
render(): JSX.Element;
|
|
23
|
+
getElemBefore: () => jsx.JSX.Element;
|
|
24
|
+
render(): jsx.JSX.Element;
|
|
24
25
|
}
|
|
25
26
|
export {};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { ControlProps } from '@atlaskit/select';
|
|
4
|
+
import { jsx } from '@emotion/react';
|
|
4
5
|
export declare class PopupControl extends React.PureComponent<ControlProps<any>> {
|
|
5
|
-
render(): JSX.Element;
|
|
6
|
+
render(): jsx.JSX.Element;
|
|
6
7
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
import { jsx } from '@emotion/react';
|
|
2
2
|
import { Option } from '../types';
|
|
3
3
|
declare type Props = {
|
|
4
4
|
data: Option;
|
|
5
5
|
selectProps: any;
|
|
6
6
|
};
|
|
7
|
-
export declare const SingleValue: (props: Props) => JSX.Element | null;
|
|
7
|
+
export declare const SingleValue: (props: Props) => jsx.JSX.Element | null;
|
|
8
8
|
export {};
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
import React from 'react';
|
|
3
|
+
import { jsx } from '@emotion/react';
|
|
3
4
|
import { ValueContainerProps } from '@atlaskit/select';
|
|
4
5
|
import { User, Option } from '../types';
|
|
5
6
|
export declare class SingleValueContainer extends React.Component<ValueContainerProps<Option<User>>> {
|
|
6
7
|
private renderAvatar;
|
|
7
|
-
render(): JSX.Element;
|
|
8
|
+
render(): jsx.JSX.Element;
|
|
8
9
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { jsx } from '@emotion/react';
|
|
1
2
|
import React from 'react';
|
|
2
3
|
import { Team } from '../../types';
|
|
3
4
|
export declare type TeamOptionProps = {
|
|
@@ -11,5 +12,5 @@ export declare class TeamOption extends React.PureComponent<TeamOptionProps> {
|
|
|
11
12
|
private renderAvatar;
|
|
12
13
|
private getLozengeProps;
|
|
13
14
|
private renderCustomByLine;
|
|
14
|
-
render(): JSX.Element;
|
|
15
|
+
render(): jsx.JSX.Element;
|
|
15
16
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { jsx } from '@emotion/react';
|
|
1
2
|
import React from 'react';
|
|
2
3
|
import { User } from '../types';
|
|
3
4
|
export declare type UserOptionProps = {
|
|
@@ -6,9 +7,9 @@ export declare type UserOptionProps = {
|
|
|
6
7
|
isSelected: boolean;
|
|
7
8
|
};
|
|
8
9
|
export declare class UserOption extends React.PureComponent<UserOptionProps> {
|
|
9
|
-
getPrimaryText: () => JSX.Element[];
|
|
10
|
-
renderSecondaryText: () => JSX.Element | undefined;
|
|
10
|
+
getPrimaryText: () => jsx.JSX.Element[];
|
|
11
|
+
renderSecondaryText: () => jsx.JSX.Element | undefined;
|
|
11
12
|
private renderAvatar;
|
|
12
13
|
private getLozengeProps;
|
|
13
|
-
render(): JSX.Element;
|
|
14
|
+
render(): jsx.JSX.Element;
|
|
14
15
|
}
|
|
@@ -24,7 +24,7 @@ export declare const getComponents: import("memoize-one").MemoizedFn<(multi?: bo
|
|
|
24
24
|
SingleValue: (props: {
|
|
25
25
|
data: import("..").Option<import("..").OptionData>;
|
|
26
26
|
selectProps: any;
|
|
27
|
-
}) => JSX.Element | null;
|
|
27
|
+
}) => import("@emotion/react").jsx.JSX.Element | null;
|
|
28
28
|
ClearIndicator: typeof ClearIndicator | null;
|
|
29
29
|
Option: import("react").FC<import("./Option").OptionProps>;
|
|
30
30
|
ValueContainer: typeof MultiValueContainer | typeof SingleValueContainer;
|
|
@@ -36,7 +36,7 @@ export declare const getPopupComponents: import("memoize-one").MemoizedFn<(hasPo
|
|
|
36
36
|
SingleValue: (props: {
|
|
37
37
|
data: import("..").Option<import("..").OptionData>;
|
|
38
38
|
selectProps: any;
|
|
39
|
-
}) => JSX.Element | null;
|
|
39
|
+
}) => import("@emotion/react").jsx.JSX.Element | null;
|
|
40
40
|
ClearIndicator: typeof ClearIndicator;
|
|
41
41
|
Option: import("react").FC<import("./Option").OptionProps>;
|
|
42
42
|
ValueContainer: typeof SingleValueContainer;
|
|
@@ -47,7 +47,7 @@ export declare const getPopupComponents: import("memoize-one").MemoizedFn<(hasPo
|
|
|
47
47
|
SingleValue: (props: {
|
|
48
48
|
data: import("..").Option<import("..").OptionData>;
|
|
49
49
|
selectProps: any;
|
|
50
|
-
}) => JSX.Element | null;
|
|
50
|
+
}) => import("@emotion/react").jsx.JSX.Element | null;
|
|
51
51
|
ClearIndicator: typeof ClearIndicator;
|
|
52
52
|
Option: import("react").FC<import("./Option").OptionProps>;
|
|
53
53
|
ValueContainer: typeof SingleValueContainer;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/user-picker",
|
|
3
|
-
"version": "9.6.
|
|
3
|
+
"version": "9.6.3",
|
|
4
4
|
"description": "Fabric component for display a dropdown to select a user from",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"@atlaskit/icon": "^21.11.0",
|
|
32
32
|
"@atlaskit/logo": "^13.10.0",
|
|
33
33
|
"@atlaskit/lozenge": "^11.3.0",
|
|
34
|
-
"@atlaskit/popper": "^5.
|
|
34
|
+
"@atlaskit/popper": "^5.4.0",
|
|
35
35
|
"@atlaskit/select": "^15.7.0",
|
|
36
36
|
"@atlaskit/spinner": "^15.2.0",
|
|
37
37
|
"@atlaskit/theme": "^12.2.0",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"@atlaskit/tooltip": "^17.6.0",
|
|
40
40
|
"@atlaskit/ufo": "^0.1.0",
|
|
41
41
|
"@babel/runtime": "^7.0.0",
|
|
42
|
-
"@emotion/
|
|
42
|
+
"@emotion/react": "^11.7.1",
|
|
43
43
|
"lodash": "^4.17.21",
|
|
44
44
|
"memoize-one": "^6.0.0",
|
|
45
45
|
"uuid": "^3.1.0"
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
"@atlaskit/util-data-test": "^17.6.0",
|
|
63
63
|
"@atlaskit/visual-regression": "*",
|
|
64
64
|
"@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1",
|
|
65
|
-
"@emotion/styled": "^
|
|
65
|
+
"@emotion/styled": "^11.0.0",
|
|
66
66
|
"@testing-library/dom": "^8.17.1",
|
|
67
67
|
"@testing-library/jest-dom": "^5.16.5",
|
|
68
68
|
"@testing-library/react": "^12.1.5",
|