@atlaskit/tokens 1.10.2 → 1.11.0

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/tokens
2
2
 
3
+ ## 1.11.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`c96e003db64`](https://bitbucket.org/atlassian/atlassian-frontend/commits/c96e003db64) - Following on from 1.7.0, shape tokens are no longer being enabled behind a feature flag. Only space tokens will be enabled by default when the feature flag is active.
8
+
3
9
  ## 1.10.2
4
10
 
5
11
  ### Patch Changes
@@ -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.10.2";
11
+ var version = "1.11.0";
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.10.2";
12
+ var version = "1.11.0";
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.
@@ -61,9 +61,6 @@ var getThemePreferences = function getThemePreferences(themeState) {
61
61
 
62
62
  // Load shape and spacing by default, currently behind a feature flag
63
63
  if ((0, _platformFeatureFlags.getBooleanFF)('platform.design-system-team.space-and-shape-tokens_q5me6')) {
64
- if (!themePreferences.includes('shape')) {
65
- themePreferences.push('shape');
66
- }
67
64
  if (!themePreferences.includes('spacing')) {
68
65
  themePreferences.push('spacing');
69
66
  }
@@ -300,12 +297,12 @@ var getThemeHtmlAttrs = function getThemeHtmlAttrs() {
300
297
  typography: typography
301
298
  };
302
299
 
303
- // Load shape and spacing by default, currently behind a feature flag
300
+ // Load spacing by default, currently behind a feature flag
304
301
  if ((0, _platformFeatureFlags.getBooleanFF)('platform.design-system-team.space-and-shape-tokens_q5me6')) {
305
302
  themePreferences = {
306
303
  dark: dark,
307
304
  light: light,
308
- shape: 'shape',
305
+ shape: shape,
309
306
  spacing: 'spacing',
310
307
  typography: typography
311
308
  };
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/tokens",
3
- "version": "1.10.2",
3
+ "version": "1.11.0",
4
4
  "sideEffects": [
5
5
  "**/*.css"
6
6
  ]
@@ -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.10.2";
4
+ const version = "1.11.0";
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.10.2";
5
+ const version = "1.11.0";
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.
@@ -52,9 +52,6 @@ const getThemePreferences = themeState => {
52
52
 
53
53
  // Load shape and spacing by default, currently behind a feature flag
54
54
  if (getBooleanFF('platform.design-system-team.space-and-shape-tokens_q5me6')) {
55
- if (!themePreferences.includes('shape')) {
56
- themePreferences.push('shape');
57
- }
58
55
  if (!themePreferences.includes('spacing')) {
59
56
  themePreferences.push('spacing');
60
57
  }
@@ -199,12 +196,12 @@ export const getThemeHtmlAttrs = ({
199
196
  typography
200
197
  };
201
198
 
202
- // Load shape and spacing by default, currently behind a feature flag
199
+ // Load spacing by default, currently behind a feature flag
203
200
  if (getBooleanFF('platform.design-system-team.space-and-shape-tokens_q5me6')) {
204
201
  themePreferences = {
205
202
  dark,
206
203
  light,
207
- shape: 'shape',
204
+ shape,
208
205
  spacing: 'spacing',
209
206
  typography
210
207
  };
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/tokens",
3
- "version": "1.10.2",
3
+ "version": "1.11.0",
4
4
  "sideEffects": [
5
5
  "**/*.css"
6
6
  ]
@@ -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.10.2";
4
+ var version = "1.11.0";
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.10.2";
5
+ var version = "1.11.0";
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.
@@ -55,9 +55,6 @@ var getThemePreferences = function getThemePreferences(themeState) {
55
55
 
56
56
  // Load shape and spacing by default, currently behind a feature flag
57
57
  if (getBooleanFF('platform.design-system-team.space-and-shape-tokens_q5me6')) {
58
- if (!themePreferences.includes('shape')) {
59
- themePreferences.push('shape');
60
- }
61
58
  if (!themePreferences.includes('spacing')) {
62
59
  themePreferences.push('spacing');
63
60
  }
@@ -293,12 +290,12 @@ export var getThemeHtmlAttrs = function getThemeHtmlAttrs() {
293
290
  typography: typography
294
291
  };
295
292
 
296
- // Load shape and spacing by default, currently behind a feature flag
293
+ // Load spacing by default, currently behind a feature flag
297
294
  if (getBooleanFF('platform.design-system-team.space-and-shape-tokens_q5me6')) {
298
295
  themePreferences = {
299
296
  dark: dark,
300
297
  light: light,
301
- shape: 'shape',
298
+ shape: shape,
302
299
  spacing: 'spacing',
303
300
  typography: typography
304
301
  };
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/tokens",
3
- "version": "1.10.2",
3
+ "version": "1.11.0",
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.10.2",
3
+ "version": "1.11.0",
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",