@elementor/editor-variables 4.1.0-823 → 4.1.0-824

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/index.mjs CHANGED
@@ -8,6 +8,7 @@ import { controlActionsMenu } from "@elementor/menus";
8
8
 
9
9
  // src/components/global-styles-import-listener.tsx
10
10
  import { useEffect } from "react";
11
+ import { GLOBAL_STYLES_IMPORTED_EVENT } from "@elementor/editor-canvas";
11
12
 
12
13
  // src/service.ts
13
14
  import { __ } from "@wordpress/i18n";
@@ -433,12 +434,9 @@ function GlobalStylesImportListener() {
433
434
  }
434
435
  service.load();
435
436
  };
436
- window.addEventListener("elementor/global-styles/imported", handleGlobalStylesImported);
437
+ window.addEventListener(GLOBAL_STYLES_IMPORTED_EVENT, handleGlobalStylesImported);
437
438
  return () => {
438
- window.removeEventListener(
439
- "elementor/global-styles/imported",
440
- handleGlobalStylesImported
441
- );
439
+ window.removeEventListener(GLOBAL_STYLES_IMPORTED_EVENT, handleGlobalStylesImported);
442
440
  };
443
441
  }, []);
444
442
  return null;