@atlaskit/tokens 7.1.0 → 7.1.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # @atlaskit/tokens
2
2
 
3
+ ## 7.1.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [`df9a060fe8b7f`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/df9a060fe8b7f) -
8
+ Adds the native `@atlaspack/transformer-tokens` plugin for Atlassian Studio builds.
9
+
3
10
  ## 7.1.0
4
11
 
5
12
  ### Minor Changes
@@ -81,6 +81,14 @@ var getThemeValues = function getThemeValues(theme) {
81
81
  }, {});
82
82
  };
83
83
  function plugin() {
84
+ // If the `TOKENS_SKIP_BABEL` environment variable is set, skip this
85
+ // plugin entirely. This will be enabled when the native Tokens transformer is enabled.
86
+ // This allows us to control this based on rollout gates.
87
+ if (process.env.TOKENS_SKIP_BABEL === 'true') {
88
+ return {
89
+ visitor: {}
90
+ };
91
+ }
84
92
  return {
85
93
  visitor: {
86
94
  Program: {
@@ -58,6 +58,14 @@ const getThemeValues = theme => {
58
58
  }, {});
59
59
  };
60
60
  export default function plugin() {
61
+ // If the `TOKENS_SKIP_BABEL` environment variable is set, skip this
62
+ // plugin entirely. This will be enabled when the native Tokens transformer is enabled.
63
+ // This allows us to control this based on rollout gates.
64
+ if (process.env.TOKENS_SKIP_BABEL === 'true') {
65
+ return {
66
+ visitor: {}
67
+ };
68
+ }
61
69
  return {
62
70
  visitor: {
63
71
  Program: {
@@ -72,6 +72,14 @@ var getThemeValues = function getThemeValues(theme) {
72
72
  }, {});
73
73
  };
74
74
  export default function plugin() {
75
+ // If the `TOKENS_SKIP_BABEL` environment variable is set, skip this
76
+ // plugin entirely. This will be enabled when the native Tokens transformer is enabled.
77
+ // This allows us to control this based on rollout gates.
78
+ if (process.env.TOKENS_SKIP_BABEL === 'true') {
79
+ return {
80
+ visitor: {}
81
+ };
82
+ }
75
83
  return {
76
84
  visitor: {
77
85
  Program: {
@@ -2,6 +2,10 @@ import { type NodePath } from '@babel/traverse';
2
2
  import * as t from '@babel/types';
3
3
  type DefaultColorTheme = 'light' | 'legacy-light';
4
4
  export default function plugin(): {
5
+ visitor: {
6
+ Program?: undefined;
7
+ };
8
+ } | {
5
9
  visitor: {
6
10
  Program: {
7
11
  enter(path: NodePath<t.Program>, state: {
@@ -2,6 +2,10 @@ import { type NodePath } from '@babel/traverse';
2
2
  import * as t from '@babel/types';
3
3
  type DefaultColorTheme = 'light' | 'legacy-light';
4
4
  export default function plugin(): {
5
+ visitor: {
6
+ Program?: undefined;
7
+ };
8
+ } | {
5
9
  visitor: {
6
10
  Program: {
7
11
  enter(path: NodePath<t.Program>, state: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/tokens",
3
- "version": "7.1.0",
3
+ "version": "7.1.1",
4
4
  "description": "Design tokens are the single source of truth to name and store design decisions.",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -30,7 +30,7 @@
30
30
  "codegen-tokens": "run-ts ./scripts/style-dictionary/build.tsx && run-ts ./scripts/style-dictionary/build-plugin-token-map.tsx && cd $(npx repo-root)/packages/design-system/primitives && yarn codegen-styles && cd $(npx repo-root)/packages/design-system/ds-explorations && yarn codegen-styles && cd $(npx repo-root)/packages/design-system/heading && yarn codegen"
31
31
  },
32
32
  "dependencies": {
33
- "@atlaskit/ds-lib": "^5.1.0",
33
+ "@atlaskit/ds-lib": "^5.2.0",
34
34
  "@atlaskit/platform-feature-flags": "^1.1.0",
35
35
  "@babel/runtime": "^7.0.0",
36
36
  "@babel/traverse": "^7.23.2",