@atlaskit/user-picker 11.13.0 → 11.13.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.
Files changed (47) hide show
  1. package/CHANGELOG.md +15 -0
  2. package/dist/cjs/analytics.js +1 -1
  3. package/dist/cjs/components/AddOptionAvatar.js +2 -2
  4. package/dist/cjs/components/AvatarItemOption.js +44 -1
  5. package/dist/cjs/components/Control.compiled.css +6 -6
  6. package/dist/cjs/components/Control.js +3 -3
  7. package/dist/cjs/components/GroupOption/main.js +1 -22
  8. package/dist/cjs/components/Input.compiled.css +3 -3
  9. package/dist/cjs/components/Input.js +1 -1
  10. package/dist/cjs/components/SingleValue.compiled.css +1 -1
  11. package/dist/cjs/components/SingleValue.js +1 -1
  12. package/dist/cjs/components/TeamOption/main.js +8 -38
  13. package/dist/cjs/components/UserOption.js +12 -1
  14. package/dist/cjs/components/i18n.js +0 -35
  15. package/dist/es2019/analytics.js +1 -1
  16. package/dist/es2019/components/AddOptionAvatar.js +2 -2
  17. package/dist/es2019/components/AvatarItemOption.js +71 -22
  18. package/dist/es2019/components/Control.compiled.css +6 -6
  19. package/dist/es2019/components/Control.js +3 -3
  20. package/dist/es2019/components/GroupOption/main.js +1 -22
  21. package/dist/es2019/components/Input.compiled.css +3 -3
  22. package/dist/es2019/components/Input.js +1 -1
  23. package/dist/es2019/components/SingleValue.compiled.css +1 -1
  24. package/dist/es2019/components/SingleValue.js +1 -1
  25. package/dist/es2019/components/TeamOption/main.js +8 -38
  26. package/dist/es2019/components/UserOption.js +11 -2
  27. package/dist/es2019/components/i18n.js +0 -35
  28. package/dist/esm/analytics.js +1 -1
  29. package/dist/esm/components/AddOptionAvatar.js +2 -2
  30. package/dist/esm/components/AvatarItemOption.js +44 -1
  31. package/dist/esm/components/Control.compiled.css +6 -6
  32. package/dist/esm/components/Control.js +3 -3
  33. package/dist/esm/components/GroupOption/main.js +1 -22
  34. package/dist/esm/components/Input.compiled.css +3 -3
  35. package/dist/esm/components/Input.js +1 -1
  36. package/dist/esm/components/SingleValue.compiled.css +1 -1
  37. package/dist/esm/components/SingleValue.js +1 -1
  38. package/dist/esm/components/TeamOption/main.js +8 -38
  39. package/dist/esm/components/UserOption.js +13 -2
  40. package/dist/esm/components/i18n.js +0 -35
  41. package/dist/types/components/GroupOption/main.d.ts +0 -1
  42. package/dist/types/components/TeamOption/main.d.ts +0 -1
  43. package/dist/types/components/i18n.d.ts +0 -35
  44. package/dist/types-ts4.5/components/GroupOption/main.d.ts +0 -1
  45. package/dist/types-ts4.5/components/TeamOption/main.d.ts +0 -1
  46. package/dist/types-ts4.5/components/i18n.d.ts +0 -35
  47. package/package.json +9 -6
@@ -13,13 +13,23 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
13
13
  import { getAppearanceForAppType } from '@atlaskit/avatar';
14
14
  import { B400, N800, N200 } from '@atlaskit/theme/colors';
15
15
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
16
- import { jsx } from '@emotion/react';
16
+ import { css, jsx } from '@emotion/react';
17
17
  import React from 'react';
18
18
  import { AvatarItemOption, textWrapper } from './AvatarItemOption';
19
19
  import { HighlightText } from './HighlightText';
20
20
  import { SizeableAvatar } from './SizeableAvatar';
