@atlaskit/user-picker 11.0.14 → 11.1.0

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,14 @@
1
1
  # @atlaskit/user-picker
2
2
 
3
+ ## 11.1.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#157101](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/157101)
8
+ [`22968df0284f0`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/22968df0284f0) -
9
+ We are testing the migration to the ADS Link component behind a feature flag. If this fix is
10
+ successful it will be available in a later release.
11
+
3
12
  ## 11.0.14
4
13
 
5
14
  ### Patch Changes
@@ -26,6 +26,9 @@
26
26
  {
27
27
  "path": "../../../design-system/icon/afm-cc/tsconfig.json"
28
28
  },
29
+ {
30
+ "path": "../../../design-system/link/afm-cc/tsconfig.json"
31
+ },
29
32
  {
30
33
  "path": "../../../design-system/logo/afm-cc/tsconfig.json"
31
34
  },
@@ -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 = "11.0.14";
15
+ var packageVersion = "11.1.0";
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}$/;
@@ -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 = "11.0.14";
5
+ const packageVersion = "11.1.0";
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}$/;
@@ -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 = "11.0.14";
8
+ var packageVersion = "11.1.0";
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}$/;
@@ -1,7 +1,13 @@
1
+ import Link from '@atlaskit/link';
2
+ import { fg } from '@atlaskit/platform-feature-flags';
1
3
  import React from 'react';
2
4
  import { md } from '@atlaskit/docs';
3
5
  import SectionMessage from '@atlaskit/section-message';
4
6
 
7
+ const LinkComponent = (props: any) =>
8
+ // eslint-disable-next-line @atlaskit/design-system/no-html-anchor, jsx-a11y/anchor-has-content
9
+ fg('dst-a11y__replace-anchor-with-link__search-platfor') ? <Link {...props} /> : <a {...props} />;
10
+
5
11
  export default md`
6
12
  ${(
7
13
  <SectionMessage
@@ -9,9 +15,9 @@ export default md`
9
15
  title="Note: @atlaskit/user-picker/smart-user-picker is deprecated."
10
16
  >
11
17
  SmartUserPicker has moved packages! Please use{' '}
12
- <a href="https://statlas.prod.atl-paas.net/atlassian-frontend/master#packages/smart-experiences/smart-user-picker">
18
+ <LinkComponent href="https://statlas.prod.atl-paas.net/atlassian-frontend/master#packages/smart-experiences/smart-user-picker">
13
19
  @atlaskit/smart-user-picker
14
- </a>{' '}
20
+ </LinkComponent>{' '}
15
21
  instead. Alternatively, @atlaskit/smart-hooks will be ready by end of FY22Q4. Contact
16
22
  #search-plex for further details.
17
23
  </SectionMessage>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/user-picker",
3
- "version": "11.0.14",
3
+ "version": "11.1.0",
4
4
  "description": "Fabric component for display a dropdown to select a user from",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -51,18 +51,19 @@
51
51
  "dependencies": {
52
52
  "@atlaskit/analytics-next": "^11.0.0",
53
53
  "@atlaskit/avatar": "^25.1.0",
54
- "@atlaskit/icon": "^26.0.0",
54
+ "@atlaskit/icon": "^26.1.0",
55
+ "@atlaskit/link": "^3.2.0",
55
56
  "@atlaskit/logo": "^18.0.0",
56
57
  "@atlaskit/lozenge": "^12.2.0",
57
58
  "@atlaskit/people-teams-ui-public": "^3.1.0",
58
59
  "@atlaskit/platform-feature-flags": "^1.1.0",
59
60
  "@atlaskit/popper": "^7.0.0",
60
- "@atlaskit/primitives": "^14.7.0",
61
- "@atlaskit/select": "^20.4.0",
61
+ "@atlaskit/primitives": "^14.8.0",
62
+ "@atlaskit/select": "^20.6.0",
62
63
  "@atlaskit/spinner": "^18.0.0",
63
64
  "@atlaskit/teams-avatar": "^2.3.0",
64
65
  "@atlaskit/theme": "^18.0.0",
65
- "@atlaskit/tokens": "^4.8.0",
66
+ "@atlaskit/tokens": "^4.9.0",
66
67
  "@atlaskit/tooltip": "^20.0.0",
67
68
  "@atlaskit/ufo": "^0.4.0",
68
69
  "@babel/runtime": "^7.0.0",
@@ -117,6 +118,9 @@
117
118
  },
118
119
  "user-picker-show-clear-indicator": {
119
120
  "type": "boolean"
121
+ },
122
+ "dst-a11y__replace-anchor-with-link__search-platfor": {
123
+ "type": "boolean"
120
124
  }
121
125
  }
122
126
  }