@atlaskit/icon 22.24.3 → 22.25.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 +10 -0
- package/build/index.tsx +23 -2
- package/deprecated-map/package.json +17 -0
- package/dist/cjs/deprecated-core.js +16 -0
- package/dist/cjs/deprecated-utility.js +16 -0
- package/dist/cjs/entry-points/deprecated-map.js +20 -0
- package/dist/cjs/metadata-core.js +1 -1
- package/dist/cjs/metadata-utility.js +1 -1
- package/dist/es2019/deprecated-core.js +10 -0
- package/dist/es2019/deprecated-utility.js +10 -0
- package/dist/es2019/entry-points/deprecated-map.js +2 -0
- package/dist/es2019/metadata-core.js +1 -1
- package/dist/es2019/metadata-utility.js +1 -1
- package/dist/esm/deprecated-core.js +10 -0
- package/dist/esm/deprecated-utility.js +10 -0
- package/dist/esm/entry-points/deprecated-map.js +2 -0
- package/dist/esm/metadata-core.js +1 -1
- package/dist/esm/metadata-utility.js +1 -1
- package/dist/types/deprecated-core.d.ts +13 -0
- package/dist/types/deprecated-utility.d.ts +13 -0
- package/dist/types/entry-points/deprecated-map.d.ts +2 -0
- package/dist/types/metadata-core.d.ts +13 -1
- package/dist/types/metadata-utility.d.ts +13 -1
- package/dist/types-ts4.5/deprecated-core.d.ts +13 -0
- package/dist/types-ts4.5/deprecated-utility.d.ts +13 -0
- package/dist/types-ts4.5/entry-points/deprecated-map.d.ts +2 -0
- package/dist/types-ts4.5/metadata-core.d.ts +13 -1
- package/dist/types-ts4.5/metadata-utility.d.ts +13 -1
- package/package.json +3 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# @atlaskit/icon
|
|
2
2
|
|
|
3
|
+
## 22.25.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
|
+
|
|
3
13
|
## 22.24.3
|
|
4
14
|
|
|
5
15
|
### Patch Changes
|
package/build/index.tsx
CHANGED
|
@@ -7,6 +7,7 @@ import buildIcons, {
|
|
|
7
7
|
UNSAFE_buildNew as buildIconsNew,
|
|
8
8
|
createIconDocs,
|
|
9
9
|
type IconBuildConfig,
|
|
10
|
+
UNSAFE_createDeprecatedIconDocs,
|
|
10
11
|
UNSAFE_createIconDocsNew,
|
|
11
12
|
type UNSAFE_NewIconBuildConfig,
|
|
12
13
|
} from '@af/icon-build-process';
|
|
@@ -75,7 +76,17 @@ buildIconsNew(configCore).then((icons) => {
|
|
|
75
76
|
migrationMap,
|
|
76
77
|
);
|
|
77
78
|
|
|
78
|
-
|
|
79
|
+
fs.outputFile(path.resolve(root, 'src/metadata-core.tsx'), iconDocs);
|
|
80
|
+
|
|
81
|
+
const deprecatedDocs = UNSAFE_createDeprecatedIconDocs(
|
|
82
|
+
icons,
|
|
83
|
+
'@atlaskit/icon',
|
|
84
|
+
'core',
|
|
85
|
+
coreIconMetadata,
|
|
86
|
+
migrationMap,
|
|
87
|
+
);
|
|
88
|
+
|
|
89
|
+
fs.outputFile(path.resolve(root, 'src/deprecated-core.tsx'), deprecatedDocs);
|
|
79
90
|
});
|
|
80
91
|
|
|
81
92
|
/**
|
|
@@ -107,5 +118,15 @@ buildIconsNew(configUtility).then((icons) => {
|
|
|
107
118
|
migrationMap,
|
|
108
119
|
);
|
|
109
120
|
|
|
110
|
-
|
|
121
|
+
fs.outputFile(path.resolve(root, 'src/metadata-utility.tsx'), iconDocs);
|
|
122
|
+
|
|
123
|
+
const deprecatedDocs = UNSAFE_createDeprecatedIconDocs(
|
|
124
|
+
icons,
|
|
125
|
+
'@atlaskit/icon',
|
|
126
|
+
'utility',
|
|
127
|
+
utilityIconMetadata,
|
|
128
|
+
migrationMap,
|
|
129
|
+
);
|
|
130
|
+
|
|
131
|
+
fs.outputFile(path.resolve(root, 'src/deprecated-utility.tsx'), deprecatedDocs);
|
|
111
132
|
});
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@atlaskit/icon/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,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,20 @@
|
|
|
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
|
+
Object.defineProperty(exports, "deprecatedUtility", {
|
|
14
|
+
enumerable: true,
|
|
15
|
+
get: function get() {
|
|
16
|
+
return _deprecatedUtility.default;
|
|
17
|
+
}
|
|
18
|
+
});
|
|
19
|
+
var _deprecatedCore = _interopRequireDefault(require("../deprecated-core"));
|
|
20
|
+
var _deprecatedUtility = _interopRequireDefault(require("../deprecated-utility"));
|
|
@@ -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::3e4b0e69c4beda61c98a08ff1b371463>>
|
|
13
13
|
* @codegenCommand yarn build:icon-glyphs
|
|
14
14
|
*/
|
|
15
15
|
|
|
@@ -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::eae29e6af1dc94a7dd24d2f620ae9efc>>
|
|
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,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;
|
|
@@ -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::3e4b0e69c4beda61c98a08ff1b371463>>
|
|
7
7
|
* @codegenCommand yarn build:icon-glyphs
|
|
8
8
|
*/
|
|
9
9
|
|
|
@@ -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::eae29e6af1dc94a7dd24d2f620ae9efc>>
|
|
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,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;
|
|
@@ -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::3e4b0e69c4beda61c98a08ff1b371463>>
|
|
7
7
|
* @codegenCommand yarn build:icon-glyphs
|
|
8
8
|
*/
|
|
9
9
|
|
|
@@ -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::eae29e6af1dc94a7dd24d2f620ae9efc>>
|
|
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,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;
|
|
@@ -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::3e4b0e69c4beda61c98a08ff1b371463>>
|
|
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;
|
|
@@ -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::eae29e6af1dc94a7dd24d2f620ae9efc>>
|
|
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,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;
|
|
@@ -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::3e4b0e69c4beda61c98a08ff1b371463>>
|
|
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;
|
|
@@ -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::eae29e6af1dc94a7dd24d2f620ae9efc>>
|
|
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",
|
|
3
|
-
"version": "22.
|
|
3
|
+
"version": "22.25.0",
|
|
4
4
|
"description": "An icon is a visual representation of a command, device, directory, or common action.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
},
|
|
69
69
|
"dependencies": {
|
|
70
70
|
"@atlaskit/platform-feature-flags": "^0.3.0",
|
|
71
|
-
"@atlaskit/tokens": "^2.
|
|
71
|
+
"@atlaskit/tokens": "^2.3.0",
|
|
72
72
|
"@babel/runtime": "^7.0.0",
|
|
73
73
|
"@emotion/react": "^11.7.1"
|
|
74
74
|
},
|
|
@@ -138,6 +138,7 @@
|
|
|
138
138
|
"./UNSAFE_base-new": "./src/entry-points/base-new.tsx",
|
|
139
139
|
"./UNSAFE_migration-map": "./src/entry-points/migration-map.tsx",
|
|
140
140
|
"./constants": "./src/entry-points/constants.tsx",
|
|
141
|
+
"./deprecated-map": "./src/entry-points/deprecated-map.tsx",
|
|
141
142
|
"./metadata": "./src/entry-points/metadata.tsx",
|
|
142
143
|
"./svg": "./src/entry-points/svg.tsx",
|
|
143
144
|
"./types": "./src/entry-points/types.tsx",
|