@atlaskit/teams-public 0.70.4 → 0.70.5
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 +7 -0
- package/dist/cjs/ui/team-containers/add-container-card/index.js +8 -8
- package/dist/cjs/ui/team-containers/main.js +2 -4
- package/dist/es2019/ui/team-containers/add-container-card/index.js +7 -7
- package/dist/es2019/ui/team-containers/main.js +2 -4
- package/dist/esm/ui/team-containers/add-container-card/index.js +8 -8
- package/dist/esm/ui/team-containers/main.js +2 -4
- package/dist/types/ui/team-containers/add-container-card/index.d.ts +4 -4
- package/dist/types-ts4.5/ui/team-containers/add-container-card/index.d.ts +4 -4
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# @atlaskit/teams-public
|
|
2
2
|
|
|
3
|
+
## 0.70.5
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`f5d57d0bce900`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/f5d57d0bce900) -
|
|
8
|
+
Clean up teams_app_auto_container_creation experiment
|
|
9
|
+
|
|
3
10
|
## 0.70.4
|
|
4
11
|
|
|
5
12
|
### Patch Changes
|
|
@@ -51,8 +51,8 @@ var AddContainerCard = exports.AddContainerCard = function AddContainerCard(_ref
|
|
|
51
51
|
onAddAContainerClick = _ref2.onAddAContainerClick,
|
|
52
52
|
_ref2$isLoading = _ref2.isLoading,
|
|
53
53
|
isLoading = _ref2$isLoading === void 0 ? false : _ref2$isLoading,
|
|
54
|
-
_ref2$
|
|
55
|
-
|
|
54
|
+
_ref2$canCreateContai = _ref2.canCreateContainers,
|
|
55
|
+
canCreateContainers = _ref2$canCreateContai === void 0 ? false : _ref2$canCreateContai;
|
|
56
56
|
var _getContainerProperti = (0, _getContainerProperties.getContainerProperties)({
|
|
57
57
|
containerType: containerType,
|
|
58
58
|
iconSize: (0, _platformFeatureFlags.fg)('enable_medium_size_icons_for_team_link_cards') ? 'medium' : undefined,
|
|
@@ -86,7 +86,7 @@ var AddContainerCard = exports.AddContainerCard = function AddContainerCard(_ref
|
|
|
86
86
|
onAddAContainerClick(e);
|
|
87
87
|
e.stopPropagation();
|
|
88
88
|
}
|
|
89
|
-
})),
|
|
89
|
+
})), canCreateContainers ? /*#__PURE__*/_react.default.createElement(_addContainerCardButton.AddContainerCardButton, {
|
|
90
90
|
type: containerType
|
|
91
91
|
}) : /*#__PURE__*/_react.default.createElement(_compiled.Stack, (0, _platformFeatureFlags.fg)('enable_medium_size_icons_for_team_link_cards') ? {
|
|
92
92
|
space: 'space.025'
|
|
@@ -106,7 +106,7 @@ var getAddContainerCards = exports.getAddContainerCards = function getAddContain
|
|
|
106
106
|
var containers = _ref3.containers,
|
|
107
107
|
_onAddAContainerClick = _ref3.onAddAContainerClick,
|
|
108
108
|
CustomAddContainerCard = _ref3.CustomAddContainerCard,
|
|
109
|
-
|
|
109
|
+
canCreateContainers = _ref3.canCreateContainers;
|
|
110
110
|
var AddContainerCardComponent = CustomAddContainerCard !== null && CustomAddContainerCard !== void 0 ? CustomAddContainerCard : AddContainerCard;
|
|
111
111
|
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, containers.Jira.canAdd && /*#__PURE__*/_react.default.createElement(AddContainerCardComponent, {
|
|
112
112
|
onAddAContainerClick: function onAddAContainerClick(e) {
|
|
@@ -114,26 +114,26 @@ var getAddContainerCards = exports.getAddContainerCards = function getAddContain
|
|
|
114
114
|
},
|
|
115
115
|
containerType: "JiraProject",
|
|
116
116
|
isLoading: containers.Jira.isLoading,
|
|
117
|
-
|
|
117
|
+
canCreateContainers: canCreateContainers
|
|
118
118
|
}), containers.Confluence.canAdd && /*#__PURE__*/_react.default.createElement(AddContainerCardComponent, {
|
|
119
119
|
onAddAContainerClick: function onAddAContainerClick(e) {
|
|
120
120
|
return _onAddAContainerClick(e, 'Confluence');
|
|
121
121
|
},
|
|
122
122
|
containerType: "ConfluenceSpace",
|
|
123
123
|
isLoading: containers.Confluence.isLoading,
|
|
124
|
-
|
|
124
|
+
canCreateContainers: canCreateContainers
|
|
125
125
|
}), containers.Loom.canAdd && /*#__PURE__*/_react.default.createElement(AddContainerCardComponent, {
|
|
126
126
|
onAddAContainerClick: function onAddAContainerClick(e) {
|
|
127
127
|
return _onAddAContainerClick(e, 'Loom');
|
|
128
128
|
},
|
|
129
129
|
containerType: "LoomSpace",
|
|
130
130
|
isLoading: containers.Loom.isLoading,
|
|
131
|
-
|
|
131
|
+
canCreateContainers: canCreateContainers
|
|
132
132
|
}), containers.WebLink.canAdd && /*#__PURE__*/_react.default.createElement(AddContainerCardComponent, {
|
|
133
133
|
onAddAContainerClick: function onAddAContainerClick(e) {
|
|
134
134
|
return _onAddAContainerClick(e, 'WebLink');
|
|
135
135
|
},
|
|
136
136
|
containerType: "WebLink",
|
|
137
|
-
|
|
137
|
+
canCreateContainers: canCreateContainers
|
|
138
138
|
}));
|
|
139
139
|
};
|
|
@@ -12,7 +12,6 @@ var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/sli
|
|
|
12
12
|
var _react = _interopRequireWildcard(require("react"));
|
|
13
13
|
var _reactIntlNext = require("react-intl-next");
|
|
14
14
|
var _new = _interopRequireDefault(require("@atlaskit/button/new"));
|
|
15
|
-
var _featureGateJsClient = _interopRequireDefault(require("@atlaskit/feature-gate-js-client"));
|
|
16
15
|
var _modalTransition = _interopRequireDefault(require("@atlaskit/modal-dialog/modal-transition"));
|
|
17
16
|
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
18
17
|
var _primitives = require("@atlaskit/primitives");
|
|
@@ -129,14 +128,13 @@ var TeamContainers = exports.TeamContainers = function TeamContainers(_ref) {
|
|
|
129
128
|
(0, _useRefreshContainersOnContainerCreated.useRefreshOnContainerCreated)(teamId);
|
|
130
129
|
var hasPermissionToCreateContainer = (0, _react.useMemo)(function () {
|
|
131
130
|
if (!productPermissions) {
|
|
132
|
-
return
|
|
131
|
+
return false;
|
|
133
132
|
}
|
|
134
133
|
var getPermission = function getPermission(product, permission) {
|
|
135
134
|
return productPermissions && (0, _teamsAppInternalProductPermissions.hasProductPermission)(productPermissions, product, permission);
|
|
136
135
|
};
|
|
137
136
|
return getPermission('confluence', ['CREATE_SPACE']) || getPermission('jira', ['CREATE_PROJECT']) || getPermission('loom', ['write']);
|
|
138
137
|
}, [productPermissions]);
|
|
139
|
-
var createContainerExperimentEnabled = hasPermissionToCreateContainer && _featureGateJsClient.default.initializeCompleted() && _featureGateJsClient.default.getExperimentValue('teams_app_auto_container_creation', 'isEnabled', false);
|
|
140
138
|
(0, _react.useEffect)(function () {
|
|
141
139
|
if (isDisplayedOnProfileCard && filterContainerId) {
|
|
142
140
|
setFilteredTeamLinks(teamLinks.filter(function (container) {
|
|
@@ -334,7 +332,7 @@ var TeamContainers = exports.TeamContainers = function TeamContainers(_ref) {
|
|
|
334
332
|
containers: availableContainers,
|
|
335
333
|
onAddAContainerClick: onAddAContainerClick,
|
|
336
334
|
CustomAddContainerCard: components === null || components === void 0 ? void 0 : components.AddContainerCard,
|
|
337
|
-
|
|
335
|
+
canCreateContainers: hasPermissionToCreateContainer
|
|
338
336
|
}), showMore && filteredTeamLinks.slice(maxNumberOfContainersToShow).map(function (container) {
|
|
339
337
|
return /*#__PURE__*/_react.default.createElement(LinkedContainerCardComponent, {
|
|
340
338
|
key: container.id,
|
|
@@ -34,7 +34,7 @@ export const AddContainerCard = ({
|
|
|
34
34
|
containerType,
|
|
35
35
|
onAddAContainerClick,
|
|
36
36
|
isLoading = false,
|
|
37
|
-
|
|
37
|
+
canCreateContainers = false
|
|
38
38
|
}) => {
|
|
39
39
|
const {
|
|
40
40
|
description,
|
|
@@ -68,7 +68,7 @@ export const AddContainerCard = ({
|
|
|
68
68
|
onAddAContainerClick(e);
|
|
69
69
|
e.stopPropagation();
|
|
70
70
|
}
|
|
71
|
-
})),
|
|
71
|
+
})), canCreateContainers ? /*#__PURE__*/React.createElement(AddContainerCardButton, {
|
|
72
72
|
type: containerType
|
|
73
73
|
}) : /*#__PURE__*/React.createElement(Stack, fg('enable_medium_size_icons_for_team_link_cards') ? {
|
|
74
74
|
space: 'space.025'
|
|
@@ -88,27 +88,27 @@ export const getAddContainerCards = ({
|
|
|
88
88
|
containers,
|
|
89
89
|
onAddAContainerClick,
|
|
90
90
|
CustomAddContainerCard,
|
|
91
|
-
|
|
91
|
+
canCreateContainers
|
|
92
92
|
}) => {
|
|
93
93
|
const AddContainerCardComponent = CustomAddContainerCard !== null && CustomAddContainerCard !== void 0 ? CustomAddContainerCard : AddContainerCard;
|
|
94
94
|
return /*#__PURE__*/React.createElement(React.Fragment, null, containers.Jira.canAdd && /*#__PURE__*/React.createElement(AddContainerCardComponent, {
|
|
95
95
|
onAddAContainerClick: e => onAddAContainerClick(e, 'Jira'),
|
|
96
96
|
containerType: "JiraProject",
|
|
97
97
|
isLoading: containers.Jira.isLoading,
|
|
98
|
-
|
|
98
|
+
canCreateContainers: canCreateContainers
|
|
99
99
|
}), containers.Confluence.canAdd && /*#__PURE__*/React.createElement(AddContainerCardComponent, {
|
|
100
100
|
onAddAContainerClick: e => onAddAContainerClick(e, 'Confluence'),
|
|
101
101
|
containerType: "ConfluenceSpace",
|
|
102
102
|
isLoading: containers.Confluence.isLoading,
|
|
103
|
-
|
|
103
|
+
canCreateContainers: canCreateContainers
|
|
104
104
|
}), containers.Loom.canAdd && /*#__PURE__*/React.createElement(AddContainerCardComponent, {
|
|
105
105
|
onAddAContainerClick: e => onAddAContainerClick(e, 'Loom'),
|
|
106
106
|
containerType: "LoomSpace",
|
|
107
107
|
isLoading: containers.Loom.isLoading,
|
|
108
|
-
|
|
108
|
+
canCreateContainers: canCreateContainers
|
|
109
109
|
}), containers.WebLink.canAdd && /*#__PURE__*/React.createElement(AddContainerCardComponent, {
|
|
110
110
|
onAddAContainerClick: e => onAddAContainerClick(e, 'WebLink'),
|
|
111
111
|
containerType: "WebLink",
|
|
112
|
-
|
|
112
|
+
canCreateContainers: canCreateContainers
|
|
113
113
|
}));
|
|
114
114
|
};
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import React, { useCallback, useEffect, useMemo, useState } from 'react';
|
|
2
2
|
import { defineMessages, FormattedMessage } from 'react-intl-next';
|
|
3
3
|
import Button from '@atlaskit/button/new';
|
|
4
|
-
import FeatureGates from '@atlaskit/feature-gate-js-client';
|
|
5
4
|
import ModalTransition from '@atlaskit/modal-dialog/modal-transition';
|
|
6
5
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
7
6
|
// eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
|
|
@@ -101,14 +100,13 @@ export const TeamContainers = ({
|
|
|
101
100
|
useRefreshOnContainerCreated(teamId);
|
|
102
101
|
const hasPermissionToCreateContainer = useMemo(() => {
|
|
103
102
|
if (!productPermissions) {
|
|
104
|
-
return
|
|
103
|
+
return false;
|
|
105
104
|
}
|
|
106
105
|
const getPermission = (product, permission) => {
|
|
107
106
|
return productPermissions && hasProductPermission(productPermissions, product, permission);
|
|
108
107
|
};
|
|
109
108
|
return getPermission('confluence', ['CREATE_SPACE']) || getPermission('jira', ['CREATE_PROJECT']) || getPermission('loom', ['write']);
|
|
110
109
|
}, [productPermissions]);
|
|
111
|
-
const createContainerExperimentEnabled = hasPermissionToCreateContainer && FeatureGates.initializeCompleted() && FeatureGates.getExperimentValue('teams_app_auto_container_creation', 'isEnabled', false);
|
|
112
110
|
useEffect(() => {
|
|
113
111
|
if (isDisplayedOnProfileCard && filterContainerId) {
|
|
114
112
|
setFilteredTeamLinks(teamLinks.filter(container => container.id !== filterContainerId));
|
|
@@ -272,7 +270,7 @@ export const TeamContainers = ({
|
|
|
272
270
|
containers: availableContainers,
|
|
273
271
|
onAddAContainerClick: onAddAContainerClick,
|
|
274
272
|
CustomAddContainerCard: components === null || components === void 0 ? void 0 : components.AddContainerCard,
|
|
275
|
-
|
|
273
|
+
canCreateContainers: hasPermissionToCreateContainer
|
|
276
274
|
}), showMore && filteredTeamLinks.slice(maxNumberOfContainersToShow).map(container => {
|
|
277
275
|
return /*#__PURE__*/React.createElement(LinkedContainerCardComponent, {
|
|
278
276
|
key: container.id,
|
|
@@ -42,8 +42,8 @@ export var AddContainerCard = function AddContainerCard(_ref2) {
|
|
|
42
42
|
onAddAContainerClick = _ref2.onAddAContainerClick,
|
|
43
43
|
_ref2$isLoading = _ref2.isLoading,
|
|
44
44
|
isLoading = _ref2$isLoading === void 0 ? false : _ref2$isLoading,
|
|
45
|
-
_ref2$
|
|
46
|
-
|
|
45
|
+
_ref2$canCreateContai = _ref2.canCreateContainers,
|
|
46
|
+
canCreateContainers = _ref2$canCreateContai === void 0 ? false : _ref2$canCreateContai;
|
|
47
47
|
var _getContainerProperti = getContainerProperties({
|
|
48
48
|
containerType: containerType,
|
|
49
49
|
iconSize: fg('enable_medium_size_icons_for_team_link_cards') ? 'medium' : undefined,
|
|
@@ -77,7 +77,7 @@ export var AddContainerCard = function AddContainerCard(_ref2) {
|
|
|
77
77
|
onAddAContainerClick(e);
|
|
78
78
|
e.stopPropagation();
|
|
79
79
|
}
|
|
80
|
-
})),
|
|
80
|
+
})), canCreateContainers ? /*#__PURE__*/React.createElement(AddContainerCardButton, {
|
|
81
81
|
type: containerType
|
|
82
82
|
}) : /*#__PURE__*/React.createElement(Stack, fg('enable_medium_size_icons_for_team_link_cards') ? {
|
|
83
83
|
space: 'space.025'
|
|
@@ -97,7 +97,7 @@ export var getAddContainerCards = function getAddContainerCards(_ref3) {
|
|
|
97
97
|
var containers = _ref3.containers,
|
|
98
98
|
_onAddAContainerClick = _ref3.onAddAContainerClick,
|
|
99
99
|
CustomAddContainerCard = _ref3.CustomAddContainerCard,
|
|
100
|
-
|
|
100
|
+
canCreateContainers = _ref3.canCreateContainers;
|
|
101
101
|
var AddContainerCardComponent = CustomAddContainerCard !== null && CustomAddContainerCard !== void 0 ? CustomAddContainerCard : AddContainerCard;
|
|
102
102
|
return /*#__PURE__*/React.createElement(React.Fragment, null, containers.Jira.canAdd && /*#__PURE__*/React.createElement(AddContainerCardComponent, {
|
|
103
103
|
onAddAContainerClick: function onAddAContainerClick(e) {
|
|
@@ -105,26 +105,26 @@ export var getAddContainerCards = function getAddContainerCards(_ref3) {
|
|
|
105
105
|
},
|
|
106
106
|
containerType: "JiraProject",
|
|
107
107
|
isLoading: containers.Jira.isLoading,
|
|
108
|
-
|
|
108
|
+
canCreateContainers: canCreateContainers
|
|
109
109
|
}), containers.Confluence.canAdd && /*#__PURE__*/React.createElement(AddContainerCardComponent, {
|
|
110
110
|
onAddAContainerClick: function onAddAContainerClick(e) {
|
|
111
111
|
return _onAddAContainerClick(e, 'Confluence');
|
|
112
112
|
},
|
|
113
113
|
containerType: "ConfluenceSpace",
|
|
114
114
|
isLoading: containers.Confluence.isLoading,
|
|
115
|
-
|
|
115
|
+
canCreateContainers: canCreateContainers
|
|
116
116
|
}), containers.Loom.canAdd && /*#__PURE__*/React.createElement(AddContainerCardComponent, {
|
|
117
117
|
onAddAContainerClick: function onAddAContainerClick(e) {
|
|
118
118
|
return _onAddAContainerClick(e, 'Loom');
|
|
119
119
|
},
|
|
120
120
|
containerType: "LoomSpace",
|
|
121
121
|
isLoading: containers.Loom.isLoading,
|
|
122
|
-
|
|
122
|
+
canCreateContainers: canCreateContainers
|
|
123
123
|
}), containers.WebLink.canAdd && /*#__PURE__*/React.createElement(AddContainerCardComponent, {
|
|
124
124
|
onAddAContainerClick: function onAddAContainerClick(e) {
|
|
125
125
|
return _onAddAContainerClick(e, 'WebLink');
|
|
126
126
|
},
|
|
127
127
|
containerType: "WebLink",
|
|
128
|
-
|
|
128
|
+
canCreateContainers: canCreateContainers
|
|
129
129
|
}));
|
|
130
130
|
};
|
|
@@ -4,7 +4,6 @@ import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
|
4
4
|
import React, { useCallback, useEffect, useMemo, useState } from 'react';
|
|
5
5
|
import { defineMessages, FormattedMessage } from 'react-intl-next';
|
|
6
6
|
import Button from '@atlaskit/button/new';
|
|
7
|
-
import FeatureGates from '@atlaskit/feature-gate-js-client';
|
|
8
7
|
import ModalTransition from '@atlaskit/modal-dialog/modal-transition';
|
|
9
8
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
10
9
|
// eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
|
|
@@ -119,14 +118,13 @@ export var TeamContainers = function TeamContainers(_ref) {
|
|
|
119
118
|
useRefreshOnContainerCreated(teamId);
|
|
120
119
|
var hasPermissionToCreateContainer = useMemo(function () {
|
|
121
120
|
if (!productPermissions) {
|
|
122
|
-
return
|
|
121
|
+
return false;
|
|
123
122
|
}
|
|
124
123
|
var getPermission = function getPermission(product, permission) {
|
|
125
124
|
return productPermissions && hasProductPermission(productPermissions, product, permission);
|
|
126
125
|
};
|
|
127
126
|
return getPermission('confluence', ['CREATE_SPACE']) || getPermission('jira', ['CREATE_PROJECT']) || getPermission('loom', ['write']);
|
|
128
127
|
}, [productPermissions]);
|
|
129
|
-
var createContainerExperimentEnabled = hasPermissionToCreateContainer && FeatureGates.initializeCompleted() && FeatureGates.getExperimentValue('teams_app_auto_container_creation', 'isEnabled', false);
|
|
130
128
|
useEffect(function () {
|
|
131
129
|
if (isDisplayedOnProfileCard && filterContainerId) {
|
|
132
130
|
setFilteredTeamLinks(teamLinks.filter(function (container) {
|
|
@@ -324,7 +322,7 @@ export var TeamContainers = function TeamContainers(_ref) {
|
|
|
324
322
|
containers: availableContainers,
|
|
325
323
|
onAddAContainerClick: onAddAContainerClick,
|
|
326
324
|
CustomAddContainerCard: components === null || components === void 0 ? void 0 : components.AddContainerCard,
|
|
327
|
-
|
|
325
|
+
canCreateContainers: hasPermissionToCreateContainer
|
|
328
326
|
}), showMore && filteredTeamLinks.slice(maxNumberOfContainersToShow).map(function (container) {
|
|
329
327
|
return /*#__PURE__*/React.createElement(LinkedContainerCardComponent, {
|
|
330
328
|
key: container.id,
|
|
@@ -4,9 +4,9 @@ export interface AddContainerCardProps {
|
|
|
4
4
|
containerType: ContainerTypes;
|
|
5
5
|
onAddAContainerClick: (e: React.MouseEvent<HTMLButtonElement>) => void;
|
|
6
6
|
isLoading?: boolean;
|
|
7
|
-
|
|
7
|
+
canCreateContainers?: boolean;
|
|
8
8
|
}
|
|
9
|
-
export declare const AddContainerCard: ({ containerType, onAddAContainerClick, isLoading,
|
|
9
|
+
export declare const AddContainerCard: ({ containerType, onAddAContainerClick, isLoading, canCreateContainers, }: AddContainerCardProps) => React.JSX.Element;
|
|
10
10
|
type Container = {
|
|
11
11
|
canAdd: boolean;
|
|
12
12
|
isLoading: boolean;
|
|
@@ -20,7 +20,7 @@ type GetAddContainerCardsProps = {
|
|
|
20
20
|
};
|
|
21
21
|
onAddAContainerClick: (e: React.MouseEvent<HTMLButtonElement>, containerType: 'Confluence' | 'Jira' | 'Loom' | 'WebLink') => void;
|
|
22
22
|
CustomAddContainerCard?: React.ComponentType<AddContainerCardProps>;
|
|
23
|
-
|
|
23
|
+
canCreateContainers?: boolean;
|
|
24
24
|
};
|
|
25
|
-
export declare const getAddContainerCards: ({ containers, onAddAContainerClick, CustomAddContainerCard,
|
|
25
|
+
export declare const getAddContainerCards: ({ containers, onAddAContainerClick, CustomAddContainerCard, canCreateContainers, }: GetAddContainerCardsProps) => React.JSX.Element;
|
|
26
26
|
export {};
|
|
@@ -4,9 +4,9 @@ export interface AddContainerCardProps {
|
|
|
4
4
|
containerType: ContainerTypes;
|
|
5
5
|
onAddAContainerClick: (e: React.MouseEvent<HTMLButtonElement>) => void;
|
|
6
6
|
isLoading?: boolean;
|
|
7
|
-
|
|
7
|
+
canCreateContainers?: boolean;
|
|
8
8
|
}
|
|
9
|
-
export declare const AddContainerCard: ({ containerType, onAddAContainerClick, isLoading,
|
|
9
|
+
export declare const AddContainerCard: ({ containerType, onAddAContainerClick, isLoading, canCreateContainers, }: AddContainerCardProps) => React.JSX.Element;
|
|
10
10
|
type Container = {
|
|
11
11
|
canAdd: boolean;
|
|
12
12
|
isLoading: boolean;
|
|
@@ -20,7 +20,7 @@ type GetAddContainerCardsProps = {
|
|
|
20
20
|
};
|
|
21
21
|
onAddAContainerClick: (e: React.MouseEvent<HTMLButtonElement>, containerType: 'Confluence' | 'Jira' | 'Loom' | 'WebLink') => void;
|
|
22
22
|
CustomAddContainerCard?: React.ComponentType<AddContainerCardProps>;
|
|
23
|
-
|
|
23
|
+
canCreateContainers?: boolean;
|
|
24
24
|
};
|
|
25
|
-
export declare const getAddContainerCards: ({ containers, onAddAContainerClick, CustomAddContainerCard,
|
|
25
|
+
export declare const getAddContainerCards: ({ containers, onAddAContainerClick, CustomAddContainerCard, canCreateContainers, }: GetAddContainerCardsProps) => React.JSX.Element;
|
|
26
26
|
export {};
|
package/package.json
CHANGED
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
"@atlaskit/tokens": "^11.0.0",
|
|
51
51
|
"@atlaskit/tooltip": "^20.14.0",
|
|
52
52
|
"@babel/runtime": "^7.0.0",
|
|
53
|
-
"@compiled/react": "^0.
|
|
53
|
+
"@compiled/react": "^0.20.0",
|
|
54
54
|
"@types/string-hash": "^1.1.3",
|
|
55
55
|
"graphql": "^15.8.0",
|
|
56
56
|
"graphql-tag": "^2.10.1",
|
|
@@ -111,7 +111,7 @@
|
|
|
111
111
|
}
|
|
112
112
|
},
|
|
113
113
|
"name": "@atlaskit/teams-public",
|
|
114
|
-
"version": "0.70.
|
|
114
|
+
"version": "0.70.5",
|
|
115
115
|
"description": "Public components related to teams",
|
|
116
116
|
"author": "Atlassian Pty Ltd",
|
|
117
117
|
"license": "Apache-2.0",
|