@atlaskit/user-picker 11.6.0 → 11.6.2
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/afm-cc/tsconfig.json +3 -3
- package/dist/cjs/analytics.js +1 -1
- package/dist/es2019/analytics.js +1 -1
- package/dist/esm/analytics.js +1 -1
- package/dist/types/analytics.d.ts +3 -3
- package/dist/types/components/AddOptionAvatar.d.ts +1 -1
- package/dist/types/components/BaseUserPicker.d.ts +66 -66
- package/dist/types/components/EmailOption/main.d.ts +1 -1
- package/dist/types/components/ExternalUserOption/index.d.ts +2 -2
- package/dist/types/components/ExternalUserOption/main.d.ts +4 -4
- package/dist/types/components/ExternalUserSourcesContainer.d.ts +2 -2
- package/dist/types/components/HighlightText.d.ts +1 -1
- package/dist/types/components/Input.d.ts +2 -2
- package/dist/types/components/MultiValue.d.ts +2 -2
- package/dist/types/components/MultiValueContainer.d.ts +1 -1
- package/dist/types/components/Option.d.ts +2 -2
- package/dist/types/components/PopupUserPicker.d.ts +86 -86
- package/dist/types/components/SizeableAvatar.d.ts +1 -1
- package/dist/types/components/TeamOption/main.d.ts +1 -1
- package/dist/types/components/UserOption.d.ts +2 -2
- package/dist/types/components/UserPicker.d.ts +56 -56
- package/dist/types/types.d.ts +148 -148
- package/dist/types-ts4.5/analytics.d.ts +3 -3
- package/dist/types-ts4.5/components/AddOptionAvatar.d.ts +1 -1
- package/dist/types-ts4.5/components/BaseUserPicker.d.ts +66 -66
- package/dist/types-ts4.5/components/EmailOption/main.d.ts +1 -1
- package/dist/types-ts4.5/components/ExternalUserOption/index.d.ts +2 -2
- package/dist/types-ts4.5/components/ExternalUserOption/main.d.ts +4 -4
- package/dist/types-ts4.5/components/ExternalUserSourcesContainer.d.ts +2 -2
- package/dist/types-ts4.5/components/HighlightText.d.ts +1 -1
- package/dist/types-ts4.5/components/Input.d.ts +2 -2
- package/dist/types-ts4.5/components/MultiValue.d.ts +2 -2
- package/dist/types-ts4.5/components/MultiValueContainer.d.ts +1 -1
- package/dist/types-ts4.5/components/Option.d.ts +2 -2
- package/dist/types-ts4.5/components/PopupUserPicker.d.ts +86 -86
- package/dist/types-ts4.5/components/SizeableAvatar.d.ts +1 -1
- package/dist/types-ts4.5/components/TeamOption/main.d.ts +1 -1
- package/dist/types-ts4.5/components/UserOption.d.ts +2 -2
- package/dist/types-ts4.5/components/UserPicker.d.ts +56 -56
- package/dist/types-ts4.5/types.d.ts +148 -148
- package/package.json +2 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @atlaskit/user-picker
|
|
2
2
|
|
|
3
|
+
## 11.6.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`0fdcb6f2f96fd`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/0fdcb6f2f96fd) -
|
|
8
|
+
Sorted type and interface props to improve Atlaskit docs
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
11
|
+
## 11.6.1
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- Updated dependencies
|
|
16
|
+
|
|
3
17
|
## 11.6.0
|
|
4
18
|
|
|
5
19
|
### Minor Changes
|
package/afm-cc/tsconfig.json
CHANGED
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
"compilerOptions": {
|
|
4
4
|
"declaration": true,
|
|
5
5
|
"target": "es5",
|
|
6
|
-
"composite": true,
|
|
7
6
|
"outDir": "../../../../../confluence/tsDist/@atlaskit__user-picker",
|
|
8
|
-
"rootDir": "../"
|
|
7
|
+
"rootDir": "../",
|
|
8
|
+
"composite": true
|
|
9
9
|
},
|
|
10
10
|
"include": [
|
|
11
11
|
"../src/**/*.ts",
|
|
@@ -72,4 +72,4 @@
|
|
|
72
72
|
"path": "../../../data/ufo-external/afm-cc/tsconfig.json"
|
|
73
73
|
}
|
|
74
74
|
]
|
|
75
|
-
}
|
|
75
|
+
}
|
package/dist/cjs/analytics.js
CHANGED
|
@@ -12,7 +12,7 @@ var _utils = require("./components/utils");
|
|
|
12
12
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
13
13
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
14
14
|
var packageName = "@atlaskit/user-picker";
|
|
15
|
-
var packageVersion = "11.
|
|
15
|
+
var packageVersion = "11.6.1";
|
|
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}$/;
|
package/dist/es2019/analytics.js
CHANGED
|
@@ -2,7 +2,7 @@ import { createAndFireEvent } from '@atlaskit/analytics-next';
|
|
|
2
2
|
import { v4 as uuidv4 } from 'uuid';
|
|
3
3
|
import { isCustom, isExternalUser } from './components/utils';
|
|
4
4
|
const packageName = "@atlaskit/user-picker";
|
|
5
|
-
const packageVersion = "11.
|
|
5
|
+
const packageVersion = "11.6.1";
|
|
6
6
|
const UUID_REGEXP_TEAMS_GROUPS = /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/;
|
|
7
7
|
const UUID_REGEXP_OLD_AAID = /^[a-fA-F0-9]{1,8}:[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/;
|
|
8
8
|
const UUID_REGEXP_NEW_AAID = /^[a-fA-F0-9]{24,24}$/;
|
package/dist/esm/analytics.js
CHANGED
|
@@ -5,7 +5,7 @@ import { createAndFireEvent } from '@atlaskit/analytics-next';
|
|
|
5
5
|
import { v4 as uuidv4 } from 'uuid';
|
|
6
6
|
import { isCustom, isExternalUser } from './components/utils';
|
|
7
7
|
var packageName = "@atlaskit/user-picker";
|
|
8
|
-
var packageVersion = "11.
|
|
8
|
+
var packageVersion = "11.6.1";
|
|
9
9
|
var UUID_REGEXP_TEAMS_GROUPS = /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/;
|
|
10
10
|
var UUID_REGEXP_OLD_AAID = /^[a-fA-F0-9]{1,8}:[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/;
|
|
11
11
|
var UUID_REGEXP_NEW_AAID = /^[a-fA-F0-9]{24,24}$/;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { type AnalyticsEventPayload } from '@atlaskit/analytics-next';
|
|
2
2
|
import { type UserPickerProps, type UserPickerState } from './types';
|
|
3
3
|
export type UserPickerSession = {
|
|
4
|
+
downCount: number;
|
|
4
5
|
id: string;
|
|
5
|
-
start: number;
|
|
6
6
|
inputChangeTime: number;
|
|
7
|
-
upCount: number;
|
|
8
|
-
downCount: number;
|
|
9
7
|
lastKey?: number;
|
|
8
|
+
start: number;
|
|
9
|
+
upCount: number;
|
|
10
10
|
};
|
|
11
11
|
export declare const startSession: () => UserPickerSession;
|
|
12
12
|
export declare const createAndFireEventInElementsChannel: (payload: AnalyticsEventPayload) => (createAnalyticsEvent: import("@atlaskit/analytics-next").CreateUIAnalyticsEvent) => import("@atlaskit/analytics-next").UIAnalyticsEvent;
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { Appearance, OptionData, UserPickerProps, UserPickerState } from '../types';
|
|
3
3
|
export type BaseUserPickerProps = UserPickerProps & {
|
|
4
|
-
SelectComponent: React.ComponentType<any>;
|
|
5
|
-
pickerProps?: any;
|
|
6
|
-
styles: any;
|
|
7
4
|
components: any;
|
|
8
|
-
width: string | number;
|
|
9
5
|
name?: string;
|
|
6
|
+
pickerProps?: any;
|
|
7
|
+
SelectComponent: React.ComponentType<any>;
|
|
8
|
+
styles: any;
|
|
10
9
|
/**
|
|
11
10
|
* @deprecated This is a temporary prop to enable user-pickers to work in Draggable elements in react-beautiful-dnd.
|
|
12
11
|
* See https://product-fabric.atlassian.net/browse/DSP-15701 for more details.
|
|
13
12
|
* It may be removed in a future minor or patch when a longer-term workaround is found.
|
|
14
13
|
*/
|
|
15
14
|
UNSAFE_hasDraggableParentComponent?: boolean;
|
|
15
|
+
width: string | number;
|
|
16
16
|
};
|
|
17
17
|
export declare class BaseUserPickerWithoutAnalytics extends React.Component<BaseUserPickerProps, UserPickerState> {
|
|
18
18
|
static defaultProps: {
|
|
@@ -65,97 +65,97 @@ export declare class BaseUserPickerWithoutAnalytics extends React.Component<Base
|
|
|
65
65
|
render(): React.JSX.Element;
|
|
66
66
|
}
|
|
67
67
|
export declare const BaseUserPicker: React.ForwardRefExoticComponent<Pick<Omit<{
|
|
68
|
+
addMoreMessage?: string;
|
|
69
|
+
allowEmail?: boolean;
|
|
70
|
+
anchor?: React.ComponentType<any>;
|
|
71
|
+
appearance?: Appearance;
|
|
72
|
+
ariaDescribedBy?: string;
|
|
73
|
+
ariaLabel?: string;
|
|
74
|
+
ariaLabelledBy?: string;
|
|
75
|
+
ariaLive?: "polite" | "off" | "assertive";
|
|
76
|
+
autoFocus?: boolean;
|
|
77
|
+
captureMenuScroll?: boolean;
|
|
78
|
+
clearValueLabel?: string;
|
|
79
|
+
closeMenuOnScroll?: boolean | EventListener;
|
|
80
|
+
components?: import("@atlaskit/select").SelectComponentsConfig<OptionData, boolean>;
|
|
81
|
+
defaultValue?: import("../types").DefaultValue;
|
|
82
|
+
disableInput?: boolean;
|
|
83
|
+
emailLabel?: string;
|
|
68
84
|
fieldId: string | null;
|
|
69
|
-
|
|
70
|
-
|
|
85
|
+
footer?: React.ReactNode;
|
|
86
|
+
forwardedRef?: React.ForwardedRef<import("../types").UserPickerRef>;
|
|
87
|
+
groupByTypeOrder?: NonNullable<OptionData["type"]>[];
|
|
88
|
+
header?: React.ReactNode;
|
|
71
89
|
height?: number | string;
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
90
|
+
inputId?: string;
|
|
91
|
+
isClearable?: boolean;
|
|
92
|
+
isDisabled?: boolean;
|
|
93
|
+
isInvalid?: boolean;
|
|
94
|
+
isLoading?: boolean;
|
|
95
|
+
isMulti?: boolean;
|
|
96
|
+
isValidEmail?: import("./emailValidation").EmailValidator;
|
|
75
97
|
loadOptions?: import("../types").LoadOptions;
|
|
76
98
|
loadOptionsErrorMessage?: (value: {
|
|
77
99
|
inputValue: string;
|
|
78
100
|
}) => React.ReactNode;
|
|
79
101
|
loadUserSource?: import("../types").LoadUserSource;
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
102
|
+
maxOptions?: number;
|
|
103
|
+
maxPickerHeight?: number;
|
|
104
|
+
menuMinWidth?: number;
|
|
105
|
+
menuPortalTarget?: HTMLElement;
|
|
106
|
+
menuPosition?: "absolute" | "fixed";
|
|
107
|
+
menuShouldBlockScroll?: boolean;
|
|
108
|
+
name?: string;
|
|
109
|
+
noBorder?: boolean;
|
|
110
|
+
noOptionsMessage?: ((value: {
|
|
111
|
+
inputValue: string;
|
|
112
|
+
}) => string | null | React.ReactNode) | null | React.ReactNode;
|
|
89
113
|
onBlur?: import("../types").OnPicker;
|
|
114
|
+
onChange?: import("../types").OnChange;
|
|
90
115
|
onClear?: import("../types").OnPicker;
|
|
91
|
-
onOpen?: import("../types").OnPicker;
|
|
92
116
|
onClose?: import("../types").OnPicker;
|
|
117
|
+
onFocus?: import("../types").OnPicker;
|
|
118
|
+
onInputChange?: import("../types").OnInputChange;
|
|
93
119
|
onKeyDown?: (event: React.KeyboardEvent) => void;
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
defaultValue?: import("../types").DefaultValue;
|
|
120
|
+
onOpen?: import("../types").OnPicker;
|
|
121
|
+
onSelection?: import("../types").OnOption;
|
|
122
|
+
open?: boolean;
|
|
123
|
+
openMenuOnClick?: boolean;
|
|
124
|
+
options?: OptionData[];
|
|
100
125
|
placeholder?: React.ReactNode;
|
|
101
126
|
placeholderAvatar?: "person" | "team";
|
|
102
|
-
addMoreMessage?: string;
|
|
103
|
-
noOptionsMessage?: ((value: {
|
|
104
|
-
inputValue: string;
|
|
105
|
-
}) => string | null | React.ReactNode) | null | React.ReactNode;
|
|
106
|
-
footer?: React.ReactNode;
|
|
107
|
-
value?: import("../types").Value;
|
|
108
|
-
isDisabled?: boolean;
|
|
109
|
-
isInvalid?: boolean;
|
|
110
|
-
isClearable?: boolean;
|
|
111
|
-
clearValueLabel?: string;
|
|
112
|
-
menuPosition?: "absolute" | "fixed";
|
|
113
|
-
captureMenuScroll?: boolean;
|
|
114
|
-
menuPortalTarget?: HTMLElement;
|
|
115
|
-
allowEmail?: boolean;
|
|
116
|
-
suggestEmailsForDomain?: string;
|
|
117
|
-
emailLabel?: string;
|
|
118
|
-
disableInput?: boolean;
|
|
119
|
-
isValidEmail?: import("./emailValidation").EmailValidator;
|
|
120
|
-
autoFocus?: boolean;
|
|
121
|
-
maxOptions?: number;
|
|
122
|
-
inputId?: string;
|
|
123
|
-
closeMenuOnScroll?: boolean | EventListener;
|
|
124
|
-
menuShouldBlockScroll?: boolean;
|
|
125
|
-
ariaLabel?: string;
|
|
126
|
-
ariaLabelledBy?: string;
|
|
127
|
-
ariaDescribedBy?: string;
|
|
128
|
-
ariaLive?: "polite" | "off" | "assertive";
|
|
129
|
-
name?: string;
|
|
130
|
-
header?: React.ReactNode;
|
|
131
127
|
required?: boolean;
|
|
132
|
-
|
|
133
|
-
openMenuOnClick?: boolean;
|
|
134
|
-
strategy?: "fixed" | "absolute";
|
|
128
|
+
search?: string;
|
|
135
129
|
showClearIndicator?: boolean;
|
|
136
|
-
|
|
137
|
-
|
|
130
|
+
strategy?: "fixed" | "absolute";
|
|
131
|
+
styles?: import("@atlaskit/select").StylesConfig;
|
|
132
|
+
subtle?: boolean;
|
|
133
|
+
suggestEmailsForDomain?: string;
|
|
134
|
+
textFieldBackgroundColor?: boolean;
|
|
135
|
+
UNSAFE_hasDraggableParentComponent?: boolean;
|
|
136
|
+
value?: import("../types").Value;
|
|
137
|
+
width?: number | string;
|
|
138
138
|
} & {
|
|
139
|
-
SelectComponent: React.ComponentType<any>;
|
|
140
|
-
pickerProps?: any;
|
|
141
|
-
styles: any;
|
|
142
139
|
components: any;
|
|
143
|
-
width: string | number;
|
|
144
140
|
name?: string;
|
|
141
|
+
pickerProps?: any;
|
|
142
|
+
SelectComponent: React.ComponentType<any>;
|
|
143
|
+
styles: any;
|
|
145
144
|
/**
|
|
146
145
|
* @deprecated This is a temporary prop to enable user-pickers to work in Draggable elements in react-beautiful-dnd.
|
|
147
146
|
* See https://product-fabric.atlassian.net/browse/DSP-15701 for more details.
|
|
148
147
|
* It may be removed in a future minor or patch when a longer-term workaround is found.
|
|
149
148
|
*/
|
|
150
149
|
UNSAFE_hasDraggableParentComponent?: boolean;
|
|
151
|
-
|
|
150
|
+
width: string | number;
|
|
151
|
+
}, keyof import("@atlaskit/analytics-next").WithAnalyticsEventsProps>, "placeholder" | "isDisabled" | "autoFocus" | "captureMenuScroll" | "closeMenuOnScroll" | "components" | "inputId" | "isInvalid" | "isLoading" | "menuPosition" | "menuPortalTarget" | "menuShouldBlockScroll" | "name" | "noOptionsMessage" | "onBlur" | "onChange" | "onFocus" | "onInputChange" | "onKeyDown" | "options" | "styles" | "value" | "required" | "appearance" | "footer" | "defaultValue" | "search" | "anchor" | "addMoreMessage" | "allowEmail" | "ariaDescribedBy" | "ariaLabel" | "ariaLabelledBy" | "ariaLive" | "clearValueLabel" | "disableInput" | "emailLabel" | "fieldId" | "forwardedRef" | "groupByTypeOrder" | "header" | "height" | "isValidEmail" | "loadOptions" | "loadUserSource" | "maxOptions" | "maxPickerHeight" | "menuMinWidth" | "onClear" | "onClose" | "onOpen" | "onSelection" | "open" | "placeholderAvatar" | "showClearIndicator" | "strategy" | "suggestEmailsForDomain" | "UNSAFE_hasDraggableParentComponent" | "width" | "pickerProps" | "SelectComponent"> & {
|
|
152
152
|
isClearable?: boolean | undefined;
|
|
153
153
|
isMulti?: boolean | undefined;
|
|
154
154
|
openMenuOnClick?: boolean | undefined;
|
|
155
|
-
textFieldBackgroundColor?: boolean | undefined;
|
|
156
155
|
loadOptionsErrorMessage?: ((value: {
|
|
157
156
|
inputValue: string;
|
|
158
157
|
}) => React.ReactNode) | undefined;
|
|
159
|
-
subtle?: boolean | undefined;
|
|
160
158
|
noBorder?: boolean | undefined;
|
|
159
|
+
subtle?: boolean | undefined;
|
|
160
|
+
textFieldBackgroundColor?: boolean | undefined;
|
|
161
161
|
} & {} & React.RefAttributes<any>>;
|
|
@@ -8,9 +8,9 @@ import { type Email } from '../../types';
|
|
|
8
8
|
import { type EmailValidationResponse } from '../emailValidation';
|
|
9
9
|
export type EmailOptionProps = {
|
|
10
10
|
email: Email;
|
|
11
|
+
emailValidity: EmailValidationResponse;
|
|
11
12
|
isSelected: boolean;
|
|
12
13
|
label?: string;
|
|
13
|
-
emailValidity: EmailValidationResponse;
|
|
14
14
|
};
|
|
15
15
|
export declare class EmailOption extends React.PureComponent<EmailOptionProps> {
|
|
16
16
|
private getLozengeProps;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
declare const AsyncExternalUserOption: React.LazyExoticComponent<React.ForwardRefExoticComponent<Omit<{
|
|
3
|
-
user: import("../..").ExternalUser;
|
|
4
|
-
status?: string;
|
|
5
3
|
isSelected: boolean;
|
|
4
|
+
status?: string;
|
|
5
|
+
user: import("../..").ExternalUser;
|
|
6
6
|
}, keyof import("@atlaskit/analytics-next").WithAnalyticsEventsProps> & React.RefAttributes<any>>>;
|
|
7
7
|
export default AsyncExternalUserOption;
|
|
@@ -8,12 +8,12 @@ import { type ExternalUser } from '../../types';
|
|
|
8
8
|
export declare const imageContainer: import("@emotion/react").SerializedStyles;
|
|
9
9
|
export declare const emailDomainWrapper: import("@emotion/react").SerializedStyles;
|
|
10
10
|
export type ExternalUserOptionProps = WithAnalyticsEventsProps & {
|
|
11
|
-
user: ExternalUser;
|
|
12
|
-
status?: string;
|
|
13
11
|
isSelected: boolean;
|
|
12
|
+
status?: string;
|
|
13
|
+
user: ExternalUser;
|
|
14
14
|
};
|
|
15
15
|
export declare const ExternalUserOption: React.ForwardRefExoticComponent<Omit<{
|
|
16
|
-
user: ExternalUser;
|
|
17
|
-
status?: string;
|
|
18
16
|
isSelected: boolean;
|
|
17
|
+
status?: string;
|
|
18
|
+
user: ExternalUser;
|
|
19
19
|
}, keyof WithAnalyticsEventsProps> & React.RefAttributes<any>>;
|
|
@@ -7,9 +7,9 @@ export interface ExternalUserSourcesData {
|
|
|
7
7
|
type SourcesChildrenFunc = (sourcesData: ExternalUserSourcesData) => ReactNode;
|
|
8
8
|
interface SourcesContainerProps {
|
|
9
9
|
accountId: string;
|
|
10
|
-
shouldFetchSources: boolean;
|
|
11
|
-
initialSources: UserSource[];
|
|
12
10
|
children: SourcesChildrenFunc;
|
|
11
|
+
initialSources: UserSource[];
|
|
12
|
+
shouldFetchSources: boolean;
|
|
13
13
|
}
|
|
14
14
|
export declare const ExternalUserSourcesContainer: ({ children, accountId, shouldFetchSources, initialSources, }: SourcesContainerProps) => any;
|
|
15
15
|
export {};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { type HighlightRange } from '../types';
|
|
3
3
|
export interface Props {
|
|
4
|
-
highlights?: HighlightRange[];
|
|
5
4
|
children: string;
|
|
5
|
+
highlights?: HighlightRange[];
|
|
6
6
|
}
|
|
7
7
|
export declare class HighlightText extends React.PureComponent<Props> {
|
|
8
8
|
render(): (string | React.JSX.Element)[];
|
|
@@ -6,9 +6,9 @@ import React, { type AriaAttributes } from 'react';
|
|
|
6
6
|
import { type OptionType, type SelectProps } from '@atlaskit/select';
|
|
7
7
|
import { type AriaAttributesType } from '../types';
|
|
8
8
|
export type Props = {
|
|
9
|
-
selectProps?: SelectProps<OptionType, boolean>;
|
|
10
|
-
innerRef: (ref: React.Ref<HTMLInputElement>) => void;
|
|
11
9
|
ariaDescribedBy?: AriaAttributesType;
|
|
10
|
+
innerRef: (ref: React.Ref<HTMLInputElement>) => void;
|
|
11
|
+
selectProps?: SelectProps<OptionType, boolean>;
|
|
12
12
|
};
|
|
13
13
|
export declare class Input extends React.Component<Props & AriaAttributes> {
|
|
14
14
|
handleKeyPress: (e: KeyboardEvent) => void;
|
|
@@ -9,14 +9,14 @@ import { type Option, type UserPickerProps } from '../types';
|
|
|
9
9
|
import { type MultiValueProps } from '@atlaskit/select';
|
|
10
10
|
export declare const scrollToValue: (valueContainer: HTMLDivElement, control: HTMLElement) => void;
|
|
11
11
|
type Props = MultiValueProps<OptionType> & {
|
|
12
|
-
isFocused?: boolean;
|
|
13
12
|
data: Option;
|
|
14
13
|
innerProps: any;
|
|
14
|
+
isFocused?: boolean;
|
|
15
|
+
ref?: React.RefObject<HTMLDivElement>;
|
|
15
16
|
removeProps: {
|
|
16
17
|
onClick: Function;
|
|
17
18
|
};
|
|
18
19
|
selectProps: UserPickerProps;
|
|
19
|
-
ref?: React.RefObject<HTMLDivElement>;
|
|
20
20
|
};
|
|
21
21
|
export declare class MultiValue extends React.Component<Props> {
|
|
22
22
|
private containerRef;
|
|
@@ -6,8 +6,8 @@ import { type MultiValueProps } from '@atlaskit/select';
|
|
|
6
6
|
import React from 'react';
|
|
7
7
|
import { type Option, type User } from '../types';
|
|
8
8
|
export type State = {
|
|
9
|
-
valueSize: number;
|
|
10
9
|
previousValueSize: number;
|
|
10
|
+
valueSize: number;
|
|
11
11
|
};
|
|
12
12
|
type Props = MultiValueProps<Option<User>[], true> & {
|
|
13
13
|
innerProps?: ValueContainerInnerProps;
|
|
@@ -3,12 +3,12 @@ import { type FC } from 'react';
|
|
|
3
3
|
import { type Option as OptionType } from '../types';
|
|
4
4
|
export type OptionProps = AkOptionProps & {
|
|
5
5
|
data: OptionType;
|
|
6
|
-
isSelected: boolean;
|
|
7
6
|
isDisabled: boolean;
|
|
8
7
|
isFocused: boolean;
|
|
9
|
-
|
|
8
|
+
isSelected: boolean;
|
|
10
9
|
selectProps: {
|
|
11
10
|
emailLabel?: string;
|
|
12
11
|
};
|
|
12
|
+
status?: string;
|
|
13
13
|
};
|
|
14
14
|
export declare const Option: FC<OptionProps>;
|
|
@@ -10,97 +10,95 @@ export declare class PopupUserPickerWithoutAnalytics extends React.Component<Pop
|
|
|
10
10
|
};
|
|
11
11
|
handleFlipStyle: (data: {
|
|
12
12
|
flipped: boolean;
|
|
13
|
-
styles: any;
|
|
14
13
|
popper: any;
|
|
14
|
+
styles: any;
|
|
15
15
|
}) => {
|
|
16
16
|
flipped: boolean;
|
|
17
|
-
styles: any;
|
|
18
17
|
popper: any;
|
|
18
|
+
styles: any;
|
|
19
19
|
};
|
|
20
20
|
render(): React.JSX.Element;
|
|
21
21
|
}
|
|
22
22
|
export declare const PopupUserPicker: React.ForwardRefExoticComponent<Omit<Pick<Omit<{
|
|
23
|
+
addMoreMessage?: string;
|
|
24
|
+
allowEmail?: boolean;
|
|
25
|
+
anchor?: React.ComponentType<any>;
|
|
26
|
+
appearance?: import("../types").Appearance;
|
|
27
|
+
ariaDescribedBy?: string;
|
|
28
|
+
ariaLabel?: string;
|
|
29
|
+
ariaLabelledBy?: string;
|
|
30
|
+
ariaLive?: "polite" | "off" | "assertive";
|
|
31
|
+
autoFocus?: boolean;
|
|
32
|
+
captureMenuScroll?: boolean;
|
|
33
|
+
clearValueLabel?: string;
|
|
34
|
+
closeMenuOnScroll?: boolean | EventListener;
|
|
35
|
+
components?: import("@atlaskit/select").SelectComponentsConfig<import("../types").OptionData, boolean>;
|
|
36
|
+
defaultValue?: import("../types").DefaultValue;
|
|
37
|
+
disableInput?: boolean;
|
|
38
|
+
emailLabel?: string;
|
|
23
39
|
fieldId: string | null;
|
|
24
|
-
|
|
25
|
-
|
|
40
|
+
footer?: React.ReactNode;
|
|
41
|
+
forwardedRef?: React.ForwardedRef<import("../types").UserPickerRef>;
|
|
42
|
+
groupByTypeOrder?: NonNullable<import("../types").OptionData["type"]>[];
|
|
43
|
+
header?: React.ReactNode;
|
|
26
44
|
height?: number | string;
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
45
|
+
inputId?: string;
|
|
46
|
+
isClearable?: boolean;
|
|
47
|
+
isDisabled?: boolean;
|
|
48
|
+
isInvalid?: boolean;
|
|
49
|
+
isLoading?: boolean;
|
|
50
|
+
isMulti?: boolean;
|
|
51
|
+
isValidEmail?: import("./emailValidation").EmailValidator;
|
|
30
52
|
loadOptions?: import("../types").LoadOptions;
|
|
31
53
|
loadOptionsErrorMessage?: (value: {
|
|
32
54
|
inputValue: string;
|
|
33
55
|
}) => React.ReactNode;
|
|
34
56
|
loadUserSource?: import("../types").LoadUserSource;
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
57
|
+
maxOptions?: number;
|
|
58
|
+
maxPickerHeight?: number;
|
|
59
|
+
menuMinWidth?: number;
|
|
60
|
+
menuPortalTarget?: HTMLElement;
|
|
61
|
+
menuPosition?: "absolute" | "fixed";
|
|
62
|
+
menuShouldBlockScroll?: boolean;
|
|
63
|
+
name?: string;
|
|
64
|
+
noBorder?: boolean;
|
|
65
|
+
noOptionsMessage?: ((value: {
|
|
66
|
+
inputValue: string;
|
|
67
|
+
}) => string | null | React.ReactNode) | null | React.ReactNode;
|
|
44
68
|
onBlur?: import("../types").OnPicker;
|
|
69
|
+
onChange?: import("../types").OnChange;
|
|
45
70
|
onClear?: import("../types").OnPicker;
|
|
46
|
-
onOpen?: import("../types").OnPicker;
|
|
47
71
|
onClose?: import("../types").OnPicker;
|
|
72
|
+
onFocus?: import("../types").OnPicker;
|
|
73
|
+
onInputChange?: import("../types").OnInputChange;
|
|
48
74
|
onKeyDown?: (event: React.KeyboardEvent) => void;
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
defaultValue?: import("../types").DefaultValue;
|
|
75
|
+
onOpen?: import("../types").OnPicker;
|
|
76
|
+
onSelection?: import("../types").OnOption;
|
|
77
|
+
open?: boolean;
|
|
78
|
+
openMenuOnClick?: boolean;
|
|
79
|
+
options?: import("../types").OptionData[];
|
|
55
80
|
placeholder?: React.ReactNode;
|
|
56
81
|
placeholderAvatar?: "person" | "team";
|
|
57
|
-
addMoreMessage?: string;
|
|
58
|
-
noOptionsMessage?: ((value: {
|
|
59
|
-
inputValue: string;
|
|
60
|
-
}) => string | null | React.ReactNode) | null | React.ReactNode;
|
|
61
|
-
footer?: React.ReactNode;
|
|
62
|
-
value?: import("../types").Value;
|
|
63
|
-
isDisabled?: boolean;
|
|
64
|
-
isInvalid?: boolean;
|
|
65
|
-
isClearable?: boolean;
|
|
66
|
-
clearValueLabel?: string;
|
|
67
|
-
menuPosition?: "absolute" | "fixed";
|
|
68
|
-
captureMenuScroll?: boolean;
|
|
69
|
-
menuPortalTarget?: HTMLElement;
|
|
70
|
-
allowEmail?: boolean;
|
|
71
|
-
suggestEmailsForDomain?: string;
|
|
72
|
-
emailLabel?: string;
|
|
73
|
-
disableInput?: boolean;
|
|
74
|
-
isValidEmail?: import("./emailValidation").EmailValidator;
|
|
75
|
-
autoFocus?: boolean;
|
|
76
|
-
maxOptions?: number;
|
|
77
|
-
inputId?: string;
|
|
78
|
-
closeMenuOnScroll?: boolean | EventListener;
|
|
79
|
-
menuShouldBlockScroll?: boolean;
|
|
80
|
-
ariaLabel?: string;
|
|
81
|
-
ariaLabelledBy?: string;
|
|
82
|
-
ariaDescribedBy?: string;
|
|
83
|
-
ariaLive?: "polite" | "off" | "assertive";
|
|
84
|
-
name?: string;
|
|
85
|
-
header?: React.ReactNode;
|
|
86
82
|
required?: boolean;
|
|
87
|
-
|
|
88
|
-
openMenuOnClick?: boolean;
|
|
89
|
-
strategy?: "fixed" | "absolute";
|
|
83
|
+
search?: string;
|
|
90
84
|
showClearIndicator?: boolean;
|
|
91
|
-
|
|
92
|
-
|
|
85
|
+
strategy?: "fixed" | "absolute";
|
|
86
|
+
styles?: import("@atlaskit/select").StylesConfig;
|
|
87
|
+
subtle?: boolean;
|
|
88
|
+
suggestEmailsForDomain?: string;
|
|
89
|
+
textFieldBackgroundColor?: boolean;
|
|
90
|
+
UNSAFE_hasDraggableParentComponent?: boolean;
|
|
91
|
+
value?: import("../types").Value;
|
|
92
|
+
width?: number | string;
|
|
93
93
|
} & {
|
|
94
|
-
target: import("../types").Target;
|
|
95
|
-
popupTitle?: string;
|
|
96
94
|
boundariesElement?: import("../types").BoundariesElement;
|
|
97
95
|
offset?: [number, number];
|
|
98
96
|
placement?: import("@popperjs/core").Placement;
|
|
97
|
+
popupTitle?: string;
|
|
99
98
|
rootBoundary?: import("../types").RootBoundary;
|
|
100
99
|
shouldFlip?: boolean;
|
|
100
|
+
target: import("../types").Target;
|
|
101
101
|
}, keyof import("@atlaskit/analytics-next").WithAnalyticsEventsProps>, never> & {
|
|
102
|
-
options?: import("../types").OptionData[] | undefined;
|
|
103
|
-
search?: string | undefined;
|
|
104
102
|
placeholder?: React.ReactNode;
|
|
105
103
|
isDisabled?: boolean | undefined;
|
|
106
104
|
offset?: [number, number] | undefined;
|
|
@@ -126,6 +124,7 @@ export declare const PopupUserPicker: React.ForwardRefExoticComponent<Omit<Pick<
|
|
|
126
124
|
onInputChange?: import("../types").OnInputChange | undefined;
|
|
127
125
|
onKeyDown?: ((event: React.KeyboardEvent) => void) | undefined;
|
|
128
126
|
openMenuOnClick?: boolean | undefined;
|
|
127
|
+
options?: import("../types").OptionData[] | undefined;
|
|
129
128
|
styles?: import("@atlaskit/select").StylesConfig | undefined;
|
|
130
129
|
value?: import("../types").Value;
|
|
131
130
|
required?: boolean | undefined;
|
|
@@ -133,44 +132,45 @@ export declare const PopupUserPicker: React.ForwardRefExoticComponent<Omit<Pick<
|
|
|
133
132
|
footer?: React.ReactNode;
|
|
134
133
|
target?: import("../types").Target | undefined;
|
|
135
134
|
defaultValue?: import("../types").DefaultValue;
|
|
135
|
+
search?: string | undefined;
|
|
136
136
|
anchor?: React.ComponentType<any> | undefined;
|
|
137
|
+
addMoreMessage?: string | undefined;
|
|
138
|
+
allowEmail?: boolean | undefined;
|
|
139
|
+
ariaDescribedBy?: string | undefined;
|
|
140
|
+
ariaLabel?: string | undefined;
|
|
141
|
+
ariaLabelledBy?: string | undefined;
|
|
142
|
+
ariaLive?: "polite" | "off" | "assertive" | undefined;
|
|
143
|
+
clearValueLabel?: string | undefined;
|
|
144
|
+
disableInput?: boolean | undefined;
|
|
145
|
+
emailLabel?: string | undefined;
|
|
137
146
|
fieldId?: string | null | undefined;
|
|
138
|
-
|
|
147
|
+
forwardedRef?: React.ForwardedRef<import("../types").UserPickerRef> | undefined;
|
|
148
|
+
groupByTypeOrder?: NonNullable<import("../types").OptionData["type"]>[] | undefined;
|
|
149
|
+
header?: React.ReactNode;
|
|
139
150
|
height?: number | string | undefined;
|
|
140
|
-
|
|
141
|
-
maxPickerHeight?: number | undefined;
|
|
142
|
-
textFieldBackgroundColor?: boolean | undefined;
|
|
151
|
+
isValidEmail?: import("./emailValidation").EmailValidator | undefined;
|
|
143
152
|
loadOptions?: import("../types").LoadOptions | undefined;
|
|
144
153
|
loadOptionsErrorMessage?: ((value: {
|
|
145
154
|
inputValue: string;
|
|
146
155
|
}) => React.ReactNode) | undefined;
|
|
147
156
|
loadUserSource?: import("../types").LoadUserSource | undefined;
|
|
148
|
-
|
|
149
|
-
|
|
157
|
+
maxOptions?: number | undefined;
|
|
158
|
+
maxPickerHeight?: number | undefined;
|
|
159
|
+
menuMinWidth?: number | undefined;
|
|
160
|
+
noBorder?: boolean | undefined;
|
|
150
161
|
onClear?: import("../types").OnPicker | undefined;
|
|
151
|
-
onOpen?: import("../types").OnPicker | undefined;
|
|
152
162
|
onClose?: import("../types").OnPicker | undefined;
|
|
153
|
-
|
|
154
|
-
|
|
163
|
+
onOpen?: import("../types").OnPicker | undefined;
|
|
164
|
+
onSelection?: import("../types").OnOption | undefined;
|
|
165
|
+
open?: boolean | undefined;
|
|
155
166
|
placeholderAvatar?: "person" | "team" | undefined;
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
167
|
+
showClearIndicator?: boolean | undefined;
|
|
168
|
+
strategy?: "fixed" | "absolute" | undefined;
|
|
169
|
+
subtle?: boolean | undefined;
|
|
159
170
|
suggestEmailsForDomain?: string | undefined;
|
|
160
|
-
|
|
161
|
-
disableInput?: boolean | undefined;
|
|
162
|
-
isValidEmail?: import("./emailValidation").EmailValidator | undefined;
|
|
163
|
-
maxOptions?: number | undefined;
|
|
164
|
-
ariaLabel?: string | undefined;
|
|
165
|
-
ariaLabelledBy?: string | undefined;
|
|
166
|
-
ariaDescribedBy?: string | undefined;
|
|
167
|
-
ariaLive?: "polite" | "off" | "assertive" | undefined;
|
|
168
|
-
header?: React.ReactNode;
|
|
171
|
+
textFieldBackgroundColor?: boolean | undefined;
|
|
169
172
|
UNSAFE_hasDraggableParentComponent?: boolean | undefined;
|
|
170
|
-
|
|
171
|
-
showClearIndicator?: boolean | undefined;
|
|
172
|
-
forwardedRef?: React.ForwardedRef<import("../types").UserPickerRef> | undefined;
|
|
173
|
-
groupByTypeOrder?: NonNullable<import("../types").OptionData["type"]>[] | undefined;
|
|
173
|
+
width?: number | string | undefined;
|
|
174
174
|
popupTitle?: string | undefined;
|
|
175
175
|
placement?: import("@popperjs/core").Placement | undefined;
|
|
176
176
|
rootBoundary?: import("../types").RootBoundary | undefined;
|