@atlaskit/profilecard 19.16.2 → 19.16.3
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 +8 -0
- package/dist/cjs/client/getTeamFromAGG.js +1 -1
- package/dist/cjs/components/Team/TeamProfileCard.js +3 -1
- package/dist/cjs/components/Team/TeamProfileCardTrigger.js +3 -1
- package/dist/cjs/components/User/ProfileCardTrigger.js +3 -2
- package/dist/cjs/components/User/ProfileCardTriggerNext.js +3 -1
- package/dist/cjs/util/analytics.js +1 -1
- package/dist/es2019/client/getTeamFromAGG.js +1 -1
- package/dist/es2019/components/Team/TeamProfileCard.js +3 -1
- package/dist/es2019/components/Team/TeamProfileCardTrigger.js +3 -1
- package/dist/es2019/components/User/ProfileCardTrigger.js +4 -3
- package/dist/es2019/components/User/ProfileCardTriggerNext.js +3 -1
- package/dist/es2019/util/analytics.js +1 -1
- package/dist/esm/client/getTeamFromAGG.js +1 -1
- package/dist/esm/components/Team/TeamProfileCard.js +3 -1
- package/dist/esm/components/Team/TeamProfileCardTrigger.js +3 -1
- package/dist/esm/components/User/ProfileCardTrigger.js +4 -3
- package/dist/esm/components/User/ProfileCardTriggerNext.js +3 -1
- package/dist/esm/util/analytics.js +1 -1
- package/package.json +4 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @atlaskit/profilecard
|
|
2
2
|
|
|
3
|
+
## 19.16.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#122361](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/122361)
|
|
8
|
+
[`dc17551b4b23c`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/dc17551b4b23c) -
|
|
9
|
+
Fix reading order in Profile card
|
|
10
|
+
|
|
3
11
|
## 19.16.2
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
|
@@ -57,7 +57,7 @@ var addHeaders = exports.addHeaders = function addHeaders(headers) {
|
|
|
57
57
|
headers.append('X-ExperimentalApi', 'teams-beta');
|
|
58
58
|
headers.append('X-ExperimentalApi', 'team-members-beta');
|
|
59
59
|
headers.append('atl-client-name', "@atlaskit/profilecard");
|
|
60
|
-
headers.append('atl-client-version', "19.16.
|
|
60
|
+
headers.append('atl-client-version', "19.16.3");
|
|
61
61
|
return headers;
|
|
62
62
|
};
|
|
63
63
|
function getTeamFromAGG(_x, _x2, _x3) {
|
|
@@ -18,6 +18,7 @@ var _standardButton = _interopRequireDefault(require("@atlaskit/button/standard-
|
|
|
18
18
|
var _focusRing = _interopRequireDefault(require("@atlaskit/focus-ring"));
|
|
19
19
|
var _more = _interopRequireDefault(require("@atlaskit/icon/glyph/more"));
|
|
20
20
|
var _menu = require("@atlaskit/menu");
|
|
21
|
+
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
21
22
|
var _popup = _interopRequireDefault(require("@atlaskit/popup"));
|
|
22
23
|
var _constants = require("@atlaskit/theme/constants");
|
|
23
24
|
var _tooltip = _interopRequireDefault(require("@atlaskit/tooltip"));
|
|
@@ -188,7 +189,8 @@ var ExtraActions = function ExtraActions(_ref3) {
|
|
|
188
189
|
})
|
|
189
190
|
}));
|
|
190
191
|
},
|
|
191
|
-
zIndex: _constants.layers.modal()
|
|
192
|
+
zIndex: _constants.layers.modal(),
|
|
193
|
+
shouldRenderToParent: (0, _platformFeatureFlags.fg)('enable_appropriate_reading_order_in_profile_card')
|
|
192
194
|
}));
|
|
193
195
|
};
|
|
194
196
|
var ButtonSection = function ButtonSection(_ref4) {
|
|
@@ -19,6 +19,7 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
19
19
|
var _reactIntlNext = require("react-intl-next");
|
|
20
20
|
var _analyticsNext = require("@atlaskit/analytics-next");
|
|
21
21
|
var _giveKudos = require("@atlaskit/give-kudos");
|
|
22
|
+
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
22
23
|
var _popup = _interopRequireDefault(require("@atlaskit/popup"));
|
|
23
24
|
var _constants = require("@atlaskit/theme/constants");
|
|
24
25
|
var _filterActions2 = _interopRequireDefault(require("../../internal/filterActions"));
|
|
@@ -369,7 +370,8 @@ var TeamProfileCardTriggerInternal = exports.TeamProfileCardTriggerInternal = /*
|
|
|
369
370
|
},
|
|
370
371
|
zIndex: _constants.layers.modal(),
|
|
371
372
|
shouldFlip: true,
|
|
372
|
-
autoFocus: this.props.trigger !== 'hover' && !this.openedByHover
|
|
373
|
+
autoFocus: this.props.trigger !== 'hover' && !this.openedByHover,
|
|
374
|
+
shouldRenderToParent: (0, _platformFeatureFlags.fg)('enable_appropriate_reading_order_in_profile_card')
|
|
373
375
|
}));
|
|
374
376
|
}
|
|
375
377
|
}, {
|
|
@@ -297,7 +297,8 @@ var ProfilecardTrigger = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
297
297
|
zIndex: _constants.layers.modal(),
|
|
298
298
|
shouldUseCaptureOnOutsideClick: true,
|
|
299
299
|
autoFocus: (_this$props$autoFocus = this.props.autoFocus) !== null && _this$props$autoFocus !== void 0 ? _this$props$autoFocus : this.props.trigger === 'click',
|
|
300
|
-
offset: (_this$props$offset = this.props.offset) !== null && _this$props$offset !== void 0 ? _this$props$offset : [0, 8]
|
|
300
|
+
offset: (_this$props$offset = this.props.offset) !== null && _this$props$offset !== void 0 ? _this$props$offset : [0, 8],
|
|
301
|
+
shouldRenderToParent: (0, _platformFeatureFlags.fg)('enable_appropriate_reading_order_in_profile_card')
|
|
301
302
|
}), this.state.shouldShowGiveKudos && /*#__PURE__*/_react.default.createElement(_react.Suspense, {
|
|
302
303
|
fallback: null
|
|
303
304
|
}, /*#__PURE__*/_react.default.createElement(_giveKudos.GiveKudosLauncherLazy, {
|
|
@@ -332,7 +333,7 @@ var ProfilecardTrigger = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
332
333
|
});
|
|
333
334
|
var ProfilecardTriggerLegacy = (0, _analyticsNext.withAnalyticsEvents)()(ProfilecardTrigger);
|
|
334
335
|
function ProfilecardTriggerSwitch(props) {
|
|
335
|
-
return (0, _platformFeatureFlags.
|
|
336
|
+
return (0, _platformFeatureFlags.fg)('platform.profile-card-trigger-next') ? /*#__PURE__*/_react.default.createElement(_ProfileCardTriggerNext.default, (0, _extends2.default)({}, props, {
|
|
336
337
|
onVisibilityChange: function onVisibilityChange(isVisible) {
|
|
337
338
|
if (props.onVisibilityChange) {
|
|
338
339
|
props.onVisibilityChange(isVisible);
|
|
@@ -17,6 +17,7 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
17
17
|
var _reactIntlNext = require("react-intl-next");
|
|
18
18
|
var _analyticsNext = require("@atlaskit/analytics-next");
|
|
19
19
|
var _giveKudos = require("@atlaskit/give-kudos");
|
|
20
|
+
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
20
21
|
var _popup = _interopRequireDefault(require("@atlaskit/popup"));
|
|
21
22
|
var _constants = require("@atlaskit/theme/constants");
|
|
22
23
|
var _filterActions = _interopRequireDefault(require("../../internal/filterActions"));
|
|
@@ -334,7 +335,8 @@ function ProfilecardTriggerNext(_ref) {
|
|
|
334
335
|
zIndex: _constants.layers.modal(),
|
|
335
336
|
shouldUseCaptureOnOutsideClick: true,
|
|
336
337
|
autoFocus: autoFocus !== null && autoFocus !== void 0 ? autoFocus : trigger === 'click',
|
|
337
|
-
offset: offset !== null && offset !== void 0 ? offset : [0, 8]
|
|
338
|
+
offset: offset !== null && offset !== void 0 ? offset : [0, 8],
|
|
339
|
+
shouldRenderToParent: (0, _platformFeatureFlags.fg)('enable_appropriate_reading_order_in_profile_card')
|
|
338
340
|
}), shouldShowGiveKudos && /*#__PURE__*/_react.default.createElement(_react.Suspense, {
|
|
339
341
|
fallback: null
|
|
340
342
|
}, /*#__PURE__*/_react.default.createElement(_giveKudos.GiveKudosLauncherLazy, {
|
|
@@ -44,7 +44,7 @@ var createEvent = function createEvent(eventType, action, actionSubject, actionS
|
|
|
44
44
|
actionSubjectId: actionSubjectId,
|
|
45
45
|
attributes: _objectSpread(_objectSpread({
|
|
46
46
|
packageName: "@atlaskit/profilecard",
|
|
47
|
-
packageVersion: "19.16.
|
|
47
|
+
packageVersion: "19.16.3"
|
|
48
48
|
}, attributes), {}, {
|
|
49
49
|
firedAt: Math.round((0, _performance.getPageTime)())
|
|
50
50
|
})
|
|
@@ -67,7 +67,7 @@ export const addHeaders = headers => {
|
|
|
67
67
|
headers.append('X-ExperimentalApi', 'teams-beta');
|
|
68
68
|
headers.append('X-ExperimentalApi', 'team-members-beta');
|
|
69
69
|
headers.append('atl-client-name', "@atlaskit/profilecard");
|
|
70
|
-
headers.append('atl-client-version', "19.16.
|
|
70
|
+
headers.append('atl-client-version', "19.16.3");
|
|
71
71
|
return headers;
|
|
72
72
|
};
|
|
73
73
|
export async function getTeamFromAGG(url, teamId, siteId) {
|
|
@@ -7,6 +7,7 @@ import Button from '@atlaskit/button/standard-button';
|
|
|
7
7
|
import FocusRing from '@atlaskit/focus-ring';
|
|
8
8
|
import MoreIcon from '@atlaskit/icon/glyph/more';
|
|
9
9
|
import { LinkItem, MenuGroup } from '@atlaskit/menu';
|
|
10
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
10
11
|
import Popup from '@atlaskit/popup';
|
|
11
12
|
import { layers } from '@atlaskit/theme/constants';
|
|
12
13
|
import Tooltip from '@atlaskit/tooltip';
|
|
@@ -154,7 +155,8 @@ const ExtraActions = ({
|
|
|
154
155
|
label: "actions"
|
|
155
156
|
})
|
|
156
157
|
})),
|
|
157
|
-
zIndex: layers.modal()
|
|
158
|
+
zIndex: layers.modal(),
|
|
159
|
+
shouldRenderToParent: fg('enable_appropriate_reading_order_in_profile_card')
|
|
158
160
|
}));
|
|
159
161
|
};
|
|
160
162
|
const ButtonSection = ({
|
|
@@ -4,6 +4,7 @@ import React, { Suspense } from 'react';
|
|
|
4
4
|
import { FormattedMessage } from 'react-intl-next';
|
|
5
5
|
import { withAnalyticsEvents } from '@atlaskit/analytics-next';
|
|
6
6
|
import { GiveKudosLauncherLazy, KudosType } from '@atlaskit/give-kudos';
|
|
7
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
7
8
|
import Popup from '@atlaskit/popup';
|
|
8
9
|
import { layers } from '@atlaskit/theme/constants';
|
|
9
10
|
import filterActions from '../../internal/filterActions';
|
|
@@ -324,7 +325,8 @@ export class TeamProfileCardTriggerInternal extends React.PureComponent {
|
|
|
324
325
|
trigger: triggerProps => this.renderTrigger(triggerProps),
|
|
325
326
|
zIndex: layers.modal(),
|
|
326
327
|
shouldFlip: true,
|
|
327
|
-
autoFocus: this.props.trigger !== 'hover' && !this.openedByHover
|
|
328
|
+
autoFocus: this.props.trigger !== 'hover' && !this.openedByHover,
|
|
329
|
+
shouldRenderToParent: fg('enable_appropriate_reading_order_in_profile_card')
|
|
328
330
|
}));
|
|
329
331
|
}
|
|
330
332
|
render() {
|
|
@@ -3,7 +3,7 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
|
3
3
|
import React, { Suspense } from 'react';
|
|
4
4
|
import { withAnalyticsEvents } from '@atlaskit/analytics-next';
|
|
5
5
|
import { GiveKudosLauncherLazy, KudosType } from '@atlaskit/give-kudos';
|
|
6
|
-
import {
|
|
6
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
7
7
|
import Popup from '@atlaskit/popup';
|
|
8
8
|
import { layers } from '@atlaskit/theme/constants';
|
|
9
9
|
import filterActions from '../../internal/filterActions';
|
|
@@ -251,7 +251,8 @@ class ProfilecardTrigger extends React.PureComponent {
|
|
|
251
251
|
zIndex: layers.modal(),
|
|
252
252
|
shouldUseCaptureOnOutsideClick: true,
|
|
253
253
|
autoFocus: (_this$props$autoFocus = this.props.autoFocus) !== null && _this$props$autoFocus !== void 0 ? _this$props$autoFocus : this.props.trigger === 'click',
|
|
254
|
-
offset: (_this$props$offset = this.props.offset) !== null && _this$props$offset !== void 0 ? _this$props$offset : [0, 8]
|
|
254
|
+
offset: (_this$props$offset = this.props.offset) !== null && _this$props$offset !== void 0 ? _this$props$offset : [0, 8],
|
|
255
|
+
shouldRenderToParent: fg('enable_appropriate_reading_order_in_profile_card')
|
|
255
256
|
}), this.state.shouldShowGiveKudos && /*#__PURE__*/React.createElement(Suspense, {
|
|
256
257
|
fallback: null
|
|
257
258
|
}, /*#__PURE__*/React.createElement(GiveKudosLauncherLazy, {
|
|
@@ -282,7 +283,7 @@ _defineProperty(ProfilecardTrigger, "defaultProps", {
|
|
|
282
283
|
});
|
|
283
284
|
const ProfilecardTriggerLegacy = withAnalyticsEvents()(ProfilecardTrigger);
|
|
284
285
|
export default function ProfilecardTriggerSwitch(props) {
|
|
285
|
-
return
|
|
286
|
+
return fg('platform.profile-card-trigger-next') ? /*#__PURE__*/React.createElement(ProfilecardTriggerNext, _extends({}, props, {
|
|
286
287
|
onVisibilityChange: isVisible => {
|
|
287
288
|
if (props.onVisibilityChange) {
|
|
288
289
|
props.onVisibilityChange(isVisible);
|
|
@@ -3,6 +3,7 @@ import React, { Suspense, useCallback, useEffect, useMemo, useRef, useState } fr
|
|
|
3
3
|
import { useIntl } from 'react-intl-next';
|
|
4
4
|
import { useAnalyticsEvents } from '@atlaskit/analytics-next';
|
|
5
5
|
import { GiveKudosLauncherLazy, KudosType } from '@atlaskit/give-kudos';
|
|
6
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
6
7
|
import Popup from '@atlaskit/popup';
|
|
7
8
|
import { layers } from '@atlaskit/theme/constants';
|
|
8
9
|
import filterActionsInner from '../../internal/filterActions';
|
|
@@ -262,7 +263,8 @@ export default function ProfilecardTriggerNext({
|
|
|
262
263
|
zIndex: layers.modal(),
|
|
263
264
|
shouldUseCaptureOnOutsideClick: true,
|
|
264
265
|
autoFocus: autoFocus !== null && autoFocus !== void 0 ? autoFocus : trigger === 'click',
|
|
265
|
-
offset: offset !== null && offset !== void 0 ? offset : [0, 8]
|
|
266
|
+
offset: offset !== null && offset !== void 0 ? offset : [0, 8],
|
|
267
|
+
shouldRenderToParent: fg('enable_appropriate_reading_order_in_profile_card')
|
|
266
268
|
}), shouldShowGiveKudos && /*#__PURE__*/React.createElement(Suspense, {
|
|
267
269
|
fallback: null
|
|
268
270
|
}, /*#__PURE__*/React.createElement(GiveKudosLauncherLazy, {
|
|
@@ -31,7 +31,7 @@ const createEvent = (eventType, action, actionSubject, actionSubjectId, attribut
|
|
|
31
31
|
actionSubjectId,
|
|
32
32
|
attributes: {
|
|
33
33
|
packageName: "@atlaskit/profilecard",
|
|
34
|
-
packageVersion: "19.16.
|
|
34
|
+
packageVersion: "19.16.3",
|
|
35
35
|
...attributes,
|
|
36
36
|
firedAt: Math.round(getPageTime())
|
|
37
37
|
}
|
|
@@ -48,7 +48,7 @@ export var addHeaders = function addHeaders(headers) {
|
|
|
48
48
|
headers.append('X-ExperimentalApi', 'teams-beta');
|
|
49
49
|
headers.append('X-ExperimentalApi', 'team-members-beta');
|
|
50
50
|
headers.append('atl-client-name', "@atlaskit/profilecard");
|
|
51
|
-
headers.append('atl-client-version', "19.16.
|
|
51
|
+
headers.append('atl-client-version', "19.16.3");
|
|
52
52
|
return headers;
|
|
53
53
|
};
|
|
54
54
|
export function getTeamFromAGG(_x, _x2, _x3) {
|
|
@@ -12,6 +12,7 @@ import Button from '@atlaskit/button/standard-button';
|
|
|
12
12
|
import FocusRing from '@atlaskit/focus-ring';
|
|
13
13
|
import MoreIcon from '@atlaskit/icon/glyph/more';
|
|
14
14
|
import { LinkItem, MenuGroup } from '@atlaskit/menu';
|
|
15
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
15
16
|
import Popup from '@atlaskit/popup';
|
|
16
17
|
import { layers } from '@atlaskit/theme/constants';
|
|
17
18
|
import Tooltip from '@atlaskit/tooltip';
|
|
@@ -178,7 +179,8 @@ var ExtraActions = function ExtraActions(_ref3) {
|
|
|
178
179
|
})
|
|
179
180
|
}));
|
|
180
181
|
},
|
|
181
|
-
zIndex: layers.modal()
|
|
182
|
+
zIndex: layers.modal(),
|
|
183
|
+
shouldRenderToParent: fg('enable_appropriate_reading_order_in_profile_card')
|
|
182
184
|
}));
|
|
183
185
|
};
|
|
184
186
|
var ButtonSection = function ButtonSection(_ref4) {
|
|
@@ -13,6 +13,7 @@ import React, { Suspense } from 'react';
|
|
|
13
13
|
import { FormattedMessage } from 'react-intl-next';
|
|
14
14
|
import { withAnalyticsEvents } from '@atlaskit/analytics-next';
|
|
15
15
|
import { GiveKudosLauncherLazy, KudosType } from '@atlaskit/give-kudos';
|
|
16
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
16
17
|
import Popup from '@atlaskit/popup';
|
|
17
18
|
import { layers } from '@atlaskit/theme/constants';
|
|
18
19
|
import _filterActions from '../../internal/filterActions';
|
|
@@ -359,7 +360,8 @@ export var TeamProfileCardTriggerInternal = /*#__PURE__*/function (_React$PureCo
|
|
|
359
360
|
},
|
|
360
361
|
zIndex: layers.modal(),
|
|
361
362
|
shouldFlip: true,
|
|
362
|
-
autoFocus: this.props.trigger !== 'hover' && !this.openedByHover
|
|
363
|
+
autoFocus: this.props.trigger !== 'hover' && !this.openedByHover,
|
|
364
|
+
shouldRenderToParent: fg('enable_appropriate_reading_order_in_profile_card')
|
|
363
365
|
}));
|
|
364
366
|
}
|
|
365
367
|
}, {
|
|
@@ -16,7 +16,7 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
|
|
|
16
16
|
import React, { Suspense } from 'react';
|
|
17
17
|
import { withAnalyticsEvents } from '@atlaskit/analytics-next';
|
|
18
18
|
import { GiveKudosLauncherLazy, KudosType } from '@atlaskit/give-kudos';
|
|
19
|
-
import {
|
|
19
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
20
20
|
import Popup from '@atlaskit/popup';
|
|
21
21
|
import { layers } from '@atlaskit/theme/constants';
|
|
22
22
|
import _filterActions from '../../internal/filterActions';
|
|
@@ -287,7 +287,8 @@ var ProfilecardTrigger = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
287
287
|
zIndex: layers.modal(),
|
|
288
288
|
shouldUseCaptureOnOutsideClick: true,
|
|
289
289
|
autoFocus: (_this$props$autoFocus = this.props.autoFocus) !== null && _this$props$autoFocus !== void 0 ? _this$props$autoFocus : this.props.trigger === 'click',
|
|
290
|
-
offset: (_this$props$offset = this.props.offset) !== null && _this$props$offset !== void 0 ? _this$props$offset : [0, 8]
|
|
290
|
+
offset: (_this$props$offset = this.props.offset) !== null && _this$props$offset !== void 0 ? _this$props$offset : [0, 8],
|
|
291
|
+
shouldRenderToParent: fg('enable_appropriate_reading_order_in_profile_card')
|
|
291
292
|
}), this.state.shouldShowGiveKudos && /*#__PURE__*/React.createElement(Suspense, {
|
|
292
293
|
fallback: null
|
|
293
294
|
}, /*#__PURE__*/React.createElement(GiveKudosLauncherLazy, {
|
|
@@ -322,7 +323,7 @@ _defineProperty(ProfilecardTrigger, "defaultProps", {
|
|
|
322
323
|
});
|
|
323
324
|
var ProfilecardTriggerLegacy = withAnalyticsEvents()(ProfilecardTrigger);
|
|
324
325
|
export default function ProfilecardTriggerSwitch(props) {
|
|
325
|
-
return
|
|
326
|
+
return fg('platform.profile-card-trigger-next') ? /*#__PURE__*/React.createElement(ProfilecardTriggerNext, _extends({}, props, {
|
|
326
327
|
onVisibilityChange: function onVisibilityChange(isVisible) {
|
|
327
328
|
if (props.onVisibilityChange) {
|
|
328
329
|
props.onVisibilityChange(isVisible);
|
|
@@ -13,6 +13,7 @@ import React, { Suspense, useCallback, useEffect, useMemo, useRef, useState } fr
|
|
|
13
13
|
import { useIntl } from 'react-intl-next';
|
|
14
14
|
import { useAnalyticsEvents } from '@atlaskit/analytics-next';
|
|
15
15
|
import { GiveKudosLauncherLazy, KudosType } from '@atlaskit/give-kudos';
|
|
16
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
16
17
|
import Popup from '@atlaskit/popup';
|
|
17
18
|
import { layers } from '@atlaskit/theme/constants';
|
|
18
19
|
import filterActionsInner from '../../internal/filterActions';
|
|
@@ -324,7 +325,8 @@ export default function ProfilecardTriggerNext(_ref) {
|
|
|
324
325
|
zIndex: layers.modal(),
|
|
325
326
|
shouldUseCaptureOnOutsideClick: true,
|
|
326
327
|
autoFocus: autoFocus !== null && autoFocus !== void 0 ? autoFocus : trigger === 'click',
|
|
327
|
-
offset: offset !== null && offset !== void 0 ? offset : [0, 8]
|
|
328
|
+
offset: offset !== null && offset !== void 0 ? offset : [0, 8],
|
|
329
|
+
shouldRenderToParent: fg('enable_appropriate_reading_order_in_profile_card')
|
|
328
330
|
}), shouldShowGiveKudos && /*#__PURE__*/React.createElement(Suspense, {
|
|
329
331
|
fallback: null
|
|
330
332
|
}, /*#__PURE__*/React.createElement(GiveKudosLauncherLazy, {
|
|
@@ -38,7 +38,7 @@ var createEvent = function createEvent(eventType, action, actionSubject, actionS
|
|
|
38
38
|
actionSubjectId: actionSubjectId,
|
|
39
39
|
attributes: _objectSpread(_objectSpread({
|
|
40
40
|
packageName: "@atlaskit/profilecard",
|
|
41
|
-
packageVersion: "19.16.
|
|
41
|
+
packageVersion: "19.16.3"
|
|
42
42
|
}, attributes), {}, {
|
|
43
43
|
firedAt: Math.round(getPageTime())
|
|
44
44
|
})
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/profilecard",
|
|
3
|
-
"version": "19.16.
|
|
3
|
+
"version": "19.16.3",
|
|
4
4
|
"description": "A React component to display a card with user information.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -115,6 +115,9 @@
|
|
|
115
115
|
"platform-feature-flags": {
|
|
116
116
|
"platform.profile-card-trigger-next": {
|
|
117
117
|
"type": "boolean"
|
|
118
|
+
},
|
|
119
|
+
"enable_appropriate_reading_order_in_profile_card": {
|
|
120
|
+
"type": "boolean"
|
|
118
121
|
}
|
|
119
122
|
}
|
|
120
123
|
}
|