@atlaskit/user-picker 11.22.0 → 11.23.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,13 @@
1
1
  # @atlaskit/user-picker
2
2
 
3
+ ## 11.23.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`4222fa748c46e`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/4222fa748c46e) -
8
+ [ux] Feature flag clean up to enable keyboard interactions in with header prop plugin in
9
+ Confluence
10
+
3
11
  ## 11.22.0
4
12
 
5
13
  ### Minor Changes
@@ -1,7 +1,6 @@
1
1
  {
2
2
  "extends": "../../../../tsconfig.local-consumption.json",
3
3
  "compilerOptions": {
4
- "declaration": true,
5
4
  "target": "es5",
6
5
  "outDir": "../../../../../confluence/tsDist/@atlaskit__user-picker",
7
6
  "rootDir": "../",
@@ -1,7 +1,6 @@
1
1
  {
2
2
  "extends": "../../../../tsconfig.local-consumption.json",
3
3
  "compilerOptions": {
4
- "declaration": true,
5
4
  "target": "es5",
6
5
  "outDir": "../../../../../jira/tsDist/@atlaskit__user-picker/app",
7
6
  "rootDir": "../",
@@ -1,7 +1,6 @@
1
1
  {
2
2
  "extends": "../../../../tsconfig.local-consumption.json",
3
3
  "compilerOptions": {
4
- "declaration": true,
5
4
  "target": "es5",
6
5
  "outDir": "../../../../../tsDist/@atlaskit__user-picker/app",
7
6
  "rootDir": "../",
@@ -13,7 +13,7 @@ var _utils = require("./components/utils");
13
13
  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; }
14
14
  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; } // eslint-disable-next-line @atlaskit/platform/prefer-crypto-random-uuid -- Use crypto.randomUUID instead
15
15
  var packageName = "@atlaskit/user-picker";
16
- var packageVersion = "11.21.2";
16
+ var packageVersion = "0.0.0-development";
17
17
  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}$/;
18
18
  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}$/;
19
19
  var UUID_REGEXP_NEW_AAID = /^[a-fA-F0-9]{24,24}$/;
@@ -25,7 +25,6 @@ var _i18n = require("./i18n");
25
25
  var _utils = require("./utils");
26
26
  var _groupOptionsByType = require("../util/group-options-by-type");
27
27
  var _ufoExperiences = require("../util/ufoExperiences");
28
- var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
29
28
  var _excluded = ["aria-labelledby", "aria-describedby"];
30
29
  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; }
31
30
  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; }
