@atlaskit/profilecard 27.13.1 → 27.14.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,18 @@
1
1
  # @atlaskit/profilecard
2
2
 
3
+ ## 27.14.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`46292e94d6993`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/46292e94d6993) -
8
+ Update i18n NPM package versions for people-and-teams,identity (Group 8)
9
+
10
+ ### Patch Changes
11
+
12
+ - [`c87c250b16958`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/c87c250b16958) -
13
+ Behind `platform-dst-top-layer`, the profile card trigger leaves focus return to the popup.
14
+ - Updated dependencies
15
+
3
16
  ## 27.13.1
4
17
 
5
18
  ### Patch Changes
@@ -11,6 +11,6 @@ var addHeaders = exports.addHeaders = function addHeaders(headers) {
11
11
  headers.append('X-ExperimentalApi', 'teams-beta');
12
12
  headers.append('X-ExperimentalApi', 'team-members-beta');
13
13
  headers.append('atl-client-name', "@atlaskit/profilecard");
14
- headers.append('atl-client-version', "27.13.0");
14
+ headers.append('atl-client-version', "27.13.1");
15
15
  return headers;
16
16
  };
@@ -11,7 +11,7 @@ var _AGGQuery = require("./AGGQuery");
11
11
  var ORG_ID_FROM_CLOUD_ID_QUERY = "query OrgIdFromCloudId($cloudId: ID!) {\n\ttenantContexts(cloudIds: [$cloudId]) {\n\t\torgId\n\t}\n}";
12
12
  var addHeaders = function addHeaders(headers) {
13
13
  headers.append('atl-client-name', "@atlaskit/profilecard");
14
- headers.append('atl-client-version', "27.13.0");
14
+ headers.append('atl-client-version', "27.13.1");
15
15
  return headers;
16
16
  };
