@elementor/editor-components 3.35.0-488 → 3.35.0-489
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
|
@@ -2401,7 +2401,7 @@ function loadComponentsOverridableProps(componentIds) {
|
|
|
2401
2401
|
if (!componentIds.length) {
|
|
2402
2402
|
return;
|
|
2403
2403
|
}
|
|
2404
|
-
componentIds.
|
|
2404
|
+
return Promise.all(componentIds.map(loadComponentOverrides));
|
|
2405
2405
|
}
|
|
2406
2406
|
async function loadComponentOverrides(componentId) {
|
|
2407
2407
|
const isOverridablePropsLoaded = selectIsOverridablePropsLoaded((0, import_store37.__getState)(), componentId);
|
|
@@ -2455,11 +2455,9 @@ function extractStylesFromElement(element) {
|
|
|
2455
2455
|
// src/store/actions/load-components-assets.ts
|
|
2456
2456
|
async function loadComponentsAssets(elements) {
|
|
2457
2457
|
const documents = await getComponentDocuments(elements);
|
|
2458
|
-
|
|
2459
|
-
|
|
2460
|
-
|
|
2461
|
-
loadComponentsStyles(documents)
|
|
2462
|
-
]);
|
|
2458
|
+
updateDocumentState(documents);
|
|
2459
|
+
loadComponentsStyles(documents);
|
|
2460
|
+
await loadComponentsOverridableProps([...documents.keys()]);
|
|
2463
2461
|
}
|
|
2464
2462
|
function updateDocumentState(documents) {
|
|
2465
2463
|
const isDrafted = [...documents.values()].some(import_editor_documents9.isDocumentDirty);
|