@atlaskit/icon 30.1.0 → 31.0.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,16 @@
1
1
  # @atlaskit/icon
2
2
 
3
+ ## 31.0.0
4
+
5
+ ### Major Changes
6
+
7
+ - [`cba951d9c882d`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/cba951d9c882d) -
8
+ Dropping LEGACY_fallback prop from icon-tile
9
+
10
+ ### Patch Changes
11
+
12
+ - Updated dependencies
13
+
3
14
  ## 30.1.0
4
15
 
5
16
  ### Minor Changes
@@ -47,11 +47,7 @@ function IconTile(_ref) {
47
47
  size = _ref.size,
48
48
  testId = _ref.testId,
49
49
  shape = _ref.shape,
50
- LEGACY_fallbackComponent = _ref.LEGACY_fallbackComponent,
51
50
  UNSAFE_circleReplacementComponent = _ref.UNSAFE_circleReplacementComponent;
52
- if (LEGACY_fallbackComponent && !(0, _platformFeatureFlags.fg)('platform-visual-refresh-icons')) {
53
- return LEGACY_fallbackComponent;
54
- }
55
51
  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
52
  return UNSAFE_circleReplacementComponent;
57
53
  }
@@ -40,12 +40,8 @@ export default function IconTile({
40
40
  size,
41
41
  testId,
42
42
  shape,
43
- LEGACY_fallbackComponent,
44
43
  UNSAFE_circleReplacementComponent
45
44
  }) {
46
- if (LEGACY_fallbackComponent && !fg('platform-visual-refresh-icons')) {
47
- return LEGACY_fallbackComponent;
48
- }
49
45
  if (UNSAFE_circleReplacementComponent && shape === 'circle' && (fg('platform_dst_icon_tile_circle_replacement') || fg('platform_dst_icon_tile_circle_replacement_stage2'))) {
50
46
  return UNSAFE_circleReplacementComponent;
51
47
  }
@@ -40,11 +40,7 @@ export default function IconTile(_ref) {
40
40
  size = _ref.size,
41
41
  testId = _ref.testId,
42
42
  shape = _ref.shape,
43
- LEGACY_fallbackComponent = _ref.LEGACY_fallbackComponent,
44
43
  UNSAFE_circleReplacementComponent = _ref.UNSAFE_circleReplacementComponent;
45
- if (LEGACY_fallbackComponent && !fg('platform-visual-refresh-icons')) {
46
- return LEGACY_fallbackComponent;
47
- }
48
44
  if (UNSAFE_circleReplacementComponent && shape === 'circle' && (fg('platform_dst_icon_tile_circle_replacement') || fg('platform_dst_icon_tile_circle_replacement_stage2'))) {
49
45
  return UNSAFE_circleReplacementComponent;
50
46
  }
@@ -5,4 +5,4 @@ import { type IconTileProps } from '../../types';
5
5
  *
6
6
  * An icon with background shape, color, and size properties determined by Tile.
7
7
  */
8
- export default function IconTile({ appearance, icon: Icon, label, size, testId, shape, LEGACY_fallbackComponent, UNSAFE_circleReplacementComponent, }: IconTileProps): React.JSX.Element;
8
+ export default function IconTile({ appearance, icon: Icon, label, size, testId, shape, UNSAFE_circleReplacementComponent, }: IconTileProps): React.JSX.Element;
@@ -177,11 +177,6 @@ export interface IconTileProps {
177
177
  * implement alternatives.
178
178
  */
179
179
  shape?: 'square' | 'circle';
180
- /**
181
- * Legacy component to render when the icon refresh feature flag is turned off.
182
- * @deprecated This prop is deprecated and will be removed in a future version.
183
- */
184
- LEGACY_fallbackComponent?: ReactElement;
185
180
  /**
186
181
  * A component to render in place of circle shaped icon tiles, swapped out with a feature flag.
187
182
  *
@@ -5,4 +5,4 @@ import { type IconTileProps } from '../../types';
5
5
  *
6
6
  * An icon with background shape, color, and size properties determined by Tile.
7
7
  */
8
- export default function IconTile({ appearance, icon: Icon, label, size, testId, shape, LEGACY_fallbackComponent, UNSAFE_circleReplacementComponent, }: IconTileProps): React.JSX.Element;
8
+ export default function IconTile({ appearance, icon: Icon, label, size, testId, shape, UNSAFE_circleReplacementComponent, }: IconTileProps): React.JSX.Element;
@@ -177,11 +177,6 @@ export interface IconTileProps {
177
177
  * implement alternatives.
178
178
  */
179
179
  shape?: 'square' | 'circle';
180
- /**
181
- * Legacy component to render when the icon refresh feature flag is turned off.
182
- * @deprecated This prop is deprecated and will be removed in a future version.
183
- */
184
- LEGACY_fallbackComponent?: ReactElement;
185
180
  /**
186
181
  * A component to render in place of circle shaped icon tiles, swapped out with a feature flag.
187
182
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/icon",
3
- "version": "30.1.0",
3
+ "version": "31.0.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/"