@atlaskit/profilecard 19.12.0 → 19.13.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 +8 -0
- package/dist/cjs/client/getTeamFromAGG.js +1 -1
- package/dist/cjs/components/Team/TeamProfileCard.js +1 -2
- package/dist/cjs/components/Team/TeamProfileCardTrigger.js +1 -2
- package/dist/cjs/components/User/ProfileCardTrigger.js +1 -2
- package/dist/cjs/components/User/ProfileCardTriggerNext.js +1 -2
- package/dist/cjs/util/analytics.js +1 -1
- package/dist/es2019/client/getTeamFromAGG.js +1 -1
- package/dist/es2019/components/Team/TeamProfileCard.js +1 -2
- package/dist/es2019/components/Team/TeamProfileCardTrigger.js +1 -2
- package/dist/es2019/components/User/ProfileCardTrigger.js +1 -2
- package/dist/es2019/components/User/ProfileCardTriggerNext.js +1 -2
- package/dist/es2019/util/analytics.js +1 -1
- package/dist/esm/client/getTeamFromAGG.js +1 -1
- package/dist/esm/components/Team/TeamProfileCard.js +1 -2
- package/dist/esm/components/Team/TeamProfileCardTrigger.js +1 -2
- package/dist/esm/components/User/ProfileCardTrigger.js +1 -2
- package/dist/esm/components/User/ProfileCardTriggerNext.js +1 -2
- package/dist/esm/util/analytics.js +1 -1
- package/dist/types/components/Team/TeamProfileCardTrigger.d.ts +2 -2
- package/dist/types/components/User/ProfileCardTrigger.d.ts +1 -1
- package/dist/types/components/User/ProfileCardTriggerNext.d.ts +1 -1
- package/dist/types-ts4.5/components/Team/TeamProfileCardTrigger.d.ts +2 -2
- package/dist/types-ts4.5/components/User/ProfileCardTrigger.d.ts +1 -1
- package/dist/types-ts4.5/components/User/ProfileCardTriggerNext.d.ts +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @atlaskit/profilecard
|
|
2
2
|
|
|
3
|
+
## 19.13.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#99727](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/99727)
|
|
8
|
+
[`80b09c8a9a96`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/80b09c8a9a96) -
|
|
9
|
+
hot-109153 Revert the changes PR#98596
|
|
10
|
+
|
|
3
11
|
## 19.12.0
|
|
4
12
|
|
|
5
13
|
### Minor 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.
|
|
60
|
+
headers.append('atl-client-version', "19.13.0");
|
|
61
61
|
return headers;
|
|
62
62
|
};
|
|
63
63
|
function getTeamFromAGG(_x, _x2, _x3) {
|
|
@@ -188,8 +188,7 @@ var ExtraActions = function ExtraActions(_ref3) {
|
|
|
188
188
|
})
|
|
189
189
|
}));
|
|
190
190
|
},
|
|
191
|
-
zIndex: _constants.layers.modal()
|
|
192
|
-
shouldRenderToParent: true
|
|
191
|
+
zIndex: _constants.layers.modal()
|
|
193
192
|
}));
|
|
194
193
|
};
|
|
195
194
|
var ButtonSection = function ButtonSection(_ref4) {
|
|
@@ -367,8 +367,7 @@ var TeamProfileCardTriggerInternal = exports.TeamProfileCardTriggerInternal = /*
|
|
|
367
367
|
},
|
|
368
368
|
zIndex: _constants.layers.modal(),
|
|
369
369
|
shouldFlip: true,
|
|
370
|
-
autoFocus: this.props.trigger !== 'hover' && !this.openedByHover
|
|
371
|
-
shouldRenderToParent: true
|
|
370
|
+
autoFocus: this.props.trigger !== 'hover' && !this.openedByHover
|
|
372
371
|
}));
|
|
373
372
|
}
|
|
374
373
|
}, {
|
|
@@ -294,8 +294,7 @@ var ProfilecardTrigger = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
294
294
|
},
|
|
295
295
|
zIndex: _constants.layers.modal(),
|
|
296
296
|
shouldUseCaptureOnOutsideClick: true,
|
|
297
|
-
autoFocus: this.props.trigger === 'click'
|
|
298
|
-
shouldRenderToParent: true
|
|
297
|
+
autoFocus: this.props.trigger === 'click'
|
|
299
298
|
}), this.state.shouldShowGiveKudos && /*#__PURE__*/_react.default.createElement(_react.Suspense, {
|
|
300
299
|
fallback: null
|
|
301
300
|
}, /*#__PURE__*/_react.default.createElement(_giveKudos.GiveKudosLauncherLazy, {
|
|
@@ -331,8 +331,7 @@ function ProfilecardTriggerNext(_ref) {
|
|
|
331
331
|
},
|
|
332
332
|
zIndex: _constants.layers.modal(),
|
|
333
333
|
shouldUseCaptureOnOutsideClick: true,
|
|
334
|
-
autoFocus: trigger === 'click'
|
|
335
|
-
shouldRenderToParent: true
|
|
334
|
+
autoFocus: trigger === 'click'
|
|
336
335
|
}), shouldShowGiveKudos && /*#__PURE__*/_react.default.createElement(_react.Suspense, {
|
|
337
336
|
fallback: null
|
|
338
337
|
}, /*#__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.
|
|
47
|
+
packageVersion: "19.13.0"
|
|
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.
|
|
70
|
+
headers.append('atl-client-version', "19.13.0");
|
|
71
71
|
return headers;
|
|
72
72
|
};
|
|
73
73
|
export async function getTeamFromAGG(url, teamId, siteId) {
|
|
@@ -322,8 +322,7 @@ export class TeamProfileCardTriggerInternal extends React.PureComponent {
|
|
|
322
322
|
trigger: triggerProps => this.renderTrigger(triggerProps),
|
|
323
323
|
zIndex: layers.modal(),
|
|
324
324
|
shouldFlip: true,
|
|
325
|
-
autoFocus: this.props.trigger !== 'hover' && !this.openedByHover
|
|
326
|
-
shouldRenderToParent: true
|
|
325
|
+
autoFocus: this.props.trigger !== 'hover' && !this.openedByHover
|
|
327
326
|
}));
|
|
328
327
|
}
|
|
329
328
|
render() {
|
|
@@ -249,8 +249,7 @@ class ProfilecardTrigger extends React.PureComponent {
|
|
|
249
249
|
},
|
|
250
250
|
zIndex: layers.modal(),
|
|
251
251
|
shouldUseCaptureOnOutsideClick: true,
|
|
252
|
-
autoFocus: this.props.trigger === 'click'
|
|
253
|
-
shouldRenderToParent: true
|
|
252
|
+
autoFocus: this.props.trigger === 'click'
|
|
254
253
|
}), this.state.shouldShowGiveKudos && /*#__PURE__*/React.createElement(Suspense, {
|
|
255
254
|
fallback: null
|
|
256
255
|
}, /*#__PURE__*/React.createElement(GiveKudosLauncherLazy, {
|
|
@@ -259,8 +259,7 @@ export default function ProfilecardTriggerNext({
|
|
|
259
259
|
},
|
|
260
260
|
zIndex: layers.modal(),
|
|
261
261
|
shouldUseCaptureOnOutsideClick: true,
|
|
262
|
-
autoFocus: trigger === 'click'
|
|
263
|
-
shouldRenderToParent: true
|
|
262
|
+
autoFocus: trigger === 'click'
|
|
264
263
|
}), shouldShowGiveKudos && /*#__PURE__*/React.createElement(Suspense, {
|
|
265
264
|
fallback: null
|
|
266
265
|
}, /*#__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.
|
|
34
|
+
packageVersion: "19.13.0",
|
|
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.
|
|
51
|
+
headers.append('atl-client-version', "19.13.0");
|
|
52
52
|
return headers;
|
|
53
53
|
};
|
|
54
54
|
export function getTeamFromAGG(_x, _x2, _x3) {
|
|
@@ -357,8 +357,7 @@ export var TeamProfileCardTriggerInternal = /*#__PURE__*/function (_React$PureCo
|
|
|
357
357
|
},
|
|
358
358
|
zIndex: layers.modal(),
|
|
359
359
|
shouldFlip: true,
|
|
360
|
-
autoFocus: this.props.trigger !== 'hover' && !this.openedByHover
|
|
361
|
-
shouldRenderToParent: true
|
|
360
|
+
autoFocus: this.props.trigger !== 'hover' && !this.openedByHover
|
|
362
361
|
}));
|
|
363
362
|
}
|
|
364
363
|
}, {
|
|
@@ -284,8 +284,7 @@ var ProfilecardTrigger = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
284
284
|
},
|
|
285
285
|
zIndex: layers.modal(),
|
|
286
286
|
shouldUseCaptureOnOutsideClick: true,
|
|
287
|
-
autoFocus: this.props.trigger === 'click'
|
|
288
|
-
shouldRenderToParent: true
|
|
287
|
+
autoFocus: this.props.trigger === 'click'
|
|
289
288
|
}), this.state.shouldShowGiveKudos && /*#__PURE__*/React.createElement(Suspense, {
|
|
290
289
|
fallback: null
|
|
291
290
|
}, /*#__PURE__*/React.createElement(GiveKudosLauncherLazy, {
|
|
@@ -321,8 +321,7 @@ export default function ProfilecardTriggerNext(_ref) {
|
|
|
321
321
|
},
|
|
322
322
|
zIndex: layers.modal(),
|
|
323
323
|
shouldUseCaptureOnOutsideClick: true,
|
|
324
|
-
autoFocus: trigger === 'click'
|
|
325
|
-
shouldRenderToParent: true
|
|
324
|
+
autoFocus: trigger === 'click'
|
|
326
325
|
}), shouldShowGiveKudos && /*#__PURE__*/React.createElement(Suspense, {
|
|
327
326
|
fallback: null
|
|
328
327
|
}, /*#__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.
|
|
41
|
+
packageVersion: "19.13.0"
|
|
42
42
|
}, attributes), {}, {
|
|
43
43
|
firedAt: Math.round(getPageTime())
|
|
44
44
|
})
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { AnalyticsEventPayload } from '@atlaskit/analytics-next';
|
|
3
|
+
import { TriggerProps } from '@atlaskit/popup/types';
|
|
4
4
|
import type { AnalyticsFromDuration, AnalyticsProps, ProfileCardAction, Team, TeamProfileCardTriggerProps, TeamProfileCardTriggerState } from '../../types';
|
|
5
5
|
export declare class TeamProfileCardTriggerInternal extends React.PureComponent<TeamProfileCardTriggerProps & AnalyticsProps, TeamProfileCardTriggerState> {
|
|
6
6
|
static defaultProps: Partial<TeamProfileCardTriggerProps>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import {
|
|
2
|
+
import { ProfileCardTriggerProps } from '../../types';
|
|
3
3
|
export default function ProfilecardTriggerNext({ trigger, userId, cloudId, resourceClient, actions, position, children, testId, addFlag, onReportingLinesClick, ariaLabel, ariaLabelledBy, prepopulatedData, disabledAriaAttributes, onVisibilityChange, }: ProfileCardTriggerProps): JSX.Element;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { AnalyticsEventPayload } from '@atlaskit/analytics-next';
|
|
3
|
+
import { TriggerProps } from '@atlaskit/popup/types';
|
|
4
4
|
import type { AnalyticsFromDuration, AnalyticsProps, ProfileCardAction, Team, TeamProfileCardTriggerProps, TeamProfileCardTriggerState } from '../../types';
|
|
5
5
|
export declare class TeamProfileCardTriggerInternal extends React.PureComponent<TeamProfileCardTriggerProps & AnalyticsProps, TeamProfileCardTriggerState> {
|
|
6
6
|
static defaultProps: Partial<TeamProfileCardTriggerProps>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import {
|
|
2
|
+
import { ProfileCardTriggerProps } from '../../types';
|
|
3
3
|
export default function ProfilecardTriggerNext({ 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.
|
|
3
|
+
"version": "19.13.0",
|
|
4
4
|
"description": "A React component to display a card with user information.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
"@atlaskit/popup": "^1.17.0",
|
|
68
68
|
"@atlaskit/spinner": "^16.1.0",
|
|
69
69
|
"@atlaskit/theme": "^12.8.0",
|
|
70
|
-
"@atlaskit/tokens": "^1.
|
|
70
|
+
"@atlaskit/tokens": "^1.48.0",
|
|
71
71
|
"@atlaskit/tooltip": "^18.3.0",
|
|
72
72
|
"@babel/runtime": "^7.0.0",
|
|
73
73
|
"@emotion/react": "^11.7.1",
|