@elementor/editor-components 4.1.0-manual → 4.2.0-840
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
|
@@ -2556,6 +2556,7 @@ async function loadComponentsOverridableProps(componentIds) {
|
|
|
2556
2556
|
}
|
|
2557
2557
|
|
|
2558
2558
|
// src/store/actions/load-components-styles.ts
|
|
2559
|
+
import { addDocumentClasses } from "@elementor/editor-global-classes";
|
|
2559
2560
|
import { __dispatch as dispatch5, __getState as getState7 } from "@elementor/store";
|
|
2560
2561
|
function loadComponentsStyles(documents) {
|
|
2561
2562
|
if (!documents.size) {
|
|
@@ -2570,7 +2571,10 @@ function loadComponentsStyles(documents) {
|
|
|
2570
2571
|
}
|
|
2571
2572
|
function addStyles(documents) {
|
|
2572
2573
|
const styles = Object.fromEntries(
|
|
2573
|
-
[...documents.entries()].map(([id, document2]) =>
|
|
2574
|
+
[...documents.entries()].map(([id, document2]) => {
|
|
2575
|
+
addDocumentClasses(id);
|
|
2576
|
+
return [id, extractStylesFromDocument(document2)];
|
|
2577
|
+
})
|
|
2574
2578
|
);
|
|
2575
2579
|
dispatch5(slice.actions.addStyles(styles));
|
|
2576
2580
|
}
|