@elementor/editor-components 4.1.0-728 → 4.1.0-730
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.d.mts +4 -2
- package/dist/index.d.ts +4 -2
- package/dist/index.js +10 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +10 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +23 -23
- package/src/components/load-template-components.tsx +11 -2
- package/src/index.ts +1 -0
package/dist/index.mjs
CHANGED
|
@@ -2300,8 +2300,9 @@ function InstanceEditingPanel() {
|
|
|
2300
2300
|
}
|
|
2301
2301
|
|
|
2302
2302
|
// src/components/load-template-components.tsx
|
|
2303
|
+
import * as React23 from "react";
|
|
2303
2304
|
import { useEffect } from "react";
|
|
2304
|
-
import { useLoadedTemplates } from "@elementor/editor-templates";
|
|
2305
|
+
import { isHandlingTemplateStyles, useLoadedTemplates } from "@elementor/editor-templates";
|
|
2305
2306
|
|
|
2306
2307
|
// src/store/actions/load-components-assets.ts
|
|
2307
2308
|
import { isDocumentDirty, setDocumentModifiedStatus } from "@elementor/editor-documents";
|
|
@@ -2422,12 +2423,18 @@ function updateDocumentState(documents) {
|
|
|
2422
2423
|
|
|
2423
2424
|
// src/components/load-template-components.tsx
|
|
2424
2425
|
var LoadTemplateComponents = () => {
|
|
2426
|
+
if (isHandlingTemplateStyles()) {
|
|
2427
|
+
return /* @__PURE__ */ React23.createElement(LoadTemplateComponentsInternal, null);
|
|
2428
|
+
}
|
|
2429
|
+
return null;
|
|
2430
|
+
};
|
|
2431
|
+
function LoadTemplateComponentsInternal() {
|
|
2425
2432
|
const templates = useLoadedTemplates();
|
|
2426
2433
|
useEffect(() => {
|
|
2427
2434
|
loadComponentsAssets(templates.flatMap((elements) => elements ?? []));
|
|
2428
2435
|
}, [templates]);
|
|
2429
2436
|
return null;
|
|
2430
|
-
}
|
|
2437
|
+
}
|
|
2431
2438
|
|
|
2432
2439
|
// src/create-component-type.ts
|
|
2433
2440
|
import {
|
|
@@ -3148,6 +3155,7 @@ export {
|
|
|
3148
3155
|
componentsSelectors,
|
|
3149
3156
|
createComponentsAction,
|
|
3150
3157
|
filterValidOverridableProps,
|
|
3158
|
+
getComponentDocumentData,
|
|
3151
3159
|
getContainerByOriginId,
|
|
3152
3160
|
getOverridableProp,
|
|
3153
3161
|
getPropTypeForComponentOverride,
|