@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/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elementor/editor-controls",
|
|
3
3
|
"description": "This package contains the controls model and utils for the Elementor editor",
|
|
4
|
-
"version": "4.1.0-
|
|
4
|
+
"version": "4.1.0-725",
|
|
5
5
|
"private": false,
|
|
6
6
|
"author": "Elementor Team",
|
|
7
7
|
"homepage": "https://elementor.com/",
|
|
@@ -40,22 +40,22 @@
|
|
|
40
40
|
"dev": "tsup --config=../../tsup.dev.ts"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@elementor/editor-current-user": "4.1.0-
|
|
44
|
-
"@elementor/editor-elements": "4.1.0-
|
|
45
|
-
"@elementor/editor-props": "4.1.0-
|
|
46
|
-
"@elementor/editor-responsive": "4.1.0-
|
|
47
|
-
"@elementor/editor-ui": "4.1.0-
|
|
48
|
-
"@elementor/editor-v1-adapters": "4.1.0-
|
|
49
|
-
"@elementor/env": "4.1.0-
|
|
50
|
-
"@elementor/http-client": "4.1.0-
|
|
43
|
+
"@elementor/editor-current-user": "4.1.0-725",
|
|
44
|
+
"@elementor/editor-elements": "4.1.0-725",
|
|
45
|
+
"@elementor/editor-props": "4.1.0-725",
|
|
46
|
+
"@elementor/editor-responsive": "4.1.0-725",
|
|
47
|
+
"@elementor/editor-ui": "4.1.0-725",
|
|
48
|
+
"@elementor/editor-v1-adapters": "4.1.0-725",
|
|
49
|
+
"@elementor/env": "4.1.0-725",
|
|
50
|
+
"@elementor/http-client": "4.1.0-725",
|
|
51
51
|
"@elementor/icons": "^1.68.0",
|
|
52
|
-
"@elementor/locations": "4.1.0-
|
|
53
|
-
"@elementor/events": "4.1.0-
|
|
54
|
-
"@elementor/query": "4.1.0-
|
|
55
|
-
"@elementor/session": "4.1.0-
|
|
52
|
+
"@elementor/locations": "4.1.0-725",
|
|
53
|
+
"@elementor/events": "4.1.0-725",
|
|
54
|
+
"@elementor/query": "4.1.0-725",
|
|
55
|
+
"@elementor/session": "4.1.0-725",
|
|
56
56
|
"@elementor/ui": "1.36.17",
|
|
57
|
-
"@elementor/utils": "4.1.0-
|
|
58
|
-
"@elementor/wp-media": "4.1.0-
|
|
57
|
+
"@elementor/utils": "4.1.0-725",
|
|
58
|
+
"@elementor/wp-media": "4.1.0-725",
|
|
59
59
|
"@wordpress/i18n": "^5.13.0",
|
|
60
60
|
"@monaco-editor/react": "^4.7.0",
|
|
61
61
|
"dayjs": "^1.11.18",
|
|
@@ -46,9 +46,9 @@ const getIsSiteRtl = () => {
|
|
|
46
46
|
};
|
|
47
47
|
|
|
48
48
|
// TODO: Remove this after version 4.01 is released
|
|
49
|
-
const
|
|
49
|
+
const shouldShowAllTransitionProperties = (): boolean => {
|
|
50
50
|
if ( ! hasProInstalled() ) {
|
|
51
|
-
return
|
|
51
|
+
return true;
|
|
52
52
|
}
|
|
53
53
|
|
|
54
54
|
const proVersion = window.elementorPro?.config?.version;
|
|
@@ -191,7 +191,7 @@ const createTransitionPropertiesList = (): TransitionCategory[] => {
|
|
|
191
191
|
},
|
|
192
192
|
];
|
|
193
193
|
|
|
194
|
-
return
|
|
194
|
+
return shouldShowAllTransitionProperties() ? baseProperties : [ baseProperties[ 0 ] ];
|
|
195
195
|
};
|
|
196
196
|
|
|
197
197
|
export const transitionProperties: TransitionCategory[] = createTransitionPropertiesList();
|
|
@@ -9,6 +9,7 @@ import {
|
|
|
9
9
|
import { type StyleDefinitionState } from '@elementor/editor-styles';
|
|
10
10
|
import { InfoCircleFilledIcon } from '@elementor/icons';
|
|
11
11
|
import { Alert, AlertTitle, Box, Typography } from '@elementor/ui';
|
|
12
|
+
import { hasProInstalled } from '@elementor/utils';
|
|
12
13
|
import { __ } from '@wordpress/i18n';
|
|
13
14
|
|
|
14
15
|
import { useBoundProp } from '../../bound-prop-context';
|
|
@@ -181,6 +182,7 @@ export const TransitionRepeaterControl = createControl(
|
|
|
181
182
|
} ) => {
|
|
182
183
|
const currentStyleIsNormal = currentStyleState === null;
|
|
183
184
|
const [ recentlyUsedList, setRecentlyUsedList ] = useState< string[] >( [] );
|
|
185
|
+
const proInstalled = hasProInstalled();
|
|
184
186
|
|
|
185
187
|
const { value, setValue } = useBoundProp( childArrayPropTypeUtil );
|
|
186
188
|
const { allDisabled: disabledItems, proDisabled: proDisabledItems } = useMemo(
|
|
@@ -191,10 +193,14 @@ export const TransitionRepeaterControl = createControl(
|
|
|
191
193
|
const allowedTransitionSet = useMemo( () => {
|
|
192
194
|
const set = new Set< string >();
|
|
193
195
|
transitionProperties.forEach( ( category ) => {
|
|
194
|
-
category.properties.forEach( ( prop ) =>
|
|
196
|
+
category.properties.forEach( ( prop ) => {
|
|
197
|
+
if ( ! prop.isDisabled || proInstalled ) {
|
|
198
|
+
set.add( prop.value );
|
|
199
|
+
}
|
|
200
|
+
} );
|
|
195
201
|
} );
|
|
196
202
|
return set;
|
|
197
|
-
}, [] );
|
|
203
|
+
}, [ proInstalled ] );
|
|
198
204
|
|
|
199
205
|
useEffect( () => {
|
|
200
206
|
if ( ! value || value.length === 0 ) {
|