@atlaskit/tokens 1.45.0 → 1.45.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,14 @@
1
1
  # @atlaskit/tokens
2
2
 
3
+ ## 1.45.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [#96516](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/96516)
8
+ [`fc7451742d3b`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/fc7451742d3b) -
9
+ Remove the version from non-production warns to avoid internal conflicts as debugging like this
10
+ should not be necessary; this package should be a singleton.
11
+
3
12
  ## 1.45.0
4
13
 
5
14
  ### Minor Changes
@@ -7,8 +7,6 @@ Object.defineProperty(exports, "__esModule", {
7
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
- var name = "@atlaskit/tokens";
11
- var version = "1.45.0";
12
10
  /**
13
11
  * Takes a dot-separated token name and and an optional fallback, and returns the current computed CSS value for the
14
12
  * resulting CSS Custom Property.
@@ -35,7 +33,7 @@ function getTokenValue(tokenId) {
35
33
  var token = _tokenNames.default[tokenId];
36
34
  var tokenValue = fallback;
37
35
  if (typeof process !== 'undefined' && process.env.NODE_ENV !== 'production' && !token) {
38
- (0, _warnOnce.default)("Unknown token id at path: ".concat(tokenId, " for ").concat(name, "@").concat(version));
36
+ (0, _warnOnce.default)("Unknown token id at path: ".concat(tokenId, " in @atlaskit/tokens"));
39
37
  }
40
38
  if (typeof window === 'undefined') {
41
39
  return tokenValue;
@@ -8,8 +8,6 @@ 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 _constants = require("./constants");
11
- var name = "@atlaskit/tokens";
12
- var version = "1.45.0";
13
11
  /**
14
12
  * Takes a dot-separated token name and an optional fallback, and returns the CSS custom property for the corresponding token.
15
13
  * This should be used to implement design decisions throughout your application.
@@ -35,7 +33,7 @@ var version = "1.45.0";
35
33
  function token(path, fallback) {
36
34
  var token = _tokenNames.default[path];
37
35
  if (typeof process !== 'undefined' && process.env.NODE_ENV !== 'production' && !token) {
38
- (0, _warnOnce.default)("Unknown token id at path: ".concat(path, " for ").concat(name, "@").concat(version));
36
+ (0, _warnOnce.default)("Unknown token id at path: ".concat(path, " in @atlaskit/tokens"));
39
37
  }
40
38
 
41
39
  // if the token is not found - replacing it with variable name without any value, to avoid it being undefined which would result in invalid css
@@ -1,7 +1,5 @@
1
1
  import warnOnce from '@atlaskit/ds-lib/warn-once';
2
2
  import tokens from './artifacts/token-names';
3
- const name = "@atlaskit/tokens";
4
- const version = "1.45.0";
5
3
  /**
6
4
  * Takes a dot-separated token name and and an optional fallback, and returns the current computed CSS value for the
7
5
  * resulting CSS Custom Property.
@@ -27,7 +25,7 @@ function getTokenValue(tokenId, fallback = '') {
27
25
  let token = tokens[tokenId];
28
26
  let tokenValue = fallback;
29
27
  if (typeof process !== 'undefined' && process.env.NODE_ENV !== 'production' && !token) {
30
- warnOnce(`Unknown token id at path: ${tokenId} for ${name}@${version}`);
28
+ warnOnce(`Unknown token id at path: ${tokenId} in @atlaskit/tokens`);
31
29
  }
32
30
  if (typeof window === 'undefined') {
33
31
  return tokenValue;
@@ -1,8 +1,6 @@
1
1
  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
- const name = "@atlaskit/tokens";
5
- const version = "1.45.0";
6
4
  /**
7
5
  * Takes a dot-separated token name and an optional fallback, and returns the CSS custom property for the corresponding token.
8
6
  * This should be used to implement design decisions throughout your application.
@@ -28,7 +26,7 @@ const version = "1.45.0";
28
26
  function token(path, fallback) {
29
27
  let token = tokens[path];
30
28
  if (typeof process !== 'undefined' && process.env.NODE_ENV !== 'production' && !token) {
31
- warnOnce(`Unknown token id at path: ${path} for ${name}@${version}`);
29
+ warnOnce(`Unknown token id at path: ${path} in @atlaskit/tokens`);
32
30
  }
33
31
 
34
32
  // if the token is not found - replacing it with variable name without any value, to avoid it being undefined which would result in invalid css
@@ -1,7 +1,5 @@
1
1
  import warnOnce from '@atlaskit/ds-lib/warn-once';
2
2
  import tokens from './artifacts/token-names';
3
- var name = "@atlaskit/tokens";
4
- var version = "1.45.0";
5
3
  /**
6
4
  * Takes a dot-separated token name and and an optional fallback, and returns the current computed CSS value for the
7
5
  * resulting CSS Custom Property.
@@ -28,7 +26,7 @@ function getTokenValue(tokenId) {
28
26
  var token = tokens[tokenId];
29
27
  var tokenValue = fallback;
30
28
  if (typeof process !== 'undefined' && process.env.NODE_ENV !== 'production' && !token) {
31
- warnOnce("Unknown token id at path: ".concat(tokenId, " for ").concat(name, "@").concat(version));
29
+ warnOnce("Unknown token id at path: ".concat(tokenId, " in @atlaskit/tokens"));
32
30
  }
33
31
  if (typeof window === 'undefined') {
34
32
  return tokenValue;
@@ -1,8 +1,6 @@
1
1
  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
- var name = "@atlaskit/tokens";
5
- var version = "1.45.0";
6
4
  /**
7
5
  * Takes a dot-separated token name and an optional fallback, and returns the CSS custom property for the corresponding token.
8
6
  * This should be used to implement design decisions throughout your application.
@@ -28,7 +26,7 @@ var version = "1.45.0";
28
26
  function token(path, fallback) {
29
27
  var token = tokens[path];
30
28
  if (typeof process !== 'undefined' && process.env.NODE_ENV !== 'production' && !token) {
31
- warnOnce("Unknown token id at path: ".concat(path, " for ").concat(name, "@").concat(version));
29
+ warnOnce("Unknown token id at path: ".concat(path, " in @atlaskit/tokens"));
32
30
  }
33
31
 
34
32
  // if the token is not found - replacing it with variable name without any value, to avoid it being undefined which would result in invalid css
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/tokens",
3
- "version": "1.45.0",
3
+ "version": "1.45.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/"