@atlaskit/icon 33.0.2 → 33.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 CHANGED
@@ -1,5 +1,17 @@
1
1
  # @atlaskit/icon
2
2
 
3
+ ## 33.1.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`0daada0469ab8`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/0daada0469ab8) -
8
+ Remove `@atlaskit/icon/migration-map` entry point, `IconMigrationMap` and
9
+ `IconMigrationSizeGuidance` types from `@atlaskit/icon`, and `@atlaskit/icon-lab/migration-map`
10
+ entry point. These were only needed to support the legacy glyph icon migration path which has now
11
+ been fully completed. Remove the `no-legacy-icons` ESLint rule from
12
+ `@atlaskit/eslint-plugin-design-system` as `@atlaskit/icon/glyph` and
13
+ `@atlaskit/icon/core/migration` no longer exist.
14
+
3
15
  ## 33.0.2
4
16
 
5
17
  ### Patch Changes
@@ -1 +1 @@
1
- export type { CustomGlyphProps, GlyphProps, IconProps, Size, SkeletonProps, SVGProps, NewIconProps, NewGlyphColorProps, NewCoreIconProps, IconMigrationMap, IconSpacing, IconSize, IconTileProps, } from '../types';
1
+ export type { CustomGlyphProps, GlyphProps, IconProps, Size, SkeletonProps, SVGProps, NewIconProps, NewGlyphColorProps, NewCoreIconProps, IconSpacing, IconSize, IconTileProps, } from '../types';
@@ -4,4 +4,4 @@ export { default as SVG } from './components/svg';
4
4
  export { sizeMap as size, sizes } from './constants';
5
5
  export { default as Skeleton } from './components/skeleton';
6
6
  export { default as IconTile } from './components/icon-tile';
7
- export type { Size, IconSize, SkeletonProps, IconProps, GlyphProps, CustomGlyphProps, SVGProps, NewIconProps, NewCoreIconProps, IconMigrationMap, IconTileProps, } from './types';
7
+ export type { Size, IconSize, SkeletonProps, IconProps, GlyphProps, CustomGlyphProps, SVGProps, NewIconProps, NewCoreIconProps, IconTileProps, } from './types';
@@ -205,40 +205,6 @@ export interface SVGProps extends GlyphProps {
205
205
  */
206
206
  children?: ReactNode;
207
207
  }