17
17
  function getOrgIdForCloudIdFromAGG(_x, _x2) {
@@ -17,6 +17,7 @@ var _react = _interopRequireWildcard(require("react"));
17
17
  var _reactIntl = require("react-intl");
18
18
  var _giveKudosLauncher = require("@atlaskit/give-kudos/give-kudos-launcher");
19
19
  var _types = require("@atlaskit/give-kudos/types");
20
+ var _fg = require("@atlaskit/platform-feature-flags/fg");
20
21
  var _popup = require("@atlaskit/popup/popup");
21
22
  var _useAnalyticsEvents2 = require("@atlaskit/teams-app-internal-analytics/use-analytics-events");
22
23
  var _constants = require("@atlaskit/theme/constants");
@@ -213,7 +214,9 @@ function ProfilecardTriggerNext(_ref2) {
213
214
  if (event.key && event.key !== 'Escape') {
214
215
  return;
215
216
  }
216
- if (triggerRef.current) {
217
+ // On the top-layer path the popup returns focus to the trigger itself on Escape, and keeps
218
+ // focus where the user pressed on an outside press.
219
+ if (triggerRef.current && !(0, _fg.fg)('platform-dst-top-layer')) {
217
220
  triggerRef.current.focus();
218
221
  }
219
222
  setTriggeredUsingKeyboard(false);
@@ -7,7 +7,7 @@ exports.USER_SUBJECT = exports.TEAM_SUBJECT = exports.PACKAGE_META_DATA = export
7
7
  var _process$env$_PACKAGE, _process$env$_PACKAGE2;
8
8
  var PACKAGE_META_DATA = exports.PACKAGE_META_DATA = {
9
9
  packageName: (_process$env$_PACKAGE = "@atlaskit/profilecard") !== null && _process$env$_PACKAGE !== void 0 ? _process$env$_PACKAGE : '',
10
- packageVersion: (_process$env$_PACKAGE2 = "27.13.0") !== null && _process$env$_PACKAGE2 !== void 0 ? _process$env$_PACKAGE2 : ''
10
+ packageVersion: (_process$env$_PACKAGE2 = "27.13.1") !== null && _process$env$_PACKAGE2 !== void 0 ? _process$env$_PACKAGE2 : ''
11
11
  };
12
12
  var TEAM_SUBJECT = exports.TEAM_SUBJECT = 'teamProfileCard';
13
13
  var USER_SUBJECT = exports.USER_SUBJECT = 'profilecard';
@@ -22,7 +22,7 @@ var createEvent = exports.createEvent = function createEvent(eventType, action,
22
22
  actionSubjectId: actionSubjectId,
23
23
  attributes: _objectSpread(_objectSpread({
24
24
  packageName: "@atlaskit/profilecard",
25
- packageVersion: "27.13.0"
25
+ packageVersion: "27.13.1"
26
26
  }, attributes), {}, {
27
27
  firedAt: Math.round((0, _performance.getPageTime)())
28
28
  })
@@ -5,6 +5,6 @@ export const addHeaders = headers => {
5
5
  headers.append('X-ExperimentalApi', 'teams-beta');
6
6
  headers.append('X-ExperimentalApi', 'team-members-beta');
7
7
  headers.append('atl-client-name', "@atlaskit/profilecard");
8
- headers.append('atl-client-version', "27.13.0");
8
+ headers.append('atl-client-version', "27.13.1");
9
9
  return headers;
10
10
  };
@@ -6,7 +6,7 @@ const ORG_ID_FROM_CLOUD_ID_QUERY = `query OrgIdFromCloudId($cloudId: ID!) {
6
6
  }`;
7
7
  const addHeaders = headers => {
8
8
  headers.append('atl-client-name', "@atlaskit/profilecard");
9
- headers.append('atl-client-version', "27.13.0");
9
+ headers.append('atl-client-version', "27.13.1");
10
10
  return headers;
11
11
  };
12
12
  export async function getOrgIdForCloudIdFromAGG(url, cloudId) {
@@ -3,6 +3,7 @@ import React, { Suspense, useCallback, useEffect, useMemo, useRef, useState } fr
3
3
  import { useIntl } from 'react-intl';
4
4
  import { GiveKudosLauncherLazy } from '@atlaskit/give-kudos/give-kudos-launcher';
5
5
  import { KudosType } from '@atlaskit/give-kudos/types';
6
+ import { fg } from '@atlaskit/platform-feature-flags/fg';
6
7
  import { Popup } from '@atlaskit/popup/popup';
7
8
  import { useAnalyticsEvents } from '@atlaskit/teams-app-internal-analytics/use-analytics-events';
8
9
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-atlaskit-theme
@@ -162,7 +163,9 @@ export default function ProfilecardTriggerNext({
162
163
  if (event.key && event.key !== 'Escape') {
163
164
  return;
164
165
  }
165
- if (triggerRef.current) {
166
+ // On the top-layer path the popup returns focus to the trigger itself on Escape, and keeps
167
+ // focus where the user pressed on an outside press.
168
+ if (triggerRef.current && !fg('platform-dst-top-layer')) {
166
169
  triggerRef.current.focus();
167
170
  }
168
171
  setTriggeredUsingKeyboard(false);
@@ -1,7 +1,7 @@
1
1
  var _process$env$_PACKAGE, _process$env$_PACKAGE2;
2
2
  export const PACKAGE_META_DATA = {
3
3
  packageName: (_process$env$_PACKAGE = "@atlaskit/profilecard") !== null && _process$env$_PACKAGE !== void 0 ? _process$env$_PACKAGE : '',
4
- packageVersion: (_process$env$_PACKAGE2 = "27.13.0") !== null && _process$env$_PACKAGE2 !== void 0 ? _process$env$_PACKAGE2 : ''
4
+ packageVersion: (_process$env$_PACKAGE2 = "27.13.1") !== null && _process$env$_PACKAGE2 !== void 0 ? _process$env$_PACKAGE2 : ''
5
5
  };
6
6
  export const TEAM_SUBJECT = 'teamProfileCard';
7
7
  export const USER_SUBJECT = 'profilecard';
@@ -11,7 +11,7 @@ export const createEvent = (eventType, action, actionSubject, actionSubjectId, a
11
11
  actionSubjectId,
12
12
  attributes: {
13
13
  packageName: "@atlaskit/profilecard",
14
- packageVersion: "27.13.0",
14
+ packageVersion: "27.13.1",
15
15
  ...attributes,
16
16
  firedAt: Math.round(getPageTime())
17
17
  }
@@ -5,6 +5,6 @@ export var addHeaders = function addHeaders(headers) {
5
5
  headers.append('X-ExperimentalApi', 'teams-beta');
6
6
  headers.append('X-ExperimentalApi', 'team-members-beta');
7
7
  headers.append('atl-client-name', "@atlaskit/profilecard");
8
- headers.append('atl-client-version', "27.13.0");
8
+ headers.append('atl-client-version', "27.13.1");
9
9
  return headers;
10
10
  };
@@ -4,7 +4,7 @@ import { AGGQuery } from './AGGQuery';
4
4
  var ORG_ID_FROM_CLOUD_ID_QUERY = "query OrgIdFromCloudId($cloudId: ID!) {\n\ttenantContexts(cloudIds: [$cloudId]) {\n\t\torgId\n\t}\n}";
5
5
  var addHeaders = function addHeaders(headers) {
6
6
  headers.append('atl-client-name', "@atlaskit/profilecard");
7
- headers.append('atl-client-version', "27.13.0");
7
+ headers.append('atl-client-version', "27.13.1");
8
8
  return headers;
9
9
  };
10
10
  export function getOrgIdForCloudIdFromAGG(_x, _x2) {
@@ -13,6 +13,7 @@ import React, { Suspense, useCallback, useEffect, useMemo, useRef, useState } fr
13
13
  import { useIntl } from 'react-intl';
14
14
  import { GiveKudosLauncherLazy } from '@atlaskit/give-kudos/give-kudos-launcher';
15
15
  import { KudosType } from '@atlaskit/give-kudos/types';
16
+ import { fg } from '@atlaskit/platform-feature-flags/fg';
16
17
  import { Popup } from '@atlaskit/popup/popup';
17
18
  import { useAnalyticsEvents } from '@atlaskit/teams-app-internal-analytics/use-analytics-events';
18
19
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-atlaskit-theme
@@ -205,7 +206,9 @@ export default function ProfilecardTriggerNext(_ref2) {
205
206
  if (event.key && event.key !== 'Escape') {
206
207
  return;
207
208
  }
208
- if (triggerRef.current) {
209
+ // On the top-layer path the popup returns focus to the trigger itself on Escape, and keeps
210
+ // focus where the user pressed on an outside press.
211
+ if (triggerRef.current && !fg('platform-dst-top-layer')) {
209
212
  triggerRef.current.focus();
210
213
  }
211
214
  setTriggeredUsingKeyboard(false);
@@ -1,7 +1,7 @@
1
1
  var _process$env$_PACKAGE, _process$env$_PACKAGE2;
2
2
  export var PACKAGE_META_DATA = {
3
3
  packageName: (_process$env$_PACKAGE = "@atlaskit/profilecard") !== null && _process$env$_PACKAGE !== void 0 ? _process$env$_PACKAGE : '',
4
- packageVersion: (_process$env$_PACKAGE2 = "27.13.0") !== null && _process$env$_PACKAGE2 !== void 0 ? _process$env$_PACKAGE2 : ''
4
+ packageVersion: (_process$env$_PACKAGE2 = "27.13.1") !== null && _process$env$_PACKAGE2 !== void 0 ? _process$env$_PACKAGE2 : ''
5
5
  };
6
6
  export var TEAM_SUBJECT = 'teamProfileCard';
7
7
  export var USER_SUBJECT = 'profilecard';
@@ -16,7 +16,7 @@ export var createEvent = function createEvent(eventType, action, actionSubject,
16
16
  actionSubjectId: actionSubjectId,
17
17
  attributes: _objectSpread(_objectSpread({
18
18
  packageName: "@atlaskit/profilecard",
19
- packageVersion: "27.13.0"
19
+ packageVersion: "27.13.1"
20
20
  }, attributes), {}, {
21
21
  firedAt: Math.round(getPageTime())
22
22
  })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/profilecard",
3
- "version": "27.13.1",
3
+ "version": "27.14.0",
4
4
  "description": "A React component to display a card with user information.",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -41,7 +41,7 @@
41
41
  "access": "public"
42
42
  },
43
43
  "dependencies": {
44
- "@atlaskit/afm-i18n-platform-people-and-teams-profilecard": "2.319.0",
44
+ "@atlaskit/afm-i18n-platform-people-and-teams-profilecard": "2.320.0",
45
45
  "@atlaskit/atlassian-context": "^2.0.0",
46
46
  "@atlaskit/avatar": "^31.0.0",
47
47
  "@atlaskit/avatar-group": "^14.4.0",
@@ -55,7 +55,7 @@
55
55
  "@atlaskit/icon": "^38.2.0",
56
56
  "@atlaskit/link": "5.1.7",
57
57
  "@atlaskit/lozenge": "^17.0.0",
58
- "@atlaskit/menu": "^11.0.0",
58
+ "@atlaskit/menu": "^11.1.0",
59
59
  "@atlaskit/modal-dialog": "^17.3.0",
60
60
  "@atlaskit/people-teams-ui-public": "^5.2.0",
61
61
  "@atlaskit/platform-feature-flags": "^2.2.0",
@@ -69,7 +69,7 @@
69
69
  "@atlaskit/teams-app-internal-analytics": "^2.5.0",
70
70
  "@atlaskit/teams-app-internal-navigation": "^3.1.0",
71
71
  "@atlaskit/teams-avatar": "^4.2.0",
72
- "@atlaskit/teams-public": "^3.15.0",
72
+ "@atlaskit/teams-public": "^3.16.0",
73
73
  "@atlaskit/theme": "^28.2.0",
74
74
  "@atlaskit/tmp-editor-statsig": "^270.0.0",
75
75
  "@atlaskit/tokens": "^20.14.0",