@elementor/editor-interactions 4.2.0-840 → 4.2.0-842
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elementor/editor-interactions",
|
|
3
|
-
"version": "4.2.0-
|
|
3
|
+
"version": "4.2.0-842",
|
|
4
4
|
"private": false,
|
|
5
5
|
"author": "Elementor Team",
|
|
6
6
|
"homepage": "https://elementor.com/",
|
|
@@ -39,19 +39,19 @@
|
|
|
39
39
|
"dev": "tsup --config=../../tsup.dev.ts"
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@elementor/editor-controls": "4.2.0-
|
|
43
|
-
"@elementor/editor-elements": "4.2.0-
|
|
44
|
-
"@elementor/editor-mcp": "4.2.0-
|
|
45
|
-
"@elementor/editor-props": "4.2.0-
|
|
46
|
-
"@elementor/editor-responsive": "4.2.0-
|
|
47
|
-
"@elementor/editor-ui": "4.2.0-
|
|
48
|
-
"@elementor/editor-v1-adapters": "4.2.0-
|
|
42
|
+
"@elementor/editor-controls": "4.2.0-842",
|
|
43
|
+
"@elementor/editor-elements": "4.2.0-842",
|
|
44
|
+
"@elementor/editor-mcp": "4.2.0-842",
|
|
45
|
+
"@elementor/editor-props": "4.2.0-842",
|
|
46
|
+
"@elementor/editor-responsive": "4.2.0-842",
|
|
47
|
+
"@elementor/editor-ui": "4.2.0-842",
|
|
48
|
+
"@elementor/editor-v1-adapters": "4.2.0-842",
|
|
49
49
|
"@elementor/icons": "~1.75.1",
|
|
50
|
-
"@elementor/schema": "4.2.0-
|
|
51
|
-
"@elementor/session": "4.2.0-
|
|
50
|
+
"@elementor/schema": "4.2.0-842",
|
|
51
|
+
"@elementor/session": "4.2.0-842",
|
|
52
52
|
"@elementor/ui": "1.37.5",
|
|
53
|
-
"@elementor/utils": "4.2.0-
|
|
54
|
-
"@elementor/events": "4.2.0-
|
|
53
|
+
"@elementor/utils": "4.2.0-842",
|
|
54
|
+
"@elementor/events": "4.2.0-842",
|
|
55
55
|
"@wordpress/i18n": "^5.13.0"
|
|
56
56
|
},
|
|
57
57
|
"peerDependencies": {
|
package/src/init.ts
CHANGED
|
@@ -11,7 +11,11 @@ import { Trigger } from './components/controls/trigger';
|
|
|
11
11
|
import { initCleanInteractionIdsOnDuplicate } from './hooks/on-duplicate';
|
|
12
12
|
import { registerInteractionsControl } from './interactions-controls-registry';
|
|
13
13
|
import { interactionsRepository } from './interactions-repository';
|
|
14
|
-
import {
|
|
14
|
+
import {
|
|
15
|
+
EDITOR_INTERACTIONS_MCP_DESCRIPTION,
|
|
16
|
+
EDITOR_INTERACTIONS_MCP_SHORT_DESCRIPTION,
|
|
17
|
+
initMcpInteractions,
|
|
18
|
+
} from './mcp';
|
|
15
19
|
import { documentElementsInteractionsProvider } from './providers/document-elements-interactions-provider';
|
|
16
20
|
|
|
17
21
|
export function init() {
|
|
@@ -62,7 +66,12 @@ export function init() {
|
|
|
62
66
|
component: Repeat,
|
|
63
67
|
} );
|
|
64
68
|
|
|
65
|
-
initMcpInteractions(
|
|
69
|
+
initMcpInteractions(
|
|
70
|
+
getMCPByDomain( 'interactions', {
|
|
71
|
+
docs: EDITOR_INTERACTIONS_MCP_DESCRIPTION,
|
|
72
|
+
instructions: EDITOR_INTERACTIONS_MCP_SHORT_DESCRIPTION,
|
|
73
|
+
} )
|
|
74
|
+
);
|
|
66
75
|
} catch ( error ) {
|
|
67
76
|
throw error;
|
|
68
77
|
}
|
package/src/mcp/constants.ts
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
export const MAX_INTERACTIONS_PER_ELEMENT = 5;
|
|
2
|
-
export const
|
|
2
|
+
export const EDITOR_INTERACTIONS_MCP_SHORT_DESCRIPTION = `Everything related to V4 ( Atomic ) interactions.
|
|
3
|
+
# Interactions
|
|
4
|
+
- Create/update/delete interactions
|
|
5
|
+
- Get list of interactions
|
|
6
|
+
- Get details of an interaction
|
|
7
|
+
`;
|
|
8
|
+
export const 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.
|
|
3
9
|
** IMPORTANT **
|
|
4
10
|
Use the "interactions-schema" resource to get the schema of the interactions.
|
|
5
11
|
Actions:
|
|
@@ -8,7 +14,7 @@ export const EDITOR_INTERACTIONS_MCP_INSTRUCTIONS = `MCP server for managing ele
|
|
|
8
14
|
- update: Update an existing interaction by its interactionId.
|
|
9
15
|
- delete: Remove a specific interaction by its interactionId.
|
|
10
16
|
- clear: Remove all interactions from the element.
|
|
11
|
-
|
|
17
|
+
|
|
12
18
|
For add/update, provide: trigger, effect, effectType, direction (required for slide effect), duration, delay, easing.
|
|
13
19
|
Use excludedBreakpoints to disable the animation on specific responsive breakpoints (e.g. ["mobile", "tablet"]).
|
|
14
20
|
Example Get Request:
|