storybook-addon-pseudo-states 2.1.2--canary.d86bb22.0 → 2.1.2--canary.87.abba7bf.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 CHANGED
@@ -246,6 +246,9 @@ var rewriteStyleSheets = (shadowRoot) => {
246
246
  };
247
247
  channel.on(import_core_events.STORY_CHANGED, () => shadowHosts.clear());
248
248
  channel.on(import_core_events.STORY_RENDERED, () => rewriteStyleSheets());
249
+ channel.on(import_core_events.GLOBALS_UPDATED, () => rewriteStyleSheets());
250
+ channel.on(import_core_events.FORCE_RE_RENDER, () => rewriteStyleSheets());
251
+ channel.on(import_core_events.FORCE_REMOUNT, () => rewriteStyleSheets());
249
252
  channel.on(import_core_events.DOCS_RENDERED, () => rewriteStyleSheets());
250
253
  if (Element.prototype.attachShadow) {
251
254
  Element.prototype._attachShadow = Element.prototype.attachShadow;
package/dist/preview.mjs CHANGED
@@ -7,6 +7,9 @@ import {
7
7
  // src/preview/withPseudoState.ts
8
8
  import {
9
9
  DOCS_RENDERED,
10
+ FORCE_REMOUNT,
11
+ FORCE_RE_RENDER,
12
+ GLOBALS_UPDATED,
10
13
  STORY_CHANGED,
11
14
  STORY_RENDERED,
12
15
  UPDATE_GLOBALS
@@ -214,6 +217,9 @@ var rewriteStyleSheets = (shadowRoot) => {
214
217
  };
215
218
  channel.on(STORY_CHANGED, () => shadowHosts.clear());
216
219
  channel.on(STORY_RENDERED, () => rewriteStyleSheets());
220
+ channel.on(GLOBALS_UPDATED, () => rewriteStyleSheets());
221
+ channel.on(FORCE_RE_RENDER, () => rewriteStyleSheets());
222
+ channel.on(FORCE_REMOUNT, () => rewriteStyleSheets());
217
223
  channel.on(DOCS_RENDERED, () => rewriteStyleSheets());
218
224
  if (Element.prototype.attachShadow) {
219
225
  Element.prototype._attachShadow = Element.prototype.attachShadow;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "storybook-addon-pseudo-states",
3
- "version": "2.1.2--canary.d86bb22.0",
3
+ "version": "2.1.2--canary.87.abba7bf.0",
4
4
  "description": "CSS pseudo states for Storybook",
5
5
  "keywords": [
6
6
  "storybook-addons",