@atlaskit/user-picker 10.31.0 → 10.31.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 +12 -0
- package/dist/cjs/analytics.js +1 -1
- package/dist/cjs/util/i18n-util.js +2 -2
- package/dist/es2019/analytics.js +1 -1
- package/dist/esm/analytics.js +1 -1
- package/dist/esm/util/i18n-util.js +4 -3
- package/dist/types/clients/UserSourceProvider.d.ts +2 -2
- package/dist/types/components/BaseUserPicker.d.ts +2 -2
- package/dist/types/components/ClearIndicator.d.ts +1 -1
- package/dist/types/components/ExternalUserOption/SourcesTooltipContent.d.ts +2 -2
- package/dist/types/components/HighlightText.d.ts +1 -1
- package/dist/types/components/Input.d.ts +1 -1
- package/dist/types/components/MessagesIntlProvider.d.ts +2 -2
- package/dist/types/components/MultiValueContainer.d.ts +1 -1
- package/dist/types/components/PopupInput.d.ts +1 -1
- package/dist/types/components/PopupUserPicker.d.ts +1 -1
- package/dist/types/components/SizeableAvatar.d.ts +1 -1
- package/dist/types/components/UserPicker.d.ts +1 -1
- package/dist/types/components/assets/github.d.ts +1 -1
- package/dist/types/components/assets/google.d.ts +1 -1
- package/dist/types/components/assets/microsoft.d.ts +1 -1
- package/dist/types/components/assets/slack.d.ts +1 -1
- package/dist/types-ts4.5/clients/UserSourceProvider.d.ts +2 -2
- package/dist/types-ts4.5/components/BaseUserPicker.d.ts +2 -2
- package/dist/types-ts4.5/components/ClearIndicator.d.ts +1 -1
- package/dist/types-ts4.5/components/ExternalUserOption/SourcesTooltipContent.d.ts +2 -2
- package/dist/types-ts4.5/components/HighlightText.d.ts +1 -1
- package/dist/types-ts4.5/components/Input.d.ts +1 -1
- package/dist/types-ts4.5/components/MessagesIntlProvider.d.ts +2 -2
- package/dist/types-ts4.5/components/MultiValueContainer.d.ts +1 -1
- package/dist/types-ts4.5/components/PopupInput.d.ts +1 -1
- package/dist/types-ts4.5/components/PopupUserPicker.d.ts +1 -1
- package/dist/types-ts4.5/components/SizeableAvatar.d.ts +1 -1
- package/dist/types-ts4.5/components/UserPicker.d.ts +1 -1
- package/dist/types-ts4.5/components/assets/github.d.ts +1 -1
- package/dist/types-ts4.5/components/assets/google.d.ts +1 -1
- package/dist/types-ts4.5/components/assets/microsoft.d.ts +1 -1
- package/dist/types-ts4.5/components/assets/slack.d.ts +1 -1
- package/package.json +4 -4
package/CHANGELOG.md
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 = "10.31.
|
|
15
|
+
var packageVersion = "10.31.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}$/;
|
|
@@ -20,7 +20,7 @@ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e;
|
|
|
20
20
|
*
|
|
21
21
|
* @param locale string specifying the locale like 'en_GB', or 'fr'.
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _getMessagesForLocale = exports.getMessagesForLocale = /*#__PURE__*/function () {
|
|
24
24
|
var _ref = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee(locale) {
|
|
25
25
|
var fragments;
|
|
26
26
|
return _regenerator.default.wrap(function _callee$(_context) {
|
|
@@ -215,7 +215,7 @@ var getMessagesForLocale = exports.getMessagesForLocale = /*#__PURE__*/function
|
|
|
215
215
|
_context.next = 38;
|
|
216
216
|
break;
|
|
217
217
|
}
|
|
218
|
-
return _context.abrupt("return",
|
|
218
|
+
return _context.abrupt("return", _getMessagesForLocale(fragments[0]));
|
|
219
219
|
case 38:
|
|
220
220
|
return _context.abrupt("return", Promise.resolve().then(function () {
|
|
221
221
|
return _interopRequireWildcard(require( /* webpackChunkName: "@atlaskit-internal_user-picker-i18n-en" */'../i18n/en'));
|
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 = "10.31.
|
|
5
|
+
const packageVersion = "10.31.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}$/;
|
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 = "10.31.
|
|
8
|
+
var packageVersion = "10.31.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}$/;
|
|
@@ -10,7 +10,7 @@ import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
|
10
10
|
*
|
|
11
11
|
* @param locale string specifying the locale like 'en_GB', or 'fr'.
|
|
12
12
|
*/
|
|
13
|
-
|
|
13
|
+
var _getMessagesForLocale = /*#__PURE__*/function () {
|
|
14
14
|
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(locale) {
|
|
15
15
|
var fragments;
|
|
16
16
|
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
|
@@ -145,7 +145,7 @@ export var getMessagesForLocale = /*#__PURE__*/function () {
|
|
|
145
145
|
_context.next = 38;
|
|
146
146
|
break;
|
|
147
147
|
}
|
|
148
|
-
return _context.abrupt("return",
|
|
148
|
+
return _context.abrupt("return", _getMessagesForLocale(fragments[0]));
|
|
149
149
|
case 38:
|
|
150
150
|
return _context.abrupt("return", import( /* webpackChunkName: "@atlaskit-internal_user-picker-i18n-en" */'../i18n/en').then(function (mod) {
|
|
151
151
|
return mod.default;
|
|
@@ -159,4 +159,5 @@ export var getMessagesForLocale = /*#__PURE__*/function () {
|
|
|
159
159
|
return function getMessagesForLocale(_x) {
|
|
160
160
|
return _ref.apply(this, arguments);
|
|
161
161
|
};
|
|
162
|
-
}();
|
|
162
|
+
}();
|
|
163
|
+
export { _getMessagesForLocale as getMessagesForLocale };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { type PropsWithChildren } from 'react';
|
|
1
|
+
import React, { type PropsWithChildren } from 'react';
|
|
2
2
|
import { type LoadUserSource, type UserSource } from '../types';
|
|
3
3
|
export interface UserSourceContext {
|
|
4
4
|
fetchUserSource?: LoadUserSource;
|
|
5
5
|
}
|
|
6
|
-
export declare const ExusUserSourceProvider: ({ fetchUserSource, children, }: PropsWithChildren<UserSourceContext>) => JSX.Element;
|
|
6
|
+
export declare const ExusUserSourceProvider: ({ fetchUserSource, children, }: PropsWithChildren<UserSourceContext>) => React.JSX.Element;
|
|
7
7
|
export declare const useUserSource: (accountId: string, shouldFetchSources: boolean, existingSources?: UserSource[]) => {
|
|
8
8
|
sources: UserSource[];
|
|
9
9
|
loading: boolean;
|
|
@@ -21,7 +21,7 @@ export declare class BaseUserPickerWithoutAnalytics extends React.Component<Base
|
|
|
21
21
|
noBorder: boolean;
|
|
22
22
|
textFieldBackgroundColor: boolean;
|
|
23
23
|
isClearable: boolean;
|
|
24
|
-
loadOptionsErrorMessage: () => JSX.Element;
|
|
24
|
+
loadOptionsErrorMessage: () => React.JSX.Element;
|
|
25
25
|
openMenuOnClick: boolean;
|
|
26
26
|
};
|
|
27
27
|
static getDerivedStateFromProps(nextProps: Partial<UserPickerProps>, prevState: UserPickerState): Partial<UserPickerState>;
|
|
@@ -62,7 +62,7 @@ export declare class BaseUserPickerWithoutAnalytics extends React.Component<Base
|
|
|
62
62
|
private getAppearance;
|
|
63
63
|
get ariaProps(): {};
|
|
64
64
|
private handleClickDraggableParentComponent;
|
|
65
|
-
render(): JSX.Element;
|
|
65
|
+
render(): React.JSX.Element;
|
|
66
66
|
}
|
|
67
67
|
export declare const BaseUserPicker: React.ForwardRefExoticComponent<Pick<Omit<{
|
|
68
68
|
fieldId: string | null;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { type ExternalUserSourcesData } from '../ExternalUserSourcesContainer';
|
|
3
|
-
export declare const SourcesTooltipContent: ({ sources, sourcesLoading }: ExternalUserSourcesData) => JSX.Element;
|
|
3
|
+
export declare const SourcesTooltipContent: ({ sources, sourcesLoading }: ExternalUserSourcesData) => React.JSX.Element;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { type PropsWithChildren } from 'react';
|
|
2
|
-
declare const MessagesIntlProvider: (props: PropsWithChildren<{}>) => JSX.Element;
|
|
1
|
+
import React, { type PropsWithChildren } from 'react';
|
|
2
|
+
declare const MessagesIntlProvider: (props: PropsWithChildren<{}>) => React.JSX.Element;
|
|
3
3
|
export default MessagesIntlProvider;
|
|
@@ -17,7 +17,7 @@ export declare class PopupUserPickerWithoutAnalytics extends React.Component<Pop
|
|
|
17
17
|
styles: any;
|
|
18
18
|
popper: any;
|
|
19
19
|
};
|
|
20
|
-
render(): JSX.Element;
|
|
20
|
+
render(): React.JSX.Element;
|
|
21
21
|
}
|
|
22
22
|
export declare const PopupUserPicker: React.ForwardRefExoticComponent<Omit<Pick<Omit<{
|
|
23
23
|
fieldId: string | null;
|
|
@@ -8,7 +8,7 @@ export declare class UserPickerWithoutAnalytics extends React.Component<UserPick
|
|
|
8
8
|
isMulti: boolean;
|
|
9
9
|
};
|
|
10
10
|
componentDidMount(): void;
|
|
11
|
-
render(): JSX.Element;
|
|
11
|
+
render(): React.JSX.Element;
|
|
12
12
|
}
|
|
13
13
|
export declare const UserPicker: React.ForwardRefExoticComponent<Pick<Omit<{
|
|
14
14
|
fieldId: string | null;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
export declare function GitHubIcon(props: React.SVGProps<SVGSVGElement>): JSX.Element;
|
|
2
|
+
export declare function GitHubIcon(props: React.SVGProps<SVGSVGElement>): React.JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
export declare function GoogleIcon(props: React.SVGProps<SVGSVGElement>): JSX.Element;
|
|
2
|
+
export declare function GoogleIcon(props: React.SVGProps<SVGSVGElement>): React.JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
export declare function MicrosoftIcon(props: React.SVGProps<SVGSVGElement>): JSX.Element;
|
|
2
|
+
export declare function MicrosoftIcon(props: React.SVGProps<SVGSVGElement>): React.JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
export declare function SlackIcon(props: React.SVGProps<SVGSVGElement>): JSX.Element;
|
|
2
|
+
export declare function SlackIcon(props: React.SVGProps<SVGSVGElement>): React.JSX.Element;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { type PropsWithChildren } from 'react';
|
|
1
|
+
import React, { type PropsWithChildren } from 'react';
|
|
2
2
|
import { type LoadUserSource, type UserSource } from '../types';
|
|
3
3
|
export interface UserSourceContext {
|
|
4
4
|
fetchUserSource?: LoadUserSource;
|
|
5
5
|
}
|
|
6
|
-
export declare const ExusUserSourceProvider: ({ fetchUserSource, children, }: PropsWithChildren<UserSourceContext>) => JSX.Element;
|
|
6
|
+
export declare const ExusUserSourceProvider: ({ fetchUserSource, children, }: PropsWithChildren<UserSourceContext>) => React.JSX.Element;
|
|
7
7
|
export declare const useUserSource: (accountId: string, shouldFetchSources: boolean, existingSources?: UserSource[]) => {
|
|
8
8
|
sources: UserSource[];
|
|
9
9
|
loading: boolean;
|
|
@@ -21,7 +21,7 @@ export declare class BaseUserPickerWithoutAnalytics extends React.Component<Base
|
|
|
21
21
|
noBorder: boolean;
|
|
22
22
|
textFieldBackgroundColor: boolean;
|
|
23
23
|
isClearable: boolean;
|
|
24
|
-
loadOptionsErrorMessage: () => JSX.Element;
|
|
24
|
+
loadOptionsErrorMessage: () => React.JSX.Element;
|
|
25
25
|
openMenuOnClick: boolean;
|
|
26
26
|
};
|
|
27
27
|
static getDerivedStateFromProps(nextProps: Partial<UserPickerProps>, prevState: UserPickerState): Partial<UserPickerState>;
|
|
@@ -62,7 +62,7 @@ export declare class BaseUserPickerWithoutAnalytics extends React.Component<Base
|
|
|
62
62
|
private getAppearance;
|
|
63
63
|
get ariaProps(): {};
|
|
64
64
|
private handleClickDraggableParentComponent;
|
|
65
|
-
render(): JSX.Element;
|
|
65
|
+
render(): React.JSX.Element;
|
|
66
66
|
}
|
|
67
67
|
export declare const BaseUserPicker: React.ForwardRefExoticComponent<Pick<Omit<{
|
|
68
68
|
fieldId: string | null;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { type ExternalUserSourcesData } from '../ExternalUserSourcesContainer';
|
|
3
|
-
export declare const SourcesTooltipContent: ({ sources, sourcesLoading }: ExternalUserSourcesData) => JSX.Element;
|
|
3
|
+
export declare const SourcesTooltipContent: ({ sources, sourcesLoading }: ExternalUserSourcesData) => React.JSX.Element;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { type PropsWithChildren } from 'react';
|
|
2
|
-
declare const MessagesIntlProvider: (props: PropsWithChildren<{}>) => JSX.Element;
|
|
1
|
+
import React, { type PropsWithChildren } from 'react';
|
|
2
|
+
declare const MessagesIntlProvider: (props: PropsWithChildren<{}>) => React.JSX.Element;
|
|
3
3
|
export default MessagesIntlProvider;
|
|
@@ -17,7 +17,7 @@ export declare class PopupUserPickerWithoutAnalytics extends React.Component<Pop
|
|
|
17
17
|
styles: any;
|
|
18
18
|
popper: any;
|
|
19
19
|
};
|
|
20
|
-
render(): JSX.Element;
|
|
20
|
+
render(): React.JSX.Element;
|
|
21
21
|
}
|
|
22
22
|
export declare const PopupUserPicker: React.ForwardRefExoticComponent<Omit<Pick<Omit<{
|
|
23
23
|
fieldId: string | null;
|
|
@@ -8,7 +8,7 @@ export declare class UserPickerWithoutAnalytics extends React.Component<UserPick
|
|
|
8
8
|
isMulti: boolean;
|
|
9
9
|
};
|
|
10
10
|
componentDidMount(): void;
|
|
11
|
-
render(): JSX.Element;
|
|
11
|
+
render(): React.JSX.Element;
|
|
12
12
|
}
|
|
13
13
|
export declare const UserPicker: React.ForwardRefExoticComponent<Pick<Omit<{
|
|
14
14
|
fieldId: string | null;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
export declare function GitHubIcon(props: React.SVGProps<SVGSVGElement>): JSX.Element;
|
|
2
|
+
export declare function GitHubIcon(props: React.SVGProps<SVGSVGElement>): React.JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
export declare function GoogleIcon(props: React.SVGProps<SVGSVGElement>): JSX.Element;
|
|
2
|
+
export declare function GoogleIcon(props: React.SVGProps<SVGSVGElement>): React.JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
export declare function MicrosoftIcon(props: React.SVGProps<SVGSVGElement>): JSX.Element;
|
|
2
|
+
export declare function MicrosoftIcon(props: React.SVGProps<SVGSVGElement>): React.JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
export declare function SlackIcon(props: React.SVGProps<SVGSVGElement>): JSX.Element;
|
|
2
|
+
export declare function SlackIcon(props: React.SVGProps<SVGSVGElement>): React.JSX.Element;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/user-picker",
|
|
3
|
-
"version": "10.31.
|
|
3
|
+
"version": "10.31.2",
|
|
4
4
|
"description": "Fabric component for display a dropdown to select a user from",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -49,17 +49,17 @@
|
|
|
49
49
|
"dependencies": {
|
|
50
50
|
"@atlaskit/analytics-next": "^10.3.0",
|
|
51
51
|
"@atlaskit/avatar": "^21.18.0",
|
|
52
|
-
"@atlaskit/icon": "^23.
|
|
52
|
+
"@atlaskit/icon": "^23.7.0",
|
|
53
53
|
"@atlaskit/logo": "^15.2.0",
|
|
54
54
|
"@atlaskit/lozenge": "^11.13.0",
|
|
55
55
|
"@atlaskit/people-teams-ui-public": "^2.1.0",
|
|
56
|
-
"@atlaskit/platform-feature-flags": "^0.
|
|
56
|
+
"@atlaskit/platform-feature-flags": "^1.0.0",
|
|
57
57
|
"@atlaskit/popper": "^6.4.0",
|
|
58
58
|
"@atlaskit/primitives": "^13.4.0",
|
|
59
59
|
"@atlaskit/select": "^18.10.0",
|
|
60
60
|
"@atlaskit/spinner": "^17.1.0",
|
|
61
61
|
"@atlaskit/teams-avatar": "^1.2.0",
|
|
62
|
-
"@atlaskit/theme": "^
|
|
62
|
+
"@atlaskit/theme": "^15.0.0",
|
|
63
63
|
"@atlaskit/tokens": "^3.3.0",
|
|
64
64
|
"@atlaskit/tooltip": "^19.1.0",
|
|
65
65
|
"@atlaskit/ufo": "^0.3.0",
|