@atlaskit/profilecard 16.3.1 → 16.4.2
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 +19 -0
- package/dist/cjs/components/Team/TeamProfileCardTrigger.js +1 -1
- package/dist/cjs/i18n/en.js +27 -17
- package/dist/cjs/i18n/en_GB.js +27 -17
- package/dist/cjs/util/analytics.js +32 -7
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/components/Team/TeamProfileCardTrigger.js +2 -2
- package/dist/es2019/i18n/en.js +27 -17
- package/dist/es2019/i18n/en_GB.js +27 -17
- package/dist/es2019/util/analytics.js +28 -4
- package/dist/es2019/version.json +1 -1
- package/dist/esm/components/Team/TeamProfileCardTrigger.js +2 -2
- package/dist/esm/i18n/en.js +27 -17
- package/dist/esm/i18n/en_GB.js +27 -17
- package/dist/esm/util/analytics.js +30 -4
- package/dist/esm/version.json +1 -1
- package/dist/types/i18n/en.d.ts +25 -15
- package/dist/types/i18n/en_GB.d.ts +25 -15
- package/dist/types/util/analytics.d.ts +11 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,24 @@
|
|
|
1
1
|
# @atlaskit/profilecard
|
|
2
2
|
|
|
3
|
+
## 16.4.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 16.4.1
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [`ac9343c3ed4`](https://bitbucket.org/atlassian/atlassian-frontend/commits/ac9343c3ed4) - Replaces usage of deprecated design tokens. No visual or functional changes
|
|
14
|
+
- Updated dependencies
|
|
15
|
+
|
|
16
|
+
## 16.4.0
|
|
17
|
+
|
|
18
|
+
### Minor Changes
|
|
19
|
+
|
|
20
|
+
- [`4c94bc2d6c4`](https://bitbucket.org/atlassian/atlassian-frontend/commits/4c94bc2d6c4) - Update profilecard to use analytics from teams common
|
|
21
|
+
|
|
3
22
|
## 16.3.1
|
|
4
23
|
|
|
5
24
|
### Patch Changes
|
|
@@ -84,7 +84,7 @@ var TeamProfileCardTriggerInternal = /*#__PURE__*/function (_React$PureComponent
|
|
|
84
84
|
}
|
|
85
85
|
|
|
86
86
|
if (_this.props.createAnalyticsEvent) {
|
|
87
|
-
(0, _analytics.
|
|
87
|
+
(0, _analytics.fireEvent)(_this.props.createAnalyticsEvent, payload);
|
|
88
88
|
}
|
|
89
89
|
});
|
|
90
90
|
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "fireAnalyticsWithDuration", function (generator) {
|
package/dist/cjs/i18n/en.js
CHANGED
|
@@ -8,28 +8,38 @@ exports.default = void 0;
|
|
|
8
8
|
/**
|
|
9
9
|
* NOTE:
|
|
10
10
|
*
|
|
11
|
-
* This file is automatically generated by
|
|
11
|
+
* This file is automatically generated by Traduki 2.0.
|
|
12
12
|
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
13
13
|
*/
|
|
14
|
-
//
|
|
14
|
+
//
|
|
15
15
|
var _default = {
|
|
16
|
-
'pt.profile-card.inactive.account': 'Account deactivated',
|
|
17
|
-
'pt.profile-card.general.msg.disabled.user': 'You can no longer collaborate with this person.',
|
|
18
|
-
'pt.profile-card.inactive.account.no.date': 'Their account has been deactivated.',
|
|
19
|
-
'pt.profile-card.inactive.account.has.date.this.week': 'Their account was deactivated this week.',
|
|
20
|
-
'pt.profile-card.inactive.account.has.date.this.month': 'Their account was deactivated this month.',
|
|
21
|
-
'pt.profile-card.inactive.account.has.date.last.month': 'Their account was deactivated last month.',
|
|
22
|
-
'pt.profile-card.inactive.account.has.date.a.few.months': 'Their account has been deactivated for a few months.',
|
|
23
|
-
'pt.profile-card.inactive.account.has.date.several.months': 'Their account has been deactivated for several months.',
|
|
24
|
-
'pt.profile-card.inactive.account.has.date.more.than.a.year': 'Their account has been deactivated for more than a year.',
|
|
25
16
|
'pt.profile-card.closed.account': 'Account deleted',
|
|
26
|
-
'pt.profile-card.closed.account.no.date': 'Their account has been deleted.',
|
|
27
|
-
'pt.profile-card.closed.account.has.date.this.week': 'Their account was deleted this week.',
|
|
28
|
-
'pt.profile-card.closed.account.has.date.this.month': 'Their account was deleted this month.',
|
|
29
|
-
'pt.profile-card.closed.account.has.date.last.month': 'Their account was deleted last month.',
|
|
30
17
|
'pt.profile-card.closed.account.has.date.a.few.months': 'Their account has been deleted for a few months.',
|
|
31
|
-
'pt.profile-card.closed.account.has.date.
|
|
18
|
+
'pt.profile-card.closed.account.has.date.last.month': 'Their account was deleted last month.',
|
|
32
19
|
'pt.profile-card.closed.account.has.date.more.than.a.year': 'Their account has been deleted for more than a year.',
|
|
33
|
-
'pt.profile-card.
|
|
20
|
+
'pt.profile-card.closed.account.has.date.several.months': 'Their account has been deleted for several months.',
|
|
21
|
+
'pt.profile-card.closed.account.has.date.this.month': 'Their account was deleted this month.',
|
|
22
|
+
'pt.profile-card.closed.account.has.date.this.week': 'Their account was deleted this week.',
|
|
23
|
+
'pt.profile-card.closed.account.no.date': 'Their account has been deleted.',
|
|
24
|
+
'pt.profile-card.disabled.account.default.name': 'Former user',
|
|
25
|
+
'pt.profile-card.general.msg.disabled.user': 'You can no longer collaborate with this person.',
|
|
26
|
+
'pt.profile-card.inactive.account': 'Account deactivated',
|
|
27
|
+
'pt.profile-card.inactive.account.has.date.a.few.months': 'Their account has been deactivated for a few months.',
|
|
28
|
+
'pt.profile-card.inactive.account.has.date.last.month': 'Their account was deactivated last month.',
|
|
29
|
+
'pt.profile-card.inactive.account.has.date.more.than.a.year': 'Their account has been deactivated for more than a year.',
|
|
30
|
+
'pt.profile-card.inactive.account.has.date.several.months': 'Their account has been deactivated for several months.',
|
|
31
|
+
'pt.profile-card.inactive.account.has.date.this.month': 'Their account was deactivated this month.',
|
|
32
|
+
'pt.profile-card.inactive.account.has.date.this.week': 'Their account was deactivated this week.',
|
|
33
|
+
'pt.profile-card.inactive.account.no.date': 'Their account has been deactivated.',
|
|
34
|
+
'pt.team-profile-card.directReports.heading': 'Direct reports',
|
|
35
|
+
'pt.team-profile-card.error.refresh-button': 'Try again',
|
|
36
|
+
'pt.team-profile-card.error.suggestion': 'Wait a few moments, then try again.',
|
|
37
|
+
'pt.team-profile-card.error.title': 'We’re having trouble retrieving this teams information',
|
|
38
|
+
'pt.team-profile-card.manager.heading': 'Manager',
|
|
39
|
+
'pt.team-profile-card.team.action.view-profile': 'View profile',
|
|
40
|
+
'pt.team-profile-card.team.member.count': 'Team • {count} {count, plural, one {member} other {members}}',
|
|
41
|
+
'pt.team-profile-card.team.member.count-including-you': 'Team • {count} {count, plural, one {member} other {members}}, including you',
|
|
42
|
+
'pt.team-profile-card.team.member.many': 'Team • 50+ members',
|
|
43
|
+
'pt.team-profile-card.team.member.many-including-you': 'Team • 50+ members, including you'
|
|
34
44
|
};
|
|
35
45
|
exports.default = _default;
|
package/dist/cjs/i18n/en_GB.js
CHANGED
|
@@ -8,28 +8,38 @@ exports.default = void 0;
|
|
|
8
8
|
/**
|
|
9
9
|
* NOTE:
|
|
10
10
|
*
|
|
11
|
-
* This file is automatically generated by
|
|
11
|
+
* This file is automatically generated by Traduki 2.0.
|
|
12
12
|
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
13
13
|
*/
|
|
14
|
-
//
|
|
14
|
+
//English (United Kingdom)
|
|
15
15
|
var _default = {
|
|
16
|
-
'pt.profile-card.inactive.account': 'Account deactivated',
|
|
17
|
-
'pt.profile-card.general.msg.disabled.user': 'You can no longer collaborate with this person.',
|
|
18
|
-
'pt.profile-card.inactive.account.no.date': 'Their account has been deactivated.',
|
|
19
|
-
'pt.profile-card.inactive.account.has.date.this.week': 'Their account was deactivated this week.',
|
|
20
|
-
'pt.profile-card.inactive.account.has.date.this.month': 'Their account was deactivated this month.',
|
|
21
|
-
'pt.profile-card.inactive.account.has.date.last.month': 'Their account was deactivated last month.',
|
|
22
|
-
'pt.profile-card.inactive.account.has.date.a.few.months': 'Their account has been deactivated for a few months.',
|
|
23
|
-
'pt.profile-card.inactive.account.has.date.several.months': 'Their account has been deactivated for several months.',
|
|
24
|
-
'pt.profile-card.inactive.account.has.date.more.than.a.year': 'Their account has been deactivated for more than a year.',
|
|
25
16
|
'pt.profile-card.closed.account': 'Account deleted',
|
|
26
|
-
'pt.profile-card.closed.account.no.date': 'Their account has been deleted.',
|
|
27
|
-
'pt.profile-card.closed.account.has.date.this.week': 'Their account was deleted this week.',
|
|
28
|
-
'pt.profile-card.closed.account.has.date.this.month': 'Their account was deleted this month.',
|
|
29
|
-
'pt.profile-card.closed.account.has.date.last.month': 'Their account was deleted last month.',
|
|
30
17
|
'pt.profile-card.closed.account.has.date.a.few.months': 'Their account has been deleted for a few months.',
|
|
31
|
-
'pt.profile-card.closed.account.has.date.
|
|
18
|
+
'pt.profile-card.closed.account.has.date.last.month': 'Their account was deleted last month.',
|
|
32
19
|
'pt.profile-card.closed.account.has.date.more.than.a.year': 'Their account has been deleted for more than a year.',
|
|
33
|
-
'pt.profile-card.
|
|
20
|
+
'pt.profile-card.closed.account.has.date.several.months': 'Their account has been deleted for several months.',
|
|
21
|
+
'pt.profile-card.closed.account.has.date.this.month': 'Their account was deleted this month.',
|
|
22
|
+
'pt.profile-card.closed.account.has.date.this.week': 'Their account was deleted this week.',
|
|
23
|
+
'pt.profile-card.closed.account.no.date': 'Their account has been deleted.',
|
|
24
|
+
'pt.profile-card.disabled.account.default.name': 'Former user',
|
|
25
|
+
'pt.profile-card.general.msg.disabled.user': 'You can no longer collaborate with this person.',
|
|
26
|
+
'pt.profile-card.inactive.account': 'Account deactivated',
|
|
27
|
+
'pt.profile-card.inactive.account.has.date.a.few.months': 'Their account has been deactivated for a few months.',
|
|
28
|
+
'pt.profile-card.inactive.account.has.date.last.month': 'Their account was deactivated last month.',
|
|
29
|
+
'pt.profile-card.inactive.account.has.date.more.than.a.year': 'Their account has been deactivated for more than a year.',
|
|
30
|
+
'pt.profile-card.inactive.account.has.date.several.months': 'Their account has been deactivated for several months.',
|
|
31
|
+
'pt.profile-card.inactive.account.has.date.this.month': 'Their account was deactivated this month.',
|
|
32
|
+
'pt.profile-card.inactive.account.has.date.this.week': 'Their account was deactivated this week.',
|
|
33
|
+
'pt.profile-card.inactive.account.no.date': 'Their account has been deactivated.',
|
|
34
|
+
'pt.team-profile-card.directReports.heading': 'Direct reports',
|
|
35
|
+
'pt.team-profile-card.error.refresh-button': 'Try again',
|
|
36
|
+
'pt.team-profile-card.error.suggestion': 'Wait a few moments, then try again.',
|
|
37
|
+
'pt.team-profile-card.error.title': 'We’re having trouble retrieving this teams information',
|
|
38
|
+
'pt.team-profile-card.manager.heading': 'Manager',
|
|
39
|
+
'pt.team-profile-card.team.action.view-profile': 'View profile',
|
|
40
|
+
'pt.team-profile-card.team.member.count': 'Team • {count} {count, plural, one {member} other {members}}',
|
|
41
|
+
'pt.team-profile-card.team.member.count-including-you': 'Team • {count} {count, plural, one {member} other {members}}, including you',
|
|
42
|
+
'pt.team-profile-card.team.member.many': 'Team • 50+ members',
|
|
43
|
+
'pt.team-profile-card.team.member.many-including-you': 'Team • 50+ members, including you'
|
|
34
44
|
};
|
|
35
45
|
exports.default = _default;
|
|
@@ -5,21 +5,46 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
|
-
exports.teamRequestAnalytics = exports.teamProfileCardRendered = exports.teamCardTriggered = exports.teamAvatarClicked = exports.teamActionClicked = exports.moreMembersClicked = exports.moreActionsClicked = exports.
|
|
8
|
+
exports.teamRequestAnalytics = exports.teamProfileCardRendered = exports.teamCardTriggered = exports.teamAvatarClicked = exports.teamActionClicked = exports.moreMembersClicked = exports.moreActionsClicked = exports.fireEvent = exports.errorRetryClicked = void 0;
|
|
9
9
|
|
|
10
10
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
11
11
|
|
|
12
|
-
var _analyticsNext = require("@atlaskit/analytics-next");
|
|
13
|
-
|
|
14
12
|
var _performance = require("./performance");
|
|
15
13
|
|
|
16
14
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
17
15
|
|
|
18
16
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
19
17
|
|
|
20
|
-
|
|
21
|
-
var
|
|
22
|
-
|
|
18
|
+
/** Below lines are copied from teams common analytics */
|
|
19
|
+
var ANALYTICS_CHANNEL = 'peopleTeams';
|
|
20
|
+
|
|
21
|
+
var runItLater = function runItLater(cb) {
|
|
22
|
+
if (window.requestIdleCallback === 'function') {
|
|
23
|
+
return window.requestIdleCallback(cb);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
if (typeof window.requestAnimationFrame === 'function') {
|
|
27
|
+
return window.requestAnimationFrame(cb);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
return function () {
|
|
31
|
+
return setTimeout(cb);
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
var fireEvent = function fireEvent(createAnalyticsEvent, body) {
|
|
36
|
+
if (!createAnalyticsEvent) {
|
|
37
|
+
return;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
runItLater(function () {
|
|
41
|
+
createAnalyticsEvent(body).fire(ANALYTICS_CHANNEL);
|
|
42
|
+
});
|
|
43
|
+
};
|
|
44
|
+
/** Above lines are copied from teams common analytics */
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
exports.fireEvent = fireEvent;
|
|
23
48
|
var TEAM_SUBJECT = 'teamProfileCard';
|
|
24
49
|
|
|
25
50
|
var createEvent = function createEvent(eventType, action, actionSubject, actionSubjectId) {
|
|
@@ -31,7 +56,7 @@ var createEvent = function createEvent(eventType, action, actionSubject, actionS
|
|
|
31
56
|
actionSubjectId: actionSubjectId,
|
|
32
57
|
attributes: _objectSpread(_objectSpread({
|
|
33
58
|
packageName: "@atlaskit/profilecard",
|
|
34
|
-
packageVersion: "16.
|
|
59
|
+
packageVersion: "16.4.2"
|
|
35
60
|
}, attributes), {}, {
|
|
36
61
|
firedAt: (0, _performance.getPageTime)()
|
|
37
62
|
})
|
package/dist/cjs/version.json
CHANGED
|
@@ -5,7 +5,7 @@ import { withAnalyticsEvents } from '@atlaskit/analytics-next';
|
|
|
5
5
|
import Popup from '@atlaskit/popup';
|
|
6
6
|
import { layers } from '@atlaskit/theme/constants';
|
|
7
7
|
import filterActions from '../../internal/filterActions';
|
|
8
|
-
import {
|
|
8
|
+
import { fireEvent, teamCardTriggered, teamProfileCardRendered } from '../../util/analytics';
|
|
9
9
|
import { isBasicClick } from '../../util/click';
|
|
10
10
|
import { DELAY_MS_HIDE, DELAY_MS_SHOW } from '../../util/config';
|
|
11
11
|
import { getPageTime } from '../../util/performance';
|
|
@@ -33,7 +33,7 @@ export class TeamProfileCardTriggerInternal extends React.PureComponent {
|
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
if (this.props.createAnalyticsEvent) {
|
|
36
|
-
|
|
36
|
+
fireEvent(this.props.createAnalyticsEvent, payload);
|
|
37
37
|
}
|
|
38
38
|
});
|
|
39
39
|
|
package/dist/es2019/i18n/en.js
CHANGED
|
@@ -1,27 +1,37 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* NOTE:
|
|
3
3
|
*
|
|
4
|
-
* This file is automatically generated by
|
|
4
|
+
* This file is automatically generated by Traduki 2.0.
|
|
5
5
|
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
6
6
|
*/
|
|
7
|
-
//
|
|
7
|
+
//
|
|
8
8
|
export default {
|
|
9
|
-
'pt.profile-card.inactive.account': 'Account deactivated',
|
|
10
|
-
'pt.profile-card.general.msg.disabled.user': 'You can no longer collaborate with this person.',
|
|
11
|
-
'pt.profile-card.inactive.account.no.date': 'Their account has been deactivated.',
|
|
12
|
-
'pt.profile-card.inactive.account.has.date.this.week': 'Their account was deactivated this week.',
|
|
13
|
-
'pt.profile-card.inactive.account.has.date.this.month': 'Their account was deactivated this month.',
|
|
14
|
-
'pt.profile-card.inactive.account.has.date.last.month': 'Their account was deactivated last month.',
|
|
15
|
-
'pt.profile-card.inactive.account.has.date.a.few.months': 'Their account has been deactivated for a few months.',
|
|
16
|
-
'pt.profile-card.inactive.account.has.date.several.months': 'Their account has been deactivated for several months.',
|
|
17
|
-
'pt.profile-card.inactive.account.has.date.more.than.a.year': 'Their account has been deactivated for more than a year.',
|
|
18
9
|
'pt.profile-card.closed.account': 'Account deleted',
|
|
19
|
-
'pt.profile-card.closed.account.no.date': 'Their account has been deleted.',
|
|
20
|
-
'pt.profile-card.closed.account.has.date.this.week': 'Their account was deleted this week.',
|
|
21
|
-
'pt.profile-card.closed.account.has.date.this.month': 'Their account was deleted this month.',
|
|
22
|
-
'pt.profile-card.closed.account.has.date.last.month': 'Their account was deleted last month.',
|
|
23
10
|
'pt.profile-card.closed.account.has.date.a.few.months': 'Their account has been deleted for a few months.',
|
|
24
|
-
'pt.profile-card.closed.account.has.date.
|
|
11
|
+
'pt.profile-card.closed.account.has.date.last.month': 'Their account was deleted last month.',
|
|
25
12
|
'pt.profile-card.closed.account.has.date.more.than.a.year': 'Their account has been deleted for more than a year.',
|
|
26
|
-
'pt.profile-card.
|
|
13
|
+
'pt.profile-card.closed.account.has.date.several.months': 'Their account has been deleted for several months.',
|
|
14
|
+
'pt.profile-card.closed.account.has.date.this.month': 'Their account was deleted this month.',
|
|
15
|
+
'pt.profile-card.closed.account.has.date.this.week': 'Their account was deleted this week.',
|
|
16
|
+
'pt.profile-card.closed.account.no.date': 'Their account has been deleted.',
|
|
17
|
+
'pt.profile-card.disabled.account.default.name': 'Former user',
|
|
18
|
+
'pt.profile-card.general.msg.disabled.user': 'You can no longer collaborate with this person.',
|
|
19
|
+
'pt.profile-card.inactive.account': 'Account deactivated',
|
|
20
|
+
'pt.profile-card.inactive.account.has.date.a.few.months': 'Their account has been deactivated for a few months.',
|
|
21
|
+
'pt.profile-card.inactive.account.has.date.last.month': 'Their account was deactivated last month.',
|
|
22
|
+
'pt.profile-card.inactive.account.has.date.more.than.a.year': 'Their account has been deactivated for more than a year.',
|
|
23
|
+
'pt.profile-card.inactive.account.has.date.several.months': 'Their account has been deactivated for several months.',
|
|
24
|
+
'pt.profile-card.inactive.account.has.date.this.month': 'Their account was deactivated this month.',
|
|
25
|
+
'pt.profile-card.inactive.account.has.date.this.week': 'Their account was deactivated this week.',
|
|
26
|
+
'pt.profile-card.inactive.account.no.date': 'Their account has been deactivated.',
|
|
27
|
+
'pt.team-profile-card.directReports.heading': 'Direct reports',
|
|
28
|
+
'pt.team-profile-card.error.refresh-button': 'Try again',
|
|
29
|
+
'pt.team-profile-card.error.suggestion': 'Wait a few moments, then try again.',
|
|
30
|
+
'pt.team-profile-card.error.title': 'We’re having trouble retrieving this teams information',
|
|
31
|
+
'pt.team-profile-card.manager.heading': 'Manager',
|
|
32
|
+
'pt.team-profile-card.team.action.view-profile': 'View profile',
|
|
33
|
+
'pt.team-profile-card.team.member.count': 'Team • {count} {count, plural, one {member} other {members}}',
|
|
34
|
+
'pt.team-profile-card.team.member.count-including-you': 'Team • {count} {count, plural, one {member} other {members}}, including you',
|
|
35
|
+
'pt.team-profile-card.team.member.many': 'Team • 50+ members',
|
|
36
|
+
'pt.team-profile-card.team.member.many-including-you': 'Team • 50+ members, including you'
|
|
27
37
|
};
|
|
@@ -1,27 +1,37 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* NOTE:
|
|
3
3
|
*
|
|
4
|
-
* This file is automatically generated by
|
|
4
|
+
* This file is automatically generated by Traduki 2.0.
|
|
5
5
|
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
6
6
|
*/
|
|
7
|
-
//
|
|
7
|
+
//English (United Kingdom)
|
|
8
8
|
export default {
|
|
9
|
-
'pt.profile-card.inactive.account': 'Account deactivated',
|
|
10
|
-
'pt.profile-card.general.msg.disabled.user': 'You can no longer collaborate with this person.',
|
|
11
|
-
'pt.profile-card.inactive.account.no.date': 'Their account has been deactivated.',
|
|
12
|
-
'pt.profile-card.inactive.account.has.date.this.week': 'Their account was deactivated this week.',
|
|
13
|
-
'pt.profile-card.inactive.account.has.date.this.month': 'Their account was deactivated this month.',
|
|
14
|
-
'pt.profile-card.inactive.account.has.date.last.month': 'Their account was deactivated last month.',
|
|
15
|
-
'pt.profile-card.inactive.account.has.date.a.few.months': 'Their account has been deactivated for a few months.',
|
|
16
|
-
'pt.profile-card.inactive.account.has.date.several.months': 'Their account has been deactivated for several months.',
|
|
17
|
-
'pt.profile-card.inactive.account.has.date.more.than.a.year': 'Their account has been deactivated for more than a year.',
|
|
18
9
|
'pt.profile-card.closed.account': 'Account deleted',
|
|
19
|
-
'pt.profile-card.closed.account.no.date': 'Their account has been deleted.',
|
|
20
|
-
'pt.profile-card.closed.account.has.date.this.week': 'Their account was deleted this week.',
|
|
21
|
-
'pt.profile-card.closed.account.has.date.this.month': 'Their account was deleted this month.',
|
|
22
|
-
'pt.profile-card.closed.account.has.date.last.month': 'Their account was deleted last month.',
|
|
23
10
|
'pt.profile-card.closed.account.has.date.a.few.months': 'Their account has been deleted for a few months.',
|
|
24
|
-
'pt.profile-card.closed.account.has.date.
|
|
11
|
+
'pt.profile-card.closed.account.has.date.last.month': 'Their account was deleted last month.',
|
|
25
12
|
'pt.profile-card.closed.account.has.date.more.than.a.year': 'Their account has been deleted for more than a year.',
|
|
26
|
-
'pt.profile-card.
|
|
13
|
+
'pt.profile-card.closed.account.has.date.several.months': 'Their account has been deleted for several months.',
|
|
14
|
+
'pt.profile-card.closed.account.has.date.this.month': 'Their account was deleted this month.',
|
|
15
|
+
'pt.profile-card.closed.account.has.date.this.week': 'Their account was deleted this week.',
|
|
16
|
+
'pt.profile-card.closed.account.no.date': 'Their account has been deleted.',
|
|
17
|
+
'pt.profile-card.disabled.account.default.name': 'Former user',
|
|
18
|
+
'pt.profile-card.general.msg.disabled.user': 'You can no longer collaborate with this person.',
|
|
19
|
+
'pt.profile-card.inactive.account': 'Account deactivated',
|
|
20
|
+
'pt.profile-card.inactive.account.has.date.a.few.months': 'Their account has been deactivated for a few months.',
|
|
21
|
+
'pt.profile-card.inactive.account.has.date.last.month': 'Their account was deactivated last month.',
|
|
22
|
+
'pt.profile-card.inactive.account.has.date.more.than.a.year': 'Their account has been deactivated for more than a year.',
|
|
23
|
+
'pt.profile-card.inactive.account.has.date.several.months': 'Their account has been deactivated for several months.',
|
|
24
|
+
'pt.profile-card.inactive.account.has.date.this.month': 'Their account was deactivated this month.',
|
|
25
|
+
'pt.profile-card.inactive.account.has.date.this.week': 'Their account was deactivated this week.',
|
|
26
|
+
'pt.profile-card.inactive.account.no.date': 'Their account has been deactivated.',
|
|
27
|
+
'pt.team-profile-card.directReports.heading': 'Direct reports',
|
|
28
|
+
'pt.team-profile-card.error.refresh-button': 'Try again',
|
|
29
|
+
'pt.team-profile-card.error.suggestion': 'Wait a few moments, then try again.',
|
|
30
|
+
'pt.team-profile-card.error.title': 'We’re having trouble retrieving this teams information',
|
|
31
|
+
'pt.team-profile-card.manager.heading': 'Manager',
|
|
32
|
+
'pt.team-profile-card.team.action.view-profile': 'View profile',
|
|
33
|
+
'pt.team-profile-card.team.member.count': 'Team • {count} {count, plural, one {member} other {members}}',
|
|
34
|
+
'pt.team-profile-card.team.member.count-including-you': 'Team • {count} {count, plural, one {member} other {members}}, including you',
|
|
35
|
+
'pt.team-profile-card.team.member.many': 'Team • 50+ members',
|
|
36
|
+
'pt.team-profile-card.team.member.many-including-you': 'Team • 50+ members, including you'
|
|
27
37
|
};
|
|
@@ -1,7 +1,31 @@
|
|
|
1
|
-
import { createAndFireEvent } from '@atlaskit/analytics-next';
|
|
2
1
|
import { getPageTime } from './performance';
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
/** Below lines are copied from teams common analytics */
|
|
3
|
+
|
|
4
|
+
const ANALYTICS_CHANNEL = 'peopleTeams';
|
|
5
|
+
|
|
6
|
+
const runItLater = cb => {
|
|
7
|
+
if (window.requestIdleCallback === 'function') {
|
|
8
|
+
return window.requestIdleCallback(cb);
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
if (typeof window.requestAnimationFrame === 'function') {
|
|
12
|
+
return window.requestAnimationFrame(cb);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
return () => setTimeout(cb);
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
export const fireEvent = (createAnalyticsEvent, body) => {
|
|
19
|
+
if (!createAnalyticsEvent) {
|
|
20
|
+
return;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
runItLater(() => {
|
|
24
|
+
createAnalyticsEvent(body).fire(ANALYTICS_CHANNEL);
|
|
25
|
+
});
|
|
26
|
+
};
|
|
27
|
+
/** Above lines are copied from teams common analytics */
|
|
28
|
+
|
|
5
29
|
const TEAM_SUBJECT = 'teamProfileCard';
|
|
6
30
|
|
|
7
31
|
const createEvent = (eventType, action, actionSubject, actionSubjectId, attributes = {}) => ({
|
|
@@ -11,7 +35,7 @@ const createEvent = (eventType, action, actionSubject, actionSubjectId, attribut
|
|
|
11
35
|
actionSubjectId,
|
|
12
36
|
attributes: {
|
|
13
37
|
packageName: "@atlaskit/profilecard",
|
|
14
|
-
packageVersion: "16.
|
|
38
|
+
packageVersion: "16.4.2",
|
|
15
39
|
...attributes,
|
|
16
40
|
firedAt: getPageTime()
|
|
17
41
|
}
|
package/dist/es2019/version.json
CHANGED
|
@@ -16,7 +16,7 @@ import { withAnalyticsEvents } from '@atlaskit/analytics-next';
|
|
|
16
16
|
import Popup from '@atlaskit/popup';
|
|
17
17
|
import { layers } from '@atlaskit/theme/constants';
|
|
18
18
|
import _filterActions from '../../internal/filterActions';
|
|
19
|
-
import {
|
|
19
|
+
import { fireEvent, teamCardTriggered, teamProfileCardRendered } from '../../util/analytics';
|
|
20
20
|
import { isBasicClick } from '../../util/click';
|
|
21
21
|
import { DELAY_MS_HIDE, DELAY_MS_SHOW } from '../../util/config';
|
|
22
22
|
import { getPageTime } from '../../util/performance';
|
|
@@ -56,7 +56,7 @@ export var TeamProfileCardTriggerInternal = /*#__PURE__*/function (_React$PureCo
|
|
|
56
56
|
}
|
|
57
57
|
|
|
58
58
|
if (_this.props.createAnalyticsEvent) {
|
|
59
|
-
|
|
59
|
+
fireEvent(_this.props.createAnalyticsEvent, payload);
|
|
60
60
|
}
|
|
61
61
|
});
|
|
62
62
|
|
package/dist/esm/i18n/en.js
CHANGED
|
@@ -1,27 +1,37 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* NOTE:
|
|
3
3
|
*
|
|
4
|
-
* This file is automatically generated by
|
|
4
|
+
* This file is automatically generated by Traduki 2.0.
|
|
5
5
|
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
6
6
|
*/
|
|
7
|
-
//
|
|
7
|
+
//
|
|
8
8
|
export default {
|
|
9
|
-
'pt.profile-card.inactive.account': 'Account deactivated',
|
|
10
|
-
'pt.profile-card.general.msg.disabled.user': 'You can no longer collaborate with this person.',
|
|
11
|
-
'pt.profile-card.inactive.account.no.date': 'Their account has been deactivated.',
|
|
12
|
-
'pt.profile-card.inactive.account.has.date.this.week': 'Their account was deactivated this week.',
|
|
13
|
-
'pt.profile-card.inactive.account.has.date.this.month': 'Their account was deactivated this month.',
|
|
14
|
-
'pt.profile-card.inactive.account.has.date.last.month': 'Their account was deactivated last month.',
|
|
15
|
-
'pt.profile-card.inactive.account.has.date.a.few.months': 'Their account has been deactivated for a few months.',
|
|
16
|
-
'pt.profile-card.inactive.account.has.date.several.months': 'Their account has been deactivated for several months.',
|
|
17
|
-
'pt.profile-card.inactive.account.has.date.more.than.a.year': 'Their account has been deactivated for more than a year.',
|
|
18
9
|
'pt.profile-card.closed.account': 'Account deleted',
|
|
19
|
-
'pt.profile-card.closed.account.no.date': 'Their account has been deleted.',
|
|
20
|
-
'pt.profile-card.closed.account.has.date.this.week': 'Their account was deleted this week.',
|
|
21
|
-
'pt.profile-card.closed.account.has.date.this.month': 'Their account was deleted this month.',
|
|
22
|
-
'pt.profile-card.closed.account.has.date.last.month': 'Their account was deleted last month.',
|
|
23
10
|
'pt.profile-card.closed.account.has.date.a.few.months': 'Their account has been deleted for a few months.',
|
|
24
|
-
'pt.profile-card.closed.account.has.date.
|
|
11
|
+
'pt.profile-card.closed.account.has.date.last.month': 'Their account was deleted last month.',
|
|
25
12
|
'pt.profile-card.closed.account.has.date.more.than.a.year': 'Their account has been deleted for more than a year.',
|
|
26
|
-
'pt.profile-card.
|
|
13
|
+
'pt.profile-card.closed.account.has.date.several.months': 'Their account has been deleted for several months.',
|
|
14
|
+
'pt.profile-card.closed.account.has.date.this.month': 'Their account was deleted this month.',
|
|
15
|
+
'pt.profile-card.closed.account.has.date.this.week': 'Their account was deleted this week.',
|
|
16
|
+
'pt.profile-card.closed.account.no.date': 'Their account has been deleted.',
|
|
17
|
+
'pt.profile-card.disabled.account.default.name': 'Former user',
|
|
18
|
+
'pt.profile-card.general.msg.disabled.user': 'You can no longer collaborate with this person.',
|
|
19
|
+
'pt.profile-card.inactive.account': 'Account deactivated',
|
|
20
|
+
'pt.profile-card.inactive.account.has.date.a.few.months': 'Their account has been deactivated for a few months.',
|
|
21
|
+
'pt.profile-card.inactive.account.has.date.last.month': 'Their account was deactivated last month.',
|
|
22
|
+
'pt.profile-card.inactive.account.has.date.more.than.a.year': 'Their account has been deactivated for more than a year.',
|
|
23
|
+
'pt.profile-card.inactive.account.has.date.several.months': 'Their account has been deactivated for several months.',
|
|
24
|
+
'pt.profile-card.inactive.account.has.date.this.month': 'Their account was deactivated this month.',
|
|
25
|
+
'pt.profile-card.inactive.account.has.date.this.week': 'Their account was deactivated this week.',
|
|
26
|
+
'pt.profile-card.inactive.account.no.date': 'Their account has been deactivated.',
|
|
27
|
+
'pt.team-profile-card.directReports.heading': 'Direct reports',
|
|
28
|
+
'pt.team-profile-card.error.refresh-button': 'Try again',
|
|
29
|
+
'pt.team-profile-card.error.suggestion': 'Wait a few moments, then try again.',
|
|
30
|
+
'pt.team-profile-card.error.title': 'We’re having trouble retrieving this teams information',
|
|
31
|
+
'pt.team-profile-card.manager.heading': 'Manager',
|
|
32
|
+
'pt.team-profile-card.team.action.view-profile': 'View profile',
|
|
33
|
+
'pt.team-profile-card.team.member.count': 'Team • {count} {count, plural, one {member} other {members}}',
|
|
34
|
+
'pt.team-profile-card.team.member.count-including-you': 'Team • {count} {count, plural, one {member} other {members}}, including you',
|
|
35
|
+
'pt.team-profile-card.team.member.many': 'Team • 50+ members',
|
|
36
|
+
'pt.team-profile-card.team.member.many-including-you': 'Team • 50+ members, including you'
|
|
27
37
|
};
|
package/dist/esm/i18n/en_GB.js
CHANGED
|
@@ -1,27 +1,37 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* NOTE:
|
|
3
3
|
*
|
|
4
|
-
* This file is automatically generated by
|
|
4
|
+
* This file is automatically generated by Traduki 2.0.
|
|
5
5
|
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
6
6
|
*/
|
|
7
|
-
//
|
|
7
|
+
//English (United Kingdom)
|
|
8
8
|
export default {
|
|
9
|
-
'pt.profile-card.inactive.account': 'Account deactivated',
|
|
10
|
-
'pt.profile-card.general.msg.disabled.user': 'You can no longer collaborate with this person.',
|
|
11
|
-
'pt.profile-card.inactive.account.no.date': 'Their account has been deactivated.',
|
|
12
|
-
'pt.profile-card.inactive.account.has.date.this.week': 'Their account was deactivated this week.',
|
|
13
|
-
'pt.profile-card.inactive.account.has.date.this.month': 'Their account was deactivated this month.',
|
|
14
|
-
'pt.profile-card.inactive.account.has.date.last.month': 'Their account was deactivated last month.',
|
|
15
|
-
'pt.profile-card.inactive.account.has.date.a.few.months': 'Their account has been deactivated for a few months.',
|
|
16
|
-
'pt.profile-card.inactive.account.has.date.several.months': 'Their account has been deactivated for several months.',
|
|
17
|
-
'pt.profile-card.inactive.account.has.date.more.than.a.year': 'Their account has been deactivated for more than a year.',
|
|
18
9
|
'pt.profile-card.closed.account': 'Account deleted',
|
|
19
|
-
'pt.profile-card.closed.account.no.date': 'Their account has been deleted.',
|
|
20
|
-
'pt.profile-card.closed.account.has.date.this.week': 'Their account was deleted this week.',
|
|
21
|
-
'pt.profile-card.closed.account.has.date.this.month': 'Their account was deleted this month.',
|
|
22
|
-
'pt.profile-card.closed.account.has.date.last.month': 'Their account was deleted last month.',
|
|
23
10
|
'pt.profile-card.closed.account.has.date.a.few.months': 'Their account has been deleted for a few months.',
|
|
24
|
-
'pt.profile-card.closed.account.has.date.
|
|
11
|
+
'pt.profile-card.closed.account.has.date.last.month': 'Their account was deleted last month.',
|
|
25
12
|
'pt.profile-card.closed.account.has.date.more.than.a.year': 'Their account has been deleted for more than a year.',
|
|
26
|
-
'pt.profile-card.
|
|
13
|
+
'pt.profile-card.closed.account.has.date.several.months': 'Their account has been deleted for several months.',
|
|
14
|
+
'pt.profile-card.closed.account.has.date.this.month': 'Their account was deleted this month.',
|
|
15
|
+
'pt.profile-card.closed.account.has.date.this.week': 'Their account was deleted this week.',
|
|
16
|
+
'pt.profile-card.closed.account.no.date': 'Their account has been deleted.',
|
|
17
|
+
'pt.profile-card.disabled.account.default.name': 'Former user',
|
|
18
|
+
'pt.profile-card.general.msg.disabled.user': 'You can no longer collaborate with this person.',
|
|
19
|
+
'pt.profile-card.inactive.account': 'Account deactivated',
|
|
20
|
+
'pt.profile-card.inactive.account.has.date.a.few.months': 'Their account has been deactivated for a few months.',
|
|
21
|
+
'pt.profile-card.inactive.account.has.date.last.month': 'Their account was deactivated last month.',
|
|
22
|
+
'pt.profile-card.inactive.account.has.date.more.than.a.year': 'Their account has been deactivated for more than a year.',
|
|
23
|
+
'pt.profile-card.inactive.account.has.date.several.months': 'Their account has been deactivated for several months.',
|
|
24
|
+
'pt.profile-card.inactive.account.has.date.this.month': 'Their account was deactivated this month.',
|
|
25
|
+
'pt.profile-card.inactive.account.has.date.this.week': 'Their account was deactivated this week.',
|
|
26
|
+
'pt.profile-card.inactive.account.no.date': 'Their account has been deactivated.',
|
|
27
|
+
'pt.team-profile-card.directReports.heading': 'Direct reports',
|
|
28
|
+
'pt.team-profile-card.error.refresh-button': 'Try again',
|
|
29
|
+
'pt.team-profile-card.error.suggestion': 'Wait a few moments, then try again.',
|
|
30
|
+
'pt.team-profile-card.error.title': 'We’re having trouble retrieving this teams information',
|
|
31
|
+
'pt.team-profile-card.manager.heading': 'Manager',
|
|
32
|
+
'pt.team-profile-card.team.action.view-profile': 'View profile',
|
|
33
|
+
'pt.team-profile-card.team.member.count': 'Team • {count} {count, plural, one {member} other {members}}',
|
|
34
|
+
'pt.team-profile-card.team.member.count-including-you': 'Team • {count} {count, plural, one {member} other {members}}, including you',
|
|
35
|
+
'pt.team-profile-card.team.member.many': 'Team • 50+ members',
|
|
36
|
+
'pt.team-profile-card.team.member.many-including-you': 'Team • 50+ members, including you'
|
|
27
37
|
};
|
|
@@ -4,10 +4,36 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
|
|
|
4
4
|
|
|
5
5
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
6
6
|
|
|
7
|
-
import { createAndFireEvent } from '@atlaskit/analytics-next';
|
|
8
7
|
import { getPageTime } from './performance';
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
/** Below lines are copied from teams common analytics */
|
|
9
|
+
|
|
10
|
+
var ANALYTICS_CHANNEL = 'peopleTeams';
|
|
11
|
+
|
|
12
|
+
var runItLater = function runItLater(cb) {
|
|
13
|
+
if (window.requestIdleCallback === 'function') {
|
|
14
|
+
return window.requestIdleCallback(cb);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
if (typeof window.requestAnimationFrame === 'function') {
|
|
18
|
+
return window.requestAnimationFrame(cb);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
return function () {
|
|
22
|
+
return setTimeout(cb);
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
export var fireEvent = function fireEvent(createAnalyticsEvent, body) {
|
|
27
|
+
if (!createAnalyticsEvent) {
|
|
28
|
+
return;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
runItLater(function () {
|
|
32
|
+
createAnalyticsEvent(body).fire(ANALYTICS_CHANNEL);
|
|
33
|
+
});
|
|
34
|
+
};
|
|
35
|
+
/** Above lines are copied from teams common analytics */
|
|
36
|
+
|
|
11
37
|
var TEAM_SUBJECT = 'teamProfileCard';
|
|
12
38
|
|
|
13
39
|
var createEvent = function createEvent(eventType, action, actionSubject, actionSubjectId) {
|
|
@@ -19,7 +45,7 @@ var createEvent = function createEvent(eventType, action, actionSubject, actionS
|
|
|
19
45
|
actionSubjectId: actionSubjectId,
|
|
20
46
|
attributes: _objectSpread(_objectSpread({
|
|
21
47
|
packageName: "@atlaskit/profilecard",
|
|
22
|
-
packageVersion: "16.
|
|
48
|
+
packageVersion: "16.4.2"
|
|
23
49
|
}, attributes), {}, {
|
|
24
50
|
firedAt: getPageTime()
|
|
25
51
|
})
|
package/dist/esm/version.json
CHANGED
package/dist/types/i18n/en.d.ts
CHANGED
|
@@ -1,27 +1,37 @@
|
|
|
1
1
|
declare const _default: {
|
|
2
|
-
'pt.profile-card.inactive.account': string;
|
|
3
|
-
'pt.profile-card.general.msg.disabled.user': string;
|
|
4
|
-
'pt.profile-card.inactive.account.no.date': string;
|
|
5
|
-
'pt.profile-card.inactive.account.has.date.this.week': string;
|
|
6
|
-
'pt.profile-card.inactive.account.has.date.this.month': string;
|
|
7
|
-
'pt.profile-card.inactive.account.has.date.last.month': string;
|
|
8
|
-
'pt.profile-card.inactive.account.has.date.a.few.months': string;
|
|
9
|
-
'pt.profile-card.inactive.account.has.date.several.months': string;
|
|
10
|
-
'pt.profile-card.inactive.account.has.date.more.than.a.year': string;
|
|
11
2
|
'pt.profile-card.closed.account': string;
|
|
12
|
-
'pt.profile-card.closed.account.no.date': string;
|
|
13
|
-
'pt.profile-card.closed.account.has.date.this.week': string;
|
|
14
|
-
'pt.profile-card.closed.account.has.date.this.month': string;
|
|
15
|
-
'pt.profile-card.closed.account.has.date.last.month': string;
|
|
16
3
|
'pt.profile-card.closed.account.has.date.a.few.months': string;
|
|
17
|
-
'pt.profile-card.closed.account.has.date.
|
|
4
|
+
'pt.profile-card.closed.account.has.date.last.month': string;
|
|
18
5
|
'pt.profile-card.closed.account.has.date.more.than.a.year': string;
|
|
6
|
+
'pt.profile-card.closed.account.has.date.several.months': string;
|
|
7
|
+
'pt.profile-card.closed.account.has.date.this.month': string;
|
|
8
|
+
'pt.profile-card.closed.account.has.date.this.week': string;
|
|
9
|
+
'pt.profile-card.closed.account.no.date': string;
|
|
19
10
|
'pt.profile-card.disabled.account.default.name': string;
|
|
11
|
+
'pt.profile-card.general.msg.disabled.user': string;
|
|
12
|
+
'pt.profile-card.inactive.account': string;
|
|
13
|
+
'pt.profile-card.inactive.account.has.date.a.few.months': string;
|
|
14
|
+
'pt.profile-card.inactive.account.has.date.last.month': string;
|
|
15
|
+
'pt.profile-card.inactive.account.has.date.more.than.a.year': string;
|
|
16
|
+
'pt.profile-card.inactive.account.has.date.several.months': string;
|
|
17
|
+
'pt.profile-card.inactive.account.has.date.this.month': string;
|
|
18
|
+
'pt.profile-card.inactive.account.has.date.this.week': string;
|
|
19
|
+
'pt.profile-card.inactive.account.no.date': string;
|
|
20
|
+
'pt.team-profile-card.directReports.heading': string;
|
|
21
|
+
'pt.team-profile-card.error.refresh-button': string;
|
|
22
|
+
'pt.team-profile-card.error.suggestion': string;
|
|
23
|
+
'pt.team-profile-card.error.title': string;
|
|
24
|
+
'pt.team-profile-card.manager.heading': string;
|
|
25
|
+
'pt.team-profile-card.team.action.view-profile': string;
|
|
26
|
+
'pt.team-profile-card.team.member.count': string;
|
|
27
|
+
'pt.team-profile-card.team.member.count-including-you': string;
|
|
28
|
+
'pt.team-profile-card.team.member.many': string;
|
|
29
|
+
'pt.team-profile-card.team.member.many-including-you': string;
|
|
20
30
|
};
|
|
21
31
|
/**
|
|
22
32
|
* NOTE:
|
|
23
33
|
*
|
|
24
|
-
* This file is automatically generated by
|
|
34
|
+
* This file is automatically generated by Traduki 2.0.
|
|
25
35
|
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
26
36
|
*/
|
|
27
37
|
export default _default;
|
|
@@ -1,27 +1,37 @@
|
|
|
1
1
|
declare const _default: {
|
|
2
|
-
'pt.profile-card.inactive.account': string;
|
|
3
|
-
'pt.profile-card.general.msg.disabled.user': string;
|
|
4
|
-
'pt.profile-card.inactive.account.no.date': string;
|
|
5
|
-
'pt.profile-card.inactive.account.has.date.this.week': string;
|
|
6
|
-
'pt.profile-card.inactive.account.has.date.this.month': string;
|
|
7
|
-
'pt.profile-card.inactive.account.has.date.last.month': string;
|
|
8
|
-
'pt.profile-card.inactive.account.has.date.a.few.months': string;
|
|
9
|
-
'pt.profile-card.inactive.account.has.date.several.months': string;
|
|
10
|
-
'pt.profile-card.inactive.account.has.date.more.than.a.year': string;
|
|
11
2
|
'pt.profile-card.closed.account': string;
|
|
12
|
-
'pt.profile-card.closed.account.no.date': string;
|
|
13
|
-
'pt.profile-card.closed.account.has.date.this.week': string;
|
|
14
|
-
'pt.profile-card.closed.account.has.date.this.month': string;
|
|
15
|
-
'pt.profile-card.closed.account.has.date.last.month': string;
|
|
16
3
|
'pt.profile-card.closed.account.has.date.a.few.months': string;
|
|
17
|
-
'pt.profile-card.closed.account.has.date.
|
|
4
|
+
'pt.profile-card.closed.account.has.date.last.month': string;
|
|
18
5
|
'pt.profile-card.closed.account.has.date.more.than.a.year': string;
|
|
6
|
+
'pt.profile-card.closed.account.has.date.several.months': string;
|
|
7
|
+
'pt.profile-card.closed.account.has.date.this.month': string;
|
|
8
|
+
'pt.profile-card.closed.account.has.date.this.week': string;
|
|
9
|
+
'pt.profile-card.closed.account.no.date': string;
|
|
19
10
|
'pt.profile-card.disabled.account.default.name': string;
|
|
11
|
+
'pt.profile-card.general.msg.disabled.user': string;
|
|
12
|
+
'pt.profile-card.inactive.account': string;
|
|
13
|
+
'pt.profile-card.inactive.account.has.date.a.few.months': string;
|
|
14
|
+
'pt.profile-card.inactive.account.has.date.last.month': string;
|
|
15
|
+
'pt.profile-card.inactive.account.has.date.more.than.a.year': string;
|
|
16
|
+
'pt.profile-card.inactive.account.has.date.several.months': string;
|
|
17
|
+
'pt.profile-card.inactive.account.has.date.this.month': string;
|
|
18
|
+
'pt.profile-card.inactive.account.has.date.this.week': string;
|
|
19
|
+
'pt.profile-card.inactive.account.no.date': string;
|
|
20
|
+
'pt.team-profile-card.directReports.heading': string;
|
|
21
|
+
'pt.team-profile-card.error.refresh-button': string;
|
|
22
|
+
'pt.team-profile-card.error.suggestion': string;
|
|
23
|
+
'pt.team-profile-card.error.title': string;
|
|
24
|
+
'pt.team-profile-card.manager.heading': string;
|
|
25
|
+
'pt.team-profile-card.team.action.view-profile': string;
|
|
26
|
+
'pt.team-profile-card.team.member.count': string;
|
|
27
|
+
'pt.team-profile-card.team.member.count-including-you': string;
|
|
28
|
+
'pt.team-profile-card.team.member.many': string;
|
|
29
|
+
'pt.team-profile-card.team.member.many-including-you': string;
|
|
20
30
|
};
|
|
21
31
|
/**
|
|
22
32
|
* NOTE:
|
|
23
33
|
*
|
|
24
|
-
* This file is automatically generated by
|
|
34
|
+
* This file is automatically generated by Traduki 2.0.
|
|
25
35
|
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
26
36
|
*/
|
|
27
37
|
export default _default;
|
|
@@ -1,4 +1,13 @@
|
|
|
1
|
-
|
|
1
|
+
import type { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next/types';
|
|
2
|
+
interface AnalyticsEvent {
|
|
3
|
+
action?: string;
|
|
4
|
+
actionSubject?: string;
|
|
5
|
+
actionSubjectId?: string;
|
|
6
|
+
attributes?: Record<string, string | number | boolean | undefined>;
|
|
7
|
+
name?: string;
|
|
8
|
+
source?: string;
|
|
9
|
+
}
|
|
10
|
+
export declare const fireEvent: (createAnalyticsEvent: CreateUIAnalyticsEvent | undefined, body: AnalyticsEvent) => void;
|
|
2
11
|
export declare const teamCardTriggered: (method: 'hover' | 'click') => Record<string, any>;
|
|
3
12
|
export declare const teamRequestAnalytics: (action: 'triggered' | 'succeeded' | 'failed', attributes?: ({
|
|
4
13
|
duration: number;
|
|
@@ -36,3 +45,4 @@ export declare const moreMembersClicked: (attributes: {
|
|
|
36
45
|
export declare const errorRetryClicked: (attributes: {
|
|
37
46
|
duration: number;
|
|
38
47
|
}) => Record<string, any>;
|
|
48
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/profilecard",
|
|
3
|
-
"version": "16.
|
|
3
|
+
"version": "16.4.2",
|
|
4
4
|
"description": "A React component to display a card with user information.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"@atlaskit/popup": "^1.3.0",
|
|
49
49
|
"@atlaskit/spinner": "^15.0.0",
|
|
50
50
|
"@atlaskit/theme": "^12.1.0",
|
|
51
|
-
"@atlaskit/tokens": "^0.
|
|
51
|
+
"@atlaskit/tokens": "^0.9.0",
|
|
52
52
|
"@babel/runtime": "^7.0.0",
|
|
53
53
|
"date-fns": "^2.17.0",
|
|
54
54
|
"lodash": "^4.17.21",
|
|
@@ -74,7 +74,7 @@
|
|
|
74
74
|
"loader-utils": "^1.1.0",
|
|
75
75
|
"react-router-dom": "^4.2.2",
|
|
76
76
|
"sinon": "^2.2.0",
|
|
77
|
-
"typescript": "3.9.
|
|
77
|
+
"typescript": "3.9.10",
|
|
78
78
|
"uid": "^0.0.2"
|
|
79
79
|
},
|
|
80
80
|
"keywords": [
|