@atlaskit/user-picker 11.6.1 → 11.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 +21 -0
- package/afm-cc/tsconfig.json +2 -2
- package/dist/cjs/analytics.js +1 -1
- package/dist/cjs/components/UserPicker.js +1 -1
- package/dist/cjs/components/styles.js +2 -2
- package/dist/es2019/analytics.js +1 -1
- package/dist/es2019/components/UserPicker.js +1 -1
- package/dist/es2019/components/styles.js +2 -2
- package/dist/esm/analytics.js +1 -1
- package/dist/esm/components/UserPicker.js +1 -1
- package/dist/esm/components/styles.js +2 -2
- 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 +7 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,26 @@
|
|
|
1
1
|
# @atlaskit/user-picker
|
|
2
2
|
|
|
3
|
+
## 11.6.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`d281a835c4897`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/d281a835c4897) -
|
|
8
|
+
[ux]
|
|
9
|
+
|
|
10
|
+
- `TeamCreateDialog`
|
|
11
|
+
- Fixed incorrect ariaDescribedBy identifier so that VoiceOver can read out the error message.
|
|
12
|
+
- Programmatically focus the input on submit when there is an error.
|
|
13
|
+
|
|
14
|
+
- Updated dependencies
|
|
15
|
+
|
|
16
|
+
## 11.6.2
|
|
17
|
+
|
|
18
|
+
### Patch Changes
|
|
19
|
+
|
|
20
|
+
- [`0fdcb6f2f96fd`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/0fdcb6f2f96fd) -
|
|
21
|
+
Sorted type and interface props to improve Atlaskit docs
|
|
22
|
+
- Updated dependencies
|
|
23
|
+
|
|
3
24
|
## 11.6.1
|
|
4
25
|
|
|
5
26
|
### Patch Changes
|
package/afm-cc/tsconfig.json
CHANGED
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.6.
|
|
15
|
+
var packageVersion = "11.6.2";
|
|
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}$/;
|
|
@@ -102,7 +102,7 @@ var UserPickerWithoutAnalytics = exports.UserPickerWithoutAnalytics = /*#__PURE_
|
|
|
102
102
|
SelectComponent: SelectComponent
|
|
103
103
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
104
104
|
,
|
|
105
|
-
styles: (0, _styles.getStyles)(width, isMulti, this.props.appearance === 'compact', this.props.styles, this.props.isInvalid,
|
|
105
|
+
styles: (0, _styles.getStyles)(width, isMulti, this.props.appearance === 'compact', this.props.styles, (0, _platformFeatureFlags.fg)('uxissue-914') ? undefined : this.props.isInvalid,
|
|
106
106
|
// eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-prefix
|
|
107
107
|
(0, _platformFeatureFlags.fg)('platform-component-visual-refresh'), false, (0, _platformFeatureFlags.fg)('jifjam_bulk_operations') ? this.props.height : undefined),
|
|
108
108
|
components: (0, _components.getComponents)(isMulti, anchor, showClearIndicator, (_this$props2 = this.props) !== null && _this$props2 !== void 0 && _this$props2.components ? this.props.components : {}),
|
|
@@ -36,13 +36,13 @@ var getStyles = exports.getStyles = (0, _memoizeOne.default)(function (width, is
|
|
|
36
36
|
var isMulti = state.selectProps.isMulti;
|
|
37
37
|
return _objectSpread(_objectSpread({}, css), {}, {
|
|
38
38
|
width: width,
|
|
39
|
-
borderColor: isInvalid ? "var(--ds-border-danger, ".concat(_colors.R400, ")") : state.isFocused ? "var(--ds-border-focused, ".concat(css.borderColor, ")") : state.selectProps.subtle || state.selectProps.noBorder ? 'transparent' : "var(--ds-border-input, ".concat(_colors.N90, ")"),
|
|
39
|
+
borderColor: (0, _platformFeatureFlags.fg)('uxissue-914') ? state.isFocused ? "var(--ds-border-focused, ".concat(css.borderColor, ")") : state.isInvalid ? "var(--ds-border-danger, ".concat(_colors.R400, ")") : state.selectProps.subtle || state.selectProps.noBorder ? 'transparent' : "var(--ds-border-input, ".concat(_colors.N90, ")") : isInvalid ? "var(--ds-border-danger, ".concat(_colors.R400, ")") : state.isFocused ? "var(--ds-border-focused, ".concat(css.borderColor, ")") : state.selectProps.subtle || state.selectProps.noBorder ? 'transparent' : "var(--ds-border-input, ".concat(_colors.N90, ")"),
|
|
40
40
|
backgroundColor: state.isFocused ? "var(--ds-background-input, ".concat(css['backgroundColor'], ")") : state.selectProps.subtle ? 'transparent' : state.selectProps.textFieldBackgroundColor ? "var(--ds-background-input, ".concat(_colors.N10, ")") : "var(--ds-background-input, ".concat(_colors.N20, ")"),
|
|
41
41
|
'&:hover .fabric-user-picker__clear-indicator': {
|
|
42
42
|
opacity: 1
|
|
43
43
|
},
|
|
44
44
|
':hover': _objectSpread(_objectSpread({}, css[':hover']), {}, {
|
|
45
|
-
borderColor: isInvalid ? "var(--ds-border-danger, ".concat(_colors.R400, ")") : state.isFocused ? css[':hover'] ? "var(--ds-border-focused, ".concat(css[':hover'].borderColor, ")") : "var(--ds-border-focused, ".concat(_colors.B100, ")") : state.selectProps.subtle ? 'transparent' : "var(--ds-border-input, ".concat(_colors.N90, ")"),
|
|
45
|
+
borderColor: (0, _platformFeatureFlags.fg)('uxissue-914') ? state.isFocused ? css[':hover'] ? "var(--ds-border-focused, ".concat(css[':hover'].borderColor, ")") : "var(--ds-border-focused, ".concat(_colors.B100, ")") : state.isInvalid ? "var(--ds-border-danger, ".concat(_colors.R400, ")") : state.selectProps.subtle ? 'transparent' : "var(--ds-border-input, ".concat(_colors.N90, ")") : isInvalid ? "var(--ds-border-danger, ".concat(_colors.R400, ")") : state.isFocused ? css[':hover'] ? "var(--ds-border-focused, ".concat(css[':hover'].borderColor, ")") : "var(--ds-border-focused, ".concat(_colors.B100, ")") : state.selectProps.subtle ? 'transparent' : "var(--ds-border-input, ".concat(_colors.N90, ")"),
|
|
46
46
|
backgroundColor: state.selectProps.subtle && state.selectProps.hoveringClearIndicator ? "var(--ds-background-danger, ".concat(_colors.R50, ")") : state.isFocused ? css[':hover'] ? "var(--ds-background-input, ".concat(css[':hover'].backgroundColor, ")") : "var(--ds-background-input, ".concat(_colors.N0, ")") : state.isDisabled ? "var(--ds-background-disabled, ".concat(_colors.N10, ")") : "var(--ds-background-input-hovered, ".concat(_colors.N30, ")")
|
|
47
47
|
}),
|
|
48
48
|
padding: 0,
|
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.6.
|
|
5
|
+
const packageVersion = "11.6.2";
|
|
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}$/;
|
|
@@ -79,7 +79,7 @@ export class UserPickerWithoutAnalytics extends React.Component {
|
|
|
79
79
|
SelectComponent: SelectComponent
|
|
80
80
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
81
81
|
,
|
|
82
|
-
styles: getStyles(width, isMulti, this.props.appearance === 'compact', this.props.styles, this.props.isInvalid,
|
|
82
|
+
styles: getStyles(width, isMulti, this.props.appearance === 'compact', this.props.styles, fg('uxissue-914') ? undefined : this.props.isInvalid,
|
|
83
83
|
// eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-prefix
|
|
84
84
|
fg('platform-component-visual-refresh'), false, fg('jifjam_bulk_operations') ? this.props.height : undefined),
|
|
85
85
|
components: getComponents(isMulti, anchor, showClearIndicator, (_this$props = this.props) !== null && _this$props !== void 0 && _this$props.components ? this.props.components : {}),
|
|
@@ -22,14 +22,14 @@ export const getStyles = memoizeOne((width, isMulti, isCompact, overrideStyles,
|
|
|
22
22
|
return {
|
|
23
23
|
...css,
|
|
24
24
|
width,
|
|
25
|
-
borderColor: isInvalid ? `var(--ds-border-danger, ${R400})` : state.isFocused ? `var(--ds-border-focused, ${css.borderColor})` : state.selectProps.subtle || state.selectProps.noBorder ? 'transparent' : `var(--ds-border-input, ${N90})`,
|
|
25
|
+
borderColor: fg('uxissue-914') ? state.isFocused ? `var(--ds-border-focused, ${css.borderColor})` : state.isInvalid ? `var(--ds-border-danger, ${R400})` : state.selectProps.subtle || state.selectProps.noBorder ? 'transparent' : `var(--ds-border-input, ${N90})` : isInvalid ? `var(--ds-border-danger, ${R400})` : state.isFocused ? `var(--ds-border-focused, ${css.borderColor})` : state.selectProps.subtle || state.selectProps.noBorder ? 'transparent' : `var(--ds-border-input, ${N90})`,
|
|
26
26
|
backgroundColor: state.isFocused ? `var(--ds-background-input, ${css['backgroundColor']})` : state.selectProps.subtle ? 'transparent' : state.selectProps.textFieldBackgroundColor ? `var(--ds-background-input, ${N10})` : `var(--ds-background-input, ${N20})`,
|
|
27
27
|
'&:hover .fabric-user-picker__clear-indicator': {
|
|
28
28
|
opacity: 1
|
|
29
29
|
},
|
|
30
30
|
':hover': {
|
|
31
31
|
...css[':hover'],
|
|
32
|
-
borderColor: isInvalid ? `var(--ds-border-danger, ${R400})` : state.isFocused ? css[':hover'] ? `var(--ds-border-focused, ${css[':hover'].borderColor})` : `var(--ds-border-focused, ${B100})` : state.selectProps.subtle ? 'transparent' : `var(--ds-border-input, ${N90})`,
|
|
32
|
+
borderColor: fg('uxissue-914') ? state.isFocused ? css[':hover'] ? `var(--ds-border-focused, ${css[':hover'].borderColor})` : `var(--ds-border-focused, ${B100})` : state.isInvalid ? `var(--ds-border-danger, ${R400})` : state.selectProps.subtle ? 'transparent' : `var(--ds-border-input, ${N90})` : isInvalid ? `var(--ds-border-danger, ${R400})` : state.isFocused ? css[':hover'] ? `var(--ds-border-focused, ${css[':hover'].borderColor})` : `var(--ds-border-focused, ${B100})` : state.selectProps.subtle ? 'transparent' : `var(--ds-border-input, ${N90})`,
|
|
33
33
|
backgroundColor: state.selectProps.subtle && state.selectProps.hoveringClearIndicator ? `var(--ds-background-danger, ${R50})` : state.isFocused ? css[':hover'] ? `var(--ds-background-input, ${css[':hover'].backgroundColor})` : `var(--ds-background-input, ${N0})` : state.isDisabled ? `var(--ds-background-disabled, ${N10})` : `var(--ds-background-input-hovered, ${N30})`
|
|
34
34
|
},
|
|
35
35
|
padding: 0,
|
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.6.
|
|
8
|
+
var packageVersion = "11.6.2";
|
|
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}$/;
|
|
@@ -93,7 +93,7 @@ export var UserPickerWithoutAnalytics = /*#__PURE__*/function (_React$Component)
|
|
|
93
93
|
SelectComponent: SelectComponent
|
|
94
94
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
95
95
|
,
|
|
96
|
-
styles: getStyles(width, isMulti, this.props.appearance === 'compact', this.props.styles, this.props.isInvalid,
|
|
96
|
+
styles: getStyles(width, isMulti, this.props.appearance === 'compact', this.props.styles, fg('uxissue-914') ? undefined : this.props.isInvalid,
|
|
97
97
|
// eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-prefix
|
|
98
98
|
fg('platform-component-visual-refresh'), false, fg('jifjam_bulk_operations') ? this.props.height : undefined),
|
|
99
99
|
components: getComponents(isMulti, anchor, showClearIndicator, (_this$props2 = this.props) !== null && _this$props2 !== void 0 && _this$props2.components ? this.props.components : {}),
|
|
@@ -29,13 +29,13 @@ export var getStyles = memoizeOne(function (width, isMulti, isCompact, overrideS
|
|
|
29
29
|
var isMulti = state.selectProps.isMulti;
|
|
30
30
|
return _objectSpread(_objectSpread({}, css), {}, {
|
|
31
31
|
width: width,
|
|
32
|
-
borderColor: isInvalid ? "var(--ds-border-danger, ".concat(R400, ")") : state.isFocused ? "var(--ds-border-focused, ".concat(css.borderColor, ")") : state.selectProps.subtle || state.selectProps.noBorder ? 'transparent' : "var(--ds-border-input, ".concat(N90, ")"),
|
|
32
|
+
borderColor: fg('uxissue-914') ? state.isFocused ? "var(--ds-border-focused, ".concat(css.borderColor, ")") : state.isInvalid ? "var(--ds-border-danger, ".concat(R400, ")") : state.selectProps.subtle || state.selectProps.noBorder ? 'transparent' : "var(--ds-border-input, ".concat(N90, ")") : isInvalid ? "var(--ds-border-danger, ".concat(R400, ")") : state.isFocused ? "var(--ds-border-focused, ".concat(css.borderColor, ")") : state.selectProps.subtle || state.selectProps.noBorder ? 'transparent' : "var(--ds-border-input, ".concat(N90, ")"),
|
|
33
33
|
backgroundColor: state.isFocused ? "var(--ds-background-input, ".concat(css['backgroundColor'], ")") : state.selectProps.subtle ? 'transparent' : state.selectProps.textFieldBackgroundColor ? "var(--ds-background-input, ".concat(N10, ")") : "var(--ds-background-input, ".concat(N20, ")"),
|
|
34
34
|
'&:hover .fabric-user-picker__clear-indicator': {
|
|
35
35
|
opacity: 1
|
|
36
36
|
},
|
|
37
37
|
':hover': _objectSpread(_objectSpread({}, css[':hover']), {}, {
|
|
38
|
-
borderColor: isInvalid ? "var(--ds-border-danger, ".concat(R400, ")") : state.isFocused ? css[':hover'] ? "var(--ds-border-focused, ".concat(css[':hover'].borderColor, ")") : "var(--ds-border-focused, ".concat(B100, ")") : state.selectProps.subtle ? 'transparent' : "var(--ds-border-input, ".concat(N90, ")"),
|
|
38
|
+
borderColor: fg('uxissue-914') ? state.isFocused ? css[':hover'] ? "var(--ds-border-focused, ".concat(css[':hover'].borderColor, ")") : "var(--ds-border-focused, ".concat(B100, ")") : state.isInvalid ? "var(--ds-border-danger, ".concat(R400, ")") : state.selectProps.subtle ? 'transparent' : "var(--ds-border-input, ".concat(N90, ")") : isInvalid ? "var(--ds-border-danger, ".concat(R400, ")") : state.isFocused ? css[':hover'] ? "var(--ds-border-focused, ".concat(css[':hover'].borderColor, ")") : "var(--ds-border-focused, ".concat(B100, ")") : state.selectProps.subtle ? 'transparent' : "var(--ds-border-input, ".concat(N90, ")"),
|
|
39
39
|
backgroundColor: state.selectProps.subtle && state.selectProps.hoveringClearIndicator ? "var(--ds-background-danger, ".concat(R50, ")") : state.isFocused ? css[':hover'] ? "var(--ds-background-input, ".concat(css[':hover'].backgroundColor, ")") : "var(--ds-background-input, ".concat(N0, ")") : state.isDisabled ? "var(--ds-background-disabled, ".concat(N10, ")") : "var(--ds-background-input-hovered, ".concat(N30, ")")
|
|
40
40
|
}),
|
|
41
41
|
padding: 0,
|
|
@@ -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>;
|