@elementor/editor-controls 4.1.0-764 → 4.1.0-766
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.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +15 -15
- package/src/components/repeater/repeater.tsx +4 -3
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-766",
|
|
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-766",
|
|
44
|
+
"@elementor/editor-elements": "4.1.0-766",
|
|
45
|
+
"@elementor/editor-props": "4.1.0-766",
|
|
46
|
+
"@elementor/editor-responsive": "4.1.0-766",
|
|
47
|
+
"@elementor/editor-ui": "4.1.0-766",
|
|
48
|
+
"@elementor/editor-v1-adapters": "4.1.0-766",
|
|
49
|
+
"@elementor/env": "4.1.0-766",
|
|
50
|
+
"@elementor/http-client": "4.1.0-766",
|
|
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-766",
|
|
53
|
+
"@elementor/events": "4.1.0-766",
|
|
54
|
+
"@elementor/query": "4.1.0-766",
|
|
55
|
+
"@elementor/session": "4.1.0-766",
|
|
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-766",
|
|
58
|
+
"@elementor/wp-media": "4.1.0-766",
|
|
59
59
|
"@wordpress/i18n": "^5.13.0",
|
|
60
60
|
"@monaco-editor/react": "^4.7.0",
|
|
61
61
|
"dayjs": "^1.11.18",
|
|
@@ -81,7 +81,7 @@ type BaseItemSettings< T > = {
|
|
|
81
81
|
Content: RepeaterItemContent< T >;
|
|
82
82
|
actions?: ( value: T ) => React.ReactNode;
|
|
83
83
|
onPopoverOpen?: ( value: T ) => void;
|
|
84
|
-
onPopoverClose?: () => void;
|
|
84
|
+
onPopoverClose?: ( value: T ) => void;
|
|
85
85
|
};
|
|
86
86
|
|
|
87
87
|
type SortableItemSettings< T > = BaseItemSettings< T > & {
|
|
@@ -313,7 +313,7 @@ type RepeaterItemProps< T > = {
|
|
|
313
313
|
openOnMount: boolean;
|
|
314
314
|
onOpen: () => void;
|
|
315
315
|
onPopoverOpen?: ( value: T ) => void;
|
|
316
|
-
onPopoverClose?: () => void;
|
|
316
|
+
onPopoverClose?: ( value: T ) => void;
|
|
317
317
|
showDuplicate: boolean;
|
|
318
318
|
showToggle: boolean;
|
|
319
319
|
showRemove: boolean;
|
|
@@ -341,13 +341,14 @@ const RepeaterItem = < T, >( {
|
|
|
341
341
|
actions,
|
|
342
342
|
value,
|
|
343
343
|
}: RepeaterItemProps< T > ) => {
|
|
344
|
+
const wrappedOnPopoverClose = onPopoverClose ? () => onPopoverClose( value ) : undefined;
|
|
344
345
|
const { popoverState, popoverProps, ref, setRef } = usePopover(
|
|
345
346
|
openOnMount,
|
|
346
347
|
() => {
|
|
347
348
|
onOpen();
|
|
348
349
|
onPopoverOpen?.( value );
|
|
349
350
|
},
|
|
350
|
-
|
|
351
|
+
wrappedOnPopoverClose
|
|
351
352
|
);
|
|
352
353
|
const triggerProps = bindTrigger( popoverState );
|
|
353
354
|
|