@atlaskit/profilecard 26.20.4 → 26.21.1
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 +17 -0
- package/dist/cjs/client/addHeaders.js +1 -1
- package/dist/cjs/client/getOrgIdForCloudIdFromAGG.js +1 -1
- package/dist/cjs/util/analytics.js +1 -1
- package/dist/cjs/util/createEvent.js +1 -1
- package/dist/es2019/client/addHeaders.js +1 -1
- package/dist/es2019/client/getOrgIdForCloudIdFromAGG.js +1 -1
- package/dist/es2019/util/analytics.js +1 -1
- package/dist/es2019/util/createEvent.js +1 -1
- package/dist/esm/client/addHeaders.js +1 -1
- package/dist/esm/client/getOrgIdForCloudIdFromAGG.js +1 -1
- package/dist/esm/util/analytics.js +1 -1
- package/dist/esm/util/createEvent.js +1 -1
- package/package.json +27 -27
- package/report.api.md +0 -684
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
# @atlaskit/profilecard
|
|
2
2
|
|
|
3
|
+
## 26.21.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 26.21.0
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- [`bd2c5b0112185`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/bd2c5b0112185) -
|
|
14
|
+
Remove stale API report artifacts from published Platform packages.
|
|
15
|
+
|
|
16
|
+
### Patch Changes
|
|
17
|
+
|
|
18
|
+
- Updated dependencies
|
|
19
|
+
|
|
3
20
|
## 26.20.4
|
|
4
21
|
|
|
5
22
|
### Patch Changes
|
|
@@ -11,6 +11,6 @@ var addHeaders = exports.addHeaders = function addHeaders(headers) {
|
|
|
11
11
|
headers.append('X-ExperimentalApi', 'teams-beta');
|
|
12
12
|
headers.append('X-ExperimentalApi', 'team-members-beta');
|
|
13
13
|
headers.append('atl-client-name', "@atlaskit/profilecard");
|
|
14
|
-
headers.append('atl-client-version', "26.
|
|
14
|
+
headers.append('atl-client-version', "26.21.0");
|
|
15
15
|
return headers;
|
|
16
16
|
};
|
|
@@ -11,7 +11,7 @@ var _AGGQuery = require("./AGGQuery");
|
|
|
11
11
|
var ORG_ID_FROM_CLOUD_ID_QUERY = "query OrgIdFromCloudId($cloudId: ID!) {\n\ttenantContexts(cloudIds: [$cloudId]) {\n\t\torgId\n\t}\n}";
|
|
12
12
|
var addHeaders = function addHeaders(headers) {
|
|
13
13
|
headers.append('atl-client-name', "@atlaskit/profilecard");
|
|
14
|
-
headers.append('atl-client-version', "26.
|
|
14
|
+
headers.append('atl-client-version', "26.21.0");
|
|
15
15
|
return headers;
|
|
16
16
|
};
|
|
17
17
|
function getOrgIdForCloudIdFromAGG(_x, _x2) {
|
|
@@ -7,7 +7,7 @@ exports.USER_SUBJECT = exports.TEAM_SUBJECT = exports.PACKAGE_META_DATA = export
|
|
|
7
7
|
var _process$env$_PACKAGE, _process$env$_PACKAGE2;
|
|
8
8
|
var PACKAGE_META_DATA = exports.PACKAGE_META_DATA = {
|
|
9
9
|
packageName: (_process$env$_PACKAGE = "@atlaskit/profilecard") !== null && _process$env$_PACKAGE !== void 0 ? _process$env$_PACKAGE : '',
|
|
10
|
-
packageVersion: (_process$env$_PACKAGE2 = "26.
|
|
10
|
+
packageVersion: (_process$env$_PACKAGE2 = "26.21.0") !== null && _process$env$_PACKAGE2 !== void 0 ? _process$env$_PACKAGE2 : ''
|
|
11
11
|
};
|
|
12
12
|
var TEAM_SUBJECT = exports.TEAM_SUBJECT = 'teamProfileCard';
|
|
13
13
|
var USER_SUBJECT = exports.USER_SUBJECT = 'profilecard';
|
|
@@ -22,7 +22,7 @@ var createEvent = exports.createEvent = function createEvent(eventType, action,
|
|
|
22
22
|
actionSubjectId: actionSubjectId,
|
|
23
23
|
attributes: _objectSpread(_objectSpread({
|
|
24
24
|
packageName: "@atlaskit/profilecard",
|
|
25
|
-
packageVersion: "26.
|
|
25
|
+
packageVersion: "26.21.0"
|
|
26
26
|
}, attributes), {}, {
|
|
27
27
|
firedAt: Math.round((0, _performance.getPageTime)())
|
|
28
28
|
})
|
|
@@ -5,6 +5,6 @@ export const addHeaders = headers => {
|
|
|
5
5
|
headers.append('X-ExperimentalApi', 'teams-beta');
|
|
6
6
|
headers.append('X-ExperimentalApi', 'team-members-beta');
|
|
7
7
|
headers.append('atl-client-name', "@atlaskit/profilecard");
|
|
8
|
-
headers.append('atl-client-version', "26.
|
|
8
|
+
headers.append('atl-client-version', "26.21.0");
|
|
9
9
|
return headers;
|
|
10
10
|
};
|
|
@@ -6,7 +6,7 @@ const ORG_ID_FROM_CLOUD_ID_QUERY = `query OrgIdFromCloudId($cloudId: ID!) {
|
|
|
6
6
|
}`;
|
|
7
7
|
const addHeaders = headers => {
|
|
8
8
|
headers.append('atl-client-name', "@atlaskit/profilecard");
|
|
9
|
-
headers.append('atl-client-version', "26.
|
|
9
|
+
headers.append('atl-client-version', "26.21.0");
|
|
10
10
|
return headers;
|
|
11
11
|
};
|
|
12
12
|
export async function getOrgIdForCloudIdFromAGG(url, cloudId) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var _process$env$_PACKAGE, _process$env$_PACKAGE2;
|
|
2
2
|
export const PACKAGE_META_DATA = {
|
|
3
3
|
packageName: (_process$env$_PACKAGE = "@atlaskit/profilecard") !== null && _process$env$_PACKAGE !== void 0 ? _process$env$_PACKAGE : '',
|
|
4
|
-
packageVersion: (_process$env$_PACKAGE2 = "26.
|
|
4
|
+
packageVersion: (_process$env$_PACKAGE2 = "26.21.0") !== null && _process$env$_PACKAGE2 !== void 0 ? _process$env$_PACKAGE2 : ''
|
|
5
5
|
};
|
|
6
6
|
export const TEAM_SUBJECT = 'teamProfileCard';
|
|
7
7
|
export const USER_SUBJECT = 'profilecard';
|
|
@@ -11,7 +11,7 @@ export const createEvent = (eventType, action, actionSubject, actionSubjectId, a
|
|
|
11
11
|
actionSubjectId,
|
|
12
12
|
attributes: {
|
|
13
13
|
packageName: "@atlaskit/profilecard",
|
|
14
|
-
packageVersion: "26.
|
|
14
|
+
packageVersion: "26.21.0",
|
|
15
15
|
...attributes,
|
|
16
16
|
firedAt: Math.round(getPageTime())
|
|
17
17
|
}
|
|
@@ -5,6 +5,6 @@ export var addHeaders = function addHeaders(headers) {
|
|
|
5
5
|
headers.append('X-ExperimentalApi', 'teams-beta');
|
|
6
6
|
headers.append('X-ExperimentalApi', 'team-members-beta');
|
|
7
7
|
headers.append('atl-client-name', "@atlaskit/profilecard");
|
|
8
|
-
headers.append('atl-client-version', "26.
|
|
8
|
+
headers.append('atl-client-version', "26.21.0");
|
|
9
9
|
return headers;
|
|
10
10
|
};
|
|
@@ -4,7 +4,7 @@ import { AGGQuery } from './AGGQuery';
|
|
|
4
4
|
var ORG_ID_FROM_CLOUD_ID_QUERY = "query OrgIdFromCloudId($cloudId: ID!) {\n\ttenantContexts(cloudIds: [$cloudId]) {\n\t\torgId\n\t}\n}";
|
|
5
5
|
var addHeaders = function addHeaders(headers) {
|
|
6
6
|
headers.append('atl-client-name', "@atlaskit/profilecard");
|
|
7
|
-
headers.append('atl-client-version', "26.
|
|
7
|
+
headers.append('atl-client-version', "26.21.0");
|
|
8
8
|
return headers;
|
|
9
9
|
};
|
|
10
10
|
export function getOrgIdForCloudIdFromAGG(_x, _x2) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var _process$env$_PACKAGE, _process$env$_PACKAGE2;
|
|
2
2
|
export var PACKAGE_META_DATA = {
|
|
3
3
|
packageName: (_process$env$_PACKAGE = "@atlaskit/profilecard") !== null && _process$env$_PACKAGE !== void 0 ? _process$env$_PACKAGE : '',
|
|
4
|
-
packageVersion: (_process$env$_PACKAGE2 = "26.
|
|
4
|
+
packageVersion: (_process$env$_PACKAGE2 = "26.21.0") !== null && _process$env$_PACKAGE2 !== void 0 ? _process$env$_PACKAGE2 : ''
|
|
5
5
|
};
|
|
6
6
|
export var TEAM_SUBJECT = 'teamProfileCard';
|
|
7
7
|
export var USER_SUBJECT = 'profilecard';
|
|
@@ -16,7 +16,7 @@ export var createEvent = function createEvent(eventType, action, actionSubject,
|
|
|
16
16
|
actionSubjectId: actionSubjectId,
|
|
17
17
|
attributes: _objectSpread(_objectSpread({
|
|
18
18
|
packageName: "@atlaskit/profilecard",
|
|
19
|
-
packageVersion: "26.
|
|
19
|
+
packageVersion: "26.21.0"
|
|
20
20
|
}, attributes), {}, {
|
|
21
21
|
firedAt: Math.round(getPageTime())
|
|
22
22
|
})
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/profilecard",
|
|
3
|
-
"version": "26.
|
|
3
|
+
"version": "26.21.1",
|
|
4
4
|
"description": "A React component to display a card with user information.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -40,37 +40,37 @@
|
|
|
40
40
|
"dependencies": {
|
|
41
41
|
"@atlaskit/afm-i18n-platform-people-and-teams-profilecard": "2.225.0",
|
|
42
42
|
"@atlaskit/atlassian-context": "^1.1.0",
|
|
43
|
-
"@atlaskit/avatar": "^27.
|
|
44
|
-
"@atlaskit/avatar-group": "^14.
|
|
45
|
-
"@atlaskit/button": "^25.
|
|
43
|
+
"@atlaskit/avatar": "^27.3.0",
|
|
44
|
+
"@atlaskit/avatar-group": "^14.3.0",
|
|
45
|
+
"@atlaskit/button": "^25.3.0",
|
|
46
46
|
"@atlaskit/css": "^1.1.0",
|
|
47
|
-
"@atlaskit/dropdown-menu": "^18.
|
|
48
|
-
"@atlaskit/empty-state": "^12.
|
|
47
|
+
"@atlaskit/dropdown-menu": "^18.3.0",
|
|
48
|
+
"@atlaskit/empty-state": "^12.2.0",
|
|
49
49
|
"@atlaskit/feature-gate-js-client": "^6.0.0",
|
|
50
|
-
"@atlaskit/give-kudos": "^6.
|
|
51
|
-
"@atlaskit/heading": "^7.
|
|
52
|
-
"@atlaskit/icon": "^37.
|
|
50
|
+
"@atlaskit/give-kudos": "^6.15.0",
|
|
51
|
+
"@atlaskit/heading": "^7.2.0",
|
|
52
|
+
"@atlaskit/icon": "^37.6.0",
|
|
53
53
|
"@atlaskit/link": "5.1.0",
|
|
54
|
-
"@atlaskit/lozenge": "^15.
|
|
55
|
-
"@atlaskit/menu": "^10.
|
|
56
|
-
"@atlaskit/modal-dialog": "^16.
|
|
54
|
+
"@atlaskit/lozenge": "^15.4.0",
|
|
55
|
+
"@atlaskit/menu": "^10.2.0",
|
|
56
|
+
"@atlaskit/modal-dialog": "^16.6.0",
|
|
57
57
|
"@atlaskit/people-teams-ui-public": "^5.2.0",
|
|
58
|
-
"@atlaskit/platform-feature-flags": "^2.
|
|
59
|
-
"@atlaskit/popup": "^6.
|
|
60
|
-
"@atlaskit/primitives": "^22.
|
|
58
|
+
"@atlaskit/platform-feature-flags": "^2.2.0",
|
|
59
|
+
"@atlaskit/popup": "^6.3.0",
|
|
60
|
+
"@atlaskit/primitives": "^22.5.0",
|
|
61
61
|
"@atlaskit/react-compiler-gating": "^0.2.0",
|
|
62
62
|
"@atlaskit/rovo-agent-components": "^8.9.0",
|
|
63
|
-
"@atlaskit/rovo-triggers": "^10.
|
|
64
|
-
"@atlaskit/spinner": "^20.
|
|
63
|
+
"@atlaskit/rovo-triggers": "^10.23.0",
|
|
64
|
+
"@atlaskit/spinner": "^20.4.0",
|
|
65
65
|
"@atlaskit/teams-app-config": "^3.0.0",
|
|
66
66
|
"@atlaskit/teams-app-internal-analytics": "^2.4.0",
|
|
67
67
|
"@atlaskit/teams-app-internal-navigation": "^2.3.0",
|
|
68
68
|
"@atlaskit/teams-avatar": "^4.1.0",
|
|
69
69
|
"@atlaskit/teams-public": "^2.9.0",
|
|
70
|
-
"@atlaskit/theme": "^28.
|
|
71
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
72
|
-
"@atlaskit/tokens": "^16.
|
|
73
|
-
"@atlaskit/tooltip": "^24.
|
|
70
|
+
"@atlaskit/theme": "^28.2.0",
|
|
71
|
+
"@atlaskit/tmp-editor-statsig": "^169.0.0",
|
|
72
|
+
"@atlaskit/tokens": "^16.10.0",
|
|
73
|
+
"@atlaskit/tooltip": "^24.3.0",
|
|
74
74
|
"@babel/runtime": "^7.0.0",
|
|
75
75
|
"@compiled/react": "^1.0.2",
|
|
76
76
|
"date-fns": "^2.17.0",
|
|
@@ -87,15 +87,15 @@
|
|
|
87
87
|
},
|
|
88
88
|
"devDependencies": {
|
|
89
89
|
"@af/visual-regression": "workspace:^",
|
|
90
|
-
"@atlaskit/flag": "^18.
|
|
91
|
-
"@atlaskit/inline-edit": "^16.
|
|
92
|
-
"@atlaskit/section-message": "^10.
|
|
93
|
-
"@atlaskit/select": "^22.
|
|
90
|
+
"@atlaskit/flag": "^18.5.0",
|
|
91
|
+
"@atlaskit/inline-edit": "^16.4.0",
|
|
92
|
+
"@atlaskit/section-message": "^10.2.0",
|
|
93
|
+
"@atlaskit/select": "^22.11.0",
|
|
94
94
|
"@atlassian/a11y-jest-testing": "^0.17.0",
|
|
95
95
|
"@atlassian/feature-flags-storybook-utils": "^0.5.0",
|
|
96
|
-
"@atlassian/feature-flags-test-utils": "^1.
|
|
96
|
+
"@atlassian/feature-flags-test-utils": "^1.3.0",
|
|
97
97
|
"@atlassian/platform-storybook-helpers": "^0.6.0",
|
|
98
|
-
"@atlassian/ptc-test-utils": "^0.
|
|
98
|
+
"@atlassian/ptc-test-utils": "^0.15.0",
|
|
99
99
|
"@atlassian/testing-library": "^0.11.0",
|
|
100
100
|
"@storybook/addon-actions": "^8.6.14",
|
|
101
101
|
"@storybook/test": "^8.6.14",
|
package/report.api.md
DELETED
|
@@ -1,684 +0,0 @@
|
|
|
1
|
-
<!-- API Report Version: 2.3 -->
|
|
2
|
-
|
|
3
|
-
## API Report File for "@atlaskit/profilecard"
|
|
4
|
-
|
|
5
|
-
> Do not edit this file. This report is auto-generated using
|
|
6
|
-
> [API Extractor](https://api-extractor.com/).
|
|
7
|
-
> [Learn more about API reports](https://hello.atlassian.net/wiki/spaces/UR/pages/1825484529/Package+API+Reports)
|
|
8
|
-
|
|
9
|
-
### Table of contents
|
|
10
|
-
|
|
11
|
-
- [Main Entry Types](#main-entry-types)
|
|
12
|
-
- [Peer Dependencies](#peer-dependencies)
|
|
13
|
-
|
|
14
|
-
### Main Entry Types
|
|
15
|
-
|
|
16
|
-
<!--SECTION START: Main Entry Types-->
|
|
17
|
-
|
|
18
|
-
```ts
|
|
19
|
-
/// <reference types="react" />
|
|
20
|
-
|
|
21
|
-
import { AnalyticsEventPayload } from '@atlaskit/analytics-next';
|
|
22
|
-
import { ComponentType } from 'react';
|
|
23
|
-
import { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
24
|
-
import { IntlShape } from 'react-intl';
|
|
25
|
-
import { LRUMap } from 'lru_map';
|
|
26
|
-
import { default as React_2 } from 'react';
|
|
27
|
-
import { WithAnalyticsEventsProps } from '@atlaskit/analytics-next';
|
|
28
|
-
|
|
29
|
-
// @public (undocumented)
|
|
30
|
-
type AnalyticsFromDuration = (duration: number) => AnalyticsEventPayload;
|
|
31
|
-
|
|
32
|
-
// @public (undocumented)
|
|
33
|
-
type AnalyticsFunction = (generator: AnalyticsFromDuration) => void;
|
|
34
|
-
|
|
35
|
-
// @public (undocumented)
|
|
36
|
-
interface AnalyticsProps {
|
|
37
|
-
// (undocumented)
|
|
38
|
-
createAnalyticsEvent?: CreateUIAnalyticsEvent;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
// @public (undocumented)
|
|
42
|
-
export interface ApiClientResponse {
|
|
43
|
-
// (undocumented)
|
|
44
|
-
User: {
|
|
45
|
-
id: string;
|
|
46
|
-
isBot: boolean;
|
|
47
|
-
isCurrentUser: boolean;
|
|
48
|
-
avatarUrl: null | string;
|
|
49
|
-
email: null | string;
|
|
50
|
-
fullName: null | string;
|
|
51
|
-
location: null | string;
|
|
52
|
-
meta: null | string;
|
|
53
|
-
nickname: null | string;
|
|
54
|
-
companyName: null | string;
|
|
55
|
-
remoteTimeString: null | string;
|
|
56
|
-
remoteWeekdayIndex: null | string;
|
|
57
|
-
remoteWeekdayString: null | string;
|
|
58
|
-
status: StatusType;
|
|
59
|
-
statusModifiedDate: null | number;
|
|
60
|
-
};
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
// @public (undocumented)
|
|
64
|
-
interface CacheConfig {
|
|
65
|
-
// (undocumented)
|
|
66
|
-
cacheMaxAge?: number;
|
|
67
|
-
// (undocumented)
|
|
68
|
-
cacheSize?: number;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
// @public (undocumented)
|
|
72
|
-
interface CachedData<T> {
|
|
73
|
-
// (undocumented)
|
|
74
|
-
expire: number;
|
|
75
|
-
// (undocumented)
|
|
76
|
-
profile: T;
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
// @public (undocumented)
|
|
80
|
-
class CachingClient<T> {
|
|
81
|
-
constructor(config: CacheConfig);
|
|
82
|
-
// (undocumented)
|
|
83
|
-
cache: LRUMap<string, CachedData<T>> | null;
|
|
84
|
-
// (undocumented)
|
|
85
|
-
config: Required<CacheConfig>;
|
|
86
|
-
// (undocumented)
|
|
87
|
-
flushCache(): void;
|
|
88
|
-
// (undocumented)
|
|
89
|
-
getCachedProfile(cacheIdentifier: string): T | null;
|
|
90
|
-
// (undocumented)
|
|
91
|
-
setCachedProfile(cacheIdentifier: string, profile: T): void;
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
// @public (undocumented)
|
|
95
|
-
interface ClientOverrides {
|
|
96
|
-
// (undocumented)
|
|
97
|
-
teamCentralClient?: TeamCentralCardClient;
|
|
98
|
-
// (undocumented)
|
|
99
|
-
teamClient?: TeamProfileClient;
|
|
100
|
-
// (undocumented)
|
|
101
|
-
userClient?: UserProfileClient;
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
// @public (undocumented)
|
|
105
|
-
const _default: React_2.ForwardRefExoticComponent<
|
|
106
|
-
Pick<Omit<ProfileCardResourcedProps & AnalyticsProps, keyof WithAnalyticsEventsProps>, never> &
|
|
107
|
-
Partial<
|
|
108
|
-
Pick<
|
|
109
|
-
Omit<ProfileCardResourcedProps & AnalyticsProps, keyof WithAnalyticsEventsProps>,
|
|
110
|
-
keyof ProfileCardResourcedProps
|
|
111
|
-
>
|
|
112
|
-
> &
|
|
113
|
-
Partial<Pick<Partial<ProfileCardResourcedProps>, never>> &
|
|
114
|
-
React_2.RefAttributes<any>
|
|
115
|
-
>;
|
|
116
|
-
export default _default;
|
|
117
|
-
|
|
118
|
-
// @public (undocumented)
|
|
119
|
-
export const DELAY_MS_HIDE = 200;
|
|
120
|
-
|
|
121
|
-
// @public (undocumented)
|
|
122
|
-
export const DELAY_MS_SHOW = 800;
|
|
123
|
-
|
|
124
|
-
// @public (undocumented)
|
|
125
|
-
type FeatureFlagExtraContext = {
|
|
126
|
-
key: string;
|
|
127
|
-
value: string;
|
|
128
|
-
};
|
|
129
|
-
|
|
130
|
-
// @public (undocumented)
|
|
131
|
-
type LozengeColor = 'default' | 'inprogress' | 'moved' | 'new' | 'removed' | 'success';
|
|
132
|
-
|
|
133
|
-
// @public (undocumented)
|
|
134
|
-
interface LozengeProps {
|
|
135
|
-
// (undocumented)
|
|
136
|
-
appearance?: LozengeColor;
|
|
137
|
-
// (undocumented)
|
|
138
|
-
isBold?: boolean;
|
|
139
|
-
// (undocumented)
|
|
140
|
-
text: React_2.ReactNode;
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
// @public (undocumented)
|
|
144
|
-
export interface MessageIntlProviderProps {
|
|
145
|
-
// (undocumented)
|
|
146
|
-
children: React_2.ReactNode;
|
|
147
|
-
// (undocumented)
|
|
148
|
-
intl: IntlShape;
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
// @public
|
|
152
|
-
export const modifyResponse: (response: ApiClientResponse) => ProfileCardClientData;
|
|
153
|
-
|
|
154
|
-
// @public (undocumented)
|
|
155
|
-
export const ProfileCard: React_2.ForwardRefExoticComponent<
|
|
156
|
-
Omit<ProfilecardProps & AnalyticsProps, keyof WithAnalyticsEventsProps> &
|
|
157
|
-
React_2.RefAttributes<any>
|
|
158
|
-
>;
|
|
159
|
-
|
|
160
|
-
// @public (undocumented)
|
|
161
|
-
export interface ProfileCardAction {
|
|
162
|
-
// (undocumented)
|
|
163
|
-
callback?: (...args: any[]) => any;
|
|
164
|
-
// (undocumented)
|
|
165
|
-
id?: string;
|
|
166
|
-
// (undocumented)
|
|
167
|
-
label: React_2.ReactNode;
|
|
168
|
-
// (undocumented)
|
|
169
|
-
link?: string;
|
|
170
|
-
// (undocumented)
|
|
171
|
-
shouldRender?: (data: any) => boolean;
|
|
172
|
-
}
|
|
173
|
-
|
|
174
|
-
// @public (undocumented)
|
|
175
|
-
export interface ProfileCardClientData {
|
|
176
|
-
// (undocumented)
|
|
177
|
-
avatarUrl?: string;
|
|
178
|
-
// (undocumented)
|
|
179
|
-
companyName?: string;
|
|
180
|
-
// (undocumented)
|
|
181
|
-
customLozenges?: LozengeProps[];
|
|
182
|
-
// (undocumented)
|
|
183
|
-
email?: string;
|
|
184
|
-
// (undocumented)
|
|
185
|
-
fullName?: string;
|
|
186
|
-
// (undocumented)
|
|
187
|
-
isBot: boolean;
|
|
188
|
-
// (undocumented)
|
|
189
|
-
isCurrentUser: boolean;
|
|
190
|
-
// (undocumented)
|
|
191
|
-
location?: string;
|
|
192
|
-
// (undocumented)
|
|
193
|
-
meta?: string;
|
|
194
|
-
// (undocumented)
|
|
195
|
-
nickname?: string;
|
|
196
|
-
// (undocumented)
|
|
197
|
-
status: StatusType;
|
|
198
|
-
// (undocumented)
|
|
199
|
-
statusModifiedDate?: null | number;
|
|
200
|
-
// (undocumented)
|
|
201
|
-
timestring?: string;
|
|
202
|
-
}
|
|
203
|
-
|
|
204
|
-
// @public (undocumented)
|
|
205
|
-
export type ProfileCardErrorType = null | {
|
|
206
|
-
reason: 'NotFound' | 'default';
|
|
207
|
-
};
|
|
208
|
-
|
|
209
|
-
// @public (undocumented)
|
|
210
|
-
export interface ProfilecardProps {
|
|
211
|
-
// (undocumented)
|
|
212
|
-
actions?: ProfileCardAction[];
|
|
213
|
-
// (undocumented)
|
|
214
|
-
addFlag?: (flag: any) => void;
|
|
215
|
-
// (undocumented)
|
|
216
|
-
avatarUrl?: string;
|
|
217
|
-
// (undocumented)
|
|
218
|
-
clientFetchProfile?: () => void;
|
|
219
|
-
// (undocumented)
|
|
220
|
-
cloudId?: string;
|
|
221
|
-
// (undocumented)
|
|
222
|
-
companyName?: string;
|
|
223
|
-
// (undocumented)
|
|
224
|
-
customLozenges?: LozengeProps[];
|
|
225
|
-
// (undocumented)
|
|
226
|
-
disabledAccountMessage?: React_2.ReactNode;
|
|
227
|
-
// (undocumented)
|
|
228
|
-
email?: string;
|
|
229
|
-
// (undocumented)
|
|
230
|
-
errorType?: ProfileCardErrorType;
|
|
231
|
-
// (undocumented)
|
|
232
|
-
fullName?: string;
|
|
233
|
-
// (undocumented)
|
|
234
|
-
hasDisabledAccountLozenge?: boolean;
|
|
235
|
-
// (undocumented)
|
|
236
|
-
hasError?: boolean;
|
|
237
|
-
// (undocumented)
|
|
238
|
-
isBot?: boolean;
|
|
239
|
-
// (undocumented)
|
|
240
|
-
isCurrentUser?: boolean;
|
|
241
|
-
// (undocumented)
|
|
242
|
-
isKudosEnabled?: boolean;
|
|
243
|
-
// (undocumented)
|
|
244
|
-
isLoading?: boolean;
|
|
245
|
-
// (undocumented)
|
|
246
|
-
location?: string;
|
|
247
|
-
// (undocumented)
|
|
248
|
-
meta?: string;
|
|
249
|
-
// (undocumented)
|
|
250
|
-
nickname?: string;
|
|
251
|
-
onReportingLinesClick?: (user: ReportingLinesUser) => void;
|
|
252
|
-
// (undocumented)
|
|
253
|
-
openKudosDrawer?: () => void;
|
|
254
|
-
reportingLines?: TeamCentralReportingLinesData;
|
|
255
|
-
reportingLinesProfileUrl?: string;
|
|
256
|
-
// (undocumented)
|
|
257
|
-
status?: StatusType;
|
|
258
|
-
// (undocumented)
|
|
259
|
-
statusModifiedDate?: null | number;
|
|
260
|
-
// (undocumented)
|
|
261
|
-
teamCentralBaseUrl?: string;
|
|
262
|
-
// (undocumented)
|
|
263
|
-
timestring?: string;
|
|
264
|
-
// (undocumented)
|
|
265
|
-
userId?: string;
|
|
266
|
-
// (undocumented)
|
|
267
|
-
withoutElevation?: boolean;
|
|
268
|
-
}
|
|
269
|
-
|
|
270
|
-
// @public (undocumented)
|
|
271
|
-
export interface ProfileCardResourcedProps {
|
|
272
|
-
// (undocumented)
|
|
273
|
-
actions?: ProfileCardAction[];
|
|
274
|
-
// (undocumented)
|
|
275
|
-
addFlag?: (flag: any) => void;
|
|
276
|
-
// (undocumented)
|
|
277
|
-
children?: React_2.ReactNode;
|
|
278
|
-
// (undocumented)
|
|
279
|
-
cloudId: string;
|
|
280
|
-
// (undocumented)
|
|
281
|
-
onReportingLinesClick?: (user: ReportingLinesUser) => void;
|
|
282
|
-
// (undocumented)
|
|
283
|
-
position?: ProfilecardTriggerPosition;
|
|
284
|
-
// (undocumented)
|
|
285
|
-
reportingLinesProfileUrl?: string;
|
|
286
|
-
// (undocumented)
|
|
287
|
-
resourceClient: ProfileClient_2;
|
|
288
|
-
// (undocumented)
|
|
289
|
-
trigger?: TriggerType;
|
|
290
|
-
// (undocumented)
|
|
291
|
-
userId: string;
|
|
292
|
-
}
|
|
293
|
-
|
|
294
|
-
// @public (undocumented)
|
|
295
|
-
export interface ProfileCardResourcedState {
|
|
296
|
-
// (undocumented)
|
|
297
|
-
data: ProfileCardClientData | null;
|
|
298
|
-
// (undocumented)
|
|
299
|
-
error?: ProfileCardErrorType;
|
|
300
|
-
// (undocumented)
|
|
301
|
-
hasError: boolean;
|
|
302
|
-
// (undocumented)
|
|
303
|
-
isKudosEnabled?: boolean;
|
|
304
|
-
// (undocumented)
|
|
305
|
-
isLoading?: boolean;
|
|
306
|
-
// (undocumented)
|
|
307
|
-
kudosDrawerOpen: boolean;
|
|
308
|
-
// (undocumented)
|
|
309
|
-
reportingLinesData?: TeamCentralReportingLinesData;
|
|
310
|
-
// (undocumented)
|
|
311
|
-
visible?: boolean;
|
|
312
|
-
}
|
|
313
|
-
|
|
314
|
-
// @public (undocumented)
|
|
315
|
-
export const ProfileCardTrigger: React_2.ForwardRefExoticComponent<
|
|
316
|
-
Pick<Omit<ProfileCardTriggerProps & AnalyticsProps, keyof WithAnalyticsEventsProps>, never> &
|
|
317
|
-
Partial<
|
|
318
|
-
Pick<
|
|
319
|
-
Omit<ProfileCardTriggerProps & AnalyticsProps, keyof WithAnalyticsEventsProps>,
|
|
320
|
-
keyof ProfileCardTriggerProps
|
|
321
|
-
>
|
|
322
|
-
> &
|
|
323
|
-
Partial<Pick<Partial<ProfileCardTriggerProps>, never>> &
|
|
324
|
-
React_2.RefAttributes<any>
|
|
325
|
-
>;
|
|
326
|
-
|
|
327
|
-
// @public (undocumented)
|
|
328
|
-
export type ProfilecardTriggerPosition =
|
|
329
|
-
| 'bottom'
|
|
330
|
-
| 'bottom-end'
|
|
331
|
-
| 'bottom-start'
|
|
332
|
-
| 'left'
|
|
333
|
-
| 'left-end'
|
|
334
|
-
| 'left-start'
|
|
335
|
-
| 'right'
|
|
336
|
-
| 'right-end'
|
|
337
|
-
| 'right-start'
|
|
338
|
-
| 'top'
|
|
339
|
-
| 'top-end'
|
|
340
|
-
| 'top-start';
|
|
341
|
-
|
|
342
|
-
// @public (undocumented)
|
|
343
|
-
export interface ProfileCardTriggerProps {
|
|
344
|
-
// (undocumented)
|
|
345
|
-
actions?: ProfileCardAction[];
|
|
346
|
-
// (undocumented)
|
|
347
|
-
addFlag?: (flag: any) => void;
|
|
348
|
-
// (undocumented)
|
|
349
|
-
children?: React_2.ReactNode;
|
|
350
|
-
cloudId?: string;
|
|
351
|
-
// (undocumented)
|
|
352
|
-
onReportingLinesClick?: (user: ReportingLinesUser) => void;
|
|
353
|
-
// (undocumented)
|
|
354
|
-
position?: ProfilecardTriggerPosition;
|
|
355
|
-
// (undocumented)
|
|
356
|
-
reportingLinesProfileUrl?: string;
|
|
357
|
-
// (undocumented)
|
|
358
|
-
resourceClient: ProfileClient_2;
|
|
359
|
-
// (undocumented)
|
|
360
|
-
testId?: string;
|
|
361
|
-
// (undocumented)
|
|
362
|
-
trigger?: TriggerType;
|
|
363
|
-
// (undocumented)
|
|
364
|
-
userId: string;
|
|
365
|
-
}
|
|
366
|
-
|
|
367
|
-
// @public (undocumented)
|
|
368
|
-
export interface ProfileCardTriggerState {
|
|
369
|
-
// (undocumented)
|
|
370
|
-
data: ProfileCardClientData | null;
|
|
371
|
-
// (undocumented)
|
|
372
|
-
error?: ProfileCardErrorType;
|
|
373
|
-
// (undocumented)
|
|
374
|
-
hasError: boolean;
|
|
375
|
-
// (undocumented)
|
|
376
|
-
isLoading?: boolean;
|
|
377
|
-
// (undocumented)
|
|
378
|
-
kudosDrawerOpen: boolean;
|
|
379
|
-
// (undocumented)
|
|
380
|
-
reportingLinesData?: TeamCentralReportingLinesData;
|
|
381
|
-
// (undocumented)
|
|
382
|
-
shouldShowGiveKudos?: boolean;
|
|
383
|
-
// (undocumented)
|
|
384
|
-
teamCentralBaseUrl?: string;
|
|
385
|
-
// (undocumented)
|
|
386
|
-
visible?: boolean;
|
|
387
|
-
}
|
|
388
|
-
|
|
389
|
-
// @public (undocumented)
|
|
390
|
-
export class ProfileClient {
|
|
391
|
-
constructor(config: ProfileClientOptions, clients?: ClientOverrides);
|
|
392
|
-
// (undocumented)
|
|
393
|
-
flushCache(): void;
|
|
394
|
-
// (undocumented)
|
|
395
|
-
getProfile(
|
|
396
|
-
cloudId: string,
|
|
397
|
-
userId: string,
|
|
398
|
-
analytics?: (event: AnalyticsEventPayload) => void,
|
|
399
|
-
): Promise<any>;
|
|
400
|
-
// (undocumented)
|
|
401
|
-
getReportingLines(userId: string): Promise<TeamCentralReportingLinesData>;
|
|
402
|
-
// (undocumented)
|
|
403
|
-
getTeamCentralBaseUrl(): string | undefined;
|
|
404
|
-
// (undocumented)
|
|
405
|
-
getTeamProfile(
|
|
406
|
-
teamId: string,
|
|
407
|
-
orgId?: string,
|
|
408
|
-
analytics?: (event: AnalyticsEventPayload) => void,
|
|
409
|
-
): Promise<Team>;
|
|
410
|
-
// (undocumented)
|
|
411
|
-
shouldShowGiveKudos(): Promise<boolean>;
|
|
412
|
-
// (undocumented)
|
|
413
|
-
tcClient?: TeamCentralCardClient;
|
|
414
|
-
// (undocumented)
|
|
415
|
-
teamClient: TeamProfileClient;
|
|
416
|
-
// (undocumented)
|
|
417
|
-
userClient: UserProfileClient;
|
|
418
|
-
}
|
|
419
|
-
|
|
420
|
-
// @public (undocumented)
|
|
421
|
-
interface ProfileClient_2 {
|
|
422
|
-
// (undocumented)
|
|
423
|
-
flushCache: () => void;
|
|
424
|
-
// (undocumented)
|
|
425
|
-
getProfile: (
|
|
426
|
-
cloudId: string,
|
|
427
|
-
userId: string,
|
|
428
|
-
analytics?: (event: AnalyticsEventPayload) => void,
|
|
429
|
-
) => Promise<ProfileCardClientData>;
|
|
430
|
-
// (undocumented)
|
|
431
|
-
getReportingLines: (userId: string) => Promise<TeamCentralReportingLinesData>;
|
|
432
|
-
// (undocumented)
|
|
433
|
-
getTeamCentralBaseUrl: () => string | undefined;
|
|
434
|
-
// (undocumented)
|
|
435
|
-
getTeamProfile: (
|
|
436
|
-
teamId: string,
|
|
437
|
-
orgId?: string,
|
|
438
|
-
fireAnalytics?: (event: AnalyticsEventPayload) => void,
|
|
439
|
-
) => Promise<Team>;
|
|
440
|
-
// (undocumented)
|
|
441
|
-
shouldShowGiveKudos: () => Promise<boolean>;
|
|
442
|
-
}
|
|
443
|
-
|
|
444
|
-
// @public (undocumented)
|
|
445
|
-
export interface ProfileClientOptions {
|
|
446
|
-
// (undocumented)
|
|
447
|
-
cacheMaxAge?: number;
|
|
448
|
-
// (undocumented)
|
|
449
|
-
cacheSize?: number;
|
|
450
|
-
// (undocumented)
|
|
451
|
-
cloudId?: string;
|
|
452
|
-
// (undocumented)
|
|
453
|
-
gatewayGraphqlUrl?: string;
|
|
454
|
-
productIdentifier?: string;
|
|
455
|
-
teamCentralBaseUrl?: string;
|
|
456
|
-
teamCentralUrl?: string;
|
|
457
|
-
// (undocumented)
|
|
458
|
-
url: string;
|
|
459
|
-
}
|
|
460
|
-
|
|
461
|
-
// @public (undocumented)
|
|
462
|
-
export type RelativeDateKeyType =
|
|
463
|
-
| 'AFewMonths'
|
|
464
|
-
| 'LastMonth'
|
|
465
|
-
| 'MoreThanAYear'
|
|
466
|
-
| 'SeveralMonths'
|
|
467
|
-
| 'ThisMonth'
|
|
468
|
-
| 'ThisWeek'
|
|
469
|
-
| null;
|
|
470
|
-
|
|
471
|
-
// @public (undocumented)
|
|
472
|
-
interface ReportingLinesUser {
|
|
473
|
-
// (undocumented)
|
|
474
|
-
accountIdentifier: string;
|
|
475
|
-
// (undocumented)
|
|
476
|
-
identifierType: 'ATLASSIAN_ID' | 'BASE64_HASH' | 'UNKNOWN';
|
|
477
|
-
// (undocumented)
|
|
478
|
-
pii?: ReportingLinesUserPII;
|
|
479
|
-
}
|
|
480
|
-
|
|
481
|
-
// @public (undocumented)
|
|
482
|
-
interface ReportingLinesUserPII {
|
|
483
|
-
// (undocumented)
|
|
484
|
-
name: string;
|
|
485
|
-
// (undocumented)
|
|
486
|
-
picture?: string;
|
|
487
|
-
}
|
|
488
|
-
|
|
489
|
-
// @public (undocumented)
|
|
490
|
-
export type StatusModifiedDateType =
|
|
491
|
-
| 'aFewMonths'
|
|
492
|
-
| 'lastMonth'
|
|
493
|
-
| 'moreThanAYear'
|
|
494
|
-
| 'noDate'
|
|
495
|
-
| 'severalMonths'
|
|
496
|
-
| 'thisMonth'
|
|
497
|
-
| 'thisWeek';
|
|
498
|
-
|
|
499
|
-
// @public (undocumented)
|
|
500
|
-
export type StatusType = 'active' | 'closed' | 'inactive';
|
|
501
|
-
|
|
502
|
-
// @public (undocumented)
|
|
503
|
-
export interface Team {
|
|
504
|
-
// (undocumented)
|
|
505
|
-
description: string;
|
|
506
|
-
// (undocumented)
|
|
507
|
-
displayName: string;
|
|
508
|
-
// (undocumented)
|
|
509
|
-
id: string;
|
|
510
|
-
// (undocumented)
|
|
511
|
-
largeAvatarImageUrl?: string;
|
|
512
|
-
// (undocumented)
|
|
513
|
-
largeHeaderImageUrl?: string;
|
|
514
|
-
// (undocumented)
|
|
515
|
-
members?: {
|
|
516
|
-
id: string;
|
|
517
|
-
fullName: string;
|
|
518
|
-
avatarUrl: string;
|
|
519
|
-
}[];
|
|
520
|
-
// (undocumented)
|
|
521
|
-
organizationId?: string;
|
|
522
|
-
// (undocumented)
|
|
523
|
-
smallAvatarImageUrl?: string;
|
|
524
|
-
// (undocumented)
|
|
525
|
-
smallHeaderImageUrl?: string;
|
|
526
|
-
}
|
|
527
|
-
|
|
528
|
-
// @public (undocumented)
|
|
529
|
-
class TeamCentralCardClient extends CachingClient<TeamCentralReportingLinesData> {
|
|
530
|
-
constructor(options: TeamCentralCardClientOptions);
|
|
531
|
-
bypassOnFailure: boolean;
|
|
532
|
-
// (undocumented)
|
|
533
|
-
checkWorkspaceExists(): Promise<boolean>;
|
|
534
|
-
// (undocumented)
|
|
535
|
-
createTcReadyPromise(config: ProfileClientOptions): Promise<boolean>;
|
|
536
|
-
// (undocumented)
|
|
537
|
-
featureFlagKeys: Map<string, boolean>;
|
|
538
|
-
// (undocumented)
|
|
539
|
-
getFlagEnabled(featureKey: string, productIdentifier?: string): Promise<boolean>;
|
|
540
|
-
// (undocumented)
|
|
541
|
-
getReportingLines(userId: string): Promise<TeamCentralReportingLinesData>;
|
|
542
|
-
// (undocumented)
|
|
543
|
-
isTCReadyPromise: Promise<boolean>;
|
|
544
|
-
// (undocumented)
|
|
545
|
-
makeFeatureFlagCheckRequest(
|
|
546
|
-
featureKey: string,
|
|
547
|
-
context?: FeatureFlagExtraContext[],
|
|
548
|
-
): Promise<boolean>;
|
|
549
|
-
// (undocumented)
|
|
550
|
-
makeRequest(userId: string): Promise<TeamCentralReportingLinesData>;
|
|
551
|
-
// (undocumented)
|
|
552
|
-
options: TeamCentralCardClientOptions;
|
|
553
|
-
}
|
|
554
|
-
|
|
555
|
-
// @public (undocumented)
|
|
556
|
-
type TeamCentralCardClientOptions = ProfileClientOptions & {
|
|
557
|
-
teamCentralUrl: string;
|
|
558
|
-
};
|
|
559
|
-
|
|
560
|
-
// @public (undocumented)
|
|
561
|
-
interface TeamCentralReportingLinesData {
|
|
562
|
-
// (undocumented)
|
|
563
|
-
managers?: ReportingLinesUser[];
|
|
564
|
-
// (undocumented)
|
|
565
|
-
reports?: ReportingLinesUser[];
|
|
566
|
-
}
|
|
567
|
-
|
|
568
|
-
// @public (undocumented)
|
|
569
|
-
export const TeamProfileCard: (props: TeamProfilecardProps) => JSX.Element | null;
|
|
570
|
-
|
|
571
|
-
// @public (undocumented)
|
|
572
|
-
interface TeamProfilecardCoreProps {
|
|
573
|
-
actions?: ProfileCardAction[];
|
|
574
|
-
generateUserLink?: (userId: string) => string;
|
|
575
|
-
onUserClick?: (userId: string, event: React_2.MouseEvent<Element>) => void;
|
|
576
|
-
viewingUserId?: string;
|
|
577
|
-
viewProfileLink: string;
|
|
578
|
-
viewProfileOnClick?: (event?: React_2.MouseEvent<Element>) => void;
|
|
579
|
-
}
|
|
580
|
-
|
|
581
|
-
// @public (undocumented)
|
|
582
|
-
type TeamProfileCardErrorType = null | {
|
|
583
|
-
reason: 'NotFound' | 'TEAMS_FORBIDDEN' | 'default';
|
|
584
|
-
};
|
|
585
|
-
|
|
586
|
-
// @public (undocumented)
|
|
587
|
-
interface TeamProfilecardProps extends TeamProfilecardCoreProps {
|
|
588
|
-
analytics: AnalyticsFunction;
|
|
589
|
-
clientFetchProfile?: () => void;
|
|
590
|
-
errorType?: TeamProfileCardErrorType;
|
|
591
|
-
hasError?: boolean;
|
|
592
|
-
isLoading?: boolean;
|
|
593
|
-
team?: Team;
|
|
594
|
-
}
|
|
595
|
-
|
|
596
|
-
// @public (undocumented)
|
|
597
|
-
export const TeamProfileCardTrigger: React_2.ForwardRefExoticComponent<
|
|
598
|
-
Pick<Omit<TeamProfileCardTriggerProps & AnalyticsProps, keyof WithAnalyticsEventsProps>, never> &
|
|
599
|
-
Partial<
|
|
600
|
-
Pick<
|
|
601
|
-
Omit<TeamProfileCardTriggerProps & AnalyticsProps, keyof WithAnalyticsEventsProps>,
|
|
602
|
-
keyof TeamProfileCardTriggerProps
|
|
603
|
-
>
|
|
604
|
-
> &
|
|
605
|
-
Partial<Pick<Partial<TeamProfileCardTriggerProps>, never>> &
|
|
606
|
-
React_2.RefAttributes<any>
|
|
607
|
-
>;
|
|
608
|
-
|
|
609
|
-
// @public (undocumented)
|
|
610
|
-
interface TeamProfileCardTriggerProps extends TeamProfilecardCoreProps {
|
|
611
|
-
addFlag?: (flag: any) => void;
|
|
612
|
-
children?: React_2.ReactNode;
|
|
613
|
-
cloudId?: string;
|
|
614
|
-
orgId: string;
|
|
615
|
-
position?: ProfilecardTriggerPosition;
|
|
616
|
-
resourceClient: ProfileClient_2;
|
|
617
|
-
teamId: string;
|
|
618
|
-
trigger?: 'click' | 'hover' | 'hover-click';
|
|
619
|
-
triggerLinkType?: 'clickable-link' | 'link' | 'none';
|
|
620
|
-
}
|
|
621
|
-
|
|
622
|
-
// @public (undocumented)
|
|
623
|
-
export class TeamProfileClient extends CachingClient<Team> {
|
|
624
|
-
constructor(options: ProfileClientOptions);
|
|
625
|
-
// (undocumented)
|
|
626
|
-
getProfile(
|
|
627
|
-
teamId: string,
|
|
628
|
-
orgId: string | undefined,
|
|
629
|
-
analytics?: (event: AnalyticsEventPayload) => void,
|
|
630
|
-
): Promise<Team>;
|
|
631
|
-
// (undocumented)
|
|
632
|
-
makeRequest(teamId: string, _orgId: string | undefined): Promise<Team>;
|
|
633
|
-
// (undocumented)
|
|
634
|
-
options: ProfileClientOptions;
|
|
635
|
-
}
|
|
636
|
-
|
|
637
|
-
// @public (undocumented)
|
|
638
|
-
export type TriggerType = 'click' | 'hover';
|
|
639
|
-
|
|
640
|
-
// @public (undocumented)
|
|
641
|
-
export class UserProfileClient extends CachingClient<any> {
|
|
642
|
-
constructor(options: ProfileClientOptions);
|
|
643
|
-
// (undocumented)
|
|
644
|
-
getProfile(
|
|
645
|
-
cloudId: string,
|
|
646
|
-
userId: string,
|
|
647
|
-
analytics?: (event: AnalyticsEventPayload) => void,
|
|
648
|
-
): Promise<any>;
|
|
649
|
-
// (undocumented)
|
|
650
|
-
makeRequest(cloudId: string, userId: string): Promise<ProfileCardClientData>;
|
|
651
|
-
// (undocumented)
|
|
652
|
-
options: ProfileClientOptions;
|
|
653
|
-
}
|
|
654
|
-
|
|
655
|
-
// @public (undocumented)
|
|
656
|
-
export function withOuterListeners<P>(
|
|
657
|
-
Component: ComponentType<P>,
|
|
658
|
-
): React_2.ComponentClass<P & WithOuterListenersProps>;
|
|
659
|
-
|
|
660
|
-
// @public (undocumented)
|
|
661
|
-
export interface WithOuterListenersProps {
|
|
662
|
-
// (undocumented)
|
|
663
|
-
handleClickOutside?: () => void;
|
|
664
|
-
// (undocumented)
|
|
665
|
-
handleEscapeKeydown?: () => void;
|
|
666
|
-
}
|
|
667
|
-
|
|
668
|
-
// (No @packageDocumentation comment for this package)
|
|
669
|
-
```
|
|
670
|
-
|
|
671
|
-
<!--SECTION END: Main Entry Types-->
|
|
672
|
-
|
|
673
|
-
### Peer Dependencies
|
|
674
|
-
|
|
675
|
-
<!--SECTION START: Peer Dependencies-->
|
|
676
|
-
|
|
677
|
-
```json
|
|
678
|
-
{
|
|
679
|
-
"react": "^16.8.0",
|
|
680
|
-
"react-dom": "^16.8.0"
|
|
681
|
-
}
|
|
682
|
-
```
|
|
683
|
-
|
|
684
|
-
<!--SECTION END: Peer Dependencies-->
|