@atlaskit/user-picker 10.31.1 → 10.31.4

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 (42) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/dist/cjs/analytics.js +1 -1
  3. package/dist/cjs/components/BaseUserPicker.js +3 -0
  4. package/dist/es2019/analytics.js +1 -1
  5. package/dist/es2019/components/BaseUserPicker.js +3 -0
  6. package/dist/esm/analytics.js +1 -1
  7. package/dist/esm/components/BaseUserPicker.js +3 -0
  8. package/dist/types/clients/UserSourceProvider.d.ts +2 -2
  9. package/dist/types/components/BaseUserPicker.d.ts +4 -3
  10. package/dist/types/components/ClearIndicator.d.ts +1 -1
  11. package/dist/types/components/ExternalUserOption/SourcesTooltipContent.d.ts +2 -2
  12. package/dist/types/components/HighlightText.d.ts +1 -1
  13. package/dist/types/components/Input.d.ts +1 -1
  14. package/dist/types/components/MessagesIntlProvider.d.ts +2 -2
  15. package/dist/types/components/MultiValueContainer.d.ts +1 -1
  16. package/dist/types/components/PopupInput.d.ts +1 -1
  17. package/dist/types/components/PopupUserPicker.d.ts +3 -1
  18. package/dist/types/components/SizeableAvatar.d.ts +1 -1
  19. package/dist/types/components/UserPicker.d.ts +3 -2
  20. package/dist/types/components/assets/github.d.ts +1 -1
  21. package/dist/types/components/assets/google.d.ts +1 -1
  22. package/dist/types/components/assets/microsoft.d.ts +1 -1
  23. package/dist/types/components/assets/slack.d.ts +1 -1
  24. package/dist/types/types.d.ts +2 -0
  25. package/dist/types-ts4.5/clients/UserSourceProvider.d.ts +2 -2
  26. package/dist/types-ts4.5/components/BaseUserPicker.d.ts +4 -3
  27. package/dist/types-ts4.5/components/ClearIndicator.d.ts +1 -1
  28. package/dist/types-ts4.5/components/ExternalUserOption/SourcesTooltipContent.d.ts +2 -2
  29. package/dist/types-ts4.5/components/HighlightText.d.ts +1 -1
  30. package/dist/types-ts4.5/components/Input.d.ts +1 -1
  31. package/dist/types-ts4.5/components/MessagesIntlProvider.d.ts +2 -2
  32. package/dist/types-ts4.5/components/MultiValueContainer.d.ts +1 -1
  33. package/dist/types-ts4.5/components/PopupInput.d.ts +1 -1
  34. package/dist/types-ts4.5/components/PopupUserPicker.d.ts +3 -1
  35. package/dist/types-ts4.5/components/SizeableAvatar.d.ts +1 -1
  36. package/dist/types-ts4.5/components/UserPicker.d.ts +3 -2
  37. package/dist/types-ts4.5/components/assets/github.d.ts +1 -1
  38. package/dist/types-ts4.5/components/assets/google.d.ts +1 -1
  39. package/dist/types-ts4.5/components/assets/microsoft.d.ts +1 -1
  40. package/dist/types-ts4.5/components/assets/slack.d.ts +1 -1
  41. package/dist/types-ts4.5/types.d.ts +2 -0
  42. package/package.json +9 -6
package/CHANGELOG.md CHANGED
@@ -1,5 +1,25 @@
1
1
  # @atlaskit/user-picker
2
2
 
3
+ ## 10.31.4
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 10.31.3
10
+
11
+ ### Patch Changes
12
+
13
+ - [#114038](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/114038)
14
+ [`e279ab8b8f44d`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/e279ab8b8f44d) -
15
+ A11Y-7985 Pass aria-describedby to fix instruction not associated with form field issue
16
+
17
+ ## 10.31.2
18
+
19
+ ### Patch Changes
20
+
21
+ - Updated dependencies
22
+
3
23
  ## 10.31.1
4
24
 
5
25
  ### 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.4";
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}$/;
@@ -17,6 +17,7 @@ var _ufo = require("@atlaskit/ufo");
17
17
  var _debounce = _interopRequireDefault(require("lodash/debounce"));
