@atlaskit/teams-public 0.70.9 → 0.71.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
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# @atlaskit/teams-public
|
|
2
2
|
|
|
3
|
+
## 0.71.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`884f8dadc3c94`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/884f8dadc3c94) -
|
|
8
|
+
Cleaned up feature gate related to the after icon sizing in containers
|
|
9
|
+
|
|
3
10
|
## 0.70.9
|
|
4
11
|
|
|
5
12
|
### Patch Changes
|
|
@@ -15,7 +15,6 @@ var _css = require("@atlaskit/css");
|
|
|
15
15
|
var _link = _interopRequireDefault(require("@atlaskit/icon/core/link"));
|
|
16
16
|
var _linkExternal = _interopRequireDefault(require("@atlaskit/icon/core/link-external"));
|
|
17
17
|
var _image = _interopRequireDefault(require("@atlaskit/image"));
|
|
18
|
-
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
19
18
|
var _compiled = require("@atlaskit/primitives/compiled");
|
|
20
19
|
var _ConfluenceIcon = _interopRequireDefault(require("../assets/ConfluenceIcon.svg"));
|
|
21
20
|
var _JiraIcon = _interopRequireDefault(require("../assets/JiraIcon.svg"));
|
|
@@ -97,15 +96,14 @@ var getJiraIcon = function getJiraIcon(containerSubTypes) {
|
|
|
97
96
|
var getJiraContainerProperties = function getJiraContainerProperties(_ref) {
|
|
98
97
|
var containerTypeProperties = _ref.containerTypeProperties,
|
|
99
98
|
_ref$iconSize = _ref.iconSize,
|
|
100
|
-
iconSize = _ref$iconSize === void 0 ?
|
|
99
|
+
iconSize = _ref$iconSize === void 0 ? 'medium' : _ref$iconSize;
|
|
101
100
|
var _ref2 = containerTypeProperties || {},
|
|
102
101
|
subType = _ref2.subType,
|
|
103
102
|
name = _ref2.name;
|
|
104
|
-
var isAfterIconSizeFixEnabled = (0, _platformFeatureFlags.fg)('ptc-fix-containers-after-icon-size');
|
|
105
103
|
var baseProperties = {
|
|
106
104
|
description: /*#__PURE__*/_react.default.createElement(_reactIntlNext.FormattedMessage, messages.jiraProjectDescription),
|
|
107
105
|
icon: /*#__PURE__*/_react.default.createElement(_compiled.Flex, {
|
|
108
|
-
xcss: (0, _css.cx)(iconSize === 'small'
|
|
106
|
+
xcss: (0, _css.cx)(iconSize === 'small' ? styles.smallAvatarWrapper : styles.avatarWrapper, iconSize === 'small' ? styles.smallAvatarMargin : styles.avatarMargin)
|
|
109
107
|
}, /*#__PURE__*/_react.default.createElement(_image.default, {
|
|
110
108
|
src: getJiraIcon(subType),
|
|
111
109
|
alt: "",
|
|
@@ -157,17 +155,16 @@ var getWebLinkContainerProperties = function getWebLinkContainerProperties(_ref3
|
|
|
157
155
|
var getContainerProperties = exports.getContainerProperties = function getContainerProperties(_ref4) {
|
|
158
156
|
var containerType = _ref4.containerType,
|
|
159
157
|
_ref4$iconSize = _ref4.iconSize,
|
|
160
|
-
iconSize = _ref4$iconSize === void 0 ?
|
|
158
|
+
iconSize = _ref4$iconSize === void 0 ? 'medium' : _ref4$iconSize,
|
|
161
159
|
containerTypeProperties = _ref4.containerTypeProperties,
|
|
162
160
|
isEmptyContainer = _ref4.isEmptyContainer,
|
|
163
161
|
isDisplayedOnProfileCard = _ref4.isDisplayedOnProfileCard;
|
|
164
|
-
var isAfterIconSizeFixEnabled = (0, _platformFeatureFlags.fg)('ptc-fix-containers-after-icon-size');
|
|
165
162
|
switch (containerType) {
|
|
166
163
|
case 'ConfluenceSpace':
|
|
167
164
|
return {
|
|
168
165
|
description: /*#__PURE__*/_react.default.createElement(_reactIntlNext.FormattedMessage, messages.confluenceContainerDescription),
|
|
169
166
|
icon: /*#__PURE__*/_react.default.createElement(_compiled.Flex, {
|
|
170
|
-
xcss: (0, _css.cx)(iconSize === 'small'
|
|
167
|
+
xcss: (0, _css.cx)(iconSize === 'small' ? styles.smallAvatarWrapper : styles.avatarWrapper, iconSize === 'small' ? styles.smallAvatarMargin : styles.avatarMargin)
|
|
171
168
|
}, /*#__PURE__*/_react.default.createElement(_image.default, {
|
|
172
169
|
src: _ConfluenceIcon.default,
|
|
173
170
|
alt: "",
|
|
@@ -180,7 +177,7 @@ var getContainerProperties = exports.getContainerProperties = function getContai
|
|
|
180
177
|
return {
|
|
181
178
|
description: /*#__PURE__*/_react.default.createElement(_reactIntlNext.FormattedMessage, messages.loomSpaceDescription),
|
|
182
179
|
icon: /*#__PURE__*/_react.default.createElement(_compiled.Flex, {
|
|
183
|
-
xcss: (0, _css.cx)(iconSize === 'small'
|
|
180
|
+
xcss: (0, _css.cx)(iconSize === 'small' ? styles.smallAvatarWrapper : styles.avatarWrapper, iconSize === 'small' ? styles.smallAvatarMargin : styles.avatarMargin)
|
|
184
181
|
}, /*#__PURE__*/_react.default.createElement(_image.default, {
|
|
185
182
|
src: _LoomIcon.default,
|
|
186
183
|
alt: "",
|
|
@@ -7,7 +7,6 @@ import { cx } from '@atlaskit/css';
|
|
|
7
7
|
import LinkIcon from '@atlaskit/icon/core/link';
|
|
8
8
|
import LinkExternalIcon from '@atlaskit/icon/core/link-external';
|
|
9
9
|
import Image from '@atlaskit/image';
|
|
10
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
11
10
|
import { Box, Flex, Text } from '@atlaskit/primitives/compiled';
|
|
12
11
|
import ConfluenceIcon from '../assets/ConfluenceIcon.svg';
|
|
13
12
|
import JiraIcon from '../assets/JiraIcon.svg';
|
|
@@ -86,17 +85,16 @@ const getJiraIcon = containerSubTypes => {
|
|
|
86
85
|
};
|
|
87
86
|
const getJiraContainerProperties = ({
|
|
88
87
|
containerTypeProperties,
|
|
89
|
-
iconSize =
|
|
88
|
+
iconSize = 'medium'
|
|
90
89
|
}) => {
|
|
91
90
|
const {
|
|
92
91
|
subType,
|
|
93
92
|
name
|
|
94
93
|
} = containerTypeProperties || {};
|
|
95
|
-
const isAfterIconSizeFixEnabled = fg('ptc-fix-containers-after-icon-size');
|
|
96
94
|
const baseProperties = {
|
|
97
95
|
description: /*#__PURE__*/React.createElement(FormattedMessage, messages.jiraProjectDescription),
|
|
98
96
|
icon: /*#__PURE__*/React.createElement(Flex, {
|
|
99
|
-
xcss: cx(iconSize === 'small'
|
|
97
|
+
xcss: cx(iconSize === 'small' ? styles.smallAvatarWrapper : styles.avatarWrapper, iconSize === 'small' ? styles.smallAvatarMargin : styles.avatarMargin)
|
|
100
98
|
}, /*#__PURE__*/React.createElement(Image, {
|
|
101
99
|
src: getJiraIcon(subType),
|
|
102
100
|
alt: "",
|
|
@@ -149,18 +147,17 @@ const getWebLinkContainerProperties = ({
|
|
|
149
147
|
};
|
|
150
148
|
export const getContainerProperties = ({
|
|
151
149
|
containerType,
|
|
152
|
-
iconSize =
|
|
150
|
+
iconSize = 'medium',
|
|
153
151
|
containerTypeProperties,
|
|
154
152
|
isEmptyContainer,
|
|
155
153
|
isDisplayedOnProfileCard
|
|
156
154
|
}) => {
|
|
157
|
-
const isAfterIconSizeFixEnabled = fg('ptc-fix-containers-after-icon-size');
|
|
158
155
|
switch (containerType) {
|
|
159
156
|
case 'ConfluenceSpace':
|
|
160
157
|
return {
|
|
161
158
|
description: /*#__PURE__*/React.createElement(FormattedMessage, messages.confluenceContainerDescription),
|
|
162
159
|
icon: /*#__PURE__*/React.createElement(Flex, {
|
|
163
|
-
xcss: cx(iconSize === 'small'
|
|
160
|
+
xcss: cx(iconSize === 'small' ? styles.smallAvatarWrapper : styles.avatarWrapper, iconSize === 'small' ? styles.smallAvatarMargin : styles.avatarMargin)
|
|
164
161
|
}, /*#__PURE__*/React.createElement(Image, {
|
|
165
162
|
src: ConfluenceIcon,
|
|
166
163
|
alt: "",
|
|
@@ -173,7 +170,7 @@ export const getContainerProperties = ({
|
|
|
173
170
|
return {
|
|
174
171
|
description: /*#__PURE__*/React.createElement(FormattedMessage, messages.loomSpaceDescription),
|
|
175
172
|
icon: /*#__PURE__*/React.createElement(Flex, {
|
|
176
|
-
xcss: cx(iconSize === 'small'
|
|
173
|
+
xcss: cx(iconSize === 'small' ? styles.smallAvatarWrapper : styles.avatarWrapper, iconSize === 'small' ? styles.smallAvatarMargin : styles.avatarMargin)
|
|
177
174
|
}, /*#__PURE__*/React.createElement(Image, {
|
|
178
175
|
src: LoomIcon,
|
|
179
176
|
alt: "",
|
|
@@ -10,7 +10,6 @@ import { cx } from '@atlaskit/css';
|
|
|
10
10
|
import LinkIcon from '@atlaskit/icon/core/link';
|
|
11
11
|
import LinkExternalIcon from '@atlaskit/icon/core/link-external';
|
|
12
12
|
import Image from '@atlaskit/image';
|
|
13
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
14
13
|
import { Box, Flex, Text } from '@atlaskit/primitives/compiled';
|
|
15
14
|
import ConfluenceIcon from '../assets/ConfluenceIcon.svg';
|
|
16
15
|
import JiraIcon from '../assets/JiraIcon.svg';
|
|
@@ -90,15 +89,14 @@ var getJiraIcon = function getJiraIcon(containerSubTypes) {
|
|
|
90
89
|
var getJiraContainerProperties = function getJiraContainerProperties(_ref) {
|
|
91
90
|
var containerTypeProperties = _ref.containerTypeProperties,
|
|
92
91
|
_ref$iconSize = _ref.iconSize,
|
|
93
|
-
iconSize = _ref$iconSize === void 0 ?
|
|
92
|
+
iconSize = _ref$iconSize === void 0 ? 'medium' : _ref$iconSize;
|
|
94
93
|
var _ref2 = containerTypeProperties || {},
|
|
95
94
|
subType = _ref2.subType,
|
|
96
95
|
name = _ref2.name;
|
|
97
|
-
var isAfterIconSizeFixEnabled = fg('ptc-fix-containers-after-icon-size');
|
|
98
96
|
var baseProperties = {
|
|
99
97
|
description: /*#__PURE__*/React.createElement(FormattedMessage, messages.jiraProjectDescription),
|
|
100
98
|
icon: /*#__PURE__*/React.createElement(Flex, {
|
|
101
|
-
xcss: cx(iconSize === 'small'
|
|
99
|
+
xcss: cx(iconSize === 'small' ? styles.smallAvatarWrapper : styles.avatarWrapper, iconSize === 'small' ? styles.smallAvatarMargin : styles.avatarMargin)
|
|
102
100
|
}, /*#__PURE__*/React.createElement(Image, {
|
|
103
101
|
src: getJiraIcon(subType),
|
|
104
102
|
alt: "",
|
|
@@ -150,17 +148,16 @@ var getWebLinkContainerProperties = function getWebLinkContainerProperties(_ref3
|
|
|
150
148
|
export var getContainerProperties = function getContainerProperties(_ref4) {
|
|
151
149
|
var containerType = _ref4.containerType,
|
|
152
150
|
_ref4$iconSize = _ref4.iconSize,
|
|
153
|
-
iconSize = _ref4$iconSize === void 0 ?
|
|
151
|
+
iconSize = _ref4$iconSize === void 0 ? 'medium' : _ref4$iconSize,
|
|
154
152
|
containerTypeProperties = _ref4.containerTypeProperties,
|
|
155
153
|
isEmptyContainer = _ref4.isEmptyContainer,
|
|
156
154
|
isDisplayedOnProfileCard = _ref4.isDisplayedOnProfileCard;
|
|
157
|
-
var isAfterIconSizeFixEnabled = fg('ptc-fix-containers-after-icon-size');
|
|
158
155
|
switch (containerType) {
|
|
159
156
|
case 'ConfluenceSpace':
|
|
160
157
|
return {
|
|
161
158
|
description: /*#__PURE__*/React.createElement(FormattedMessage, messages.confluenceContainerDescription),
|
|
162
159
|
icon: /*#__PURE__*/React.createElement(Flex, {
|
|
163
|
-
xcss: cx(iconSize === 'small'
|
|
160
|
+
xcss: cx(iconSize === 'small' ? styles.smallAvatarWrapper : styles.avatarWrapper, iconSize === 'small' ? styles.smallAvatarMargin : styles.avatarMargin)
|
|
164
161
|
}, /*#__PURE__*/React.createElement(Image, {
|
|
165
162
|
src: ConfluenceIcon,
|
|
166
163
|
alt: "",
|
|
@@ -173,7 +170,7 @@ export var getContainerProperties = function getContainerProperties(_ref4) {
|
|
|
173
170
|
return {
|
|
174
171
|
description: /*#__PURE__*/React.createElement(FormattedMessage, messages.loomSpaceDescription),
|
|
175
172
|
icon: /*#__PURE__*/React.createElement(Flex, {
|
|
176
|
-
xcss: cx(iconSize === 'small'
|
|
173
|
+
xcss: cx(iconSize === 'small' ? styles.smallAvatarWrapper : styles.avatarWrapper, iconSize === 'small' ? styles.smallAvatarMargin : styles.avatarMargin)
|
|
177
174
|
}, /*#__PURE__*/React.createElement(Image, {
|
|
178
175
|
src: LoomIcon,
|
|
179
176
|
alt: "",
|
package/package.json
CHANGED
|
@@ -107,7 +107,7 @@
|
|
|
107
107
|
}
|
|
108
108
|
},
|
|
109
109
|
"name": "@atlaskit/teams-public",
|
|
110
|
-
"version": "0.
|
|
110
|
+
"version": "0.71.0",
|
|
111
111
|
"description": "Public components related to teams",
|
|
112
112
|
"author": "Atlassian Pty Ltd",
|
|
113
113
|
"license": "Apache-2.0",
|
|
@@ -134,9 +134,6 @@
|
|
|
134
134
|
"enable-fix-team-container-height": {
|
|
135
135
|
"type": "boolean"
|
|
136
136
|
},
|
|
137
|
-
"ptc-fix-containers-after-icon-size": {
|
|
138
|
-
"type": "boolean"
|
|
139
|
-
},
|
|
140
137
|
"ptc-missed-analytics-migration-events": {
|
|
141
138
|
"type": "boolean"
|
|
142
139
|
},
|