@atlaskit/user-picker 10.31.1 → 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.
Files changed (37) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/dist/cjs/analytics.js +1 -1
  3. package/dist/es2019/analytics.js +1 -1
  4. package/dist/esm/analytics.js +1 -1
  5. package/dist/types/clients/UserSourceProvider.d.ts +2 -2
  6. package/dist/types/components/BaseUserPicker.d.ts +2 -2
  7. package/dist/types/components/ClearIndicator.d.ts +1 -1
  8. package/dist/types/components/ExternalUserOption/SourcesTooltipContent.d.ts +2 -2
  9. package/dist/types/components/HighlightText.d.ts +1 -1
  10. package/dist/types/components/Input.d.ts +1 -1
  11. package/dist/types/components/MessagesIntlProvider.d.ts +2 -2
  12. package/dist/types/components/MultiValueContainer.d.ts +1 -1
  13. package/dist/types/components/PopupInput.d.ts +1 -1
  14. package/dist/types/components/PopupUserPicker.d.ts +1 -1
  15. package/dist/types/components/SizeableAvatar.d.ts +1 -1
  16. package/dist/types/components/UserPicker.d.ts +1 -1
  17. package/dist/types/components/assets/github.d.ts +1 -1
  18. package/dist/types/components/assets/google.d.ts +1 -1
  19. package/dist/types/components/assets/microsoft.d.ts +1 -1
  20. package/dist/types/components/assets/slack.d.ts +1 -1
  21. package/dist/types-ts4.5/clients/UserSourceProvider.d.ts +2 -2
  22. package/dist/types-ts4.5/components/BaseUserPicker.d.ts +2 -2
  23. package/dist/types-ts4.5/components/ClearIndicator.d.ts +1 -1
  24. package/dist/types-ts4.5/components/ExternalUserOption/SourcesTooltipContent.d.ts +2 -2
  25. package/dist/types-ts4.5/components/HighlightText.d.ts +1 -1
  26. package/dist/types-ts4.5/components/Input.d.ts +1 -1
  27. package/dist/types-ts4.5/components/MessagesIntlProvider.d.ts +2 -2
  28. package/dist/types-ts4.5/components/MultiValueContainer.d.ts +1 -1
  29. package/dist/types-ts4.5/components/PopupInput.d.ts +1 -1
  30. package/dist/types-ts4.5/components/PopupUserPicker.d.ts +1 -1
  31. package/dist/types-ts4.5/components/SizeableAvatar.d.ts +1 -1
  32. package/dist/types-ts4.5/components/UserPicker.d.ts +1 -1
  33. package/dist/types-ts4.5/components/assets/github.d.ts +1 -1
  34. package/dist/types-ts4.5/components/assets/google.d.ts +1 -1
  35. package/dist/types-ts4.5/components/assets/microsoft.d.ts +1 -1
  36. package/dist/types-ts4.5/components/assets/slack.d.ts +1 -1
  37. package/package.json +3 -3
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @atlaskit/user-picker
2
2
 
3
+ ## 10.31.2
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
3
9
  ## 10.31.1
4
10
 
5
11
  ### Patch Changes
@@ -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.1";
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}$/;
@@ -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.1";
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}$/;
@@ -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.1";
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}$/;
@@ -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;
@@ -2,5 +2,5 @@ import React from 'react';
2
2
  import { type ClearIndicatorProps } from '@atlaskit/select';
3
3
  export declare class ClearIndicator extends React.PureComponent<ClearIndicatorProps<any>> {
4
4
  private handleMouseDown;
5
- render(): JSX.Element;
5
+ render(): React.JSX.Element;
6
6
  }
@@ -1,3 +1,3 @@
1
- /// <reference types="react" />
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;
@@ -5,5 +5,5 @@ export interface Props {
5
5
  children: string;
6
6
  }
