@atlaskit/profilecard 17.2.2 → 17.2.4
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 +12 -0
- package/dist/cjs/components/Team/TeamProfileCard.js +2 -4
- package/dist/cjs/styled/Card.js +1 -1
- package/dist/cjs/styled/Error.js +1 -1
- package/dist/cjs/styled/ReportingLines.js +1 -1
- package/dist/cjs/styled/TeamCard.js +1 -1
- package/dist/cjs/util/analytics.js +1 -1
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/components/Team/TeamProfileCard.js +2 -3
- package/dist/es2019/styled/Card.js +1 -1
- package/dist/es2019/styled/Error.js +1 -1
- package/dist/es2019/styled/ReportingLines.js +1 -1
- package/dist/es2019/styled/TeamCard.js +1 -1
- package/dist/es2019/util/analytics.js +1 -1
- package/dist/es2019/version.json +1 -1
- package/dist/esm/components/Team/TeamProfileCard.js +2 -3
- package/dist/esm/styled/Card.js +1 -1
- package/dist/esm/styled/Error.js +1 -1
- package/dist/esm/styled/ReportingLines.js +1 -1
- package/dist/esm/styled/TeamCard.js +1 -1
- package/dist/esm/util/analytics.js +1 -1
- package/dist/esm/version.json +1 -1
- package/package.json +8 -7
- package/report.api.md +12 -5
- package/tmp/api-report-tmp.d.ts +565 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @atlaskit/profilecard
|
|
2
2
|
|
|
3
|
+
## 17.2.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`250ad85dd78`](https://bitbucket.org/atlassian/atlassian-frontend/commits/250ad85dd78) - [ux] Removed ButtonGroup from team profile card to fix the layout of action buttons
|
|
8
|
+
|
|
9
|
+
## 17.2.3
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- Updated dependencies
|
|
14
|
+
|
|
3
15
|
## 17.2.2
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
|
@@ -23,8 +23,6 @@ var _reactIntlNext = require("react-intl-next");
|
|
|
23
23
|
|
|
24
24
|
var _avatarGroup = _interopRequireDefault(require("@atlaskit/avatar-group"));
|
|
25
25
|
|
|
26
|
-
var _buttonGroup = _interopRequireDefault(require("@atlaskit/button/button-group"));
|
|
27
|
-
|
|
28
26
|
var _loadingButton = _interopRequireDefault(require("@atlaskit/button/loading-button"));
|
|
29
27
|
|
|
30
28
|
var _standardButton = _interopRequireDefault(require("@atlaskit/button/standard-button"));
|
|
@@ -245,7 +243,7 @@ var ButtonSection = function ButtonSection(_ref4) {
|
|
|
245
243
|
|
|
246
244
|
var extraActions = actions.slice(2);
|
|
247
245
|
var initialActions = actions.slice(0, 2);
|
|
248
|
-
return /*#__PURE__*/_react.default.createElement(
|
|
246
|
+
return /*#__PURE__*/_react.default.createElement(_TeamCard.ActionButtons, null, initialActions.map(function (action, index) {
|
|
249
247
|
return /*#__PURE__*/_react.default.createElement(ActionButton, {
|
|
250
248
|
action: action,
|
|
251
249
|
analytics: analytics,
|
|
@@ -255,7 +253,7 @@ var ButtonSection = function ButtonSection(_ref4) {
|
|
|
255
253
|
}), extraActions && /*#__PURE__*/_react.default.createElement(ExtraActions, {
|
|
256
254
|
actions: extraActions,
|
|
257
255
|
analytics: analytics
|
|
258
|
-
}))
|
|
256
|
+
}));
|
|
259
257
|
};
|
|
260
258
|
|
|
261
259
|
var TeamProfilecardContent = function TeamProfilecardContent(_ref5) {
|
package/dist/cjs/styled/Card.js
CHANGED
|
@@ -17,7 +17,7 @@ var _constants = require("@atlaskit/theme/constants");
|
|
|
17
17
|
|
|
18
18
|
var _tokens = require("@atlaskit/tokens");
|
|
19
19
|
|
|
20
|
-
var _constants2 = require("
|
|
20
|
+
var _constants2 = require("./constants");
|
|
21
21
|
|
|
22
22
|
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12, _templateObject13, _templateObject14, _templateObject15, _templateObject16, _templateObject17, _templateObject18, _templateObject19, _templateObject20, _templateObject21, _templateObject22, _templateObject23;
|
|
23
23
|
|
package/dist/cjs/styled/Error.js
CHANGED
|
@@ -19,7 +19,7 @@ var _typography = require("@atlaskit/theme/typography");
|
|
|
19
19
|
|
|
20
20
|
var _tokens = require("@atlaskit/tokens");
|
|
21
21
|
|
|
22
|
-
var _constants2 = require("
|
|
22
|
+
var _constants2 = require("./constants");
|
|
23
23
|
|
|
24
24
|
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5;
|
|
25
25
|
|
|
@@ -13,7 +13,7 @@ var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
|
13
13
|
|
|
14
14
|
var _constants = require("@atlaskit/theme/constants");
|
|
15
15
|
|
|
16
|
-
var _constants2 = require("
|
|
16
|
+
var _constants2 = require("./constants");
|
|
17
17
|
|
|
18
18
|
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5;
|
|
19
19
|
|
|
@@ -21,7 +21,7 @@ var _typography = require("@atlaskit/theme/typography");
|
|
|
21
21
|
|
|
22
22
|
var _tokens = require("@atlaskit/tokens");
|
|
23
23
|
|
|
24
|
-
var _constants2 = require("
|
|
24
|
+
var _constants2 = require("./constants");
|
|
25
25
|
|
|
26
26
|
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12, _templateObject13, _templateObject14, _templateObject15, _templateObject16;
|
|
27
27
|
|
|
@@ -59,7 +59,7 @@ var createEvent = function createEvent(eventType, action, actionSubject, actionS
|
|
|
59
59
|
actionSubjectId: actionSubjectId,
|
|
60
60
|
attributes: _objectSpread(_objectSpread({
|
|
61
61
|
packageName: "@atlaskit/profilecard",
|
|
62
|
-
packageVersion: "17.2.
|
|
62
|
+
packageVersion: "17.2.4"
|
|
63
63
|
}, attributes), {}, {
|
|
64
64
|
firedAt: Math.round((0, _performance.getPageTime)())
|
|
65
65
|
})
|
package/dist/cjs/version.json
CHANGED
|
@@ -2,7 +2,6 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
2
2
|
import React, { useCallback, useEffect, useRef, useState } from 'react';
|
|
3
3
|
import { FormattedMessage } from 'react-intl-next';
|
|
4
4
|
import AvatarGroup from '@atlaskit/avatar-group';
|
|
5
|
-
import ButtonGroup from '@atlaskit/button/button-group';
|
|
6
5
|
import LoadingButton from '@atlaskit/button/loading-button';
|
|
7
6
|
import Button from '@atlaskit/button/standard-button';
|
|
8
7
|
import MoreIcon from '@atlaskit/icon/glyph/more';
|
|
@@ -177,7 +176,7 @@ const ButtonSection = ({
|
|
|
177
176
|
|
|
178
177
|
const extraActions = actions.slice(2);
|
|
179
178
|
const initialActions = actions.slice(0, 2);
|
|
180
|
-
return /*#__PURE__*/React.createElement(
|
|
179
|
+
return /*#__PURE__*/React.createElement(ActionButtons, null, initialActions.map((action, index) => /*#__PURE__*/React.createElement(ActionButton, {
|
|
181
180
|
action: action,
|
|
182
181
|
analytics: analytics,
|
|
183
182
|
index: index,
|
|
@@ -185,7 +184,7 @@ const ButtonSection = ({
|
|
|
185
184
|
})), extraActions && /*#__PURE__*/React.createElement(ExtraActions, {
|
|
186
185
|
actions: extraActions,
|
|
187
186
|
analytics: analytics
|
|
188
|
-
}))
|
|
187
|
+
}));
|
|
189
188
|
};
|
|
190
189
|
|
|
191
190
|
const TeamProfilecardContent = ({
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import styled, { css, keyframes } from 'styled-components';
|
|
2
2
|
import { borderRadius, fontSizeSmall, gridSize } from '@atlaskit/theme/constants';
|
|
3
3
|
import { token } from '@atlaskit/tokens';
|
|
4
|
-
import { appLabelBgColor, appLabelTextColor, bgColor, boxShadow, headerBgColor, headerBgColorDisabledUser, headerTextColor, headerTextColorInactive, labelIconColor, labelTextColor } from '
|
|
4
|
+
import { appLabelBgColor, appLabelTextColor, bgColor, boxShadow, headerBgColor, headerBgColorDisabledUser, headerTextColor, headerTextColorInactive, labelIconColor, labelTextColor } from './constants';
|
|
5
5
|
|
|
6
6
|
const getFullNameMargin = props => props.noMeta ? `${gridSize() * 4.5}px 0 ${gridSize() * 1.5}px 0` : `${gridSize() * 1.5}px 0 0 0`;
|
|
7
7
|
|
|
@@ -3,7 +3,7 @@ import { N200 } from '@atlaskit/theme/colors';
|
|
|
3
3
|
import { gridSize } from '@atlaskit/theme/constants';
|
|
4
4
|
import { h400 } from '@atlaskit/theme/typography';
|
|
5
5
|
import { token } from '@atlaskit/tokens';
|
|
6
|
-
import { errorIconColor, errorTextColor, errorTitleColor } from '
|
|
6
|
+
import { errorIconColor, errorTextColor, errorTitleColor } from './constants';
|
|
7
7
|
export const ErrorWrapper = styled.div`
|
|
8
8
|
text-align: center;
|
|
9
9
|
padding: ${gridSize() * 3}px;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import styled from 'styled-components';
|
|
2
2
|
import { gridSize } from '@atlaskit/theme/constants';
|
|
3
|
-
import { appLabelTextColor } from '
|
|
3
|
+
import { appLabelTextColor } from './constants';
|
|
4
4
|
export const ReportingLinesSection = styled.div`
|
|
5
5
|
// Minor left margin to align better with existing icon fields
|
|
6
6
|
margin-left: ${gridSize() / 2}px;
|
|
@@ -3,7 +3,7 @@ import { N20, N200 } from '@atlaskit/theme/colors';
|
|
|
3
3
|
import { borderRadius, gridSize } from '@atlaskit/theme/constants';
|
|
4
4
|
import { h600 } from '@atlaskit/theme/typography';
|
|
5
5
|
import { token } from '@atlaskit/tokens';
|
|
6
|
-
import { bgColor, teamHeaderBgColor } from '
|
|
6
|
+
import { bgColor, teamHeaderBgColor } from './constants';
|
|
7
7
|
export const CardTriggerWrapper = styled.div`
|
|
8
8
|
display: inherit;
|
|
9
9
|
`;
|
|
@@ -38,7 +38,7 @@ const createEvent = (eventType, action, actionSubject, actionSubjectId, attribut
|
|
|
38
38
|
actionSubjectId,
|
|
39
39
|
attributes: {
|
|
40
40
|
packageName: "@atlaskit/profilecard",
|
|
41
|
-
packageVersion: "17.2.
|
|
41
|
+
packageVersion: "17.2.4",
|
|
42
42
|
...attributes,
|
|
43
43
|
firedAt: Math.round(getPageTime())
|
|
44
44
|
}
|
package/dist/es2019/version.json
CHANGED
|
@@ -10,7 +10,6 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
10
10
|
import React, { useCallback, useEffect, useRef, useState } from 'react';
|
|
11
11
|
import { FormattedMessage } from 'react-intl-next';
|
|
12
12
|
import AvatarGroup from '@atlaskit/avatar-group';
|
|
13
|
-
import ButtonGroup from '@atlaskit/button/button-group';
|
|
14
13
|
import LoadingButton from '@atlaskit/button/loading-button';
|
|
15
14
|
import Button from '@atlaskit/button/standard-button';
|
|
16
15
|
import MoreIcon from '@atlaskit/icon/glyph/more';
|
|
@@ -208,7 +207,7 @@ var ButtonSection = function ButtonSection(_ref4) {
|
|
|
208
207
|
|
|
209
208
|
var extraActions = actions.slice(2);
|
|
210
209
|
var initialActions = actions.slice(0, 2);
|
|
211
|
-
return /*#__PURE__*/React.createElement(
|
|
210
|
+
return /*#__PURE__*/React.createElement(ActionButtons, null, initialActions.map(function (action, index) {
|
|
212
211
|
return /*#__PURE__*/React.createElement(ActionButton, {
|
|
213
212
|
action: action,
|
|
214
213
|
analytics: analytics,
|
|
@@ -218,7 +217,7 @@ var ButtonSection = function ButtonSection(_ref4) {
|
|
|
218
217
|
}), extraActions && /*#__PURE__*/React.createElement(ExtraActions, {
|
|
219
218
|
actions: extraActions,
|
|
220
219
|
analytics: analytics
|
|
221
|
-
}))
|
|
220
|
+
}));
|
|
222
221
|
};
|
|
223
222
|
|
|
224
223
|
var TeamProfilecardContent = function TeamProfilecardContent(_ref5) {
|
package/dist/esm/styled/Card.js
CHANGED
|
@@ -5,7 +5,7 @@ var _templateObject, _templateObject2, _templateObject3, _templateObject4, _temp
|
|
|
5
5
|
import styled, { css, keyframes } from 'styled-components';
|
|
6
6
|
import { borderRadius, fontSizeSmall, gridSize } from '@atlaskit/theme/constants';
|
|
7
7
|
import { token } from '@atlaskit/tokens';
|
|
8
|
-
import { appLabelBgColor, appLabelTextColor, bgColor, boxShadow, headerBgColor, headerBgColorDisabledUser, headerTextColor, headerTextColorInactive, labelIconColor, labelTextColor } from '
|
|
8
|
+
import { appLabelBgColor, appLabelTextColor, bgColor, boxShadow, headerBgColor, headerBgColorDisabledUser, headerTextColor, headerTextColorInactive, labelIconColor, labelTextColor } from './constants';
|
|
9
9
|
|
|
10
10
|
var getFullNameMargin = function getFullNameMargin(props) {
|
|
11
11
|
return props.noMeta ? "".concat(gridSize() * 4.5, "px 0 ").concat(gridSize() * 1.5, "px 0") : "".concat(gridSize() * 1.5, "px 0 0 0");
|
package/dist/esm/styled/Error.js
CHANGED
|
@@ -7,7 +7,7 @@ import { N200 } from '@atlaskit/theme/colors';
|
|
|
7
7
|
import { gridSize } from '@atlaskit/theme/constants';
|
|
8
8
|
import { h400 } from '@atlaskit/theme/typography';
|
|
9
9
|
import { token } from '@atlaskit/tokens';
|
|
10
|
-
import { errorIconColor, errorTextColor, errorTitleColor } from '
|
|
10
|
+
import { errorIconColor, errorTextColor, errorTitleColor } from './constants';
|
|
11
11
|
export var ErrorWrapper = styled.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n text-align: center;\n padding: ", "px;\n color: ", ";\n"])), gridSize() * 3, errorIconColor);
|
|
12
12
|
export var ErrorTitle = styled.p(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n color: ", ";\n line-height: ", "px;\n margin: ", "px 0;\n"])), errorTitleColor, gridSize() * 3, gridSize);
|
|
13
13
|
export var ErrorText = styled.span(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n color: ", ";\n"])), errorTextColor);
|
|
@@ -4,7 +4,7 @@ var _templateObject, _templateObject2, _templateObject3, _templateObject4, _temp
|
|
|
4
4
|
|
|
5
5
|
import styled from 'styled-components';
|
|
6
6
|
import { gridSize } from '@atlaskit/theme/constants';
|
|
7
|
-
import { appLabelTextColor } from '
|
|
7
|
+
import { appLabelTextColor } from './constants';
|
|
8
8
|
export var ReportingLinesSection = styled.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n // Minor left margin to align better with existing icon fields\n margin-left: ", "px;\n margin-top: ", "px;\n"])), gridSize() / 2, gridSize());
|
|
9
9
|
export var ReportingLinesHeading = styled.h5(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n color: ", ";\n font-size: ", "px;\n font-weight: 600;\n margin-bottom: ", "px;\n"])), appLabelTextColor, gridSize() * 1.5, gridSize());
|
|
10
10
|
export var ManagerSection = styled.div(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n display: flex;\n align-items: center;\n margin: ", "px ", "px;\n"])), gridSize() / 2, gridSize() / 2);
|
|
@@ -7,7 +7,7 @@ import { N20, N200 } from '@atlaskit/theme/colors';
|
|
|
7
7
|
import { borderRadius, gridSize } from '@atlaskit/theme/constants';
|
|
8
8
|
import { h600 } from '@atlaskit/theme/typography';
|
|
9
9
|
import { token } from '@atlaskit/tokens';
|
|
10
|
-
import { bgColor, teamHeaderBgColor } from '
|
|
10
|
+
import { bgColor, teamHeaderBgColor } from './constants';
|
|
11
11
|
export var CardTriggerWrapper = styled.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: inherit;\n"])));
|
|
12
12
|
export var CardWrapper = styled.div(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n background-color: ", ";\n border-radius: ", "px;\n width: ", "px;\n position: relative;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n"])), bgColor, borderRadius, gridSize() * 40);
|
|
13
13
|
var loadingImage = css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n background-color: ", ";\n"])), token('color.background.neutral', N20));
|
|
@@ -48,7 +48,7 @@ var createEvent = function createEvent(eventType, action, actionSubject, actionS
|
|
|
48
48
|
actionSubjectId: actionSubjectId,
|
|
49
49
|
attributes: _objectSpread(_objectSpread({
|
|
50
50
|
packageName: "@atlaskit/profilecard",
|
|
51
|
-
packageVersion: "17.2.
|
|
51
|
+
packageVersion: "17.2.4"
|
|
52
52
|
}, attributes), {}, {
|
|
53
53
|
firedAt: Math.round(getPageTime())
|
|
54
54
|
})
|
package/dist/esm/version.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/profilecard",
|
|
3
|
-
"version": "17.2.
|
|
3
|
+
"version": "17.2.4",
|
|
4
4
|
"description": "A React component to display a card with user information.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -15,7 +15,8 @@
|
|
|
15
15
|
"typesVersions": {
|
|
16
16
|
">=4.0 <4.5": {
|
|
17
17
|
"*": [
|
|
18
|
-
"dist/types-ts4.0/*"
|
|
18
|
+
"dist/types-ts4.0/*",
|
|
19
|
+
"dist/types-ts4.0/index.d.ts"
|
|
19
20
|
]
|
|
20
21
|
}
|
|
21
22
|
},
|
|
@@ -46,15 +47,15 @@
|
|
|
46
47
|
},
|
|
47
48
|
"dependencies": {
|
|
48
49
|
"@atlaskit/analytics-next": "^8.2.0",
|
|
49
|
-
"@atlaskit/avatar": "^21.
|
|
50
|
-
"@atlaskit/avatar-group": "^9.
|
|
50
|
+
"@atlaskit/avatar": "^21.1.0",
|
|
51
|
+
"@atlaskit/avatar-group": "^9.1.0",
|
|
51
52
|
"@atlaskit/button": "^16.3.0",
|
|
52
53
|
"@atlaskit/dropdown-menu": "^11.5.0",
|
|
53
|
-
"@atlaskit/give-kudos": "^0.
|
|
54
|
-
"@atlaskit/icon": "^21.
|
|
54
|
+
"@atlaskit/give-kudos": "^0.8.0",
|
|
55
|
+
"@atlaskit/icon": "^21.11.0",
|
|
55
56
|
"@atlaskit/lozenge": "^11.2.0",
|
|
56
57
|
"@atlaskit/menu": "^1.3.0",
|
|
57
|
-
"@atlaskit/popup": "^1.
|
|
58
|
+
"@atlaskit/popup": "^1.5.0",
|
|
58
59
|
"@atlaskit/spinner": "^15.0.0",
|
|
59
60
|
"@atlaskit/theme": "^12.2.0",
|
|
60
61
|
"@atlaskit/tokens": "^0.10.0",
|
package/report.api.md
CHANGED
|
@@ -1,12 +1,17 @@
|
|
|
1
|
+
<!-- API Report Version: 2.3 -->
|
|
2
|
+
|
|
1
3
|
## API Report File for "@atlaskit/profilecard"
|
|
2
4
|
|
|
3
|
-
> Do not edit this file.
|
|
5
|
+
> Do not edit this file. This report is auto-generated using [API Extractor](https://api-extractor.com/).
|
|
6
|
+
> [Learn more about API reports](https://hello.atlassian.net/wiki/spaces/UR/pages/1825484529/Package+API+Reports)
|
|
7
|
+
|
|
8
|
+
### Table of contents
|
|
4
9
|
|
|
5
|
-
|
|
6
|
-
Generated API Report version: 2.1
|
|
7
|
-
-->
|
|
10
|
+
- [Main Entry Types](#main-entry-types)
|
|
8
11
|
|
|
9
|
-
|
|
12
|
+
### Main Entry Types
|
|
13
|
+
|
|
14
|
+
<!--SECTION START: Main Entry Types-->
|
|
10
15
|
|
|
11
16
|
```ts
|
|
12
17
|
/// <reference types="react" />
|
|
@@ -700,3 +705,5 @@ export interface WithOuterListenersProps {
|
|
|
700
705
|
|
|
701
706
|
// (No @packageDocumentation comment for this package)
|
|
702
707
|
```
|
|
708
|
+
|
|
709
|
+
<!--SECTION END: Main Entry Types-->
|
|
@@ -0,0 +1,565 @@
|
|
|
1
|
+
## API Report File for "@atlaskit/profilecard"
|
|
2
|
+
|
|
3
|
+
> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
|
|
4
|
+
|
|
5
|
+
```ts
|
|
6
|
+
|
|
7
|
+
/// <reference types="react" />
|
|
8
|
+
|
|
9
|
+
import { AnalyticsEventPayload } from '@atlaskit/analytics-next';
|
|
10
|
+
import { ComponentType } from 'react';
|
|
11
|
+
import { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
12
|
+
import { IntlShape } from 'react-intl-next';
|
|
13
|
+
import { LRUCache } from 'lru-fast';
|
|
14
|
+
import { default as React_2 } from 'react';
|
|
15
|
+
import { WithAnalyticsEventsProps } from '@atlaskit/analytics-next';
|
|
16
|
+
|
|
17
|
+
// @public (undocumented)
|
|
18
|
+
type AnalyticsFromDuration = (duration: number) => AnalyticsEventPayload;
|
|
19
|
+
|
|
20
|
+
// @public (undocumented)
|
|
21
|
+
type AnalyticsFunction = (generator: AnalyticsFromDuration) => void;
|
|
22
|
+
|
|
23
|
+
// @public (undocumented)
|
|
24
|
+
interface AnalyticsProps {
|
|
25
|
+
// (undocumented)
|
|
26
|
+
createAnalyticsEvent?: CreateUIAnalyticsEvent;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
// @public (undocumented)
|
|
30
|
+
export interface ApiClientResponse {
|
|
31
|
+
// (undocumented)
|
|
32
|
+
User: {
|
|
33
|
+
id: string;
|
|
34
|
+
isBot: boolean;
|
|
35
|
+
isCurrentUser: boolean;
|
|
36
|
+
avatarUrl: null | string;
|
|
37
|
+
email: null | string;
|
|
38
|
+
fullName: null | string;
|
|
39
|
+
location: null | string;
|
|
40
|
+
meta: null | string;
|
|
41
|
+
nickname: null | string;
|
|
42
|
+
companyName: null | string;
|
|
43
|
+
remoteTimeString: null | string;
|
|
44
|
+
remoteWeekdayIndex: null | string;
|
|
45
|
+
remoteWeekdayString: null | string;
|
|
46
|
+
status: StatusType;
|
|
47
|
+
statusModifiedDate: null | number;
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
// @public (undocumented)
|
|
52
|
+
interface CacheConfig {
|
|
53
|
+
// (undocumented)
|
|
54
|
+
cacheMaxAge?: number;
|
|
55
|
+
// (undocumented)
|
|
56
|
+
cacheSize?: number;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
// @public (undocumented)
|
|
60
|
+
interface CachedData<T> {
|
|
61
|
+
// (undocumented)
|
|
62
|
+
expire: number;
|
|
63
|
+
// (undocumented)
|
|
64
|
+
profile: T;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
// @public (undocumented)
|
|
68
|
+
class CachingClient<T> {
|
|
69
|
+
constructor(config: CacheConfig);
|
|
70
|
+
// (undocumented)
|
|
71
|
+
cache: LRUCache<string, CachedData<T>> | null;
|
|
72
|
+
// (undocumented)
|
|
73
|
+
config: Required<CacheConfig>;
|
|
74
|
+
// (undocumented)
|
|
75
|
+
flushCache(): void;
|
|
76
|
+
// (undocumented)
|
|
77
|
+
getCachedProfile(cacheIdentifier: string): T | null;
|
|
78
|
+
// (undocumented)
|
|
79
|
+
setCachedProfile(cacheIdentifier: string, profile: T): void;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
// @public (undocumented)
|
|
83
|
+
interface ClientOverrides {
|
|
84
|
+
// (undocumented)
|
|
85
|
+
teamCentralClient?: TeamCentralCardClient;
|
|
86
|
+
// (undocumented)
|
|
87
|
+
teamClient?: TeamProfileClient;
|
|
88
|
+
// (undocumented)
|
|
89
|
+
userClient?: UserProfileClient;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
// @public (undocumented)
|
|
93
|
+
const _default: React_2.ForwardRefExoticComponent<Pick<Omit<ProfileCardResourcedProps & AnalyticsProps, keyof WithAnalyticsEventsProps>, never> & Partial<Pick<Omit<ProfileCardResourcedProps & AnalyticsProps, keyof WithAnalyticsEventsProps>, keyof ProfileCardResourcedProps>> & Partial<Pick<Partial<ProfileCardResourcedProps>, never>> & React_2.RefAttributes<any>>;
|
|
94
|
+
export default _default;
|
|
95
|
+
|
|
96
|
+
// @public (undocumented)
|
|
97
|
+
export const DELAY_MS_HIDE = 200;
|
|
98
|
+
|
|
99
|
+
// @public (undocumented)
|
|
100
|
+
export const DELAY_MS_SHOW = 800;
|
|
101
|
+
|
|
102
|
+
// @public (undocumented)
|
|
103
|
+
type FeatureFlagExtraContext = {
|
|
104
|
+
key: string;
|
|
105
|
+
value: string;
|
|
106
|
+
};
|
|
107
|
+
|
|
108
|
+
// @public (undocumented)
|
|
109
|
+
type LozengeColor = 'default' | 'inprogress' | 'moved' | 'new' | 'removed' | 'success';
|
|
110
|
+
|
|
111
|
+
// @public (undocumented)
|
|
112
|
+
interface LozengeProps {
|
|
113
|
+
// (undocumented)
|
|
114
|
+
appearance?: LozengeColor;
|
|
115
|
+
// (undocumented)
|
|
116
|
+
isBold?: boolean;
|
|
117
|
+
// (undocumented)
|
|
118
|
+
text: React_2.ReactNode;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
// @public (undocumented)
|
|
122
|
+
export interface MessageIntlProviderProps {
|
|
123
|
+
// (undocumented)
|
|
124
|
+
children: React_2.ReactNode;
|
|
125
|
+
// (undocumented)
|
|
126
|
+
intl: IntlShape;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
// @public
|
|
130
|
+
export const modifyResponse: (response: ApiClientResponse) => ProfileCardClientData;
|
|
131
|
+
|
|
132
|
+
// @public (undocumented)
|
|
133
|
+
export const ProfileCard: React_2.ForwardRefExoticComponent<Omit<ProfilecardProps & AnalyticsProps, keyof WithAnalyticsEventsProps> & React_2.RefAttributes<any>>;
|
|
134
|
+
|
|
135
|
+
// @public (undocumented)
|
|
136
|
+
export interface ProfileCardAction {
|
|
137
|
+
// (undocumented)
|
|
138
|
+
callback?: (...args: any[]) => any;
|
|
139
|
+
// (undocumented)
|
|
140
|
+
id?: string;
|
|
141
|
+
// (undocumented)
|
|
142
|
+
label: React_2.ReactNode;
|
|
143
|
+
// (undocumented)
|
|
144
|
+
link?: string;
|
|
145
|
+
// (undocumented)
|
|
146
|
+
shouldRender?: (data: any) => boolean;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
// @public (undocumented)
|
|
150
|
+
export interface ProfileCardClientData {
|
|
151
|
+
// (undocumented)
|
|
152
|
+
avatarUrl?: string;
|
|
153
|
+
// (undocumented)
|
|
154
|
+
companyName?: string;
|
|
155
|
+
// (undocumented)
|
|
156
|
+
customLozenges?: LozengeProps[];
|
|
157
|
+
// (undocumented)
|
|
158
|
+
email?: string;
|
|
159
|
+
// (undocumented)
|
|
160
|
+
fullName?: string;
|
|
161
|
+
// (undocumented)
|
|
162
|
+
isBot: boolean;
|
|
163
|
+
// (undocumented)
|
|
164
|
+
isCurrentUser: boolean;
|
|
165
|
+
// (undocumented)
|
|
166
|
+
location?: string;
|
|
167
|
+
// (undocumented)
|
|
168
|
+
meta?: string;
|
|
169
|
+
// (undocumented)
|
|
170
|
+
nickname?: string;
|
|
171
|
+
// (undocumented)
|
|
172
|
+
status: StatusType;
|
|
173
|
+
// (undocumented)
|
|
174
|
+
statusModifiedDate?: null | number;
|
|
175
|
+
// (undocumented)
|
|
176
|
+
timestring?: string;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
// @public (undocumented)
|
|
180
|
+
export type ProfileCardErrorType = null | {
|
|
181
|
+
reason: 'NotFound' | 'default';
|
|
182
|
+
};
|
|
183
|
+
|
|
184
|
+
// @public (undocumented)
|
|
185
|
+
export interface ProfilecardProps {
|
|
186
|
+
// (undocumented)
|
|
187
|
+
actions?: ProfileCardAction[];
|
|
188
|
+
// (undocumented)
|
|
189
|
+
addFlag?: (flag: any) => void;
|
|
190
|
+
// (undocumented)
|
|
191
|
+
avatarUrl?: string;
|
|
192
|
+
// (undocumented)
|
|
193
|
+
clientFetchProfile?: () => void;
|
|
194
|
+
// (undocumented)
|
|
195
|
+
cloudId?: string;
|
|
196
|
+
// (undocumented)
|
|
197
|
+
companyName?: string;
|
|
198
|
+
// (undocumented)
|
|
199
|
+
customLozenges?: LozengeProps[];
|
|
200
|
+
// (undocumented)
|
|
201
|
+
disabledAccountMessage?: React_2.ReactNode;
|
|
202
|
+
// (undocumented)
|
|
203
|
+
email?: string;
|
|
204
|
+
// (undocumented)
|
|
205
|
+
errorType?: ProfileCardErrorType;
|
|
206
|
+
// (undocumented)
|
|
207
|
+
fullName?: string;
|
|
208
|
+
// (undocumented)
|
|
209
|
+
hasDisabledAccountLozenge?: boolean;
|
|
210
|
+
// (undocumented)
|
|
211
|
+
hasError?: boolean;
|
|
212
|
+
// (undocumented)
|
|
213
|
+
isBot?: boolean;
|
|
214
|
+
// (undocumented)
|
|
215
|
+
isCurrentUser?: boolean;
|
|
216
|
+
// (undocumented)
|
|
217
|
+
isKudosEnabled?: boolean;
|
|
218
|
+
// (undocumented)
|
|
219
|
+
isLoading?: boolean;
|
|
220
|
+
// (undocumented)
|
|
221
|
+
location?: string;
|
|
222
|
+
// (undocumented)
|
|
223
|
+
meta?: string;
|
|
224
|
+
// (undocumented)
|
|
225
|
+
nickname?: string;
|
|
226
|
+
onReportingLinesClick?: (user: ReportingLinesUser) => void;
|
|
227
|
+
// (undocumented)
|
|
228
|
+
openKudosDrawer?: () => void;
|
|
229
|
+
reportingLines?: TeamCentralReportingLinesData;
|
|
230
|
+
reportingLinesProfileUrl?: string;
|
|
231
|
+
// (undocumented)
|
|
232
|
+
status?: StatusType;
|
|
233
|
+
// (undocumented)
|
|
234
|
+
statusModifiedDate?: null | number;
|
|
235
|
+
// (undocumented)
|
|
236
|
+
teamCentralBaseUrl?: string;
|
|
237
|
+
// (undocumented)
|
|
238
|
+
timestring?: string;
|
|
239
|
+
// (undocumented)
|
|
240
|
+
userId?: string;
|
|
241
|
+
// (undocumented)
|
|
242
|
+
withoutElevation?: boolean;
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
// @public (undocumented)
|
|
246
|
+
export interface ProfileCardResourcedProps {
|
|
247
|
+
// (undocumented)
|
|
248
|
+
actions?: ProfileCardAction[];
|
|
249
|
+
// (undocumented)
|
|
250
|
+
addFlag?: (flag: any) => void;
|
|
251
|
+
// (undocumented)
|
|
252
|
+
children?: React_2.ReactNode;
|
|
253
|
+
// (undocumented)
|
|
254
|
+
cloudId: string;
|
|
255
|
+
// (undocumented)
|
|
256
|
+
onReportingLinesClick?: (user: ReportingLinesUser) => void;
|
|
257
|
+
// (undocumented)
|
|
258
|
+
position?: ProfilecardTriggerPosition;
|
|
259
|
+
// (undocumented)
|
|
260
|
+
reportingLinesProfileUrl?: string;
|
|
261
|
+
// (undocumented)
|
|
262
|
+
resourceClient: ProfileClient_2;
|
|
263
|
+
// (undocumented)
|
|
264
|
+
trigger?: TriggerType;
|
|
265
|
+
// (undocumented)
|
|
266
|
+
userId: string;
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
// @public (undocumented)
|
|
270
|
+
export interface ProfileCardResourcedState {
|
|
271
|
+
// (undocumented)
|
|
272
|
+
data: ProfileCardClientData | null;
|
|
273
|
+
// (undocumented)
|
|
274
|
+
error?: ProfileCardErrorType;
|
|
275
|
+
// (undocumented)
|
|
276
|
+
hasError: boolean;
|
|
277
|
+
// (undocumented)
|
|
278
|
+
isKudosEnabled?: boolean;
|
|
279
|
+
// (undocumented)
|
|
280
|
+
isLoading?: boolean;
|
|
281
|
+
// (undocumented)
|
|
282
|
+
kudosDrawerOpen: boolean;
|
|
283
|
+
// (undocumented)
|
|
284
|
+
reportingLinesData?: TeamCentralReportingLinesData;
|
|
285
|
+
// (undocumented)
|
|
286
|
+
visible?: boolean;
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
// @public (undocumented)
|
|
290
|
+
export const ProfileCardTrigger: React_2.ForwardRefExoticComponent<Pick<Omit<ProfileCardTriggerProps & AnalyticsProps, keyof WithAnalyticsEventsProps>, never> & Partial<Pick<Omit<ProfileCardTriggerProps & AnalyticsProps, keyof WithAnalyticsEventsProps>, keyof ProfileCardTriggerProps>> & Partial<Pick<Partial<ProfileCardTriggerProps>, never>> & React_2.RefAttributes<any>>;
|
|
291
|
+
|
|
292
|
+
// @public (undocumented)
|
|
293
|
+
export type ProfilecardTriggerPosition = 'bottom' | 'bottom-end' | 'bottom-start' | 'left' | 'left-end' | 'left-start' | 'right' | 'right-end' | 'right-start' | 'top' | 'top-end' | 'top-start';
|
|
294
|
+
|
|
295
|
+
// @public (undocumented)
|
|
296
|
+
export interface ProfileCardTriggerProps {
|
|
297
|
+
// (undocumented)
|
|
298
|
+
actions?: ProfileCardAction[];
|
|
299
|
+
// (undocumented)
|
|
300
|
+
addFlag?: (flag: any) => void;
|
|
301
|
+
// (undocumented)
|
|
302
|
+
children?: React_2.ReactNode;
|
|
303
|
+
cloudId?: string;
|
|
304
|
+
// (undocumented)
|
|
305
|
+
onReportingLinesClick?: (user: ReportingLinesUser) => void;
|
|
306
|
+
// (undocumented)
|
|
307
|
+
position?: ProfilecardTriggerPosition;
|
|
308
|
+
// (undocumented)
|
|
309
|
+
reportingLinesProfileUrl?: string;
|
|
310
|
+
// (undocumented)
|
|
311
|
+
resourceClient: ProfileClient_2;
|
|
312
|
+
// (undocumented)
|
|
313
|
+
testId?: string;
|
|
314
|
+
// (undocumented)
|
|
315
|
+
trigger?: TriggerType;
|
|
316
|
+
// (undocumented)
|
|
317
|
+
userId: string;
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
// @public (undocumented)
|
|
321
|
+
export interface ProfileCardTriggerState {
|
|
322
|
+
// (undocumented)
|
|
323
|
+
data: ProfileCardClientData | null;
|
|
324
|
+
// (undocumented)
|
|
325
|
+
error?: ProfileCardErrorType;
|
|
326
|
+
// (undocumented)
|
|
327
|
+
hasError: boolean;
|
|
328
|
+
// (undocumented)
|
|
329
|
+
isLoading?: boolean;
|
|
330
|
+
// (undocumented)
|
|
331
|
+
kudosDrawerOpen: boolean;
|
|
332
|
+
// (undocumented)
|
|
333
|
+
reportingLinesData?: TeamCentralReportingLinesData;
|
|
334
|
+
// (undocumented)
|
|
335
|
+
shouldShowGiveKudos?: boolean;
|
|
336
|
+
// (undocumented)
|
|
337
|
+
teamCentralBaseUrl?: string;
|
|
338
|
+
// (undocumented)
|
|
339
|
+
visible?: boolean;
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
// @public (undocumented)
|
|
343
|
+
export class ProfileClient {
|
|
344
|
+
constructor(config: ProfileClientOptions, clients?: ClientOverrides);
|
|
345
|
+
// (undocumented)
|
|
346
|
+
flushCache(): void;
|
|
347
|
+
// (undocumented)
|
|
348
|
+
getProfile(cloudId: string, userId: string, analytics?: (event: AnalyticsEventPayload) => void): Promise<any>;
|
|
349
|
+
// (undocumented)
|
|
350
|
+
getReportingLines(userId: string): Promise<TeamCentralReportingLinesData>;
|
|
351
|
+
// (undocumented)
|
|
352
|
+
getTeamCentralBaseUrl(): string | undefined;
|
|
353
|
+
// (undocumented)
|
|
354
|
+
getTeamProfile(teamId: string, orgId?: string, analytics?: (event: AnalyticsEventPayload) => void): Promise<Team>;
|
|
355
|
+
// (undocumented)
|
|
356
|
+
shouldShowGiveKudos(): Promise<boolean>;
|
|
357
|
+
// (undocumented)
|
|
358
|
+
tcClient?: TeamCentralCardClient;
|
|
359
|
+
// (undocumented)
|
|
360
|
+
teamClient: TeamProfileClient;
|
|
361
|
+
// (undocumented)
|
|
362
|
+
userClient: UserProfileClient;
|
|
363
|
+
}
|
|
364
|
+
|
|
365
|
+
// @public (undocumented)
|
|
366
|
+
interface ProfileClient_2 {
|
|
367
|
+
// (undocumented)
|
|
368
|
+
flushCache: () => void;
|
|
369
|
+
// (undocumented)
|
|
370
|
+
getProfile: (cloudId: string, userId: string, analytics?: (event: AnalyticsEventPayload) => void) => Promise<ProfileCardClientData>;
|
|
371
|
+
// (undocumented)
|
|
372
|
+
getReportingLines: (userId: string) => Promise<TeamCentralReportingLinesData>;
|
|
373
|
+
// (undocumented)
|
|
374
|
+
getTeamCentralBaseUrl: () => string | undefined;
|
|
375
|
+
// (undocumented)
|
|
376
|
+
getTeamProfile: (teamId: string, orgId?: string, fireAnalytics?: (event: AnalyticsEventPayload) => void) => Promise<Team>;
|
|
377
|
+
// (undocumented)
|
|
378
|
+
shouldShowGiveKudos: () => Promise<boolean>;
|
|
379
|
+
}
|
|
380
|
+
|
|
381
|
+
// @public (undocumented)
|
|
382
|
+
export interface ProfileClientOptions {
|
|
383
|
+
// (undocumented)
|
|
384
|
+
cacheMaxAge?: number;
|
|
385
|
+
// (undocumented)
|
|
386
|
+
cacheSize?: number;
|
|
387
|
+
// (undocumented)
|
|
388
|
+
cloudId?: string;
|
|
389
|
+
// (undocumented)
|
|
390
|
+
gatewayGraphqlUrl?: string;
|
|
391
|
+
productIdentifier?: string;
|
|
392
|
+
teamCentralBaseUrl?: string;
|
|
393
|
+
teamCentralUrl?: string;
|
|
394
|
+
// (undocumented)
|
|
395
|
+
url: string;
|
|
396
|
+
}
|
|
397
|
+
|
|
398
|
+
// @public (undocumented)
|
|
399
|
+
export type RelativeDateKeyType = 'AFewMonths' | 'LastMonth' | 'MoreThanAYear' | 'SeveralMonths' | 'ThisMonth' | 'ThisWeek' | null;
|
|
400
|
+
|
|
401
|
+
// @public (undocumented)
|
|
402
|
+
interface ReportingLinesUser {
|
|
403
|
+
// (undocumented)
|
|
404
|
+
accountIdentifier: string;
|
|
405
|
+
// (undocumented)
|
|
406
|
+
identifierType: 'ATLASSIAN_ID' | 'BASE64_HASH' | 'UNKNOWN';
|
|
407
|
+
// (undocumented)
|
|
408
|
+
pii?: ReportingLinesUserPII;
|
|
409
|
+
}
|
|
410
|
+
|
|
411
|
+
// @public (undocumented)
|
|
412
|
+
interface ReportingLinesUserPII {
|
|
413
|
+
// (undocumented)
|
|
414
|
+
name: string;
|
|
415
|
+
// (undocumented)
|
|
416
|
+
picture?: string;
|
|
417
|
+
}
|
|
418
|
+
|
|
419
|
+
// @public (undocumented)
|
|
420
|
+
export type StatusModifiedDateType = 'aFewMonths' | 'lastMonth' | 'moreThanAYear' | 'noDate' | 'severalMonths' | 'thisMonth' | 'thisWeek';
|
|
421
|
+
|
|
422
|
+
// @public (undocumented)
|
|
423
|
+
export type StatusType = 'active' | 'closed' | 'inactive';
|
|
424
|
+
|
|
425
|
+
// @public (undocumented)
|
|
426
|
+
export interface Team {
|
|
427
|
+
// (undocumented)
|
|
428
|
+
description: string;
|
|
429
|
+
// (undocumented)
|
|
430
|
+
displayName: string;
|
|
431
|
+
// (undocumented)
|
|
432
|
+
id: string;
|
|
433
|
+
// (undocumented)
|
|
434
|
+
largeAvatarImageUrl?: string;
|
|
435
|
+
// (undocumented)
|
|
436
|
+
largeHeaderImageUrl?: string;
|
|
437
|
+
// (undocumented)
|
|
438
|
+
members?: {
|
|
439
|
+
id: string;
|
|
440
|
+
fullName: string;
|
|
441
|
+
avatarUrl: string;
|
|
442
|
+
}[];
|
|
443
|
+
// (undocumented)
|
|
444
|
+
organizationId?: string;
|
|
445
|
+
// (undocumented)
|
|
446
|
+
smallAvatarImageUrl?: string;
|
|
447
|
+
// (undocumented)
|
|
448
|
+
smallHeaderImageUrl?: string;
|
|
449
|
+
}
|
|
450
|
+
|
|
451
|
+
// @public (undocumented)
|
|
452
|
+
class TeamCentralCardClient extends CachingClient<TeamCentralReportingLinesData> {
|
|
453
|
+
constructor(options: TeamCentralCardClientOptions);
|
|
454
|
+
bypassOnFailure: boolean;
|
|
455
|
+
// (undocumented)
|
|
456
|
+
createTcReadyPromise(config: ProfileClientOptions): Promise<boolean>;
|
|
457
|
+
// (undocumented)
|
|
458
|
+
featureFlagKeys: Map<string, boolean>;
|
|
459
|
+
// (undocumented)
|
|
460
|
+
getFlagEnabled(featureKey: string, productIdentifier?: string): Promise<boolean>;
|
|
461
|
+
// (undocumented)
|
|
462
|
+
getReportingLines(userId: string): Promise<TeamCentralReportingLinesData>;
|
|
463
|
+
// (undocumented)
|
|
464
|
+
isTCReadyPromise: Promise<boolean>;
|
|
465
|
+
// (undocumented)
|
|
466
|
+
makeFeatureFlagCheckRequest(featureKey: string, context?: FeatureFlagExtraContext[]): Promise<boolean>;
|
|
467
|
+
// (undocumented)
|
|
468
|
+
makeRequest(userId: string): Promise<TeamCentralReportingLinesData>;
|
|
469
|
+
// (undocumented)
|
|
470
|
+
options: TeamCentralCardClientOptions;
|
|
471
|
+
}
|
|
472
|
+
|
|
473
|
+
// @public (undocumented)
|
|
474
|
+
type TeamCentralCardClientOptions = ProfileClientOptions & {
|
|
475
|
+
teamCentralUrl: string;
|
|
476
|
+
};
|
|
477
|
+
|
|
478
|
+
// @public (undocumented)
|
|
479
|
+
interface TeamCentralReportingLinesData {
|
|
480
|
+
// (undocumented)
|
|
481
|
+
managers?: ReportingLinesUser[];
|
|
482
|
+
// (undocumented)
|
|
483
|
+
reports?: ReportingLinesUser[];
|
|
484
|
+
}
|
|
485
|
+
|
|
486
|
+
// @public (undocumented)
|
|
487
|
+
export const TeamProfileCard: (props: TeamProfilecardProps) => JSX.Element | null;
|
|
488
|
+
|
|
489
|
+
// @public (undocumented)
|
|
490
|
+
interface TeamProfilecardCoreProps {
|
|
491
|
+
actions?: ProfileCardAction[];
|
|
492
|
+
generateUserLink?: (userId: string) => string;
|
|
493
|
+
onUserClick?: (userId: string, event: React_2.MouseEvent<Element>) => void;
|
|
494
|
+
viewingUserId?: string;
|
|
495
|
+
viewProfileLink: string;
|
|
496
|
+
viewProfileOnClick?: (event?: React_2.MouseEvent<Element>) => void;
|
|
497
|
+
}
|
|
498
|
+
|
|
499
|
+
// @public (undocumented)
|
|
500
|
+
interface TeamProfilecardProps extends TeamProfilecardCoreProps {
|
|
501
|
+
analytics: AnalyticsFunction;
|
|
502
|
+
clientFetchProfile?: () => void;
|
|
503
|
+
errorType?: ProfileCardErrorType;
|
|
504
|
+
hasError?: boolean;
|
|
505
|
+
isLoading?: boolean;
|
|
506
|
+
team?: Team;
|
|
507
|
+
}
|
|
508
|
+
|
|
509
|
+
// @public (undocumented)
|
|
510
|
+
export const TeamProfileCardTrigger: React_2.ForwardRefExoticComponent<Pick<Omit<TeamProfileCardTriggerProps & AnalyticsProps, keyof WithAnalyticsEventsProps>, never> & Partial<Pick<Omit<TeamProfileCardTriggerProps & AnalyticsProps, keyof WithAnalyticsEventsProps>, keyof TeamProfileCardTriggerProps>> & Partial<Pick<Partial<TeamProfileCardTriggerProps>, never>> & React_2.RefAttributes<any>>;
|
|
511
|
+
|
|
512
|
+
// @public (undocumented)
|
|
513
|
+
interface TeamProfileCardTriggerProps extends TeamProfilecardCoreProps {
|
|
514
|
+
addFlag?: (flag: any) => void;
|
|
515
|
+
children?: React_2.ReactNode;
|
|
516
|
+
cloudId?: string;
|
|
517
|
+
orgId: string;
|
|
518
|
+
position?: ProfilecardTriggerPosition;
|
|
519
|
+
resourceClient: ProfileClient_2;
|
|
520
|
+
teamId: string;
|
|
521
|
+
trigger?: 'click' | 'hover' | 'hover-click';
|
|
522
|
+
triggerLinkType?: 'clickable-link' | 'link' | 'none';
|
|
523
|
+
}
|
|
524
|
+
|
|
525
|
+
// @public (undocumented)
|
|
526
|
+
export class TeamProfileClient extends CachingClient<Team> {
|
|
527
|
+
constructor(options: ProfileClientOptions);
|
|
528
|
+
// (undocumented)
|
|
529
|
+
getProfile(teamId: string, orgId: string | undefined, analytics?: (event: AnalyticsEventPayload) => void): Promise<Team>;
|
|
530
|
+
// (undocumented)
|
|
531
|
+
makeRequest(teamId: string, orgId: string | undefined): Promise<Team>;
|
|
532
|
+
// (undocumented)
|
|
533
|
+
makeRequestViaGateway(teamId: string, _orgId: string | undefined): Promise<Team>;
|
|
534
|
+
// (undocumented)
|
|
535
|
+
options: ProfileClientOptions;
|
|
536
|
+
}
|
|
537
|
+
|
|
538
|
+
// @public (undocumented)
|
|
539
|
+
export type TriggerType = 'click' | 'hover';
|
|
540
|
+
|
|
541
|
+
// @public (undocumented)
|
|
542
|
+
export class UserProfileClient extends CachingClient<any> {
|
|
543
|
+
constructor(options: ProfileClientOptions);
|
|
544
|
+
// (undocumented)
|
|
545
|
+
getProfile(cloudId: string, userId: string, analytics?: (event: AnalyticsEventPayload) => void): Promise<any>;
|
|
546
|
+
// (undocumented)
|
|
547
|
+
makeRequest(cloudId: string, userId: string): Promise<ProfileCardClientData>;
|
|
548
|
+
// (undocumented)
|
|
549
|
+
options: ProfileClientOptions;
|
|
550
|
+
}
|
|
551
|
+
|
|
552
|
+
// @public (undocumented)
|
|
553
|
+
export function withOuterListeners<P>(Component: ComponentType<P>): React_2.ComponentClass<P & WithOuterListenersProps>;
|
|
554
|
+
|
|
555
|
+
// @public (undocumented)
|
|
556
|
+
export interface WithOuterListenersProps {
|
|
557
|
+
// (undocumented)
|
|
558
|
+
handleClickOutside?: () => void;
|
|
559
|
+
// (undocumented)
|
|
560
|
+
handleEscapeKeydown?: () => void;
|
|
561
|
+
}
|
|
562
|
+
|
|
563
|
+
// (No @packageDocumentation comment for this package)
|
|
564
|
+
|
|
565
|
+
```
|