@elementor/editor-canvas 3.35.0-363 → 3.35.0-364

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 CHANGED
@@ -2589,6 +2589,11 @@ var initBuildCompositionsTool = (reg) => {
2589
2589
  { description: "Styles best practices", uri: BEST_PRACTICES_URI }
2590
2590
  ],
2591
2591
  outputSchema,
2592
+ modelPreferences: {
2593
+ hints: [{ name: "claude-sonnet" }],
2594
+ intelligencePriority: 0.95,
2595
+ speedPriority: 0.5
2596
+ },
2592
2597
  handler: async (params) => {
2593
2598
  let xml = null;
2594
2599
  const { xmlStructure, elementConfig, stylesConfig } = params;
@@ -2855,6 +2860,11 @@ var initConfigureElementTool = (reg) => {
2855
2860
  { description: "Widgets schema", uri: WIDGET_SCHEMA_URI },
2856
2861
  { description: "Styles schema", uri: STYLE_SCHEMA_URI }
2857
2862
  ],
2863
+ modelPreferences: {
2864
+ hints: [{ name: "claude-sonnet" }],
2865
+ intelligencePriority: 0.8,
2866
+ speedPriority: 0.7
2867
+ },
2858
2868
  handler: ({ elementId, propertiesToChange, elementType, stylePropertiesToChange }) => {
2859
2869
  const toUpdate = Object.entries(propertiesToChange);
2860
2870
  const { valid, errors } = validateInput.validatePropSchema(elementType, propertiesToChange);
@@ -2971,6 +2981,10 @@ var initGetElementConfigTool = (reg) => {
2971
2981
  description: "Retrieve the element's configuration PropValues for a specific element by unique ID.",
2972
2982
  schema,
2973
2983
  outputSchema: outputSchema3,
2984
+ modelPreferences: {
2985
+ intelligencePriority: 0.6,
2986
+ speedPriority: 0.9
2987
+ },
2974
2988
  handler: async ({ elementId }) => {
2975
2989
  const element = (0, import_editor_elements8.getContainer)(elementId);
2976
2990
  if (!element) {
package/dist/index.mjs CHANGED
@@ -2563,6 +2563,11 @@ var initBuildCompositionsTool = (reg) => {
2563
2563
  { description: "Styles best practices", uri: BEST_PRACTICES_URI }
2564
2564
  ],
2565
2565
  outputSchema,
2566
+ modelPreferences: {
2567
+ hints: [{ name: "claude-sonnet" }],
2568
+ intelligencePriority: 0.95,
2569
+ speedPriority: 0.5
2570
+ },
2566
2571
  handler: async (params) => {
2567
2572
  let xml = null;
2568
2573
  const { xmlStructure, elementConfig, stylesConfig } = params;
@@ -2829,6 +2834,11 @@ var initConfigureElementTool = (reg) => {
2829
2834
  { description: "Widgets schema", uri: WIDGET_SCHEMA_URI },
2830
2835
  { description: "Styles schema", uri: STYLE_SCHEMA_URI }
2831
2836
  ],
2837
+ modelPreferences: {
2838
+ hints: [{ name: "claude-sonnet" }],
2839
+ intelligencePriority: 0.8,
2840
+ speedPriority: 0.7
2841
+ },
2832
2842
  handler: ({ elementId, propertiesToChange, elementType, stylePropertiesToChange }) => {
2833
2843
  const toUpdate = Object.entries(propertiesToChange);
2834
2844
  const { valid, errors } = validateInput.validatePropSchema(elementType, propertiesToChange);
@@ -2945,6 +2955,10 @@ var initGetElementConfigTool = (reg) => {
2945
2955
  description: "Retrieve the element's configuration PropValues for a specific element by unique ID.",
2946
2956
  schema,
2947
2957
  outputSchema: outputSchema3,
2958
+ modelPreferences: {
2959
+ intelligencePriority: 0.6,
2960
+ speedPriority: 0.9
2961
+ },
2948
2962
  handler: async ({ elementId }) => {
2949
2963
  const element = getContainer2(elementId);
2950
2964
  if (!element) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@elementor/editor-canvas",
3
3
  "description": "Elementor Editor Canvas",
4
- "version": "3.35.0-363",
4
+ "version": "3.35.0-364",
5
5
  "private": false,
6
6
  "author": "Elementor Team",
7
7
  "homepage": "https://elementor.com/",
@@ -37,24 +37,24 @@
37
37
  "react-dom": "^18.3.1"
38
38
  },
39
39
  "dependencies": {
40
- "@elementor/editor": "3.35.0-363",
41
- "@elementor/editor-controls": "3.35.0-363",
42
- "@elementor/editor-documents": "3.35.0-363",
43
- "@elementor/editor-elements": "3.35.0-363",
44
- "@elementor/editor-interactions": "3.35.0-363",
45
- "@elementor/editor-mcp": "3.35.0-363",
46
- "@elementor/editor-notifications": "3.35.0-363",
47
- "@elementor/editor-props": "3.35.0-363",
48
- "@elementor/editor-responsive": "3.35.0-363",
49
- "@elementor/editor-styles": "3.35.0-363",
50
- "@elementor/editor-styles-repository": "3.35.0-363",
51
- "@elementor/editor-ui": "3.35.0-363",
52
- "@elementor/editor-v1-adapters": "3.35.0-363",
53
- "@elementor/schema": "3.35.0-363",
54
- "@elementor/twing": "3.35.0-363",
40
+ "@elementor/editor": "3.35.0-364",
41
+ "@elementor/editor-controls": "3.35.0-364",
42
+ "@elementor/editor-documents": "3.35.0-364",
43
+ "@elementor/editor-elements": "3.35.0-364",
44
+ "@elementor/editor-interactions": "3.35.0-364",
45
+ "@elementor/editor-mcp": "3.35.0-364",
46
+ "@elementor/editor-notifications": "3.35.0-364",
47
+ "@elementor/editor-props": "3.35.0-364",
48
+ "@elementor/editor-responsive": "3.35.0-364",
49
+ "@elementor/editor-styles": "3.35.0-364",
50
+ "@elementor/editor-styles-repository": "3.35.0-364",
51
+ "@elementor/editor-ui": "3.35.0-364",
52
+ "@elementor/editor-v1-adapters": "3.35.0-364",
53
+ "@elementor/schema": "3.35.0-364",
54
+ "@elementor/twing": "3.35.0-364",
55
55
  "@elementor/ui": "1.36.17",
56
- "@elementor/utils": "3.35.0-363",
57
- "@elementor/wp-media": "3.35.0-363",
56
+ "@elementor/utils": "3.35.0-364",
57
+ "@elementor/wp-media": "3.35.0-364",
58
58
  "@floating-ui/react": "^0.27.5",
59
59
  "@wordpress/i18n": "^5.13.0"
60
60
  },
@@ -29,6 +29,11 @@ export const initBuildCompositionsTool = ( reg: MCPRegistryEntry ) => {
29
29
  { description: 'Styles best practices', uri: BEST_PRACTICES_URI },
30
30
  ],
31
31
  outputSchema,
32
+ modelPreferences: {
33
+ hints: [ { name: 'claude-sonnet' } ],
34
+ intelligencePriority: 0.95,
35
+ speedPriority: 0.5,
36
+ },
32
37
  handler: async ( params ) => {
33
38
  let xml: Document | null = null;
34
39
  const { xmlStructure, elementConfig, stylesConfig } = params;
@@ -18,6 +18,11 @@ export const initConfigureElementTool = ( reg: MCPRegistryEntry ) => {
18
18
  { description: 'Widgets schema', uri: WIDGET_SCHEMA_URI },
19
19
  { description: 'Styles schema', uri: STYLE_SCHEMA_URI },
20
20
  ],
21
+ modelPreferences: {
22
+ hints: [ { name: 'claude-sonnet' } ],
23
+ intelligencePriority: 0.8,
24
+ speedPriority: 0.7,
25
+ },
21
26
  handler: ( { elementId, propertiesToChange, elementType, stylePropertiesToChange } ) => {
22
27
  const toUpdate = Object.entries( propertiesToChange );
23
28
  const { valid, errors } = validateInput.validatePropSchema( elementType, propertiesToChange );
@@ -50,6 +50,10 @@ export const initGetElementConfigTool = ( reg: MCPRegistryEntry ) => {
50
50
  description: "Retrieve the element's configuration PropValues for a specific element by unique ID.",
51
51
  schema,
52
52
  outputSchema,
53
+ modelPreferences: {
54
+ intelligencePriority: 0.6,
55
+ speedPriority: 0.9,
56
+ },
53
57
  handler: async ( { elementId } ) => {
54
58
  const element = getContainer( elementId );
55
59
  if ( ! element ) {