@elementor/editor-editing-panel 4.1.0-800 → 4.1.0-802
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.js
CHANGED
|
@@ -773,6 +773,12 @@ function useCreateAndApplyClass() {
|
|
|
773
773
|
unapplyClass(createdId);
|
|
774
774
|
deleteAction?.(createdId);
|
|
775
775
|
setActiveId(prevActiveId);
|
|
776
|
+
},
|
|
777
|
+
redo: ({ classLabel }, { createdId }) => {
|
|
778
|
+
const prevActiveId = activeId;
|
|
779
|
+
createAction(classLabel, [], createdId);
|
|
780
|
+
applyClass(createdId);
|
|
781
|
+
return { prevActiveId, createdId };
|
|
776
782
|
}
|
|
777
783
|
},
|
|
778
784
|
{
|
|
@@ -1591,7 +1597,7 @@ function useUndoableActions({
|
|
|
1591
1597
|
return { styleId, provider, prevProps };
|
|
1592
1598
|
}
|
|
1593
1599
|
function undo(_, { styleId, provider, prevProps }) {
|
|
1594
|
-
provider.actions.updateProps?.({ id: styleId, meta, props: prevProps }, { elementId });
|
|
1600
|
+
provider.actions.updateProps?.({ id: styleId, meta, props: prevProps, mode: "replace" }, { elementId });
|
|
1595
1601
|
}
|
|
1596
1602
|
}, [elementId, breakpoint, state, classesProp]);
|
|
1597
1603
|
}
|