@atlaskit/icon-lab 1.0.2 → 1.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 +14 -0
- package/build/index.tsx +21 -7
- package/deprecated-map/package.json +17 -0
- package/dist/cjs/deprecated-core.js +16 -0
- package/dist/cjs/entry-points/deprecated-map.js +13 -0
- package/dist/cjs/metadata-core.js +1 -1
- package/dist/es2019/deprecated-core.js +10 -0
- package/dist/es2019/entry-points/deprecated-map.js +1 -0
- package/dist/es2019/metadata-core.js +1 -1
- package/dist/esm/deprecated-core.js +10 -0
- package/dist/esm/entry-points/deprecated-map.js +1 -0
- package/dist/esm/metadata-core.js +1 -1
- package/dist/types/deprecated-core.d.ts +13 -0
- package/dist/types/entry-points/deprecated-map.d.ts +1 -0
- package/dist/types/metadata-core.d.ts +13 -1
- package/dist/types-ts4.5/deprecated-core.d.ts +13 -0
- package/dist/types-ts4.5/entry-points/deprecated-map.d.ts +1 -0
- package/dist/types-ts4.5/metadata-core.d.ts +13 -1
- package/package.json +3 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @atlaskit/icon-lab
|
|
2
2
|
|
|
3
|
+
## 1.1.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#162725](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/162725)
|
|
8
|
+
[`b2449424247a3`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/b2449424247a3) -
|
|
9
|
+
New deprecation endpoint to identify icons that have been deprecated. Used with the
|
|
10
|
+
`no-deprecated-imports` lint rule to assist with displaying errors and auto-fixing those icons
|
|
11
|
+
with a defined replacement.
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- Updated dependencies
|
|
16
|
+
|
|
3
17
|
## 1.0.2
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
package/build/index.tsx
CHANGED
|
@@ -3,10 +3,14 @@ import path from 'path';
|
|
|
3
3
|
import fs from 'fs-extra';
|
|
4
4
|
import pkgDir from 'pkg-dir';
|
|
5
5
|
|
|
6
|
-
import {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
6
|
+
import {
|
|
7
|
+
UNSAFE_buildNew as buildIcons,
|
|
8
|
+
UNSAFE_createDeprecatedIconDocs,
|
|
9
|
+
UNSAFE_createIconDocsNew,
|
|
10
|
+
type UNSAFE_NewIconBuildConfig,
|
|
11
|
+
} from '@af/icon-build-process';
|
|
12
|
+
|
|
13
|
+
import coreIconMetadata from '../icons_raw/metadata-core';
|
|
10
14
|
import migrationMap from '../src/migration-map';
|
|
11
15
|
|
|
12
16
|
const root = pkgDir.sync();
|
|
@@ -28,7 +32,7 @@ const config: UNSAFE_NewIconBuildConfig = {
|
|
|
28
32
|
iconType: 'core',
|
|
29
33
|
packageName: '@atlaskit/icon-lab',
|
|
30
34
|
baseIconEntryPoint: '@atlaskit/icon/UNSAFE_base-new',
|
|
31
|
-
metadata:
|
|
35
|
+
metadata: coreIconMetadata,
|
|
32
36
|
migrationMap: migrationMap,
|
|
33
37
|
};
|
|
34
38
|
|
|
@@ -39,9 +43,19 @@ buildIcons(config).then((icons) => {
|
|
|
39
43
|
'core',
|
|
40
44
|
{},
|
|
41
45
|
['icon', 'icon-lab', 'core'],
|
|
42
|
-
|
|
46
|
+
coreIconMetadata,
|
|
47
|
+
migrationMap,
|
|
48
|
+
);
|
|
49
|
+
|
|
50
|
+
fs.outputFile(path.resolve(root, 'src/metadata-core.tsx'), iconDocs);
|
|
51
|
+
|
|
52
|
+
const deprecatedDocs = UNSAFE_createDeprecatedIconDocs(
|
|
53
|
+
icons,
|
|
54
|
+
'@atlaskit/icon-lab',
|
|
55
|
+
'core',
|
|
56
|
+
coreIconMetadata,
|
|
43
57
|
migrationMap,
|
|
44
58
|
);
|
|
45
59
|
|
|
46
|
-
|
|
60
|
+
fs.outputFile(path.resolve(root, 'src/deprecated-core.tsx'), deprecatedDocs);
|
|
47
61
|
});
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@atlaskit/icon-lab/deprecated-map",
|
|
3
|
+
"main": "../dist/cjs/entry-points/deprecated-map.js",
|
|
4
|
+
"module": "../dist/esm/entry-points/deprecated-map.js",
|
|
5
|
+
"module:es2019": "../dist/es2019/entry-points/deprecated-map.js",
|
|
6
|
+
"sideEffects": [
|
|
7
|
+
"**/*.compiled.css"
|
|
8
|
+
],
|
|
9
|
+
"types": "../dist/types/entry-points/deprecated-map.d.ts",
|
|
10
|
+
"typesVersions": {
|
|
11
|
+
">=4.5 <5.4": {
|
|
12
|
+
"*": [
|
|
13
|
+
"../dist/types-ts4.5/entry-points/deprecated-map.d.ts"
|
|
14
|
+
]
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
/**
|
|
8
|
+
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
9
|
+
*
|
|
10
|
+
* To change the format of this file, modify `UNSAFE_createDeprecatedIconDocs` in icon-build-process/src/create-deprecated-icon-docs.tsx.
|
|
11
|
+
*
|
|
12
|
+
* @codegen <<SignedSource::bdbeb289627e24a55c8fe9daf29c6b55>>
|
|
13
|
+
* @codegenCommand yarn build:icon-glyphs
|
|
14
|
+
*/
|
|
15
|
+
var deprecatedIcons = {};
|
|
16
|
+
var _default = exports.default = deprecatedIcons;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
Object.defineProperty(exports, "deprecatedCore", {
|
|
8
|
+
enumerable: true,
|
|
9
|
+
get: function get() {
|
|
10
|
+
return _deprecatedCore.default;
|
|
11
|
+
}
|
|
12
|
+
});
|
|
13
|
+
var _deprecatedCore = _interopRequireDefault(require("../deprecated-core"));
|
|
@@ -9,7 +9,7 @@ exports.default = void 0;
|
|
|
9
9
|
*
|
|
10
10
|
* To change the format of this file, modify `UNSAFE_createIconDocsNew` in icon-build-process/src/create-icon-docs.tsx.
|
|
11
11
|
*
|
|
12
|
-
* @codegen <<SignedSource::
|
|
12
|
+
* @codegen <<SignedSource::d67ababae6561c34c361bb99f053f31d>>
|
|
13
13
|
* @codegenCommand yarn build:icon-glyphs
|
|
14
14
|
*/
|
|
15
15
|
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
+
*
|
|
4
|
+
* To change the format of this file, modify `UNSAFE_createDeprecatedIconDocs` in icon-build-process/src/create-deprecated-icon-docs.tsx.
|
|
5
|
+
*
|
|
6
|
+
* @codegen <<SignedSource::bdbeb289627e24a55c8fe9daf29c6b55>>
|
|
7
|
+
* @codegenCommand yarn build:icon-glyphs
|
|
8
|
+
*/
|
|
9
|
+
const deprecatedIcons = {};
|
|
10
|
+
export default deprecatedIcons;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as deprecatedCore } from '../deprecated-core';
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*
|
|
4
4
|
* To change the format of this file, modify `UNSAFE_createIconDocsNew` in icon-build-process/src/create-icon-docs.tsx.
|
|
5
5
|
*
|
|
6
|
-
* @codegen <<SignedSource::
|
|
6
|
+
* @codegen <<SignedSource::d67ababae6561c34c361bb99f053f31d>>
|
|
7
7
|
* @codegenCommand yarn build:icon-glyphs
|
|
8
8
|
*/
|
|
9
9
|
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
+
*
|
|
4
|
+
* To change the format of this file, modify `UNSAFE_createDeprecatedIconDocs` in icon-build-process/src/create-deprecated-icon-docs.tsx.
|
|
5
|
+
*
|
|
6
|
+
* @codegen <<SignedSource::bdbeb289627e24a55c8fe9daf29c6b55>>
|
|
7
|
+
* @codegenCommand yarn build:icon-glyphs
|
|
8
|
+
*/
|
|
9
|
+
var deprecatedIcons = {};
|
|
10
|
+
export default deprecatedIcons;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as deprecatedCore } from '../deprecated-core';
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*
|
|
4
4
|
* To change the format of this file, modify `UNSAFE_createIconDocsNew` in icon-build-process/src/create-icon-docs.tsx.
|
|
5
5
|
*
|
|
6
|
-
* @codegen <<SignedSource::
|
|
6
|
+
* @codegen <<SignedSource::d67ababae6561c34c361bb99f053f31d>>
|
|
7
7
|
* @codegenCommand yarn build:icon-glyphs
|
|
8
8
|
*/
|
|
9
9
|
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
+
*
|
|
4
|
+
* To change the format of this file, modify `UNSAFE_createDeprecatedIconDocs` in icon-build-process/src/create-deprecated-icon-docs.tsx.
|
|
5
|
+
*
|
|
6
|
+
* @codegen <<SignedSource::bdbeb289627e24a55c8fe9daf29c6b55>>
|
|
7
|
+
* @codegenCommand yarn build:icon-glyphs
|
|
8
|
+
*/
|
|
9
|
+
declare const deprecatedIcons: Record<string, {
|
|
10
|
+
message: string;
|
|
11
|
+
unfixable?: boolean;
|
|
12
|
+
}>;
|
|
13
|
+
export default deprecatedIcons;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as deprecatedCore } from '../deprecated-core';
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*
|
|
4
4
|
* To change the format of this file, modify `UNSAFE_createIconDocsNew` in icon-build-process/src/create-icon-docs.tsx.
|
|
5
5
|
*
|
|
6
|
-
* @codegen <<SignedSource::
|
|
6
|
+
* @codegen <<SignedSource::d67ababae6561c34c361bb99f053f31d>>
|
|
7
7
|
* @codegenCommand yarn build:icon-glyphs
|
|
8
8
|
*/
|
|
9
9
|
interface metadata {
|
|
@@ -38,6 +38,10 @@ interface metadata {
|
|
|
38
38
|
* The name of the team owning the icon
|
|
39
39
|
*/
|
|
40
40
|
team: string;
|
|
41
|
+
/**
|
|
42
|
+
* The status of the icon
|
|
43
|
+
*/
|
|
44
|
+
status?: 'draft' | 'ready-to-publish' | 'published' | 'modified' | 'deprecated';
|
|
41
45
|
/**
|
|
42
46
|
* Contact slack channel for the team owning the icon
|
|
43
47
|
*/
|
|
@@ -46,6 +50,14 @@ interface metadata {
|
|
|
46
50
|
* A list of keys for old icons that have been replaced by this icon
|
|
47
51
|
*/
|
|
48
52
|
oldName?: string[];
|
|
53
|
+
/**
|
|
54
|
+
* A replacement icon if this icon has been deprecated
|
|
55
|
+
*/
|
|
56
|
+
replacement?: {
|
|
57
|
+
name: string;
|
|
58
|
+
type: 'core' | 'utility';
|
|
59
|
+
location: '@atlaskit/icon' | '@atlaskit/icon-lab' | '@atlassian/icon-private';
|
|
60
|
+
};
|
|
49
61
|
}
|
|
50
62
|
declare const metadata: Record<string, metadata>;
|
|
51
63
|
export default metadata;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
+
*
|
|
4
|
+
* To change the format of this file, modify `UNSAFE_createDeprecatedIconDocs` in icon-build-process/src/create-deprecated-icon-docs.tsx.
|
|
5
|
+
*
|
|
6
|
+
* @codegen <<SignedSource::bdbeb289627e24a55c8fe9daf29c6b55>>
|
|
7
|
+
* @codegenCommand yarn build:icon-glyphs
|
|
8
|
+
*/
|
|
9
|
+
declare const deprecatedIcons: Record<string, {
|
|
10
|
+
message: string;
|
|
11
|
+
unfixable?: boolean;
|
|
12
|
+
}>;
|
|
13
|
+
export default deprecatedIcons;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as deprecatedCore } from '../deprecated-core';
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*
|
|
4
4
|
* To change the format of this file, modify `UNSAFE_createIconDocsNew` in icon-build-process/src/create-icon-docs.tsx.
|
|
5
5
|
*
|
|
6
|
-
* @codegen <<SignedSource::
|
|
6
|
+
* @codegen <<SignedSource::d67ababae6561c34c361bb99f053f31d>>
|
|
7
7
|
* @codegenCommand yarn build:icon-glyphs
|
|
8
8
|
*/
|
|
9
9
|
interface metadata {
|
|
@@ -38,6 +38,10 @@ interface metadata {
|
|
|
38
38
|
* The name of the team owning the icon
|
|
39
39
|
*/
|
|
40
40
|
team: string;
|
|
41
|
+
/**
|
|
42
|
+
* The status of the icon
|
|
43
|
+
*/
|
|
44
|
+
status?: 'draft' | 'ready-to-publish' | 'published' | 'modified' | 'deprecated';
|
|
41
45
|
/**
|
|
42
46
|
* Contact slack channel for the team owning the icon
|
|
43
47
|
*/
|
|
@@ -46,6 +50,14 @@ interface metadata {
|
|
|
46
50
|
* A list of keys for old icons that have been replaced by this icon
|
|
47
51
|
*/
|
|
48
52
|
oldName?: string[];
|
|
53
|
+
/**
|
|
54
|
+
* A replacement icon if this icon has been deprecated
|
|
55
|
+
*/
|
|
56
|
+
replacement?: {
|
|
57
|
+
name: string;
|
|
58
|
+
type: 'core' | 'utility';
|
|
59
|
+
location: '@atlaskit/icon' | '@atlaskit/icon-lab' | '@atlassian/icon-private';
|
|
60
|
+
};
|
|
49
61
|
}
|
|
50
62
|
declare const metadata: Record<string, metadata>;
|
|
51
63
|
export default metadata;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/icon-lab",
|
|
3
|
-
"version": "1.0
|
|
3
|
+
"version": "1.1.0",
|
|
4
4
|
"description": "An icon package for public icon contributions",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"build-glyphs": "ts-node --project ../../../tsconfig.node.json ./build/index.tsx"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@atlaskit/icon": "^22.
|
|
35
|
+
"@atlaskit/icon": "^22.25.0",
|
|
36
36
|
"@babel/runtime": "^7.0.0"
|
|
37
37
|
},
|
|
38
38
|
"peerDependencies": {
|
|
@@ -82,6 +82,7 @@
|
|
|
82
82
|
}
|
|
83
83
|
},
|
|
84
84
|
"af:exports": {
|
|
85
|
+
"./deprecated-map": "./src/entry-points/deprecated-map.tsx",
|
|
85
86
|
"./metadata": "./src/entry-points/metadata.tsx",
|
|
86
87
|
"./UNSAFE_migration-map": "./src/migration-map.tsx",
|
|
87
88
|
"./core": "./core",
|