21
21
  import { hasValue } from './utils';
22
22
  import { fg } from '@atlaskit/platform-feature-flags';
23
+ var styles = function styles(color) {
24
+ return css({
25
+ display: 'inline',
26
+ verticalAlign: 'top',
27
+ overflow: 'hidden',
28
+ whiteSpace: 'nowrap',
29
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values
30
+ color: color
31
+ });
32
+ };
23
33
  export var UserOption = /*#__PURE__*/function (_React$PureComponent) {
24
34
  function UserOption() {
25
35
  var _this;
@@ -42,11 +52,12 @@ export var UserOption = /*#__PURE__*/function (_React$PureComponent) {
42
52
  highlights: highlight && highlight.name
43
53
  }, name))];
44
54
  if (hasValue(publicName) && name.trim() !== publicName.trim()) {
55
+ var color = _this.props.isSelected ? "var(--ds-text-selected, ".concat(B400, ")") : "var(--ds-text-subtlest, ".concat(N200, ")");
45
56
  result.push(jsx(React.Fragment, {
46
57
  key: "publicName"
47
58
  }, ' ', jsx("span", {
48
59
  // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
49
- css: textWrapper(_this.props.isSelected ? "var(--ds-text-selected, ".concat(B400, ")") : "var(--ds-text-subtlest, ".concat(N200, ")"))
60
+ css: fg('platform_user_picker_firefox_tab_fix') ? styles(color) : textWrapper(color)
50
61
  }, "(", jsx(HighlightText, {
51
62
  highlights: highlight && highlight.publicName
52
63
  }, publicName), ")")));
@@ -25,26 +25,6 @@ export var messages = defineMessages({
25
25
  defaultMessage: 'Something went wrong',
26
26
  description: 'Error message to display when options fail to load.'
27
27
  },
28
- teamByline: {
29
- id: 'fabric.elements.user-picker.team.byline',
30
- defaultMessage: 'Team',
31
- description: 'Byline for team'
32
- },
33
- officialTeamByline: {
34
- id: 'fabric.elements.user-picker.team.byline.official',
35
- defaultMessage: 'Official team {verifiedIcon}',
36
- description: 'Byline for official team'
37
- },
38
- officialMemberCountWithoutYou: {
39
- id: 'fabric.elements.user-picker.team.member.count.official',
40
- defaultMessage: 'Official team {verifiedIcon} • {count} {count, plural, one {member} other {members}}',
41
- description: 'Byline to show the number of members in the team when the current user is not a member of the team'
42
- },
43
- officialMemberCountWithYou: {
44
- id: 'fabric.elements.user-picker.team.member.count.official.including.you',
45
- defaultMessage: 'Official team {verifiedIcon} • {count} {count, plural, one {member} other {members}}, including you',
46
- description: 'Byline to show the number of members in the team when the current user is also a member of the team'
47
- },
48
28
  memberCountWithoutYou: {
49
29
  id: 'fabric.elements.user-picker.team.member.count',
50
30
  defaultMessage: 'Team • {count} {count, plural, one {member} other {members}}',
@@ -55,16 +35,6 @@ export var messages = defineMessages({
55
35
  defaultMessage: 'Team • {count} {count, plural, one {member} other {members}}, including you',
56
36
  description: 'Byline to show the number of members in the team when the current user is also a member of the team'
57
37
  },
58
- officialPlus50MembersWithoutYou: {
59
- id: 'fabric.elements.user-picker.team.member.50plus.official',
60
- defaultMessage: 'Official team {verifiedIcon} • 50+ members',
61
- description: 'Byline to show the number of members in the team when the number exceeds 50'
62
- },
63
- officialPlus50MembersWithYou: {
64
- id: 'fabric.elements.user-picker.team.member.50plus.official.including.you',
65
- defaultMessage: 'Official team {verifiedIcon} • 50+ members, including you',
66
- description: 'Byline to show the number of members in the team when the number exceeds 50 and also includes the current user'
67
- },
68
38
  plus50MembersWithoutYou: {
69
39
  id: 'fabric.elements.user-picker.team.member.50plus',
70
40
  defaultMessage: 'Team • 50+ members',
@@ -90,11 +60,6 @@ export var messages = defineMessages({
90
60
  defaultMessage: 'Enter an email address',
91
61
  description: 'Byline for a potentially valid email option.'
92
62
  },
93
- adminManagedGroupByline: {
94
- id: 'fabric.elements.user-picker.group.byline.admin-managed',
95
- defaultMessage: 'Admin group {verifiedIcon}',
96
- description: 'Byline for admin-managed groups with verified icon'
97
- },
98
63
  groupByline: {
99
64
  id: 'fabric.elements.user-picker.group.byline',
100
65
  defaultMessage: 'Admin-managed group',
@@ -13,7 +13,6 @@ export type GroupOptionProps = {
13
13
  export declare class GroupOption extends React.PureComponent<GroupOptionProps> {
14
14
  private getPrimaryText;
15
15
  private renderAvatar;
16
- private renderVerifiedIcon;
17
16
  private renderByline;
18
17
  private getLozengeProps;
19
18
  render(): jsx.JSX.Element;
@@ -10,7 +10,6 @@ export declare class TeamOption extends React.PureComponent<TeamOptionProps> {
10
10
  private renderByline;
11
11
  private getBylineComponent;
12
12
  private renderAvatar;
13
- private renderVerifiedIcon;
14
13
  private getLozengeProps;
15
14
  private renderCustomByLine;
16
15
  render(): jsx.JSX.Element;
@@ -24,26 +24,6 @@ export declare const messages: {
24
24
  defaultMessage: string;
25
25
  description: string;
26
26
  };
27
- teamByline: {
28
- id: string;
29
- defaultMessage: string;
30
- description: string;
31
- };
32
- officialTeamByline: {
33
- id: string;
34
- defaultMessage: string;
35
- description: string;
36
- };
37
- officialMemberCountWithoutYou: {
38
- id: string;
39
- defaultMessage: string;
40
- description: string;
41
- };
42
- officialMemberCountWithYou: {
43
- id: string;
44
- defaultMessage: string;
45
- description: string;
46
- };
47
27
  memberCountWithoutYou: {
48
28
  id: string;
49
29
  defaultMessage: string;
@@ -54,16 +34,6 @@ export declare const messages: {
54
34
  defaultMessage: string;
55
35
  description: string;
56
36
  };
57
- officialPlus50MembersWithoutYou: {
58
- id: string;
59
- defaultMessage: string;
60
- description: string;
61
- };
62
- officialPlus50MembersWithYou: {
63
- id: string;
64
- defaultMessage: string;
65
- description: string;
66
- };
67
37
  plus50MembersWithoutYou: {
68
38
  id: string;
69
39
  defaultMessage: string;
@@ -89,11 +59,6 @@ export declare const messages: {
89
59
  defaultMessage: string;
90
60
  description: string;
91
61
  };
92
- adminManagedGroupByline: {
93
- id: string;
94
- defaultMessage: string;
95
- description: string;
96
- };
97
62
  groupByline: {
98
63
  id: string;
99
64
  defaultMessage: string;
@@ -13,7 +13,6 @@ export type GroupOptionProps = {
13
13
  export declare class GroupOption extends React.PureComponent<GroupOptionProps> {
14
14
  private getPrimaryText;
15
15
  private renderAvatar;
16
- private renderVerifiedIcon;
17
16
  private renderByline;
18
17
  private getLozengeProps;
19
18
  render(): jsx.JSX.Element;
@@ -10,7 +10,6 @@ export declare class TeamOption extends React.PureComponent<TeamOptionProps> {
10
10
  private renderByline;
11
11
  private getBylineComponent;
12
12
  private renderAvatar;
13
- private renderVerifiedIcon;
14
13
  private getLozengeProps;
15
14
  private renderCustomByLine;
16
15
  render(): jsx.JSX.Element;
@@ -24,26 +24,6 @@ export declare const messages: {
24
24
  defaultMessage: string;
25
25
  description: string;
26
26
  };
27
- teamByline: {
28
- id: string;
29
- defaultMessage: string;
30
- description: string;
31
- };
32
- officialTeamByline: {
33
- id: string;
34
- defaultMessage: string;
35
- description: string;
36
- };
37
- officialMemberCountWithoutYou: {
38
- id: string;
39
- defaultMessage: string;
40
- description: string;
41
- };
42
- officialMemberCountWithYou: {
43
- id: string;
44
- defaultMessage: string;
45
- description: string;
46
- };
47
27
  memberCountWithoutYou: {
48
28
  id: string;
49
29
  defaultMessage: string;
@@ -54,16 +34,6 @@ export declare const messages: {
54
34
  defaultMessage: string;
55
35
  description: string;
56
36
  };
57
- officialPlus50MembersWithoutYou: {
58
- id: string;
59
- defaultMessage: string;
60
- description: string;
61
- };
62
- officialPlus50MembersWithYou: {
63
- id: string;
64
- defaultMessage: string;
65
- description: string;
66
- };
67
37
  plus50MembersWithoutYou: {
68
38
  id: string;
69
39
  defaultMessage: string;
@@ -89,11 +59,6 @@ export declare const messages: {
89
59
  defaultMessage: string;
90
60
  description: string;
91
61
  };
92
- adminManagedGroupByline: {
93
- id: string;
94
- defaultMessage: string;
95
- description: string;
96
- };
97
62
  groupByline: {
98
63
  id: string;
99
64
  defaultMessage: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/user-picker",
3
- "version": "11.13.0",
3
+ "version": "11.13.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/"
@@ -45,19 +45,19 @@
45
45
  "@atlaskit/afm-i18n-platform-elements-user-picker": "2.7.0",
46
46
  "@atlaskit/analytics-next": "^11.1.0",
47
47
  "@atlaskit/avatar": "^25.5.0",
48
- "@atlaskit/icon": "^28.5.0",
48
+ "@atlaskit/icon": "^29.0.0",
49
49
  "@atlaskit/logo": "^19.9.0",
50
- "@atlaskit/lozenge": "^13.0.0",
50
+ "@atlaskit/lozenge": "^13.1.0",
51
51
  "@atlaskit/people-teams-ui-public": "^3.6.0",
52
52
  "@atlaskit/platform-feature-flags": "^1.1.0",
53
53
  "@atlaskit/popper": "^7.1.0",
54
54
  "@atlaskit/primitives": "^16.1.0",
55
55
  "@atlaskit/select": "^21.3.0",
56
56
  "@atlaskit/spinner": "^19.0.0",
57
- "@atlaskit/teams-avatar": "^2.3.0",
57
+ "@atlaskit/teams-avatar": "^2.4.0",
58
58
  "@atlaskit/theme": "^21.0.0",
59
- "@atlaskit/tokens": "^7.1.0",
60
- "@atlaskit/tooltip": "^20.7.0",
59
+ "@atlaskit/tokens": "^8.0.0",
60
+ "@atlaskit/tooltip": "^20.8.0",
61
61
  "@atlaskit/ufo": "^0.4.0",
62
62
  "@babel/runtime": "^7.0.0",
63
63
  "@compiled/react": "^0.18.6",
@@ -104,6 +104,9 @@
104
104
  "platform-component-visual-refresh": {
105
105
  "type": "boolean"
106
106
  },
107
+ "platform_user_picker_firefox_tab_fix": {
108
+ "type": "boolean"
109
+ },
107
110
  "jifjam_bulk_operations": {
108
111
  "type": "boolean"
109
112
  },