@atlaskit/profilecard 19.17.6 → 19.17.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 +8 -0
- package/dist/cjs/client/getTeamFromAGG.js +1 -1
- package/dist/cjs/components/User/ProfileCardTrigger.js +3 -1
- package/dist/cjs/util/analytics.js +1 -1
- package/dist/es2019/client/getTeamFromAGG.js +1 -1
- package/dist/es2019/components/User/ProfileCardTrigger.js +3 -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 -1
- package/dist/esm/util/analytics.js +1 -1
- package/dist/types/components/User/ProfileCardTrigger.d.ts +1 -1
- package/dist/types-ts4.5/components/User/ProfileCardTrigger.d.ts +1 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @atlaskit/profilecard
|
|
2
2
|
|
|
3
|
+
## 19.17.7
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#131947](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/131947)
|
|
8
|
+
[`fb3bce1b8c769`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/fb3bce1b8c769) -
|
|
9
|
+
[ux] Restore usage of offsetprop in ProfileCardTrigger
|
|
10
|
+
|
|
3
11
|
## 19.17.6
|
|
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.17.
|
|
60
|
+
headers.append('atl-client-version', "19.17.7");
|
|
61
61
|
return headers;
|
|
62
62
|
};
|
|
63
63
|
function getTeamFromAGG(_x, _x2, _x3) {
|
|
@@ -51,7 +51,8 @@ function ProfilecardTriggerNext(_ref) {
|
|
|
51
51
|
ariaLabelledBy = _ref.ariaLabelledBy,
|
|
52
52
|
prepopulatedData = _ref.prepopulatedData,
|
|
53
53
|
disabledAriaAttributes = _ref.disabledAriaAttributes,
|
|
54
|
-
onVisibilityChange = _ref.onVisibilityChange
|
|
54
|
+
onVisibilityChange = _ref.onVisibilityChange,
|
|
55
|
+
offset = _ref.offset;
|
|
55
56
|
var _useAnalyticsEvents = (0, _analyticsNext.useAnalyticsEvents)(),
|
|
56
57
|
createAnalyticsEvent = _useAnalyticsEvents.createAnalyticsEvent;
|
|
57
58
|
var _useIntl = (0, _reactIntlNext.useIntl)(),
|
|
@@ -292,6 +293,7 @@ function ProfilecardTriggerNext(_ref) {
|
|
|
292
293
|
handleKeyboardClose(event);
|
|
293
294
|
},
|
|
294
295
|
placement: position,
|
|
296
|
+
offset: offset !== null && offset !== void 0 ? offset : [0, 8],
|
|
295
297
|
content: function content() {
|
|
296
298
|
return /*#__PURE__*/_react.default.createElement("div", wrapperProps, showLoading ? /*#__PURE__*/_react.default.createElement(LoadingView, {
|
|
297
299
|
fireAnalytics: fireAnalytics
|
|
@@ -45,7 +45,7 @@ var createEvent = function createEvent(eventType, action, actionSubject, actionS
|
|
|
45
45
|
actionSubjectId: actionSubjectId,
|
|
46
46
|
attributes: _objectSpread(_objectSpread({
|
|
47
47
|
packageName: "@atlaskit/profilecard",
|
|
48
|
-
packageVersion: "19.17.
|
|
48
|
+
packageVersion: "19.17.7"
|
|
49
49
|
}, attributes), {}, {
|
|
50
50
|
firedAt: Math.round((0, _performance.getPageTime)())
|
|
51
51
|
})
|
|
@@ -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.17.
|
|
70
|
+
headers.append('atl-client-version', "19.17.7");
|
|
71
71
|
return headers;
|
|
72
72
|
};
|
|
73
73
|
export async function getTeamFromAGG(url, teamId, siteId) {
|
|
@@ -28,7 +28,8 @@ export default function ProfilecardTriggerNext({
|
|
|
28
28
|
ariaLabelledBy,
|
|
29
29
|
prepopulatedData,
|
|
30
30
|
disabledAriaAttributes,
|
|
31
|
-
onVisibilityChange
|
|
31
|
+
onVisibilityChange,
|
|
32
|
+
offset
|
|
32
33
|
}) {
|
|
33
34
|
const {
|
|
34
35
|
createAnalyticsEvent
|
|
@@ -221,6 +222,7 @@ export default function ProfilecardTriggerNext({
|
|
|
221
222
|
handleKeyboardClose(event);
|
|
222
223
|
},
|
|
223
224
|
placement: position,
|
|
225
|
+
offset: offset !== null && offset !== void 0 ? offset : [0, 8],
|
|
224
226
|
content: () => /*#__PURE__*/React.createElement("div", wrapperProps, showLoading ? /*#__PURE__*/React.createElement(LoadingView, {
|
|
225
227
|
fireAnalytics: fireAnalytics
|
|
226
228
|
}) : visible && /*#__PURE__*/React.createElement(Suspense, {
|
|
@@ -32,7 +32,7 @@ const createEvent = (eventType, action, actionSubject, actionSubjectId, attribut
|
|
|
32
32
|
actionSubjectId,
|
|
33
33
|
attributes: {
|
|
34
34
|
packageName: "@atlaskit/profilecard",
|
|
35
|
-
packageVersion: "19.17.
|
|
35
|
+
packageVersion: "19.17.7",
|
|
36
36
|
...attributes,
|
|
37
37
|
firedAt: Math.round(getPageTime())
|
|
38
38
|
}
|
|
@@ -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.17.
|
|
51
|
+
headers.append('atl-client-version', "19.17.7");
|
|
52
52
|
return headers;
|
|
53
53
|
};
|
|
54
54
|
export function getTeamFromAGG(_x, _x2, _x3) {
|
|
@@ -41,7 +41,8 @@ export default function ProfilecardTriggerNext(_ref) {
|
|
|
41
41
|
ariaLabelledBy = _ref.ariaLabelledBy,
|
|
42
42
|
prepopulatedData = _ref.prepopulatedData,
|
|
43
43
|
disabledAriaAttributes = _ref.disabledAriaAttributes,
|
|
44
|
-
onVisibilityChange = _ref.onVisibilityChange
|
|
44
|
+
onVisibilityChange = _ref.onVisibilityChange,
|
|
45
|
+
offset = _ref.offset;
|
|
45
46
|
var _useAnalyticsEvents = useAnalyticsEvents(),
|
|
46
47
|
createAnalyticsEvent = _useAnalyticsEvents.createAnalyticsEvent;
|
|
47
48
|
var _useIntl = useIntl(),
|
|
@@ -282,6 +283,7 @@ export default function ProfilecardTriggerNext(_ref) {
|
|
|
282
283
|
handleKeyboardClose(event);
|
|
283
284
|
},
|
|
284
285
|
placement: position,
|
|
286
|
+
offset: offset !== null && offset !== void 0 ? offset : [0, 8],
|
|
285
287
|
content: function content() {
|
|
286
288
|
return /*#__PURE__*/React.createElement("div", wrapperProps, showLoading ? /*#__PURE__*/React.createElement(LoadingView, {
|
|
287
289
|
fireAnalytics: fireAnalytics
|
|
@@ -39,7 +39,7 @@ var createEvent = function createEvent(eventType, action, actionSubject, actionS
|
|
|
39
39
|
actionSubjectId: actionSubjectId,
|
|
40
40
|
attributes: _objectSpread(_objectSpread({
|
|
41
41
|
packageName: "@atlaskit/profilecard",
|
|
42
|
-
packageVersion: "19.17.
|
|
42
|
+
packageVersion: "19.17.7"
|
|
43
43
|
}, attributes), {}, {
|
|
44
44
|
firedAt: Math.round(getPageTime())
|
|
45
45
|
})
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { type ProfileCardTriggerProps } from '../../types';
|
|
3
|
-
export default function ProfilecardTriggerNext({ autoFocus, 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, offset, }: ProfileCardTriggerProps): JSX.Element;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { type ProfileCardTriggerProps } from '../../types';
|
|
3
|
-
export default function ProfilecardTriggerNext({ autoFocus, 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, offset, }: ProfileCardTriggerProps): JSX.Element;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/profilecard",
|
|
3
|
-
"version": "19.17.
|
|
3
|
+
"version": "19.17.7",
|
|
4
4
|
"description": "A React component to display a card with user information.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
"@atlaskit/atlassian-context": "^0.0.0",
|
|
57
57
|
"@atlaskit/avatar": "^21.15.0",
|
|
58
58
|
"@atlaskit/avatar-group": "^9.11.0",
|
|
59
|
-
"@atlaskit/button": "^20.
|
|
59
|
+
"@atlaskit/button": "^20.1.0",
|
|
60
60
|
"@atlaskit/dropdown-menu": "^12.17.0",
|
|
61
61
|
"@atlaskit/empty-state": "^7.11.0",
|
|
62
62
|
"@atlaskit/focus-ring": "^1.6.0",
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
"@atlaskit/rovo-agent-components": "0.4.0",
|
|
71
71
|
"@atlaskit/spinner": "^16.3.0",
|
|
72
72
|
"@atlaskit/theme": "^13.0.0",
|
|
73
|
-
"@atlaskit/tokens": "^1.
|
|
73
|
+
"@atlaskit/tokens": "^1.59.0",
|
|
74
74
|
"@atlaskit/tooltip": "^18.7.0",
|
|
75
75
|
"@babel/runtime": "^7.0.0",
|
|
76
76
|
"@emotion/react": "^11.7.1",
|