@atlaskit/storybook-addon-design-system 0.3.1 → 0.3.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/storybook-addon-design-system
2
2
 
3
+ ## 0.3.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [`d4be43fdc44`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d4be43fdc44) - Set the innerText in our hack correctly - oops!
8
+
3
9
  ## 0.3.1
4
10
 
5
11
  ### Patch Changes
@@ -57,7 +57,7 @@ var stackColumnStyles = {
57
57
  */
58
58
 
59
59
  var hackThemeOverrideOnStyleElement = function hackThemeOverrideOnStyleElement(style, theme) {
60
- return style.innerText.replace("html[data-theme=\"".concat(theme, "\"]"), "html[data-theme=\"".concat(theme, "\"],.ads-theme-override[data-theme=\"").concat(theme, "\"]"));
60
+ style.innerText = style.textContent.replace("html[data-theme=\"".concat(theme, "\"]"), "html[data-theme=\"".concat(theme, "\"],.ads-theme-override[data-theme=\"").concat(theme, "\"]"));
61
61
  };
62
62
 
63
63
  var withDesignTokens = (0, _addons.makeDecorator)({
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/storybook-addon-design-system",
3
- "version": "0.3.1",
3
+ "version": "0.3.2",
4
4
  "sideEffects": false
5
5
  }
@@ -29,7 +29,9 @@ const stackColumnStyles = {
29
29
  * .ads-theme-override, for split and stack views.
30
30
  */
31
31
 
32
- const hackThemeOverrideOnStyleElement = (style, theme) => style.innerText.replace(`html[data-theme="${theme}"]`, `html[data-theme="${theme}"],.ads-theme-override[data-theme="${theme}"]`);
32
+ const hackThemeOverrideOnStyleElement = (style, theme) => {
33
+ style.innerText = style.textContent.replace(`html[data-theme="${theme}"]`, `html[data-theme="${theme}"],.ads-theme-override[data-theme="${theme}"]`);
34
+ };
33
35
 
34
36
  const withDesignTokens = makeDecorator({
35
37
  name: DECORATOR_ID,
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/storybook-addon-design-system",
3
- "version": "0.3.1",
3
+ "version": "0.3.2",
4
4
  "sideEffects": false
5
5
  }
@@ -36,7 +36,7 @@ var stackColumnStyles = {
36
36
  */
37
37
 
38
38
  var hackThemeOverrideOnStyleElement = function hackThemeOverrideOnStyleElement(style, theme) {
39
- return style.innerText.replace("html[data-theme=\"".concat(theme, "\"]"), "html[data-theme=\"".concat(theme, "\"],.ads-theme-override[data-theme=\"").concat(theme, "\"]"));
39
+ style.innerText = style.textContent.replace("html[data-theme=\"".concat(theme, "\"]"), "html[data-theme=\"".concat(theme, "\"],.ads-theme-override[data-theme=\"").concat(theme, "\"]"));
40
40
  };
41
41
 
42
42
  var withDesignTokens = makeDecorator({
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/storybook-addon-design-system",
3
- "version": "0.3.1",
3
+ "version": "0.3.2",
4
4
  "sideEffects": false
5
5
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/storybook-addon-design-system",
3
- "version": "0.3.1",
3
+ "version": "0.3.2",
4
4
  "description": "Design token storybook addon",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "publishConfig": {