@atlaskit/icon 29.0.1 → 29.1.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 +20 -0
- package/afm-cc/tsconfig.json +2 -1
- package/afm-jira/tsconfig.json +2 -1
- package/afm-products/tsconfig.json +2 -1
- package/dist/cjs/components/icon-tile/icon-tile-new.js +1 -1
- package/dist/cjs/components/icon-tile/index.js +2 -2
- package/dist/es2019/components/icon-tile/icon-tile-new.js +1 -1
- package/dist/es2019/components/icon-tile/index.js +2 -2
- package/dist/esm/components/icon-tile/icon-tile-new.js +1 -1
- package/dist/esm/components/icon-tile/index.js +2 -2
- package/package.json +18 -31
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,25 @@
|
|
|
1
1
|
# @atlaskit/icon
|
|
2
2
|
|
|
3
|
+
## 29.1.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`7df690ca5c497`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/7df690ca5c497) -
|
|
8
|
+
We are expanding the testing of previous changes behind an additional feature flag to more apps.
|
|
9
|
+
If this change is successful, it will be available in a later release.
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [`7df690ca5c497`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/7df690ca5c497) -
|
|
14
|
+
Fixes a bug with the unreleased icon tile versions being dual-labelled.
|
|
15
|
+
|
|
16
|
+
## 29.0.2
|
|
17
|
+
|
|
18
|
+
### Patch Changes
|
|
19
|
+
|
|
20
|
+
- [`585f5315200e2`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/585f5315200e2) -
|
|
21
|
+
Remove legacy icon documentation, examples, and tests.
|
|
22
|
+
|
|
3
23
|
## 29.0.1
|
|
4
24
|
|
|
5
25
|
### Patch Changes
|
package/afm-cc/tsconfig.json
CHANGED
package/afm-jira/tsconfig.json
CHANGED
|
@@ -52,10 +52,10 @@ function IconTile(_ref) {
|
|
|
52
52
|
if (LEGACY_fallbackComponent && !(0, _platformFeatureFlags.fg)('platform-visual-refresh-icons')) {
|
|
53
53
|
return LEGACY_fallbackComponent;
|
|
54
54
|
}
|
|
55
|
-
if (UNSAFE_circleReplacementComponent && shape === 'circle' && (0, _platformFeatureFlags.fg)('platform_dst_icon_tile_circle_replacement')) {
|
|
55
|
+
if (UNSAFE_circleReplacementComponent && shape === 'circle' && ((0, _platformFeatureFlags.fg)('platform_dst_icon_tile_circle_replacement') || (0, _platformFeatureFlags.fg)('platform_dst_icon_tile_circle_replacement_stage2'))) {
|
|
56
56
|
return UNSAFE_circleReplacementComponent;
|
|
57
57
|
}
|
|
58
|
-
if (shape !== 'circle' && (0, _platformFeatureFlags.fg)('platform_dst_new_icon_tile')) {
|
|
58
|
+
if (shape !== 'circle' && ((0, _platformFeatureFlags.fg)('platform_dst_new_icon_tile') || (0, _platformFeatureFlags.fg)('platform_dst_new_icon_tile_stage2'))) {
|
|
59
59
|
// Handle size 16 - render icon directly without Tile
|
|
60
60
|
if (size === '16') {
|
|
61
61
|
return /*#__PURE__*/_react.default.createElement(Icon, {
|
|
@@ -46,10 +46,10 @@ export default function IconTile({
|
|
|
46
46
|
if (LEGACY_fallbackComponent && !fg('platform-visual-refresh-icons')) {
|
|
47
47
|
return LEGACY_fallbackComponent;
|
|
48
48
|
}
|
|
49
|
-
if (UNSAFE_circleReplacementComponent && shape === 'circle' && fg('platform_dst_icon_tile_circle_replacement')) {
|
|
49
|
+
if (UNSAFE_circleReplacementComponent && shape === 'circle' && (fg('platform_dst_icon_tile_circle_replacement') || fg('platform_dst_icon_tile_circle_replacement_stage2'))) {
|
|
50
50
|
return UNSAFE_circleReplacementComponent;
|
|
51
51
|
}
|
|
52
|
-
if (shape !== 'circle' && fg('platform_dst_new_icon_tile')) {
|
|
52
|
+
if (shape !== 'circle' && (fg('platform_dst_new_icon_tile') || fg('platform_dst_new_icon_tile_stage2'))) {
|
|
53
53
|
// Handle size 16 - render icon directly without Tile
|
|
54
54
|
if (size === '16') {
|
|
55
55
|
return /*#__PURE__*/React.createElement(Icon, {
|
|
@@ -45,10 +45,10 @@ export default function IconTile(_ref) {
|
|
|
45
45
|
if (LEGACY_fallbackComponent && !fg('platform-visual-refresh-icons')) {
|
|
46
46
|
return LEGACY_fallbackComponent;
|
|
47
47
|
}
|
|
48
|
-
if (UNSAFE_circleReplacementComponent && shape === 'circle' && fg('platform_dst_icon_tile_circle_replacement')) {
|
|
48
|
+
if (UNSAFE_circleReplacementComponent && shape === 'circle' && (fg('platform_dst_icon_tile_circle_replacement') || fg('platform_dst_icon_tile_circle_replacement_stage2'))) {
|
|
49
49
|
return UNSAFE_circleReplacementComponent;
|
|
50
50
|
}
|
|
51
|
-
if (shape !== 'circle' && fg('platform_dst_new_icon_tile')) {
|
|
51
|
+
if (shape !== 'circle' && (fg('platform_dst_new_icon_tile') || fg('platform_dst_new_icon_tile_stage2'))) {
|
|
52
52
|
// Handle size 16 - render icon directly without Tile
|
|
53
53
|
if (size === '16') {
|
|
54
54
|
return /*#__PURE__*/React.createElement(Icon, {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/icon",
|
|
3
|
-
"version": "29.0
|
|
3
|
+
"version": "29.1.0",
|
|
4
4
|
"description": "An icon is a symbol representing a command, device, directory, or common action.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -22,34 +22,15 @@
|
|
|
22
22
|
"name": "Icon",
|
|
23
23
|
"category": "Images and icons",
|
|
24
24
|
"subPages": [
|
|
25
|
-
{
|
|
26
|
-
"title": "Icon (legacy)",
|
|
27
|
-
"id": "icon-legacy",
|
|
28
|
-
"sortKey": 1,
|
|
29
|
-
"status": {
|
|
30
|
-
"type": "deprecated",
|
|
31
|
-
"description": "Legacy icons (`@atlaskit/icon/glyph`) are deprecated. We recommend migrating to our new iconography system.",
|
|
32
|
-
"actions": [
|
|
33
|
-
{
|
|
34
|
-
"text": "View new icons",
|
|
35
|
-
"href": "/components/icon/"
|
|
36
|
-
},
|
|
37
|
-
{
|
|
38
|
-
"text": "Migration Guide",
|
|
39
|
-
"href": "/components/icon/migration-guide/"
|
|
40
|
-
}
|
|
41
|
-
]
|
|
42
|
-
}
|
|
43
|
-
},
|
|
44
25
|
{
|
|
45
26
|
"title": "Icon tile",
|
|
46
27
|
"id": "icon-tile",
|
|
47
|
-
"sortKey":
|
|
28
|
+
"sortKey": 1
|
|
48
29
|
},
|
|
49
30
|
{
|
|
50
31
|
"title": "Custom icon (legacy)",
|
|
51
32
|
"id": "custom-icon",
|
|
52
|
-
"sortKey":
|
|
33
|
+
"sortKey": 2,
|
|
53
34
|
"status": {
|
|
54
35
|
"type": "deprecated",
|
|
55
36
|
"description": "Custom icon is deprecated. We recommend using either an existing icon from @atlaskit/icon or @atlaskit/icon-lab, or contributing to @atlaskit/icon-lab directly. For third party logos, use an SVG element along with a label.",
|
|
@@ -68,7 +49,7 @@
|
|
|
68
49
|
{
|
|
69
50
|
"title": "Custom SVG",
|
|
70
51
|
"id": "custom-svg",
|
|
71
|
-
"sortKey":
|
|
52
|
+
"sortKey": 3,
|
|
72
53
|
"status": {
|
|
73
54
|
"type": "deprecated",
|
|
74
55
|
"description": "Custom SVG is deprecated. We recommend using either an existing icon from @atlaskit/icon or @atlaskit/icon-lab, or contributing to @atlaskit/icon-lab directly. For third party logos, use an SVG element along with a label.",
|
|
@@ -105,23 +86,23 @@
|
|
|
105
86
|
"@af/icon-build-process": "workspace:^",
|
|
106
87
|
"@af/integration-testing": "workspace:^",
|
|
107
88
|
"@af/visual-regression": "workspace:^",
|
|
108
|
-
"@atlaskit/button": "^23.
|
|
109
|
-
"@atlaskit/code": "^17.
|
|
89
|
+
"@atlaskit/button": "^23.7.0",
|
|
90
|
+
"@atlaskit/code": "^17.4.0",
|
|
110
91
|
"@atlaskit/css": "^0.17.0",
|
|
111
92
|
"@atlaskit/docs": "^11.2.0",
|
|
112
|
-
"@atlaskit/form": "^
|
|
93
|
+
"@atlaskit/form": "^15.0.0",
|
|
113
94
|
"@atlaskit/heading": "^5.2.0",
|
|
114
95
|
"@atlaskit/icon-file-type": "^7.0.0",
|
|
115
|
-
"@atlaskit/icon-object": "^7.
|
|
96
|
+
"@atlaskit/icon-object": "^7.4.0",
|
|
116
97
|
"@atlaskit/link": "^3.2.0",
|
|
117
98
|
"@atlaskit/logo": "^19.9.0",
|
|
118
99
|
"@atlaskit/menu": "^8.4.0",
|
|
119
|
-
"@atlaskit/modal-dialog": "^14.
|
|
100
|
+
"@atlaskit/modal-dialog": "^14.8.0",
|
|
120
101
|
"@atlaskit/primitives": "^16.4.0",
|
|
121
|
-
"@atlaskit/section-message": "^8.
|
|
122
|
-
"@atlaskit/textfield": "^8.
|
|
102
|
+
"@atlaskit/section-message": "^8.10.0",
|
|
103
|
+
"@atlaskit/textfield": "^8.2.0",
|
|
123
104
|
"@atlaskit/theme": "^21.0.0",
|
|
124
|
-
"@atlaskit/toggle": "^15.
|
|
105
|
+
"@atlaskit/toggle": "^15.2.0",
|
|
125
106
|
"@atlaskit/tooltip": "^20.11.0",
|
|
126
107
|
"@atlassian/feature-flags-test-utils": "^1.0.0",
|
|
127
108
|
"@atlassian/ssr-tests": "workspace:^",
|
|
@@ -191,8 +172,14 @@
|
|
|
191
172
|
"platform_dst_new_icon_tile": {
|
|
192
173
|
"type": "boolean"
|
|
193
174
|
},
|
|
175
|
+
"platform_dst_new_icon_tile_stage2": {
|
|
176
|
+
"type": "boolean"
|
|
177
|
+
},
|
|
194
178
|
"platform_dst_icon_tile_circle_replacement": {
|
|
195
179
|
"type": "boolean"
|
|
180
|
+
},
|
|
181
|
+
"platform_dst_icon_tile_circle_replacement_stage2": {
|
|
182
|
+
"type": "boolean"
|
|
196
183
|
}
|
|
197
184
|
}
|
|
198
185
|
}
|