@atlaskit/tokens 0.10.9 → 0.10.10

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
+ ## 0.10.10
4
+
5
+ ### Patch Changes
6
+
7
+ - [`dc05530d2a0`](https://bitbucket.org/atlassian/atlassian-frontend/commits/dc05530d2a0) - Internal refactor to the way the documentation is built.
8
+
3
9
  ## 0.10.9
4
10
 
5
11
  ### Patch Changes
@@ -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.10.9";
17
+ var version = "0.10.10";
18
18
 
19
19
  function token(path, fallback) {
20
20
  var token = _tokenNames.default[path];
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/tokens",
3
- "version": "0.10.9",
3
+ "version": "0.10.10",
4
4
  "sideEffects": [
5
5
  "**/*.css"
6
6
  ]
@@ -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.10.9";
5
+ const version = "0.10.10";
6
6
 
7
7
  function token(path, fallback) {
8
8
  let token = tokens[path];
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/tokens",
3
- "version": "0.10.9",
3
+ "version": "0.10.10",
4
4
  "sideEffects": [
5
5
  "**/*.css"
6
6
  ]
@@ -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.10.9";
5
+ var version = "0.10.10";
6
6
 
7
7
  function token(path, fallback) {
8
8
  var token = tokens[path];
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/tokens",
3
- "version": "0.10.9",
3
+ "version": "0.10.10",
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": "0.10.9",
3
+ "version": "0.10.10",
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",
package/report.api.md ADDED
@@ -0,0 +1,36 @@
1
+ ## API Report File for "@atlaskit/tokens"
2
+
3
+ > Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
4
+
5
+ ```ts
6
+ // @public (undocumented)
7
+ export type CSSToken = CSSTokenMap[keyof CSSTokenMap];
8
+
9
+ // @public (undocumented)
10
+ export const setGlobalTheme: (theme: Themes) => void;
11
+
12
+ // @public
13
+ export class ThemeMutationObserver {
14
+ constructor(callback: (theme: Themes | null) => unknown);
15
+ // (undocumented)
16
+ disconnect(): void;
17
+ // (undocumented)
18
+ observe(): void;
19
+ // (undocumented)
20
+ observer: MutationObserver | null;
21
+ }
22
+
23
+ // @public (undocumented)
24
+ export type Themes = typeof THEMES[number];
25
+
26
+ // @public (undocumented)
27
+ export function token<T extends keyof Tokens>(
28
+ path: T,
29
+ fallback?: string,
30
+ ): CSSTokenMap[T];
31
+
32
+ // @public
33
+ export const useThemeObserver: () => Themes | null;
34
+
35
+ // (No @packageDocumentation comment for this package)
36
+ ```