@atlaskit/profilecard 25.0.0 → 25.0.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
  # @atlaskit/profilecard
2
2
 
3
+ ## 25.0.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [`2948c61839699`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/2948c61839699) -
8
+ PTC-14859: FG cleanup enable_appropriate_reading_order_in_profile_card
9
+
3
10
  ## 25.0.0
4
11
 
5
12
  ### Major Changes
@@ -11,7 +11,7 @@ var _graphqlUtils = require("./graphqlUtils");
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', "0.0.0-development");
14
+ headers.append('atl-client-version', "25.0.0");
15
15
  return headers;
16
16
  };
17
17
  function getOrgIdForCloudIdFromAGG(_x, _x2) {
@@ -66,7 +66,7 @@ var addHeaders = exports.addHeaders = function addHeaders(headers) {
66
66
  headers.append('X-ExperimentalApi', 'teams-beta');
67
67
  headers.append('X-ExperimentalApi', 'team-members-beta');
68
68
  headers.append('atl-client-name', "@atlaskit/profilecard");
69
- headers.append('atl-client-version', "0.0.0-development");
69
+ headers.append('atl-client-version', "25.0.0");
70
70
  return headers;
71
71
  };
72
72
  function getTeamFromAGG(_x, _x2, _x3) {
@@ -19,7 +19,6 @@ var _showMoreHorizontal = _interopRequireDefault(require("@atlaskit/icon/core/sh
19
19
  var _lozenge = _interopRequireDefault(require("@atlaskit/lozenge"));
20
20
  var _menu = require("@atlaskit/menu");
21
21
  var _verifiedTeamIcon = require("@atlaskit/people-teams-ui-public/verified-team-icon");
22
- var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
23
22
  var _popup = _interopRequireDefault(require("@atlaskit/popup"));
24
23
  var _compiled = require("@atlaskit/primitives/compiled");
25
24
  var _constants = require("@atlaskit/theme/constants");
@@ -225,8 +224,7 @@ var ExtraActions = function ExtraActions(_ref3) {
225
224
  label: "actions"
226
225
  }));
227
226
  },
228
- zIndex: _constants.layers.modal(),
229
- shouldRenderToParent: (0, _platformFeatureFlags.fg)('enable_appropriate_reading_order_in_profile_card')
227
+ zIndex: _constants.layers.modal()
230
228
  }));
231
229
  };
