@atlaskit/profilecard 19.15.5 → 19.15.7
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 +15 -0
- package/dist/cjs/client/getTeamFromAGG.js +1 -1
- package/dist/cjs/components/User/ProfileCardTrigger.js +3 -2
- package/dist/cjs/components/User/ProfileCardTriggerNext.js +3 -2
- package/dist/cjs/util/analytics.js +1 -1
- package/dist/es2019/client/getTeamFromAGG.js +1 -1
- package/dist/es2019/components/User/ProfileCardTrigger.js +2 -1
- package/dist/es2019/components/User/ProfileCardTriggerNext.js +2 -1
- package/dist/es2019/util/analytics.js +1 -1
- package/dist/esm/client/getTeamFromAGG.js +1 -1
- package/dist/esm/components/User/ProfileCardTrigger.js +3 -2
- package/dist/esm/components/User/ProfileCardTriggerNext.js +3 -2
- package/dist/esm/util/analytics.js +1 -1
- package/dist/types/components/User/ProfileCardTriggerNext.d.ts +1 -1
- package/dist/types/types.d.ts +1 -0
- package/dist/types-ts4.5/components/User/ProfileCardTriggerNext.d.ts +1 -1
- package/dist/types-ts4.5/types.d.ts +1 -0
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# @atlaskit/profilecard
|
|
2
2
|
|
|
3
|
+
## 19.15.7
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 19.15.6
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [#111187](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/111187)
|
|
14
|
+
[`3fc3b37188f2c`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/3fc3b37188f2c) -
|
|
15
|
+
[ux] [ED-23788] Make sure that profilecards in the Editor do not autofocus, so that users can
|
|
16
|
+
click on a mention and immediate delete it by pressing `Backspace` or `Delete`
|
|
17
|
+
|
|
3
18
|
## 19.15.5
|
|
4
19
|
|
|
5
20
|
### 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.15.
|
|
60
|
+
headers.append('atl-client-version', "19.15.7");
|
|
61
61
|
return headers;
|
|
62
62
|
};
|
|
63
63
|
function getTeamFromAGG(_x, _x2, _x3) {
|
|
@@ -276,7 +276,8 @@ var ProfilecardTrigger = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
276
276
|
}, {
|
|
277
277
|
key: "renderWithTrigger",
|
|
278
278
|
value: function renderWithTrigger() {
|
|
279
|
-
var _this3 = this
|
|
279
|
+
var _this3 = this,
|
|
280
|
+
_this$props$autoFocus;
|
|
280
281
|
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_popup.default, {
|
|
281
282
|
isOpen: !!this.state.visible,
|
|
282
283
|
onClose: this.hideProfilecard,
|
|
@@ -294,7 +295,7 @@ var ProfilecardTrigger = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
294
295
|
},
|
|
295
296
|
zIndex: _constants.layers.modal(),
|
|
296
297
|
shouldUseCaptureOnOutsideClick: true,
|
|
297
|
-
autoFocus: this.props.trigger === 'click'
|
|
298
|
+
autoFocus: (_this$props$autoFocus = this.props.autoFocus) !== null && _this$props$autoFocus !== void 0 ? _this$props$autoFocus : this.props.trigger === 'click'
|
|
298
299
|
}), this.state.shouldShowGiveKudos && /*#__PURE__*/_react.default.createElement(_react.Suspense, {
|
|
299
300
|
fallback: null
|
|
300
301
|
}, /*#__PURE__*/_react.default.createElement(_giveKudos.GiveKudosLauncherLazy, {
|
|
@@ -33,7 +33,8 @@ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e;
|
|
|
33
33
|
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; }
|
|
34
34
|
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; }
|
|
35
35
|
function ProfilecardTriggerNext(_ref) {
|
|
36
|
-
var
|
|
36
|
+
var autoFocus = _ref.autoFocus,
|
|
37
|
+
_ref$trigger = _ref.trigger,
|
|
37
38
|
trigger = _ref$trigger === void 0 ? 'hover' : _ref$trigger,
|
|
38
39
|
userId = _ref.userId,
|
|
39
40
|
cloudId = _ref.cloudId,
|
|
@@ -331,7 +332,7 @@ function ProfilecardTriggerNext(_ref) {
|
|
|
331
332
|
},
|
|
332
333
|
zIndex: _constants.layers.modal(),
|
|
333
334
|
shouldUseCaptureOnOutsideClick: true,
|
|
334
|
-
autoFocus: trigger === 'click'
|
|
335
|
+
autoFocus: autoFocus !== null && autoFocus !== void 0 ? autoFocus : trigger === 'click'
|
|
335
336
|
}), shouldShowGiveKudos && /*#__PURE__*/_react.default.createElement(_react.Suspense, {
|
|
336
337
|
fallback: null
|
|
337
338
|
}, /*#__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.15.
|
|
47
|
+
packageVersion: "19.15.7"
|
|
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.15.
|
|
70
|
+
headers.append('atl-client-version', "19.15.7");
|
|
71
71
|
return headers;
|
|
72
72
|
};
|
|
73
73
|
export async function getTeamFromAGG(url, teamId, siteId) {
|
|
@@ -230,6 +230,7 @@ class ProfilecardTrigger extends React.PureComponent {
|
|
|
230
230
|
}))));
|
|
231
231
|
}
|
|
232
232
|
renderWithTrigger() {
|
|
233
|
+
var _this$props$autoFocus;
|
|
233
234
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Popup, {
|
|
234
235
|
isOpen: !!this.state.visible,
|
|
235
236
|
onClose: this.hideProfilecard,
|
|
@@ -249,7 +250,7 @@ class ProfilecardTrigger extends React.PureComponent {
|
|
|
249
250
|
},
|
|
250
251
|
zIndex: layers.modal(),
|
|
251
252
|
shouldUseCaptureOnOutsideClick: true,
|
|
252
|
-
autoFocus: this.props.trigger === 'click'
|
|
253
|
+
autoFocus: (_this$props$autoFocus = this.props.autoFocus) !== null && _this$props$autoFocus !== void 0 ? _this$props$autoFocus : this.props.trigger === 'click'
|
|
253
254
|
}), this.state.shouldShowGiveKudos && /*#__PURE__*/React.createElement(Suspense, {
|
|
254
255
|
fallback: null
|
|
255
256
|
}, /*#__PURE__*/React.createElement(GiveKudosLauncherLazy, {
|
|
@@ -13,6 +13,7 @@ import { DELAY_MS_HIDE, DELAY_MS_SHOW } from '../../util/config';
|
|
|
13
13
|
import { ProfileCardLazy } from './lazyProfileCard';
|
|
14
14
|
import UserLoadingState from './UserLoadingState';
|
|
15
15
|
export default function ProfilecardTriggerNext({
|
|
16
|
+
autoFocus,
|
|
16
17
|
trigger = 'hover',
|
|
17
18
|
userId,
|
|
18
19
|
cloudId,
|
|
@@ -259,7 +260,7 @@ export default function ProfilecardTriggerNext({
|
|
|
259
260
|
},
|
|
260
261
|
zIndex: layers.modal(),
|
|
261
262
|
shouldUseCaptureOnOutsideClick: true,
|
|
262
|
-
autoFocus: trigger === 'click'
|
|
263
|
+
autoFocus: autoFocus !== null && autoFocus !== void 0 ? autoFocus : trigger === 'click'
|
|
263
264
|
}), shouldShowGiveKudos && /*#__PURE__*/React.createElement(Suspense, {
|
|
264
265
|
fallback: null
|
|
265
266
|
}, /*#__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.15.
|
|
34
|
+
packageVersion: "19.15.7",
|
|
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.15.
|
|
51
|
+
headers.append('atl-client-version', "19.15.7");
|
|
52
52
|
return headers;
|
|
53
53
|
};
|
|
54
54
|
export function getTeamFromAGG(_x, _x2, _x3) {
|
|
@@ -266,7 +266,8 @@ var ProfilecardTrigger = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
266
266
|
}, {
|
|
267
267
|
key: "renderWithTrigger",
|
|
268
268
|
value: function renderWithTrigger() {
|
|
269
|
-
var _this3 = this
|
|
269
|
+
var _this3 = this,
|
|
270
|
+
_this$props$autoFocus;
|
|
270
271
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Popup, {
|
|
271
272
|
isOpen: !!this.state.visible,
|
|
272
273
|
onClose: this.hideProfilecard,
|
|
@@ -284,7 +285,7 @@ var ProfilecardTrigger = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
284
285
|
},
|
|
285
286
|
zIndex: layers.modal(),
|
|
286
287
|
shouldUseCaptureOnOutsideClick: true,
|
|
287
|
-
autoFocus: this.props.trigger === 'click'
|
|
288
|
+
autoFocus: (_this$props$autoFocus = this.props.autoFocus) !== null && _this$props$autoFocus !== void 0 ? _this$props$autoFocus : this.props.trigger === 'click'
|
|
288
289
|
}), this.state.shouldShowGiveKudos && /*#__PURE__*/React.createElement(Suspense, {
|
|
289
290
|
fallback: null
|
|
290
291
|
}, /*#__PURE__*/React.createElement(GiveKudosLauncherLazy, {
|
|
@@ -23,7 +23,8 @@ import { DELAY_MS_HIDE, DELAY_MS_SHOW } from '../../util/config';
|
|
|
23
23
|
import { ProfileCardLazy } from './lazyProfileCard';
|
|
24
24
|
import UserLoadingState from './UserLoadingState';
|
|
25
25
|
export default function ProfilecardTriggerNext(_ref) {
|
|
26
|
-
var
|
|
26
|
+
var autoFocus = _ref.autoFocus,
|
|
27
|
+
_ref$trigger = _ref.trigger,
|
|
27
28
|
trigger = _ref$trigger === void 0 ? 'hover' : _ref$trigger,
|
|
28
29
|
userId = _ref.userId,
|
|
29
30
|
cloudId = _ref.cloudId,
|
|
@@ -321,7 +322,7 @@ export default function ProfilecardTriggerNext(_ref) {
|
|
|
321
322
|
},
|
|
322
323
|
zIndex: layers.modal(),
|
|
323
324
|
shouldUseCaptureOnOutsideClick: true,
|
|
324
|
-
autoFocus: trigger === 'click'
|
|
325
|
+
autoFocus: autoFocus !== null && autoFocus !== void 0 ? autoFocus : trigger === 'click'
|
|
325
326
|
}), shouldShowGiveKudos && /*#__PURE__*/React.createElement(Suspense, {
|
|
326
327
|
fallback: null
|
|
327
328
|
}, /*#__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.15.
|
|
41
|
+
packageVersion: "19.15.7"
|
|
42
42
|
}, attributes), {}, {
|
|
43
43
|
firedAt: Math.round(getPageTime())
|
|
44
44
|
})
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { type ProfileCardTriggerProps } from '../../types';
|
|
3
|
-
export default function ProfilecardTriggerNext({ trigger, userId, cloudId, resourceClient, actions, position, children, testId, addFlag, onReportingLinesClick, ariaLabel, ariaLabelledBy, prepopulatedData, disabledAriaAttributes, onVisibilityChange, }: ProfileCardTriggerProps): JSX.Element;
|
|
3
|
+
export default function ProfilecardTriggerNext({ autoFocus, trigger, userId, cloudId, resourceClient, actions, position, children, testId, addFlag, onReportingLinesClick, ariaLabel, ariaLabelledBy, prepopulatedData, disabledAriaAttributes, onVisibilityChange, }: ProfileCardTriggerProps): JSX.Element;
|
package/dist/types/types.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { type ProfileCardTriggerProps } from '../../types';
|
|
3
|
-
export default function ProfilecardTriggerNext({ trigger, userId, cloudId, resourceClient, actions, position, children, testId, addFlag, onReportingLinesClick, ariaLabel, ariaLabelledBy, prepopulatedData, disabledAriaAttributes, onVisibilityChange, }: ProfileCardTriggerProps): JSX.Element;
|
|
3
|
+
export default function ProfilecardTriggerNext({ autoFocus, trigger, userId, cloudId, resourceClient, actions, position, children, testId, addFlag, onReportingLinesClick, ariaLabel, ariaLabelledBy, prepopulatedData, disabledAriaAttributes, onVisibilityChange, }: ProfileCardTriggerProps): JSX.Element;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/profilecard",
|
|
3
|
-
"version": "19.15.
|
|
3
|
+
"version": "19.15.7",
|
|
4
4
|
"description": "A React component to display a card with user information.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -61,12 +61,12 @@
|
|
|
61
61
|
"@atlaskit/empty-state": "^7.9.0",
|
|
62
62
|
"@atlaskit/focus-ring": "^1.5.0",
|
|
63
63
|
"@atlaskit/give-kudos": "^2.1.1",
|
|
64
|
-
"@atlaskit/icon": "^22.
|
|
64
|
+
"@atlaskit/icon": "^22.5.0",
|
|
65
65
|
"@atlaskit/lozenge": "^11.8.0",
|
|
66
66
|
"@atlaskit/menu": "^2.5.0",
|
|
67
67
|
"@atlaskit/platform-feature-flags": "^0.2.4",
|
|
68
68
|
"@atlaskit/popup": "^1.19.0",
|
|
69
|
-
"@atlaskit/primitives": "^
|
|
69
|
+
"@atlaskit/primitives": "^9.0.0",
|
|
70
70
|
"@atlaskit/spinner": "^16.2.0",
|
|
71
71
|
"@atlaskit/theme": "^12.11.0",
|
|
72
72
|
"@atlaskit/tokens": "^1.53.0",
|