@elementor/editor-interactions 4.1.0 → 4.2.0-840
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 +6 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +6 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +13 -13
- package/src/hooks/on-duplicate.ts +7 -1
- package/src/mcp/tools/schema.ts +8 -1
package/dist/index.js
CHANGED
|
@@ -1927,10 +1927,14 @@ var import_editor_elements6 = require("@elementor/editor-elements");
|
|
|
1927
1927
|
var import_editor_v1_adapters5 = require("@elementor/editor-v1-adapters");
|
|
1928
1928
|
function initCleanInteractionIdsOnDuplicate() {
|
|
1929
1929
|
(0, import_editor_v1_adapters5.registerDataHook)("after", "document/elements/duplicate", (_args, result) => {
|
|
1930
|
+
if (!result || typeof result === "boolean" && result === false) {
|
|
1931
|
+
return;
|
|
1932
|
+
}
|
|
1930
1933
|
const containers = Array.isArray(result) ? result : [result];
|
|
1931
1934
|
containers.forEach((container) => {
|
|
1932
1935
|
cleanInteractionIdsRecursive(container.id);
|
|
1933
1936
|
});
|
|
1937
|
+
window.dispatchEvent(new CustomEvent("elementor/element/update_interactions"));
|
|
1934
1938
|
});
|
|
1935
1939
|
}
|
|
1936
1940
|
function cleanInteractionIdsRecursive(elementId) {
|
|
@@ -1974,7 +1978,7 @@ var baseSchema = {
|
|
|
1974
1978
|
),
|
|
1975
1979
|
duration: import_schema.z.number().min(0).max(1e4).optional().describe("Animation duration in milliseconds"),
|
|
1976
1980
|
delay: import_schema.z.number().min(0).max(1e4).optional().describe("Animation delay in milliseconds"),
|
|
1977
|
-
easing: import_schema.z.
|
|
1981
|
+
easing: import_schema.z.enum(["easeIn"]).optional().describe('Easing function for the animation. Use "easeIn" for free tier.'),
|
|
1978
1982
|
excludedBreakpoints: import_schema.z.array(import_schema.z.string()).optional().describe(
|
|
1979
1983
|
'Breakpoint IDs on which this interaction is disabled (e.g. ["mobile", "tablet"]). Omit to enable on all breakpoints.'
|
|
1980
1984
|
)
|
|
@@ -1982,6 +1986,7 @@ var baseSchema = {
|
|
|
1982
1986
|
var proSchema = {
|
|
1983
1987
|
trigger: import_schema.z.enum(["load", "scrollIn", "scrollOut", "scrollOn", "hover", "click"]).optional().describe("Event that triggers the animation"),
|
|
1984
1988
|
effect: import_schema.z.enum(["fade", "slide", "scale", "custom"]).optional().describe("Animation effect type"),
|
|
1989
|
+
easing: import_schema.z.enum(["easeIn", "easeInOut", "easeOut", "backIn", "backInOut", "backOut", "linear"]).optional().describe("Easing function for the animation."),
|
|
1985
1990
|
customEffects: import_schema.z.object({
|
|
1986
1991
|
keyframes: import_schema.z.array(
|
|
1987
1992
|
import_schema.z.object({
|