@elementor/editor-controls 3.32.0-69 → 3.32.0-71

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": "3.32.0-69",
4
+ "version": "3.32.0-71",
5
5
  "private": false,
6
6
  "author": "Elementor Team",
7
7
  "homepage": "https://elementor.com/",
@@ -40,21 +40,21 @@
40
40
  "dev": "tsup --config=../../tsup.dev.ts"
41
41
  },
42
42
  "dependencies": {
43
- "@elementor/editor-current-user": "3.32.0-69",
44
- "@elementor/editor-elements": "3.32.0-69",
45
- "@elementor/editor-props": "3.32.0-69",
46
- "@elementor/editor-responsive": "3.32.0-69",
47
- "@elementor/editor-ui": "3.32.0-69",
48
- "@elementor/editor-v1-adapters": "3.32.0-69",
49
- "@elementor/env": "3.32.0-69",
50
- "@elementor/http-client": "3.32.0-69",
43
+ "@elementor/editor-current-user": "3.32.0-71",
44
+ "@elementor/editor-elements": "3.32.0-71",
45
+ "@elementor/editor-props": "3.32.0-71",
46
+ "@elementor/editor-responsive": "3.32.0-71",
47
+ "@elementor/editor-ui": "3.32.0-71",
48
+ "@elementor/editor-v1-adapters": "3.32.0-71",
49
+ "@elementor/env": "3.32.0-71",
50
+ "@elementor/http-client": "3.32.0-71",
51
51
  "@elementor/icons": "^1.51.1",
52
- "@elementor/locations": "3.32.0-69",
53
- "@elementor/query": "3.32.0-69",
54
- "@elementor/session": "3.32.0-69",
52
+ "@elementor/locations": "3.32.0-71",
53
+ "@elementor/query": "3.32.0-71",
54
+ "@elementor/session": "3.32.0-71",
55
55
  "@elementor/ui": "1.36.8",
56
- "@elementor/utils": "3.32.0-69",
57
- "@elementor/wp-media": "3.32.0-69",
56
+ "@elementor/utils": "3.32.0-71",
57
+ "@elementor/wp-media": "3.32.0-71",
58
58
  "@wordpress/i18n": "^5.13.0",
59
59
  "@monaco-editor/react": "^4.7.0"
60
60
  },
@@ -47,7 +47,6 @@ const ConditionalToolTip = ( {
47
47
  }: React.PropsWithChildren< {
48
48
  content?: React.ReactNode;
49
49
  enable: boolean;
50
- wrapContent?: boolean;
51
50
  } > ) =>
52
51
  enable && content ? (
53
52
  <Infotip placement="right" color="secondary" content={ content }>
@@ -1,4 +1,5 @@
1
1
  import * as React from 'react';
2
+ import { useEffect, useState } from 'react';
2
3
  import { selectionSizePropTypeUtil } from '@elementor/editor-props';
3
4
  import { type StyleDefinitionState } from '@elementor/editor-styles';
4
5
  import { InfoCircleFilledIcon } from '@elementor/icons';
@@ -71,13 +72,19 @@ const disableAddItemTooltipContent = (
71
72
 
72
73
  export const TransitionRepeaterControl = createControl(
73
74
  ( {
74
- recentlyUsedList,
75
+ recentlyUsedListGetter,
75
76
  currentStyleState,
76
77
  }: {
77
- recentlyUsedList: string[];
78
+ recentlyUsedListGetter: () => Promise< string[] >;
78
79
  currentStyleState: StyleDefinitionState;
79
80
  } ) => {
80
81
  const currentStyleIsNormal = currentStyleState === null;
82
+ const [ recentlyUsedList, setRecentlyUsedList ] = useState< string[] >( [] );
83
+
84
+ useEffect( () => {
85
+ recentlyUsedListGetter().then( setRecentlyUsedList );
86
+ }, [ recentlyUsedListGetter ] );
87
+
81
88
  return (
82
89
  <RepeatableControl
83
90
  label={ __( 'Transitions', 'elementor' ) }
@@ -32,7 +32,7 @@ const findByValue = ( value: string ) => {
32
32
  }
33
33
  };
34
34
 
35
- export const TransitionSelector = ( { recentlyUsedList }: { recentlyUsedList: string[] } ) => {
35
+ export const TransitionSelector = ( { recentlyUsedList = [] }: { recentlyUsedList: string[] } ) => {
36
36
  const { value, setValue } = useBoundProp( keyValuePropTypeUtil );
37
37
  const {
38
38
  value: { value: transitionValue },