@pathscale/ui 1.1.27 → 1.1.28

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.
@@ -67,6 +67,7 @@ const ThemeColorPicker_ThemeColorPicker = (props)=>{
67
67
  ];
68
68
  const handleGrayscale = (theme)=>{
69
69
  store().setThemeColor(null);
70
+ (0, __WEBPACK_EXTERNAL_MODULE__hueShift_js_ca4235e5__.resetHueShift)();
70
71
  local.onColorChange?.(null, 0);
71
72
  local.onThemeSwitch?.(theme);
72
73
  };
@@ -165,10 +165,10 @@ function createHueShiftStore(storagePrefix) {
165
165
  });
166
166
  if ("undefined" != typeof window) {
167
167
  const observer = new MutationObserver((mutations)=>{
168
- for (const mutation of mutations)if ("attributes" === mutation.type && "data-theme" === mutation.attributeName) {
168
+ for (const mutation of mutations)if ("attributes" === mutation.type && "data-theme" === mutation.attributeName) requestAnimationFrame(()=>{
169
169
  const color = themeColor();
170
- if (null !== color) requestAnimationFrame(()=>applyThemeColor(color));
171
- }
170
+ if (null !== color) applyThemeColor(color);
171
+ });
172
172
  });
173
173
  observer.observe(document.documentElement, {
174
174
  attributes: true,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pathscale/ui",
3
- "version": "1.1.27",
3
+ "version": "1.1.28",
4
4
  "author": "pathscale",
5
5
  "repository": {
6
6
  "type": "git",