208
- /**
209
- * The migration outcome for a given legacy icon
210
- */
211
- type IconMigrationResult = {
212
- /**
213
- * The recommended new icon that the legacy icon should be migrated to
214
- */
215
- newIcon?: {
216
- name: string;
217
- package: string;
218
- isMigrationUnsafe?: boolean;
219
- /**
220
- * Forces the new icon to be `size="small"`, even if the legacy icon was not a small icon.
221
- *
222
- * E.g. used for chevron icons.
223
- */
224
- shouldForceSmallIcon?: boolean;
225
- };
226
- /**
227
- * Alternative new icon that the legacy icon can be migrated to
228
- * Primarily used to maintain migration guidance for icons that have since had a
229
- * change to the recommended migration path in "newIcon"
230
- */
231
- additionalIcons?: {
232
- name: string;
233
- package: string;
234
- }[];
235
- /**
236
- * For each size the legacy icon can take, the per-size migration guidance
237
- */
238
- sizeGuidance: Record<Size, IconMigrationSizeGuidance>;
239
- };
240
- export type IconMigrationSizeGuidance = '16-icon-tile' | '24-icon-tile' | '32-icon-tile' | '48-icon-tile' | 'swap' | 'swap-slight-visual-change' | 'swap-visual-change' | 'product-icon' | 'not-recommended' | 'icon-tile' | 'top-nav' | 'icon-lab' | 'no-larger-size';
241
- export type IconMigrationMap = Record<string, IconMigrationResult>;
242
208
  interface LEGACY_Data {
243
209
  keywords: string[];
244
210
  componentName: string;
@@ -1 +1 @@
1
- export type { CustomGlyphProps, GlyphProps, IconProps, Size, SkeletonProps, SVGProps, NewIconProps, NewGlyphColorProps, NewCoreIconProps, IconMigrationMap, IconSpacing, IconSize, IconTileProps, } from '../types';
1
+ export type { CustomGlyphProps, GlyphProps, IconProps, Size, SkeletonProps, SVGProps, NewIconProps, NewGlyphColorProps, NewCoreIconProps, IconSpacing, IconSize, IconTileProps, } from '../types';
@@ -4,4 +4,4 @@ export { default as SVG } from './components/svg';
4
4
  export { sizeMap as size, sizes } from './constants';
5
5
  export { default as Skeleton } from './components/skeleton';
6
6
  export { default as IconTile } from './components/icon-tile';
7
- export type { Size, IconSize, SkeletonProps, IconProps, GlyphProps, CustomGlyphProps, SVGProps, NewIconProps, NewCoreIconProps, IconMigrationMap, IconTileProps, } from './types';
7
+ export type { Size, IconSize, SkeletonProps, IconProps, GlyphProps, CustomGlyphProps, SVGProps, NewIconProps, NewCoreIconProps, IconTileProps, } from './types';
@@ -205,40 +205,6 @@ export interface SVGProps extends GlyphProps {
205
205
  */
206
206
  children?: ReactNode;
207
207
  }
208
- /**
209
- * The migration outcome for a given legacy icon
210
- */
211
- type IconMigrationResult = {
212
- /**
213
- * The recommended new icon that the legacy icon should be migrated to
214
- */
215
- newIcon?: {
216
- name: string;
217
- package: string;
218
- isMigrationUnsafe?: boolean;
219
- /**
220
- * Forces the new icon to be `size="small"`, even if the legacy icon was not a small icon.
221
- *
222
- * E.g. used for chevron icons.
223
- */
224
- shouldForceSmallIcon?: boolean;
225
- };
226
- /**
227
- * Alternative new icon that the legacy icon can be migrated to
228
- * Primarily used to maintain migration guidance for icons that have since had a
229
- * change to the recommended migration path in "newIcon"
230
- */
231
- additionalIcons?: {
232
- name: string;
233
- package: string;
234
- }[];
235
- /**
236
- * For each size the legacy icon can take, the per-size migration guidance
237
- */
238
- sizeGuidance: Record<Size, IconMigrationSizeGuidance>;
239
- };
240
- export type IconMigrationSizeGuidance = '16-icon-tile' | '24-icon-tile' | '32-icon-tile' | '48-icon-tile' | 'swap' | 'swap-slight-visual-change' | 'swap-visual-change' | 'product-icon' | 'not-recommended' | 'icon-tile' | 'top-nav' | 'icon-lab' | 'no-larger-size';
241
- export type IconMigrationMap = Record<string, IconMigrationResult>;
242
208
  interface LEGACY_Data {
243
209
  keywords: string[];
244
210
  componentName: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/icon",
3
- "version": "33.0.2",
3
+ "version": "33.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/"
@@ -60,7 +60,7 @@
60
60
  "@atlaskit/logo": "^19.10.0",
61
61
  "@atlaskit/menu": "^8.4.0",
62
62
  "@atlaskit/modal-dialog": "^14.12.0",
63
- "@atlaskit/primitives": "^18.0.0",
63
+ "@atlaskit/primitives": "^18.1.0",
64
64
  "@atlaskit/section-message": "^8.12.0",
65
65
  "@atlaskit/textfield": "^8.2.0",
66
66
  "@atlaskit/theme": "^22.0.0",
@@ -1,20 +0,0 @@
1
- "use strict";
2
-
3
- var _typeof = require("@babel/runtime/helpers/typeof");
4
- Object.defineProperty(exports, "__esModule", {
5
- value: true
6
- });
7
- Object.defineProperty(exports, "default", {
8
- enumerable: true,
9
- get: function get() {
10
- return _migrationMap.default;
11
- }
12
- });
13
- Object.defineProperty(exports, "migrationOutcomeDescriptionMap", {
14
- enumerable: true,
15
- get: function get() {
16
- return _migrationMap.migrationOutcomeDescriptionMap;
17
- }
18
- });
19
- var _migrationMap = _interopRequireWildcard(require("../migration-map"));
20
- function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }