@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.
- package/CHANGELOG.md +6 -0
- package/dist/cjs/analytics.js +1 -1
- package/dist/es2019/analytics.js +1 -1
- package/dist/esm/analytics.js +1 -1
- package/dist/types/analytics.d.ts +2 -2
- package/dist/types/clients/UserSourceProvider.d.ts +2 -2
- package/dist/types/components/AvatarItemOption.d.ts +2 -2
- package/dist/types/components/ClearIndicator.d.ts +1 -1
- package/dist/types/components/CustomOption/main.d.ts +1 -1
- package/dist/types/components/EmailOption/main.d.ts +2 -2
- package/dist/types/components/ExternalUserOption/ExternalAvatarItemOption.d.ts +1 -1
- package/dist/types/components/ExternalUserOption/SourcesTooltipContent.d.ts +1 -1
- package/dist/types/components/ExternalUserOption/main.d.ts +2 -2
- package/dist/types/components/ExternalUserSourcesContainer.d.ts +2 -2
- package/dist/types/components/GroupOption/main.d.ts +1 -1
- package/dist/types/components/HighlightText.d.ts +1 -1
- package/dist/types/components/Input.d.ts +1 -1
- package/dist/types/components/Menu.d.ts +1 -1
- package/dist/types/components/MessagesIntlProvider.d.ts +1 -1
- package/dist/types/components/MultiValue.d.ts +3 -3
- package/dist/types/components/MultiValueContainer.d.ts +2 -2
- package/dist/types/components/Option.d.ts +3 -3
- package/dist/types/components/PopupControl.d.ts +1 -1
- package/dist/types/components/PopupUserPicker.d.ts +1 -1
- package/dist/types/components/SingleValue.d.ts +2 -2
- package/dist/types/components/SingleValueContainer.d.ts +2 -2
- package/dist/types/components/TeamOption/main.d.ts +1 -1
- package/dist/types/components/UserOption.d.ts +1 -1
- package/dist/types/components/UserPicker.d.ts +1 -1
- package/dist/types/components/creatable.d.ts +2 -2
- package/dist/types/components/creatableEmailSuggestion.d.ts +2 -2
- package/dist/types/components/popup.d.ts +2 -2
- package/dist/types/components/styles.d.ts +1 -1
- package/dist/types/components/utils.d.ts +2 -2
- package/dist/types/types.d.ts +8 -6
- package/dist/types-ts4.5/analytics.d.ts +2 -2
- package/dist/types-ts4.5/clients/UserSourceProvider.d.ts +2 -2
- package/dist/types-ts4.5/components/AvatarItemOption.d.ts +2 -2
- package/dist/types-ts4.5/components/ClearIndicator.d.ts +1 -1
- package/dist/types-ts4.5/components/CustomOption/main.d.ts +1 -1
- package/dist/types-ts4.5/components/EmailOption/main.d.ts +2 -2
- package/dist/types-ts4.5/components/ExternalUserOption/ExternalAvatarItemOption.d.ts +1 -1
- package/dist/types-ts4.5/components/ExternalUserOption/SourcesTooltipContent.d.ts +1 -1
- package/dist/types-ts4.5/components/ExternalUserOption/main.d.ts +2 -2
- package/dist/types-ts4.5/components/ExternalUserSourcesContainer.d.ts +2 -2
- package/dist/types-ts4.5/components/GroupOption/main.d.ts +1 -1
- 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/Menu.d.ts +1 -1
- package/dist/types-ts4.5/components/MessagesIntlProvider.d.ts +1 -1
- package/dist/types-ts4.5/components/MultiValue.d.ts +3 -3
- package/dist/types-ts4.5/components/MultiValueContainer.d.ts +2 -2
- package/dist/types-ts4.5/components/Option.d.ts +3 -3
- package/dist/types-ts4.5/components/PopupControl.d.ts +1 -1
- package/dist/types-ts4.5/components/PopupUserPicker.d.ts +1 -1
- package/dist/types-ts4.5/components/SingleValue.d.ts +2 -2
- package/dist/types-ts4.5/components/SingleValueContainer.d.ts +2 -2
- package/dist/types-ts4.5/components/TeamOption/main.d.ts +1 -1
- package/dist/types-ts4.5/components/UserOption.d.ts +1 -1
- package/dist/types-ts4.5/components/UserPicker.d.ts +1 -1
- package/dist/types-ts4.5/components/creatable.d.ts +2 -2
- package/dist/types-ts4.5/components/creatableEmailSuggestion.d.ts +2 -2
- package/dist/types-ts4.5/components/popup.d.ts +2 -2
- package/dist/types-ts4.5/components/styles.d.ts +1 -1
- package/dist/types-ts4.5/components/utils.d.ts +2 -2
- package/dist/types-ts4.5/types.d.ts +8 -6
- package/package.json +2 -2
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.20.
|
|
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}$/;
|
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.20.
|
|
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}$/;
|
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.20.
|
|
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,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,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,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,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,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 { 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,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,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;
|
package/dist/types/types.d.ts
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
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,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,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,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,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,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 { 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,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,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
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
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.
|
|
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": "^
|
|
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",
|