storybook-addon-pseudo-states 2.1.0 → 2.1.1--canary.bb79e5f.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/dist/preview.js +1 -1
- package/dist/preview.mjs +1 -1
- package/package.json +1 -1
package/dist/preview.js
CHANGED
|
@@ -220,7 +220,7 @@ var withPseudoState = (StoryFn, { viewMode, parameters, id, globals: globalsArgs
|
|
|
220
220
|
const timeout = setTimeout(() => {
|
|
221
221
|
applyParameter(rootElement, globals2 || pseudoConfig(parameter));
|
|
222
222
|
shadowHosts.forEach(updateShadowHost);
|
|
223
|
-
}, 0);
|
|
223
|
+
}, parameters.pseudoDelay || 0);
|
|
224
224
|
return () => clearTimeout(timeout);
|
|
225
225
|
}, [rootElement, globals2, parameter]);
|
|
226
226
|
return StoryFn();
|
package/dist/preview.mjs
CHANGED
|
@@ -188,7 +188,7 @@ var withPseudoState = (StoryFn, { viewMode, parameters, id, globals: globalsArgs
|
|
|
188
188
|
const timeout = setTimeout(() => {
|
|
189
189
|
applyParameter(rootElement, globals2 || pseudoConfig(parameter));
|
|
190
190
|
shadowHosts.forEach(updateShadowHost);
|
|
191
|
-
}, 0);
|
|
191
|
+
}, parameters.pseudoDelay || 0);
|
|
192
192
|
return () => clearTimeout(timeout);
|
|
193
193
|
}, [rootElement, globals2, parameter]);
|
|
194
194
|
return StoryFn();
|