@atlaskit/primitives 0.15.0 → 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,17 @@
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
+
9
+ ## 0.15.1
10
+
11
+ ### Patch Changes
12
+
13
+ - [`7c1c449eb96`](https://bitbucket.org/atlassian/atlassian-frontend/commits/7c1c449eb96) - Updated space token descriptions.
14
+
3
15
  ## 0.15.0
4
16
 
5
17
  ### Minor Changes
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/primitives",
3
- "version": "0.15.0",
3
+ "version": "0.15.2",
4
4
  "sideEffects": false
5
5
  }
@@ -32,10 +32,10 @@ exports.dimensionMap = dimensionMap;
32
32
 
33
33
  /**
34
34
  * THIS SECTION WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
35
- * @codegen <<SignedSource::0233b43df51e5fcf058349b5bff46ee3>>
35
+ * @codegen <<SignedSource::429dca3ce1fa6d723cb98e2468802267>>
36
36
  * @codegenId spacing
37
37
  * @codegenCommand yarn workspace @atlaskit/primitives codegen-styles
38
- * @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-spacing.tsx <<SignedSource::16655ab13ccb56521faa354636af2c8e>>
38
+ * @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-spacing.tsx <<SignedSource::68f6bde7e6b186964ee53458284bbb90>>
39
39
  */
40
40
  var spaceMap = {
41
41
  'space.0': "var(--ds-space-0, 0px)",
@@ -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.0",
3
+ "version": "0.15.2",
4
4
  "sideEffects": false
5
5
  }
@@ -22,10 +22,10 @@ export const dimensionMap = {
22
22
  */
23
23
  /**
24
24
  * THIS SECTION WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
25
- * @codegen <<SignedSource::0233b43df51e5fcf058349b5bff46ee3>>
25
+ * @codegen <<SignedSource::429dca3ce1fa6d723cb98e2468802267>>
26
26
  * @codegenId spacing
27
27
  * @codegenCommand yarn workspace @atlaskit/primitives codegen-styles
28
- * @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-spacing.tsx <<SignedSource::16655ab13ccb56521faa354636af2c8e>>
28
+ * @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-spacing.tsx <<SignedSource::68f6bde7e6b186964ee53458284bbb90>>
29
29
  */
30
30
  export const spaceMap = {
31
31
  'space.0': "var(--ds-space-0, 0px)",
@@ -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.0",
3
+ "version": "0.15.2",
4
4
  "sideEffects": false
5
5
  }
@@ -23,10 +23,10 @@ export var dimensionMap = {
23
23
  */
24
24
  /**
25
25
  * THIS SECTION WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
26
- * @codegen <<SignedSource::0233b43df51e5fcf058349b5bff46ee3>>
26
+ * @codegen <<SignedSource::429dca3ce1fa6d723cb98e2468802267>>
27
27
  * @codegenId spacing
28
28
  * @codegenCommand yarn workspace @atlaskit/primitives codegen-styles
29
- * @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-spacing.tsx <<SignedSource::16655ab13ccb56521faa354636af2c8e>>
29
+ * @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-spacing.tsx <<SignedSource::68f6bde7e6b186964ee53458284bbb90>>
30
30
  */
31
31
  export var spaceMap = {
32
32
  'space.0': "var(--ds-space-0, 0px)",
@@ -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;
@@ -23,10 +23,10 @@ export type Dimension = keyof typeof dimensionMap;
23
23
  */
24
24
  /**
25
25
  * THIS SECTION WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
26
- * @codegen <<SignedSource::0233b43df51e5fcf058349b5bff46ee3>>
26
+ * @codegen <<SignedSource::429dca3ce1fa6d723cb98e2468802267>>
27
27
  * @codegenId spacing
28
28
  * @codegenCommand yarn workspace @atlaskit/primitives codegen-styles
29
- * @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-spacing.tsx <<SignedSource::16655ab13ccb56521faa354636af2c8e>>
29
+ * @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-spacing.tsx <<SignedSource::68f6bde7e6b186964ee53458284bbb90>>
30
30
  */
31
31
  export declare const spaceMap: {
32
32
  'space.0': "var(--ds-space-0)";
@@ -23,10 +23,10 @@ export type Dimension = keyof typeof dimensionMap;
23
23
  */
24
24
  /**
25
25
  * THIS SECTION WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
26
- * @codegen <<SignedSource::0233b43df51e5fcf058349b5bff46ee3>>
26
+ * @codegen <<SignedSource::429dca3ce1fa6d723cb98e2468802267>>
27
27
  * @codegenId spacing
28
28
  * @codegenCommand yarn workspace @atlaskit/primitives codegen-styles
29
- * @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-spacing.tsx <<SignedSource::16655ab13ccb56521faa354636af2c8e>>
29
+ * @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-spacing.tsx <<SignedSource::68f6bde7e6b186964ee53458284bbb90>>
30
30
  */
31
31
  export declare const spaceMap: {
32
32
  'space.0': "var(--ds-space-0)";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/primitives",
3
- "version": "0.15.0",
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",