@atlaskit/user-picker 7.16.3 → 8.0.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 +60 -0
- package/dist/cjs/analytics.js +1 -1
- package/dist/cjs/components/AvatarItemOption.js +1 -1
- package/dist/cjs/components/BaseUserPicker.js +3 -3
- package/dist/cjs/components/EmailOption.js +2 -2
- package/dist/cjs/components/ExternalUserOption.js +4 -4
- package/dist/cjs/components/GroupOption.js +3 -3
- package/dist/cjs/components/MessagesIntlProvider.js +4 -3
- package/dist/cjs/components/MultiValue.js +3 -3
- package/dist/cjs/components/MultiValueContainer.js +5 -3
- package/dist/cjs/components/PopupControl.js +38 -7
- package/dist/cjs/components/PopupUserPicker.js +1 -1
- package/dist/cjs/components/TeamOption.js +5 -5
- package/dist/cjs/components/UserPicker.js +1 -1
- package/dist/cjs/components/creatable.js +5 -2
- package/dist/cjs/components/i18n.js +2 -2
- package/dist/cjs/components/smart-user-picker/components/index.js +3 -3
- package/dist/cjs/components/smart-user-picker/config/index.js +1 -1
- package/dist/cjs/components/smart-user-picker/index.js +4 -4
- package/dist/cjs/components/styles.js +9 -15
- package/dist/cjs/components/utils.js +1 -1
- package/dist/cjs/i18n/en_ZZ.js +38 -0
- package/dist/cjs/i18n/fi.js +2 -0
- package/dist/cjs/i18n/fr.js +3 -1
- package/dist/cjs/i18n/index.js +44 -36
- package/dist/cjs/i18n/uk.js +2 -0
- package/dist/cjs/i18n/zh_TW.js +2 -0
- package/dist/cjs/index.js +28 -28
- package/dist/cjs/types.js +1 -1
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/components/BaseUserPicker.js +1 -1
- package/dist/es2019/components/EmailOption.js +1 -1
- package/dist/es2019/components/ExternalUserOption.js +1 -1
- package/dist/es2019/components/GroupOption.js +1 -1
- package/dist/es2019/components/MessagesIntlProvider.js +2 -1
- package/dist/es2019/components/MultiValue.js +1 -1
- package/dist/es2019/components/MultiValueContainer.js +7 -4
- package/dist/es2019/components/PopupControl.js +33 -6
- package/dist/es2019/components/TeamOption.js +1 -1
- package/dist/es2019/components/creatable.js +13 -8
- package/dist/es2019/components/i18n.js +1 -1
- package/dist/es2019/components/smart-user-picker/components/index.js +1 -1
- package/dist/es2019/components/styles.js +8 -8
- package/dist/es2019/i18n/en_ZZ.js +30 -0
- package/dist/es2019/i18n/fi.js +2 -0
- package/dist/es2019/i18n/fr.js +3 -1
- package/dist/es2019/i18n/index.js +1 -0
- package/dist/es2019/i18n/uk.js +2 -0
- package/dist/es2019/i18n/zh_TW.js +2 -0
- package/dist/es2019/version.json +1 -1
- package/dist/esm/components/BaseUserPicker.js +1 -1
- package/dist/esm/components/EmailOption.js +1 -1
- package/dist/esm/components/ExternalUserOption.js +1 -1
- package/dist/esm/components/GroupOption.js +1 -1
- package/dist/esm/components/MessagesIntlProvider.js +2 -1
- package/dist/esm/components/MultiValue.js +1 -1
- package/dist/esm/components/MultiValueContainer.js +3 -2
- package/dist/esm/components/PopupControl.js +28 -7
- package/dist/esm/components/TeamOption.js +1 -1
- package/dist/esm/components/creatable.js +5 -2
- package/dist/esm/components/i18n.js +1 -1
- package/dist/esm/components/smart-user-picker/components/index.js +1 -1
- package/dist/esm/components/styles.js +8 -8
- package/dist/esm/i18n/en_ZZ.js +30 -0
- package/dist/esm/i18n/fi.js +2 -0
- package/dist/esm/i18n/fr.js +3 -1
- package/dist/esm/i18n/index.js +1 -0
- package/dist/esm/i18n/uk.js +2 -0
- package/dist/esm/i18n/zh_TW.js +2 -0
- package/dist/esm/version.json +1 -1
- package/dist/types/components/BaseUserPicker.d.ts +1 -1
- package/dist/types/components/MessagesIntlProvider.d.ts +4 -4
- package/dist/types/components/PopupUserPicker.d.ts +1 -1
- package/dist/types/components/SingleValue.d.ts +1 -0
- package/dist/types/components/UserPicker.d.ts +1 -1
- package/dist/types/components/components.d.ts +4 -4
- package/dist/types/components/creatable.d.ts +5 -3
- package/dist/types/components/creatableEmailSuggestion.d.ts +2 -2
- package/dist/types/components/popup.d.ts +2 -2
- package/dist/types/components/smart-user-picker/service/recommendationClient.d.ts +2 -2
- package/dist/types/components/smart-user-picker/service/users-transformer.d.ts +3 -3
- package/dist/types/components/styles.d.ts +3 -3
- package/dist/types/components/utils.d.ts +1 -1
- package/dist/types/i18n/en_ZZ.d.ts +30 -0
- package/dist/types/i18n/fi.d.ts +2 -0
- package/dist/types/i18n/fr.d.ts +2 -0
- package/dist/types/i18n/index.d.ts +1 -0
- package/dist/types/i18n/uk.d.ts +2 -0
- package/dist/types/i18n/zh_TW.d.ts +2 -0
- package/package.json +7 -8
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Option } from '../types';
|
|
2
2
|
import { EmailValidator } from './emailValidation';
|
|
3
|
-
export declare const getCreatableSuggestedEmailProps: (emailDomain: string, isValidEmail?: EmailValidator | undefined) => {
|
|
3
|
+
export declare const getCreatableSuggestedEmailProps: import("memoize-one").MemoizedFn<(emailDomain: string, isValidEmail?: EmailValidator | undefined) => {
|
|
4
4
|
allowCreateWhileLoading: boolean;
|
|
5
5
|
createOptionPosition: string;
|
|
6
6
|
isValidNewOption: (inputValue?: string | undefined) => boolean | "" | undefined;
|
|
@@ -16,4 +16,4 @@ export declare const getCreatableSuggestedEmailProps: (emailDomain: string, isVa
|
|
|
16
16
|
} | null;
|
|
17
17
|
formatCreateLabel: (inputText?: string | undefined) => string;
|
|
18
18
|
isOptionDisabled: (option: Option) => boolean;
|
|
19
|
-
}
|
|
19
|
+
}>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Placement } from '@atlaskit/popper';
|
|
2
2
|
import { Target } from '../types';
|
|
3
|
-
export declare const getPopupProps: (width: string | number, target: Target, onFlip: (data: any) => any, boundariesElement?: HTMLElement | "scrollParent" | "window" | "viewport" | undefined, offset?: number[] | undefined, placement?: "auto" | "auto-start" | "auto-end" | "top" | "bottom" | "right" | "left" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end" | undefined, rootBoundary?: "viewport" | "document" | undefined, shouldFlip?: boolean | undefined, popupTitle?: string | undefined) => {
|
|
3
|
+
export declare const getPopupProps: import("memoize-one").MemoizedFn<(width: string | number, target: Target, onFlip: (data: any) => any, boundariesElement?: HTMLElement | "scrollParent" | "window" | "viewport" | undefined, offset?: number[] | undefined, placement?: "auto" | "auto-start" | "auto-end" | "top" | "bottom" | "right" | "left" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end" | undefined, rootBoundary?: "viewport" | "document" | undefined, shouldFlip?: boolean | undefined, popupTitle?: string | undefined) => {
|
|
4
4
|
searchThreshold: number;
|
|
5
5
|
controlShouldRenderValue: boolean;
|
|
6
6
|
minMenuWidth: string | number;
|
|
@@ -45,4 +45,4 @@ export declare const getPopupProps: (width: string | number, target: Target, onF
|
|
|
45
45
|
fn?: undefined;
|
|
46
46
|
})[];
|
|
47
47
|
};
|
|
48
|
-
}
|
|
48
|
+
}>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { OptionData } from '../../../types';
|
|
2
2
|
import { ProductAttributes, RecommendationRequest } from '../components';
|
|
3
|
-
import {
|
|
3
|
+
import { IntlShape } from 'react-intl-next';
|
|
4
4
|
/**
|
|
5
5
|
* @deprecated Please use @atlassian/smart-user-picker
|
|
6
6
|
*/
|
|
@@ -15,7 +15,7 @@ export interface Context {
|
|
|
15
15
|
siteId: string;
|
|
16
16
|
productAttributes?: ProductAttributes;
|
|
17
17
|
}
|
|
18
|
-
declare const getUserRecommendations: (request: RecommendationRequest, intl:
|
|
18
|
+
declare const getUserRecommendations: (request: RecommendationRequest, intl: IntlShape) => Promise<OptionData[]>;
|
|
19
19
|
/**
|
|
20
20
|
* @deprecated Please use @atlassian/smart-user-picker
|
|
21
21
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { OptionData } from '../../../types';
|
|
2
|
-
import {
|
|
2
|
+
import { IntlShape } from 'react-intl-next';
|
|
3
3
|
interface ServerItem {
|
|
4
4
|
id: string;
|
|
5
5
|
name?: string;
|
|
@@ -11,7 +11,7 @@ interface ServerItem {
|
|
|
11
11
|
}
|
|
12
12
|
interface ServerResponse {
|
|
13
13
|
recommendedUsers: ServerItem[];
|
|
14
|
-
intl:
|
|
14
|
+
intl: IntlShape;
|
|
15
15
|
}
|
|
16
16
|
declare enum EntityType {
|
|
17
17
|
USER = "USER",
|
|
@@ -21,5 +21,5 @@ declare enum EntityType {
|
|
|
21
21
|
/**
|
|
22
22
|
* @deprecated Please use @atlassian/smart-user-picker
|
|
23
23
|
*/
|
|
24
|
-
export declare const transformUsers: (serverResponse: ServerResponse, intl:
|
|
24
|
+
export declare const transformUsers: (serverResponse: ServerResponse, intl: IntlShape) => OptionData[];
|
|
25
25
|
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export declare const BORDER_PADDING = 6;
|
|
2
2
|
export declare const AVATAR_PADDING = 6;
|
|
3
3
|
export declare const INDICATOR_WIDTH = 39;
|
|
4
|
-
export declare const getStyles: (width: string | number, isMulti?: boolean | undefined, overrideStyles?: Partial<import("react-select").Styles<import("@atlaskit/select").OptionType, false, import("@atlaskit/select").GroupType<import("@atlaskit/select").OptionType>>> | undefined) => Partial<import("react-select").Styles<import("@atlaskit/select").OptionType, false, import("@atlaskit/select").GroupType<import("@atlaskit/select").OptionType>>> | {
|
|
4
|
+
export declare const getStyles: import("memoize-one").MemoizedFn<(width: string | number, isMulti?: boolean | undefined, overrideStyles?: Partial<import("react-select").Styles<import("@atlaskit/select").OptionType, false, import("@atlaskit/select").GroupType<import("@atlaskit/select").OptionType>>> | undefined) => Partial<import("react-select").Styles<import("@atlaskit/select").OptionType, false, import("@atlaskit/select").GroupType<import("@atlaskit/select").OptionType>>> | {
|
|
5
5
|
menu: (css: any, state: any) => any;
|
|
6
6
|
control: (css: any, state: any) => any;
|
|
7
7
|
clearIndicator: ({ paddingTop, paddingBottom, paddingLeft, paddingRight, ...css }: any) => any;
|
|
@@ -13,5 +13,5 @@ export declare const getStyles: (width: string | number, isMulti?: boolean | und
|
|
|
13
13
|
placeholder: (css: any, state: any) => any;
|
|
14
14
|
option: (css: any) => any;
|
|
15
15
|
input: ({ margin, ...css }: any) => any;
|
|
16
|
-
}
|
|
17
|
-
export declare const getPopupStyles: (width: string | number, flip?: boolean | undefined, isMulti?: boolean | undefined) => Partial<import("react-select").Styles<import("@atlaskit/select").OptionType, false, import("@atlaskit/select").GroupType<import("@atlaskit/select").OptionType
|
|
16
|
+
}>;
|
|
17
|
+
export declare const getPopupStyles: import("memoize-one").MemoizedFn<(width: string | number, flip?: boolean | undefined, isMulti?: boolean | undefined) => Partial<import("react-select").Styles<import("@atlaskit/select").OptionType, false, import("@atlaskit/select").GroupType<import("@atlaskit/select").OptionType>>>>;
|
|
@@ -8,7 +8,7 @@ export declare const isEmail: (option: OptionData) => option is Email;
|
|
|
8
8
|
export declare const optionToSelectableOption: (option: OptionData | OptionIdentifier) => Option;
|
|
9
9
|
export declare const extractOptionValue: (value: AtlaskitSelectValue) => OptionData | OptionData[] | undefined;
|
|
10
10
|
export declare const isIterable: (a: any) => a is Iterable<Promisable<OptionData | OptionData[]>>;
|
|
11
|
-
export declare const getOptions: (options: OptionData[]) => Option<OptionData>[]
|
|
11
|
+
export declare const getOptions: import("memoize-one").MemoizedFn<(options: OptionData[]) => Option<OptionData>[]>;
|
|
12
12
|
export interface OptionToSelectableOptions {
|
|
13
13
|
(defaultValue: OptionData): Option;
|
|
14
14
|
(defaultValue: OptionData[]): Option[];
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
'fabric.elements.user-picker.email.add': string;
|
|
3
|
+
'fabric.elements.user-picker.email.add.potential': string;
|
|
4
|
+
'fabric.elements.user-picker.email.select.to.add': string;
|
|
5
|
+
'fabric.elements.user-picker.external.sourced.from': string;
|
|
6
|
+
'fabric.elements.user-picker.github.provider': string;
|
|
7
|
+
'fabric.elements.user-picker.google.provider': string;
|
|
8
|
+
'fabric.elements.user-picker.group.byline': string;
|
|
9
|
+
'fabric.elements.user-picker.guest.lozenge.text': string;
|
|
10
|
+
'fabric.elements.user-picker.guest.lozenge.tooltip.group': string;
|
|
11
|
+
'fabric.elements.user-picker.guest.lozenge.tooltip.user': string;
|
|
12
|
+
'fabric.elements.user-picker.member.lozenge.text': string;
|
|
13
|
+
'fabric.elements.user-picker.microsoft.provider': string;
|
|
14
|
+
'fabric.elements.user-picker.multi.remove-item': string;
|
|
15
|
+
'fabric.elements.user-picker.placeholder': string;
|
|
16
|
+
'fabric.elements.user-picker.placeholder.add-more': string;
|
|
17
|
+
'fabric.elements.user-picker.single.clear': string;
|
|
18
|
+
'fabric.elements.user-picker.slack.provider': string;
|
|
19
|
+
'fabric.elements.user-picker.team.member.50plus': string;
|
|
20
|
+
'fabric.elements.user-picker.team.member.50plus.including.you': string;
|
|
21
|
+
'fabric.elements.user-picker.team.member.count': string;
|
|
22
|
+
'fabric.elements.user-picker.team.member.count.including.you': string;
|
|
23
|
+
};
|
|
24
|
+
/**
|
|
25
|
+
* NOTE:
|
|
26
|
+
*
|
|
27
|
+
* This file is automatically generated by i18n-tools.
|
|
28
|
+
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
29
|
+
*/
|
|
30
|
+
export default _default;
|
package/dist/types/i18n/fi.d.ts
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
declare const _default: {
|
|
2
2
|
'fabric.elements.user-picker.email.add': string;
|
|
3
|
+
'fabric.elements.user-picker.email.add.potential': string;
|
|
4
|
+
'fabric.elements.user-picker.email.select.to.add': string;
|
|
3
5
|
'fabric.elements.user-picker.external.sourced.from': string;
|
|
4
6
|
'fabric.elements.user-picker.github.provider': string;
|
|
5
7
|
'fabric.elements.user-picker.google.provider': string;
|
package/dist/types/i18n/fr.d.ts
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
declare const _default: {
|
|
2
2
|
'fabric.elements.user-picker.email.add': string;
|
|
3
|
+
'fabric.elements.user-picker.email.add.potential': string;
|
|
4
|
+
'fabric.elements.user-picker.email.select.to.add': string;
|
|
3
5
|
'fabric.elements.user-picker.external.sourced.from': string;
|
|
4
6
|
'fabric.elements.user-picker.github.provider': string;
|
|
5
7
|
'fabric.elements.user-picker.google.provider': string;
|
|
@@ -29,6 +29,7 @@ export { default as th } from './th';
|
|
|
29
29
|
export { default as tr } from './tr';
|
|
30
30
|
export { default as uk } from './uk';
|
|
31
31
|
export { default as vi } from './vi';
|
|
32
|
+
export { default as en_ZZ } from './en_ZZ';
|
|
32
33
|
export { default as en } from './en';
|
|
33
34
|
export { default as en_GB } from './en_GB';
|
|
34
35
|
export { default as is } from './is';
|
package/dist/types/i18n/uk.d.ts
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
declare const _default: {
|
|
2
2
|
'fabric.elements.user-picker.email.add': string;
|
|
3
|
+
'fabric.elements.user-picker.email.add.potential': string;
|
|
4
|
+
'fabric.elements.user-picker.email.select.to.add': string;
|
|
3
5
|
'fabric.elements.user-picker.external.sourced.from': string;
|
|
4
6
|
'fabric.elements.user-picker.github.provider': string;
|
|
5
7
|
'fabric.elements.user-picker.google.provider': string;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
declare const _default: {
|
|
2
2
|
'fabric.elements.user-picker.email.add': string;
|
|
3
|
+
'fabric.elements.user-picker.email.add.potential': string;
|
|
4
|
+
'fabric.elements.user-picker.email.select.to.add': string;
|
|
3
5
|
'fabric.elements.user-picker.external.sourced.from': string;
|
|
4
6
|
'fabric.elements.user-picker.github.provider': string;
|
|
5
7
|
'fabric.elements.user-picker.google.provider': string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/user-picker",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "8.0.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/"
|
|
@@ -28,7 +28,6 @@
|
|
|
28
28
|
"dependencies": {
|
|
29
29
|
"@atlaskit/analytics-next": "^8.2.0",
|
|
30
30
|
"@atlaskit/avatar": "^20.5.0",
|
|
31
|
-
"@atlaskit/field-base": "^15.0.0",
|
|
32
31
|
"@atlaskit/icon": "^21.9.0",
|
|
33
32
|
"@atlaskit/lozenge": "^11.0.0",
|
|
34
33
|
"@atlaskit/popper": "^5.0.0",
|
|
@@ -37,13 +36,13 @@
|
|
|
37
36
|
"@atlaskit/tooltip": "^17.5.0",
|
|
38
37
|
"@babel/runtime": "^7.0.0",
|
|
39
38
|
"lodash": "^4.17.15",
|
|
40
|
-
"memoize-one": "^
|
|
39
|
+
"memoize-one": "^6.0.0",
|
|
41
40
|
"uuid": "^3.1.0"
|
|
42
41
|
},
|
|
43
42
|
"peerDependencies": {
|
|
44
43
|
"react": "^16.8.0",
|
|
45
44
|
"react-dom": "^16.8.0",
|
|
46
|
-
"react-intl": "
|
|
45
|
+
"react-intl-next": "npm:react-intl@^5.18.1",
|
|
47
46
|
"styled-components": "^3.2.6"
|
|
48
47
|
},
|
|
49
48
|
"devDependencies": {
|
|
@@ -51,18 +50,18 @@
|
|
|
51
50
|
"@atlaskit/button": "^16.0.0",
|
|
52
51
|
"@atlaskit/docs": "*",
|
|
53
52
|
"@atlaskit/elements-test-helpers": "^0.7.0",
|
|
54
|
-
"@atlaskit/
|
|
55
|
-
"@atlaskit/
|
|
53
|
+
"@atlaskit/modal-dialog": "^12.2.0",
|
|
54
|
+
"@atlaskit/range": "^5.0.11",
|
|
56
55
|
"@atlaskit/section-message": "^6.0.0",
|
|
57
56
|
"@atlaskit/textfield": "^5.0.0",
|
|
58
|
-
"@atlaskit/util-data-test": "^
|
|
57
|
+
"@atlaskit/util-data-test": "^17.0.0",
|
|
59
58
|
"@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1",
|
|
60
59
|
"@types/uuid": "^3.4.4",
|
|
61
60
|
"enzyme": "^3.10.0",
|
|
62
61
|
"enzyme-react-intl": "^2.0.6",
|
|
63
62
|
"faker": "^4.1.0",
|
|
64
63
|
"mock-apollo-client": "^0.1.0",
|
|
65
|
-
"react-intl": "
|
|
64
|
+
"react-intl-next": "npm:react-intl@^5.18.1",
|
|
66
65
|
"typescript": "3.9.6"
|
|
67
66
|
},
|
|
68
67
|
"keywords": [
|