@atlaskit/teams-public 0.23.6 → 0.24.0
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/common/utils/get-container-properties.js +20 -2
- package/dist/cjs/ui/team-containers/add-container-card/index.js +6 -2
- package/dist/cjs/ui/team-containers/linked-container-card/index.js +6 -2
- package/dist/es2019/common/utils/get-container-properties.js +21 -3
- package/dist/es2019/ui/team-containers/add-container-card/index.js +6 -2
- package/dist/es2019/ui/team-containers/linked-container-card/index.js +6 -2
- package/dist/esm/common/utils/get-container-properties.js +21 -3
- package/dist/esm/ui/team-containers/add-container-card/index.js +6 -2
- package/dist/esm/ui/team-containers/linked-container-card/index.js +6 -2
- package/dist/types/common/types.d.ts +1 -1
- package/dist/types/common/utils/get-container-properties.d.ts +5 -0
- package/dist/types-ts4.5/common/types.d.ts +1 -1
- package/dist/types-ts4.5/common/utils/get-container-properties.d.ts +5 -0
- package/package.json +11 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
# @atlaskit/teams-public
|
|
2
2
|
|
|
3
|
+
## 0.24.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#140948](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/140948)
|
|
8
|
+
[`0242fc0ffc4fa`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/0242fc0ffc4fa) -
|
|
9
|
+
[ux] fixed alignment issue on container card
|
|
10
|
+
|
|
11
|
+
## 0.23.7
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- [#137581](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/137581)
|
|
16
|
+
[`8bb916474905b`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/8bb916474905b) -
|
|
17
|
+
[ux] PTC-11531 Build team web link empty state card
|
|
18
|
+
- Updated dependencies
|
|
19
|
+
|
|
3
20
|
## 0.23.6
|
|
4
21
|
|
|
5
22
|
### Patch Changes
|
|
@@ -12,6 +12,7 @@ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/de
|
|
|
12
12
|
var _react = _interopRequireDefault(require("react"));
|
|
13
13
|
var _reactIntlNext = require("react-intl-next");
|
|
14
14
|
var _image = _interopRequireDefault(require("@atlaskit/image"));
|
|
15
|
+
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
15
16
|
var _compiled = require("@atlaskit/primitives/compiled");
|
|
16
17
|
var _ConfluenceIcon = _interopRequireDefault(require("../assets/ConfluenceIcon.svg"));
|
|
17
18
|
var _JiraIcon = _interopRequireDefault(require("../assets/JiraIcon.svg"));
|
|
@@ -63,6 +64,11 @@ var messages = exports.messages = (0, _reactIntlNext.defineMessages)({
|
|
|
63
64
|
id: 'ptc-directory.team-profile-page.team-containers.space-container-text.non-final',
|
|
64
65
|
defaultMessage: 'space',
|
|
65
66
|
description: 'Text for space type containers'
|
|
67
|
+
},
|
|
68
|
+
webLinkContainerTitle: {
|
|
69
|
+
id: 'ptc-directory.team-profile-page.team-containers.webLink-container-text.non-final',
|
|
70
|
+
defaultMessage: 'Add any web link',
|
|
71
|
+
description: 'Description of the card to add a web link to a team'
|
|
66
72
|
}
|
|
67
73
|
});
|
|
68
74
|
var getJiraIcon = function getJiraIcon(containerSubTypes) {
|
|
@@ -79,9 +85,10 @@ var getJiraContainerProperties = function getJiraContainerProperties(containerTy
|
|
|
79
85
|
var _ref = containerTypeProperties || {},
|
|
80
86
|
subType = _ref.subType,
|
|
81
87
|
name = _ref.name;
|
|
88
|
+
var Comp = (0, _platformFeatureFlags.fg)('enable_card_alignment_fix') ? _compiled.Flex : _compiled.Box;
|
|
82
89
|
var baseProperties = {
|
|
83
90
|
description: /*#__PURE__*/_react.default.createElement(_reactIntlNext.FormattedMessage, messages.jiraProjectDescription),
|
|
84
|
-
icon: /*#__PURE__*/_react.default.createElement(
|
|
91
|
+
icon: /*#__PURE__*/_react.default.createElement(Comp, {
|
|
85
92
|
xcss: styles.iconWrapper
|
|
86
93
|
}, /*#__PURE__*/_react.default.createElement(_image.default, {
|
|
87
94
|
src: getJiraIcon(subType),
|
|
@@ -105,11 +112,12 @@ var getJiraContainerProperties = function getJiraContainerProperties(containerTy
|
|
|
105
112
|
var getContainerProperties = exports.getContainerProperties = function getContainerProperties(containerType) {
|
|
106
113
|
var iconSize = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'small';
|
|
107
114
|
var containerTypeProperties = arguments.length > 2 ? arguments[2] : undefined;
|
|
115
|
+
var Comp = (0, _platformFeatureFlags.fg)('enable_card_alignment_fix') ? _compiled.Flex : _compiled.Box;
|
|
108
116
|
switch (containerType) {
|
|
109
117
|
case 'ConfluenceSpace':
|
|
110
118
|
return {
|
|
111
119
|
description: /*#__PURE__*/_react.default.createElement(_reactIntlNext.FormattedMessage, messages.confluenceContainerDescription),
|
|
112
|
-
icon: /*#__PURE__*/_react.default.createElement(
|
|
120
|
+
icon: /*#__PURE__*/_react.default.createElement(Comp, {
|
|
113
121
|
xcss: iconSize === 'medium' ? styles.mediumIconWrapper : styles.iconWrapper
|
|
114
122
|
}, /*#__PURE__*/_react.default.createElement(_image.default, {
|
|
115
123
|
src: _ConfluenceIcon.default,
|
|
@@ -121,6 +129,16 @@ var getContainerProperties = exports.getContainerProperties = function getContai
|
|
|
121
129
|
};
|
|
122
130
|
case 'JiraProject':
|
|
123
131
|
return getJiraContainerProperties(containerTypeProperties);
|
|
132
|
+
case 'WebLink':
|
|
133
|
+
return {
|
|
134
|
+
description: /*#__PURE__*/_react.default.createElement(_compiled.Text, {
|
|
135
|
+
size: "medium",
|
|
136
|
+
weight: "medium"
|
|
137
|
+
}, /*#__PURE__*/_react.default.createElement(_reactIntlNext.FormattedMessage, messages.webLinkContainerTitle)),
|
|
138
|
+
icon: null,
|
|
139
|
+
title: null,
|
|
140
|
+
containerTypeText: null
|
|
141
|
+
};
|
|
124
142
|
default:
|
|
125
143
|
return {
|
|
126
144
|
description: null,
|
|
@@ -9,10 +9,12 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
9
9
|
exports.AddContainerCard = void 0;
|
|
10
10
|
require("./index.compiled.css");
|
|
11
11
|
var _runtime = require("@compiled/react/runtime");
|
|
12
|
+
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
12
13
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
13
14
|
var _react = _interopRequireWildcard(require("react"));
|
|
14
15
|
var _new = require("@atlaskit/button/new");
|
|
15
16
|
var _add = _interopRequireDefault(require("@atlaskit/icon/utility/add"));
|
|
17
|
+
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
16
18
|
var _compiled = require("@atlaskit/primitives/compiled");
|
|
17
19
|
var _getContainerProperties = require("../../../common/utils/get-container-properties");
|
|
18
20
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
@@ -70,9 +72,11 @@ var AddContainerCard = exports.AddContainerCard = function AddContainerCard(_ref
|
|
|
70
72
|
maxLines: 1,
|
|
71
73
|
weight: "medium",
|
|
72
74
|
color: "color.text"
|
|
73
|
-
}, title), /*#__PURE__*/_react.default.createElement(_compiled.Flex, {
|
|
75
|
+
}, title), /*#__PURE__*/_react.default.createElement(_compiled.Flex, (0, _extends2.default)({
|
|
74
76
|
gap: "space.050"
|
|
75
|
-
},
|
|
77
|
+
}, (0, _platformFeatureFlags.fg)('enable_card_alignment_fix') ? {
|
|
78
|
+
alignItems: 'center'
|
|
79
|
+
} : {}), icon, /*#__PURE__*/_react.default.createElement(_compiled.Text, {
|
|
76
80
|
size: "small",
|
|
77
81
|
color: "color.text.subtle"
|
|
78
82
|
}, description)))));
|
|
@@ -9,6 +9,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
9
9
|
exports.LinkedContainerCard = void 0;
|
|
10
10
|
require("./index.compiled.css");
|
|
11
11
|
var _runtime = require("@compiled/react/runtime");
|
|
12
|
+
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
12
13
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
13
14
|
var _react = _interopRequireWildcard(require("react"));
|
|
14
15
|
var _reactIntlNext = require("react-intl-next");
|
|
@@ -17,6 +18,7 @@ var _avatar = _interopRequireDefault(require("@atlaskit/avatar"));
|
|
|
17
18
|
var _new = require("@atlaskit/button/new");
|
|
18
19
|
var _cross = _interopRequireDefault(require("@atlaskit/icon/utility/cross"));
|
|
19
20
|
var _link = _interopRequireDefault(require("@atlaskit/link"));
|
|
21
|
+
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
20
22
|
var _compiled = require("@atlaskit/primitives/compiled");
|
|
21
23
|
var _tooltip = _interopRequireDefault(require("@atlaskit/tooltip"));
|
|
22
24
|
var _analytics = require("../../../common/utils/analytics");
|
|
@@ -120,9 +122,11 @@ var LinkedContainerCard = exports.LinkedContainerCard = function LinkedContainer
|
|
|
120
122
|
maxLines: 1,
|
|
121
123
|
weight: "medium",
|
|
122
124
|
color: "color.text"
|
|
123
|
-
}, title), /*#__PURE__*/_react.default.createElement(_compiled.Flex, {
|
|
125
|
+
}, title), /*#__PURE__*/_react.default.createElement(_compiled.Flex, (0, _extends2.default)({
|
|
124
126
|
gap: "space.050"
|
|
125
|
-
},
|
|
127
|
+
}, (0, _platformFeatureFlags.fg)('enable_card_alignment_fix') ? {
|
|
128
|
+
alignItems: 'center'
|
|
129
|
+
} : {}), icon, /*#__PURE__*/_react.default.createElement(_compiled.Inline, {
|
|
126
130
|
space: "space.050"
|
|
127
131
|
}, /*#__PURE__*/_react.default.createElement(_compiled.Text, {
|
|
128
132
|
size: "small",
|
|
@@ -4,7 +4,8 @@ import { ax, ix } from "@compiled/react/runtime";
|
|
|
4
4
|
import React from 'react';
|
|
5
5
|
import { defineMessages, FormattedMessage } from 'react-intl-next';
|
|
6
6
|
import Image from '@atlaskit/image';
|
|
7
|
-
import {
|
|
7
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
8
|
+
import { Box, Flex, Text } from '@atlaskit/primitives/compiled';
|
|
8
9
|
import ConfluenceIcon from '../assets/ConfluenceIcon.svg';
|
|
9
10
|
import JiraIcon from '../assets/JiraIcon.svg';
|
|
10
11
|
import JiraProjectDiscovery from '../assets/JiraProjectDiscovery.svg';
|
|
@@ -53,6 +54,11 @@ export const messages = defineMessages({
|
|
|
53
54
|
id: 'ptc-directory.team-profile-page.team-containers.space-container-text.non-final',
|
|
54
55
|
defaultMessage: 'space',
|
|
55
56
|
description: 'Text for space type containers'
|
|
57
|
+
},
|
|
58
|
+
webLinkContainerTitle: {
|
|
59
|
+
id: 'ptc-directory.team-profile-page.team-containers.webLink-container-text.non-final',
|
|
60
|
+
defaultMessage: 'Add any web link',
|
|
61
|
+
description: 'Description of the card to add a web link to a team'
|
|
56
62
|
}
|
|
57
63
|
});
|
|
58
64
|
const getJiraIcon = containerSubTypes => {
|
|
@@ -70,9 +76,10 @@ const getJiraContainerProperties = containerTypeProperties => {
|
|
|
70
76
|
subType,
|
|
71
77
|
name
|
|
72
78
|
} = containerTypeProperties || {};
|
|
79
|
+
const Comp = fg('enable_card_alignment_fix') ? Flex : Box;
|
|
73
80
|
const baseProperties = {
|
|
74
81
|
description: /*#__PURE__*/React.createElement(FormattedMessage, messages.jiraProjectDescription),
|
|
75
|
-
icon: /*#__PURE__*/React.createElement(
|
|
82
|
+
icon: /*#__PURE__*/React.createElement(Comp, {
|
|
76
83
|
xcss: styles.iconWrapper
|
|
77
84
|
}, /*#__PURE__*/React.createElement(Image, {
|
|
78
85
|
src: getJiraIcon(subType),
|
|
@@ -95,11 +102,12 @@ const getJiraContainerProperties = containerTypeProperties => {
|
|
|
95
102
|
}
|
|
96
103
|
};
|
|
97
104
|
export const getContainerProperties = (containerType, iconSize = 'small', containerTypeProperties) => {
|
|
105
|
+
const Comp = fg('enable_card_alignment_fix') ? Flex : Box;
|
|
98
106
|
switch (containerType) {
|
|
99
107
|
case 'ConfluenceSpace':
|
|
100
108
|
return {
|
|
101
109
|
description: /*#__PURE__*/React.createElement(FormattedMessage, messages.confluenceContainerDescription),
|
|
102
|
-
icon: /*#__PURE__*/React.createElement(
|
|
110
|
+
icon: /*#__PURE__*/React.createElement(Comp, {
|
|
103
111
|
xcss: iconSize === 'medium' ? styles.mediumIconWrapper : styles.iconWrapper
|
|
104
112
|
}, /*#__PURE__*/React.createElement(Image, {
|
|
105
113
|
src: ConfluenceIcon,
|
|
@@ -111,6 +119,16 @@ export const getContainerProperties = (containerType, iconSize = 'small', contai
|
|
|
111
119
|
};
|
|
112
120
|
case 'JiraProject':
|
|
113
121
|
return getJiraContainerProperties(containerTypeProperties);
|
|
122
|
+
case 'WebLink':
|
|
123
|
+
return {
|
|
124
|
+
description: /*#__PURE__*/React.createElement(Text, {
|
|
125
|
+
size: "medium",
|
|
126
|
+
weight: "medium"
|
|
127
|
+
}, /*#__PURE__*/React.createElement(FormattedMessage, messages.webLinkContainerTitle)),
|
|
128
|
+
icon: null,
|
|
129
|
+
title: null,
|
|
130
|
+
containerTypeText: null
|
|
131
|
+
};
|
|
114
132
|
default:
|
|
115
133
|
return {
|
|
116
134
|
description: null,
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
/* index.tsx generated by @compiled/babel-plugin v0.36.1 */
|
|
2
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
2
3
|
import "./index.compiled.css";
|
|
3
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
4
5
|
import React, { useState } from 'react';
|
|
5
6
|
import { IconButton } from '@atlaskit/button/new';
|
|
6
7
|
import AddIcon from '@atlaskit/icon/utility/add';
|
|
8
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
7
9
|
import { Box, Flex, Inline, Stack, Text } from '@atlaskit/primitives/compiled';
|
|
8
10
|
import { getContainerProperties } from '../../../common/utils/get-container-properties';
|
|
9
11
|
const styles = {
|
|
@@ -55,9 +57,11 @@ export const AddContainerCard = ({
|
|
|
55
57
|
maxLines: 1,
|
|
56
58
|
weight: "medium",
|
|
57
59
|
color: "color.text"
|
|
58
|
-
}, title), /*#__PURE__*/React.createElement(Flex, {
|
|
60
|
+
}, title), /*#__PURE__*/React.createElement(Flex, _extends({
|
|
59
61
|
gap: "space.050"
|
|
60
|
-
},
|
|
62
|
+
}, fg('enable_card_alignment_fix') ? {
|
|
63
|
+
alignItems: 'center'
|
|
64
|
+
} : {}), icon, /*#__PURE__*/React.createElement(Text, {
|
|
61
65
|
size: "small",
|
|
62
66
|
color: "color.text.subtle"
|
|
63
67
|
}, description)))));
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/* index.tsx generated by @compiled/babel-plugin v0.36.1 */
|
|
2
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
2
3
|
import "./index.compiled.css";
|
|
3
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
4
5
|
import React, { useState } from 'react';
|
|
@@ -8,6 +9,7 @@ import Avatar from '@atlaskit/avatar';
|
|
|
8
9
|
import { IconButton } from '@atlaskit/button/new';
|
|
9
10
|
import CrossIcon from '@atlaskit/icon/utility/cross';
|
|
10
11
|
import Link from '@atlaskit/link';
|
|
12
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
11
13
|
import { Box, Flex, Inline, Stack, Text } from '@atlaskit/primitives/compiled';
|
|
12
14
|
import Tooltip from '@atlaskit/tooltip';
|
|
13
15
|
import { AnalyticsAction, usePeopleAndTeamAnalytics } from '../../../common/utils/analytics';
|
|
@@ -107,9 +109,11 @@ export const LinkedContainerCard = ({
|
|
|
107
109
|
maxLines: 1,
|
|
108
110
|
weight: "medium",
|
|
109
111
|
color: "color.text"
|
|
110
|
-
}, title), /*#__PURE__*/React.createElement(Flex, {
|
|
112
|
+
}, title), /*#__PURE__*/React.createElement(Flex, _extends({
|
|
111
113
|
gap: "space.050"
|
|
112
|
-
},
|
|
114
|
+
}, fg('enable_card_alignment_fix') ? {
|
|
115
|
+
alignItems: 'center'
|
|
116
|
+
} : {}), icon, /*#__PURE__*/React.createElement(Inline, {
|
|
113
117
|
space: "space.050"
|
|
114
118
|
}, /*#__PURE__*/React.createElement(Text, {
|
|
115
119
|
size: "small",
|
|
@@ -7,7 +7,8 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
7
7
|
import React from 'react';
|
|
8
8
|
import { defineMessages, FormattedMessage } from 'react-intl-next';
|
|
9
9
|
import Image from '@atlaskit/image';
|
|
10
|
-
import {
|
|
10
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
11
|
+
import { Box, Flex, Text } from '@atlaskit/primitives/compiled';
|
|
11
12
|
import ConfluenceIcon from '../assets/ConfluenceIcon.svg';
|
|
12
13
|
import JiraIcon from '../assets/JiraIcon.svg';
|
|
13
14
|
import JiraProjectDiscovery from '../assets/JiraProjectDiscovery.svg';
|
|
@@ -56,6 +57,11 @@ export var messages = defineMessages({
|
|
|
56
57
|
id: 'ptc-directory.team-profile-page.team-containers.space-container-text.non-final',
|
|
57
58
|
defaultMessage: 'space',
|
|
58
59
|
description: 'Text for space type containers'
|
|
60
|
+
},
|
|
61
|
+
webLinkContainerTitle: {
|
|
62
|
+
id: 'ptc-directory.team-profile-page.team-containers.webLink-container-text.non-final',
|
|
63
|
+
defaultMessage: 'Add any web link',
|
|
64
|
+
description: 'Description of the card to add a web link to a team'
|
|
59
65
|
}
|
|
60
66
|
});
|
|
61
67
|
var getJiraIcon = function getJiraIcon(containerSubTypes) {
|
|
@@ -72,9 +78,10 @@ var getJiraContainerProperties = function getJiraContainerProperties(containerTy
|
|
|
72
78
|
var _ref = containerTypeProperties || {},
|
|
73
79
|
subType = _ref.subType,
|
|
74
80
|
name = _ref.name;
|
|
81
|
+
var Comp = fg('enable_card_alignment_fix') ? Flex : Box;
|
|
75
82
|
var baseProperties = {
|
|
76
83
|
description: /*#__PURE__*/React.createElement(FormattedMessage, messages.jiraProjectDescription),
|
|
77
|
-
icon: /*#__PURE__*/React.createElement(
|
|
84
|
+
icon: /*#__PURE__*/React.createElement(Comp, {
|
|
78
85
|
xcss: styles.iconWrapper
|
|
79
86
|
}, /*#__PURE__*/React.createElement(Image, {
|
|
80
87
|
src: getJiraIcon(subType),
|
|
@@ -98,11 +105,12 @@ var getJiraContainerProperties = function getJiraContainerProperties(containerTy
|
|
|
98
105
|
export var getContainerProperties = function getContainerProperties(containerType) {
|
|
99
106
|
var iconSize = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'small';
|
|
100
107
|
var containerTypeProperties = arguments.length > 2 ? arguments[2] : undefined;
|
|
108
|
+
var Comp = fg('enable_card_alignment_fix') ? Flex : Box;
|
|
101
109
|
switch (containerType) {
|
|
102
110
|
case 'ConfluenceSpace':
|
|
103
111
|
return {
|
|
104
112
|
description: /*#__PURE__*/React.createElement(FormattedMessage, messages.confluenceContainerDescription),
|
|
105
|
-
icon: /*#__PURE__*/React.createElement(
|
|
113
|
+
icon: /*#__PURE__*/React.createElement(Comp, {
|
|
106
114
|
xcss: iconSize === 'medium' ? styles.mediumIconWrapper : styles.iconWrapper
|
|
107
115
|
}, /*#__PURE__*/React.createElement(Image, {
|
|
108
116
|
src: ConfluenceIcon,
|
|
@@ -114,6 +122,16 @@ export var getContainerProperties = function getContainerProperties(containerTyp
|
|
|
114
122
|
};
|
|
115
123
|
case 'JiraProject':
|
|
116
124
|
return getJiraContainerProperties(containerTypeProperties);
|
|
125
|
+
case 'WebLink':
|
|
126
|
+
return {
|
|
127
|
+
description: /*#__PURE__*/React.createElement(Text, {
|
|
128
|
+
size: "medium",
|
|
129
|
+
weight: "medium"
|
|
130
|
+
}, /*#__PURE__*/React.createElement(FormattedMessage, messages.webLinkContainerTitle)),
|
|
131
|
+
icon: null,
|
|
132
|
+
title: null,
|
|
133
|
+
containerTypeText: null
|
|
134
|
+
};
|
|
117
135
|
default:
|
|
118
136
|
return {
|
|
119
137
|
description: null,
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
/* index.tsx generated by @compiled/babel-plugin v0.36.1 */
|
|
2
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
2
3
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
3
4
|
import "./index.compiled.css";
|
|
4
5
|
import { ax, ix } from "@compiled/react/runtime";
|
|
5
6
|
import React, { useState } from 'react';
|
|
6
7
|
import { IconButton } from '@atlaskit/button/new';
|
|
7
8
|
import AddIcon from '@atlaskit/icon/utility/add';
|
|
9
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
8
10
|
import { Box, Flex, Inline, Stack, Text } from '@atlaskit/primitives/compiled';
|
|
9
11
|
import { getContainerProperties } from '../../../common/utils/get-container-properties';
|
|
10
12
|
var styles = {
|
|
@@ -60,9 +62,11 @@ export var AddContainerCard = function AddContainerCard(_ref2) {
|
|
|
60
62
|
maxLines: 1,
|
|
61
63
|
weight: "medium",
|
|
62
64
|
color: "color.text"
|
|
63
|
-
}, title), /*#__PURE__*/React.createElement(Flex, {
|
|
65
|
+
}, title), /*#__PURE__*/React.createElement(Flex, _extends({
|
|
64
66
|
gap: "space.050"
|
|
65
|
-
},
|
|
67
|
+
}, fg('enable_card_alignment_fix') ? {
|
|
68
|
+
alignItems: 'center'
|
|
69
|
+
} : {}), icon, /*#__PURE__*/React.createElement(Text, {
|
|
66
70
|
size: "small",
|
|
67
71
|
color: "color.text.subtle"
|
|
68
72
|
}, description)))));
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/* index.tsx generated by @compiled/babel-plugin v0.36.1 */
|
|
2
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
2
3
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
3
4
|
import "./index.compiled.css";
|
|
4
5
|
import { ax, ix } from "@compiled/react/runtime";
|
|
@@ -9,6 +10,7 @@ import Avatar from '@atlaskit/avatar';
|
|
|
9
10
|
import { IconButton } from '@atlaskit/button/new';
|
|
10
11
|
import CrossIcon from '@atlaskit/icon/utility/cross';
|
|
11
12
|
import Link from '@atlaskit/link';
|
|
13
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
12
14
|
import { Box, Flex, Inline, Stack, Text } from '@atlaskit/primitives/compiled';
|
|
13
15
|
import Tooltip from '@atlaskit/tooltip';
|
|
14
16
|
import { AnalyticsAction, usePeopleAndTeamAnalytics } from '../../../common/utils/analytics';
|
|
@@ -110,9 +112,11 @@ export var LinkedContainerCard = function LinkedContainerCard(_ref2) {
|
|
|
110
112
|
maxLines: 1,
|
|
111
113
|
weight: "medium",
|
|
112
114
|
color: "color.text"
|
|
113
|
-
}, title), /*#__PURE__*/React.createElement(Flex, {
|
|
115
|
+
}, title), /*#__PURE__*/React.createElement(Flex, _extends({
|
|
114
116
|
gap: "space.050"
|
|
115
|
-
},
|
|
117
|
+
}, fg('enable_card_alignment_fix') ? {
|
|
118
|
+
alignItems: 'center'
|
|
119
|
+
} : {}), icon, /*#__PURE__*/React.createElement(Inline, {
|
|
116
120
|
space: "space.050"
|
|
117
121
|
}, /*#__PURE__*/React.createElement(Text, {
|
|
118
122
|
size: "small",
|
|
@@ -48,6 +48,11 @@ export declare const messages: {
|
|
|
48
48
|
defaultMessage: string;
|
|
49
49
|
description: string;
|
|
50
50
|
};
|
|
51
|
+
webLinkContainerTitle: {
|
|
52
|
+
id: string;
|
|
53
|
+
defaultMessage: string;
|
|
54
|
+
description: string;
|
|
55
|
+
};
|
|
51
56
|
};
|
|
52
57
|
export declare const getContainerProperties: (containerType: ContainerTypes, iconSize?: IconSize, containerTypeProperties?: {
|
|
53
58
|
subType?: ContainerSubTypes;
|
|
@@ -48,6 +48,11 @@ export declare const messages: {
|
|
|
48
48
|
defaultMessage: string;
|
|
49
49
|
description: string;
|
|
50
50
|
};
|
|
51
|
+
webLinkContainerTitle: {
|
|
52
|
+
id: string;
|
|
53
|
+
defaultMessage: string;
|
|
54
|
+
description: string;
|
|
55
|
+
};
|
|
51
56
|
};
|
|
52
57
|
export declare const getContainerProperties: (containerType: ContainerTypes, iconSize?: IconSize, containerTypeProperties?: {
|
|
53
58
|
subType?: ContainerSubTypes;
|
package/package.json
CHANGED
|
@@ -33,16 +33,17 @@
|
|
|
33
33
|
"@atlaskit/avatar": "^25.0.0",
|
|
34
34
|
"@atlaskit/button": "^23.0.0",
|
|
35
35
|
"@atlaskit/css": "^0.10.0",
|
|
36
|
-
"@atlaskit/heading": "^5.
|
|
37
|
-
"@atlaskit/icon": "^25.
|
|
36
|
+
"@atlaskit/heading": "^5.2.0",
|
|
37
|
+
"@atlaskit/icon": "^25.6.0",
|
|
38
38
|
"@atlaskit/image": "^3.0.0",
|
|
39
39
|
"@atlaskit/link": "^3.1.0",
|
|
40
40
|
"@atlaskit/logo": "^16.0.0",
|
|
41
41
|
"@atlaskit/modal-dialog": "^14.1.0",
|
|
42
42
|
"@atlaskit/people-teams-ui-public": "^3.1.0",
|
|
43
|
-
"@atlaskit/
|
|
43
|
+
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
44
|
+
"@atlaskit/primitives": "^14.4.0",
|
|
44
45
|
"@atlaskit/theme": "^18.0.0",
|
|
45
|
-
"@atlaskit/tokens": "^4.
|
|
46
|
+
"@atlaskit/tokens": "^4.7.0",
|
|
46
47
|
"@atlaskit/tooltip": "^20.0.0",
|
|
47
48
|
"@babel/runtime": "^7.0.0",
|
|
48
49
|
"@compiled/react": "^0.18.3",
|
|
@@ -106,7 +107,7 @@
|
|
|
106
107
|
}
|
|
107
108
|
},
|
|
108
109
|
"name": "@atlaskit/teams-public",
|
|
109
|
-
"version": "0.
|
|
110
|
+
"version": "0.24.0",
|
|
110
111
|
"description": "Public components related to teams",
|
|
111
112
|
"author": "Atlassian Pty Ltd",
|
|
112
113
|
"license": "Apache-2.0",
|
|
@@ -115,5 +116,10 @@
|
|
|
115
116
|
},
|
|
116
117
|
"scripts": {
|
|
117
118
|
"ak-postbuild": "ls -d dist/* | xargs -n 1 copyfiles -u 1 -V src/**/*.svg"
|
|
119
|
+
},
|
|
120
|
+
"platform-feature-flags": {
|
|
121
|
+
"enable_card_alignment_fix": {
|
|
122
|
+
"type": "boolean"
|
|
123
|
+
}
|
|
118
124
|
}
|
|
119
125
|
}
|