@elementor/editor-controls 4.1.0-723 → 4.1.0-725
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
|
@@ -5765,6 +5765,7 @@ import {
|
|
|
5765
5765
|
} from "@elementor/editor-props";
|
|
5766
5766
|
import { InfoCircleFilledIcon as InfoCircleFilledIcon3 } from "@elementor/icons";
|
|
5767
5767
|
import { Alert as Alert2, AlertTitle as AlertTitle3, Box as Box20, Typography as Typography8 } from "@elementor/ui";
|
|
5768
|
+
import { hasProInstalled as hasProInstalled2 } from "@elementor/utils";
|
|
5768
5769
|
import { __ as __50 } from "@wordpress/i18n";
|
|
5769
5770
|
|
|
5770
5771
|
// src/controls/selection-size-control.tsx
|
|
@@ -5818,9 +5819,9 @@ var MIN_PRO_VERSION = "3.35";
|
|
|
5818
5819
|
var getIsSiteRtl = () => {
|
|
5819
5820
|
return !!window.elementorFrontend?.config?.is_rtl;
|
|
5820
5821
|
};
|
|
5821
|
-
var
|
|
5822
|
+
var shouldShowAllTransitionProperties = () => {
|
|
5822
5823
|
if (!hasProInstalled()) {
|
|
5823
|
-
return
|
|
5824
|
+
return true;
|
|
5824
5825
|
}
|
|
5825
5826
|
const proVersion = window.elementorPro?.config?.version;
|
|
5826
5827
|
if (!proVersion) {
|
|
@@ -5957,7 +5958,7 @@ var createTransitionPropertiesList = () => {
|
|
|
5957
5958
|
]
|
|
5958
5959
|
}
|
|
5959
5960
|
];
|
|
5960
|
-
return
|
|
5961
|
+
return shouldShowAllTransitionProperties() ? baseProperties : [baseProperties[0]];
|
|
5961
5962
|
};
|
|
5962
5963
|
var transitionProperties = createTransitionPropertiesList();
|
|
5963
5964
|
var transitionsItemsList = transitionProperties.map((category) => ({
|
|
@@ -6306,6 +6307,7 @@ var TransitionRepeaterControl = createControl(
|
|
|
6306
6307
|
}) => {
|
|
6307
6308
|
const currentStyleIsNormal = currentStyleState === null;
|
|
6308
6309
|
const [recentlyUsedList, setRecentlyUsedList] = useState16([]);
|
|
6310
|
+
const proInstalled = hasProInstalled2();
|
|
6309
6311
|
const { value, setValue } = useBoundProp(childArrayPropTypeUtil);
|
|
6310
6312
|
const { allDisabled: disabledItems, proDisabled: proDisabledItems } = useMemo13(
|
|
6311
6313
|
() => getDisabledItemLabels(value),
|
|
@@ -6314,10 +6316,14 @@ var TransitionRepeaterControl = createControl(
|
|
|
6314
6316
|
const allowedTransitionSet = useMemo13(() => {
|
|
6315
6317
|
const set = /* @__PURE__ */ new Set();
|
|
6316
6318
|
transitionProperties.forEach((category) => {
|
|
6317
|
-
category.properties.forEach((prop) =>
|
|
6319
|
+
category.properties.forEach((prop) => {
|
|
6320
|
+
if (!prop.isDisabled || proInstalled) {
|
|
6321
|
+
set.add(prop.value);
|
|
6322
|
+
}
|
|
6323
|
+
});
|
|
6318
6324
|
});
|
|
6319
6325
|
return set;
|
|
6320
|
-
}, []);
|
|
6326
|
+
}, [proInstalled]);
|
|
6321
6327
|
useEffect11(() => {
|
|
6322
6328
|
if (!value || value.length === 0) {
|
|
6323
6329
|
return;
|