@elementor/editor-elements 3.33.0-274 → 3.33.0-276

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
@@ -399,7 +399,7 @@ declare const updateElementInteractions: ({ elementId, interactions, }: {
399
399
  elementId: string;
400
400
  interactions: V1ElementModelProps["interactions"];
401
401
  }) => void;
402
- declare const playElementInteractions: (elementId: string) => void;
402
+ declare const playElementInteractions: (elementId: string, animationId: string) => void;
403
403
 
404
404
  declare function initMcp(): void;
405
405
 
package/dist/index.d.ts CHANGED
@@ -399,7 +399,7 @@ declare const updateElementInteractions: ({ elementId, interactions, }: {
399
399
  elementId: string;
400
400
  interactions: V1ElementModelProps["interactions"];
401
401
  }) => void;
402
- declare const playElementInteractions: (elementId: string) => void;
402
+ declare const playElementInteractions: (elementId: string, animationId: string) => void;
403
403
 
404
404
  declare function initMcp(): void;
405
405
 
package/dist/index.js CHANGED
@@ -582,6 +582,7 @@ var moveElements = ({
582
582
  {
583
583
  do: ({ moves }) => {
584
584
  const movedElements = [];
585
+ onMoveElements?.();
585
586
  moves.forEach((move) => {
586
587
  const { elementId } = move;
587
588
  const sourceContainer = getContainer(elementId);
@@ -599,7 +600,6 @@ var moveElements = ({
599
600
  ...move,
600
601
  options: { ...move.options, useHistory: false }
601
602
  });
602
- onMoveElements?.();
603
603
  movedElements.push({
604
604
  elementId,
605
605
  originalPosition,
@@ -610,9 +610,9 @@ var moveElements = ({
610
610
  return { movedElements };
611
611
  },
612
612
  undo: (_, { movedElements }) => {
613
+ onRestoreElements?.();
613
614
  [...movedElements].reverse().forEach(({ originalPosition }) => {
614
615
  const { elementId, originalContainerId, originalIndex } = originalPosition;
615
- onRestoreElements?.();
616
616
  moveElement({
617
617
  elementId,
618
618
  targetContainerId: originalContainerId,
@@ -625,12 +625,12 @@ var moveElements = ({
625
625
  },
626
626
  redo: (_, { movedElements }) => {
627
627
  const newMovedElements = [];
628
+ onMoveElements?.();
628
629
  movedElements.forEach(({ move, originalPosition }) => {
629
630
  const element = moveElement({
630
631
  ...move,
631
632
  options: { ...move.options, useHistory: false }
632
633
  });
633
- onMoveElements?.();
634
634
  newMovedElements.push({
635
635
  elementId: move.elementId,
636
636
  originalPosition,
@@ -1072,8 +1072,8 @@ var updateElementInteractions = ({
1072
1072
  window.dispatchEvent(new CustomEvent("elementor/element/update_interactions"));
1073
1073
  setDocumentModifiedStatus2(true);
1074
1074
  };
1075
- var playElementInteractions = (elementId) => {
1076
- window.top?.dispatchEvent(new CustomEvent("atomic/play_interactions", { detail: { elementId } }));
1075
+ var playElementInteractions = (elementId, animationId) => {
1076
+ window.top?.dispatchEvent(new CustomEvent("atomic/play_interactions", { detail: { elementId, animationId } }));
1077
1077
  };
1078
1078
  function setDocumentModifiedStatus2(status) {
1079
1079
  (0, import_editor_v1_adapters19.__privateRunCommandSync)("document/save/set-is-modified", { status }, { internal: true });