@@ -253,7 +252,7 @@ var BaseUserPickerWithoutAnalytics = exports.BaseUserPickerWithoutAnalytics = /*
253
252
  });
254
253
  });
255
254
  (0, _defineProperty2.default)(_this, "handleBlur", function () {
256
- if (_this.isCreateTeamA11yEnabled && (_this.props.isFooterFocused || _this.props.isHeaderFocused)) {
255
+ if (_this.props.isFooterFocused || _this.props.isHeaderFocused) {
257
256
  return;
258
257
  }
259
258
  (0, _utils.callCallback)(_this.props.onBlur, _this.getSessionId());
@@ -269,7 +268,7 @@ var BaseUserPickerWithoutAnalytics = exports.BaseUserPickerWithoutAnalytics = /*
269
268
  });
270
269
  });
271
270
  (0, _defineProperty2.default)(_this, "handleClose", function () {
272
- if (_this.isCreateTeamA11yEnabled && (_this.props.isFooterFocused || _this.props.isHeaderFocused)) {
271
+ if (_this.props.isFooterFocused || _this.props.isHeaderFocused) {
273
272
  return;
274
273
  }
275
274
  _this.resetInputState();
@@ -332,21 +331,19 @@ var BaseUserPickerWithoutAnalytics = exports.BaseUserPickerWithoutAnalytics = /*
332
331
  }
333
332
  }
334
333
  _this.props.onKeyDown && _this.props.onKeyDown(event);
335
- if (_this.isCreateTeamA11yEnabled) {
336
- if (event.key === 'Escape') {
337
- _this.setState({
338
- menuIsOpen: false,
339
- options: []
340
- });
341
- _this.props.setIsFooterFocused && _this.props.setIsFooterFocused(false);
342
- _this.props.setIsHeaderFocused && _this.props.setIsHeaderFocused(false);
343
- }
344
- if (event.key === 'Tab' && _this.props.setIsFooterFocused && _this.props.footer) {
345
- _this.props.setIsFooterFocused(true);
346
- }
347
- if (event.key === 'Tab' && _this.props.setIsHeaderFocused && _this.props.header) {
348
- _this.props.setIsHeaderFocused(true);
349
- }
334
+ if (event.key === 'Escape') {
335
+ _this.setState({
336
+ menuIsOpen: false,
337
+ options: []
338
+ });
339
+ _this.props.setIsFooterFocused && _this.props.setIsFooterFocused(false);
340
+ _this.props.setIsHeaderFocused && _this.props.setIsHeaderFocused(false);
341
+ }
342
+ if (event.key === 'Tab' && _this.props.setIsFooterFocused && _this.props.footer) {
343
+ _this.props.setIsFooterFocused(true);
344
+ }
345
+ if (event.key === 'Tab' && _this.props.setIsHeaderFocused && _this.props.header) {
346
+ _this.props.setIsHeaderFocused(true);
350
347
  }
351
348
  });
352
349
  (0, _defineProperty2.default)(_this, "handleClearIndicatorHover", function (hoveringClearIndicator) {
@@ -441,11 +438,6 @@ var BaseUserPickerWithoutAnalytics = exports.BaseUserPickerWithoutAnalytics = /*
441
438
  get: function get() {
442
439
  return this.props.openMenuOnClick && !this.props.isMulti;
443
440
  }
444
- }, {
445
- key: "isCreateTeamA11yEnabled",
446
- get: function get() {
447
- return (0, _platformFeatureFlags.fg)('a11y-create-team-is-not-focusable-and-has-no-btn');
448
- }
449
441
  }, {
450
442
  key: "componentDidMount",
451
443
  value: function componentDidMount() {
@@ -471,7 +463,7 @@ var BaseUserPickerWithoutAnalytics = exports.BaseUserPickerWithoutAnalytics = /*
471
463
  inputValue = _this$state2.inputValue;
472
464
 
473
465
  // Close menu when isFooterFocused or isHeaderFocused changes from true to false
474
- if (this.isCreateTeamA11yEnabled && menuIsOpen && (prevProps.isFooterFocused === true && this.props.isFooterFocused === false || prevProps.isHeaderFocused === true && this.props.isHeaderFocused === false) && !this.shouldKeepMenuOpen()) {
466
+ if (menuIsOpen && (prevProps.isFooterFocused === true && this.props.isFooterFocused === false || prevProps.isHeaderFocused === true && this.props.isHeaderFocused === false) && !this.shouldKeepMenuOpen()) {
475
467
  this.resetInputState();
476
468
  (0, _utils.callCallback)(this.props.onClose, this.getSessionId());
477
469
  this.setState({
@@ -4,7 +4,7 @@ import FeatureGates from '@atlaskit/feature-gate-js-client';
4
4
  import { v4 as uuidv4 } from 'uuid';
5
5
  import { isCustom, isExternalUser } from './components/utils';
6
6
  const packageName = "@atlaskit/user-picker";
7
- const packageVersion = "11.21.2";
7
+ const packageVersion = "0.0.0-development";
8
8
  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}$/;
9
9
  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}$/;
10
10
  const UUID_REGEXP_NEW_AAID = /^[a-fA-F0-9]{24,24}$/;
@@ -13,7 +13,6 @@ import { messages } from './i18n';
13
13
  import { callCallback, extractOptionValue, getOptions, isIterable, isPopupUserPickerByComponent, isDefaultValuePopulated, isSingleValue, optionToSelectableOptions } from './utils';
14
14
  import { groupOptionsByType } from '../util/group-options-by-type';
15
15
  import { userPickerOptionsShownUfoExperience } from '../util/ufoExperiences';
16
- import { fg } from '@atlaskit/platform-feature-flags';
17
16
  const loadingMessage = () => null;
18
17
  const classNamePrefix = 'fabric-user-picker';
19
18
  export class BaseUserPickerWithoutAnalytics extends React.Component {
@@ -243,7 +242,7 @@ export class BaseUserPickerWithoutAnalytics extends React.Component {
243
242
  });
244
243
  });
245
244
  _defineProperty(this, "handleBlur", () => {
246
- if (this.isCreateTeamA11yEnabled && (this.props.isFooterFocused || this.props.isHeaderFocused)) {
245
+ if (this.props.isFooterFocused || this.props.isHeaderFocused) {
247
246
  return;
248
247
  }
249
248
  callCallback(this.props.onBlur, this.getSessionId());
@@ -259,7 +258,7 @@ export class BaseUserPickerWithoutAnalytics extends React.Component {
259
258
  });
260
259
  });
261
260
  _defineProperty(this, "handleClose", () => {
262
- if (this.isCreateTeamA11yEnabled && (this.props.isFooterFocused || this.props.isHeaderFocused)) {
261
+ if (this.props.isFooterFocused || this.props.isHeaderFocused) {
263
262
  return;
264
263
  }
265
264
  this.resetInputState();
@@ -322,21 +321,19 @@ export class BaseUserPickerWithoutAnalytics extends React.Component {
322
321
  }
323
322
  }
324
323
  this.props.onKeyDown && this.props.onKeyDown(event);
325
- if (this.isCreateTeamA11yEnabled) {
326
- if (event.key === 'Escape') {
327
- this.setState({
328
- menuIsOpen: false,
329
- options: []
330
- });
331
- this.props.setIsFooterFocused && this.props.setIsFooterFocused(false);
332
- this.props.setIsHeaderFocused && this.props.setIsHeaderFocused(false);
333
- }
334
- if (event.key === 'Tab' && this.props.setIsFooterFocused && this.props.footer) {
335
- this.props.setIsFooterFocused(true);
336
- }
337
- if (event.key === 'Tab' && this.props.setIsHeaderFocused && this.props.header) {
338
- this.props.setIsHeaderFocused(true);
339
- }
324
+ if (event.key === 'Escape') {
325
+ this.setState({
326
+ menuIsOpen: false,
327
+ options: []
328
+ });
329
+ this.props.setIsFooterFocused && this.props.setIsFooterFocused(false);
330
+ this.props.setIsHeaderFocused && this.props.setIsHeaderFocused(false);
331
+ }
332
+ if (event.key === 'Tab' && this.props.setIsFooterFocused && this.props.footer) {
333
+ this.props.setIsFooterFocused(true);
334
+ }
335
+ if (event.key === 'Tab' && this.props.setIsHeaderFocused && this.props.header) {
336
+ this.props.setIsHeaderFocused(true);
340
337
  }
341
338
  });
342
339
  _defineProperty(this, "handleClearIndicatorHover", hoveringClearIndicator => {
@@ -420,9 +417,6 @@ export class BaseUserPickerWithoutAnalytics extends React.Component {
420
417
  get isMenuOpenOnClickForSingleSelect() {
421
418
  return this.props.openMenuOnClick && !this.props.isMulti;
422
419
  }
423
- get isCreateTeamA11yEnabled() {
424
- return fg('a11y-create-team-is-not-focusable-and-has-no-btn');
425
- }
426
420
  componentDidMount() {
427
421
  const {
428
422
  open,
@@ -446,7 +440,7 @@ export class BaseUserPickerWithoutAnalytics extends React.Component {
446
440
  } = this.state;
447
441
 
448
442
  // Close menu when isFooterFocused or isHeaderFocused changes from true to false
449
- if (this.isCreateTeamA11yEnabled && menuIsOpen && (prevProps.isFooterFocused === true && this.props.isFooterFocused === false || prevProps.isHeaderFocused === true && this.props.isHeaderFocused === false) && !this.shouldKeepMenuOpen()) {
443
+ if (menuIsOpen && (prevProps.isFooterFocused === true && this.props.isFooterFocused === false || prevProps.isHeaderFocused === true && this.props.isHeaderFocused === false) && !this.shouldKeepMenuOpen()) {
450
444
  this.resetInputState();
451
445
  callCallback(this.props.onClose, this.getSessionId());
452
446
  this.setState({
@@ -7,7 +7,7 @@ import FeatureGates from '@atlaskit/feature-gate-js-client';
7
7
  import { v4 as uuidv4 } from 'uuid';
8
8
  import { isCustom, isExternalUser } from './components/utils';
9
9
  var packageName = "@atlaskit/user-picker";
10
- var packageVersion = "11.21.2";
10
+ var packageVersion = "0.0.0-development";
11
11
  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}$/;
12
12
  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}$/;
13
13
  var UUID_REGEXP_NEW_AAID = /^[a-fA-F0-9]{24,24}$/;
@@ -27,7 +27,6 @@ import { messages } from './i18n';
27
27
  import { callCallback, extractOptionValue, getOptions, isIterable, isPopupUserPickerByComponent, isDefaultValuePopulated, isSingleValue, optionToSelectableOptions } from './utils';
28
28
  import { groupOptionsByType } from '../util/group-options-by-type';
29
29
  import { userPickerOptionsShownUfoExperience } from '../util/ufoExperiences';
30
- import { fg } from '@atlaskit/platform-feature-flags';
31
30
  var loadingMessage = function loadingMessage() {
32
31
  return null;
33
32
  };
@@ -247,7 +246,7 @@ export var BaseUserPickerWithoutAnalytics = /*#__PURE__*/function (_React$Compon
247
246
  });
