@atlaskit/user-picker 10.31.2 → 11.0.0

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 CHANGED
@@ -1,5 +1,37 @@
1
1
  # @atlaskit/user-picker
2
2
 
3
+ ## 11.0.0
4
+
5
+ ### Major Changes
6
+
7
+ - [#117363](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/117363)
8
+ [`10a0f7f6c2027`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/10a0f7f6c2027) -
9
+ This package's `peerDependencies` have been adjusted for `react` and/or `react-dom` to reflect the
10
+ status of only supporting React 18 going forward. No explicit breaking change to React support has
11
+ been made in this release, but this is to signify going forward, breaking changes for React 16 or
12
+ React 17 may come via non-major semver releases.
13
+
14
+ Please refer this community post for more details:
15
+ https://community.developer.atlassian.com/t/rfc-78-dropping-support-for-react-16-and-rendering-in-a-react-18-concurrent-root-in-jira-and-confluence/87026
16
+
17
+ ### Patch Changes
18
+
19
+ - Updated dependencies
20
+
21
+ ## 10.31.4
22
+
23
+ ### Patch Changes
24
+
25
+ - Updated dependencies
26
+
27
+ ## 10.31.3
28
+
29
+ ### Patch Changes
30
+
31
+ - [#114038](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/114038)
32
+ [`e279ab8b8f44d`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/e279ab8b8f44d) -
33
+ A11Y-7985 Pass aria-describedby to fix instruction not associated with form field issue
34
+
3
35
  ## 10.31.2
4
36
 
5
37
  ### 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.2";
15
+ var packageVersion = "11.0.0";
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.2";
5
+ const packageVersion = "11.0.0";
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.2";
8
+ var packageVersion = "11.0.0";
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.
@@ -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;
@@ -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;
@@ -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>>;
@@ -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. */
@@ -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;
@@ -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;
@@ -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>>;
@@ -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.2",
3
+ "version": "11.0.0",
4
4
  "description": "Fabric component for display a dropdown to select a user from",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -47,22 +47,22 @@
47
47
  "access": "public"
48
48
  },
49
49
  "dependencies": {
50
- "@atlaskit/analytics-next": "^10.3.0",
51
- "@atlaskit/avatar": "^21.18.0",
52
- "@atlaskit/icon": "^23.7.0",
53
- "@atlaskit/logo": "^15.2.0",
54
- "@atlaskit/lozenge": "^11.13.0",
55
- "@atlaskit/people-teams-ui-public": "^2.1.0",
56
- "@atlaskit/platform-feature-flags": "^1.0.0",
57
- "@atlaskit/popper": "^6.4.0",
58
- "@atlaskit/primitives": "^13.4.0",
59
- "@atlaskit/select": "^18.10.0",
60
- "@atlaskit/spinner": "^17.1.0",
61
- "@atlaskit/teams-avatar": "^1.2.0",
62
- "@atlaskit/theme": "^15.0.0",
63
- "@atlaskit/tokens": "^3.3.0",
64
- "@atlaskit/tooltip": "^19.1.0",
65
- "@atlaskit/ufo": "^0.3.0",
50
+ "@atlaskit/analytics-next": "^11.0.0",
51
+ "@atlaskit/avatar": "^22.0.0",
52
+ "@atlaskit/icon": "^24.0.0",
53
+ "@atlaskit/logo": "^16.0.0",
54
+ "@atlaskit/lozenge": "^12.0.0",
55
+ "@atlaskit/people-teams-ui-public": "^3.0.0",
56
+ "@atlaskit/platform-feature-flags": "^1.1.0",
57
+ "@atlaskit/popper": "^7.0.0",
58
+ "@atlaskit/primitives": "^14.0.0",
59
+ "@atlaskit/select": "^19.0.0",
60
+ "@atlaskit/spinner": "^18.0.0",
61
+ "@atlaskit/teams-avatar": "^2.0.0",
62
+ "@atlaskit/theme": "^17.0.0",
63
+ "@atlaskit/tokens": "^4.0.0",
64
+ "@atlaskit/tooltip": "^20.0.0",
65
+ "@atlaskit/ufo": "^0.4.0",
66
66
  "@babel/runtime": "^7.0.0",
67
67
  "@emotion/react": "^11.7.1",
68
68
  "lodash": "^4.17.21",
@@ -70,14 +70,14 @@
70
70
  "uuid": "^3.1.0"
71
71
  },
72
72
  "peerDependencies": {
73
- "react": "^16.8.0 || ^17.0.0 || ^18.2.0",
74
- "react-dom": "^16.8.0 || ^17.0.0 || ^18.2.0",
73
+ "react": "^18.2.0",
74
+ "react-dom": "^18.2.0",
75
75
  "react-intl-next": "npm:react-intl@^5.18.1"
76
76
  },
77
77
  "devDependencies": {
78
- "@atlaskit/analytics-viewer": "^0.7.0",
79
- "@atlaskit/elements-test-helpers": "^0.8.0",
80
- "@atlaskit/heading": "^4.1.0",
78
+ "@atlaskit/analytics-viewer": "^0.8.0",
79
+ "@atlaskit/elements-test-helpers": "^0.9.0",
80
+ "@atlaskit/heading": "^5.0.0",
81
81
  "@atlaskit/visual-regression": "*",
82
82
  "@atlassian/feature-flags-test-utils": "^0.3.0",
83
83
  "@emotion/styled": "^11.0.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
  }