@atlaskit/tokens 0.11.5 → 0.11.6
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 +6 -0
- package/dist/cjs/babel-plugin/plugin.js +6 -0
- package/dist/cjs/get-token.js +1 -1
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/babel-plugin/plugin.js +6 -0
- package/dist/es2019/get-token.js +1 -1
- package/dist/es2019/version.json +1 -1
- package/dist/esm/babel-plugin/plugin.js +6 -0
- package/dist/esm/get-token.js +1 -1
- package/dist/esm/version.json +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @atlaskit/tokens
|
|
2
2
|
|
|
3
|
+
## 0.11.6
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`3d46e550157`](https://bitbucket.org/atlassian/atlassian-frontend/commits/3d46e550157) - Fixes a bug with the tokens-babel-plugin where it was transforming token functions which were imported from modules other than the @atlaskit/tokens package.
|
|
8
|
+
|
|
3
9
|
## 0.11.5
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
|
@@ -164,6 +164,12 @@ function getTokenImportScope(path) {
|
|
|
164
164
|
return undefined;
|
|
165
165
|
}
|
|
166
166
|
|
|
167
|
+
if (binding.path.parent && t.isImportDeclaration(binding.path.parent)) {
|
|
168
|
+
if (binding.path.parent.source.value !== '@atlaskit/tokens') {
|
|
169
|
+
return undefined;
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
|
|
167
173
|
return getNonAliasedImportName(binding.path.node) === 'token' ? binding.scope : undefined;
|
|
168
174
|
}
|
|
169
175
|
|
package/dist/cjs/get-token.js
CHANGED
|
@@ -14,7 +14,7 @@ var _tokenNames = _interopRequireDefault(require("./artifacts/token-names"));
|
|
|
14
14
|
var _constants = require("./constants");
|
|
15
15
|
|
|
16
16
|
var name = "@atlaskit/tokens";
|
|
17
|
-
var version = "0.11.
|
|
17
|
+
var version = "0.11.6";
|
|
18
18
|
|
|
19
19
|
/**
|
|
20
20
|
* Takes a dot-separated token name and an optional fallback, and returns the CSS custom property for the corresponding token.
|
package/dist/cjs/version.json
CHANGED
|
@@ -140,6 +140,12 @@ function getTokenImportScope(path) {
|
|
|
140
140
|
return undefined;
|
|
141
141
|
}
|
|
142
142
|
|
|
143
|
+
if (binding.path.parent && t.isImportDeclaration(binding.path.parent)) {
|
|
144
|
+
if (binding.path.parent.source.value !== '@atlaskit/tokens') {
|
|
145
|
+
return undefined;
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
|
|
143
149
|
return getNonAliasedImportName(binding.path.node) === 'token' ? binding.scope : undefined;
|
|
144
150
|
}
|
|
145
151
|
|
package/dist/es2019/get-token.js
CHANGED
|
@@ -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 = "0.11.
|
|
5
|
+
const version = "0.11.6";
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* Takes a dot-separated token name and an optional fallback, and returns the CSS custom property for the corresponding token.
|
package/dist/es2019/version.json
CHANGED
|
@@ -146,6 +146,12 @@ function getTokenImportScope(path) {
|
|
|
146
146
|
return undefined;
|
|
147
147
|
}
|
|
148
148
|
|
|
149
|
+
if (binding.path.parent && t.isImportDeclaration(binding.path.parent)) {
|
|
150
|
+
if (binding.path.parent.source.value !== '@atlaskit/tokens') {
|
|
151
|
+
return undefined;
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
|
|
149
155
|
return getNonAliasedImportName(binding.path.node) === 'token' ? binding.scope : undefined;
|
|
150
156
|
}
|
|
151
157
|
|
package/dist/esm/get-token.js
CHANGED
|
@@ -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 = "0.11.
|
|
5
|
+
var version = "0.11.6";
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* Takes a dot-separated token name and an optional fallback, and returns the CSS custom property for the corresponding token.
|
package/dist/esm/version.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/tokens",
|
|
3
|
-
"version": "0.11.
|
|
3
|
+
"version": "0.11.6",
|
|
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",
|
|
@@ -71,7 +71,7 @@
|
|
|
71
71
|
"@atlaskit/code": "^14.4.0",
|
|
72
72
|
"@atlaskit/docs": "^9.0.10",
|
|
73
73
|
"@atlaskit/dropdown-menu": "^11.5.0",
|
|
74
|
-
"@atlaskit/ds-explorations": "^1.
|
|
74
|
+
"@atlaskit/ds-explorations": "^1.4.0",
|
|
75
75
|
"@atlaskit/dynamic-table": "^14.8.0",
|
|
76
76
|
"@atlaskit/empty-state": "^7.4.0",
|
|
77
77
|
"@atlaskit/focus-ring": "^1.2.0",
|