@atlaskit/teams-public 0.39.0 → 0.39.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 +17 -0
- package/dist/cjs/services/agg-client/index.js +4 -0
- package/dist/cjs/ui/team-containers/team-link-card/index.js +9 -11
- package/dist/es2019/services/agg-client/index.js +4 -0
- package/dist/es2019/ui/team-containers/team-link-card/index.js +8 -10
- package/dist/esm/services/agg-client/index.js +4 -0
- package/dist/esm/ui/team-containers/team-link-card/index.js +9 -11
- package/package.json +6 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
# @atlaskit/teams-public
|
|
2
2
|
|
|
3
|
+
## 0.39.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#175066](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/175066)
|
|
8
|
+
[`f59c2acbfd3c5`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/f59c2acbfd3c5) -
|
|
9
|
+
[ux] Minor UI fix: Update team link form description, and fix dropdown display issue in team link
|
|
10
|
+
card
|
|
11
|
+
|
|
12
|
+
## 0.39.1
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- [#174090](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/174090)
|
|
17
|
+
[`e5f4693b1599f`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/e5f4693b1599f) -
|
|
18
|
+
NO-ISSUE Enable null check for containers mapping function
|
|
19
|
+
|
|
3
20
|
## 0.39.0
|
|
4
21
|
|
|
5
22
|
### Minor Changes
|
|
@@ -12,6 +12,7 @@ var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/creat
|
|
|
12
12
|
var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));
|
|
13
13
|
var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
|
|
14
14
|
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
|
|
15
|
+
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
15
16
|
var _teamIdToAri = require("../../common/utils/team-id-to-ari");
|
|
16
17
|
var _userAri = require("../../common/utils/user-ari");
|
|
17
18
|
var _constants = require("../constants");
|
|
@@ -55,6 +56,9 @@ var AGGClient = exports.AGGClient = /*#__PURE__*/function (_BaseGraphQlClient) {
|
|
|
55
56
|
case 4:
|
|
56
57
|
response = _context.sent;
|
|
57
58
|
containersResult = response.graphStore.cypherQuery.edges.reduce(function (containers, edge) {
|
|
59
|
+
if (!edge.node.to.data && (0, _platformFeatureFlags.fg)('enable_team_containers_null_check')) {
|
|
60
|
+
return containers;
|
|
61
|
+
}
|
|
58
62
|
if (edge.node.to.data.__typename === 'ConfluenceSpace') {
|
|
59
63
|
containers.push({
|
|
60
64
|
id: edge.node.to.id,
|
|
@@ -21,7 +21,6 @@ var _dropdownMenu = _interopRequireWildcard(require("@atlaskit/dropdown-menu"));
|
|
|
21
21
|
var _close = _interopRequireDefault(require("@atlaskit/icon/core/close"));
|
|
22
22
|
var _showMoreHorizontal = _interopRequireDefault(require("@atlaskit/icon/core/show-more-horizontal"));
|
|
23
23
|
var _link = _interopRequireDefault(require("@atlaskit/link"));
|
|
24
|
-
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
25
24
|
var _compiled = require("@atlaskit/primitives/compiled");
|
|
26
25
|
var _tooltip = _interopRequireDefault(require("@atlaskit/tooltip"));
|
|
27
26
|
var _containerIcon = require("../../../common/ui/container-icon");
|
|
@@ -71,25 +70,21 @@ var TeamLinkCard = exports.TeamLinkCard = function TeamLinkCard(_ref) {
|
|
|
71
70
|
setShowCloseIcon = _useState4[1];
|
|
72
71
|
var _useState5 = (0, _react.useState)(false),
|
|
73
72
|
_useState6 = (0, _slicedToArray2.default)(_useState5, 2),
|
|
74
|
-
|
|
75
|
-
|
|
73
|
+
isDropdownOpen = _useState6[0],
|
|
74
|
+
setIsDropdownOpen = _useState6[1];
|
|
76
75
|
var _useIntl = (0, _reactIntlNext.useIntl)(),
|
|
77
76
|
formatMessage = _useIntl.formatMessage;
|
|
78
77
|
var _usePeopleAndTeamAnal = (0, _analytics.usePeopleAndTeamAnalytics)(),
|
|
79
78
|
fireUIEvent = _usePeopleAndTeamAnal.fireUIEvent;
|
|
80
79
|
var handleMouseEnter = function handleMouseEnter() {
|
|
81
80
|
setHovered(true);
|
|
82
|
-
if (containerType
|
|
83
|
-
setShowMoreIcon(true);
|
|
84
|
-
} else {
|
|
81
|
+
if (containerType !== 'WebLink') {
|
|
85
82
|
setShowCloseIcon(true);
|
|
86
83
|
}
|
|
87
84
|
};
|
|
88
85
|
var handleMouseLeave = function handleMouseLeave() {
|
|
89
86
|
setHovered(false);
|
|
90
|
-
if (containerType
|
|
91
|
-
setShowMoreIcon(false);
|
|
92
|
-
} else {
|
|
87
|
+
if (containerType !== 'WebLink') {
|
|
93
88
|
setShowCloseIcon(false);
|
|
94
89
|
}
|
|
95
90
|
};
|
|
@@ -182,7 +177,7 @@ var TeamLinkCard = exports.TeamLinkCard = function TeamLinkCard(_ref) {
|
|
|
182
177
|
}
|
|
183
178
|
});
|
|
184
179
|
}
|
|
185
|
-
}))),
|
|
180
|
+
}))), containerType === 'WebLink' && (hovered || isDropdownOpen) && /*#__PURE__*/_react.default.createElement(_compiled.Box, {
|
|
186
181
|
xcss: styles.showMoreIconWrapper
|
|
187
182
|
}, /*#__PURE__*/_react.default.createElement(_dropdownMenu.default, {
|
|
188
183
|
trigger: function trigger(_ref2) {
|
|
@@ -202,7 +197,10 @@ var TeamLinkCard = exports.TeamLinkCard = function TeamLinkCard(_ref) {
|
|
|
202
197
|
}));
|
|
203
198
|
},
|
|
204
199
|
placement: "bottom-end",
|
|
205
|
-
shouldRenderToParent:
|
|
200
|
+
shouldRenderToParent: true,
|
|
201
|
+
onOpenChange: function onOpenChange(attrs) {
|
|
202
|
+
setIsDropdownOpen(attrs.isOpen);
|
|
203
|
+
}
|
|
206
204
|
}, /*#__PURE__*/_react.default.createElement(_dropdownMenu.DropdownItemGroup, null, /*#__PURE__*/_react.default.createElement(_dropdownMenu.DropdownItem, {
|
|
207
205
|
onClick: function onClick(e) {
|
|
208
206
|
e.preventDefault();
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
1
2
|
import { teamIdToAri } from '../../common/utils/team-id-to-ari';
|
|
2
3
|
import { toUserId } from '../../common/utils/user-ari';
|
|
3
4
|
import { DEFAULT_CONFIG } from '../constants';
|
|
@@ -25,6 +26,9 @@ export class AGGClient extends BaseGraphQlClient {
|
|
|
25
26
|
operationName: 'TeamContainersQuery'
|
|
26
27
|
});
|
|
27
28
|
const containersResult = response.graphStore.cypherQuery.edges.reduce((containers, edge) => {
|
|
29
|
+
if (!edge.node.to.data && fg('enable_team_containers_null_check')) {
|
|
30
|
+
return containers;
|
|
31
|
+
}
|
|
28
32
|
if (edge.node.to.data.__typename === 'ConfluenceSpace') {
|
|
29
33
|
containers.push({
|
|
30
34
|
id: edge.node.to.id,
|
|
@@ -10,7 +10,6 @@ import DropdownMenu, { DropdownItem, DropdownItemGroup } from '@atlaskit/dropdow
|
|
|
10
10
|
import CrossIcon from '@atlaskit/icon/core/close';
|
|
11
11
|
import ShowMoreHorizontalIcon from '@atlaskit/icon/core/show-more-horizontal';
|
|
12
12
|
import Link from '@atlaskit/link';
|
|
13
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
14
13
|
import { Box, Flex, Inline, Stack, Text } from '@atlaskit/primitives/compiled';
|
|
15
14
|
import Tooltip from '@atlaskit/tooltip';
|
|
16
15
|
import { ContainerIcon } from '../../../common/ui/container-icon';
|
|
@@ -51,7 +50,7 @@ export const TeamLinkCard = ({
|
|
|
51
50
|
});
|
|
52
51
|
const [hovered, setHovered] = useState(false);
|
|
53
52
|
const [showCloseIcon, setShowCloseIcon] = useState(false);
|
|
54
|
-
const [
|
|
53
|
+
const [isDropdownOpen, setIsDropdownOpen] = useState(false);
|
|
55
54
|
const {
|
|
56
55
|
formatMessage
|
|
57
56
|
} = useIntl();
|
|
@@ -60,17 +59,13 @@ export const TeamLinkCard = ({
|
|
|
60
59
|
} = usePeopleAndTeamAnalytics();
|
|
61
60
|
const handleMouseEnter = () => {
|
|
62
61
|
setHovered(true);
|
|
63
|
-
if (containerType
|
|
64
|
-
setShowMoreIcon(true);
|
|
65
|
-
} else {
|
|
62
|
+
if (containerType !== 'WebLink') {
|
|
66
63
|
setShowCloseIcon(true);
|
|
67
64
|
}
|
|
68
65
|
};
|
|
69
66
|
const handleMouseLeave = () => {
|
|
70
67
|
setHovered(false);
|
|
71
|
-
if (containerType
|
|
72
|
-
setShowMoreIcon(false);
|
|
73
|
-
} else {
|
|
68
|
+
if (containerType !== 'WebLink') {
|
|
74
69
|
setShowCloseIcon(false);
|
|
75
70
|
}
|
|
76
71
|
};
|
|
@@ -162,7 +157,7 @@ export const TeamLinkCard = ({
|
|
|
162
157
|
}
|
|
163
158
|
});
|
|
164
159
|
}
|
|
165
|
-
}))),
|
|
160
|
+
}))), containerType === 'WebLink' && (hovered || isDropdownOpen) && /*#__PURE__*/React.createElement(Box, {
|
|
166
161
|
xcss: styles.showMoreIconWrapper
|
|
167
162
|
}, /*#__PURE__*/React.createElement(DropdownMenu, {
|
|
168
163
|
trigger: ({
|
|
@@ -179,7 +174,10 @@ export const TeamLinkCard = ({
|
|
|
179
174
|
spacing: "compact"
|
|
180
175
|
})),
|
|
181
176
|
placement: "bottom-end",
|
|
182
|
-
shouldRenderToParent:
|
|
177
|
+
shouldRenderToParent: true,
|
|
178
|
+
onOpenChange: attrs => {
|
|
179
|
+
setIsDropdownOpen(attrs.isOpen);
|
|
180
|
+
}
|
|
183
181
|
}, /*#__PURE__*/React.createElement(DropdownItemGroup, null, /*#__PURE__*/React.createElement(DropdownItem, {
|
|
184
182
|
onClick: e => {
|
|
185
183
|
e.preventDefault();
|
|
@@ -7,6 +7,7 @@ import _inherits from "@babel/runtime/helpers/inherits";
|
|
|
7
7
|
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
8
8
|
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
9
9
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
10
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
10
11
|
import { teamIdToAri } from '../../common/utils/team-id-to-ari';
|
|
11
12
|
import { toUserId } from '../../common/utils/user-ari';
|
|
12
13
|
import { DEFAULT_CONFIG } from '../constants';
|
|
@@ -48,6 +49,9 @@ export var AGGClient = /*#__PURE__*/function (_BaseGraphQlClient) {
|
|
|
48
49
|
case 4:
|
|
49
50
|
response = _context.sent;
|
|
50
51
|
containersResult = response.graphStore.cypherQuery.edges.reduce(function (containers, edge) {
|
|
52
|
+
if (!edge.node.to.data && fg('enable_team_containers_null_check')) {
|
|
53
|
+
return containers;
|
|
54
|
+
}
|
|
51
55
|
if (edge.node.to.data.__typename === 'ConfluenceSpace') {
|
|
52
56
|
containers.push({
|
|
53
57
|
id: edge.node.to.id,
|
|
@@ -16,7 +16,6 @@ import DropdownMenu, { DropdownItem, DropdownItemGroup } from '@atlaskit/dropdow
|
|
|
16
16
|
import CrossIcon from '@atlaskit/icon/core/close';
|
|
17
17
|
import ShowMoreHorizontalIcon from '@atlaskit/icon/core/show-more-horizontal';
|
|
18
18
|
import Link from '@atlaskit/link';
|
|
19
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
20
19
|
import { Box, Flex, Inline, Stack, Text } from '@atlaskit/primitives/compiled';
|
|
21
20
|
import Tooltip from '@atlaskit/tooltip';
|
|
22
21
|
import { ContainerIcon } from '../../../common/ui/container-icon';
|
|
@@ -62,25 +61,21 @@ export var TeamLinkCard = function TeamLinkCard(_ref) {
|
|
|
62
61
|
setShowCloseIcon = _useState4[1];
|
|
63
62
|
var _useState5 = useState(false),
|
|
64
63
|
_useState6 = _slicedToArray(_useState5, 2),
|
|
65
|
-
|
|
66
|
-
|
|
64
|
+
isDropdownOpen = _useState6[0],
|
|
65
|
+
setIsDropdownOpen = _useState6[1];
|
|
67
66
|
var _useIntl = useIntl(),
|
|
68
67
|
formatMessage = _useIntl.formatMessage;
|
|
69
68
|
var _usePeopleAndTeamAnal = usePeopleAndTeamAnalytics(),
|
|
70
69
|
fireUIEvent = _usePeopleAndTeamAnal.fireUIEvent;
|
|
71
70
|
var handleMouseEnter = function handleMouseEnter() {
|
|
72
71
|
setHovered(true);
|
|
73
|
-
if (containerType
|
|
74
|
-
setShowMoreIcon(true);
|
|
75
|
-
} else {
|
|
72
|
+
if (containerType !== 'WebLink') {
|
|
76
73
|
setShowCloseIcon(true);
|
|
77
74
|
}
|
|
78
75
|
};
|
|
79
76
|
var handleMouseLeave = function handleMouseLeave() {
|
|
80
77
|
setHovered(false);
|
|
81
|
-
if (containerType
|
|
82
|
-
setShowMoreIcon(false);
|
|
83
|
-
} else {
|
|
78
|
+
if (containerType !== 'WebLink') {
|
|
84
79
|
setShowCloseIcon(false);
|
|
85
80
|
}
|
|
86
81
|
};
|
|
@@ -173,7 +168,7 @@ export var TeamLinkCard = function TeamLinkCard(_ref) {
|
|
|
173
168
|
}
|
|
174
169
|
});
|
|
175
170
|
}
|
|
176
|
-
}))),
|
|
171
|
+
}))), containerType === 'WebLink' && (hovered || isDropdownOpen) && /*#__PURE__*/React.createElement(Box, {
|
|
177
172
|
xcss: styles.showMoreIconWrapper
|
|
178
173
|
}, /*#__PURE__*/React.createElement(DropdownMenu, {
|
|
179
174
|
trigger: function trigger(_ref2) {
|
|
@@ -193,7 +188,10 @@ export var TeamLinkCard = function TeamLinkCard(_ref) {
|
|
|
193
188
|
}));
|
|
194
189
|
},
|
|
195
190
|
placement: "bottom-end",
|
|
196
|
-
shouldRenderToParent:
|
|
191
|
+
shouldRenderToParent: true,
|
|
192
|
+
onOpenChange: function onOpenChange(attrs) {
|
|
193
|
+
setIsDropdownOpen(attrs.isOpen);
|
|
194
|
+
}
|
|
197
195
|
}, /*#__PURE__*/React.createElement(DropdownItemGroup, null, /*#__PURE__*/React.createElement(DropdownItem, {
|
|
198
196
|
onClick: function onClick(e) {
|
|
199
197
|
e.preventDefault();
|
package/package.json
CHANGED
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"@atlaskit/dropdown-menu": "^16.1.0",
|
|
38
38
|
"@atlaskit/feature-gate-js-client": "^5.3.0",
|
|
39
39
|
"@atlaskit/heading": "^5.2.0",
|
|
40
|
-
"@atlaskit/icon": "^27.
|
|
40
|
+
"@atlaskit/icon": "^27.1.0",
|
|
41
41
|
"@atlaskit/image": "^3.0.0",
|
|
42
42
|
"@atlaskit/link": "^3.2.0",
|
|
43
43
|
"@atlaskit/logo": "^19.1.0",
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"@atlaskit/primitives": "^14.9.0",
|
|
48
48
|
"@atlaskit/teams-client": "^4.5.0",
|
|
49
49
|
"@atlaskit/theme": "^18.0.0",
|
|
50
|
-
"@atlaskit/tokens": "^5.
|
|
50
|
+
"@atlaskit/tokens": "^5.4.0",
|
|
51
51
|
"@atlaskit/tooltip": "^20.3.0",
|
|
52
52
|
"@babel/runtime": "^7.0.0",
|
|
53
53
|
"@compiled/react": "^0.18.3",
|
|
@@ -114,7 +114,7 @@
|
|
|
114
114
|
}
|
|
115
115
|
},
|
|
116
116
|
"name": "@atlaskit/teams-public",
|
|
117
|
-
"version": "0.39.
|
|
117
|
+
"version": "0.39.2",
|
|
118
118
|
"description": "Public components related to teams",
|
|
119
119
|
"author": "Atlassian Pty Ltd",
|
|
120
120
|
"license": "Apache-2.0",
|
|
@@ -136,6 +136,9 @@
|
|
|
136
136
|
},
|
|
137
137
|
"enable_web_links_in_team_containers": {
|
|
138
138
|
"type": "boolean"
|
|
139
|
+
},
|
|
140
|
+
"enable_team_containers_null_check": {
|
|
141
|
+
"type": "boolean"
|
|
139
142
|
}
|
|
140
143
|
}
|
|
141
144
|
}
|