@elementor/editor-interactions 4.2.0-851 → 4.2.0-853
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/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-853",
|
|
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-853",
|
|
43
|
+
"@elementor/editor-elements": "4.2.0-853",
|
|
44
|
+
"@elementor/editor-mcp": "4.2.0-853",
|
|
45
|
+
"@elementor/editor-props": "4.2.0-853",
|
|
46
|
+
"@elementor/editor-responsive": "4.2.0-853",
|
|
47
|
+
"@elementor/editor-ui": "4.2.0-853",
|
|
48
|
+
"@elementor/editor-v1-adapters": "4.2.0-853",
|
|
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-853",
|
|
51
|
+
"@elementor/session": "4.2.0-853",
|
|
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-853",
|
|
54
|
+
"@elementor/events": "4.2.0-853",
|
|
55
55
|
"@wordpress/i18n": "^5.13.0"
|
|
56
56
|
},
|
|
57
57
|
"peerDependencies": {
|
|
@@ -23,6 +23,8 @@ const EMPTY_INTERACTIONS: ElementInteractions = {
|
|
|
23
23
|
|
|
24
24
|
const EFFECTS_WITHOUT_TYPE = [ 'custom' ];
|
|
25
25
|
|
|
26
|
+
const BREAKPOINTS_SCHEMA_URI = 'elementor://breakpoints/list';
|
|
27
|
+
|
|
26
28
|
export const initManageElementInteractionTool = ( reg: MCPRegistryEntry ) => {
|
|
27
29
|
const { addTool } = reg;
|
|
28
30
|
const extendedSchema = isProActive() ? { ...baseSchema, ...proSchema } : baseSchema;
|
|
@@ -44,6 +46,7 @@ export const initManageElementInteractionTool = ( reg: MCPRegistryEntry ) => {
|
|
|
44
46
|
schema,
|
|
45
47
|
requiredResources: [
|
|
46
48
|
{ uri: INTERACTIONS_SCHEMA_URI, description: 'Interactions schema with all available options' },
|
|
49
|
+
{ uri: BREAKPOINTS_SCHEMA_URI, description: 'Available breakpoint IDs for excludedBreakpoints' },
|
|
47
50
|
],
|
|
48
51
|
isDestructive: true,
|
|
49
52
|
outputSchema: {
|
package/src/mcp/tools/schema.ts
CHANGED
|
@@ -17,10 +17,10 @@ export const baseSchema = {
|
|
|
17
17
|
.optional()
|
|
18
18
|
.describe( 'Easing function for the animation. Use "easeIn" for free tier.' ),
|
|
19
19
|
excludedBreakpoints: z
|
|
20
|
-
.array( z.
|
|
20
|
+
.array( z.enum( [ 'widescreen', 'desktop', 'laptop', 'tablet_extra', 'tablet', 'mobile_extra', 'mobile' ] ) )
|
|
21
21
|
.optional()
|
|
22
22
|
.describe(
|
|
23
|
-
'Breakpoint IDs on which this interaction is disabled (e.g. ["mobile", "tablet"]). Omit to enable on all breakpoints.'
|
|
23
|
+
'Breakpoint IDs on which this interaction is disabled (e.g. ["mobile", "tablet"]). Fetch the "elementor://breakpoints/list" resource to get the valid IDs for the current site. Omit to enable on all breakpoints.'
|
|
24
24
|
),
|
|
25
25
|
};
|
|
26
26
|
|