@atlaskit/tokens 1.2.6 → 1.2.8

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,17 @@
1
1
  # @atlaskit/tokens
2
2
 
3
+ ## 1.2.8
4
+
5
+ ### Patch Changes
6
+
7
+ - [`de4f079569a`](https://bitbucket.org/atlassian/atlassian-frontend/commits/de4f079569a) - The tokens babel-plugin will no longer run on files in node_module directories. This is to avoid attempting to transform legacy tokens from older transitive dependencies.
8
+
9
+ ## 1.2.7
10
+
11
+ ### Patch Changes
12
+
13
+ - [`23b381db41c`](https://bitbucket.org/atlassian/atlassian-frontend/commits/23b381db41c) - Upgrades component types to support React 18.
14
+
3
15
  ## 1.2.6
4
16
 
5
17
  ### Patch Changes
@@ -16,6 +16,10 @@ function plugin() {
16
16
  visitor: {
17
17
  Program: {
18
18
  enter: function enter(path, state) {
19
+ var sourceFile = path.hub.file.opts.filename;
20
+ if (sourceFile && sourceFile.includes('node_modules')) {
21
+ return;
22
+ }
19
23
  path.traverse({
20
24
  CallExpression: function (_CallExpression) {
21
25
  function CallExpression(_x) {
@@ -8,7 +8,7 @@ exports.default = void 0;
8
8
  var _warnOnce = _interopRequireDefault(require("@atlaskit/ds-lib/warn-once"));
9
9
  var _tokenNames = _interopRequireDefault(require("./artifacts/token-names"));
10
10
  var name = "@atlaskit/tokens";
11
- var version = "1.2.6";
11
+ var version = "1.2.8";
12
12
  /**
13
13
  * Takes a dot-separated token name and and an optional fallback, and returns the current computed CSS value for the
14
14
  * resulting CSS Custom Property.
@@ -9,7 +9,7 @@ var _warnOnce = _interopRequireDefault(require("@atlaskit/ds-lib/warn-once"));
9
9
  var _tokenNames = _interopRequireDefault(require("./artifacts/token-names"));
10
10
  var _constants = require("./constants");
11
11
  var name = "@atlaskit/tokens";
12
- var version = "1.2.6";
12
+ var version = "1.2.8";
13
13
  /**
14
14
  * Takes a dot-separated token name and an optional fallback, and returns the CSS custom property for the corresponding token.
15
15
  * This should be used to implement design decisions throughout your application.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/tokens",
3
- "version": "1.2.6",
3
+ "version": "1.2.8",
4
4
  "sideEffects": [
5
5
  "**/*.css"
6
6
  ]
@@ -6,6 +6,10 @@ export default function plugin() {
6
6
  visitor: {
7
7
  Program: {
8
8
  enter(path, state) {
9
+ const sourceFile = path.hub.file.opts.filename;
10
+ if (sourceFile && sourceFile.includes('node_modules')) {
11
+ return;
12
+ }
9
13
  path.traverse({
10
14
  CallExpression(path) {
11
15
  const tokenImportScope = getTokenImportScope(path);
@@ -1,7 +1,7 @@
1
1
  import warnOnce from '@atlaskit/ds-lib/warn-once';
2
2
  import tokens from './artifacts/token-names';
3
3
  const name = "@atlaskit/tokens";
4
- const version = "1.2.6";
4
+ const version = "1.2.8";
5
5
  /**
6
6
  * Takes a dot-separated token name and and an optional fallback, and returns the current computed CSS value for the
7
7
  * resulting CSS Custom Property.
@@ -2,7 +2,7 @@ import warnOnce from '@atlaskit/ds-lib/warn-once';
2
2
  import tokens from './artifacts/token-names';
3
3
  import { TOKEN_NOT_FOUND_CSS_VAR } from './constants';
4
4
  const name = "@atlaskit/tokens";
5
- const version = "1.2.6";
5
+ const version = "1.2.8";
6
6
  /**
7
7
  * Takes a dot-separated token name and an optional fallback, and returns the CSS custom property for the corresponding token.
8
8
  * This should be used to implement design decisions throughout your application.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/tokens",
3
- "version": "1.2.6",
3
+ "version": "1.2.8",
4
4
  "sideEffects": [
5
5
  "**/*.css"
6
6
  ]
@@ -6,6 +6,10 @@ export default function plugin() {
6
6
  visitor: {
7
7
  Program: {
8
8
  enter: function enter(path, state) {
9
+ var sourceFile = path.hub.file.opts.filename;
10
+ if (sourceFile && sourceFile.includes('node_modules')) {
11
+ return;
12
+ }
9
13
  path.traverse({
10
14
  CallExpression: function (_CallExpression) {
11
15
  function CallExpression(_x) {
@@ -1,7 +1,7 @@
1
1
  import warnOnce from '@atlaskit/ds-lib/warn-once';
2
2
  import tokens from './artifacts/token-names';
3
3
  var name = "@atlaskit/tokens";
4
- var version = "1.2.6";
4
+ var version = "1.2.8";
5
5
  /**
6
6
  * Takes a dot-separated token name and and an optional fallback, and returns the current computed CSS value for the
7
7
  * resulting CSS Custom Property.
@@ -2,7 +2,7 @@ import warnOnce from '@atlaskit/ds-lib/warn-once';
2
2
  import tokens from './artifacts/token-names';
3
3
  import { TOKEN_NOT_FOUND_CSS_VAR } from './constants';
4
4
  var name = "@atlaskit/tokens";
5
- var version = "1.2.6";
5
+ var version = "1.2.8";
6
6
  /**
7
7
  * Takes a dot-separated token name and an optional fallback, and returns the CSS custom property for the corresponding token.
8
8
  * This should be used to implement design decisions throughout your application.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/tokens",
3
- "version": "1.2.6",
3
+ "version": "1.2.8",
4
4
  "sideEffects": [
5
5
  "**/*.css"
6
6
  ]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/tokens",
3
- "version": "1.2.6",
3
+ "version": "1.2.8",
4
4
  "author": "Atlassian Pty Ltd",
5
5
  "description": "Design tokens are the single source of truth to name and store design decisions.",
6
6
  "license": "Apache-2.0",
@@ -63,7 +63,7 @@
63
63
  "@af/codegen": "*",
64
64
  "@atlaskit/avatar": "^21.2.0",
65
65
  "@atlaskit/badge": "^15.0.11",
66
- "@atlaskit/button": "^16.5.0",
66
+ "@atlaskit/button": "^16.6.0",
67
67
  "@atlaskit/checkbox": "^12.4.0",
68
68
  "@atlaskit/code": "^14.5.0",
69
69
  "@atlaskit/docs": "^9.0.10",
@@ -73,16 +73,16 @@
73
73
  "@atlaskit/empty-state": "^7.4.0",
74
74
  "@atlaskit/focus-ring": "^1.2.0",
75
75
  "@atlaskit/grid": "^0.8.0",
76
- "@atlaskit/heading": "^1.1.0",
76
+ "@atlaskit/heading": "^1.2.0",
77
77
  "@atlaskit/icon": "^21.11.0",
78
78
  "@atlaskit/lozenge": "^11.3.0",
79
79
  "@atlaskit/modal-dialog": "^12.4.0",
80
- "@atlaskit/primitives": "^0.3.0",
80
+ "@atlaskit/primitives": "^0.6.0",
81
81
  "@atlaskit/section-message": "^6.3.0",
82
82
  "@atlaskit/tabs": "^13.3.0",
83
83
  "@atlaskit/tag": "^11.4.0",
84
84
  "@atlaskit/textfield": "^5.3.0",
85
- "@atlaskit/theme": "^12.2.0",
85
+ "@atlaskit/theme": "^12.3.0",
86
86
  "@atlaskit/toggle": "^12.5.0",
87
87
  "@atlaskit/tooltip": "^17.7.0",
88
88
  "@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1",