@atlaskit/teams-public 0.38.0 → 0.38.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
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# @atlaskit/teams-public
|
|
2
2
|
|
|
3
|
+
## 0.38.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 0.38.1
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [#171543](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/171543)
|
|
14
|
+
[`8012f13429f1c`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/8012f13429f1c) -
|
|
15
|
+
Minor fix - adding analytics event name, update team links limit number
|
|
16
|
+
- Updated dependencies
|
|
17
|
+
|
|
3
18
|
## 0.38.0
|
|
4
19
|
|
|
5
20
|
### Minor Changes
|
|
@@ -51,7 +51,7 @@ var useTeamLinksAndContainers = exports.useTeamLinksAndContainers = function use
|
|
|
51
51
|
return [].concat((0, _toConsumableArray2.default)(teamContainers), (0, _toConsumableArray2.default)(webLinkContainers));
|
|
52
52
|
}, [teamContainers, webLinkContainers]);
|
|
53
53
|
var canAddMoreLink = (0, _react.useMemo)(function () {
|
|
54
|
-
return allContainers.length
|
|
54
|
+
return allContainers.length < MAX_LINKS_LIMIT;
|
|
55
55
|
}, [allContainers.length]);
|
|
56
56
|
var addTeamLink = (0, _react.useCallback)( /*#__PURE__*/function () {
|
|
57
57
|
var _ref = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee(containerOrWebLink) {
|
|
@@ -31,7 +31,7 @@ export const useTeamLinksAndContainers = (teamId, enableContainers = true) => {
|
|
|
31
31
|
}, [getTeamWebLinks, teamId]);
|
|
32
32
|
const webLinkContainers = useMemo(() => webLinksToContainers(links, linkIcons), [links, linkIcons]);
|
|
33
33
|
const allContainers = useMemo(() => [...teamContainers, ...webLinkContainers], [teamContainers, webLinkContainers]);
|
|
34
|
-
const canAddMoreLink = useMemo(() => allContainers.length
|
|
34
|
+
const canAddMoreLink = useMemo(() => allContainers.length < MAX_LINKS_LIMIT, [allContainers.length]);
|
|
35
35
|
const addTeamLink = useCallback(async containerOrWebLink => {
|
|
36
36
|
if (isNewTeamWebLink(containerOrWebLink)) {
|
|
37
37
|
return await createTeamWebLink(teamId, containerOrWebLink);
|
|
@@ -44,7 +44,7 @@ export var useTeamLinksAndContainers = function useTeamLinksAndContainers(teamId
|
|
|
44
44
|
return [].concat(_toConsumableArray(teamContainers), _toConsumableArray(webLinkContainers));
|
|
45
45
|
}, [teamContainers, webLinkContainers]);
|
|
46
46
|
var canAddMoreLink = useMemo(function () {
|
|
47
|
-
return allContainers.length
|
|
47
|
+
return allContainers.length < MAX_LINKS_LIMIT;
|
|
48
48
|
}, [allContainers.length]);
|
|
49
49
|
var addTeamLink = useCallback( /*#__PURE__*/function () {
|
|
50
50
|
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(containerOrWebLink) {
|
package/package.json
CHANGED
|
@@ -37,10 +37,10 @@
|
|
|
37
37
|
"@atlaskit/dropdown-menu": "^16.0.0",
|
|
38
38
|
"@atlaskit/feature-gate-js-client": "^5.3.0",
|
|
39
39
|
"@atlaskit/heading": "^5.2.0",
|
|
40
|
-
"@atlaskit/icon": "^
|
|
40
|
+
"@atlaskit/icon": "^27.0.0",
|
|
41
41
|
"@atlaskit/image": "^3.0.0",
|
|
42
42
|
"@atlaskit/link": "^3.2.0",
|
|
43
|
-
"@atlaskit/logo": "^19.
|
|
43
|
+
"@atlaskit/logo": "^19.1.0",
|
|
44
44
|
"@atlaskit/modal-dialog": "^14.2.0",
|
|
45
45
|
"@atlaskit/people-teams-ui-public": "^3.1.0",
|
|
46
46
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
@@ -114,7 +114,7 @@
|
|
|
114
114
|
}
|
|
115
115
|
},
|
|
116
116
|
"name": "@atlaskit/teams-public",
|
|
117
|
-
"version": "0.38.
|
|
117
|
+
"version": "0.38.2",
|
|
118
118
|
"description": "Public components related to teams",
|
|
119
119
|
"author": "Atlassian Pty Ltd",
|
|
120
120
|
"license": "Apache-2.0",
|