storybook-addon-pseudo-states 1.2.0 → 1.3.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
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
|
|
12
12
|
#### ⚠️ Pushed to `main`
|
|
13
13
|
|
|
14
|
+
- Fix missing parameter ([@ghengeveld](https://github.com/ghengeveld))
|
|
14
15
|
- Disable snapshotting for CustomElements stories ([@ghengeveld](https://github.com/ghengeveld))
|
|
15
16
|
- 1.1.0 ([@ghengeveld](https://github.com/ghengeveld))
|
|
16
17
|
- Simplify ([@ghengeveld](https://github.com/ghengeveld))
|
|
@@ -114,7 +114,8 @@ var withPseudoState = function withPseudoState(StoryFn, _ref5) {
|
|
|
114
114
|
|
|
115
115
|
(0, _addons.useEffect)(function () {
|
|
116
116
|
var timeout = setTimeout(function () {
|
|
117
|
-
|
|
117
|
+
var element = document.getElementById(viewMode === "docs" ? "story--".concat(id) : "root");
|
|
118
|
+
applyParameter(element, parameter);
|
|
118
119
|
shadowHosts.forEach(updateShadowHost);
|
|
119
120
|
}, 0);
|
|
120
121
|
return function () {
|
|
@@ -103,7 +103,8 @@ export var withPseudoState = function withPseudoState(StoryFn, _ref5) {
|
|
|
103
103
|
|
|
104
104
|
useEffect(function () {
|
|
105
105
|
var timeout = setTimeout(function () {
|
|
106
|
-
|
|
106
|
+
var element = document.getElementById(viewMode === "docs" ? "story--".concat(id) : "root");
|
|
107
|
+
applyParameter(element, parameter);
|
|
107
108
|
shadowHosts.forEach(updateShadowHost);
|
|
108
109
|
}, 0);
|
|
109
110
|
return function () {
|