@elementor/editor-interactions 4.2.0-841 → 4.2.0-843

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.mjs CHANGED
@@ -1984,7 +1984,13 @@ import { isProActive as isProActive2 } from "@elementor/utils";
1984
1984
 
1985
1985
  // src/mcp/constants.ts
1986
1986
  var MAX_INTERACTIONS_PER_ELEMENT = 5;
1987
- var EDITOR_INTERACTIONS_MCP_INSTRUCTIONS = `MCP server for managing element interactions and animations. Use this to add, modify, or remove animations and motion effects triggered by user events such as page load or scroll-into-view.
1987
+ var EDITOR_INTERACTIONS_MCP_SHORT_DESCRIPTION = `Everything related to V4 ( Atomic ) interactions.
1988
+ # Interactions
1989
+ - Create/update/delete interactions
1990
+ - Get list of interactions
1991
+ - Get details of an interaction
1992
+ `;
1993
+ var EDITOR_INTERACTIONS_MCP_DESCRIPTION = `MCP server for managing element interactions and animations. Use this to add, modify, or remove animations and motion effects triggered by user events such as page load or scroll-into-view.
1988
1994
  ** IMPORTANT **
1989
1995
  Use the "interactions-schema" resource to get the schema of the interactions.
1990
1996
  Actions:
@@ -1993,7 +1999,7 @@ var EDITOR_INTERACTIONS_MCP_INSTRUCTIONS = `MCP server for managing element inte
1993
1999
  - update: Update an existing interaction by its interactionId.
1994
2000
  - delete: Remove a specific interaction by its interactionId.
1995
2001
  - clear: Remove all interactions from the element.
1996
-
2002
+
1997
2003
  For add/update, provide: trigger, effect, effectType, direction (required for slide effect), duration, delay, easing.
1998
2004
  Use excludedBreakpoints to disable the animation on specific responsive breakpoints (e.g. ["mobile", "tablet"]).
1999
2005
  Example Get Request:
@@ -2243,7 +2249,12 @@ function init() {
2243
2249
  type: "repeat",
2244
2250
  component: Repeat
2245
2251
  });
2246
- initMcpInteractions(getMCPByDomain("interactions", { instructions: EDITOR_INTERACTIONS_MCP_INSTRUCTIONS }));
2252
+ initMcpInteractions(
2253
+ getMCPByDomain("interactions", {
2254
+ docs: EDITOR_INTERACTIONS_MCP_DESCRIPTION,
2255
+ instructions: EDITOR_INTERACTIONS_MCP_SHORT_DESCRIPTION
2256
+ })
2257
+ );
2247
2258
  } catch (error) {
2248
2259
  throw error;
2249
2260
  }