@atlaskit/user-picker 10.20.2 → 10.20.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.
Files changed (67) 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/analytics.d.ts +2 -2
  6. package/dist/types/clients/UserSourceProvider.d.ts +2 -2
  7. package/dist/types/components/AvatarItemOption.d.ts +2 -2
  8. package/dist/types/components/ClearIndicator.d.ts +1 -1
  9. package/dist/types/components/CustomOption/main.d.ts +1 -1
  10. package/dist/types/components/EmailOption/main.d.ts +2 -2
  11. package/dist/types/components/ExternalUserOption/ExternalAvatarItemOption.d.ts +1 -1
  12. package/dist/types/components/ExternalUserOption/SourcesTooltipContent.d.ts +1 -1
  13. package/dist/types/components/ExternalUserOption/main.d.ts +2 -2
  14. package/dist/types/components/ExternalUserSourcesContainer.d.ts +2 -2
  15. package/dist/types/components/GroupOption/main.d.ts +1 -1
  16. package/dist/types/components/HighlightText.d.ts +1 -1
  17. package/dist/types/components/Input.d.ts +1 -1
  18. package/dist/types/components/Menu.d.ts +1 -1
  19. package/dist/types/components/MessagesIntlProvider.d.ts +1 -1
  20. package/dist/types/components/MultiValue.d.ts +3 -3
  21. package/dist/types/components/MultiValueContainer.d.ts +2 -2
  22. package/dist/types/components/Option.d.ts +3 -3
  23. package/dist/types/components/PopupControl.d.ts +1 -1
  24. package/dist/types/components/PopupUserPicker.d.ts +1 -1
  25. package/dist/types/components/SingleValue.d.ts +2 -2
  26. package/dist/types/components/SingleValueContainer.d.ts +2 -2
  27. package/dist/types/components/TeamOption/main.d.ts +1 -1
  28. package/dist/types/components/UserOption.d.ts +1 -1
  29. package/dist/types/components/UserPicker.d.ts +1 -1
  30. package/dist/types/components/creatable.d.ts +2 -2
  31. package/dist/types/components/creatableEmailSuggestion.d.ts +2 -2
  32. package/dist/types/components/popup.d.ts +2 -2
  33. package/dist/types/components/styles.d.ts +1 -1
  34. package/dist/types/components/utils.d.ts +2 -2
  35. package/dist/types/types.d.ts +8 -6
  36. package/dist/types-ts4.5/analytics.d.ts +2 -2
  37. package/dist/types-ts4.5/clients/UserSourceProvider.d.ts +2 -2
  38. package/dist/types-ts4.5/components/AvatarItemOption.d.ts +2 -2
  39. package/dist/types-ts4.5/components/ClearIndicator.d.ts +1 -1
  40. package/dist/types-ts4.5/components/CustomOption/main.d.ts +1 -1
  41. package/dist/types-ts4.5/components/EmailOption/main.d.ts +2 -2
  42. package/dist/types-ts4.5/components/ExternalUserOption/ExternalAvatarItemOption.d.ts +1 -1
  43. package/dist/types-ts4.5/components/ExternalUserOption/SourcesTooltipContent.d.ts +1 -1
  44. package/dist/types-ts4.5/components/ExternalUserOption/main.d.ts +2 -2
  45. package/dist/types-ts4.5/components/ExternalUserSourcesContainer.d.ts +2 -2
  46. package/dist/types-ts4.5/components/GroupOption/main.d.ts +1 -1
  47. package/dist/types-ts4.5/components/HighlightText.d.ts +1 -1
  48. package/dist/types-ts4.5/components/Input.d.ts +1 -1
  49. package/dist/types-ts4.5/components/Menu.d.ts +1 -1
  50. package/dist/types-ts4.5/components/MessagesIntlProvider.d.ts +1 -1
  51. package/dist/types-ts4.5/components/MultiValue.d.ts +3 -3
  52. package/dist/types-ts4.5/components/MultiValueContainer.d.ts +2 -2
  53. package/dist/types-ts4.5/components/Option.d.ts +3 -3
  54. package/dist/types-ts4.5/components/PopupControl.d.ts +1 -1
  55. package/dist/types-ts4.5/components/PopupUserPicker.d.ts +1 -1
  56. package/dist/types-ts4.5/components/SingleValue.d.ts +2 -2
  57. package/dist/types-ts4.5/components/SingleValueContainer.d.ts +2 -2
  58. package/dist/types-ts4.5/components/TeamOption/main.d.ts +1 -1
  59. package/dist/types-ts4.5/components/UserOption.d.ts +1 -1
  60. package/dist/types-ts4.5/components/UserPicker.d.ts +1 -1
  61. package/dist/types-ts4.5/components/creatable.d.ts +2 -2
  62. package/dist/types-ts4.5/components/creatableEmailSuggestion.d.ts +2 -2
  63. package/dist/types-ts4.5/components/popup.d.ts +2 -2
  64. package/dist/types-ts4.5/components/styles.d.ts +1 -1
  65. package/dist/types-ts4.5/components/utils.d.ts +2 -2
  66. package/dist/types-ts4.5/types.d.ts +8 -6
  67. package/package.json +2 -2
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @atlaskit/user-picker
2
2
 
