@atlaskit/profilecard 19.11.7 → 19.12.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 +1131 -659
- package/dist/cjs/client/getTeamFromAGG.js +1 -1
- package/dist/cjs/components/Team/TeamProfileCard.js +2 -1
- package/dist/cjs/components/Team/TeamProfileCardTrigger.js +2 -1
- package/dist/cjs/components/User/ProfileCardTrigger.js +2 -1
- package/dist/cjs/components/User/ProfileCardTriggerNext.js +2 -1
- package/dist/cjs/util/analytics.js +1 -1
- package/dist/es2019/client/getTeamFromAGG.js +1 -1
- package/dist/es2019/components/Team/TeamProfileCard.js +2 -1
- package/dist/es2019/components/Team/TeamProfileCardTrigger.js +2 -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/Team/TeamProfileCard.js +2 -1
- package/dist/esm/components/Team/TeamProfileCardTrigger.js +2 -1
- package/dist/esm/components/User/ProfileCardTrigger.js +2 -1
- package/dist/esm/components/User/ProfileCardTriggerNext.js +2 -1
- 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 +11 -11
|
@@ -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.12.0");
|
|
61
61
|
return headers;
|
|
62
62
|
};
|
|
63
63
|
function getTeamFromAGG(_x, _x2, _x3) {
|
|
@@ -188,7 +188,8 @@ var ExtraActions = function ExtraActions(_ref3) {
|
|
|
188
188
|
})
|
|
189
189
|
}));
|
|
190
190
|
},
|
|
191
|
-
zIndex: _constants.layers.modal()
|
|
191
|
+
zIndex: _constants.layers.modal(),
|
|
192
|
+
shouldRenderToParent: true
|
|
192
193
|
}));
|
|
193
194
|
};
|
|
194
195
|
var ButtonSection = function ButtonSection(_ref4) {
|
|
@@ -367,7 +367,8 @@ var TeamProfileCardTriggerInternal = exports.TeamProfileCardTriggerInternal = /*
|
|
|
367
367
|
},
|
|
368
368
|
zIndex: _constants.layers.modal(),
|
|
369
369
|
shouldFlip: true,
|
|
370
|
-
autoFocus: this.props.trigger !== 'hover' && !this.openedByHover
|
|
370
|
+
autoFocus: this.props.trigger !== 'hover' && !this.openedByHover,
|
|
371
|
+
shouldRenderToParent: true
|
|
371
372
|
}));
|
|
372
373
|
}
|
|
373
374
|
}, {
|
|
@@ -294,7 +294,8 @@ var ProfilecardTrigger = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
294
294
|
},
|
|
295
295
|
zIndex: _constants.layers.modal(),
|
|
296
296
|
shouldUseCaptureOnOutsideClick: true,
|
|
297
|
-
autoFocus: this.props.trigger === 'click'
|
|
297
|
+
autoFocus: this.props.trigger === 'click',
|
|
298
|
+
shouldRenderToParent: true
|
|
298
299
|
}), this.state.shouldShowGiveKudos && /*#__PURE__*/_react.default.createElement(_react.Suspense, {
|
|
299
300
|
fallback: null
|
|
300
301
|
}, /*#__PURE__*/_react.default.createElement(_giveKudos.GiveKudosLauncherLazy, {
|
|
@@ -331,7 +331,8 @@ function ProfilecardTriggerNext(_ref) {
|
|
|
331
331
|
},
|
|
332
332
|
zIndex: _constants.layers.modal(),
|
|
333
333
|
shouldUseCaptureOnOutsideClick: true,
|
|
334
|
-
autoFocus: trigger === 'click'
|
|
334
|
+
autoFocus: trigger === 'click',
|
|
335
|
+
shouldRenderToParent: true
|
|
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.
|
|
47
|
+
packageVersion: "19.12.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.12.0");
|
|
71
71
|
return headers;
|
|
72
72
|
};
|
|
73
73
|
export async function getTeamFromAGG(url, teamId, siteId) {
|
|
@@ -322,7 +322,8 @@ 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
|
|
325
|
+
autoFocus: this.props.trigger !== 'hover' && !this.openedByHover,
|
|
326
|
+
shouldRenderToParent: true
|
|
326
327
|
}));
|
|
327
328
|
}
|
|
328
329
|
render() {
|
|
@@ -249,7 +249,8 @@ class ProfilecardTrigger extends React.PureComponent {
|
|
|
249
249
|
},
|
|
250
250
|
zIndex: layers.modal(),
|
|
251
251
|
shouldUseCaptureOnOutsideClick: true,
|
|
252
|
-
autoFocus: this.props.trigger === 'click'
|
|
252
|
+
autoFocus: this.props.trigger === 'click',
|
|
253
|
+
shouldRenderToParent: true
|
|
253
254
|
}), this.state.shouldShowGiveKudos && /*#__PURE__*/React.createElement(Suspense, {
|
|
254
255
|
fallback: null
|
|
255
256
|
}, /*#__PURE__*/React.createElement(GiveKudosLauncherLazy, {
|
|
@@ -259,7 +259,8 @@ export default function ProfilecardTriggerNext({
|
|
|
259
259
|
},
|
|
260
260
|
zIndex: layers.modal(),
|
|
261
261
|
shouldUseCaptureOnOutsideClick: true,
|
|
262
|
-
autoFocus: trigger === 'click'
|
|
262
|
+
autoFocus: trigger === 'click',
|
|
263
|
+
shouldRenderToParent: true
|
|
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.
|
|
34
|
+
packageVersion: "19.12.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.12.0");
|
|
52
52
|
return headers;
|
|
53
53
|
};
|
|
54
54
|
export function getTeamFromAGG(_x, _x2, _x3) {
|
|
@@ -357,7 +357,8 @@ 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
|
|
360
|
+
autoFocus: this.props.trigger !== 'hover' && !this.openedByHover,
|
|
361
|
+
shouldRenderToParent: true
|
|
361
362
|
}));
|
|
362
363
|
}
|
|
363
364
|
}, {
|
|
@@ -284,7 +284,8 @@ var ProfilecardTrigger = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
284
284
|
},
|
|
285
285
|
zIndex: layers.modal(),
|
|
286
286
|
shouldUseCaptureOnOutsideClick: true,
|
|
287
|
-
autoFocus: this.props.trigger === 'click'
|
|
287
|
+
autoFocus: this.props.trigger === 'click',
|
|
288
|
+
shouldRenderToParent: true
|
|
288
289
|
}), this.state.shouldShowGiveKudos && /*#__PURE__*/React.createElement(Suspense, {
|
|
289
290
|
fallback: null
|
|
290
291
|
}, /*#__PURE__*/React.createElement(GiveKudosLauncherLazy, {
|
|
@@ -321,7 +321,8 @@ export default function ProfilecardTriggerNext(_ref) {
|
|
|
321
321
|
},
|
|
322
322
|
zIndex: layers.modal(),
|
|
323
323
|
shouldUseCaptureOnOutsideClick: true,
|
|
324
|
-
autoFocus: trigger === 'click'
|
|
324
|
+
autoFocus: trigger === 'click',
|
|
325
|
+
shouldRenderToParent: true
|
|
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.
|
|
41
|
+
packageVersion: "19.12.0"
|
|
42
42
|
}, attributes), {}, {
|
|
43
43
|
firedAt: Math.round(getPageTime())
|
|
44
44
|
})
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { AnalyticsEventPayload } from '@atlaskit/analytics-next';
|
|
3
|
-
import { TriggerProps } from '@atlaskit/popup/types';
|
|
2
|
+
import { type AnalyticsEventPayload } from '@atlaskit/analytics-next';
|
|
3
|
+
import { type 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 { ProfileCardTriggerProps } from '../../types';
|
|
2
|
+
import { type 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 { AnalyticsEventPayload } from '@atlaskit/analytics-next';
|
|
3
|
-
import { TriggerProps } from '@atlaskit/popup/types';
|
|
2
|
+
import { type AnalyticsEventPayload } from '@atlaskit/analytics-next';
|
|
3
|
+
import { type 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 { ProfileCardTriggerProps } from '../../types';
|
|
2
|
+
import { type 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.12.0",
|
|
4
4
|
"description": "A React component to display a card with user information.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -53,22 +53,22 @@
|
|
|
53
53
|
},
|
|
54
54
|
"dependencies": {
|
|
55
55
|
"@atlaskit/analytics-next": "^9.3.0",
|
|
56
|
-
"@atlaskit/avatar": "^21.
|
|
57
|
-
"@atlaskit/avatar-group": "^9.
|
|
56
|
+
"@atlaskit/avatar": "^21.8.0",
|
|
57
|
+
"@atlaskit/avatar-group": "^9.6.0",
|
|
58
58
|
"@atlaskit/button": "^17.14.0",
|
|
59
|
-
"@atlaskit/dropdown-menu": "^12.
|
|
59
|
+
"@atlaskit/dropdown-menu": "^12.10.0",
|
|
60
60
|
"@atlaskit/empty-state": "^7.8.0",
|
|
61
|
-
"@atlaskit/focus-ring": "^1.
|
|
61
|
+
"@atlaskit/focus-ring": "^1.4.0",
|
|
62
62
|
"@atlaskit/give-kudos": "^2.1.1",
|
|
63
63
|
"@atlaskit/icon": "^22.1.0",
|
|
64
64
|
"@atlaskit/lozenge": "^11.7.0",
|
|
65
|
-
"@atlaskit/menu": "^2.
|
|
65
|
+
"@atlaskit/menu": "^2.2.0",
|
|
66
66
|
"@atlaskit/platform-feature-flags": "^0.2.4",
|
|
67
|
-
"@atlaskit/popup": "^1.
|
|
68
|
-
"@atlaskit/spinner": "^16.
|
|
69
|
-
"@atlaskit/theme": "^12.
|
|
70
|
-
"@atlaskit/tokens": "^1.
|
|
71
|
-
"@atlaskit/tooltip": "^18.
|
|
67
|
+
"@atlaskit/popup": "^1.17.0",
|
|
68
|
+
"@atlaskit/spinner": "^16.1.0",
|
|
69
|
+
"@atlaskit/theme": "^12.8.0",
|
|
70
|
+
"@atlaskit/tokens": "^1.46.0",
|
|
71
|
+
"@atlaskit/tooltip": "^18.3.0",
|
|
72
72
|
"@babel/runtime": "^7.0.0",
|
|
73
73
|
"@emotion/react": "^11.7.1",
|
|
74
74
|
"@emotion/styled": "^11.0.0",
|