@atlaskit/user-picker 10.19.11 → 10.20.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.
@@ -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.19.11";
15
+ var packageVersion = "10.20.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}$/;
@@ -401,7 +401,8 @@ var BaseUserPickerWithoutAnalytics = exports.BaseUserPickerWithoutAnalytics = /*
401
401
  } else {
402
402
  _this.handleOpen();
403
403
  }
404
- } else if (!_this.state.menuIsOpen) {
404
+ // escaping the below condition when openMenuOnClick is true otherwise menu own't open on click
405
+ } else if (!_this.state.menuIsOpen && !_this.isMenuOpenOnClickForSingleSelect) {
405
406
  // Trigger focus state when ValueContainer is clicked for the first time
406
407
  // The focused state will then invoke <Select /> instance's own handlers (e.g. onMenuOpen, onMenuClose)
407
408
  // to manage the state of the dropdown menu
@@ -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.19.11";
5
+ const packageVersion = "10.20.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}$/;
@@ -378,7 +378,8 @@ export class BaseUserPickerWithoutAnalytics extends React.Component {
378
378
  } else {
379
379
  this.handleOpen();
380
380
  }
381
- } else if (!this.state.menuIsOpen) {
381
+ // escaping the below condition when openMenuOnClick is true otherwise menu own't open on click
382
+ } else if (!this.state.menuIsOpen && !this.isMenuOpenOnClickForSingleSelect) {
382
383
  // Trigger focus state when ValueContainer is clicked for the first time
383
384
  // The focused state will then invoke <Select /> instance's own handlers (e.g. onMenuOpen, onMenuClose)
384
385
  // to manage the state of the dropdown menu
@@ -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.19.11";
8
+ var packageVersion = "10.20.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}$/;
@@ -394,7 +394,8 @@ export var BaseUserPickerWithoutAnalytics = /*#__PURE__*/function (_React$Compon
394
394
  } else {
395
395
  _this.handleOpen();
396
396
  }
397
- } else if (!_this.state.menuIsOpen) {
397
+ // escaping the below condition when openMenuOnClick is true otherwise menu own't open on click
398
+ } else if (!_this.state.menuIsOpen && !_this.isMenuOpenOnClickForSingleSelect) {
398
399
  // Trigger focus state when ValueContainer is clicked for the first time
399
400
  // The focused state will then invoke <Select /> instance's own handlers (e.g. onMenuOpen, onMenuClose)
400
401
  // to manage the state of the dropdown menu
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { UserPickerProps, UserPickerState } from '../types';
2
+ import type { UserPickerProps, UserPickerState } from '../types';
3
3
  export type BaseUserPickerProps = UserPickerProps & {
4
4
  SelectComponent: React.ComponentType<any>;
5
5
  pickerProps?: any;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { UserPickerProps, UserPickerState } from '../types';
2
+ import type { UserPickerProps, UserPickerState } from '../types';
3
3
  export type BaseUserPickerProps = UserPickerProps & {
4
4
  SelectComponent: React.ComponentType<any>;
5
5
  pickerProps?: any;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/user-picker",
3
- "version": "10.19.11",
3
+ "version": "10.20.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/"
@@ -42,20 +42,20 @@
42
42
  "access": "public"
43
43
  },
44
44
  "dependencies": {
45
- "@atlaskit/analytics-next": "^9.2.0",
46
- "@atlaskit/avatar": "^21.5.0",
45
+ "@atlaskit/analytics-next": "^9.3.0",
46
+ "@atlaskit/avatar": "^21.6.0",
47
47
  "@atlaskit/icon": "^22.1.0",
48
48
  "@atlaskit/logo": "^13.15.0",
49
- "@atlaskit/lozenge": "^11.6.0",
49
+ "@atlaskit/lozenge": "^11.7.0",
50
50
  "@atlaskit/platform-feature-flags": "^0.2.0",
51
51
  "@atlaskit/popper": "^5.5.0",
52
- "@atlaskit/primitives": "^5.5.0",
53
- "@atlaskit/select": "^17.6.0",
54
- "@atlaskit/spinner": "^16.0.0",
52
+ "@atlaskit/primitives": "^5.7.0",
53
+ "@atlaskit/select": "^17.8.0",
54
+ "@atlaskit/spinner": "^16.1.0",
55
55
  "@atlaskit/teams-avatar": "^1.0.0",
56
56
  "@atlaskit/theme": "^12.7.0",
57
- "@atlaskit/tokens": "^1.43.0",
58
- "@atlaskit/tooltip": "^18.2.0",
57
+ "@atlaskit/tokens": "^1.45.0",
58
+ "@atlaskit/tooltip": "^18.3.0",
59
59
  "@atlaskit/ufo": "^0.2.0",
60
60
  "@babel/runtime": "^7.0.0",
61
61
  "@emotion/react": "^11.7.1",
@@ -71,7 +71,7 @@
71
71
  "devDependencies": {
72
72
  "@atlaskit/analytics-viewer": "^0.5.0",
73
73
  "@atlaskit/elements-test-helpers": "^0.7.0",
74
- "@atlaskit/heading": "^2.1.0",
74
+ "@atlaskit/heading": "^2.2.0",
75
75
  "@atlaskit/visual-regression": "*",
76
76
  "@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1",
77
77
  "@emotion/styled": "^11.0.0",
@@ -102,14 +102,6 @@
102
102
  "platform-feature-flags": {
103
103
  "platform.design-system-team.select-aria-activedescendant_psxzq": {
104
104
  "type": "boolean"
105
- },
106
- "platform.design-system-team.update-input-border-wdith_5abwv": {
107
- "type": "boolean",
108
- "referenceOnly": true
109
- },
110
- "platform.design-system-team.border-checkbox_nyoiu": {
111
- "type": "boolean",
112
- "referenceOnly": true
113
105
  }
114
106
  },
115
107
  "prettier": "@atlassian/atlassian-frontend-prettier-config-1.0.1"