3
+ ## 10.20.3
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
3
9
  ## 10.20.2
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.20.2";
15
+ var packageVersion = "10.20.3";
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.20.2";
5
+ const packageVersion = "10.20.3";
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.20.2";
8
+ var packageVersion = "10.20.3";
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,5 +1,5 @@
1
- import { AnalyticsEventPayload } from '@atlaskit/analytics-next';
2
- import { UserPickerProps, UserPickerState } from './types';
1
+ import { type AnalyticsEventPayload } from '@atlaskit/analytics-next';
2
+ import { type UserPickerProps, type UserPickerState } from './types';
3
3
  export type UserPickerSession = {
4
4
  id: string;
5
5
  start: number;
@@ -1,5 +1,5 @@
1
- import { PropsWithChildren } from 'react';
2
- import { LoadUserSource, UserSource } from '../types';
1
+ import { type PropsWithChildren } from 'react';
2
+ import { type LoadUserSource, type UserSource } from '../types';
3
3
  export interface UserSourceContext {
4
4
  fetchUserSource?: LoadUserSource;
5
5
  }
@@ -1,7 +1,7 @@
1
1
  /** @jsx jsx */
2
- import { ReactNode } from 'react';
2
+ import { type ReactNode } from 'react';
3
3
  import { jsx } from '@emotion/react';
4
- import { LozengeProps } from '../types';
4
+ import { type LozengeProps } from '../types';
5
5
  export declare const textWrapper: (color?: string) => import("@emotion/react").SerializedStyles;
6
6
  export type AvatarItemOptionProps = {
7
7
  avatar: ReactNode;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { ClearIndicatorProps } from '@atlaskit/select';
2
+ import { type ClearIndicatorProps } from '@atlaskit/select';
3
3
  export declare class ClearIndicator extends React.PureComponent<ClearIndicatorProps<any>> {
4
4
  private handleMouseDown;
5
5
  render(): JSX.Element;
@@ -1,6 +1,6 @@
1
1
  import { jsx } from '@emotion/react';
2
2
  import React from 'react';
3
- import { Custom } from '../../types';
3
+ import { type Custom } from '../../types';
4
4
  export type CustomOptionProps = {
5
5
  data: Custom;
6
6
  isSelected: boolean;
@@ -1,8 +1,8 @@
1
1
  /** @jsx jsx */
2
2
  import React from 'react';
3
3
  import { jsx } from '@emotion/react';
4
- import { Email } from '../../types';
5
- import { EmailValidationResponse } from '../emailValidation';
4
+ import { type Email } from '../../types';
5
+ import { type EmailValidationResponse } from '../emailValidation';
6
6
  export type EmailOptionProps = {
7
7
  email: Email;
8
8
  isSelected: boolean;
@@ -1,5 +1,5 @@
1
1
  /** @jsx jsx */
2
- import { ReactNode } from 'react';
2
+ import { type ReactNode } from 'react';
3
3
  import { jsx } from '@emotion/react';
4
4
  export type ExternalAvatarItemOptionProps = {
5
5
  avatar: ReactNode;
@@ -1,4 +1,4 @@
1
1
  import React from 'react';
2
- import { ExternalUserSourcesData } from '../ExternalUserSourcesContainer';
2
+ import { type ExternalUserSourcesData } from '../ExternalUserSourcesContainer';
3
3
  export declare const sourceWrapper: import("@emotion/react").SerializedStyles;
4
4
  export declare const SourcesTooltipContent: React.FC<ExternalUserSourcesData>;
@@ -1,7 +1,7 @@
1
1
  /** @jsx jsx */
2
2
  import React from 'react';
3
- import { WithAnalyticsEventsProps } from '@atlaskit/analytics-next';
4
- import { ExternalUser } from '../../types';
3
+ import { type WithAnalyticsEventsProps } from '@atlaskit/analytics-next';
4
+ import { type ExternalUser } from '../../types';
5
5
  export declare const imageContainer: import("@emotion/react").SerializedStyles;
6
6
  export declare const emailDomainWrapper: import("@emotion/react").SerializedStyles;
7
7
  export type ExternalUserOptionProps = WithAnalyticsEventsProps & {
@@ -1,5 +1,5 @@
1
- import { ReactNode } from 'react';
2
- import { UserSource } from '../types';
1
+ import { type ReactNode } from 'react';
2
+ import { type UserSource } from '../types';
3
3
  export interface ExternalUserSourcesData {
4
4
  sources: UserSource[];
5
5
  sourcesLoading: boolean;
@@ -1,7 +1,7 @@
1
1
  /** @jsx jsx */
2
2
  import React from 'react';
3
3
  import { jsx } from '@emotion/react';
4
- import { Group } from '../../types';
4
+ import { type Group } from '../../types';
5
5
  export declare const groupOptionIconWrapper: import("@emotion/react").SerializedStyles;
6
6
  export type GroupOptionProps = {
7
7
  group: Group;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { HighlightRange } from '../types';
2
+ import { type HighlightRange } from '../types';
3
3
  export interface Props {
4
4
  highlights?: HighlightRange[];
5
5
  children: string;
@@ -1,6 +1,6 @@
1
1
  import React, { type AriaAttributes } from 'react';
2
2
  import { type OptionType, type SelectProps } from '@atlaskit/select';
3
- import { AriaAttributesType } from '../types';
3
+ import { type AriaAttributesType } from '../types';
4
4
  export type Props = {
5
5
  selectProps?: SelectProps<OptionType, boolean>;
6
6
  innerRef: (ref: React.Ref<HTMLInputElement>) => void;
@@ -1,6 +1,6 @@
1
1
  /** @jsx jsx */
2
2
  import React from 'react';
3
- import { UserPickerProps } from '../types';
3
+ import { type UserPickerProps } from '../types';
4
4
  import { jsx } from '@emotion/react';
5
5
  export type Props = React.PropsWithChildren<{
6
6
  selectProps: UserPickerProps;
@@ -1,3 +1,3 @@
1
- import { PropsWithChildren } from 'react';
1
+ import { type PropsWithChildren } from 'react';
2
2
  declare const MessagesIntlProvider: (props: PropsWithChildren<{}>) => JSX.Element;
3
3
  export default MessagesIntlProvider;
@@ -1,9 +1,9 @@
1
1
  /** @jsx jsx */
2
2
  import React from 'react';
3
- import { OptionType } from '@atlaskit/select';
3
+ import { type OptionType } from '@atlaskit/select';
4
4
  import { jsx } from '@emotion/react';
5
- import { Option, UserPickerProps } from '../types';
6
- import { MultiValueProps } from '@atlaskit/select';
5
+ import { type Option, type UserPickerProps } from '../types';
6
+ import { type MultiValueProps } from '@atlaskit/select';
7
7
  export declare const scrollToValue: (valueContainer: HTMLDivElement, control: HTMLElement) => void;
8
8
  type Props = MultiValueProps<OptionType> & {
9
9
  isFocused?: boolean;
@@ -1,6 +1,6 @@
1
- import { MultiValueProps } from '@atlaskit/select';
1
+ import { type MultiValueProps } from '@atlaskit/select';
2
2
  import React from 'react';
3
- import { Option, User } from '../types';
3
+ import { type Option, type User } from '../types';
4
4
  export type State = {
5
5
  valueSize: number;
6
6
  previousValueSize: number;
@@ -1,6 +1,6 @@
1
- import { OptionProps as AkOptionProps } from '@atlaskit/select';
2
- import { FC } from 'react';
3
- import { Option as OptionType } from '../types';
1
+ import { type OptionProps as AkOptionProps } from '@atlaskit/select';
2
+ import { type FC } from 'react';
3
+ import { type Option as OptionType } from '../types';
4
4
  export type OptionProps = AkOptionProps & {
5
5
  data: OptionType;
6
6
  isSelected: boolean;
@@ -1,6 +1,6 @@
1
1
  /** @jsx jsx */
2
2
  import React from 'react';
3
- import { ControlProps } from '@atlaskit/select';
3
+ import { type ControlProps } from '@atlaskit/select';
4
4
  import { jsx } from '@emotion/react';
5
5
  export declare class PopupControl extends React.PureComponent<ControlProps<any>> {
6
6
  render(): jsx.JSX.Element;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { PopupUserPickerProps } from '../types';
2
+ import { type PopupUserPickerProps } from '../types';
3
3
  interface State {
4
4
  flipped: boolean;
5
5
  }
@@ -1,5 +1,5 @@
1
1
  import { jsx } from '@emotion/react';
2
- import { Option } from '../types';
3
- import { SingleValueProps } from '@atlaskit/select';
2
+ import { type Option } from '../types';
3
+ import { type SingleValueProps } from '@atlaskit/select';
4
4
  export type Props = SingleValueProps<Option>;
5
5
  export declare const SingleValue: (props: Props) => jsx.JSX.Element | null;
@@ -1,8 +1,8 @@
1
1
  /** @jsx jsx */
2
- import { ValueContainerProps } from '@atlaskit/select';
2
+ import { type ValueContainerProps } from '@atlaskit/select';
3
3
  import { jsx } from '@emotion/react';
4
4
  import React from 'react';
5
- import { Option, User } from '../types';
5
+ import { type Option, type User } from '../types';
6
6
  export declare class SingleValueContainer extends React.Component<ValueContainerProps<Option<User>>> {
7
7
  private renderAvatar;
8
8
  onValueContainerClick: any;
@@ -1,6 +1,6 @@
1
1
  import { jsx } from '@emotion/react';
2
2
  import React from 'react';
3
- import { Team } from '../../types';
3
+ import { type Team } from '../../types';
4
4
  export type TeamOptionProps = {
5
5
  team: Team;
6
6
  isSelected: boolean;
@@ -1,6 +1,6 @@
1
1
  import { jsx } from '@emotion/react';
2
2
  import React from 'react';
3
- import { User } from '../types';
3
+ import { type User } from '../types';
4
4
  export type UserOptionProps = {
5
5
  user: User;
6
6
  status?: string;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { UserPickerProps } from '../types';
2
+ import { type UserPickerProps } from '../types';
3
3
  export declare class UserPickerWithoutAnalytics extends React.Component<UserPickerProps> {
4
4
  ufoId: string;
5
5
  constructor(props: UserPickerProps);
@@ -1,5 +1,5 @@
1
- import { Option } from '../types';
2
- import { EmailValidator } from './emailValidation';
1
+ import { type Option } from '../types';
2
+ import { type EmailValidator } from './emailValidation';
3
3
  declare function creatableProps(isValidEmail?: EmailValidator): {
4
4
  allowCreateWhileLoading: boolean;
5
5
  createOptionPosition: string;
@@ -1,5 +1,5 @@
1
- import { Option } from '../types';
2
- import { EmailValidator } from './emailValidation';
1
+ import { type Option } from '../types';
2
+ import { type EmailValidator } from './emailValidation';
3
3
  export declare const getCreatableSuggestedEmailProps: import("memoize-one").MemoizedFn<(emailDomain: string, isValidEmail?: EmailValidator) => {
4
4
  allowCreateWhileLoading: boolean;
5
5
  createOptionPosition: string;
@@ -1,5 +1,5 @@
1
- import { Placement } from '@atlaskit/popper';
2
- import { Target, BoundariesElement, RootBoundary } from '../types';
1
+ import { type Placement } from '@atlaskit/popper';
2
+ import { type Target, type BoundariesElement, type RootBoundary } from '../types';
3
3
  export declare const getPopupProps: import("memoize-one").MemoizedFn<(width: string | number, target: Target, onFlip: (data: any) => any, boundariesElement?: BoundariesElement, offset?: number[], placement?: Placement, rootBoundary?: RootBoundary, shouldFlip?: boolean, popupTitle?: string) => {
4
4
  searchThreshold: number;
5
5
  controlShouldRenderValue: boolean;
@@ -1,4 +1,4 @@
1
- import { StylesConfig } from '@atlaskit/select';
1
+ import { type StylesConfig } from '@atlaskit/select';
2
2
  export declare const BORDER_PADDING: "var(--ds-space-075)";
3
3
  export declare const AVATAR_PADDING = 6;
4
4
  export declare const INDICATOR_WIDTH = 39;
@@ -1,5 +1,5 @@
1
- import { ReactChild, ReactElement, ReactNode } from 'react';
2
- import { AtlaskitSelectValue, ExternalUser, Custom, Email, Option, OptionData, Promisable, Team, Group, User, OptionIdentifier, DefaultValue, LozengeProps } from '../types';
1
+ import { type ReactChild, type ReactElement, type ReactNode } from 'react';
2
+ import { type AtlaskitSelectValue, type ExternalUser, type Custom, type Email, type Option, type OptionData, type Promisable, type Team, type Group, type User, type OptionIdentifier, type DefaultValue, type LozengeProps } from '../types';
3
3
  export declare const isExternalUser: (option: OptionData) => option is ExternalUser;
4
4
  export declare const isUser: (option: OptionData) => option is User;
5
5
  export declare const isTeam: (option: OptionData) => option is Team;
@@ -1,9 +1,11 @@
1
- import React, { type AriaAttributes, ReactNode } from 'react';
2
- import { WithAnalyticsEventsProps } from '@atlaskit/analytics-next';
3
- import { Placement } from '@atlaskit/popper';
4
- import { EmailValidator } from './components/emailValidation';
5
- import { StylesConfig } from '@atlaskit/select';
6
- import { BaseUserPickerWithoutAnalytics } from './components/BaseUserPicker';
1
+ import { type ReactNode } from 'react';
2
+ import type React from 'react';
3
+ import { type AriaAttributes } from 'react';
4
+ import { type WithAnalyticsEventsProps } from '@atlaskit/analytics-next';
5
+ import { type Placement } from '@atlaskit/popper';
6
+ import { type EmailValidator } from './components/emailValidation';
7
+ import { type StylesConfig } from '@atlaskit/select';
8
+ import { type BaseUserPickerWithoutAnalytics } from './components/BaseUserPicker';
7
9
  export type UserPickerProps = WithAnalyticsEventsProps & {
8
10
  /**
9
11
  * Used to configure additional information regarding where the
@@ -1,5 +1,5 @@
1
- import { AnalyticsEventPayload } from '@atlaskit/analytics-next';
2
- import { UserPickerProps, UserPickerState } from './types';
1
+ import { type AnalyticsEventPayload } from '@atlaskit/analytics-next';
2
+ import { type UserPickerProps, type UserPickerState } from './types';
3
3
  export type UserPickerSession = {
4
4
  id: string;
5
5
  start: number;
@@ -1,5 +1,5 @@
1
- import { PropsWithChildren } from 'react';
2
- import { LoadUserSource, UserSource } from '../types';
1
+ import { type PropsWithChildren } from 'react';
2
+ import { type LoadUserSource, type UserSource } from '../types';
3
3
  export interface UserSourceContext {
4
4
  fetchUserSource?: LoadUserSource;
5
5
  }
@@ -1,7 +1,7 @@
1
1
  /** @jsx jsx */
2
- import { ReactNode } from 'react';
2
+ import { type ReactNode } from 'react';
3
3
  import { jsx } from '@emotion/react';
4
- import { LozengeProps } from '../types';
4
+ import { type LozengeProps } from '../types';
5
5
  export declare const textWrapper: (color?: string) => import("@emotion/react").SerializedStyles;
6
6
  export type AvatarItemOptionProps = {
7
7
  avatar: ReactNode;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { ClearIndicatorProps } from '@atlaskit/select';
2
+ import { type ClearIndicatorProps } from '@atlaskit/select';
3
3
  export declare class ClearIndicator extends React.PureComponent<ClearIndicatorProps<any>> {
4
4
  private handleMouseDown;
5
5
  render(): JSX.Element;
@@ -1,6 +1,6 @@
1
1
  import { jsx } from '@emotion/react';
2
2
  import React from 'react';
3
- import { Custom } from '../../types';
3
+ import { type Custom } from '../../types';
4
4
  export type CustomOptionProps = {
5
5
  data: Custom;
6
6
  isSelected: boolean;
@@ -1,8 +1,8 @@
1
1
  /** @jsx jsx */
2
2
  import React from 'react';
3
3
  import { jsx } from '@emotion/react';
4
- import { Email } from '../../types';
5
- import { EmailValidationResponse } from '../emailValidation';
4
+ import { type Email } from '../../types';
5
+ import { type EmailValidationResponse } from '../emailValidation';
6
6
  export type EmailOptionProps = {
7
7
  email: Email;
8
8
  isSelected: boolean;
@@ -1,5 +1,5 @@
1
1
  /** @jsx jsx */
2
- import { ReactNode } from 'react';
2
+ import { type ReactNode } from 'react';
3
3
  import { jsx } from '@emotion/react';
4
4
  export type ExternalAvatarItemOptionProps = {
5
5
  avatar: ReactNode;
@@ -1,4 +1,4 @@
1
1
  import React from 'react';
2
- import { ExternalUserSourcesData } from '../ExternalUserSourcesContainer';
2
+ import { type ExternalUserSourcesData } from '../ExternalUserSourcesContainer';
3
3
  export declare const sourceWrapper: import("@emotion/react").SerializedStyles;
4
4
  export declare const SourcesTooltipContent: React.FC<ExternalUserSourcesData>;
@@ -1,7 +1,7 @@
1
1
  /** @jsx jsx */
2
2
  import React from 'react';
3
- import { WithAnalyticsEventsProps } from '@atlaskit/analytics-next';
4
- import { ExternalUser } from '../../types';
3
+ import { type WithAnalyticsEventsProps } from '@atlaskit/analytics-next';
4
+ import { type ExternalUser } from '../../types';
5
5
  export declare const imageContainer: import("@emotion/react").SerializedStyles;
6
6
  export declare const emailDomainWrapper: import("@emotion/react").SerializedStyles;
7
7
  export type ExternalUserOptionProps = WithAnalyticsEventsProps & {
@@ -1,5 +1,5 @@
1
- import { ReactNode } from 'react';
2
- import { UserSource } from '../types';
1
+ import { type ReactNode } from 'react';
2
+ import { type UserSource } from '../types';
3
3
  export interface ExternalUserSourcesData {
4
4
  sources: UserSource[];
5
5
  sourcesLoading: boolean;
@@ -1,7 +1,7 @@
1
1
  /** @jsx jsx */
2
2
  import React from 'react';
3
3
  import { jsx } from '@emotion/react';
4
- import { Group } from '../../types';
4
+ import { type Group } from '../../types';
5
5
  export declare const groupOptionIconWrapper: import("@emotion/react").SerializedStyles;
6
6
  export type GroupOptionProps = {
7
7
  group: Group;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { HighlightRange } from '../types';
2
+ import { type HighlightRange } from '../types';
3
3
  export interface Props {
4
4
  highlights?: HighlightRange[];
5
5
  children: string;
@@ -1,6 +1,6 @@
1
1
  import React, { type AriaAttributes } from 'react';
2
2
  import { type OptionType, type SelectProps } from '@atlaskit/select';
3
- import { AriaAttributesType } from '../types';
3
+ import { type AriaAttributesType } from '../types';
4
4
  export type Props = {
5
5
  selectProps?: SelectProps<OptionType, boolean>;
6
6
  innerRef: (ref: React.Ref<HTMLInputElement>) => void;
@@ -1,6 +1,6 @@
1
1
  /** @jsx jsx */
2
2
  import React from 'react';
3
- import { UserPickerProps } from '../types';
3
+ import { type UserPickerProps } from '../types';
4
4
  import { jsx } from '@emotion/react';
5
5
  export type Props = React.PropsWithChildren<{
6
6
  selectProps: UserPickerProps;
@@ -1,3 +1,3 @@
1
- import { PropsWithChildren } from 'react';
1
+ import { type PropsWithChildren } from 'react';
2
2
  declare const MessagesIntlProvider: (props: PropsWithChildren<{}>) => JSX.Element;
3
3
  export default MessagesIntlProvider;
@@ -1,9 +1,9 @@
1
1
  /** @jsx jsx */
2
2
  import React from 'react';
3
- import { OptionType } from '@atlaskit/select';
3
+ import { type OptionType } from '@atlaskit/select';
4
4
  import { jsx } from '@emotion/react';
5
- import { Option, UserPickerProps } from '../types';
6
- import { MultiValueProps } from '@atlaskit/select';
5
+ import { type Option, type UserPickerProps } from '../types';
6
+ import { type MultiValueProps } from '@atlaskit/select';
7
7
  export declare const scrollToValue: (valueContainer: HTMLDivElement, control: HTMLElement) => void;
8
8
  type Props = MultiValueProps<OptionType> & {
9
9
  isFocused?: boolean;
@@ -1,6 +1,6 @@
1
- import { MultiValueProps } from '@atlaskit/select';
1
+ import { type MultiValueProps } from '@atlaskit/select';
2
2
  import React from 'react';
3
- import { Option, User } from '../types';
3
+ import { type Option, type User } from '../types';
4
4
  export type State = {
5
5
  valueSize: number;
6
6
  previousValueSize: number;
@@ -1,6 +1,6 @@
1
- import { OptionProps as AkOptionProps } from '@atlaskit/select';
2
- import { FC } from 'react';
3
- import { Option as OptionType } from '../types';
1
+ import { type OptionProps as AkOptionProps } from '@atlaskit/select';
2
+ import { type FC } from 'react';
3
+ import { type Option as OptionType } from '../types';
4
4
  export type OptionProps = AkOptionProps & {
5
5
  data: OptionType;
6
6
  isSelected: boolean;
@@ -1,6 +1,6 @@
1
1
  /** @jsx jsx */
2
2
  import React from 'react';
3
- import { ControlProps } from '@atlaskit/select';
3
+ import { type ControlProps } from '@atlaskit/select';
4
4
  import { jsx } from '@emotion/react';
5
5
  export declare class PopupControl extends React.PureComponent<ControlProps<any>> {
6
6
  render(): jsx.JSX.Element;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { PopupUserPickerProps } from '../types';
2
+ import { type PopupUserPickerProps } from '../types';
3
3
  interface State {
4
4
  flipped: boolean;
5
5
  }
@@ -1,5 +1,5 @@
1
1
  import { jsx } from '@emotion/react';
2
- import { Option } from '../types';
3
- import { SingleValueProps } from '@atlaskit/select';
2
+ import { type Option } from '../types';
3
+ import { type SingleValueProps } from '@atlaskit/select';
4
4
  export type Props = SingleValueProps<Option>;
5
5
  export declare const SingleValue: (props: Props) => jsx.JSX.Element | null;
@@ -1,8 +1,8 @@
1
1
  /** @jsx jsx */
2
- import { ValueContainerProps } from '@atlaskit/select';
2
+ import { type ValueContainerProps } from '@atlaskit/select';
3
3
  import { jsx } from '@emotion/react';
4
4
  import React from 'react';
5
- import { Option, User } from '../types';
5
+ import { type Option, type User } from '../types';
6
6
  export declare class SingleValueContainer extends React.Component<ValueContainerProps<Option<User>>> {
7
7
  private renderAvatar;
8
8
  onValueContainerClick: any;
@@ -1,6 +1,6 @@
1
1
  import { jsx } from '@emotion/react';
2
2
  import React from 'react';
3
- import { Team } from '../../types';
3
+ import { type Team } from '../../types';
4
4
  export type TeamOptionProps = {
5
5
  team: Team;
6
6
  isSelected: boolean;
@@ -1,6 +1,6 @@
1
1
  import { jsx } from '@emotion/react';
2
2
  import React from 'react';
3
- import { User } from '../types';
3
+ import { type User } from '../types';
4
4
  export type UserOptionProps = {
5
5
  user: User;
6
6
  status?: string;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { UserPickerProps } from '../types';
2
+ import { type UserPickerProps } from '../types';
3
3
  export declare class UserPickerWithoutAnalytics extends React.Component<UserPickerProps> {
4
4
  ufoId: string;
5
5
  constructor(props: UserPickerProps);
@@ -1,5 +1,5 @@
1
- import { Option } from '../types';
2
- import { EmailValidator } from './emailValidation';
1
+ import { type Option } from '../types';
2
+ import { type EmailValidator } from './emailValidation';
3
3
  declare function creatableProps(isValidEmail?: EmailValidator): {
4
4
  allowCreateWhileLoading: boolean;
5
5
  createOptionPosition: string;
@@ -1,5 +1,5 @@
1
- import { Option } from '../types';
2
- import { EmailValidator } from './emailValidation';
1
+ import { type Option } from '../types';
2
+ import { type EmailValidator } from './emailValidation';
3
3
  export declare const getCreatableSuggestedEmailProps: import("memoize-one").MemoizedFn<(emailDomain: string, isValidEmail?: EmailValidator) => {
4
4
  allowCreateWhileLoading: boolean;
5
5
  createOptionPosition: string;
@@ -1,5 +1,5 @@
1
- import { Placement } from '@atlaskit/popper';
2
- import { Target, BoundariesElement, RootBoundary } from '../types';
1
+ import { type Placement } from '@atlaskit/popper';
2
+ import { type Target, type BoundariesElement, type RootBoundary } from '../types';
3
3
  export declare const getPopupProps: import("memoize-one").MemoizedFn<(width: string | number, target: Target, onFlip: (data: any) => any, boundariesElement?: BoundariesElement, offset?: number[], placement?: Placement, rootBoundary?: RootBoundary, shouldFlip?: boolean, popupTitle?: string) => {
4
4
  searchThreshold: number;
5
5
  controlShouldRenderValue: boolean;
@@ -1,4 +1,4 @@
1
- import { StylesConfig } from '@atlaskit/select';
1
+ import { type StylesConfig } from '@atlaskit/select';
2
2
  export declare const BORDER_PADDING: "var(--ds-space-075)";
3
3
  export declare const AVATAR_PADDING = 6;
4
4
  export declare const INDICATOR_WIDTH = 39;
@@ -1,5 +1,5 @@
1
- import { ReactChild, ReactElement, ReactNode } from 'react';
2
- import { AtlaskitSelectValue, ExternalUser, Custom, Email, Option, OptionData, Promisable, Team, Group, User, OptionIdentifier, DefaultValue, LozengeProps } from '../types';
1
+ import { type ReactChild, type ReactElement, type ReactNode } from 'react';
2
+ import { type AtlaskitSelectValue, type ExternalUser, type Custom, type Email, type Option, type OptionData, type Promisable, type Team, type Group, type User, type OptionIdentifier, type DefaultValue, type LozengeProps } from '../types';
3
3
  export declare const isExternalUser: (option: OptionData) => option is ExternalUser;
4
4
  export declare const isUser: (option: OptionData) => option is User;
5
5
  export declare const isTeam: (option: OptionData) => option is Team;
@@ -1,9 +1,11 @@
1
- import React, { type AriaAttributes, ReactNode } from 'react';
2
- import { WithAnalyticsEventsProps } from '@atlaskit/analytics-next';
3
- import { Placement } from '@atlaskit/popper';
4
- import { EmailValidator } from './components/emailValidation';
5
- import { StylesConfig } from '@atlaskit/select';
6
- import { BaseUserPickerWithoutAnalytics } from './components/BaseUserPicker';
1
+ import { type ReactNode } from 'react';
2
+ import type React from 'react';
3
+ import { type AriaAttributes } from 'react';
4
+ import { type WithAnalyticsEventsProps } from '@atlaskit/analytics-next';
5
+ import { type Placement } from '@atlaskit/popper';
6
+ import { type EmailValidator } from './components/emailValidation';
7
+ import { type StylesConfig } from '@atlaskit/select';
8
+ import { type BaseUserPickerWithoutAnalytics } from './components/BaseUserPicker';
7
9
  export type UserPickerProps = WithAnalyticsEventsProps & {
8
10
  /**
9
11
  * Used to configure additional information regarding where the
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/user-picker",
3
- "version": "10.20.2",
3
+ "version": "10.20.3",
4
4
  "description": "Fabric component for display a dropdown to select a user from",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -48,7 +48,7 @@
48
48
  "@atlaskit/logo": "^13.17.0",
49
49
  "@atlaskit/lozenge": "^11.7.0",
50
50
  "@atlaskit/platform-feature-flags": "^0.2.0",
51
- "@atlaskit/popper": "^5.5.0",
51
+ "@atlaskit/popper": "^6.0.0",
52
52
  "@atlaskit/primitives": "^6.3.0",
53
53
  "@atlaskit/select": "^17.9.0",
54
54
  "@atlaskit/spinner": "^16.1.0",