@atlaskit/storybook-addon-design-system 1.2.0 → 1.2.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 +14 -0
- package/dist/cjs/decorator.js +5 -5
- package/dist/cjs/tool.js +1 -1
- package/dist/es2019/decorator.js +5 -5
- package/dist/esm/decorator.js +5 -5
- package/package.json +5 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @atlaskit/storybook-addon-design-system
|
|
2
2
|
|
|
3
|
+
## 1.2.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#165531](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/165531)
|
|
8
|
+
[`57f451bda8919`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/57f451bda8919) -
|
|
9
|
+
Adds side-effect config to support Compiled css extraction in third-party apps
|
|
10
|
+
|
|
11
|
+
## 1.2.1
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- Updated dependencies
|
|
16
|
+
|
|
3
17
|
## 1.2.0
|
|
4
18
|
|
|
5
19
|
### Minor Changes
|
package/dist/cjs/decorator.js
CHANGED
|
@@ -13,7 +13,7 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
13
13
|
var _previewApi = require("@storybook/preview-api");
|
|
14
14
|
var _tokens = require("@atlaskit/tokens");
|
|
15
15
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
16
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u &&
|
|
16
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
17
17
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
18
18
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
19
19
|
var splitColumnStyles = {
|
|
@@ -23,8 +23,8 @@ var splitColumnStyles = {
|
|
|
23
23
|
height: '100vh',
|
|
24
24
|
overflow: 'auto',
|
|
25
25
|
padding: '10px',
|
|
26
|
-
background: (
|
|
27
|
-
color: (
|
|
26
|
+
background: "var(--ds-surface, #FFFFFF)",
|
|
27
|
+
color: "var(--ds-text, #172B4D)"
|
|
28
28
|
};
|
|
29
29
|
var stackColumnStyles = {
|
|
30
30
|
position: 'absolute',
|
|
@@ -33,8 +33,8 @@ var stackColumnStyles = {
|
|
|
33
33
|
height: '50%',
|
|
34
34
|
overflow: 'auto',
|
|
35
35
|
padding: '10px',
|
|
36
|
-
background: (
|
|
37
|
-
color: (
|
|
36
|
+
background: "var(--ds-surface, #FFFFFF)",
|
|
37
|
+
color: "var(--ds-text, #172B4D)"
|
|
38
38
|
};
|
|
39
39
|
var withDesignTokens = function withDesignTokens(StoryFn, context) {
|
|
40
40
|
var theme = context.globals.adsTheme || 'auto';
|
package/dist/cjs/tool.js
CHANGED
|
@@ -13,7 +13,7 @@ var _icons = require("@storybook/icons");
|
|
|
13
13
|
var _managerApi = require("@storybook/manager-api");
|
|
14
14
|
var _constants = require("./constants");
|
|
15
15
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
16
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u &&
|
|
16
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
17
17
|
var themeOptions = [{
|
|
18
18
|
id: 'auto',
|
|
19
19
|
title: 'Same as system',
|
package/dist/es2019/decorator.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { Fragment } from 'react';
|
|
2
2
|
import { useEffect } from '@storybook/preview-api';
|
|
3
|
-
import { setGlobalTheme
|
|
3
|
+
import { setGlobalTheme } from '@atlaskit/tokens';
|
|
4
4
|
const splitColumnStyles = {
|
|
5
5
|
position: 'absolute',
|
|
6
6
|
boxSizing: 'border-box',
|
|
@@ -8,8 +8,8 @@ const splitColumnStyles = {
|
|
|
8
8
|
height: '100vh',
|
|
9
9
|
overflow: 'auto',
|
|
10
10
|
padding: '10px',
|
|
11
|
-
background:
|
|
12
|
-
color:
|
|
11
|
+
background: "var(--ds-surface, #FFFFFF)",
|
|
12
|
+
color: "var(--ds-text, #172B4D)"
|
|
13
13
|
};
|
|
14
14
|
const stackColumnStyles = {
|
|
15
15
|
position: 'absolute',
|
|
@@ -18,8 +18,8 @@ const stackColumnStyles = {
|
|
|
18
18
|
height: '50%',
|
|
19
19
|
overflow: 'auto',
|
|
20
20
|
padding: '10px',
|
|
21
|
-
background:
|
|
22
|
-
color:
|
|
21
|
+
background: "var(--ds-surface, #FFFFFF)",
|
|
22
|
+
color: "var(--ds-text, #172B4D)"
|
|
23
23
|
};
|
|
24
24
|
const withDesignTokens = (StoryFn, context) => {
|
|
25
25
|
const theme = context.globals.adsTheme || 'auto';
|
package/dist/esm/decorator.js
CHANGED
|
@@ -5,7 +5,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
5
5
|
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
6
6
|
import React, { Fragment } from 'react';
|
|
7
7
|
import { useEffect } from '@storybook/preview-api';
|
|
8
|
-
import { setGlobalTheme
|
|
8
|
+
import { setGlobalTheme } from '@atlaskit/tokens';
|
|
9
9
|
var splitColumnStyles = {
|
|
10
10
|
position: 'absolute',
|
|
11
11
|
boxSizing: 'border-box',
|
|
@@ -13,8 +13,8 @@ var splitColumnStyles = {
|
|
|
13
13
|
height: '100vh',
|
|
14
14
|
overflow: 'auto',
|
|
15
15
|
padding: '10px',
|
|
16
|
-
background:
|
|
17
|
-
color:
|
|
16
|
+
background: "var(--ds-surface, #FFFFFF)",
|
|
17
|
+
color: "var(--ds-text, #172B4D)"
|
|
18
18
|
};
|
|
19
19
|
var stackColumnStyles = {
|
|
20
20
|
position: 'absolute',
|
|
@@ -23,8 +23,8 @@ var stackColumnStyles = {
|
|
|
23
23
|
height: '50%',
|
|
24
24
|
overflow: 'auto',
|
|
25
25
|
padding: '10px',
|
|
26
|
-
background:
|
|
27
|
-
color:
|
|
26
|
+
background: "var(--ds-surface, #FFFFFF)",
|
|
27
|
+
color: "var(--ds-text, #172B4D)"
|
|
28
28
|
};
|
|
29
29
|
var withDesignTokens = function withDesignTokens(StoryFn, context) {
|
|
30
30
|
var theme = context.globals.adsTheme || 'auto';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/storybook-addon-design-system",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.2",
|
|
4
4
|
"description": "Design token storybook addon",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"publishConfig": {
|
|
@@ -8,7 +8,6 @@
|
|
|
8
8
|
},
|
|
9
9
|
"atlassian": {
|
|
10
10
|
"team": "Design System Team",
|
|
11
|
-
"releaseModel": "continuous",
|
|
12
11
|
"runReact18": true,
|
|
13
12
|
"website": {
|
|
14
13
|
"name": "Storybook addon",
|
|
@@ -26,13 +25,15 @@
|
|
|
26
25
|
]
|
|
27
26
|
}
|
|
28
27
|
},
|
|
29
|
-
"sideEffects":
|
|
28
|
+
"sideEffects": [
|
|
29
|
+
"**/*.compiled.css"
|
|
30
|
+
],
|
|
30
31
|
"atlaskit:src": "src/index.tsx",
|
|
31
32
|
"af:exports": {
|
|
32
33
|
".": "./src/index.tsx"
|
|
33
34
|
},
|
|
34
35
|
"dependencies": {
|
|
35
|
-
"@atlaskit/tokens": "^
|
|
36
|
+
"@atlaskit/tokens": "^2.2.0",
|
|
36
37
|
"@babel/runtime": "^7.0.0",
|
|
37
38
|
"@storybook/components": "^8.1.0",
|
|
38
39
|
"@storybook/icons": "^1.2.9",
|