@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.js +14 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +14 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +12 -12
- package/src/init.ts +11 -2
- package/src/mcp/constants.ts +8 -2
package/dist/index.js
CHANGED
|
@@ -2049,7 +2049,13 @@ var import_utils2 = require("@elementor/utils");
|
|
|
2049
2049
|
|
|
2050
2050
|
// src/mcp/constants.ts
|
|
2051
2051
|
var MAX_INTERACTIONS_PER_ELEMENT = 5;
|
|
2052
|
-
var
|
|
2052
|
+
var EDITOR_INTERACTIONS_MCP_SHORT_DESCRIPTION = `Everything related to V4 ( Atomic ) interactions.
|
|
2053
|
+
# Interactions
|
|
2054
|
+
- Create/update/delete interactions
|
|
2055
|
+
- Get list of interactions
|
|
2056
|
+
- Get details of an interaction
|
|
2057
|
+
`;
|
|
2058
|
+
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.
|
|
2053
2059
|
** IMPORTANT **
|
|
2054
2060
|
Use the "interactions-schema" resource to get the schema of the interactions.
|
|
2055
2061
|
Actions:
|
|
@@ -2058,7 +2064,7 @@ var EDITOR_INTERACTIONS_MCP_INSTRUCTIONS = `MCP server for managing element inte
|
|
|
2058
2064
|
- update: Update an existing interaction by its interactionId.
|
|
2059
2065
|
- delete: Remove a specific interaction by its interactionId.
|
|
2060
2066
|
- clear: Remove all interactions from the element.
|
|
2061
|
-
|
|
2067
|
+
|
|
2062
2068
|
For add/update, provide: trigger, effect, effectType, direction (required for slide effect), duration, delay, easing.
|
|
2063
2069
|
Use excludedBreakpoints to disable the animation on specific responsive breakpoints (e.g. ["mobile", "tablet"]).
|
|
2064
2070
|
Example Get Request:
|
|
@@ -2308,7 +2314,12 @@ function init() {
|
|
|
2308
2314
|
type: "repeat",
|
|
2309
2315
|
component: Repeat
|
|
2310
2316
|
});
|
|
2311
|
-
initMcpInteractions(
|
|
2317
|
+
initMcpInteractions(
|
|
2318
|
+
(0, import_editor_mcp.getMCPByDomain)("interactions", {
|
|
2319
|
+
docs: EDITOR_INTERACTIONS_MCP_DESCRIPTION,
|
|
2320
|
+
instructions: EDITOR_INTERACTIONS_MCP_SHORT_DESCRIPTION
|
|
2321
|
+
})
|
|
2322
|
+
);
|
|
2312
2323
|
} catch (error) {
|
|
2313
2324
|
throw error;
|
|
2314
2325
|
}
|