18
18
  var _react = _interopRequireDefault(require("react"));
19
19
  var _reactIntlNext = require("react-intl-next");
20
+ var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
20
21
  var _uuid = require("uuid");
21
22
  var _analytics = require("../analytics");
22
23
  var _batch = require("./batch");
@@ -488,6 +489,7 @@ var BaseUserPickerWithoutAnalytics = exports.BaseUserPickerWithoutAnalytics = /*
488
489
  maxPickerHeight = _this$props4.maxPickerHeight,
489
490
  textFieldBackgroundColor = _this$props4.textFieldBackgroundColor,
490
491
  ariaLabelledBy = _this$props4.ariaLabelledBy,
492
+ ariaDescribedBy = _this$props4.ariaDescribedBy,
491
493
  ariaLive = _this$props4.ariaLive,
492
494
  ariaLabel = _this$props4.ariaLabel,
493
495
  name = _this$props4.name,
@@ -515,6 +517,7 @@ var BaseUserPickerWithoutAnalytics = exports.BaseUserPickerWithoutAnalytics = /*
515
517
  value: value,
516
518
  autoFocus: autoFocus !== undefined ? autoFocus : menuIsOpen,
517
519
  "aria-labelledby": ariaLabelledBy,
520
+ "aria-describedby": (0, _platformFeatureFlags.fg)('pass-aria-describedby-to-baseuserpicker') ? ariaDescribedBy : undefined,
518
521
  "aria-label": ariaLabel,
519
522
  "aria-live": ariaLive,
520
523
  "aria-required": required // This has been added as a safety net.
@@ -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.4";
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,6 +5,7 @@ import { UFOExperienceState } from '@atlaskit/ufo';
5
5
  import debounce from 'lodash/debounce';
6
6
  import React from 'react';
7
7
  import { FormattedMessage } from 'react-intl-next';
8
+ import { fg } from '@atlaskit/platform-feature-flags';
8
9
  import { v4 as uuidv4 } from 'uuid';
9
10
  import { cancelEvent, clearEvent, createAndFireEventInElementsChannel, deleteEvent, failedEvent, focusEvent, searchedEvent, selectEvent, startSession } from '../analytics';
10
11
  import { batchByKey } from './batch';
@@ -465,6 +466,7 @@ export class BaseUserPickerWithoutAnalytics extends React.Component {
465
466
  maxPickerHeight,
466
467
  textFieldBackgroundColor,
467
468
  ariaLabelledBy,
469
+ ariaDescribedBy,
468
470
  ariaLive,
469
471
  ariaLabel,
470
472
  name,
@@ -496,6 +498,7 @@ export class BaseUserPickerWithoutAnalytics extends React.Component {
496
498
  value: value,
497
499
  autoFocus: autoFocus !== undefined ? autoFocus : menuIsOpen,
498
500
  "aria-labelledby": ariaLabelledBy,
501
+ "aria-describedby": fg('pass-aria-describedby-to-baseuserpicker') ? ariaDescribedBy : undefined,
499
502
  "aria-label": ariaLabel,
500
503
  "aria-live": ariaLive,
501
504
  "aria-required": required // This has been added as a safety net.
@@ -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.4";
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}$/;
@@ -17,6 +17,7 @@ import { UFOExperienceState } from '@atlaskit/ufo';
17
17
  import debounce from 'lodash/debounce';
18
18
  import React from 'react';
19
19
  import { FormattedMessage } from 'react-intl-next';
20
+ import { fg } from '@atlaskit/platform-feature-flags';
20
21
  import { v4 as uuidv4 } from 'uuid';
21
22
  import { cancelEvent, clearEvent, createAndFireEventInElementsChannel, deleteEvent, failedEvent, focusEvent, searchedEvent, selectEvent, startSession } from '../analytics';
22
23
  import { batchByKey } from './batch';
@@ -481,6 +482,7 @@ export var BaseUserPickerWithoutAnalytics = /*#__PURE__*/function (_React$Compon
481
482
  maxPickerHeight = _this$props4.maxPickerHeight,
482
483
  textFieldBackgroundColor = _this$props4.textFieldBackgroundColor,
483
484
  ariaLabelledBy = _this$props4.ariaLabelledBy,
485
+ ariaDescribedBy = _this$props4.ariaDescribedBy,
484
486
  ariaLive = _this$props4.ariaLive,
485
487
  ariaLabel = _this$props4.ariaLabel,
486
488
  name = _this$props4.name,
@@ -508,6 +510,7 @@ export var BaseUserPickerWithoutAnalytics = /*#__PURE__*/function (_React$Compon
508
510
  value: value,
509
511
  autoFocus: autoFocus !== undefined ? autoFocus : menuIsOpen,
510
512
  "aria-labelledby": ariaLabelledBy,
513
+ "aria-describedby": fg('pass-aria-describedby-to-baseuserpicker') ? ariaDescribedBy : undefined,
511
514
  "aria-label": ariaLabel,
512
515
  "aria-live": ariaLive,
513
516
  "aria-required": required // This has been added as a safety net.
@@ -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;
@@ -122,6 +122,7 @@ export declare const BaseUserPicker: React.ForwardRefExoticComponent<Pick<Omit<{
122
122
  menuShouldBlockScroll?: boolean | undefined;
123
123
  ariaLabel?: string | undefined;
124
124
  ariaLabelledBy?: string | undefined;
125
+ ariaDescribedBy?: string | undefined;
125
126
  ariaLive?: "polite" | "off" | "assertive" | undefined;
126
127
  name?: string | undefined;
127
128
  header?: React.ReactNode;
@@ -141,7 +142,7 @@ export declare const BaseUserPicker: React.ForwardRefExoticComponent<Pick<Omit<{
141
142
  * It may be removed in a future minor or patch when a longer-term workaround is found.
142
143
  */
143
144
  UNSAFE_hasDraggableParentComponent?: boolean | undefined;
144
- }, keyof import("@atlaskit/analytics-next").WithAnalyticsEventsProps>, "options" | "search" | "placeholder" | "isDisabled" | "autoFocus" | "captureMenuScroll" | "closeMenuOnScroll" | "components" | "inputId" | "isInvalid" | "isLoading" | "menuPosition" | "menuPortalTarget" | "menuShouldBlockScroll" | "name" | "noOptionsMessage" | "onBlur" | "onChange" | "onFocus" | "onInputChange" | "onKeyDown" | "styles" | "value" | "required" | "appearance" | "footer" | "defaultValue" | "fieldId" | "width" | "menuMinWidth" | "maxPickerHeight" | "loadOptions" | "loadUserSource" | "anchor" | "open" | "onSelection" | "onClear" | "onOpen" | "onClose" | "placeholderAvatar" | "addMoreMessage" | "clearValueLabel" | "allowEmail" | "suggestEmailsForDomain" | "emailLabel" | "disableInput" | "isValidEmail" | "maxOptions" | "ariaLabel" | "ariaLabelledBy" | "ariaLive" | "header" | "UNSAFE_hasDraggableParentComponent" | "SelectComponent" | "pickerProps"> & {
145
+ }, keyof import("@atlaskit/analytics-next").WithAnalyticsEventsProps>, "options" | "search" | "placeholder" | "isDisabled" | "autoFocus" | "captureMenuScroll" | "closeMenuOnScroll" | "components" | "inputId" | "isInvalid" | "isLoading" | "menuPosition" | "menuPortalTarget" | "menuShouldBlockScroll" | "name" | "noOptionsMessage" | "onBlur" | "onChange" | "onFocus" | "onInputChange" | "onKeyDown" | "styles" | "value" | "required" | "appearance" | "footer" | "defaultValue" | "fieldId" | "width" | "menuMinWidth" | "maxPickerHeight" | "loadOptions" | "loadUserSource" | "anchor" | "open" | "onSelection" | "onClear" | "onOpen" | "onClose" | "placeholderAvatar" | "addMoreMessage" | "clearValueLabel" | "allowEmail" | "suggestEmailsForDomain" | "emailLabel" | "disableInput" | "isValidEmail" | "maxOptions" | "ariaLabel" | "ariaLabelledBy" | "ariaDescribedBy" | "ariaLive" | "header" | "UNSAFE_hasDraggableParentComponent" | "SelectComponent" | "pickerProps"> & {
145
146
  isClearable?: boolean | undefined;
146
147
  isMulti?: boolean | undefined;
147
148
  openMenuOnClick?: boolean | undefined;
@@ -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;
@@ -77,6 +77,7 @@ export declare const PopupUserPicker: React.ForwardRefExoticComponent<Omit<Pick<
77
77
  menuShouldBlockScroll?: boolean | undefined;
78
78
  ariaLabel?: string | undefined;
79
79
  ariaLabelledBy?: string | undefined;
80
+ ariaDescribedBy?: string | undefined;
80
81
  ariaLive?: "polite" | "off" | "assertive" | undefined;
81
82
  name?: string | undefined;
82
83
  header?: React.ReactNode;
@@ -154,6 +155,7 @@ export declare const PopupUserPicker: React.ForwardRefExoticComponent<Omit<Pick<
154
155
  maxOptions?: number | undefined;
155
156
  ariaLabel?: string | undefined;
156
157
  ariaLabelledBy?: string | undefined;
158
+ ariaDescribedBy?: string | undefined;
157
159
  ariaLive?: "polite" | "off" | "assertive" | undefined;
158
160
  header?: React.ReactNode;
159
161
  UNSAFE_hasDraggableParentComponent?: boolean | undefined;
@@ -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;
@@ -68,13 +68,14 @@ export declare const UserPicker: React.ForwardRefExoticComponent<Pick<Omit<{
68
68
  menuShouldBlockScroll?: boolean | undefined;
69
69
  ariaLabel?: string | undefined;
70
70
  ariaLabelledBy?: string | undefined;
71
+ ariaDescribedBy?: string | undefined;
71
72
  ariaLive?: "polite" | "off" | "assertive" | undefined;
72
73
  name?: string | undefined;
73
74
  header?: React.ReactNode;
74
75
  required?: boolean | undefined;
75
76
  UNSAFE_hasDraggableParentComponent?: boolean | undefined;
76
77
  openMenuOnClick?: boolean | undefined;
77
- }, keyof import("@atlaskit/analytics-next").WithAnalyticsEventsProps>, "options" | "search" | "placeholder" | "isDisabled" | "autoFocus" | "captureMenuScroll" | "closeMenuOnScroll" | "inputId" | "isClearable" | "isInvalid" | "isLoading" | "menuPosition" | "menuPortalTarget" | "menuShouldBlockScroll" | "name" | "noOptionsMessage" | "onBlur" | "onChange" | "onFocus" | "onInputChange" | "onKeyDown" | "openMenuOnClick" | "styles" | "value" | "required" | "appearance" | "footer" | "defaultValue" | "fieldId" | "menuMinWidth" | "maxPickerHeight" | "textFieldBackgroundColor" | "loadOptions" | "loadOptionsErrorMessage" | "loadUserSource" | "anchor" | "open" | "onSelection" | "onClear" | "onOpen" | "onClose" | "subtle" | "noBorder" | "placeholderAvatar" | "addMoreMessage" | "clearValueLabel" | "allowEmail" | "suggestEmailsForDomain" | "emailLabel" | "disableInput" | "isValidEmail" | "maxOptions" | "ariaLabel" | "ariaLabelledBy" | "ariaLive" | "header" | "UNSAFE_hasDraggableParentComponent"> & {
78
+ }, keyof import("@atlaskit/analytics-next").WithAnalyticsEventsProps>, "options" | "search" | "placeholder" | "isDisabled" | "autoFocus" | "captureMenuScroll" | "closeMenuOnScroll" | "inputId" | "isClearable" | "isInvalid" | "isLoading" | "menuPosition" | "menuPortalTarget" | "menuShouldBlockScroll" | "name" | "noOptionsMessage" | "onBlur" | "onChange" | "onFocus" | "onInputChange" | "onKeyDown" | "openMenuOnClick" | "styles" | "value" | "required" | "appearance" | "footer" | "defaultValue" | "fieldId" | "menuMinWidth" | "maxPickerHeight" | "textFieldBackgroundColor" | "loadOptions" | "loadOptionsErrorMessage" | "loadUserSource" | "anchor" | "open" | "onSelection" | "onClear" | "onOpen" | "onClose" | "subtle" | "noBorder" | "placeholderAvatar" | "addMoreMessage" | "clearValueLabel" | "allowEmail" | "suggestEmailsForDomain" | "emailLabel" | "disableInput" | "isValidEmail" | "maxOptions" | "ariaLabel" | "ariaLabelledBy" | "ariaDescribedBy" | "ariaLive" | "header" | "UNSAFE_hasDraggableParentComponent"> & {
78
79
  isMulti?: boolean | undefined;
79
80
  width?: string | number | undefined;
80
81
  } & {} & React.RefAttributes<any>>;
@@ -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;
@@ -156,6 +156,8 @@ export type UserPickerProps = WithAnalyticsEventsProps & {
156
156
  ariaLabel?: string;
157
157
  /** Accessibility: Identifies the element (or elements) that labels the current element.*/
158
158
  ariaLabelledBy?: string;
159
+ /** Accessibility: Identifies the element (or elements) that describe the current element.*/
160
+ ariaDescribedBy?: string;
159
161
  /** Accessibility: Used to set the priority with which screen reader should treat updates to live regions.*/
160
162
  ariaLive?: 'polite' | 'off' | 'assertive';
161
163
  /** Name to use for input 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;
@@ -122,6 +122,7 @@ export declare const BaseUserPicker: React.ForwardRefExoticComponent<Pick<Omit<{
122
122
  menuShouldBlockScroll?: boolean | undefined;
123
123
  ariaLabel?: string | undefined;
124
124
  ariaLabelledBy?: string | undefined;
125
+ ariaDescribedBy?: string | undefined;
125
126
  ariaLive?: "polite" | "off" | "assertive" | undefined;
126
127
  name?: string | undefined;
127
128
  header?: React.ReactNode;
@@ -141,7 +142,7 @@ export declare const BaseUserPicker: React.ForwardRefExoticComponent<Pick<Omit<{
141
142
  * It may be removed in a future minor or patch when a longer-term workaround is found.
142
143
  */
143
144
  UNSAFE_hasDraggableParentComponent?: boolean | undefined;
144
- }, keyof import("@atlaskit/analytics-next").WithAnalyticsEventsProps>, "options" | "search" | "placeholder" | "isDisabled" | "autoFocus" | "captureMenuScroll" | "closeMenuOnScroll" | "components" | "inputId" | "isInvalid" | "isLoading" | "menuPosition" | "menuPortalTarget" | "menuShouldBlockScroll" | "name" | "noOptionsMessage" | "onBlur" | "onChange" | "onFocus" | "onInputChange" | "onKeyDown" | "styles" | "value" | "required" | "appearance" | "footer" | "defaultValue" | "fieldId" | "width" | "menuMinWidth" | "maxPickerHeight" | "loadOptions" | "loadUserSource" | "anchor" | "open" | "onSelection" | "onClear" | "onOpen" | "onClose" | "placeholderAvatar" | "addMoreMessage" | "clearValueLabel" | "allowEmail" | "suggestEmailsForDomain" | "emailLabel" | "disableInput" | "isValidEmail" | "maxOptions" | "ariaLabel" | "ariaLabelledBy" | "ariaLive" | "header" | "UNSAFE_hasDraggableParentComponent" | "SelectComponent" | "pickerProps"> & {
145
+ }, keyof import("@atlaskit/analytics-next").WithAnalyticsEventsProps>, "options" | "search" | "placeholder" | "isDisabled" | "autoFocus" | "captureMenuScroll" | "closeMenuOnScroll" | "components" | "inputId" | "isInvalid" | "isLoading" | "menuPosition" | "menuPortalTarget" | "menuShouldBlockScroll" | "name" | "noOptionsMessage" | "onBlur" | "onChange" | "onFocus" | "onInputChange" | "onKeyDown" | "styles" | "value" | "required" | "appearance" | "footer" | "defaultValue" | "fieldId" | "width" | "menuMinWidth" | "maxPickerHeight" | "loadOptions" | "loadUserSource" | "anchor" | "open" | "onSelection" | "onClear" | "onOpen" | "onClose" | "placeholderAvatar" | "addMoreMessage" | "clearValueLabel" | "allowEmail" | "suggestEmailsForDomain" | "emailLabel" | "disableInput" | "isValidEmail" | "maxOptions" | "ariaLabel" | "ariaLabelledBy" | "ariaDescribedBy" | "ariaLive" | "header" | "UNSAFE_hasDraggableParentComponent" | "SelectComponent" | "pickerProps"> & {
145
146
  isClearable?: boolean | undefined;
146
147
  isMulti?: boolean | undefined;
147
148
  openMenuOnClick?: boolean | undefined;
@@ -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;
@@ -77,6 +77,7 @@ export declare const PopupUserPicker: React.ForwardRefExoticComponent<Omit<Pick<
77
77
  menuShouldBlockScroll?: boolean | undefined;
78
78
  ariaLabel?: string | undefined;
79
79
  ariaLabelledBy?: string | undefined;
80
+ ariaDescribedBy?: string | undefined;
80
81
  ariaLive?: "polite" | "off" | "assertive" | undefined;
81
82
  name?: string | undefined;
82
83
  header?: React.ReactNode;
@@ -160,6 +161,7 @@ export declare const PopupUserPicker: React.ForwardRefExoticComponent<Omit<Pick<
160
161
  maxOptions?: number | undefined;
161
162
  ariaLabel?: string | undefined;
162
163
  ariaLabelledBy?: string | undefined;
164
+ ariaDescribedBy?: string | undefined;
163
165
  ariaLive?: "polite" | "off" | "assertive" | undefined;
164
166
  header?: React.ReactNode;
165
167
  UNSAFE_hasDraggableParentComponent?: boolean | undefined;
@@ -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;
@@ -68,13 +68,14 @@ export declare const UserPicker: React.ForwardRefExoticComponent<Pick<Omit<{
68
68
  menuShouldBlockScroll?: boolean | undefined;
69
69
  ariaLabel?: string | undefined;
70
70
  ariaLabelledBy?: string | undefined;
71
+ ariaDescribedBy?: string | undefined;
71
72
  ariaLive?: "polite" | "off" | "assertive" | undefined;
72
73
  name?: string | undefined;
73
74
  header?: React.ReactNode;
74
75
  required?: boolean | undefined;
75
76
  UNSAFE_hasDraggableParentComponent?: boolean | undefined;
76
77
  openMenuOnClick?: boolean | undefined;
77
- }, keyof import("@atlaskit/analytics-next").WithAnalyticsEventsProps>, "options" | "search" | "placeholder" | "isDisabled" | "autoFocus" | "captureMenuScroll" | "closeMenuOnScroll" | "inputId" | "isClearable" | "isInvalid" | "isLoading" | "menuPosition" | "menuPortalTarget" | "menuShouldBlockScroll" | "name" | "noOptionsMessage" | "onBlur" | "onChange" | "onFocus" | "onInputChange" | "onKeyDown" | "openMenuOnClick" | "styles" | "value" | "required" | "appearance" | "footer" | "defaultValue" | "fieldId" | "menuMinWidth" | "maxPickerHeight" | "textFieldBackgroundColor" | "loadOptions" | "loadOptionsErrorMessage" | "loadUserSource" | "anchor" | "open" | "onSelection" | "onClear" | "onOpen" | "onClose" | "subtle" | "noBorder" | "placeholderAvatar" | "addMoreMessage" | "clearValueLabel" | "allowEmail" | "suggestEmailsForDomain" | "emailLabel" | "disableInput" | "isValidEmail" | "maxOptions" | "ariaLabel" | "ariaLabelledBy" | "ariaLive" | "header" | "UNSAFE_hasDraggableParentComponent"> & {
78
+ }, keyof import("@atlaskit/analytics-next").WithAnalyticsEventsProps>, "options" | "search" | "placeholder" | "isDisabled" | "autoFocus" | "captureMenuScroll" | "closeMenuOnScroll" | "inputId" | "isClearable" | "isInvalid" | "isLoading" | "menuPosition" | "menuPortalTarget" | "menuShouldBlockScroll" | "name" | "noOptionsMessage" | "onBlur" | "onChange" | "onFocus" | "onInputChange" | "onKeyDown" | "openMenuOnClick" | "styles" | "value" | "required" | "appearance" | "footer" | "defaultValue" | "fieldId" | "menuMinWidth" | "maxPickerHeight" | "textFieldBackgroundColor" | "loadOptions" | "loadOptionsErrorMessage" | "loadUserSource" | "anchor" | "open" | "onSelection" | "onClear" | "onOpen" | "onClose" | "subtle" | "noBorder" | "placeholderAvatar" | "addMoreMessage" | "clearValueLabel" | "allowEmail" | "suggestEmailsForDomain" | "emailLabel" | "disableInput" | "isValidEmail" | "maxOptions" | "ariaLabel" | "ariaLabelledBy" | "ariaDescribedBy" | "ariaLive" | "header" | "UNSAFE_hasDraggableParentComponent"> & {
78
79
  isMulti?: boolean | undefined;
79
80
  width?: string | number | undefined;
80
81
  } & {} & React.RefAttributes<any>>;
@@ -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;
@@ -156,6 +156,8 @@ export type UserPickerProps = WithAnalyticsEventsProps & {
156
156
  ariaLabel?: string;
157
157
  /** Accessibility: Identifies the element (or elements) that labels the current element.*/
158
158
  ariaLabelledBy?: string;
159
+ /** Accessibility: Identifies the element (or elements) that describe the current element.*/
160
+ ariaDescribedBy?: string;
159
161
  /** Accessibility: Used to set the priority with which screen reader should treat updates to live regions.*/
160
162
  ariaLive?: 'polite' | 'off' | 'assertive';
161
163
  /** Name to use for input 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.4",
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.6.0",
53
- "@atlaskit/logo": "^15.2.0",
52
+ "@atlaskit/icon": "^23.9.0",
53
+ "@atlaskit/logo": "^15.3.0",
54
54
  "@atlaskit/lozenge": "^11.13.0",
55
55
  "@atlaskit/people-teams-ui-public": "^2.1.0",
56
- "@atlaskit/platform-feature-flags": "^1.0.0",
56
+ "@atlaskit/platform-feature-flags": "^1.1.0",
57
57
  "@atlaskit/popper": "^6.4.0",
58
- "@atlaskit/primitives": "^13.4.0",
58
+ "@atlaskit/primitives": "^13.5.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": "^14.1.0",
62
+ "@atlaskit/theme": "^16.0.0",
63
63
  "@atlaskit/tokens": "^3.3.0",
64
64
  "@atlaskit/tooltip": "^19.1.0",
65
65
  "@atlaskit/ufo": "^0.3.0",
@@ -108,6 +108,9 @@
108
108
  "platform-feature-flags": {
109
109
  "verified-team-in-user-picker": {
110
110
  "type": "boolean"
111
+ },
112
+ "pass-aria-describedby-to-baseuserpicker": {
113
+ "type": "boolean"
111
114
  }
112
115
  }
113
116
  }