@atlaskit/smart-user-picker 11.8.0 → 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 CHANGED
@@ -1,5 +1,12 @@
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
+
3
10
  ## 11.8.0
4
11
 
5
12
  ### Minor 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, _objectSpread({
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 (isDomainSuggestionEnabled) {
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.
@@ -4,4 +4,4 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.packageVersion = void 0;
7
- var packageVersion = exports.packageVersion = "11.7.1";
7
+ var packageVersion = exports.packageVersion = "11.8.0";
@@ -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 (isDomainSuggestionEnabled) {
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.7.1";
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, _objectSpread({
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 (isDomainSuggestionEnabled) {
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.7.1";
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.8.0",
3
+ "version": "11.8.1",
4
4
  "license": "Apache-2.0",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -48,7 +48,7 @@
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.10.0",
51
+ "@atlassian/integrations": "^33.11.0",
52
52
  "@atlassian/workbench": "workspace:*",
53
53
  "@testing-library/dom": "^10.1.0",
54
54
  "@testing-library/react": "^16.3.0",
@@ -63,9 +63,6 @@
63
63
  "react-intl": "^7.0.0"
64
64
  },
65
65
  "platform-feature-flags": {
66
- "smart_user_picker_suggest_emails_for_domain": {
67
- "type": "boolean"
68
- },
69
66
  "smart-user-picker-fetch-error-fix": {
70
67
  "type": "boolean"
71
68
  },