@atlaskit/icon 22.24.2 → 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.
Files changed (36) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/UNSAFE_base-new/package.json +3 -1
  3. package/UNSAFE_migration-map/package.json +3 -1
  4. package/base/package.json +3 -1
  5. package/build/index.tsx +23 -2
  6. package/constants/package.json +3 -1
  7. package/deprecated-map/package.json +17 -0
  8. package/dist/cjs/deprecated-core.js +16 -0
  9. package/dist/cjs/deprecated-utility.js +16 -0
  10. package/dist/cjs/entry-points/deprecated-map.js +20 -0
  11. package/dist/cjs/metadata-core.js +1 -1
  12. package/dist/cjs/metadata-utility.js +1 -1
  13. package/dist/es2019/deprecated-core.js +10 -0
  14. package/dist/es2019/deprecated-utility.js +10 -0
  15. package/dist/es2019/entry-points/deprecated-map.js +2 -0
  16. package/dist/es2019/metadata-core.js +1 -1
  17. package/dist/es2019/metadata-utility.js +1 -1
  18. package/dist/esm/deprecated-core.js +10 -0
  19. package/dist/esm/deprecated-utility.js +10 -0
  20. package/dist/esm/entry-points/deprecated-map.js +2 -0
  21. package/dist/esm/metadata-core.js +1 -1
  22. package/dist/esm/metadata-utility.js +1 -1
  23. package/dist/types/deprecated-core.d.ts +13 -0
  24. package/dist/types/deprecated-utility.d.ts +13 -0
  25. package/dist/types/entry-points/deprecated-map.d.ts +2 -0
  26. package/dist/types/metadata-core.d.ts +13 -1
  27. package/dist/types/metadata-utility.d.ts +13 -1
  28. package/dist/types-ts4.5/deprecated-core.d.ts +13 -0
  29. package/dist/types-ts4.5/deprecated-utility.d.ts +13 -0
  30. package/dist/types-ts4.5/entry-points/deprecated-map.d.ts +2 -0
  31. package/dist/types-ts4.5/metadata-core.d.ts +13 -1
  32. package/dist/types-ts4.5/metadata-utility.d.ts +13 -1
  33. package/metadata/package.json +3 -1
  34. package/package.json +6 -3
  35. package/svg/package.json +3 -1
  36. package/types/package.json +3 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,23 @@
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
+
13
+ ## 22.24.3
14
+
15
+ ### Patch Changes
16
+
17
+ - [#166026](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/166026)
18
+ [`962b5e77810fb`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/962b5e77810fb) -
19
+ Adds side-effect config to support Compiled css extraction in third-party apps
20
+
3
21
  ## 22.24.2
4
22
 
5
23
  ### Patch Changes
@@ -3,7 +3,9 @@
3
3
  "main": "../dist/cjs/entry-points/base-new.js",
4
4
  "module": "../dist/esm/entry-points/base-new.js",
5
5
  "module:es2019": "../dist/es2019/entry-points/base-new.js",
6
- "sideEffects": false,
6
+ "sideEffects": [
7
+ "**/*.compiled.css"
8
+ ],
7
9
  "types": "../dist/types/entry-points/base-new.d.ts",
8
10
  "typesVersions": {
9
11
  ">=4.5 <5.4": {
@@ -3,7 +3,9 @@
3
3
  "main": "../dist/cjs/entry-points/migration-map.js",
4
4
  "module": "../dist/esm/entry-points/migration-map.js",
5
5
  "module:es2019": "../dist/es2019/entry-points/migration-map.js",
6
- "sideEffects": false,
6
+ "sideEffects": [
7
+ "**/*.compiled.css"
8
+ ],
7
9
  "types": "../dist/types/entry-points/migration-map.d.ts",
8
10
  "typesVersions": {
9
11
  ">=4.5 <5.4": {
package/base/package.json CHANGED
@@ -3,7 +3,9 @@
3
3
  "main": "../dist/cjs/entry-points/base.js",
4
4
  "module": "../dist/esm/entry-points/base.js",
5
5
  "module:es2019": "../dist/es2019/entry-points/base.js",
6
- "sideEffects": false,
6
+ "sideEffects": [
7
+ "**/*.compiled.css"
8
+ ],
7
9
  "types": "../dist/types/entry-points/base.d.ts",
8
10
  "typesVersions": {
9
11
  ">=4.5 <5.4": {
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
- return fs.outputFile(path.resolve(root, 'src/metadata-core.tsx'), iconDocs);
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
- return fs.outputFile(path.resolve(root, 'src/metadata-utility.tsx'), iconDocs);
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
  });
@@ -3,7 +3,9 @@
3
3
  "main": "../dist/cjs/entry-points/constants.js",
4
4
  "module": "../dist/esm/entry-points/constants.js",
5
5
  "module:es2019": "../dist/es2019/entry-points/constants.js",
6
- "sideEffects": false,
6
+ "sideEffects": [
7
+ "**/*.compiled.css"
8
+ ],
7
9
  "types": "../dist/types/entry-points/constants.d.ts",
8
10
  "typesVersions": {
9
11
  ">=4.5 <5.4": {
@@ -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::c4b8aee35aca4112c22d6141c23cd08f>>
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::f026d0766e98fc87a4d6b2f4471f5379>>
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;
@@ -0,0 +1,2 @@
1
+ export { default as deprecatedCore } from '../deprecated-core';
2
+ export { default as deprecatedUtility } from '../deprecated-utility';
@@ -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::c4b8aee35aca4112c22d6141c23cd08f>>
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::f026d0766e98fc87a4d6b2f4471f5379>>
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;
@@ -0,0 +1,2 @@
1
+ export { default as deprecatedCore } from '../deprecated-core';
2
+ export { default as deprecatedUtility } from '../deprecated-utility';
@@ -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::c4b8aee35aca4112c22d6141c23cd08f>>
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::f026d0766e98fc87a4d6b2f4471f5379>>
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;
@@ -0,0 +1,2 @@
1
+ export { default as deprecatedCore } from '../deprecated-core';
2
+ export { default as deprecatedUtility } from '../deprecated-utility';
@@ -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::c4b8aee35aca4112c22d6141c23cd08f>>
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::f026d0766e98fc87a4d6b2f4471f5379>>
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;
@@ -0,0 +1,2 @@
1
+ export { default as deprecatedCore } from '../deprecated-core';
2
+ export { default as deprecatedUtility } from '../deprecated-utility';
@@ -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::c4b8aee35aca4112c22d6141c23cd08f>>
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::f026d0766e98fc87a4d6b2f4471f5379>>
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;
@@ -3,7 +3,9 @@
3
3
  "main": "../dist/cjs/entry-points/metadata.js",
4
4
  "module": "../dist/esm/entry-points/metadata.js",
5
5
  "module:es2019": "../dist/es2019/entry-points/metadata.js",
6
- "sideEffects": false,
6
+ "sideEffects": [
7
+ "**/*.compiled.css"
8
+ ],
7
9
  "types": "../dist/types/entry-points/metadata.d.ts",
8
10
  "typesVersions": {
9
11
  ">=4.5 <5.4": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/icon",
3
- "version": "22.24.2",
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/"
@@ -12,7 +12,9 @@
12
12
  "module": "dist/esm/index.js",
13
13
  "module:es2019": "dist/es2019/index.js",
14
14
  "types": "dist/types/index.d.ts",
15
- "sideEffects": false,
15
+ "sideEffects": [
16
+ "**/*.compiled.css"
17
+ ],
16
18
  "atlaskit:src": "src/index.tsx",
17
19
  "atlassian": {
18
20
  "team": "Design System Team",
@@ -66,7 +68,7 @@
66
68
  },
67
69
  "dependencies": {
68
70
  "@atlaskit/platform-feature-flags": "^0.3.0",
69
- "@atlaskit/tokens": "^2.2.0",
71
+ "@atlaskit/tokens": "^2.3.0",
70
72
  "@babel/runtime": "^7.0.0",
71
73
  "@emotion/react": "^11.7.1"
72
74
  },
@@ -136,6 +138,7 @@
136
138
  "./UNSAFE_base-new": "./src/entry-points/base-new.tsx",
137
139
  "./UNSAFE_migration-map": "./src/entry-points/migration-map.tsx",
138
140
  "./constants": "./src/entry-points/constants.tsx",
141
+ "./deprecated-map": "./src/entry-points/deprecated-map.tsx",
139
142
  "./metadata": "./src/entry-points/metadata.tsx",
140
143
  "./svg": "./src/entry-points/svg.tsx",
141
144
  "./types": "./src/entry-points/types.tsx",
package/svg/package.json CHANGED
@@ -3,7 +3,9 @@
3
3
  "main": "../dist/cjs/entry-points/svg.js",
4
4
  "module": "../dist/esm/entry-points/svg.js",
5
5
  "module:es2019": "../dist/es2019/entry-points/svg.js",
6
- "sideEffects": false,
6
+ "sideEffects": [
7
+ "**/*.compiled.css"
8
+ ],
7
9
  "types": "../dist/types/entry-points/svg.d.ts",
8
10
  "typesVersions": {
9
11
  ">=4.5 <5.4": {
@@ -3,7 +3,9 @@
3
3
  "main": "../dist/cjs/entry-points/types.js",
4
4
  "module": "../dist/esm/entry-points/types.js",
5
5
  "module:es2019": "../dist/es2019/entry-points/types.js",
6
- "sideEffects": false,
6
+ "sideEffects": [
7
+ "**/*.compiled.css"
8
+ ],
7
9
  "types": "../dist/types/entry-points/types.d.ts",
8
10
  "typesVersions": {
9
11
  ">=4.5 <5.4": {