@elementor/editor-controls 4.1.0-764 → 4.1.0-765

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 CHANGED
@@ -586,7 +586,7 @@ type BaseItemSettings<T> = {
586
586
  Content: RepeaterItemContent<T>;
587
587
  actions?: (value: T) => React$1.ReactNode;
588
588
  onPopoverOpen?: (value: T) => void;
589
- onPopoverClose?: () => void;
589
+ onPopoverClose?: (value: T) => void;
590
590
  };
591
591
  type SortableItemSettings<T> = BaseItemSettings<T> & {
592
592
  getId: ({ item, index }: {
package/dist/index.d.ts CHANGED
@@ -586,7 +586,7 @@ type BaseItemSettings<T> = {
586
586
  Content: RepeaterItemContent<T>;
587
587
  actions?: (value: T) => React$1.ReactNode;
588
588
  onPopoverOpen?: (value: T) => void;
589
- onPopoverClose?: () => void;
589
+ onPopoverClose?: (value: T) => void;
590
590
  };
591
591
  type SortableItemSettings<T> = BaseItemSettings<T> & {
592
592
  getId: ({ item, index }: {
package/dist/index.js CHANGED
@@ -7786,13 +7786,14 @@ var RepeaterItem = ({
7786
7786
  actions,
7787
7787
  value
7788
7788
  }) => {
7789
+ const wrappedOnPopoverClose = onPopoverClose ? () => onPopoverClose(value) : void 0;
7789
7790
  const { popoverState, popoverProps, ref, setRef } = usePopover(
7790
7791
  openOnMount,
7791
7792
  () => {
7792
7793
  onOpen();
7793
7794
  onPopoverOpen?.(value);
7794
7795
  },
7795
- onPopoverClose
7796
+ wrappedOnPopoverClose
7796
7797
  );
7797
7798
  const triggerProps = (0, import_ui97.bindTrigger)(popoverState);
7798
7799
  const duplicateLabel = (0, import_i18n55.__)("Duplicate", "elementor");