@elementor/editor-elements 3.33.0-236 → 3.33.0-238
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 +2 -7
- package/dist/index.d.ts +2 -7
- package/dist/index.js +2 -8
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -8
- package/dist/index.mjs.map +1 -1
- package/package.json +7 -7
- package/src/sync/duplicate-elements.ts +0 -5
- package/src/sync/get-element-interactions.ts +1 -5
- package/src/sync/types.ts +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -77,12 +77,7 @@ type V1ElementModelProps = {
|
|
|
77
77
|
elements?: V1Model<V1ElementModelProps>[];
|
|
78
78
|
settings?: V1ElementSettingsProps;
|
|
79
79
|
editor_settings?: V1ElementEditorSettingsProps;
|
|
80
|
-
interactions?: string |
|
|
81
|
-
animation: {
|
|
82
|
-
animation_type: string;
|
|
83
|
-
animation_id: string;
|
|
84
|
-
};
|
|
85
|
-
}>;
|
|
80
|
+
interactions?: string | Record<string, unknown>;
|
|
86
81
|
};
|
|
87
82
|
type V1ElementData = Omit<V1ElementModelProps, 'elements'> & {
|
|
88
83
|
elements?: V1ElementData[];
|
|
@@ -232,7 +227,7 @@ type DuplicatedElementsResult = {
|
|
|
232
227
|
duplicatedElements: DuplicatedElement[];
|
|
233
228
|
};
|
|
234
229
|
|
|
235
|
-
declare const duplicateElements: ({ elementIds, title, subtitle,
|
|
230
|
+
declare const duplicateElements: ({ elementIds, title, subtitle, }: DuplicateElementsParams) => DuplicatedElementsResult;
|
|
236
231
|
|
|
237
232
|
type Options$1 = {
|
|
238
233
|
useHistory?: boolean;
|
package/dist/index.d.ts
CHANGED
|
@@ -77,12 +77,7 @@ type V1ElementModelProps = {
|
|
|
77
77
|
elements?: V1Model<V1ElementModelProps>[];
|
|
78
78
|
settings?: V1ElementSettingsProps;
|
|
79
79
|
editor_settings?: V1ElementEditorSettingsProps;
|
|
80
|
-
interactions?: string |
|
|
81
|
-
animation: {
|
|
82
|
-
animation_type: string;
|
|
83
|
-
animation_id: string;
|
|
84
|
-
};
|
|
85
|
-
}>;
|
|
80
|
+
interactions?: string | Record<string, unknown>;
|
|
86
81
|
};
|
|
87
82
|
type V1ElementData = Omit<V1ElementModelProps, 'elements'> & {
|
|
88
83
|
elements?: V1ElementData[];
|
|
@@ -232,7 +227,7 @@ type DuplicatedElementsResult = {
|
|
|
232
227
|
duplicatedElements: DuplicatedElement[];
|
|
233
228
|
};
|
|
234
229
|
|
|
235
|
-
declare const duplicateElements: ({ elementIds, title, subtitle,
|
|
230
|
+
declare const duplicateElements: ({ elementIds, title, subtitle, }: DuplicateElementsParams) => DuplicatedElementsResult;
|
|
236
231
|
|
|
237
232
|
type Options$1 = {
|
|
238
233
|
useHistory?: boolean;
|
package/dist/index.js
CHANGED
|
@@ -493,8 +493,7 @@ var import_i18n3 = require("@wordpress/i18n");
|
|
|
493
493
|
var duplicateElements = ({
|
|
494
494
|
elementIds,
|
|
495
495
|
title,
|
|
496
|
-
subtitle = (0, import_i18n3.__)("Item duplicated", "elementor")
|
|
497
|
-
onCreate
|
|
496
|
+
subtitle = (0, import_i18n3.__)("Item duplicated", "elementor")
|
|
498
497
|
}) => {
|
|
499
498
|
const undoableDuplicate = (0, import_editor_v1_adapters12.undoable)(
|
|
500
499
|
{
|
|
@@ -517,7 +516,6 @@ var duplicateElements = ({
|
|
|
517
516
|
}
|
|
518
517
|
return acc;
|
|
519
518
|
}, []);
|
|
520
|
-
onCreate?.(duplicatedElements);
|
|
521
519
|
return { duplicatedElements };
|
|
522
520
|
},
|
|
523
521
|
undo: (_, { duplicatedElements }) => {
|
|
@@ -551,7 +549,6 @@ var duplicateElements = ({
|
|
|
551
549
|
}
|
|
552
550
|
return acc;
|
|
553
551
|
}, []);
|
|
554
|
-
onCreate?.(duplicatedElements);
|
|
555
552
|
return { duplicatedElements };
|
|
556
553
|
}
|
|
557
554
|
},
|
|
@@ -1007,10 +1004,7 @@ function getElementInteractions(elementId) {
|
|
|
1007
1004
|
if (typeof interactions === "string") {
|
|
1008
1005
|
return interactions;
|
|
1009
1006
|
}
|
|
1010
|
-
|
|
1011
|
-
return JSON.stringify(interactions);
|
|
1012
|
-
}
|
|
1013
|
-
return "";
|
|
1007
|
+
return JSON.stringify(interactions);
|
|
1014
1008
|
}
|
|
1015
1009
|
|
|
1016
1010
|
// src/sync/update-element-interactions.ts
|