@atlaskit/primitives 0.15.1 → 0.15.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,11 @@
1
1
  # @atlaskit/primitives
2
2
 
3
+ ## 0.15.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [`ab4938b0c32`](https://bitbucket.org/atlassian/atlassian-frontend/commits/ab4938b0c32) - Remove runtime dev warning for invalid token aliases.
8
+
3
9
  ## 0.15.1
4
10
 
5
11
  ### Patch Changes
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/primitives",
3
- "version": "0.15.1",
3
+ "version": "0.15.2",
4
4
  "sideEffects": false
5
5
  }
@@ -10,7 +10,6 @@ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/de
10
10
  var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
11
11
  var _typeof2 = _interopRequireDefault(require("@babel/runtime/helpers/typeof"));
12
12
  var _react = require("@emotion/react");
13
- var _warnOnce = _interopRequireDefault(require("@atlaskit/ds-lib/warn-once"));
14
13
  var _mediaHelper = require("../responsive/media-helper");
15
14
  var _styleMaps = require("./style-maps.partial");
16
15
  /* eslint-disable @atlaskit/design-system/ensure-design-token-usage */
@@ -127,10 +126,6 @@ var transformStyles = function transformStyles(styleObj) {
127
126
  return;
128
127
  }
129
128
  var tokenValue = tokensMap[key][value];
130
- if (!tokenValue && (typeof process === "undefined" ? "undefined" : (0, _typeof2.default)(process)) && process.env.NODE_ENV === 'development') {
131
- var message = "Invalid token alias: ".concat(key, ": ").concat(value);
132
- (0, _warnOnce.default)(message);
133
- }
134
129
  styleObj[key] = tokenValue !== null && tokenValue !== void 0 ? tokenValue : value;
135
130
  });
136
131
  return styleObj;
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/primitives",
3
- "version": "0.15.1",
3
+ "version": "0.15.2",
4
4
  "sideEffects": false
5
5
  }
@@ -1,6 +1,5 @@
1
1
  /* eslint-disable @atlaskit/design-system/ensure-design-token-usage */
2
2
  import { css as cssEmotion } from '@emotion/react';
3
- import warnOnce from '@atlaskit/ds-lib/warn-once';
4
3
  import { media } from '../responsive/media-helper';
5
4
  import { backgroundColorMap, borderColorMap, borderRadiusMap, borderWidthMap, dimensionMap, layerMap, shadowMap, spaceMap, textColorMap } from './style-maps.partial';
6
5
  const tokensMap = {
@@ -108,10 +107,6 @@ const transformStyles = styleObj => {
108
107
  return;
109
108
  }
110
109
  const tokenValue = tokensMap[key][value];
111
- if (!tokenValue && typeof process && process.env.NODE_ENV === 'development') {
112
- const message = `Invalid token alias: ${key}: ${value}`;
113
- warnOnce(message);
114
- }
115
110
  styleObj[key] = tokenValue !== null && tokenValue !== void 0 ? tokenValue : value;
116
111
  });
117
112
  return styleObj;
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/primitives",
3
- "version": "0.15.1",
3
+ "version": "0.15.2",
4
4
  "sideEffects": false
5
5
  }
@@ -3,7 +3,6 @@ import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
3
3
  import _typeof from "@babel/runtime/helpers/typeof";
4
4
  /* eslint-disable @atlaskit/design-system/ensure-design-token-usage */
5
5
  import { css as cssEmotion } from '@emotion/react';
6
- import warnOnce from '@atlaskit/ds-lib/warn-once';
7
6
  import { media } from '../responsive/media-helper';
8
7
  import { backgroundColorMap, borderColorMap, borderRadiusMap, borderWidthMap, dimensionMap, layerMap, shadowMap, spaceMap, textColorMap } from './style-maps.partial';
9
8
  var tokensMap = {
@@ -118,10 +117,6 @@ var transformStyles = function transformStyles(styleObj) {
118
117
  return;
119
118
  }
120
119
  var tokenValue = tokensMap[key][value];
121
- if (!tokenValue && (typeof process === "undefined" ? "undefined" : _typeof(process)) && process.env.NODE_ENV === 'development') {
122
- var message = "Invalid token alias: ".concat(key, ": ").concat(value);
123
- warnOnce(message);
124
- }
125
120
  styleObj[key] = tokenValue !== null && tokenValue !== void 0 ? tokenValue : value;
126
121
  });
127
122
  return styleObj;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/primitives",
3
- "version": "0.15.1",
3
+ "version": "0.15.2",
4
4
  "description": "Primitives are token-backed low-level building blocks.",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -102,7 +102,6 @@
102
102
  "./responsive": "./src/responsive/index.tsx"
103
103
  },
104
104
  "dependencies": {
105
- "@atlaskit/ds-lib": "^2.2.0",
106
105
  "@atlaskit/tokens": "^1.10.0",
107
106
  "@babel/runtime": "^7.0.0",
108
107
  "@emotion/react": "^11.7.1",