@atlaskit/user-picker 10.10.1 → 10.10.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/dist/cjs/analytics.js +1 -1
- package/dist/cjs/components/BaseUserPicker.js +7 -4
- package/dist/es2019/analytics.js +1 -1
- package/dist/es2019/components/BaseUserPicker.js +7 -4
- package/dist/esm/analytics.js +1 -1
- package/dist/esm/components/BaseUserPicker.js +7 -4
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @atlaskit/user-picker
|
|
2
2
|
|
|
3
|
+
## 10.10.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`ea5e724623c`](https://bitbucket.org/atlassian/atlassian-frontend/commits/ea5e724623c) - [ux] Fixed a minor bug where typing into the input for the user picker whilst it was in a closed state would result in the the loadOptions callback being called with undefined
|
|
8
|
+
|
|
3
9
|
## 10.10.1
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
package/dist/cjs/analytics.js
CHANGED
|
@@ -12,7 +12,7 @@ var _utils = require("./components/utils");
|
|
|
12
12
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
13
13
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
14
14
|
var packageName = "@atlaskit/user-picker";
|
|
15
|
-
var packageVersion = "10.10.
|
|
15
|
+
var packageVersion = "10.10.2";
|
|
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}$/;
|
|
@@ -279,7 +279,6 @@ var BaseUserPickerWithoutAnalytics = /*#__PURE__*/function (_React$Component) {
|
|
|
279
279
|
inputValue: search
|
|
280
280
|
});
|
|
281
281
|
_this.startOptionsShownUfoExperience();
|
|
282
|
-
_this.executeLoadOptions(search);
|
|
283
282
|
}
|
|
284
283
|
});
|
|
285
284
|
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "fireEvent", function (eventCreator) {
|
|
@@ -391,14 +390,18 @@ var BaseUserPickerWithoutAnalytics = /*#__PURE__*/function (_React$Component) {
|
|
|
391
390
|
menuIsOpen = _this$state2.menuIsOpen,
|
|
392
391
|
options = _this$state2.options,
|
|
393
392
|
resolving = _this$state2.resolving,
|
|
394
|
-
count = _this$state2.count
|
|
395
|
-
|
|
393
|
+
count = _this$state2.count,
|
|
394
|
+
inputValue = _this$state2.inputValue;
|
|
396
395
|
if (menuIsOpen && !prevState.menuIsOpen) {
|
|
397
396
|
if (!this.session) {
|
|
398
397
|
// session should have been created onFocus
|
|
399
398
|
this.startSession();
|
|
400
399
|
}
|
|
401
|
-
|
|
400
|
+
}
|
|
401
|
+
|
|
402
|
+
// Load options when user picker opens or when input value changes
|
|
403
|
+
if (menuIsOpen && !prevState.menuIsOpen || inputValue !== prevState.inputValue) {
|
|
404
|
+
this.executeLoadOptions(inputValue);
|
|
402
405
|
}
|
|
403
406
|
if (!menuIsOpen && prevState.menuIsOpen && this.session) {
|
|
404
407
|
this.fireEvent(_analytics.cancelEvent, prevState);
|
package/dist/es2019/analytics.js
CHANGED
|
@@ -2,7 +2,7 @@ import { createAndFireEvent } from '@atlaskit/analytics-next';
|
|
|
2
2
|
import { v4 as uuidv4 } from 'uuid';
|
|
3
3
|
import { isCustom, isExternalUser } from './components/utils';
|
|
4
4
|
const packageName = "@atlaskit/user-picker";
|
|
5
|
-
const packageVersion = "10.10.
|
|
5
|
+
const packageVersion = "10.10.2";
|
|
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}$/;
|
|
@@ -269,7 +269,6 @@ export class BaseUserPickerWithoutAnalytics extends React.Component {
|
|
|
269
269
|
inputValue: search
|
|
270
270
|
});
|
|
271
271
|
this.startOptionsShownUfoExperience();
|
|
272
|
-
this.executeLoadOptions(search);
|
|
273
272
|
}
|
|
274
273
|
});
|
|
275
274
|
_defineProperty(this, "fireEvent", (eventCreator, ...args) => {
|
|
@@ -373,15 +372,19 @@ export class BaseUserPickerWithoutAnalytics extends React.Component {
|
|
|
373
372
|
menuIsOpen,
|
|
374
373
|
options,
|
|
375
374
|
resolving,
|
|
376
|
-
count
|
|
375
|
+
count,
|
|
376
|
+
inputValue
|
|
377
377
|
} = this.state;
|
|
378
|
-
// load options when the picker open
|
|
379
378
|
if (menuIsOpen && !prevState.menuIsOpen) {
|
|
380
379
|
if (!this.session) {
|
|
381
380
|
// session should have been created onFocus
|
|
382
381
|
this.startSession();
|
|
383
382
|
}
|
|
384
|
-
|
|
383
|
+
}
|
|
384
|
+
|
|
385
|
+
// Load options when user picker opens or when input value changes
|
|
386
|
+
if (menuIsOpen && !prevState.menuIsOpen || inputValue !== prevState.inputValue) {
|
|
387
|
+
this.executeLoadOptions(inputValue);
|
|
385
388
|
}
|
|
386
389
|
if (!menuIsOpen && prevState.menuIsOpen && this.session) {
|
|
387
390
|
this.fireEvent(cancelEvent, prevState);
|
package/dist/esm/analytics.js
CHANGED
|
@@ -5,7 +5,7 @@ import { createAndFireEvent } from '@atlaskit/analytics-next';
|
|
|
5
5
|
import { v4 as uuidv4 } from 'uuid';
|
|
6
6
|
import { isCustom, isExternalUser } from './components/utils';
|
|
7
7
|
var packageName = "@atlaskit/user-picker";
|
|
8
|
-
var packageVersion = "10.10.
|
|
8
|
+
var packageVersion = "10.10.2";
|
|
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}$/;
|
|
@@ -272,7 +272,6 @@ export var BaseUserPickerWithoutAnalytics = /*#__PURE__*/function (_React$Compon
|
|
|
272
272
|
inputValue: search
|
|
273
273
|
});
|
|
274
274
|
_this.startOptionsShownUfoExperience();
|
|
275
|
-
_this.executeLoadOptions(search);
|
|
276
275
|
}
|
|
277
276
|
});
|
|
278
277
|
_defineProperty(_assertThisInitialized(_this), "fireEvent", function (eventCreator) {
|
|
@@ -384,14 +383,18 @@ export var BaseUserPickerWithoutAnalytics = /*#__PURE__*/function (_React$Compon
|
|
|
384
383
|
menuIsOpen = _this$state2.menuIsOpen,
|
|
385
384
|
options = _this$state2.options,
|
|
386
385
|
resolving = _this$state2.resolving,
|
|
387
|
-
count = _this$state2.count
|
|
388
|
-
|
|
386
|
+
count = _this$state2.count,
|
|
387
|
+
inputValue = _this$state2.inputValue;
|
|
389
388
|
if (menuIsOpen && !prevState.menuIsOpen) {
|
|
390
389
|
if (!this.session) {
|
|
391
390
|
// session should have been created onFocus
|
|
392
391
|
this.startSession();
|
|
393
392
|
}
|
|
394
|
-
|
|
393
|
+
}
|
|
394
|
+
|
|
395
|
+
// Load options when user picker opens or when input value changes
|
|
396
|
+
if (menuIsOpen && !prevState.menuIsOpen || inputValue !== prevState.inputValue) {
|
|
397
|
+
this.executeLoadOptions(inputValue);
|
|
395
398
|
}
|
|
396
399
|
if (!menuIsOpen && prevState.menuIsOpen && this.session) {
|
|
397
400
|
this.fireEvent(cancelEvent, prevState);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/user-picker",
|
|
3
|
-
"version": "10.10.
|
|
3
|
+
"version": "10.10.2",
|
|
4
4
|
"description": "Fabric component for display a dropdown to select a user from",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -40,10 +40,10 @@
|
|
|
40
40
|
"@atlaskit/logo": "^13.14.0",
|
|
41
41
|
"@atlaskit/lozenge": "^11.4.0",
|
|
42
42
|
"@atlaskit/popper": "^5.5.0",
|
|
43
|
-
"@atlaskit/select": "^16.
|
|
44
|
-
"@atlaskit/spinner": "^15.
|
|
43
|
+
"@atlaskit/select": "^16.7.0",
|
|
44
|
+
"@atlaskit/spinner": "^15.6.0",
|
|
45
45
|
"@atlaskit/theme": "^12.6.0",
|
|
46
|
-
"@atlaskit/tokens": "^1.
|
|
46
|
+
"@atlaskit/tokens": "^1.25.0",
|
|
47
47
|
"@atlaskit/tooltip": "^17.8.0",
|
|
48
48
|
"@atlaskit/ufo": "^0.2.0",
|
|
49
49
|
"@babel/runtime": "^7.0.0",
|