232
230
  var ButtonSection = function ButtonSection(_ref4) {
@@ -414,7 +414,7 @@ var TeamProfileCardTriggerInternal = exports.TeamProfileCardTriggerInternal = /*
414
414
  zIndex: _constants.layers.modal(),
415
415
  shouldFlip: true,
416
416
  autoFocus: this.props.trigger !== 'hover' && !this.openedByHover,
417
- shouldRenderToParent: (0, _platformFeatureFlags.fg)('enable_appropriate_reading_order_in_profile_card') && this.props.shouldRenderToParent
417
+ shouldRenderToParent: this.props.shouldRenderToParent
418
418
  }));
419
419
  }
420
420
  }, {
@@ -456,10 +456,6 @@ function ProfilecardTriggerNext(_ref2) {
456
456
  zIndex: _constants.layers.modal(),
457
457
  shouldUseCaptureOnOutsideClick: true,
458
458
  autoFocus: (0, _expValEquals.expValEquals)('editor_a11y_7152_profile_card_tab_order', 'isEnabled', true) ? isRenderedInPortal && isTriggeredUsingKeyboard ? false : autoFocus !== null && autoFocus !== void 0 ? autoFocus : trigger === 'click' : autoFocus !== null && autoFocus !== void 0 ? autoFocus : trigger === 'click'
459
- // This feature gate is currently enabled only for Jira_Web to avoid UI issues in Confluence_Web.
460
- ,
461
- shouldRenderToParent: (0, _platformFeatureFlags.fg)('enable_appropriate_reading_order_in_profile_card'),
462
- shouldDisableFocusLock: (0, _platformFeatureFlags.fg)('enable_appropriate_reading_order_in_profile_card')
463
459
  }), shouldShowGiveKudos && teamCentralBaseUrl && /*#__PURE__*/_react.default.createElement(_react.Suspense, {
464
460
  fallback: null
465
461
  }, /*#__PURE__*/_react.default.createElement(_giveKudos.GiveKudosLauncherLazy, {
@@ -12,7 +12,7 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
12
12
  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; }
13
13
  var PACKAGE_META_DATA = exports.PACKAGE_META_DATA = {
14
14
  packageName: (_process$env$_PACKAGE = "@atlaskit/profilecard") !== null && _process$env$_PACKAGE !== void 0 ? _process$env$_PACKAGE : '',
15
- packageVersion: (_process$env$_PACKAGE2 = "0.0.0-development") !== null && _process$env$_PACKAGE2 !== void 0 ? _process$env$_PACKAGE2 : ''
15
+ packageVersion: (_process$env$_PACKAGE2 = "25.0.0") !== null && _process$env$_PACKAGE2 !== void 0 ? _process$env$_PACKAGE2 : ''
16
16
  };
17
17
  var TEAM_SUBJECT = 'teamProfileCard';
18
18
  var USER_SUBJECT = 'profilecard';
@@ -31,7 +31,7 @@ var createEvent = function createEvent(eventType, action, actionSubject, actionS
31
31
  actionSubjectId: actionSubjectId,
32
32
  attributes: _objectSpread(_objectSpread({
33
33
  packageName: "@atlaskit/profilecard",
34
- packageVersion: "0.0.0-development"
34
+ packageVersion: "25.0.0"
35
35
  }, attributes), {}, {
36
36
  firedAt: Math.round((0, _performance.getPageTime)())
37
37
  })
@@ -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', "0.0.0-development");
9
+ headers.append('atl-client-version', "25.0.0");
10
10
  return headers;
11
11
  };
12
12
  export async function getOrgIdForCloudIdFromAGG(url, cloudId) {
@@ -78,7 +78,7 @@ export const addHeaders = headers => {
78
78
  headers.append('X-ExperimentalApi', 'teams-beta');
79
79
  headers.append('X-ExperimentalApi', 'team-members-beta');
80
80
  headers.append('atl-client-name', "@atlaskit/profilecard");
81
- headers.append('atl-client-version', "0.0.0-development");
81
+ headers.append('atl-client-version', "25.0.0");
82
82
  return headers;
83
83
  };
84
84
  export async function getTeamFromAGG(url, teamId, siteId) {
@@ -8,7 +8,6 @@ import MoreIcon from '@atlaskit/icon/core/show-more-horizontal';
8
8
  import Lozenge from '@atlaskit/lozenge';
9
9
  import { LinkItem, MenuGroup } from '@atlaskit/menu';
10
10
  import { VerifiedTeamIcon } from '@atlaskit/people-teams-ui-public/verified-team-icon';
11
- import { fg } from '@atlaskit/platform-feature-flags';
12
11
  import Popup from '@atlaskit/popup';
13
12
  import { Inline, Text } from '@atlaskit/primitives/compiled';
14
13
  import { layers } from '@atlaskit/theme/constants';
@@ -197,8 +196,7 @@ const ExtraActions = ({
197
196
  label: "actions"
198
197
  }));
199
198
  },
200
- zIndex: layers.modal(),
201
- shouldRenderToParent: fg('enable_appropriate_reading_order_in_profile_card')
199
+ zIndex: layers.modal()
202
200
  }));
203
201
  };
204
202
  const ButtonSection = ({
@@ -368,7 +368,7 @@ export class TeamProfileCardTriggerInternal extends React.PureComponent {
368
368
  zIndex: layers.modal(),
369
369
  shouldFlip: true,
370
370
  autoFocus: this.props.trigger !== 'hover' && !this.openedByHover,
371
- shouldRenderToParent: fg('enable_appropriate_reading_order_in_profile_card') && this.props.shouldRenderToParent
371
+ shouldRenderToParent: this.props.shouldRenderToParent
372
372
  }));
373
373
  }
