@atlaskit/user-picker 11.18.3 → 11.20.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 +22 -0
- package/afm-cc/tsconfig.json +4 -1
- package/afm-jira/tsconfig.json +3 -0
- package/afm-products/tsconfig.json +3 -0
- package/dist/cjs/analytics.js +11 -4
- package/dist/cjs/components/AddOptionAvatar.js +0 -2
- package/dist/cjs/components/ExternalUserOption/InfoIcon.js +0 -2
- package/dist/cjs/components/GroupOption/main.js +0 -1
- package/dist/cjs/components/MultiValue.js +0 -3
- package/dist/es2019/analytics.js +15 -8
- package/dist/es2019/components/AddOptionAvatar.js +0 -2
- package/dist/es2019/components/ExternalUserOption/InfoIcon.js +0 -2
- package/dist/es2019/components/GroupOption/main.js +0 -1
- package/dist/es2019/components/MultiValue.js +0 -3
- package/dist/esm/analytics.js +11 -4
- package/dist/esm/components/AddOptionAvatar.js +0 -2
- package/dist/esm/components/ExternalUserOption/InfoIcon.js +0 -2
- package/dist/esm/components/GroupOption/main.js +0 -1
- package/dist/esm/components/MultiValue.js +0 -3
- package/dist/types/components/BaseUserPicker.d.ts +1 -1
- package/dist/types/components/PopupUserPicker.d.ts +3 -3
- package/dist/types/components/UserPicker.d.ts +1 -1
- package/dist/types/types.d.ts +1 -1
- package/dist/types-ts4.5/components/BaseUserPicker.d.ts +1 -1
- package/dist/types-ts4.5/components/PopupUserPicker.d.ts +3 -3
- package/dist/types-ts4.5/components/UserPicker.d.ts +1 -1
- package/dist/types-ts4.5/types.d.ts +1 -1
- package/package.json +6 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,27 @@
|
|
|
1
1
|
# @atlaskit/user-picker
|
|
2
2
|
|
|
3
|
+
## 11.20.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`19a12355991dc`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/19a12355991dc) -
|
|
8
|
+
update user types to use PendingInviteUser and improve type safety in invite logic
|
|
9
|
+
|
|
10
|
+
### Patch Changes
|
|
11
|
+
|
|
12
|
+
- Updated dependencies
|
|
13
|
+
|
|
14
|
+
## 11.19.0
|
|
15
|
+
|
|
16
|
+
### Minor Changes
|
|
17
|
+
|
|
18
|
+
- [`87b12e64ff750`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/87b12e64ff750) -
|
|
19
|
+
Removed usages of LEGACY icon props
|
|
20
|
+
|
|
21
|
+
### Patch Changes
|
|
22
|
+
|
|
23
|
+
- Updated dependencies
|
|
24
|
+
|
|
3
25
|
## 11.18.3
|
|
4
26
|
|
|
5
27
|
### Patch Changes
|
package/afm-cc/tsconfig.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"extends": "../../../../tsconfig.
|
|
2
|
+
"extends": "../../../../tsconfig.local-consumption.json",
|
|
3
3
|
"compilerOptions": {
|
|
4
4
|
"declaration": true,
|
|
5
5
|
"target": "es5",
|
|
@@ -30,6 +30,9 @@
|
|
|
30
30
|
{
|
|
31
31
|
"path": "../../../design-system/avatar/afm-cc/tsconfig.json"
|
|
32
32
|
},
|
|
33
|
+
{
|
|
34
|
+
"path": "../../../measurement/feature-gate-js-client/afm-cc/tsconfig.json"
|
|
35
|
+
},
|
|
33
36
|
{
|
|
34
37
|
"path": "../../../design-system/icon/afm-cc/tsconfig.json"
|
|
35
38
|
},
|
package/afm-jira/tsconfig.json
CHANGED
package/dist/cjs/analytics.js
CHANGED
|
@@ -7,12 +7,13 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
exports.userInfoEvent = exports.startSession = exports.selectEvent = exports.searchedEvent = exports.focusEvent = exports.failedEvent = exports.deleteEvent = exports.createAndFireEventInElementsChannel = exports.clearEvent = exports.cancelEvent = void 0;
|
|
8
8
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
9
9
|
var _analyticsNext = require("@atlaskit/analytics-next");
|
|
10
|
+
var _featureGateJsClient = _interopRequireDefault(require("@atlaskit/feature-gate-js-client"));
|
|
10
11
|
var _uuid = require("uuid");
|
|
11
12
|
var _utils = require("./components/utils");
|
|
12
13
|
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
14
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (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; } // eslint-disable-next-line @atlaskit/platform/prefer-crypto-random-uuid -- Use crypto.randomUUID instead
|
|
14
15
|
var packageName = "@atlaskit/user-picker";
|
|
15
|
-
var packageVersion = "
|
|
16
|
+
var packageVersion = "11.19.0";
|
|
16
17
|
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
18
|
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
19
|
var UUID_REGEXP_NEW_AAID = /^[a-fA-F0-9]{24,24}$/;
|
|
@@ -95,13 +96,19 @@ var clearEvent = exports.clearEvent = function clearEvent(props, state, session,
|
|
|
95
96
|
}));
|
|
96
97
|
};
|
|
97
98
|
var deleteEvent = exports.deleteEvent = function deleteEvent(props, state, session, journeyId) {
|
|
98
|
-
|
|
99
|
+
var _args$;
|
|
100
|
+
for (var _len = arguments.length, args = new Array(_len > 4 ? _len - 4 : 0), _key = 4; _key < _len; _key++) {
|
|
101
|
+
args[_key - 4] = arguments[_key];
|
|
102
|
+
}
|
|
103
|
+
return createEvent('ui', 'deleted', 'userPickerItem', _objectSpread({
|
|
99
104
|
context: props.fieldId,
|
|
100
105
|
sessionId: sessionId(session),
|
|
101
106
|
journeyId: journeyId,
|
|
102
|
-
value: optionData2Analytics(
|
|
107
|
+
value: optionData2Analytics(args[0]),
|
|
103
108
|
pickerOpen: state.menuIsOpen
|
|
104
|
-
})
|
|
109
|
+
}, _featureGateJsClient.default.getExperimentValue('team_member_suggestions_while_creating_team', 'isEnabled', false) && ((_args$ = args[0]) === null || _args$ === void 0 ? void 0 : _args$.isSuggestedMember) !== undefined ? {
|
|
110
|
+
isSuggestedMember: args[0].isSuggestedMember
|
|
111
|
+
} : {}));
|
|
105
112
|
};
|
|
106
113
|
var cancelEvent = exports.cancelEvent = function cancelEvent(props, _, session, journeyId) {
|
|
107
114
|
return createEvent('ui', 'cancelled', 'userPicker', _objectSpread(_objectSpread({}, createDefaultPickerAttributes(props, session, journeyId)), {}, {
|
|
@@ -42,8 +42,6 @@ var AddOptionAvatar = exports.AddOptionAvatar = function AddOptionAvatar(_ref) {
|
|
|
42
42
|
}, (0, _react.jsx)(_email.default, {
|
|
43
43
|
testId: "add-option-avatar-email-icon",
|
|
44
44
|
label: label || '',
|
|
45
|
-
LEGACY_size: isLozenge ? 'small' : 'medium',
|
|
46
|
-
LEGACY_margin: "0 0 0 -2px",
|
|
47
45
|
color: isPendingAction && (0, _platformFeatureFlags.fg)('twcg-444-invite-usd-improvements-m2-gate') ? "var(--ds-text-warning, #9E4C00)" : "var(--ds-text-subtle, ".concat(_colors.N500, ")")
|
|
48
46
|
}))
|
|
49
47
|
);
|
|
@@ -41,8 +41,6 @@ var _default = exports.default = function _default() {
|
|
|
41
41
|
}, (0, _react2.jsx)(_statusInformation.default, {
|
|
42
42
|
testId: "source-icon",
|
|
43
43
|
label: "",
|
|
44
|
-
LEGACY_size: "large",
|
|
45
|
-
LEGACY_margin: "0 ".concat("var(--ds-space-negative-050, -4px)", " 0 0"),
|
|
46
44
|
spacing: "spacious",
|
|
47
45
|
color: "var(--ds-text-subtlest, ".concat(isMouseHovered ? _colors.N200 : _colors.N50, ")")
|
|
48
46
|
}))
|
|
@@ -70,11 +70,8 @@ var MultiValue = exports.MultiValue = /*#__PURE__*/function (_React$Component) {
|
|
|
70
70
|
return (0, _react2.jsx)(_primitives.Box, {
|
|
71
71
|
xcss: groupTagContainer
|
|
72
72
|
}, (0, _react2.jsx)(_peopleGroup.default, {
|
|
73
|
-
LEGACY_margin: "-2px 0 0 0",
|
|
74
73
|
color: "currentColor",
|
|
75
74
|
label: "" // This element is a decorative icon and does not require a label
|
|
76
|
-
,
|
|
77
|
-
LEGACY_size: "small"
|
|
78
75
|
}));
|
|
79
76
|
}
|
|
80
77
|
|
package/dist/es2019/analytics.js
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { createAndFireEvent } from '@atlaskit/analytics-next';
|
|
2
|
+
import FeatureGates from '@atlaskit/feature-gate-js-client';
|
|
2
3
|
// eslint-disable-next-line @atlaskit/platform/prefer-crypto-random-uuid -- Use crypto.randomUUID instead
|
|
3
4
|
import { v4 as uuidv4 } from 'uuid';
|
|
4
5
|
import { isCustom, isExternalUser } from './components/utils';
|
|
5
6
|
const packageName = "@atlaskit/user-picker";
|
|
6
|
-
const packageVersion = "
|
|
7
|
+
const packageVersion = "11.19.0";
|
|
7
8
|
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}$/;
|
|
8
9
|
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}$/;
|
|
9
10
|
const UUID_REGEXP_NEW_AAID = /^[a-fA-F0-9]{24,24}$/;
|
|
@@ -80,13 +81,19 @@ export const clearEvent = (props, state, session, journeyId) => createEvent('ui'
|
|
|
80
81
|
pickerOpen: state.menuIsOpen,
|
|
81
82
|
values: values(state)
|
|
82
83
|
});
|
|
83
|
-
export const deleteEvent = (props, state, session, journeyId, ...args) =>
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
84
|
+
export const deleteEvent = (props, state, session, journeyId, ...args) => {
|
|
85
|
+
var _args$;
|
|
86
|
+
return createEvent('ui', 'deleted', 'userPickerItem', {
|
|
87
|
+
context: props.fieldId,
|
|
88
|
+
sessionId: sessionId(session),
|
|
89
|
+
journeyId,
|
|
90
|
+
value: optionData2Analytics(args[0]),
|
|
91
|
+
pickerOpen: state.menuIsOpen,
|
|
92
|
+
...(FeatureGates.getExperimentValue('team_member_suggestions_while_creating_team', 'isEnabled', false) && ((_args$ = args[0]) === null || _args$ === void 0 ? void 0 : _args$.isSuggestedMember) !== undefined ? {
|
|
93
|
+
isSuggestedMember: args[0].isSuggestedMember
|
|
94
|
+
} : {})
|
|
95
|
+
});
|
|
96
|
+
};
|
|
90
97
|
export const cancelEvent = (props, _, session, journeyId, ...args) => createEvent('ui', 'cancelled', 'userPicker', {
|
|
91
98
|
...createDefaultPickerAttributes(props, session, journeyId),
|
|
92
99
|
sessionDuration: sessionDuration(session),
|
|
@@ -34,8 +34,6 @@ export const AddOptionAvatar = ({
|
|
|
34
34
|
}, jsx(EmailIcon, {
|
|
35
35
|
testId: "add-option-avatar-email-icon",
|
|
36
36
|
label: label || '',
|
|
37
|
-
LEGACY_size: isLozenge ? 'small' : 'medium',
|
|
38
|
-
LEGACY_margin: "0 0 0 -2px",
|
|
39
37
|
color: isPendingAction && fg('twcg-444-invite-usd-improvements-m2-gate') ? "var(--ds-text-warning, #9E4C00)" : `var(--ds-text-subtle, ${N500})`
|
|
40
38
|
}))
|
|
41
39
|
);
|
|
@@ -24,8 +24,6 @@ export default (() => {
|
|
|
24
24
|
}, jsx(EditorPanelIcon, {
|
|
25
25
|
testId: "source-icon",
|
|
26
26
|
label: "",
|
|
27
|
-
LEGACY_size: "large",
|
|
28
|
-
LEGACY_margin: `0 ${"var(--ds-space-negative-050, -4px)"} 0 0`,
|
|
29
27
|
spacing: "spacious",
|
|
30
28
|
color: `var(--ds-text-subtlest, ${isMouseHovered ? N200 : N50})`
|
|
31
29
|
}))
|
|
@@ -60,11 +60,8 @@ export class MultiValue extends React.Component {
|
|
|
60
60
|
return jsx(Box, {
|
|
61
61
|
xcss: groupTagContainer
|
|
62
62
|
}, jsx(PeopleIcon, {
|
|
63
|
-
LEGACY_margin: "-2px 0 0 0",
|
|
64
63
|
color: "currentColor",
|
|
65
64
|
label: "" // This element is a decorative icon and does not require a label
|
|
66
|
-
,
|
|
67
|
-
LEGACY_size: "small"
|
|
68
65
|
}));
|
|
69
66
|
}
|
|
70
67
|
|
package/dist/esm/analytics.js
CHANGED
|
@@ -2,11 +2,12 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
|
2
2
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3
3
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4
4
|
import { createAndFireEvent } from '@atlaskit/analytics-next';
|
|
5
|
+
import FeatureGates from '@atlaskit/feature-gate-js-client';
|
|
5
6
|
// eslint-disable-next-line @atlaskit/platform/prefer-crypto-random-uuid -- Use crypto.randomUUID instead
|
|
6
7
|
import { v4 as uuidv4 } from 'uuid';
|
|
7
8
|
import { isCustom, isExternalUser } from './components/utils';
|
|
8
9
|
var packageName = "@atlaskit/user-picker";
|
|
9
|
-
var packageVersion = "
|
|
10
|
+
var packageVersion = "11.19.0";
|
|
10
11
|
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}$/;
|
|
11
12
|
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}$/;
|
|
12
13
|
var UUID_REGEXP_NEW_AAID = /^[a-fA-F0-9]{24,24}$/;
|
|
@@ -89,13 +90,19 @@ export var clearEvent = function clearEvent(props, state, session, journeyId) {
|
|
|
89
90
|
}));
|
|
90
91
|
};
|
|
91
92
|
export var deleteEvent = function deleteEvent(props, state, session, journeyId) {
|
|
92
|
-
|
|
93
|
+
var _args$;
|
|
94
|
+
for (var _len = arguments.length, args = new Array(_len > 4 ? _len - 4 : 0), _key = 4; _key < _len; _key++) {
|
|
95
|
+
args[_key - 4] = arguments[_key];
|
|
96
|
+
}
|
|
97
|
+
return createEvent('ui', 'deleted', 'userPickerItem', _objectSpread({
|
|
93
98
|
context: props.fieldId,
|
|
94
99
|
sessionId: sessionId(session),
|
|
95
100
|
journeyId: journeyId,
|
|
96
|
-
value: optionData2Analytics(
|
|
101
|
+
value: optionData2Analytics(args[0]),
|
|
97
102
|
pickerOpen: state.menuIsOpen
|
|
98
|
-
})
|
|
103
|
+
}, FeatureGates.getExperimentValue('team_member_suggestions_while_creating_team', 'isEnabled', false) && ((_args$ = args[0]) === null || _args$ === void 0 ? void 0 : _args$.isSuggestedMember) !== undefined ? {
|
|
104
|
+
isSuggestedMember: args[0].isSuggestedMember
|
|
105
|
+
} : {}));
|
|
99
106
|
};
|
|
100
107
|
export var cancelEvent = function cancelEvent(props, _, session, journeyId) {
|
|
101
108
|
return createEvent('ui', 'cancelled', 'userPicker', _objectSpread(_objectSpread({}, createDefaultPickerAttributes(props, session, journeyId)), {}, {
|
|
@@ -33,8 +33,6 @@ export var AddOptionAvatar = function AddOptionAvatar(_ref) {
|
|
|
33
33
|
}, jsx(EmailIcon, {
|
|
34
34
|
testId: "add-option-avatar-email-icon",
|
|
35
35
|
label: label || '',
|
|
36
|
-
LEGACY_size: isLozenge ? 'small' : 'medium',
|
|
37
|
-
LEGACY_margin: "0 0 0 -2px",
|
|
38
36
|
color: isPendingAction && fg('twcg-444-invite-usd-improvements-m2-gate') ? "var(--ds-text-warning, #9E4C00)" : "var(--ds-text-subtle, ".concat(N500, ")")
|
|
39
37
|
}))
|
|
40
38
|
);
|
|
@@ -32,8 +32,6 @@ export default (function () {
|
|
|
32
32
|
}, jsx(EditorPanelIcon, {
|
|
33
33
|
testId: "source-icon",
|
|
34
34
|
label: "",
|
|
35
|
-
LEGACY_size: "large",
|
|
36
|
-
LEGACY_margin: "0 ".concat("var(--ds-space-negative-050, -4px)", " 0 0"),
|
|
37
35
|
spacing: "spacious",
|
|
38
36
|
color: "var(--ds-text-subtlest, ".concat(isMouseHovered ? N200 : N50, ")")
|
|
39
37
|
}))
|
|
@@ -65,11 +65,8 @@ export var MultiValue = /*#__PURE__*/function (_React$Component) {
|
|
|
65
65
|
return jsx(Box, {
|
|
66
66
|
xcss: groupTagContainer
|
|
67
67
|
}, jsx(PeopleIcon, {
|
|
68
|
-
LEGACY_margin: "-2px 0 0 0",
|
|
69
68
|
color: "currentColor",
|
|
70
69
|
label: "" // This element is a decorative icon and does not require a label
|
|
71
|
-
,
|
|
72
|
-
LEGACY_size: "small"
|
|
73
70
|
}));
|
|
74
71
|
}
|
|
75
72
|
|
|
@@ -156,7 +156,7 @@ export declare const BaseUserPicker: React.ForwardRefExoticComponent<Pick<Omit<{
|
|
|
156
156
|
*/
|
|
157
157
|
UNSAFE_hasDraggableParentComponent?: boolean;
|
|
158
158
|
width: string | number;
|
|
159
|
-
}, keyof import("@atlaskit/analytics-next").WithAnalyticsEventsProps>, "placeholder" | "isDisabled" | "onChange" | "onInputChange" | "value" | "appearance" | "autoFocus" | "captureMenuScroll" | "closeMenuOnScroll" | "components" | "inputId" | "isInvalid" | "isLoading" | "menuIsOpen" | "menuPosition" | "menuPortalTarget" | "menuShouldBlockScroll" | "name" | "noOptionsMessage" | "onBlur" | "onFocus" | "onKeyDown" | "options" | "styles" | "required" | "
|
|
159
|
+
}, keyof import("@atlaskit/analytics-next").WithAnalyticsEventsProps>, "placeholder" | "isDisabled" | "onChange" | "onInputChange" | "value" | "appearance" | "autoFocus" | "captureMenuScroll" | "closeMenuOnScroll" | "components" | "inputId" | "isInvalid" | "isLoading" | "menuIsOpen" | "menuPosition" | "menuPortalTarget" | "menuShouldBlockScroll" | "name" | "noOptionsMessage" | "onBlur" | "onFocus" | "onKeyDown" | "options" | "styles" | "required" | "search" | "anchor" | "addMoreMessage" | "allowEmail" | "ariaDescribedBy" | "ariaLabel" | "ariaLabelledBy" | "ariaLive" | "clearValueLabel" | "defaultValue" | "disableInput" | "emailLabel" | "fieldId" | "footer" | "forwardedRef" | "groupByTypeOrder" | "header" | "height" | "includeTeamsUpdates" | "isFooterFocused" | "isValidEmail" | "loadOptions" | "loadUserSource" | "maxOptions" | "maxPickerHeight" | "menuMinWidth" | "onClear" | "onClose" | "onOpen" | "onSelection" | "open" | "placeholderAvatar" | "popupSelectProps" | "setIsFooterFocused" | "showClearIndicator" | "strategy" | "suggestEmailsForDomain" | "UNSAFE_hasDraggableParentComponent" | "width" | "pickerProps" | "SelectComponent"> & {
|
|
160
160
|
isClearable?: boolean | undefined;
|
|
161
161
|
isMulti?: boolean | undefined;
|
|
162
162
|
openMenuOnClick?: boolean | undefined;
|
|
@@ -135,9 +135,6 @@ export declare const PopupUserPicker: React.ForwardRefExoticComponent<Omit<Pick<
|
|
|
135
135
|
options?: import("../types").OptionData[] | undefined;
|
|
136
136
|
styles?: import("@atlaskit/select").StylesConfig | undefined;
|
|
137
137
|
required?: boolean | undefined;
|
|
138
|
-
footer?: React.ReactNode;
|
|
139
|
-
target?: import("../types").Target | undefined;
|
|
140
|
-
defaultValue?: import("../types").DefaultValue;
|
|
141
138
|
search?: string | undefined;
|
|
142
139
|
anchor?: React.ComponentType<any> | undefined;
|
|
143
140
|
addMoreMessage?: string | undefined;
|
|
@@ -147,9 +144,11 @@ export declare const PopupUserPicker: React.ForwardRefExoticComponent<Omit<Pick<
|
|
|
147
144
|
ariaLabelledBy?: string | undefined;
|
|
148
145
|
ariaLive?: "polite" | "off" | "assertive" | undefined;
|
|
149
146
|
clearValueLabel?: string | undefined;
|
|
147
|
+
defaultValue?: import("../types").DefaultValue;
|
|
150
148
|
disableInput?: boolean | undefined;
|
|
151
149
|
emailLabel?: string | undefined;
|
|
152
150
|
fieldId?: string | null | undefined;
|
|
151
|
+
footer?: React.ReactNode;
|
|
153
152
|
forwardedRef?: React.ForwardedRef<import("../types").UserPickerRef> | undefined;
|
|
154
153
|
groupByTypeOrder?: NonNullable<import("../types").OptionData["type"]>[] | undefined;
|
|
155
154
|
header?: React.ReactNode;
|
|
@@ -181,6 +180,7 @@ export declare const PopupUserPicker: React.ForwardRefExoticComponent<Omit<Pick<
|
|
|
181
180
|
textFieldBackgroundColor?: boolean | undefined;
|
|
182
181
|
UNSAFE_hasDraggableParentComponent?: boolean | undefined;
|
|
183
182
|
width?: number | string | undefined;
|
|
183
|
+
target?: import("../types").Target | undefined;
|
|
184
184
|
popupTitle?: string | undefined;
|
|
185
185
|
placement?: import("@popperjs/core").Placement | undefined;
|
|
186
186
|
rootBoundary?: import("../types").RootBoundary | undefined;
|
|
@@ -86,7 +86,7 @@ export declare const UserPicker: React.ForwardRefExoticComponent<Pick<Omit<{
|
|
|
86
86
|
UNSAFE_hasDraggableParentComponent?: boolean;
|
|
87
87
|
value?: import("../types").Value;
|
|
88
88
|
width?: number | string;
|
|
89
|
-
}, keyof import("@atlaskit/analytics-next").WithAnalyticsEventsProps>, "placeholder" | "isDisabled" | "onChange" | "onInputChange" | "value" | "appearance" | "autoFocus" | "captureMenuScroll" | "closeMenuOnScroll" | "components" | "inputId" | "isClearable" | "isInvalid" | "isLoading" | "menuIsOpen" | "menuPosition" | "menuPortalTarget" | "menuShouldBlockScroll" | "name" | "noOptionsMessage" | "onBlur" | "onFocus" | "onKeyDown" | "openMenuOnClick" | "options" | "styles" | "required" | "
|
|
89
|
+
}, keyof import("@atlaskit/analytics-next").WithAnalyticsEventsProps>, "placeholder" | "isDisabled" | "onChange" | "onInputChange" | "value" | "appearance" | "autoFocus" | "captureMenuScroll" | "closeMenuOnScroll" | "components" | "inputId" | "isClearable" | "isInvalid" | "isLoading" | "menuIsOpen" | "menuPosition" | "menuPortalTarget" | "menuShouldBlockScroll" | "name" | "noOptionsMessage" | "onBlur" | "onFocus" | "onKeyDown" | "openMenuOnClick" | "options" | "styles" | "required" | "search" | "anchor" | "addMoreMessage" | "allowEmail" | "ariaDescribedBy" | "ariaLabel" | "ariaLabelledBy" | "ariaLive" | "clearValueLabel" | "defaultValue" | "disableInput" | "emailLabel" | "fieldId" | "footer" | "forwardedRef" | "groupByTypeOrder" | "header" | "height" | "includeTeamsUpdates" | "isFooterFocused" | "isValidEmail" | "loadOptions" | "loadOptionsErrorMessage" | "loadUserSource" | "maxOptions" | "maxPickerHeight" | "menuMinWidth" | "noBorder" | "onClear" | "onClose" | "onOpen" | "onSelection" | "open" | "placeholderAvatar" | "popupSelectProps" | "setIsFooterFocused" | "showClearIndicator" | "strategy" | "subtle" | "suggestEmailsForDomain" | "textFieldBackgroundColor" | "UNSAFE_hasDraggableParentComponent"> & {
|
|
90
90
|
isMulti?: boolean | undefined;
|
|
91
91
|
width?: number | string | undefined;
|
|
92
92
|
} & {} & React.RefAttributes<any>>;
|
package/dist/types/types.d.ts
CHANGED
|
@@ -285,7 +285,7 @@ export interface OptionData {
|
|
|
285
285
|
}
|
|
286
286
|
export declare const UserType = "user";
|
|
287
287
|
export declare const ExternalUserType = "external_user";
|
|
288
|
-
export type UserSource = 'google' | 'slack' | 'microsoft' | 'jira' | 'confluence' | 'other-atlassian';
|
|
288
|
+
export type UserSource = 'google' | 'slack' | 'microsoft' | 'jira' | 'confluence' | 'other-atlassian' | 'email';
|
|
289
289
|
export interface ExternalUser extends User {
|
|
290
290
|
externalUserType?: 'crossSite' | 'thirdParty';
|
|
291
291
|
hasProductAccess?: boolean;
|
|
@@ -156,7 +156,7 @@ export declare const BaseUserPicker: React.ForwardRefExoticComponent<Pick<Omit<{
|
|
|
156
156
|
*/
|
|
157
157
|
UNSAFE_hasDraggableParentComponent?: boolean;
|
|
158
158
|
width: string | number;
|
|
159
|
-
}, keyof import("@atlaskit/analytics-next").WithAnalyticsEventsProps>, "placeholder" | "isDisabled" | "onChange" | "onInputChange" | "value" | "appearance" | "autoFocus" | "captureMenuScroll" | "closeMenuOnScroll" | "components" | "inputId" | "isInvalid" | "isLoading" | "menuIsOpen" | "menuPosition" | "menuPortalTarget" | "menuShouldBlockScroll" | "name" | "noOptionsMessage" | "onBlur" | "onFocus" | "onKeyDown" | "options" | "styles" | "required" | "
|
|
159
|
+
}, keyof import("@atlaskit/analytics-next").WithAnalyticsEventsProps>, "placeholder" | "isDisabled" | "onChange" | "onInputChange" | "value" | "appearance" | "autoFocus" | "captureMenuScroll" | "closeMenuOnScroll" | "components" | "inputId" | "isInvalid" | "isLoading" | "menuIsOpen" | "menuPosition" | "menuPortalTarget" | "menuShouldBlockScroll" | "name" | "noOptionsMessage" | "onBlur" | "onFocus" | "onKeyDown" | "options" | "styles" | "required" | "search" | "anchor" | "addMoreMessage" | "allowEmail" | "ariaDescribedBy" | "ariaLabel" | "ariaLabelledBy" | "ariaLive" | "clearValueLabel" | "defaultValue" | "disableInput" | "emailLabel" | "fieldId" | "footer" | "forwardedRef" | "groupByTypeOrder" | "header" | "height" | "includeTeamsUpdates" | "isFooterFocused" | "isValidEmail" | "loadOptions" | "loadUserSource" | "maxOptions" | "maxPickerHeight" | "menuMinWidth" | "onClear" | "onClose" | "onOpen" | "onSelection" | "open" | "placeholderAvatar" | "popupSelectProps" | "setIsFooterFocused" | "showClearIndicator" | "strategy" | "suggestEmailsForDomain" | "UNSAFE_hasDraggableParentComponent" | "width" | "pickerProps" | "SelectComponent"> & {
|
|
160
160
|
isClearable?: boolean | undefined;
|
|
161
161
|
isMulti?: boolean | undefined;
|
|
162
162
|
openMenuOnClick?: boolean | undefined;
|
|
@@ -141,9 +141,6 @@ export declare const PopupUserPicker: React.ForwardRefExoticComponent<Omit<Pick<
|
|
|
141
141
|
options?: import("../types").OptionData[] | undefined;
|
|
142
142
|
styles?: import("@atlaskit/select").StylesConfig | undefined;
|
|
143
143
|
required?: boolean | undefined;
|
|
144
|
-
footer?: React.ReactNode;
|
|
145
|
-
target?: import("../types").Target | undefined;
|
|
146
|
-
defaultValue?: import("../types").DefaultValue;
|
|
147
144
|
search?: string | undefined;
|
|
148
145
|
anchor?: React.ComponentType<any> | undefined;
|
|
149
146
|
addMoreMessage?: string | undefined;
|
|
@@ -153,9 +150,11 @@ export declare const PopupUserPicker: React.ForwardRefExoticComponent<Omit<Pick<
|
|
|
153
150
|
ariaLabelledBy?: string | undefined;
|
|
154
151
|
ariaLive?: "polite" | "off" | "assertive" | undefined;
|
|
155
152
|
clearValueLabel?: string | undefined;
|
|
153
|
+
defaultValue?: import("../types").DefaultValue;
|
|
156
154
|
disableInput?: boolean | undefined;
|
|
157
155
|
emailLabel?: string | undefined;
|
|
158
156
|
fieldId?: string | null | undefined;
|
|
157
|
+
footer?: React.ReactNode;
|
|
159
158
|
forwardedRef?: React.ForwardedRef<import("../types").UserPickerRef> | undefined;
|
|
160
159
|
groupByTypeOrder?: NonNullable<import("../types").OptionData["type"]>[] | undefined;
|
|
161
160
|
header?: React.ReactNode;
|
|
@@ -187,6 +186,7 @@ export declare const PopupUserPicker: React.ForwardRefExoticComponent<Omit<Pick<
|
|
|
187
186
|
textFieldBackgroundColor?: boolean | undefined;
|
|
188
187
|
UNSAFE_hasDraggableParentComponent?: boolean | undefined;
|
|
189
188
|
width?: number | string | undefined;
|
|
189
|
+
target?: import("../types").Target | undefined;
|
|
190
190
|
popupTitle?: string | undefined;
|
|
191
191
|
placement?: import("@popperjs/core").Placement | undefined;
|
|
192
192
|
rootBoundary?: import("../types").RootBoundary | undefined;
|
|
@@ -86,7 +86,7 @@ export declare const UserPicker: React.ForwardRefExoticComponent<Pick<Omit<{
|
|
|
86
86
|
UNSAFE_hasDraggableParentComponent?: boolean;
|
|
87
87
|
value?: import("../types").Value;
|
|
88
88
|
width?: number | string;
|
|
89
|
-
}, keyof import("@atlaskit/analytics-next").WithAnalyticsEventsProps>, "placeholder" | "isDisabled" | "onChange" | "onInputChange" | "value" | "appearance" | "autoFocus" | "captureMenuScroll" | "closeMenuOnScroll" | "components" | "inputId" | "isClearable" | "isInvalid" | "isLoading" | "menuIsOpen" | "menuPosition" | "menuPortalTarget" | "menuShouldBlockScroll" | "name" | "noOptionsMessage" | "onBlur" | "onFocus" | "onKeyDown" | "openMenuOnClick" | "options" | "styles" | "required" | "
|
|
89
|
+
}, keyof import("@atlaskit/analytics-next").WithAnalyticsEventsProps>, "placeholder" | "isDisabled" | "onChange" | "onInputChange" | "value" | "appearance" | "autoFocus" | "captureMenuScroll" | "closeMenuOnScroll" | "components" | "inputId" | "isClearable" | "isInvalid" | "isLoading" | "menuIsOpen" | "menuPosition" | "menuPortalTarget" | "menuShouldBlockScroll" | "name" | "noOptionsMessage" | "onBlur" | "onFocus" | "onKeyDown" | "openMenuOnClick" | "options" | "styles" | "required" | "search" | "anchor" | "addMoreMessage" | "allowEmail" | "ariaDescribedBy" | "ariaLabel" | "ariaLabelledBy" | "ariaLive" | "clearValueLabel" | "defaultValue" | "disableInput" | "emailLabel" | "fieldId" | "footer" | "forwardedRef" | "groupByTypeOrder" | "header" | "height" | "includeTeamsUpdates" | "isFooterFocused" | "isValidEmail" | "loadOptions" | "loadOptionsErrorMessage" | "loadUserSource" | "maxOptions" | "maxPickerHeight" | "menuMinWidth" | "noBorder" | "onClear" | "onClose" | "onOpen" | "onSelection" | "open" | "placeholderAvatar" | "popupSelectProps" | "setIsFooterFocused" | "showClearIndicator" | "strategy" | "subtle" | "suggestEmailsForDomain" | "textFieldBackgroundColor" | "UNSAFE_hasDraggableParentComponent"> & {
|
|
90
90
|
isMulti?: boolean | undefined;
|
|
91
91
|
width?: number | string | undefined;
|
|
92
92
|
} & {} & React.RefAttributes<any>>;
|
|
@@ -288,7 +288,7 @@ export interface OptionData {
|
|
|
288
288
|
}
|
|
289
289
|
export declare const UserType = "user";
|
|
290
290
|
export declare const ExternalUserType = "external_user";
|
|
291
|
-
export type UserSource = 'google' | 'slack' | 'microsoft' | 'jira' | 'confluence' | 'other-atlassian';
|
|
291
|
+
export type UserSource = 'google' | 'slack' | 'microsoft' | 'jira' | 'confluence' | 'other-atlassian' | 'email';
|
|
292
292
|
export interface ExternalUser extends User {
|
|
293
293
|
externalUserType?: 'crossSite' | 'thirdParty';
|
|
294
294
|
hasProductAccess?: boolean;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/user-picker",
|
|
3
|
-
"version": "11.
|
|
3
|
+
"version": "11.20.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/"
|
|
@@ -44,8 +44,9 @@
|
|
|
44
44
|
"dependencies": {
|
|
45
45
|
"@atlaskit/afm-i18n-platform-elements-user-picker": "2.7.0",
|
|
46
46
|
"@atlaskit/analytics-next": "^11.1.0",
|
|
47
|
-
"@atlaskit/avatar": "^25.
|
|
48
|
-
"@atlaskit/
|
|
47
|
+
"@atlaskit/avatar": "^25.7.0",
|
|
48
|
+
"@atlaskit/feature-gate-js-client": "^5.5.0",
|
|
49
|
+
"@atlaskit/icon": "^29.4.0",
|
|
49
50
|
"@atlaskit/logo": "^19.9.0",
|
|
50
51
|
"@atlaskit/lozenge": "^13.3.0",
|
|
51
52
|
"@atlaskit/people-teams-ui-public": "^3.7.0",
|
|
@@ -56,8 +57,8 @@
|
|
|
56
57
|
"@atlaskit/spinner": "^19.0.0",
|
|
57
58
|
"@atlaskit/teams-avatar": "^2.4.0",
|
|
58
59
|
"@atlaskit/theme": "^21.0.0",
|
|
59
|
-
"@atlaskit/tokens": "^9.
|
|
60
|
-
"@atlaskit/tooltip": "^20.
|
|
60
|
+
"@atlaskit/tokens": "^9.1.0",
|
|
61
|
+
"@atlaskit/tooltip": "^20.13.0",
|
|
61
62
|
"@atlaskit/ufo": "^0.4.0",
|
|
62
63
|
"@babel/runtime": "^7.0.0",
|
|
63
64
|
"@compiled/react": "^0.18.6",
|