@elementor/editor-canvas 4.0.0-641 → 4.0.0-642
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 +41 -41
- package/dist/index.mjs +1 -1
- package/package.json +18 -18
- package/src/mcp/tools/build-composition/schema.ts +1 -1
package/dist/index.js
CHANGED
|
@@ -234,7 +234,7 @@ Variables from the user context ARE NOT SUPPORTED AND WILL RESOLVE IN ERROR.
|
|
|
234
234
|
|
|
235
235
|
// src/init.tsx
|
|
236
236
|
var import_editor = require("@elementor/editor");
|
|
237
|
-
var
|
|
237
|
+
var import_editor_mcp3 = require("@elementor/editor-mcp");
|
|
238
238
|
|
|
239
239
|
// src/components/classes-rename.tsx
|
|
240
240
|
var import_react = require("react");
|
|
@@ -3562,36 +3562,36 @@ Note: No height/width specified on any element - flexbox handles layout automati
|
|
|
3562
3562
|
};
|
|
3563
3563
|
|
|
3564
3564
|
// src/mcp/tools/build-composition/schema.ts
|
|
3565
|
-
var
|
|
3565
|
+
var import_schema = require("@elementor/schema");
|
|
3566
3566
|
var inputSchema = {
|
|
3567
|
-
xmlStructure:
|
|
3568
|
-
elementConfig:
|
|
3569
|
-
|
|
3570
|
-
|
|
3571
|
-
|
|
3572
|
-
|
|
3567
|
+
xmlStructure: import_schema.z.string().describe("The XML structure representing the composition to be built"),
|
|
3568
|
+
elementConfig: import_schema.z.record(
|
|
3569
|
+
import_schema.z.string().describe("The configuration id"),
|
|
3570
|
+
import_schema.z.record(
|
|
3571
|
+
import_schema.z.string().describe("property name"),
|
|
3572
|
+
import_schema.z.any().describe(`The PropValue for the property, refer to ${WIDGET_SCHEMA_URI}`)
|
|
3573
3573
|
)
|
|
3574
3574
|
).describe("A record mapping element IDs to their configuration objects. REQUIRED"),
|
|
3575
|
-
stylesConfig:
|
|
3576
|
-
|
|
3577
|
-
|
|
3578
|
-
|
|
3579
|
-
|
|
3575
|
+
stylesConfig: import_schema.z.record(
|
|
3576
|
+
import_schema.z.string().describe("The configuration id"),
|
|
3577
|
+
import_schema.z.record(
|
|
3578
|
+
import_schema.z.string().describe("StyleSchema property name"),
|
|
3579
|
+
import_schema.z.any().describe(`The PropValue for the style property. MANDATORY, refer to [${STYLE_SCHEMA_URI}]`)
|
|
3580
3580
|
)
|
|
3581
3581
|
).describe(
|
|
3582
3582
|
`A record mapping element IDs to their styles configuration objects. Use the actual styles schema from [${STYLE_SCHEMA_URI}].`
|
|
3583
3583
|
).default({}),
|
|
3584
|
-
customCSS:
|
|
3585
|
-
|
|
3586
|
-
|
|
3584
|
+
customCSS: import_schema.z.record(
|
|
3585
|
+
import_schema.z.string().describe("The configuration id"),
|
|
3586
|
+
import_schema.z.string().describe("The custom CSS for the element. MANDATORY")
|
|
3587
3587
|
).describe("A record mapping element IDs to their custom CSS.").default({})
|
|
3588
3588
|
};
|
|
3589
3589
|
var outputSchema = {
|
|
3590
|
-
errors:
|
|
3591
|
-
xmlStructure:
|
|
3590
|
+
errors: import_schema.z.string().describe("Error message if the composition building failed").optional(),
|
|
3591
|
+
xmlStructure: import_schema.z.string().describe(
|
|
3592
3592
|
"The built XML structure as a string. Must use this XML after completion of building the composition, it contains real IDs."
|
|
3593
3593
|
).optional(),
|
|
3594
|
-
llm_instructions:
|
|
3594
|
+
llm_instructions: import_schema.z.string().describe("Instructions what to do next, Important to follow these instructions!").optional()
|
|
3595
3595
|
};
|
|
3596
3596
|
|
|
3597
3597
|
// src/mcp/tools/build-composition/tool.ts
|
|
@@ -3806,23 +3806,23 @@ The $$type property is MANDATORY for every value, it is required to parse the va
|
|
|
3806
3806
|
`;
|
|
3807
3807
|
|
|
3808
3808
|
// src/mcp/tools/configure-element/schema.ts
|
|
3809
|
-
var
|
|
3809
|
+
var import_schema3 = require("@elementor/schema");
|
|
3810
3810
|
var inputSchema2 = {
|
|
3811
|
-
propertiesToChange:
|
|
3812
|
-
|
|
3813
|
-
|
|
3814
|
-
|
|
3811
|
+
propertiesToChange: import_schema3.z.record(
|
|
3812
|
+
import_schema3.z.string().describe("The property name."),
|
|
3813
|
+
import_schema3.z.any().describe(`PropValue, refer to [${WIDGET_SCHEMA_URI}] by correct type, as appears in elementType`),
|
|
3814
|
+
import_schema3.z.any()
|
|
3815
3815
|
).describe("An object record containing property names and their new values to be set on the element"),
|
|
3816
|
-
stylePropertiesToChange:
|
|
3817
|
-
|
|
3818
|
-
|
|
3819
|
-
|
|
3816
|
+
stylePropertiesToChange: import_schema3.z.record(
|
|
3817
|
+
import_schema3.z.string().describe("The style property name"),
|
|
3818
|
+
import_schema3.z.any().describe(`The style PropValue, refer to [${STYLE_SCHEMA_URI}] how to generate values`),
|
|
3819
|
+
import_schema3.z.any()
|
|
3820
3820
|
).describe("An object record containing style property names and their new values to be set on the element").default({}),
|
|
3821
|
-
elementType:
|
|
3822
|
-
elementId:
|
|
3821
|
+
elementType: import_schema3.z.string().describe("The type of the element to retreive the schema"),
|
|
3822
|
+
elementId: import_schema3.z.string().describe("The unique id of the element to configure")
|
|
3823
3823
|
};
|
|
3824
3824
|
var outputSchema2 = {
|
|
3825
|
-
success:
|
|
3825
|
+
success: import_schema3.z.boolean().describe(
|
|
3826
3826
|
"Whether the configuration change was successful, only if propertyName and propertyValue are provided"
|
|
3827
3827
|
)
|
|
3828
3828
|
};
|
|
@@ -3928,18 +3928,18 @@ Check the styles schema at the resource [${STYLE_SCHEMA_URI.replace(
|
|
|
3928
3928
|
// src/mcp/tools/get-element-config/tool.ts
|
|
3929
3929
|
var import_editor_elements11 = require("@elementor/editor-elements");
|
|
3930
3930
|
var import_editor_props8 = require("@elementor/editor-props");
|
|
3931
|
-
var
|
|
3931
|
+
var import_schema5 = require("@elementor/schema");
|
|
3932
3932
|
var schema = {
|
|
3933
|
-
elementId:
|
|
3933
|
+
elementId: import_schema5.z.string()
|
|
3934
3934
|
};
|
|
3935
3935
|
var outputSchema3 = {
|
|
3936
|
-
properties:
|
|
3937
|
-
style:
|
|
3938
|
-
childElements:
|
|
3939
|
-
|
|
3940
|
-
id:
|
|
3941
|
-
elementType:
|
|
3942
|
-
childElements:
|
|
3936
|
+
properties: import_schema5.z.record(import_schema5.z.string(), import_schema5.z.any()).describe("A record mapping PropTypes to their corresponding PropValues"),
|
|
3937
|
+
style: import_schema5.z.record(import_schema5.z.string(), import_schema5.z.any()).describe("A record mapping StyleSchema properties to their corresponding PropValues"),
|
|
3938
|
+
childElements: import_schema5.z.array(
|
|
3939
|
+
import_schema5.z.object({
|
|
3940
|
+
id: import_schema5.z.string(),
|
|
3941
|
+
elementType: import_schema5.z.string(),
|
|
3942
|
+
childElements: import_schema5.z.array(import_schema5.z.any()).describe("An array of child element IDs, when applicable, same structure recursively")
|
|
3943
3943
|
})
|
|
3944
3944
|
).describe("An array of child element IDs, when applicable, with recursive structure")
|
|
3945
3945
|
};
|
|
@@ -4514,7 +4514,7 @@ function init() {
|
|
|
4514
4514
|
component: ClassesRename
|
|
4515
4515
|
});
|
|
4516
4516
|
initCanvasMcp(
|
|
4517
|
-
(0,
|
|
4517
|
+
(0, import_editor_mcp3.getMCPByDomain)("canvas", {
|
|
4518
4518
|
instructions: mcpDescription
|
|
4519
4519
|
})
|
|
4520
4520
|
);
|
package/dist/index.mjs
CHANGED
|
@@ -3548,7 +3548,7 @@ Note: No height/width specified on any element - flexbox handles layout automati
|
|
|
3548
3548
|
};
|
|
3549
3549
|
|
|
3550
3550
|
// src/mcp/tools/build-composition/schema.ts
|
|
3551
|
-
import {
|
|
3551
|
+
import { z } from "@elementor/schema";
|
|
3552
3552
|
var inputSchema = {
|
|
3553
3553
|
xmlStructure: z.string().describe("The XML structure representing the composition to be built"),
|
|
3554
3554
|
elementConfig: z.record(
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elementor/editor-canvas",
|
|
3
3
|
"description": "Elementor Editor Canvas",
|
|
4
|
-
"version": "4.0.0-
|
|
4
|
+
"version": "4.0.0-642",
|
|
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": "4.0.0-
|
|
41
|
-
"@elementor/editor-controls": "4.0.0-
|
|
42
|
-
"@elementor/editor-documents": "4.0.0-
|
|
43
|
-
"@elementor/editor-elements": "4.0.0-
|
|
44
|
-
"@elementor/editor-interactions": "4.0.0-
|
|
45
|
-
"@elementor/editor-mcp": "4.0.0-
|
|
46
|
-
"@elementor/editor-notifications": "4.0.0-
|
|
47
|
-
"@elementor/editor-props": "4.0.0-
|
|
48
|
-
"@elementor/editor-responsive": "4.0.0-
|
|
49
|
-
"@elementor/editor-styles": "4.0.0-
|
|
50
|
-
"@elementor/editor-styles-repository": "4.0.0-
|
|
51
|
-
"@elementor/editor-ui": "4.0.0-
|
|
52
|
-
"@elementor/editor-v1-adapters": "4.0.0-
|
|
53
|
-
"@elementor/schema": "4.0.0-
|
|
54
|
-
"@elementor/twing": "4.0.0-
|
|
40
|
+
"@elementor/editor": "4.0.0-642",
|
|
41
|
+
"@elementor/editor-controls": "4.0.0-642",
|
|
42
|
+
"@elementor/editor-documents": "4.0.0-642",
|
|
43
|
+
"@elementor/editor-elements": "4.0.0-642",
|
|
44
|
+
"@elementor/editor-interactions": "4.0.0-642",
|
|
45
|
+
"@elementor/editor-mcp": "4.0.0-642",
|
|
46
|
+
"@elementor/editor-notifications": "4.0.0-642",
|
|
47
|
+
"@elementor/editor-props": "4.0.0-642",
|
|
48
|
+
"@elementor/editor-responsive": "4.0.0-642",
|
|
49
|
+
"@elementor/editor-styles": "4.0.0-642",
|
|
50
|
+
"@elementor/editor-styles-repository": "4.0.0-642",
|
|
51
|
+
"@elementor/editor-ui": "4.0.0-642",
|
|
52
|
+
"@elementor/editor-v1-adapters": "4.0.0-642",
|
|
53
|
+
"@elementor/schema": "4.0.0-642",
|
|
54
|
+
"@elementor/twing": "4.0.0-642",
|
|
55
55
|
"@elementor/ui": "1.36.17",
|
|
56
|
-
"@elementor/utils": "4.0.0-
|
|
57
|
-
"@elementor/wp-media": "4.0.0-
|
|
56
|
+
"@elementor/utils": "4.0.0-642",
|
|
57
|
+
"@elementor/wp-media": "4.0.0-642",
|
|
58
58
|
"@floating-ui/react": "^0.27.5",
|
|
59
59
|
"@wordpress/i18n": "^5.13.0"
|
|
60
60
|
},
|