7
7
  export declare class HighlightText extends React.PureComponent<Props> {
8
- render(): (string | JSX.Element)[];
8
+ render(): (string | React.JSX.Element)[];
9
9
  }
@@ -18,5 +18,5 @@ export declare class Input extends React.Component<Props & AriaAttributes> {
18
18
  */
19
19
  get ariaLabelledBy(): AriaAttributesType;
20
20
  get ariaDescribedBy(): AriaAttributesType;
21
- render(): JSX.Element;
21
+ render(): React.JSX.Element;
22
22
  }
@@ -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;
@@ -26,6 +26,6 @@ export declare class MultiValueContainer extends React.PureComponent<Props, Stat
26
26
  private addPlaceholder;
27
27
  private renderChildren;
28
28
  onValueContainerClick: any;
29
- render(): JSX.Element;
29
+ render(): React.JSX.Element;
30
30
  }
31
31
  export {};
@@ -4,5 +4,5 @@ export declare class PopupInput extends React.Component<Props> {
4
4
  private ref;
5
5
  componentDidMount(): void;
6
6
  private handleInnerRef;
7
- render(): JSX.Element;
7
+ render(): React.JSX.Element;
8
8
  }
@@ -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;
@@ -6,5 +6,5 @@ export type Props = {
6
6
  type?: 'person' | 'team';
7
7
  };
8
8
  export declare class SizeableAvatar extends React.PureComponent<Props> {
9
- render(): JSX.Element;
9
+ render(): React.JSX.Element;
10
10
  }
@@ -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;
@@ -2,5 +2,5 @@ import React from 'react';
2
2
  import { type ClearIndicatorProps } from '@atlaskit/select';
3
3
  export declare class ClearIndicator extends React.PureComponent<ClearIndicatorProps<any>> {
4
4
  private handleMouseDown;
5
- render(): JSX.Element;
5
+ render(): React.JSX.Element;
6
6
  }
@@ -1,3 +1,3 @@
1
- /// <reference types="react" />
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;
@@ -5,5 +5,5 @@ export interface Props {
5
5
  children: string;
6
6
  }
7
7
  export declare class HighlightText extends React.PureComponent<Props> {
8
- render(): (string | JSX.Element)[];
8
+ render(): (string | React.JSX.Element)[];
9
9
  }
@@ -18,5 +18,5 @@ export declare class Input extends React.Component<Props & AriaAttributes> {
18
18
  */
19
19
  get ariaLabelledBy(): AriaAttributesType;
20
20
  get ariaDescribedBy(): AriaAttributesType;
21
- render(): JSX.Element;
21
+ render(): React.JSX.Element;
22
22
  }
@@ -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;
@@ -26,6 +26,6 @@ export declare class MultiValueContainer extends React.PureComponent<Props, Stat
26
26
  private addPlaceholder;
27
27
  private renderChildren;
28
28
  onValueContainerClick: any;
29
- render(): JSX.Element;
29
+ render(): React.JSX.Element;
30
30
  }
31
31
  export {};
@@ -4,5 +4,5 @@ export declare class PopupInput extends React.Component<Props> {
4
4
  private ref;
5
5
  componentDidMount(): void;
6
6
  private handleInnerRef;
7
- render(): JSX.Element;
7
+ render(): React.JSX.Element;
8
8
  }
@@ -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;
@@ -6,5 +6,5 @@ export type Props = {
6
6
  type?: 'person' | 'team';
7
7
  };
8
8
  export declare class SizeableAvatar extends React.PureComponent<Props> {
9
- render(): JSX.Element;
9
+ render(): React.JSX.Element;
10
10
  }
@@ -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.1",
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,7 +49,7 @@
49
49
  "dependencies": {
50
50
  "@atlaskit/analytics-next": "^10.3.0",
51
51
  "@atlaskit/avatar": "^21.18.0",
52
- "@atlaskit/icon": "^23.6.0",
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",
@@ -59,7 +59,7 @@
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": "^14.1.0",
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",