@atlaskit/icon-object 6.10.1 → 6.11.1

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 (192) hide show
  1. package/CHANGELOG.md +21 -0
  2. package/afm-cc/tsconfig.json +3 -0
  3. package/afm-jira/tsconfig.json +3 -0
  4. package/afm-post-office/tsconfig.json +3 -0
  5. package/build/index.tsx +7 -1
  6. package/build/utils.tsx +30 -2
  7. package/dist/cjs/artifacts/glyph/page-live-doc/16.js +49 -0
  8. package/dist/cjs/artifacts/glyph/page-live-doc/24.js +49 -0
  9. package/dist/cjs/artifacts/glyph-legacy/page-live-doc/16.js +28 -0
  10. package/dist/cjs/artifacts/glyph-legacy/page-live-doc/24.js +28 -0
  11. package/dist/cjs/metadata.js +23 -1
  12. package/dist/es2019/artifacts/glyph/page-live-doc/16.js +43 -0
  13. package/dist/es2019/artifacts/glyph/page-live-doc/24.js +43 -0
  14. package/dist/es2019/artifacts/glyph-legacy/page-live-doc/16.js +18 -0
  15. package/dist/es2019/artifacts/glyph-legacy/page-live-doc/24.js +18 -0
  16. package/dist/es2019/metadata.js +15 -1
  17. package/dist/esm/artifacts/glyph/page-live-doc/16.js +42 -0
  18. package/dist/esm/artifacts/glyph/page-live-doc/24.js +42 -0
  19. package/dist/esm/artifacts/glyph-legacy/page-live-doc/16.js +20 -0
  20. package/dist/esm/artifacts/glyph-legacy/page-live-doc/24.js +20 -0
  21. package/dist/esm/metadata.js +19 -1
  22. package/dist/types/artifacts/glyph/blog/16.d.ts +7 -2
  23. package/dist/types/artifacts/glyph/blog/24.d.ts +7 -2
  24. package/dist/types/artifacts/glyph/branch/16.d.ts +7 -2
  25. package/dist/types/artifacts/glyph/branch/24.d.ts +7 -2
  26. package/dist/types/artifacts/glyph/bug/16.d.ts +7 -2
  27. package/dist/types/artifacts/glyph/bug/24.d.ts +7 -2
  28. package/dist/types/artifacts/glyph/calendar/16.d.ts +7 -2
  29. package/dist/types/artifacts/glyph/calendar/24.d.ts +7 -2
  30. package/dist/types/artifacts/glyph/changes/16.d.ts +7 -2
  31. package/dist/types/artifacts/glyph/changes/24.d.ts +7 -2
  32. package/dist/types/artifacts/glyph/code/16.d.ts +7 -2
  33. package/dist/types/artifacts/glyph/code/24.d.ts +7 -2
  34. package/dist/types/artifacts/glyph/commit/16.d.ts +7 -2
  35. package/dist/types/artifacts/glyph/commit/24.d.ts +7 -2
  36. package/dist/types/artifacts/glyph/epic/16.d.ts +7 -2
  37. package/dist/types/artifacts/glyph/epic/24.d.ts +7 -2
  38. package/dist/types/artifacts/glyph/improvement/16.d.ts +7 -2
  39. package/dist/types/artifacts/glyph/improvement/24.d.ts +7 -2
  40. package/dist/types/artifacts/glyph/incident/16.d.ts +7 -2
  41. package/dist/types/artifacts/glyph/incident/24.d.ts +7 -2
  42. package/dist/types/artifacts/glyph/issue/16.d.ts +7 -2
  43. package/dist/types/artifacts/glyph/issue/24.d.ts +7 -2
  44. package/dist/types/artifacts/glyph/new-feature/16.d.ts +7 -2
  45. package/dist/types/artifacts/glyph/new-feature/24.d.ts +7 -2
  46. package/dist/types/artifacts/glyph/page/16.d.ts +7 -2
  47. package/dist/types/artifacts/glyph/page/24.d.ts +7 -2
  48. package/dist/types/artifacts/glyph/page-live-doc/16.d.ts +19 -0
  49. package/dist/types/artifacts/glyph/page-live-doc/24.d.ts +19 -0
  50. package/dist/types/artifacts/glyph/problem/16.d.ts +7 -2
  51. package/dist/types/artifacts/glyph/problem/24.d.ts +7 -2
  52. package/dist/types/artifacts/glyph/pull-request/16.d.ts +7 -2
  53. package/dist/types/artifacts/glyph/pull-request/24.d.ts +7 -2
  54. package/dist/types/artifacts/glyph/question/16.d.ts +7 -2
  55. package/dist/types/artifacts/glyph/question/24.d.ts +7 -2
  56. package/dist/types/artifacts/glyph/story/16.d.ts +7 -2
  57. package/dist/types/artifacts/glyph/story/24.d.ts +7 -2
  58. package/dist/types/artifacts/glyph/subtask/16.d.ts +7 -2
  59. package/dist/types/artifacts/glyph/subtask/24.d.ts +7 -2
  60. package/dist/types/artifacts/glyph/task/16.d.ts +7 -2
  61. package/dist/types/artifacts/glyph/task/24.d.ts +7 -2
  62. package/dist/types/artifacts/glyph-legacy/blog/16.d.ts +7 -2
  63. package/dist/types/artifacts/glyph-legacy/blog/24.d.ts +7 -2
  64. package/dist/types/artifacts/glyph-legacy/branch/16.d.ts +7 -2
  65. package/dist/types/artifacts/glyph-legacy/branch/24.d.ts +7 -2
  66. package/dist/types/artifacts/glyph-legacy/bug/16.d.ts +7 -2
  67. package/dist/types/artifacts/glyph-legacy/bug/24.d.ts +7 -2
  68. package/dist/types/artifacts/glyph-legacy/calendar/16.d.ts +7 -2
  69. package/dist/types/artifacts/glyph-legacy/calendar/24.d.ts +7 -2
  70. package/dist/types/artifacts/glyph-legacy/changes/16.d.ts +7 -2
  71. package/dist/types/artifacts/glyph-legacy/changes/24.d.ts +7 -2
  72. package/dist/types/artifacts/glyph-legacy/code/16.d.ts +7 -2
  73. package/dist/types/artifacts/glyph-legacy/code/24.d.ts +7 -2
  74. package/dist/types/artifacts/glyph-legacy/commit/16.d.ts +7 -2
  75. package/dist/types/artifacts/glyph-legacy/commit/24.d.ts +7 -2
  76. package/dist/types/artifacts/glyph-legacy/epic/16.d.ts +7 -2
  77. package/dist/types/artifacts/glyph-legacy/epic/24.d.ts +7 -2
  78. package/dist/types/artifacts/glyph-legacy/improvement/16.d.ts +7 -2
  79. package/dist/types/artifacts/glyph-legacy/improvement/24.d.ts +7 -2
  80. package/dist/types/artifacts/glyph-legacy/incident/16.d.ts +7 -2
  81. package/dist/types/artifacts/glyph-legacy/incident/24.d.ts +7 -2
  82. package/dist/types/artifacts/glyph-legacy/issue/16.d.ts +7 -2
  83. package/dist/types/artifacts/glyph-legacy/issue/24.d.ts +7 -2
  84. package/dist/types/artifacts/glyph-legacy/new-feature/16.d.ts +7 -2
  85. package/dist/types/artifacts/glyph-legacy/new-feature/24.d.ts +7 -2
  86. package/dist/types/artifacts/glyph-legacy/page/16.d.ts +7 -2
  87. package/dist/types/artifacts/glyph-legacy/page/24.d.ts +7 -2
  88. package/dist/types/artifacts/glyph-legacy/page-live-doc/16.d.ts +12 -0
  89. package/dist/types/artifacts/glyph-legacy/page-live-doc/24.d.ts +12 -0
  90. package/dist/types/artifacts/glyph-legacy/problem/16.d.ts +7 -2
  91. package/dist/types/artifacts/glyph-legacy/problem/24.d.ts +7 -2
  92. package/dist/types/artifacts/glyph-legacy/pull-request/16.d.ts +7 -2
  93. package/dist/types/artifacts/glyph-legacy/pull-request/24.d.ts +7 -2
  94. package/dist/types/artifacts/glyph-legacy/question/16.d.ts +7 -2
  95. package/dist/types/artifacts/glyph-legacy/question/24.d.ts +7 -2
  96. package/dist/types/artifacts/glyph-legacy/story/16.d.ts +7 -2
  97. package/dist/types/artifacts/glyph-legacy/story/24.d.ts +7 -2
  98. package/dist/types/artifacts/glyph-legacy/subtask/16.d.ts +7 -2
  99. package/dist/types/artifacts/glyph-legacy/subtask/24.d.ts +7 -2
  100. package/dist/types/artifacts/glyph-legacy/task/16.d.ts +7 -2
  101. package/dist/types/artifacts/glyph-legacy/task/24.d.ts +7 -2
  102. package/dist/types/metadata.d.ts +2 -2
  103. package/dist/types-ts4.5/artifacts/glyph/blog/16.d.ts +7 -2
  104. package/dist/types-ts4.5/artifacts/glyph/blog/24.d.ts +7 -2
  105. package/dist/types-ts4.5/artifacts/glyph/branch/16.d.ts +7 -2
  106. package/dist/types-ts4.5/artifacts/glyph/branch/24.d.ts +7 -2
  107. package/dist/types-ts4.5/artifacts/glyph/bug/16.d.ts +7 -2
  108. package/dist/types-ts4.5/artifacts/glyph/bug/24.d.ts +7 -2
  109. package/dist/types-ts4.5/artifacts/glyph/calendar/16.d.ts +7 -2
  110. package/dist/types-ts4.5/artifacts/glyph/calendar/24.d.ts +7 -2
  111. package/dist/types-ts4.5/artifacts/glyph/changes/16.d.ts +7 -2
  112. package/dist/types-ts4.5/artifacts/glyph/changes/24.d.ts +7 -2
  113. package/dist/types-ts4.5/artifacts/glyph/code/16.d.ts +7 -2
  114. package/dist/types-ts4.5/artifacts/glyph/code/24.d.ts +7 -2
  115. package/dist/types-ts4.5/artifacts/glyph/commit/16.d.ts +7 -2
  116. package/dist/types-ts4.5/artifacts/glyph/commit/24.d.ts +7 -2
  117. package/dist/types-ts4.5/artifacts/glyph/epic/16.d.ts +7 -2
  118. package/dist/types-ts4.5/artifacts/glyph/epic/24.d.ts +7 -2
  119. package/dist/types-ts4.5/artifacts/glyph/improvement/16.d.ts +7 -2
  120. package/dist/types-ts4.5/artifacts/glyph/improvement/24.d.ts +7 -2
  121. package/dist/types-ts4.5/artifacts/glyph/incident/16.d.ts +7 -2
  122. package/dist/types-ts4.5/artifacts/glyph/incident/24.d.ts +7 -2
  123. package/dist/types-ts4.5/artifacts/glyph/issue/16.d.ts +7 -2
  124. package/dist/types-ts4.5/artifacts/glyph/issue/24.d.ts +7 -2
  125. package/dist/types-ts4.5/artifacts/glyph/new-feature/16.d.ts +7 -2
  126. package/dist/types-ts4.5/artifacts/glyph/new-feature/24.d.ts +7 -2
  127. package/dist/types-ts4.5/artifacts/glyph/page/16.d.ts +7 -2
  128. package/dist/types-ts4.5/artifacts/glyph/page/24.d.ts +7 -2
  129. package/dist/types-ts4.5/artifacts/glyph/page-live-doc/16.d.ts +19 -0
  130. package/dist/types-ts4.5/artifacts/glyph/page-live-doc/24.d.ts +19 -0
  131. package/dist/types-ts4.5/artifacts/glyph/problem/16.d.ts +7 -2
  132. package/dist/types-ts4.5/artifacts/glyph/problem/24.d.ts +7 -2
  133. package/dist/types-ts4.5/artifacts/glyph/pull-request/16.d.ts +7 -2
  134. package/dist/types-ts4.5/artifacts/glyph/pull-request/24.d.ts +7 -2
  135. package/dist/types-ts4.5/artifacts/glyph/question/16.d.ts +7 -2
  136. package/dist/types-ts4.5/artifacts/glyph/question/24.d.ts +7 -2
  137. package/dist/types-ts4.5/artifacts/glyph/story/16.d.ts +7 -2
  138. package/dist/types-ts4.5/artifacts/glyph/story/24.d.ts +7 -2
  139. package/dist/types-ts4.5/artifacts/glyph/subtask/16.d.ts +7 -2
  140. package/dist/types-ts4.5/artifacts/glyph/subtask/24.d.ts +7 -2
  141. package/dist/types-ts4.5/artifacts/glyph/task/16.d.ts +7 -2
  142. package/dist/types-ts4.5/artifacts/glyph/task/24.d.ts +7 -2
  143. package/dist/types-ts4.5/artifacts/glyph-legacy/blog/16.d.ts +7 -2
  144. package/dist/types-ts4.5/artifacts/glyph-legacy/blog/24.d.ts +7 -2
  145. package/dist/types-ts4.5/artifacts/glyph-legacy/branch/16.d.ts +7 -2
  146. package/dist/types-ts4.5/artifacts/glyph-legacy/branch/24.d.ts +7 -2
  147. package/dist/types-ts4.5/artifacts/glyph-legacy/bug/16.d.ts +7 -2
  148. package/dist/types-ts4.5/artifacts/glyph-legacy/bug/24.d.ts +7 -2
  149. package/dist/types-ts4.5/artifacts/glyph-legacy/calendar/16.d.ts +7 -2
  150. package/dist/types-ts4.5/artifacts/glyph-legacy/calendar/24.d.ts +7 -2
  151. package/dist/types-ts4.5/artifacts/glyph-legacy/changes/16.d.ts +7 -2
  152. package/dist/types-ts4.5/artifacts/glyph-legacy/changes/24.d.ts +7 -2
  153. package/dist/types-ts4.5/artifacts/glyph-legacy/code/16.d.ts +7 -2
  154. package/dist/types-ts4.5/artifacts/glyph-legacy/code/24.d.ts +7 -2
  155. package/dist/types-ts4.5/artifacts/glyph-legacy/commit/16.d.ts +7 -2
  156. package/dist/types-ts4.5/artifacts/glyph-legacy/commit/24.d.ts +7 -2
  157. package/dist/types-ts4.5/artifacts/glyph-legacy/epic/16.d.ts +7 -2
  158. package/dist/types-ts4.5/artifacts/glyph-legacy/epic/24.d.ts +7 -2
  159. package/dist/types-ts4.5/artifacts/glyph-legacy/improvement/16.d.ts +7 -2
  160. package/dist/types-ts4.5/artifacts/glyph-legacy/improvement/24.d.ts +7 -2
  161. package/dist/types-ts4.5/artifacts/glyph-legacy/incident/16.d.ts +7 -2
  162. package/dist/types-ts4.5/artifacts/glyph-legacy/incident/24.d.ts +7 -2
  163. package/dist/types-ts4.5/artifacts/glyph-legacy/issue/16.d.ts +7 -2
  164. package/dist/types-ts4.5/artifacts/glyph-legacy/issue/24.d.ts +7 -2
  165. package/dist/types-ts4.5/artifacts/glyph-legacy/new-feature/16.d.ts +7 -2
  166. package/dist/types-ts4.5/artifacts/glyph-legacy/new-feature/24.d.ts +7 -2
  167. package/dist/types-ts4.5/artifacts/glyph-legacy/page/16.d.ts +7 -2
  168. package/dist/types-ts4.5/artifacts/glyph-legacy/page/24.d.ts +7 -2
  169. package/dist/types-ts4.5/artifacts/glyph-legacy/page-live-doc/16.d.ts +12 -0
  170. package/dist/types-ts4.5/artifacts/glyph-legacy/page-live-doc/24.d.ts +12 -0
  171. package/dist/types-ts4.5/artifacts/glyph-legacy/problem/16.d.ts +7 -2
  172. package/dist/types-ts4.5/artifacts/glyph-legacy/problem/24.d.ts +7 -2
  173. package/dist/types-ts4.5/artifacts/glyph-legacy/pull-request/16.d.ts +7 -2
  174. package/dist/types-ts4.5/artifacts/glyph-legacy/pull-request/24.d.ts +7 -2
  175. package/dist/types-ts4.5/artifacts/glyph-legacy/question/16.d.ts +7 -2
  176. package/dist/types-ts4.5/artifacts/glyph-legacy/question/24.d.ts +7 -2
  177. package/dist/types-ts4.5/artifacts/glyph-legacy/story/16.d.ts +7 -2
  178. package/dist/types-ts4.5/artifacts/glyph-legacy/story/24.d.ts +7 -2
  179. package/dist/types-ts4.5/artifacts/glyph-legacy/subtask/16.d.ts +7 -2
  180. package/dist/types-ts4.5/artifacts/glyph-legacy/subtask/24.d.ts +7 -2
  181. package/dist/types-ts4.5/artifacts/glyph-legacy/task/16.d.ts +7 -2
  182. package/dist/types-ts4.5/artifacts/glyph-legacy/task/24.d.ts +7 -2
  183. package/dist/types-ts4.5/metadata.d.ts +1 -1
  184. package/glyph/page-live-doc/16/package.json +17 -0
  185. package/glyph/page-live-doc/24/package.json +17 -0
  186. package/package.json +8 -6
  187. package/svgs/page-live-doc/16.svg +1 -0
  188. package/svgs/page-live-doc/24.svg +1 -0
  189. package/svgs_raw/page-live-doc/16.svg +3 -0
  190. package/svgs_raw/page-live-doc/24.svg +3 -0
  191. package/codemods/6.1.0-metadata-entry.tsx +0 -111
  192. package/codemods/__tests__/6.1.0-metadata-entry.tsx +0 -126
