@atlaskit/user-picker 10.27.8 → 10.28.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,22 @@
1
1
  # @atlaskit/user-picker
2
2
 
3
+ ## 10.28.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [#178696](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/178696)
8
+ [`268232b3ae8c6`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/268232b3ae8c6) -
9
+ added rendering verified team icon to default-result-renderer if search result includes isVerified
10
+
11
+ ## 10.28.0
12
+
13
+ ### Minor Changes
14
+
15
+ - [#178473](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/178473)
16
+ [`5aa723c66cf92`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/5aa723c66cf92) -
17
+ [ux] Typography uplift, use Atlassian Design System font for secondary text in Avatar dropdown
18
+ options
19
+
3
20
  ## 10.27.8
4
21
 
5
22
  ### Patch Changes
@@ -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.27.8";
15
+ var packageVersion = "10.28.1";
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}$/;
@@ -50,9 +50,8 @@ var optionWrapper = (0, _react2.css)({
50
50
  paddingLeft: "var(--ds-space-100, 8px)"
51
51
  });
52
52
  var getTextStyle = function getTextStyle(isSecondary) {
53
- // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
54
53
  var secondaryCssArgs = isSecondary ? {
55
- fontSize: '0.85em'
54
+ font: "var(--ds-font-body-small, normal 400 11px/16px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)"
56
55
  } : {};
57
56
  return (0, _react2.css)(_objectSpread({
58
57
  margin: 0,
@@ -44,8 +44,7 @@ var textSection = (0, _react.css)({
44
44
  var getTextStyle = function getTextStyle(isSecondary) {
45
45
  var secondaryCssArgs = isSecondary ? {
46
46
  color: "var(--ds-text-selected, ".concat(_colors.B400, ")"),
47
- // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
48
- fontSize: '0.85em'
47
+ font: "var(--ds-font-body-small, normal 400 11px/16px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)"
49
48
  } : {};
50
49
  return (0, _react.css)(_objectSpread(_objectSpread({
51
50
  display: 'flex',
@@ -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.27.8";
5
+ const packageVersion = "10.28.1";
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}$/;
@@ -33,9 +33,8 @@ const optionWrapper = css({
33
33
  paddingLeft: "var(--ds-space-100, 8px)"
34
34
  });
35
35
  const getTextStyle = isSecondary => {
36
- // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
37
36
  const secondaryCssArgs = isSecondary ? {
38
- fontSize: '0.85em'
37
+ font: "var(--ds-font-body-small, normal 400 11px/16px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)"
39
38
  } : {};
40
39
  return css({
41
40
  margin: 0,
@@ -35,8 +35,7 @@ const textSection = css({
35
35
  const getTextStyle = isSecondary => {
36
36
  const secondaryCssArgs = isSecondary ? {
37
37
  color: `var(--ds-text-selected, ${B400})`,
38
- // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
39
- fontSize: '0.85em'
38
+ font: "var(--ds-font-body-small, normal 400 11px/16px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)"
40
39
  } : {};
41
40
  return css({
42
41
  display: 'flex',
@@ -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.27.8";
8
+ var packageVersion = "10.28.1";
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}$/;
@@ -40,9 +40,8 @@ var optionWrapper = css({
40
40
  paddingLeft: "var(--ds-space-100, 8px)"
41
41
  });
42
42
  var getTextStyle = function getTextStyle(isSecondary) {
43
- // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
44
43
  var secondaryCssArgs = isSecondary ? {
45
- fontSize: '0.85em'
44
+ font: "var(--ds-font-body-small, normal 400 11px/16px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)"
46
45
  } : {};
47
46
  return css(_objectSpread({
48
47
  margin: 0,
@@ -40,8 +40,7 @@ var textSection = css({
40
40
  var getTextStyle = function getTextStyle(isSecondary) {
41
41
  var secondaryCssArgs = isSecondary ? {
42
42
  color: "var(--ds-text-selected, ".concat(B400, ")"),
43
- // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
44
- fontSize: '0.85em'
43
+ font: "var(--ds-font-body-small, normal 400 11px/16px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)"
45
44
  } : {};
46
45
  return css(_objectSpread(_objectSpread({
47
46
  display: 'flex',
@@ -249,6 +249,7 @@ export interface OptionData {
249
249
  type?: 'user' | 'team' | 'email' | 'group' | 'custom' | 'external_user';
250
250
  tooltip?: string;
251
251
  title?: string;
252
+ verified?: boolean;
252
253
  }
253
254
  export declare const UserType = "user";
254
255
  export declare const ExternalUserType = "external_user";
@@ -252,6 +252,7 @@ export interface OptionData {
252
252
  type?: 'user' | 'team' | 'email' | 'group' | 'custom' | 'external_user';
253
253
  tooltip?: string;
254
254
  title?: string;
255
+ verified?: boolean;
255
256
  }
256
257
  export declare const UserType = "user";
257
258
  export declare const ExternalUserType = "external_user";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/user-picker",
3
- "version": "10.27.8",
3
+ "version": "10.28.1",
4
4
  "description": "Fabric component for display a dropdown to select a user from",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"