@elementor/editor-components 4.1.0-729 → 4.1.0-731

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
@@ -2366,6 +2366,7 @@ function InstanceEditingPanel() {
2366
2366
  }
2367
2367
 
2368
2368
  // src/components/load-template-components.tsx
2369
+ var React23 = __toESM(require("react"));
2369
2370
  var import_react8 = require("react");
2370
2371
  var import_editor_templates = require("@elementor/editor-templates");
2371
2372
 
@@ -2488,12 +2489,18 @@ function updateDocumentState(documents) {
2488
2489
 
2489
2490
  // src/components/load-template-components.tsx
2490
2491
  var LoadTemplateComponents = () => {
2492
+ if ((0, import_editor_templates.isHandlingTemplateStyles)()) {
2493
+ return /* @__PURE__ */ React23.createElement(LoadTemplateComponentsInternal, null);
2494
+ }
2495
+ return null;
2496
+ };
2497
+ function LoadTemplateComponentsInternal() {
2491
2498
  const templates = (0, import_editor_templates.useLoadedTemplates)();
2492
2499
  (0, import_react8.useEffect)(() => {
2493
2500
  loadComponentsAssets(templates.flatMap((elements) => elements ?? []));
2494
2501
  }, [templates]);
2495
2502
  return null;
2496
- };
2503
+ }
2497
2504
 
2498
2505
  // src/create-component-type.ts
2499
2506
  var import_editor_canvas4 = require("@elementor/editor-canvas");