@atlaskit/icon 34.0.1 → 34.0.3
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
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# @atlaskit/icon
|
|
2
2
|
|
|
3
|
+
## 34.0.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 34.0.2
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [`02483200273ec`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/02483200273ec) -
|
|
14
|
+
Enrol all Design System UI packages into the React Compiler with platform gating via
|
|
15
|
+
isReactCompilerActivePlatform.
|
|
16
|
+
- Updated dependencies
|
|
17
|
+
|
|
3
18
|
## 34.0.1
|
|
4
19
|
|
|
5
20
|
### Patch Changes
|
|
@@ -5,6 +5,8 @@ import {
|
|
|
5
5
|
} from '@codeshift/utils';
|
|
6
6
|
import type { API, Collection, default as core, FileInfo } from 'jscodeshift';
|
|
7
7
|
|
|
8
|
+
import { getPartialImportDeclaration } from './utils/get-partial-import-declaration';
|
|
9
|
+
|
|
8
10
|
function insertTokenImport(j: core.JSCodeshift, source: Collection<any>) {
|
|
9
11
|
if (hasImportDeclaration(j, source, '@atlaskit/tokens')) {
|
|
10
12
|
return;
|
|
@@ -18,19 +20,6 @@ function insertTokenImport(j: core.JSCodeshift, source: Collection<any>) {
|
|
|
18
20
|
source.get().node.program.body.unshift(newImport);
|
|
19
21
|
}
|
|
20
22
|
|
|
21
|
-
export function getPartialImportDeclaration(
|
|
22
|
-
j: core.JSCodeshift,
|
|
23
|
-
source: Collection<any>,
|
|
24
|
-
sourcePath: string,
|
|
25
|
-
): Collection<any> {
|
|
26
|
-
return source
|
|
27
|
-
.find(j.ImportDeclaration)
|
|
28
|
-
.filter(
|
|
29
|
-
(path) =>
|
|
30
|
-
typeof path.node.source.value === 'string' && path.node.source.value.includes(sourcePath),
|
|
31
|
-
);
|
|
32
|
-
}
|
|
33
|
-
|
|
34
23
|
function buildToken(j: core.JSCodeshift, tokenId: string = '', fallback: string) {
|
|
35
24
|
const callExpr = j.callExpression(
|
|
36
25
|
j.identifier('token'),
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { type Collection, type JSCodeshift } from 'jscodeshift';
|
|
2
|
+
|
|
3
|
+
export function getPartialImportDeclaration(
|
|
4
|
+
j: JSCodeshift,
|
|
5
|
+
source: Collection<any>,
|
|
6
|
+
sourcePath: string,
|
|
7
|
+
): Collection<any> {
|
|
8
|
+
return source
|
|
9
|
+
.find(j.ImportDeclaration)
|
|
10
|
+
.filter(
|
|
11
|
+
(path) =>
|
|
12
|
+
typeof path.node.source.value === 'string' && path.node.source.value.includes(sourcePath),
|
|
13
|
+
);
|
|
14
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/icon",
|
|
3
|
-
"version": "34.0.
|
|
3
|
+
"version": "34.0.3",
|
|
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/"
|
|
@@ -17,6 +17,13 @@
|
|
|
17
17
|
],
|
|
18
18
|
"atlaskit:src": "src/index.tsx",
|
|
19
19
|
"atlassian": {
|
|
20
|
+
"react-compiler": {
|
|
21
|
+
"enabled": true,
|
|
22
|
+
"gating": {
|
|
23
|
+
"source": "@atlassian/react-compiler-gating",
|
|
24
|
+
"importSpecifierName": "isReactCompilerActivePlatform"
|
|
25
|
+
}
|
|
26
|
+
},
|
|
20
27
|
"team": "Design System Team",
|
|
21
28
|
"website": {
|
|
22
29
|
"name": "Icon",
|
|
@@ -36,7 +43,7 @@
|
|
|
36
43
|
"dependencies": {
|
|
37
44
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
38
45
|
"@atlaskit/tile": "^1.0.0",
|
|
39
|
-
"@atlaskit/tokens": "^
|
|
46
|
+
"@atlaskit/tokens": "^12.0.0",
|
|
40
47
|
"@babel/runtime": "^7.0.0",
|
|
41
48
|
"@compiled/react": "^0.20.0"
|
|
42
49
|
},
|
|
@@ -48,25 +55,26 @@
|
|
|
48
55
|
"@af/icon-build-process": "workspace:^",
|
|
49
56
|
"@af/integration-testing": "workspace:^",
|
|
50
57
|
"@af/visual-regression": "workspace:^",
|
|
51
|
-
"@atlaskit/button": "^23.
|
|
58
|
+
"@atlaskit/button": "^23.11.0",
|
|
52
59
|
"@atlaskit/code": "^17.4.0",
|
|
53
60
|
"@atlaskit/css": "^0.19.0",
|
|
54
61
|
"@atlaskit/docs": "^11.7.0",
|
|
55
62
|
"@atlaskit/form": "^15.5.0",
|
|
56
|
-
"@atlaskit/heading": "^5.
|
|
63
|
+
"@atlaskit/heading": "^5.4.0",
|
|
57
64
|
"@atlaskit/icon-file-type": "^7.0.0",
|
|
58
65
|
"@atlaskit/icon-object": "^7.5.0",
|
|
59
|
-
"@atlaskit/link": "^3.
|
|
60
|
-
"@atlaskit/logo": "^
|
|
66
|
+
"@atlaskit/link": "^3.4.0",
|
|
67
|
+
"@atlaskit/logo": "^20.0.0",
|
|
61
68
|
"@atlaskit/menu": "^8.4.0",
|
|
62
|
-
"@atlaskit/modal-dialog": "^14.
|
|
69
|
+
"@atlaskit/modal-dialog": "^14.15.0",
|
|
63
70
|
"@atlaskit/primitives": "^18.1.0",
|
|
64
71
|
"@atlaskit/section-message": "^8.12.0",
|
|
65
|
-
"@atlaskit/textfield": "^8.
|
|
66
|
-
"@atlaskit/theme": "^
|
|
67
|
-
"@atlaskit/toggle": "^15.
|
|
72
|
+
"@atlaskit/textfield": "^8.3.0",
|
|
73
|
+
"@atlaskit/theme": "^23.0.0",
|
|
74
|
+
"@atlaskit/toggle": "^15.4.0",
|
|
68
75
|
"@atlaskit/tooltip": "^21.1.0",
|
|
69
76
|
"@atlassian/feature-flags-test-utils": "^1.0.0",
|
|
77
|
+
"@atlassian/react-compiler-gating": "workspace:^",
|
|
70
78
|
"@atlassian/ssr-tests": "workspace:^",
|
|
71
79
|
"@atlassian/structured-docs-types": "workspace:^",
|
|
72
80
|
"@atlassian/testing-library": "^0.5.0",
|