@elementor/editor-components 4.1.0-manual → 4.2.0-839
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.js
CHANGED
|
@@ -2617,6 +2617,7 @@ async function loadComponentsOverridableProps(componentIds) {
|
|
|
2617
2617
|
}
|
|
2618
2618
|
|
|
2619
2619
|
// src/store/actions/load-components-styles.ts
|
|
2620
|
+
var import_editor_global_classes = require("@elementor/editor-global-classes");
|
|
2620
2621
|
var import_store23 = require("@elementor/store");
|
|
2621
2622
|
function loadComponentsStyles(documents) {
|
|
2622
2623
|
if (!documents.size) {
|
|
@@ -2631,7 +2632,10 @@ function loadComponentsStyles(documents) {
|
|
|
2631
2632
|
}
|
|
2632
2633
|
function addStyles(documents) {
|
|
2633
2634
|
const styles = Object.fromEntries(
|
|
2634
|
-
[...documents.entries()].map(([id, document2]) =>
|
|
2635
|
+
[...documents.entries()].map(([id, document2]) => {
|
|
2636
|
+
(0, import_editor_global_classes.addDocumentClasses)(id);
|
|
2637
|
+
return [id, extractStylesFromDocument(document2)];
|
|
2638
|
+
})
|
|
2635
2639
|
);
|
|
2636
2640
|
(0, import_store23.__dispatch)(slice.actions.addStyles(styles));
|
|
2637
2641
|
}
|