@elementor/editor-editing-panel 4.1.0-734 → 4.1.0-735
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
|
@@ -1365,6 +1365,7 @@ function useHandleSelect() {
|
|
|
1365
1365
|
|
|
1366
1366
|
// src/components/custom-css-indicator.tsx
|
|
1367
1367
|
import * as React11 from "react";
|
|
1368
|
+
import { useMemo as useMemo6 } from "react";
|
|
1368
1369
|
import { getBreakpointsTree } from "@elementor/editor-responsive";
|
|
1369
1370
|
import { getVariantByMeta as getVariantByMeta3 } from "@elementor/editor-styles";
|
|
1370
1371
|
|
|
@@ -1660,12 +1661,12 @@ var CustomCssIndicator = () => {
|
|
|
1660
1661
|
const {
|
|
1661
1662
|
element: { id: elementId }
|
|
1662
1663
|
} = useElement();
|
|
1663
|
-
const style =
|
|
1664
|
+
const style = useMemo6(
|
|
1664
1665
|
() => styleId && provider ? provider.actions.get(styleId, { elementId }) : null,
|
|
1665
1666
|
[styleId, provider, elementId]
|
|
1666
1667
|
);
|
|
1667
1668
|
const hasContent = Boolean(customCss?.raw?.trim());
|
|
1668
|
-
const hasInheritedContent =
|
|
1669
|
+
const hasInheritedContent = useMemo6(() => {
|
|
1669
1670
|
if (hasContent) {
|
|
1670
1671
|
return false;
|
|
1671
1672
|
}
|
|
@@ -5578,6 +5579,7 @@ import { PropKeyProvider as PropKeyProvider5, PropProvider as PropProvider5, use
|
|
|
5578
5579
|
|
|
5579
5580
|
// src/dynamics/components/dynamic-conditional-control.tsx
|
|
5580
5581
|
import * as React85 from "react";
|
|
5582
|
+
import { useMemo as useMemo12 } from "react";
|
|
5581
5583
|
import { isDependencyMet as isDependencyMet4 } from "@elementor/editor-props";
|
|
5582
5584
|
var DynamicConditionalControl = ({
|
|
5583
5585
|
children,
|
|
@@ -5585,7 +5587,7 @@ var DynamicConditionalControl = ({
|
|
|
5585
5587
|
propsSchema,
|
|
5586
5588
|
dynamicSettings
|
|
5587
5589
|
}) => {
|
|
5588
|
-
const defaults =
|
|
5590
|
+
const defaults = useMemo12(() => {
|
|
5589
5591
|
if (!propsSchema) {
|
|
5590
5592
|
return {};
|
|
5591
5593
|
}
|
|
@@ -5595,7 +5597,7 @@ var DynamicConditionalControl = ({
|
|
|
5595
5597
|
return result;
|
|
5596
5598
|
}, {});
|
|
5597
5599
|
}, [propsSchema]);
|
|
5598
|
-
const convertedSettings =
|
|
5600
|
+
const convertedSettings = useMemo12(() => {
|
|
5599
5601
|
if (!dynamicSettings) {
|
|
5600
5602
|
return {};
|
|
5601
5603
|
}
|
|
@@ -5614,7 +5616,7 @@ var DynamicConditionalControl = ({
|
|
|
5614
5616
|
{}
|
|
5615
5617
|
);
|
|
5616
5618
|
}, [dynamicSettings]);
|
|
5617
|
-
const effectiveSettings =
|
|
5619
|
+
const effectiveSettings = useMemo12(() => {
|
|
5618
5620
|
return { ...defaults, ...convertedSettings };
|
|
5619
5621
|
}, [defaults, convertedSettings]);
|
|
5620
5622
|
if (!propType?.dependencies?.terms.length) {
|