@atlaskit/smart-user-picker 11.7.1 → 11.8.1
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 +14 -0
- package/dist/cjs/components/SmartUserPicker.js +4 -10
- package/dist/cjs/packageVersion.js +1 -1
- package/dist/es2019/components/SmartUserPicker.js +2 -9
- package/dist/es2019/packageVersion.js +1 -1
- package/dist/esm/components/SmartUserPicker.js +4 -10
- package/dist/esm/packageVersion.js +1 -1
- package/package.json +4 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @atlassian/smart-user-picker
|
|
2
2
|
|
|
3
|
+
## 11.8.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`0cb4543c427b0`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/0cb4543c427b0) -
|
|
8
|
+
Cleaned up feature gate smart_user_picker_suggest_emails_for_domain
|
|
9
|
+
|
|
10
|
+
## 11.8.0
|
|
11
|
+
|
|
12
|
+
### Minor Changes
|
|
13
|
+
|
|
14
|
+
- [`942e8a15cbdf1`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/942e8a15cbdf1) -
|
|
15
|
+
Update i18n NPM package versions for linking-platform,smart-experiences (Group 15)
|
|
16
|
+
|
|
3
17
|
## 11.7.1
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
|
@@ -338,17 +338,16 @@ var SmartUserPickerWithoutAnalytics = exports.SmartUserPickerWithoutAnalytics =
|
|
|
338
338
|
var applicable = state.query === _query;
|
|
339
339
|
var users = applicable ? displayedUsers : state.users;
|
|
340
340
|
var loading = !applicable;
|
|
341
|
-
_this.fireEvent(_successfulRequestUsersEvent.successfulRequestUsersEvent,
|
|
341
|
+
_this.fireEvent(_successfulRequestUsersEvent.successfulRequestUsersEvent, {
|
|
342
342
|
users: getUsersForAnalytics(recommendedUsers),
|
|
343
343
|
elapsedTimeMilli: elapsedTimeMilli,
|
|
344
344
|
displayedUsers: getUsersForAnalytics(displayedUsers),
|
|
345
345
|
productAttributes: productAttributes,
|
|
346
|
-
applicable: applicable
|
|
347
|
-
}, {
|
|
346
|
+
applicable: applicable,
|
|
348
347
|
userResolvers: Array.isArray(userResolvers) ? userResolvers.map(function (resolver) {
|
|
349
348
|
return resolver.name;
|
|
350
349
|
}) : []
|
|
351
|
-
})
|
|
350
|
+
});
|
|
352
351
|
return {
|
|
353
352
|
users: users,
|
|
354
353
|
loading: loading
|
|
@@ -612,14 +611,9 @@ var SmartUserPickerWithoutAnalytics = exports.SmartUserPickerWithoutAnalytics =
|
|
|
612
611
|
|
|
613
612
|
// Determine whether to allow email selection based on allowEmailSelectionWhenEmailMatched, if needed
|
|
614
613
|
var shouldAllowEmail = allowEmail;
|
|
615
|
-
|
|
616
|
-
// When suggestEmailsForDomain is active, partial (non-email) input must still reach the base
|
|
617
|
-
// picker's domain-suggestion creatable logic, so the isEmailQuery restriction is relaxed for
|
|
618
|
-
// those queries only. Full email queries that matched an existing user remain suppressed.
|
|
619
|
-
var isDomainSuggestionEnabled = (0, _fg.fg)('smart_user_picker_suggest_emails_for_domain') && !!suggestEmailsForDomain;
|
|
620
614
|
if (allowEmail && enableEmailSearch && !allowEmailSelectionWhenEmailMatched) {
|
|
621
615
|
var isCurrentQueryEmail = isEmailQuery(this.state.query);
|
|
622
|
-
if (
|
|
616
|
+
if (suggestEmailsForDomain) {
|
|
623
617
|
// Allow email for partial queries so the "<query>@<domain>" suggestion can render,
|
|
624
618
|
// but still suppress selection when a full email query matched an existing user,
|
|
625
619
|
// or when the synthesized "<query>@<domain>" is itself an existing user's email.
|
|
@@ -263,9 +263,7 @@ export class SmartUserPickerWithoutAnalytics extends React.Component {
|
|
|
263
263
|
displayedUsers: getUsersForAnalytics(displayedUsers),
|
|
264
264
|
productAttributes,
|
|
265
265
|
applicable,
|
|
266
|
-
|
|
267
|
-
userResolvers: Array.isArray(userResolvers) ? userResolvers.map(resolver => resolver.name) : []
|
|
268
|
-
}
|
|
266
|
+
userResolvers: Array.isArray(userResolvers) ? userResolvers.map(resolver => resolver.name) : []
|
|
269
267
|
});
|
|
270
268
|
return {
|
|
271
269
|
users,
|
|
@@ -467,14 +465,9 @@ export class SmartUserPickerWithoutAnalytics extends React.Component {
|
|
|
467
465
|
|
|
468
466
|
// Determine whether to allow email selection based on allowEmailSelectionWhenEmailMatched, if needed
|
|
469
467
|
let shouldAllowEmail = allowEmail;
|
|
470
|
-
|
|
471
|
-
// When suggestEmailsForDomain is active, partial (non-email) input must still reach the base
|
|
472
|
-
// picker's domain-suggestion creatable logic, so the isEmailQuery restriction is relaxed for
|
|
473
|
-
// those queries only. Full email queries that matched an existing user remain suppressed.
|
|
474
|
-
const isDomainSuggestionEnabled = fg('smart_user_picker_suggest_emails_for_domain') && !!suggestEmailsForDomain;
|
|
475
468
|
if (allowEmail && enableEmailSearch && !allowEmailSelectionWhenEmailMatched) {
|
|
476
469
|
const isCurrentQueryEmail = isEmailQuery(this.state.query);
|
|
477
|
-
if (
|
|
470
|
+
if (suggestEmailsForDomain) {
|
|
478
471
|
// Allow email for partial queries so the "<query>@<domain>" suggestion can render,
|
|
479
472
|
// but still suppress selection when a full email query matched an existing user,
|
|
480
473
|
// or when the synthesized "<query>@<domain>" is itself an existing user's email.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export const packageVersion = "11.
|
|
1
|
+
export const packageVersion = "11.8.0";
|
|
@@ -332,17 +332,16 @@ export var SmartUserPickerWithoutAnalytics = /*#__PURE__*/function (_React$Compo
|
|
|
332
332
|
var applicable = state.query === _query;
|
|
333
333
|
var users = applicable ? displayedUsers : state.users;
|
|
334
334
|
var loading = !applicable;
|
|
335
|
-
_this.fireEvent(successfulRequestUsersEvent,
|
|
335
|
+
_this.fireEvent(successfulRequestUsersEvent, {
|
|
336
336
|
users: getUsersForAnalytics(recommendedUsers),
|
|
337
337
|
elapsedTimeMilli: elapsedTimeMilli,
|
|
338
338
|
displayedUsers: getUsersForAnalytics(displayedUsers),
|
|
339
339
|
productAttributes: productAttributes,
|
|
340
|
-
applicable: applicable
|
|
341
|
-
}, {
|
|
340
|
+
applicable: applicable,
|
|
342
341
|
userResolvers: Array.isArray(userResolvers) ? userResolvers.map(function (resolver) {
|
|
343
342
|
return resolver.name;
|
|
344
343
|
}) : []
|
|
345
|
-
})
|
|
344
|
+
});
|
|
346
345
|
return {
|
|
347
346
|
users: users,
|
|
348
347
|
loading: loading
|
|
@@ -606,14 +605,9 @@ export var SmartUserPickerWithoutAnalytics = /*#__PURE__*/function (_React$Compo
|
|
|
606
605
|
|
|
607
606
|
// Determine whether to allow email selection based on allowEmailSelectionWhenEmailMatched, if needed
|
|
608
607
|
var shouldAllowEmail = allowEmail;
|
|
609
|
-
|
|
610
|
-
// When suggestEmailsForDomain is active, partial (non-email) input must still reach the base
|
|
611
|
-
// picker's domain-suggestion creatable logic, so the isEmailQuery restriction is relaxed for
|
|
612
|
-
// those queries only. Full email queries that matched an existing user remain suppressed.
|
|
613
|
-
var isDomainSuggestionEnabled = fg('smart_user_picker_suggest_emails_for_domain') && !!suggestEmailsForDomain;
|
|
614
608
|
if (allowEmail && enableEmailSearch && !allowEmailSelectionWhenEmailMatched) {
|
|
615
609
|
var isCurrentQueryEmail = isEmailQuery(this.state.query);
|
|
616
|
-
if (
|
|
610
|
+
if (suggestEmailsForDomain) {
|
|
617
611
|
// Allow email for partial queries so the "<query>@<domain>" suggestion can render,
|
|
618
612
|
// but still suppress selection when a full email query matched an existing user,
|
|
619
613
|
// or when the synthesized "<query>@<domain>" is itself an existing user's email.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export var packageVersion = "11.
|
|
1
|
+
export var packageVersion = "11.8.0";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/smart-user-picker",
|
|
3
|
-
"version": "11.
|
|
3
|
+
"version": "11.8.1",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
}
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@atlaskit/afm-i18n-platform-smart-experiences-smart-user-picker": "2.
|
|
29
|
+
"@atlaskit/afm-i18n-platform-smart-experiences-smart-user-picker": "2.243.0",
|
|
30
30
|
"@atlaskit/analytics-next": "^12.5.0",
|
|
31
31
|
"@atlaskit/platform-feature-flags": "^2.2.0",
|
|
32
32
|
"@atlaskit/ufo": "^1.2.0",
|
|
@@ -48,7 +48,8 @@
|
|
|
48
48
|
"@atlaskit/util-data-test": "^19.1.0",
|
|
49
49
|
"@atlassian/a11y-jest-testing": "^0.17.0",
|
|
50
50
|
"@atlassian/feature-flags-test-utils": "^1.3.0",
|
|
51
|
-
"@atlassian/integrations": "^33.
|
|
51
|
+
"@atlassian/integrations": "^33.11.0",
|
|
52
|
+
"@atlassian/workbench": "workspace:*",
|
|
52
53
|
"@testing-library/dom": "^10.1.0",
|
|
53
54
|
"@testing-library/react": "^16.3.0",
|
|
54
55
|
"@testing-library/user-event": "^14.4.3",
|
|
@@ -62,9 +63,6 @@
|
|
|
62
63
|
"react-intl": "^7.0.0"
|
|
63
64
|
},
|
|
64
65
|
"platform-feature-flags": {
|
|
65
|
-
"smart_user_picker_suggest_emails_for_domain": {
|
|
66
|
-
"type": "boolean"
|
|
67
|
-
},
|
|
68
66
|
"smart-user-picker-fetch-error-fix": {
|
|
69
67
|
"type": "boolean"
|
|
70
68
|
},
|