@atlaskit/icon 34.0.0 → 34.0.2

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,21 @@
1
1
  # @atlaskit/icon
2
2
 
3
+ ## 34.0.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [`02483200273ec`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/02483200273ec) -
8
+ Enrol all Design System UI packages into the React Compiler with platform gating via
9
+ isReactCompilerActivePlatform.
10
+ - Updated dependencies
11
+
12
+ ## 34.0.1
13
+
14
+ ### Patch Changes
15
+
16
+ - [`22bf79dbdcdca`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/22bf79dbdcdca) -
17
+ Internal changes to remove unnecessary token fallbacks and imports from `@atlaskit/theme`
18
+
3
19
  ## 34.0.0
4
20
 
5
21
  ### Major 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.0",
3
+ "version": "34.0.2",
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",
@@ -67,6 +74,7 @@
67
74
  "@atlaskit/toggle": "^15.2.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",