@atlaskit/icon 33.0.1 → 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 +19 -0
- package/build/index.tsx +0 -2
- package/dist/types/entry-points/types.d.ts +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types/types.d.ts +0 -34
- package/dist/types-ts4.5/entry-points/types.d.ts +1 -1
- package/dist/types-ts4.5/index.d.ts +1 -1
- package/dist/types-ts4.5/types.d.ts +0 -34
- package/package.json +6 -6
- package/dist/cjs/entry-points/migration-map.js +0 -20
- package/dist/cjs/migration-map.js +0 -4250
- package/dist/es2019/entry-points/migration-map.js +0 -1
- package/dist/es2019/migration-map.js +0 -4244
- package/dist/esm/entry-points/migration-map.js +0 -1
- package/dist/esm/migration-map.js +0 -4244
- package/dist/types/entry-points/migration-map.d.ts +0 -2
- package/dist/types/migration-map.d.ts +0 -4
- package/dist/types-ts4.5/entry-points/migration-map.d.ts +0 -2
- package/dist/types-ts4.5/migration-map.d.ts +0 -4
- package/migration-map/package.json +0 -17
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,24 @@
|
|
|
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
|
+
|
|
15
|
+
## 33.0.2
|
|
16
|
+
|
|
17
|
+
### Patch Changes
|
|
18
|
+
|
|
19
|
+
- [`c426ad3d11c7c`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/c426ad3d11c7c) -
|
|
20
|
+
Fixes to icon build process
|
|
21
|
+
|
|
3
22
|
## 33.0.1
|
|
4
23
|
|
|
5
24
|
### Patch Changes
|
package/build/index.tsx
CHANGED
|
@@ -12,7 +12,6 @@ import {
|
|
|
12
12
|
} from '@af/icon-build-process';
|
|
13
13
|
|
|
14
14
|
import coreIconMetadata from '../icons_raw/metadata-core';
|
|
15
|
-
import migrationMap from '../src/migration-map';
|
|
16
15
|
import { recommendedSmallIcons } from '../src/recommended-small';
|
|
17
16
|
import synonyms from '../utils/synonyms';
|
|
18
17
|
|
|
@@ -54,7 +53,6 @@ async function main() {
|
|
|
54
53
|
icons,
|
|
55
54
|
'@atlaskit/icon',
|
|
56
55
|
coreIconMetadata,
|
|
57
|
-
migrationMap,
|
|
58
56
|
);
|
|
59
57
|
|
|
60
58
|
fs.outputFile(path.resolve(root, 'src/deprecated-core.tsx'), deprecatedDocs);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export type { CustomGlyphProps, GlyphProps, IconProps, Size, SkeletonProps, SVGProps, NewIconProps, NewGlyphColorProps, NewCoreIconProps,
|
|
1
|
+
export type { CustomGlyphProps, GlyphProps, IconProps, Size, SkeletonProps, SVGProps, NewIconProps, NewGlyphColorProps, NewCoreIconProps, IconSpacing, IconSize, IconTileProps, } from '../types';
|
package/dist/types/index.d.ts
CHANGED
|
@@ -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,
|
|
7
|
+
export type { Size, IconSize, SkeletonProps, IconProps, GlyphProps, CustomGlyphProps, SVGProps, NewIconProps, NewCoreIconProps, IconTileProps, } from './types';
|
package/dist/types/types.d.ts
CHANGED
|
@@ -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,
|
|
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,
|
|
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
|
|
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/"
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"dependencies": {
|
|
37
37
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
38
38
|
"@atlaskit/tile": "^1.0.0",
|
|
39
|
-
"@atlaskit/tokens": "^11.
|
|
39
|
+
"@atlaskit/tokens": "^11.2.0",
|
|
40
40
|
"@babel/runtime": "^7.0.0",
|
|
41
41
|
"@compiled/react": "^0.20.0"
|
|
42
42
|
},
|
|
@@ -52,20 +52,20 @@
|
|
|
52
52
|
"@atlaskit/code": "^17.4.0",
|
|
53
53
|
"@atlaskit/css": "^0.19.0",
|
|
54
54
|
"@atlaskit/docs": "^11.7.0",
|
|
55
|
-
"@atlaskit/form": "^15.
|
|
55
|
+
"@atlaskit/form": "^15.5.0",
|
|
56
56
|
"@atlaskit/heading": "^5.3.0",
|
|
57
57
|
"@atlaskit/icon-file-type": "^7.0.0",
|
|
58
58
|
"@atlaskit/icon-object": "^7.5.0",
|
|
59
59
|
"@atlaskit/link": "^3.3.0",
|
|
60
60
|
"@atlaskit/logo": "^19.10.0",
|
|
61
61
|
"@atlaskit/menu": "^8.4.0",
|
|
62
|
-
"@atlaskit/modal-dialog": "^14.
|
|
63
|
-
"@atlaskit/primitives": "^18.
|
|
62
|
+
"@atlaskit/modal-dialog": "^14.12.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",
|
|
67
67
|
"@atlaskit/toggle": "^15.2.0",
|
|
68
|
-
"@atlaskit/tooltip": "^
|
|
68
|
+
"@atlaskit/tooltip": "^21.0.0",
|
|
69
69
|
"@atlassian/feature-flags-test-utils": "^1.0.0",
|
|
70
70
|
"@atlassian/ssr-tests": "workspace:^",
|
|
71
71
|
"@atlassian/structured-docs-types": "workspace:^",
|
|
@@ -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); }
|