374
374
  render() {
@@ -388,10 +388,6 @@ export default function ProfilecardTriggerNext({
388
388
  zIndex: layers.modal(),
389
389
  shouldUseCaptureOnOutsideClick: true,
390
390
  autoFocus: expValEquals('editor_a11y_7152_profile_card_tab_order', 'isEnabled', true) ? isRenderedInPortal && isTriggeredUsingKeyboard ? false : autoFocus !== null && autoFocus !== void 0 ? autoFocus : trigger === 'click' : autoFocus !== null && autoFocus !== void 0 ? autoFocus : trigger === 'click'
391
- // This feature gate is currently enabled only for Jira_Web to avoid UI issues in Confluence_Web.
392
- ,
393
- shouldRenderToParent: fg('enable_appropriate_reading_order_in_profile_card'),
394
- shouldDisableFocusLock: fg('enable_appropriate_reading_order_in_profile_card')
395
391
  }), shouldShowGiveKudos && teamCentralBaseUrl && /*#__PURE__*/React.createElement(Suspense, {
396
392
  fallback: null
397
393
  }, /*#__PURE__*/React.createElement(GiveKudosLauncherLazy, {
@@ -2,7 +2,7 @@ var _process$env$_PACKAGE, _process$env$_PACKAGE2;
2
2
  import { getPageTime } from './performance';
3
3
  export const PACKAGE_META_DATA = {
4
4
  packageName: (_process$env$_PACKAGE = "@atlaskit/profilecard") !== null && _process$env$_PACKAGE !== void 0 ? _process$env$_PACKAGE : '',
5
- packageVersion: (_process$env$_PACKAGE2 = "0.0.0-development") !== null && _process$env$_PACKAGE2 !== void 0 ? _process$env$_PACKAGE2 : ''
5
+ packageVersion: (_process$env$_PACKAGE2 = "25.0.0") !== null && _process$env$_PACKAGE2 !== void 0 ? _process$env$_PACKAGE2 : ''
6
6
  };
7
7
  const TEAM_SUBJECT = 'teamProfileCard';
8
8
  const USER_SUBJECT = 'profilecard';
@@ -19,7 +19,7 @@ const createEvent = (eventType, action, actionSubject, actionSubjectId, attribut
19
19
  actionSubjectId,
20
20
  attributes: {
21
21
  packageName: "@atlaskit/profilecard",
22
- packageVersion: "0.0.0-development",
22
+ packageVersion: "25.0.0",
23
23
  ...attributes,
24
24
  firedAt: Math.round(getPageTime())
25
25
  }
@@ -4,7 +4,7 @@ import { AGGQuery } from './graphqlUtils';
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', "0.0.0-development");
7
+ headers.append('atl-client-version', "25.0.0");
8
8
  return headers;
9
9
  };
10
10
  export function getOrgIdForCloudIdFromAGG(_x, _x2) {
@@ -59,7 +59,7 @@ export var addHeaders = function addHeaders(headers) {
59
59
  headers.append('X-ExperimentalApi', 'teams-beta');
60
60
  headers.append('X-ExperimentalApi', 'team-members-beta');
61
61
  headers.append('atl-client-name', "@atlaskit/profilecard");
62
- headers.append('atl-client-version', "0.0.0-development");
62
+ headers.append('atl-client-version', "25.0.0");
63
63
  return headers;
64
64
  };
65
65
  export function getTeamFromAGG(_x, _x2, _x3) {
@@ -13,7 +13,6 @@ import MoreIcon from '@atlaskit/icon/core/show-more-horizontal';
13
13
  import Lozenge from '@atlaskit/lozenge';
14
14
  import { LinkItem, MenuGroup } from '@atlaskit/menu';
15
15
  import { VerifiedTeamIcon } from '@atlaskit/people-teams-ui-public/verified-team-icon';
16
- import { fg } from '@atlaskit/platform-feature-flags';
17
16
  import Popup from '@atlaskit/popup';
18
17
  import { Inline, Text } from '@atlaskit/primitives/compiled';
19
18
  import { layers } from '@atlaskit/theme/constants';
@@ -216,8 +215,7 @@ var ExtraActions = function ExtraActions(_ref3) {
216
215
  label: "actions"
217
216
  }));
218
217
  },
219
- zIndex: layers.modal(),
220
- shouldRenderToParent: fg('enable_appropriate_reading_order_in_profile_card')
218
+ zIndex: layers.modal()
221
219
  }));
222
220
  };
223
221
  var ButtonSection = function ButtonSection(_ref4) {
@@ -405,7 +405,7 @@ export var TeamProfileCardTriggerInternal = /*#__PURE__*/function (_React$PureCo
405
405
  zIndex: layers.modal(),
406
406
  shouldFlip: true,
407
407
  autoFocus: this.props.trigger !== 'hover' && !this.openedByHover,
408
- shouldRenderToParent: fg('enable_appropriate_reading_order_in_profile_card') && this.props.shouldRenderToParent
408
+ shouldRenderToParent: this.props.shouldRenderToParent
409
409
  }));
410
410
  }
411
411
  }, {
@@ -447,10 +447,6 @@ export default function ProfilecardTriggerNext(_ref2) {
447
447
  zIndex: layers.modal(),
448
448
  shouldUseCaptureOnOutsideClick: true,
449
449
  autoFocus: expValEquals('editor_a11y_7152_profile_card_tab_order', 'isEnabled', true) ? isRenderedInPortal && isTriggeredUsingKeyboard ? false : autoFocus !== null && autoFocus !== void 0 ? autoFocus : trigger === 'click' : autoFocus !== null && autoFocus !== void 0 ? autoFocus : trigger === 'click'
450
- // This feature gate is currently enabled only for Jira_Web to avoid UI issues in Confluence_Web.
451
- ,
452
- shouldRenderToParent: fg('enable_appropriate_reading_order_in_profile_card'),
453
- shouldDisableFocusLock: fg('enable_appropriate_reading_order_in_profile_card')
454
450
  }), shouldShowGiveKudos && teamCentralBaseUrl && /*#__PURE__*/React.createElement(Suspense, {
455
451
  fallback: null
456
452
  }, /*#__PURE__*/React.createElement(GiveKudosLauncherLazy, {
@@ -5,7 +5,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
5
5
  import { getPageTime } from './performance';
6
6
  export var PACKAGE_META_DATA = {
7
7
  packageName: (_process$env$_PACKAGE = "@atlaskit/profilecard") !== null && _process$env$_PACKAGE !== void 0 ? _process$env$_PACKAGE : '',
8
- packageVersion: (_process$env$_PACKAGE2 = "0.0.0-development") !== null && _process$env$_PACKAGE2 !== void 0 ? _process$env$_PACKAGE2 : ''
8
+ packageVersion: (_process$env$_PACKAGE2 = "25.0.0") !== null && _process$env$_PACKAGE2 !== void 0 ? _process$env$_PACKAGE2 : ''
9
9
  };
10
10
  var TEAM_SUBJECT = 'teamProfileCard';
11
11
  var USER_SUBJECT = 'profilecard';
@@ -24,7 +24,7 @@ var createEvent = function createEvent(eventType, action, actionSubject, actionS
24
24
  actionSubjectId: actionSubjectId,
25
25
  attributes: _objectSpread(_objectSpread({
26
26
  packageName: "@atlaskit/profilecard",
27
- packageVersion: "0.0.0-development"
27
+ packageVersion: "25.0.0"
28
28
  }, attributes), {}, {
29
29
  firedAt: Math.round(getPageTime())
30
30
  })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/profilecard",
3
- "version": "25.0.0",
3
+ "version": "25.0.1",
4
4
  "description": "A React component to display a card with user information.",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -127,9 +127,6 @@
127
127
  "ptc-links-migrate-atlaskit-link-button": {
128
128
  "type": "boolean"
129
129
  },
130
- "enable_appropriate_reading_order_in_profile_card": {
131
- "type": "boolean"
132
- },
133
130
  "enable_ptc_townsquare_reporting_lines_unsharded": {
134
131
  "type": "boolean"
135
132
  },