248
247
  });
249
248
  _defineProperty(_this, "handleBlur", function () {
250
- if (_this.isCreateTeamA11yEnabled && (_this.props.isFooterFocused || _this.props.isHeaderFocused)) {
249
+ if (_this.props.isFooterFocused || _this.props.isHeaderFocused) {
251
250
  return;
252
251
  }
253
252
  callCallback(_this.props.onBlur, _this.getSessionId());
@@ -263,7 +262,7 @@ export var BaseUserPickerWithoutAnalytics = /*#__PURE__*/function (_React$Compon
263
262
  });
264
263
  });
265
264
  _defineProperty(_this, "handleClose", function () {
266
- if (_this.isCreateTeamA11yEnabled && (_this.props.isFooterFocused || _this.props.isHeaderFocused)) {
265
+ if (_this.props.isFooterFocused || _this.props.isHeaderFocused) {
267
266
  return;
268
267
  }
269
268
  _this.resetInputState();
@@ -326,21 +325,19 @@ export var BaseUserPickerWithoutAnalytics = /*#__PURE__*/function (_React$Compon
326
325
  }
327
326
  }
328
327
  _this.props.onKeyDown && _this.props.onKeyDown(event);
329
- if (_this.isCreateTeamA11yEnabled) {
330
- if (event.key === 'Escape') {
331
- _this.setState({
332
- menuIsOpen: false,
333
- options: []
334
- });
335
- _this.props.setIsFooterFocused && _this.props.setIsFooterFocused(false);
336
- _this.props.setIsHeaderFocused && _this.props.setIsHeaderFocused(false);
337
- }
338
- if (event.key === 'Tab' && _this.props.setIsFooterFocused && _this.props.footer) {
339
- _this.props.setIsFooterFocused(true);
340
- }
341
- if (event.key === 'Tab' && _this.props.setIsHeaderFocused && _this.props.header) {
342
- _this.props.setIsHeaderFocused(true);
343
- }
328
+ if (event.key === 'Escape') {
329
+ _this.setState({
330
+ menuIsOpen: false,
331
+ options: []
332
+ });
333
+ _this.props.setIsFooterFocused && _this.props.setIsFooterFocused(false);
334
+ _this.props.setIsHeaderFocused && _this.props.setIsHeaderFocused(false);
335
+ }
336
+ if (event.key === 'Tab' && _this.props.setIsFooterFocused && _this.props.footer) {
337
+ _this.props.setIsFooterFocused(true);
338
+ }
339
+ if (event.key === 'Tab' && _this.props.setIsHeaderFocused && _this.props.header) {
340
+ _this.props.setIsHeaderFocused(true);
344
341
  }
345
342
  });
346
343
  _defineProperty(_this, "handleClearIndicatorHover", function (hoveringClearIndicator) {
@@ -435,11 +432,6 @@ export var BaseUserPickerWithoutAnalytics = /*#__PURE__*/function (_React$Compon
435
432
  get: function get() {
436
433
  return this.props.openMenuOnClick && !this.props.isMulti;
437
434
  }
438
- }, {
439
- key: "isCreateTeamA11yEnabled",
440
- get: function get() {
441
- return fg('a11y-create-team-is-not-focusable-and-has-no-btn');
442
- }
443
435
  }, {
444
436
  key: "componentDidMount",
445
437
  value: function componentDidMount() {
@@ -465,7 +457,7 @@ export var BaseUserPickerWithoutAnalytics = /*#__PURE__*/function (_React$Compon
465
457
  inputValue = _this$state2.inputValue;
466
458
 
467
459
  // Close menu when isFooterFocused or isHeaderFocused changes from true to false
468
- if (this.isCreateTeamA11yEnabled && menuIsOpen && (prevProps.isFooterFocused === true && this.props.isFooterFocused === false || prevProps.isHeaderFocused === true && this.props.isHeaderFocused === false) && !this.shouldKeepMenuOpen()) {
460
+ if (menuIsOpen && (prevProps.isFooterFocused === true && this.props.isFooterFocused === false || prevProps.isHeaderFocused === true && this.props.isHeaderFocused === false) && !this.shouldKeepMenuOpen()) {
469
461
  this.resetInputState();
470
462
  callCallback(this.props.onClose, this.getSessionId());
471
463
  this.setState({
@@ -49,7 +49,6 @@ export declare class BaseUserPickerWithoutAnalytics extends React.Component<Base
49
49
  private get isMenuOpenOnClickForSingleSelect();
50
50
  abortOptionsShownUfoExperience: () => void;
51
51
  startOptionsShownUfoExperience: () => void;
52
- private get isCreateTeamA11yEnabled();
53
52
  private executeLoadOptions;
54
53
  private handleFocus;
55
54
  private resetInputState;
@@ -78,7 +77,7 @@ export declare const BaseUserPicker: React.ForwardRefExoticComponent<Pick<Omit<{
78
77
  ariaDescribedBy?: string;
79
78
  ariaLabel?: string;
80
79
  ariaLabelledBy?: string;
81
- ariaLive?: "polite" | "off" | "assertive";
80
+ ariaLive?: 'polite' | 'off' | 'assertive';
82
81
  autoFocus?: boolean;
83
82
  captureMenuScroll?: boolean;
84
83
  clearValueLabel?: string;
@@ -90,7 +89,7 @@ export declare const BaseUserPicker: React.ForwardRefExoticComponent<Pick<Omit<{
90
89
  fieldId: string | null;
91
90
  footer?: React.ReactNode;
92
91
  forwardedRef?: React.ForwardedRef<UserPickerRef>;
93
- groupByTypeOrder?: NonNullable<OptionData["type"]>[];
92
+ groupByTypeOrder?: NonNullable<OptionData['type']>[];
94
93
  header?: React.ReactNode;
95
94
  height?: number | string;
96
95
  includeTeamsUpdates?: boolean;
@@ -113,7 +112,7 @@ export declare const BaseUserPicker: React.ForwardRefExoticComponent<Pick<Omit<{
113
112
  menuIsOpen?: boolean;
114
113
  menuMinWidth?: number;
115
114
  menuPortalTarget?: HTMLElement;
116
- menuPosition?: "absolute" | "fixed";
115
+ menuPosition?: 'absolute' | 'fixed';
117
116
  menuShouldBlockScroll?: boolean;
118
117
  name?: string;
119
118
  noBorder?: boolean;
@@ -133,14 +132,14 @@ export declare const BaseUserPicker: React.ForwardRefExoticComponent<Pick<Omit<{
133
132
  openMenuOnClick?: boolean;
134
133
  options?: OptionData[];
135
134
  placeholder?: React.ReactNode;
136
- placeholderAvatar?: "person" | "team";
135
+ placeholderAvatar?: 'person' | 'team';
137
136
  popupSelectProps?: PopupSelectProps<OptionData>;
138
137
  required?: boolean;
139
138
  search?: string;
140
139
  setIsFooterFocused?: React.Dispatch<React.SetStateAction<boolean>>;
141
140
  setIsHeaderFocused?: React.Dispatch<React.SetStateAction<boolean>>;
142
141
  showClearIndicator?: boolean;
143
- strategy?: "fixed" | "absolute";
142
+ strategy?: 'fixed' | 'absolute';
144
143
  styles?: StylesConfig;
145
144
  subtle?: boolean;
146
145
  suggestEmailsForDomain?: string;
@@ -161,7 +160,7 @@ export declare const BaseUserPicker: React.ForwardRefExoticComponent<Pick<Omit<{
161
160
  */
162
161
  UNSAFE_hasDraggableParentComponent?: boolean;
163
162
  width: string | number;
164
- }, keyof WithAnalyticsEventsProps>, "options" | "noOptionsMessage" | "placeholder" | "addMoreMessage" | "allowEmail" | "anchor" | "appearance" | "ariaDescribedBy" | "ariaLabel" | "ariaLabelledBy" | "ariaLive" | "autoFocus" | "captureMenuScroll" | "clearValueLabel" | "closeMenuOnScroll" | "components" | "defaultValue" | "disableInput" | "emailLabel" | "fieldId" | "footer" | "forwardedRef" | "groupByTypeOrder" | "header" | "height" | "includeTeamsUpdates" | "inputId" | "isDisabled" | "isFooterFocused" | "isInvalid" | "isLoading" | "isValidEmail" | "loadOptions" | "loadUserSource" | "maxOptions" | "maxPickerHeight" | "menuIsOpen" | "menuMinWidth" | "menuPortalTarget" | "menuPosition" | "menuShouldBlockScroll" | "name" | "onBlur" | "onChange" | "onClear" | "onClose" | "onFocus" | "onInputChange" | "onKeyDown" | "onOpen" | "onSelection" | "open" | "placeholderAvatar" | "popupSelectProps" | "required" | "search" | "setIsFooterFocused" | "showClearIndicator" | "strategy" | "styles" | "suggestEmailsForDomain" | "UNSAFE_hasDraggableParentComponent" | "value" | "width" | "pickerProps" | "SelectComponent"> & {
163
+ }, keyof WithAnalyticsEventsProps>, 'options' | 'noOptionsMessage' | 'placeholder' | 'addMoreMessage' | 'allowEmail' | 'anchor' | 'appearance' | 'ariaDescribedBy' | 'ariaLabel' | 'ariaLabelledBy' | 'ariaLive' | 'autoFocus' | 'captureMenuScroll' | 'clearValueLabel' | 'closeMenuOnScroll' | 'components' | 'defaultValue' | 'disableInput' | 'emailLabel' | 'fieldId' | 'footer' | 'forwardedRef' | 'groupByTypeOrder' | 'header' | 'height' | 'includeTeamsUpdates' | 'inputId' | 'isDisabled' | 'isFooterFocused' | 'isInvalid' | 'isLoading' | 'isValidEmail' | 'loadOptions' | 'loadUserSource' | 'maxOptions' | 'maxPickerHeight' | 'menuIsOpen' | 'menuMinWidth' | 'menuPortalTarget' | 'menuPosition' | 'menuShouldBlockScroll' | 'name' | 'onBlur' | 'onChange' | 'onClear' | 'onClose' | 'onFocus' | 'onInputChange' | 'onKeyDown' | 'onOpen' | 'onSelection' | 'open' | 'placeholderAvatar' | 'popupSelectProps' | 'required' | 'search' | 'setIsFooterFocused' | 'showClearIndicator' | 'strategy' | 'styles' | 'suggestEmailsForDomain' | 'UNSAFE_hasDraggableParentComponent' | 'value' | 'width' | 'pickerProps' | 'SelectComponent'> & {
165
164
  isClearable?: boolean | undefined;
166
165
  isMulti?: boolean | undefined;
167
166
  loadOptionsErrorMessage?: ((value: {
@@ -1,7 +1,7 @@
1
1
  import { type MemoizedFn } from 'memoize-one';
2
2
  import { type Placement } from '@atlaskit/popper';
3
3
  import { type Target, type BoundariesElement, type RootBoundary } from '../types';
4
- export declare const getPopupProps: MemoizedFn<(width: string | number, target: Target, onFlip: (data: any) => any, boundariesElement?: BoundariesElement, offset?: number[], placement?: Placement, rootBoundary?: RootBoundary, shouldFlip?: boolean, popupTitle?: string, strategy?: "fixed" | "absolute") => {
4
+ export declare const getPopupProps: MemoizedFn<(width: string | number, target: Target, onFlip: (data: any) => any, boundariesElement?: BoundariesElement, offset?: number[], placement?: Placement, rootBoundary?: RootBoundary, shouldFlip?: boolean, popupTitle?: string, strategy?: 'fixed' | 'absolute') => {
5
5
  autoFocus: boolean;
6
6
  controlShouldRenderValue: boolean;
7
7
  maxMenuWidth: string | number;
@@ -41,7 +41,7 @@ export declare const getPopupProps: MemoizedFn<(width: string | number, target:
41
41
  order?: undefined;
42
42
  })[];
43
43
  placement: Placement;
44
- strategy: "fixed" | "absolute";
44
+ strategy: 'fixed' | 'absolute';
45
45
  };
46
46
  popupTitle: string | undefined;
47
47
  searchThreshold: number;
@@ -49,7 +49,6 @@ export declare class BaseUserPickerWithoutAnalytics extends React.Component<Base
49
49
  private get isMenuOpenOnClickForSingleSelect();
50
50
  abortOptionsShownUfoExperience: () => void;
51
51
  startOptionsShownUfoExperience: () => void;
52
- private get isCreateTeamA11yEnabled();
53
52
  private executeLoadOptions;
54
53
  private handleFocus;
55
54
  private resetInputState;
@@ -78,7 +77,7 @@ export declare const BaseUserPicker: React.ForwardRefExoticComponent<Pick<Omit<{
78
77
  ariaDescribedBy?: string;
79
78
  ariaLabel?: string;
80
79
  ariaLabelledBy?: string;
81
- ariaLive?: "polite" | "off" | "assertive";
80
+ ariaLive?: 'polite' | 'off' | 'assertive';
82
81
  autoFocus?: boolean;
83
82
  captureMenuScroll?: boolean;
84
83
  clearValueLabel?: string;
@@ -90,7 +89,7 @@ export declare const BaseUserPicker: React.ForwardRefExoticComponent<Pick<Omit<{
90
89
  fieldId: string | null;
91
90
  footer?: React.ReactNode;
92
91
  forwardedRef?: React.ForwardedRef<UserPickerRef>;
93
- groupByTypeOrder?: NonNullable<OptionData["type"]>[];
92
+ groupByTypeOrder?: NonNullable<OptionData['type']>[];
94
93
  header?: React.ReactNode;
95
94
  height?: number | string;
96
95
  includeTeamsUpdates?: boolean;
@@ -113,7 +112,7 @@ export declare const BaseUserPicker: React.ForwardRefExoticComponent<Pick<Omit<{
113
112
  menuIsOpen?: boolean;
114
113
  menuMinWidth?: number;
115
114
  menuPortalTarget?: HTMLElement;
116
- menuPosition?: "absolute" | "fixed";
115
+ menuPosition?: 'absolute' | 'fixed';
117
116
  menuShouldBlockScroll?: boolean;
118
117
  name?: string;
119
118
  noBorder?: boolean;
@@ -133,14 +132,14 @@ export declare const BaseUserPicker: React.ForwardRefExoticComponent<Pick<Omit<{
133
132
  openMenuOnClick?: boolean;
134
133
  options?: OptionData[];
135
134
  placeholder?: React.ReactNode;
136
- placeholderAvatar?: "person" | "team";
135
+ placeholderAvatar?: 'person' | 'team';
137
136
  popupSelectProps?: PopupSelectProps<OptionData>;
138
137
  required?: boolean;
139
138
  search?: string;
140
139
  setIsFooterFocused?: React.Dispatch<React.SetStateAction<boolean>>;
141
140
  setIsHeaderFocused?: React.Dispatch<React.SetStateAction<boolean>>;
142
141
  showClearIndicator?: boolean;
143
- strategy?: "fixed" | "absolute";
142
+ strategy?: 'fixed' | 'absolute';
144
143
  styles?: StylesConfig;
145
144
  subtle?: boolean;
146
145
  suggestEmailsForDomain?: string;
@@ -161,7 +160,7 @@ export declare const BaseUserPicker: React.ForwardRefExoticComponent<Pick<Omit<{
161
160
  */
162
161
  UNSAFE_hasDraggableParentComponent?: boolean;
163
162
  width: string | number;
164
- }, keyof WithAnalyticsEventsProps>, "options" | "noOptionsMessage" | "placeholder" | "addMoreMessage" | "allowEmail" | "anchor" | "appearance" | "ariaDescribedBy" | "ariaLabel" | "ariaLabelledBy" | "ariaLive" | "autoFocus" | "captureMenuScroll" | "clearValueLabel" | "closeMenuOnScroll" | "components" | "defaultValue" | "disableInput" | "emailLabel" | "fieldId" | "footer" | "forwardedRef" | "groupByTypeOrder" | "header" | "height" | "includeTeamsUpdates" | "inputId" | "isDisabled" | "isFooterFocused" | "isInvalid" | "isLoading" | "isValidEmail" | "loadOptions" | "loadUserSource" | "maxOptions" | "maxPickerHeight" | "menuIsOpen" | "menuMinWidth" | "menuPortalTarget" | "menuPosition" | "menuShouldBlockScroll" | "name" | "onBlur" | "onChange" | "onClear" | "onClose" | "onFocus" | "onInputChange" | "onKeyDown" | "onOpen" | "onSelection" | "open" | "placeholderAvatar" | "popupSelectProps" | "required" | "search" | "setIsFooterFocused" | "showClearIndicator" | "strategy" | "styles" | "suggestEmailsForDomain" | "UNSAFE_hasDraggableParentComponent" | "value" | "width" | "pickerProps" | "SelectComponent"> & {
163
+ }, keyof WithAnalyticsEventsProps>, 'options' | 'noOptionsMessage' | 'placeholder' | 'addMoreMessage' | 'allowEmail' | 'anchor' | 'appearance' | 'ariaDescribedBy' | 'ariaLabel' | 'ariaLabelledBy' | 'ariaLive' | 'autoFocus' | 'captureMenuScroll' | 'clearValueLabel' | 'closeMenuOnScroll' | 'components' | 'defaultValue' | 'disableInput' | 'emailLabel' | 'fieldId' | 'footer' | 'forwardedRef' | 'groupByTypeOrder' | 'header' | 'height' | 'includeTeamsUpdates' | 'inputId' | 'isDisabled' | 'isFooterFocused' | 'isInvalid' | 'isLoading' | 'isValidEmail' | 'loadOptions' | 'loadUserSource' | 'maxOptions' | 'maxPickerHeight' | 'menuIsOpen' | 'menuMinWidth' | 'menuPortalTarget' | 'menuPosition' | 'menuShouldBlockScroll' | 'name' | 'onBlur' | 'onChange' | 'onClear' | 'onClose' | 'onFocus' | 'onInputChange' | 'onKeyDown' | 'onOpen' | 'onSelection' | 'open' | 'placeholderAvatar' | 'popupSelectProps' | 'required' | 'search' | 'setIsFooterFocused' | 'showClearIndicator' | 'strategy' | 'styles' | 'suggestEmailsForDomain' | 'UNSAFE_hasDraggableParentComponent' | 'value' | 'width' | 'pickerProps' | 'SelectComponent'> & {
165
164
  isClearable?: boolean | undefined;
166
165
  isMulti?: boolean | undefined;
167
166
  loadOptionsErrorMessage?: ((value: {
@@ -1,7 +1,7 @@
1
1
  import { type MemoizedFn } from 'memoize-one';
2
2
  import { type Placement } from '@atlaskit/popper';
3
3
  import { type Target, type BoundariesElement, type RootBoundary } from '../types';
4
- export declare const getPopupProps: MemoizedFn<(width: string | number, target: Target, onFlip: (data: any) => any, boundariesElement?: BoundariesElement, offset?: number[], placement?: Placement, rootBoundary?: RootBoundary, shouldFlip?: boolean, popupTitle?: string, strategy?: "fixed" | "absolute") => {
4
+ export declare const getPopupProps: MemoizedFn<(width: string | number, target: Target, onFlip: (data: any) => any, boundariesElement?: BoundariesElement, offset?: number[], placement?: Placement, rootBoundary?: RootBoundary, shouldFlip?: boolean, popupTitle?: string, strategy?: 'fixed' | 'absolute') => {
5
5
  autoFocus: boolean;
6
6
  controlShouldRenderValue: boolean;
7
7
  maxMenuWidth: string | number;
@@ -41,7 +41,7 @@ export declare const getPopupProps: MemoizedFn<(width: string | number, target:
41
41
  order?: undefined;
42
42
  })[];
43
43
  placement: Placement;
44
- strategy: "fixed" | "absolute";
44
+ strategy: 'fixed' | 'absolute';
45
45
  };
46
46
  popupTitle: string | undefined;
47
47
  searchThreshold: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/user-picker",
3
- "version": "11.22.0",
3
+ "version": "11.23.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/"
@@ -44,7 +44,7 @@
44
44
  "dependencies": {
45
45
  "@atlaskit/afm-i18n-platform-elements-user-picker": "2.7.0",
46
46
  "@atlaskit/analytics-next": "^11.1.0",
47
- "@atlaskit/avatar": "^25.7.0",
47
+ "@atlaskit/avatar": "^25.8.0",
48
48
  "@atlaskit/feature-gate-js-client": "^5.5.0",
49
49
  "@atlaskit/icon": "^31.0.0",
50
50
  "@atlaskit/logo": "^19.10.0",
@@ -118,9 +118,6 @@
118
118
  },
119
119
  "jira_ai_agent_avatar_user_picker_user_option": {
120
120
  "type": "boolean"
121
- },
122
- "a11y-create-team-is-not-focusable-and-has-no-btn": {
123
- "type": "boolean"
124
121
  }
125
122
  }
126
123
  }
package/tsconfig.json CHANGED
@@ -13,6 +13,5 @@
13
13
  "**/stories/*.tsx",
14
14
  "**/stories/**/*.ts",
15
15
  "**/stories/**/*.tsx"
16
- ],
17
- "compilerOptions": {}
16
+ ]
18
17
  }