@@ -1,111 +0,0 @@
1
- import type {
2
- API,
3
- default as core,
4
- FileInfo,
5
- ImportSpecifier,
6
- ASTPath,
7
- ImportDefaultSpecifier,
8
- Options,
9
- } from 'jscodeshift';
10
- import { type Collection } from 'jscodeshift/src/Collection';
11
-
12
- export const packageName = '@atlaskit/icon-object';
13
-
14
- export default function transformer(file: FileInfo, api: API, options: Options) {
15
- const j = api.jscodeshift;
16
- const root = j(file.source, { quote: 'auto' });
17
- if (hasImportDeclaration(j, root, packageName)) {
18
- const imports = root.find(j.ImportSpecifier, {
19
- imported: { name: 'metadata' },
20
- });
21
- imports.forEach((p: ASTPath<ImportSpecifier | ImportDefaultSpecifier>) => {
22
- if (p.parentPath.parentPath.node.source.value !== packageName) {
23
- return;
24
- }
25
- if (p.parentPath.node.specifiers.length === 1) {
26
- p.node.type = 'ImportDefaultSpecifier';
27
- p.parentPath.node.source.value = `${packageName}/metadata`;
28
- } else if (p.node.local) {
29
- tryCreateImport({
30
- j,
31
- base: root,
32
- packageName: `${packageName}/metadata`,
33
- relativeToPackage: packageName,
34
- });
35
- addToImport({
36
- j,
37
- base: root,
38
- packageName: `${packageName}/metadata`,
39
- importSpecifier: j.importDefaultSpecifier(j.identifier(p.node.local.name)),
40
- });
41
- p.replace();
42
- }
43
- });
44
- return root.toSource(options.printOptions || { quote: 'single' });
45
- }
46
- return file.source;
47
- }
48
-
49
- function hasImportDeclaration(
50
- j: core.JSCodeshift,
51
- source: ReturnType<typeof j>,
52
- importPath: string,
53
- ) {
54
- return !!source.find(j.ImportDeclaration).filter((path) => path.node.source.value === importPath)
55
- .length;
56
- }
57
-
58
- function tryCreateImport({
59
- j,
60
- base,
61
- relativeToPackage,
62
- packageName,
63
- }: {
64
- j: core.JSCodeshift;
65
- base: Collection<any>;
66
- relativeToPackage: string;
67
- packageName: string;
68
- }) {
69
- const exists: boolean =
70
- base.find(j.ImportDeclaration).filter((path) => path.value.source.value === packageName)
71
- .length > 0;
72
-
73
- if (exists) {
74
- return;
75
- }
76
-
77
- base
78
- .find(j.ImportDeclaration)
79
- .filter((path) => path.value.source.value === relativeToPackage)
80
- .insertBefore(j.importDeclaration([], j.literal(packageName)));
81
- }
82
-
83
- function addToImport({
84
- j,
85
- base,
86
- importSpecifier,
87
- packageName,
88
- }: {
89
- j: core.JSCodeshift;
90
- base: Collection<any>;
91
- importSpecifier: ImportSpecifier | ImportDefaultSpecifier;
92
- packageName: string;
93
- }) {
94
- base
95
- .find(j.ImportDeclaration)
96
- .filter((path) => path.value.source.value === packageName)
97
- .replaceWith((declaration) => {
98
- return j.importDeclaration(
99
- [
100
- // we are appending to the existing specifiers
101
- // We are doing a filter hear because sometimes specifiers can be removed
102
- // but they hand around in the declaration
103
- ...(declaration.value.specifiers || []).filter(
104
- (item) => item.type === 'ImportSpecifier' && item.imported != null,
105
- ),
106
- importSpecifier,
107
- ],
108
- j.literal(packageName),
109
- );
110
- });
111
- }
@@ -1,126 +0,0 @@
1
- jest.disableAutomock();
2
-
3
- import transformer, { packageName } from '../6.1.0-metadata-entry';
4
-
5
- const defineInlineTest = require('jscodeshift/dist/testUtils').defineInlineTest;
6
-
7
- describe('Update imports', () => {
8
- defineInlineTest(
9
- { default: transformer, parser: 'tsx' },
10
- {},
11
- `
12
- import { metadata } from '${packageName}';
13
- console.log(metadata);
14
- `,
15
- `
16
- import metadata from '${packageName}/metadata';
17
- console.log(metadata);
18
- `,
19
- 'should replace named metadata import from main entry point with default import from dedicated entry point',
20
- );
21
- defineInlineTest(
22
- { default: transformer, parser: 'tsx' },
23
- {},
24
- `
25
- import { metadata as data } from '${packageName}';
26
- console.log(data);
27
- `,
28
- `
29
- import data from '${packageName}/metadata';
30
- console.log(data);
31
- `,
32
- 'should preserve renaming when converting from named import to default import',
33
- );
34
- defineInlineTest(
35
- { default: transformer, parser: 'tsx' },
36
- {},
37
- `
38
- import { a, metadata, b } from '${packageName}';
39
- console.log(metadata);
40
- `,
41
- `
42
- import metadata from '${packageName}/metadata';
43
- import { a, b } from '${packageName}';
44
- console.log(metadata);
45
- `,
46
- 'should preserve other named imports',
47
- );
48
- defineInlineTest(
49
- { default: transformer, parser: 'tsx' },
50
- {},
51
- `
52
- import { a, metadata as data, b } from '${packageName}';
53
- console.log(data);
54
- `,
55
- `
56
- import data from '${packageName}/metadata';
57
- import { a, b } from '${packageName}';
58
- console.log(data);
59
- `,
60
- 'should preserve other named imports, as well as metadata renaming',
61
- );
62
- defineInlineTest(
63
- { default: transformer, parser: 'tsx' },
64
- {},
65
- `
66
- import Icon, { a, metadata as data, b } from '${packageName}';
67
- console.log(a, data, b);
68
- `,
69
- `
70
- import data from '${packageName}/metadata';
71
- import Icon, { a, b } from '${packageName}';
72
- console.log(a, data, b);
73
- `,
74
- 'should preserve other named imports and default import, as well as metadata renaming',
75
- );
76
- defineInlineTest(
77
- { default: transformer, parser: 'tsx' },
78
- {},
79
- `
80
- import metadata from '${packageName}/metadata';
81
- console.log(metadata);
82
- `,
83
- `
84
- import metadata from '${packageName}/metadata';
85
- console.log(metadata);
86
- `,
87
- 'should not affect existing good imports',
88
- );
89
- defineInlineTest(
90
- { default: transformer, parser: 'tsx' },
91
- {},
92
- `
93
- import { metadata } from 'not-${packageName}';
94
- `,
95
- `
96
- import { metadata } from 'not-${packageName}';
97
- `,
98
- 'should not affect other packages',
99
- );
100
- defineInlineTest(
101
- { default: transformer, parser: 'tsx' },
102
- {},
103
- `
104
- import { metadata } from '${packageName}/foo';
105
- `,
106
- `
107
- import { metadata } from '${packageName}/foo';
108
- `,
109
- 'should not affect other entrypoints',
110
- );
111
- defineInlineTest(
112
- { default: transformer, parser: 'tsx' },
113
- {},
114
- `
115
- import { metadata } from '@atlaskit/icon';
116
- import { metadata as objectIconMetadata } from '@atlaskit/icon-object';
117
- import { metadata as fileTypeIconMetadata } from '@atlaskit/icon-file-type';
118
- `,
119
- `
120
- import { metadata } from '@atlaskit/icon';
121
- import objectIconMetadata from '@atlaskit/icon-object/metadata';
122
- import { metadata as fileTypeIconMetadata } from '@atlaskit/icon-file-type';
123
- `,
124
- 'should work as expected on a real-world case',
125
- );
126
- });