@elementor/editor-canvas 4.1.0-827 → 4.1.0-829
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 +13 -13
- package/dist/index.mjs +13 -13
- package/package.json +18 -18
- package/src/composition-builder/composition-builder.ts +5 -5
- package/src/mcp/tools/build-composition/prompt.ts +1 -1
- package/src/mcp/tools/configure-element/prompt.ts +6 -6
- package/src/mcp/tools/configure-element/schema.ts +1 -1
- package/src/mcp/utils/do-update-element-property.ts +1 -1
package/dist/index.js
CHANGED
|
@@ -4074,7 +4074,7 @@ var validateInput = {
|
|
|
4074
4074
|
var CompositionBuilder = class _CompositionBuilder {
|
|
4075
4075
|
elementConfig = {};
|
|
4076
4076
|
elementStylesConfig = {};
|
|
4077
|
-
|
|
4077
|
+
elementCustomCSS = {};
|
|
4078
4078
|
rootContainers = [];
|
|
4079
4079
|
api = {
|
|
4080
4080
|
createElement: import_editor_elements13.createElement,
|
|
@@ -4111,7 +4111,7 @@ var CompositionBuilder = class _CompositionBuilder {
|
|
|
4111
4111
|
this.elementStylesConfig = config;
|
|
4112
4112
|
}
|
|
4113
4113
|
setCustomCSS(config) {
|
|
4114
|
-
this.
|
|
4114
|
+
this.elementCustomCSS = config;
|
|
4115
4115
|
}
|
|
4116
4116
|
getXML() {
|
|
4117
4117
|
return this.xml;
|
|
@@ -4191,7 +4191,7 @@ var CompositionBuilder = class _CompositionBuilder {
|
|
|
4191
4191
|
const allConfigIds = /* @__PURE__ */ new Set([
|
|
4192
4192
|
...Object.keys(this.elementConfig),
|
|
4193
4193
|
...Object.keys(this.elementStylesConfig),
|
|
4194
|
-
...Object.keys(this.
|
|
4194
|
+
...Object.keys(this.elementCustomCSS)
|
|
4195
4195
|
]);
|
|
4196
4196
|
for (const configId of allConfigIds) {
|
|
4197
4197
|
let element, node;
|
|
@@ -4202,7 +4202,7 @@ var CompositionBuilder = class _CompositionBuilder {
|
|
|
4202
4202
|
if (this.elementConfig[configId]) {
|
|
4203
4203
|
configErrors.push(msg);
|
|
4204
4204
|
}
|
|
4205
|
-
if (this.elementStylesConfig[configId] || this.
|
|
4205
|
+
if (this.elementStylesConfig[configId] || this.elementCustomCSS[configId]) {
|
|
4206
4206
|
styleErrors.push(msg);
|
|
4207
4207
|
}
|
|
4208
4208
|
continue;
|
|
@@ -4252,7 +4252,7 @@ var CompositionBuilder = class _CompositionBuilder {
|
|
|
4252
4252
|
}
|
|
4253
4253
|
}
|
|
4254
4254
|
}
|
|
4255
|
-
const customCSS = this.
|
|
4255
|
+
const customCSS = this.elementCustomCSS[configId];
|
|
4256
4256
|
if (customCSS) {
|
|
4257
4257
|
try {
|
|
4258
4258
|
this.api.doUpdateElementProperty({
|
|
@@ -4325,7 +4325,7 @@ var generatePrompt = () => {
|
|
|
4325
4325
|
- [elementor://global-variables] - ONLY use variables defined here
|
|
4326
4326
|
- [${AVAILABLE_WIDGETS_URI}/v4]
|
|
4327
4327
|
|
|
4328
|
-
# TOOL
|
|
4328
|
+
# TOOL SUPPORT
|
|
4329
4329
|
This tool support v4 elements only
|
|
4330
4330
|
|
|
4331
4331
|
# WORKFLOW
|
|
@@ -4640,11 +4640,11 @@ var configureElementToolPrompt = `Configure an existing element on the page.
|
|
|
4640
4640
|
2. [${STYLE_SCHEMA_URI}]
|
|
4641
4641
|
Required to understand the styles schema for the widgets. All widgets share the same styles schema, grouped by categories.
|
|
4642
4642
|
Use this resource to understand which style properties are available for each element, and how to structure the "stylePropertiesToChange" parameter.
|
|
4643
|
-
3. If not sure about the PropValues schema, you can use the "get-element-configuration-values" tool to
|
|
4643
|
+
3. If not sure about the PropValues schema, you can use the "get-element-configuration-values" tool to retrieve the current PropValues configuration of the element.
|
|
4644
4644
|
|
|
4645
4645
|
Before using this tool, check the definitions of the elements PropTypes at the resource "widget-schema-by-type" at editor-canvas__elementor://widgets/schema/{widgetType}
|
|
4646
4646
|
All widgets share a common _style property for styling, which uses the common styles schema.
|
|
4647
|
-
|
|
4647
|
+
Retrieve and check the common styles schema at the resource list "styles-schema" at editor-canvas__elementor://styles/schema/{category}
|
|
4648
4648
|
|
|
4649
4649
|
# Parameters
|
|
4650
4650
|
- propertiesToChange: An object containing the properties to change, with their new values. MANDATORY. When updating a style only, provide an empty object.
|
|
@@ -4673,19 +4673,19 @@ PropValue structure:
|
|
|
4673
4673
|
}
|
|
4674
4674
|
|
|
4675
4675
|
<IMPORTANT>
|
|
4676
|
-
ALWAYS MAKE SURE you have the PropType schemas for the element you are configuring, and the common-styles schema for styling. If you are not sure,
|
|
4676
|
+
ALWAYS MAKE SURE you have the PropType schemas for the element you are configuring, and the common-styles schema for styling. If you are not sure, retrieve the schema from the resources mentioned above.
|
|
4677
4677
|
</IMPORTANT>
|
|
4678
4678
|
|
|
4679
4679
|
You can use multiple property changes at once by providing multiple entries in the propertiesToChange object, including _style alongside non-style props.
|
|
4680
4680
|
Some properties are nested, use the root property name, then objects with nested values inside, as the complete schema suggests.
|
|
4681
4681
|
|
|
4682
|
-
Make sure you have the "widget-schema-by-type" resource available to
|
|
4683
|
-
Make sure you have to "styles-schema" resources available to
|
|
4682
|
+
Make sure you have the "widget-schema-by-type" resource available to retrieve the PropType schema for the element type you are configuring.
|
|
4683
|
+
Make sure you have to "styles-schema" resources available to retrieve the common styles schema.
|
|
4684
4684
|
|
|
4685
4685
|
# How to configure elements
|
|
4686
4686
|
We use a dedicated PropType Schema for configuring elements, including styles. When you configure an element, you must use the EXACT PropType Value as defined in the schema.
|
|
4687
4687
|
For styleProperties, use the style schema provided, as it also uses the PropType format.
|
|
4688
|
-
For all non-primitive types, provide the key property as defined in the schema as $$type in the generated
|
|
4688
|
+
For all non-primitive types, provide the key property as defined in the schema as $$type in the generated object, as it is MANDATORY for parsing.
|
|
4689
4689
|
|
|
4690
4690
|
Use the EXACT "PROP-TYPE" Schema given, and ALWAYS include the "key" property from the original configuration for every property you are changing.
|
|
4691
4691
|
|
|
@@ -4741,7 +4741,7 @@ var inputSchema2 = {
|
|
|
4741
4741
|
import_schema3.z.any().describe(`The style PropValue, refer to [${STYLE_SCHEMA_URI}] how to generate values`),
|
|
4742
4742
|
import_schema3.z.any()
|
|
4743
4743
|
).describe("An object record containing style property names and their new values to be set on the element").default({}),
|
|
4744
|
-
elementType: import_schema3.z.string().describe("The type of the element to
|
|
4744
|
+
elementType: import_schema3.z.string().describe("The type of the element to retrieve the schema"),
|
|
4745
4745
|
elementId: import_schema3.z.string().describe("The unique id of the element to configure")
|
|
4746
4746
|
};
|
|
4747
4747
|
var outputSchema2 = {
|
package/dist/index.mjs
CHANGED
|
@@ -4068,7 +4068,7 @@ var validateInput = {
|
|
|
4068
4068
|
var CompositionBuilder = class _CompositionBuilder {
|
|
4069
4069
|
elementConfig = {};
|
|
4070
4070
|
elementStylesConfig = {};
|
|
4071
|
-
|
|
4071
|
+
elementCustomCSS = {};
|
|
4072
4072
|
rootContainers = [];
|
|
4073
4073
|
api = {
|
|
4074
4074
|
createElement: createElement7,
|
|
@@ -4105,7 +4105,7 @@ var CompositionBuilder = class _CompositionBuilder {
|
|
|
4105
4105
|
this.elementStylesConfig = config;
|
|
4106
4106
|
}
|
|
4107
4107
|
setCustomCSS(config) {
|
|
4108
|
-
this.
|
|
4108
|
+
this.elementCustomCSS = config;
|
|
4109
4109
|
}
|
|
4110
4110
|
getXML() {
|
|
4111
4111
|
return this.xml;
|
|
@@ -4185,7 +4185,7 @@ var CompositionBuilder = class _CompositionBuilder {
|
|
|
4185
4185
|
const allConfigIds = /* @__PURE__ */ new Set([
|
|
4186
4186
|
...Object.keys(this.elementConfig),
|
|
4187
4187
|
...Object.keys(this.elementStylesConfig),
|
|
4188
|
-
...Object.keys(this.
|
|
4188
|
+
...Object.keys(this.elementCustomCSS)
|
|
4189
4189
|
]);
|
|
4190
4190
|
for (const configId of allConfigIds) {
|
|
4191
4191
|
let element, node;
|
|
@@ -4196,7 +4196,7 @@ var CompositionBuilder = class _CompositionBuilder {
|
|
|
4196
4196
|
if (this.elementConfig[configId]) {
|
|
4197
4197
|
configErrors.push(msg);
|
|
4198
4198
|
}
|
|
4199
|
-
if (this.elementStylesConfig[configId] || this.
|
|
4199
|
+
if (this.elementStylesConfig[configId] || this.elementCustomCSS[configId]) {
|
|
4200
4200
|
styleErrors.push(msg);
|
|
4201
4201
|
}
|
|
4202
4202
|
continue;
|
|
@@ -4246,7 +4246,7 @@ var CompositionBuilder = class _CompositionBuilder {
|
|
|
4246
4246
|
}
|
|
4247
4247
|
}
|
|
4248
4248
|
}
|
|
4249
|
-
const customCSS = this.
|
|
4249
|
+
const customCSS = this.elementCustomCSS[configId];
|
|
4250
4250
|
if (customCSS) {
|
|
4251
4251
|
try {
|
|
4252
4252
|
this.api.doUpdateElementProperty({
|
|
@@ -4319,7 +4319,7 @@ var generatePrompt = () => {
|
|
|
4319
4319
|
- [elementor://global-variables] - ONLY use variables defined here
|
|
4320
4320
|
- [${AVAILABLE_WIDGETS_URI}/v4]
|
|
4321
4321
|
|
|
4322
|
-
# TOOL
|
|
4322
|
+
# TOOL SUPPORT
|
|
4323
4323
|
This tool support v4 elements only
|
|
4324
4324
|
|
|
4325
4325
|
# WORKFLOW
|
|
@@ -4634,11 +4634,11 @@ var configureElementToolPrompt = `Configure an existing element on the page.
|
|
|
4634
4634
|
2. [${STYLE_SCHEMA_URI}]
|
|
4635
4635
|
Required to understand the styles schema for the widgets. All widgets share the same styles schema, grouped by categories.
|
|
4636
4636
|
Use this resource to understand which style properties are available for each element, and how to structure the "stylePropertiesToChange" parameter.
|
|
4637
|
-
3. If not sure about the PropValues schema, you can use the "get-element-configuration-values" tool to
|
|
4637
|
+
3. If not sure about the PropValues schema, you can use the "get-element-configuration-values" tool to retrieve the current PropValues configuration of the element.
|
|
4638
4638
|
|
|
4639
4639
|
Before using this tool, check the definitions of the elements PropTypes at the resource "widget-schema-by-type" at editor-canvas__elementor://widgets/schema/{widgetType}
|
|
4640
4640
|
All widgets share a common _style property for styling, which uses the common styles schema.
|
|
4641
|
-
|
|
4641
|
+
Retrieve and check the common styles schema at the resource list "styles-schema" at editor-canvas__elementor://styles/schema/{category}
|
|
4642
4642
|
|
|
4643
4643
|
# Parameters
|
|
4644
4644
|
- propertiesToChange: An object containing the properties to change, with their new values. MANDATORY. When updating a style only, provide an empty object.
|
|
@@ -4667,19 +4667,19 @@ PropValue structure:
|
|
|
4667
4667
|
}
|
|
4668
4668
|
|
|
4669
4669
|
<IMPORTANT>
|
|
4670
|
-
ALWAYS MAKE SURE you have the PropType schemas for the element you are configuring, and the common-styles schema for styling. If you are not sure,
|
|
4670
|
+
ALWAYS MAKE SURE you have the PropType schemas for the element you are configuring, and the common-styles schema for styling. If you are not sure, retrieve the schema from the resources mentioned above.
|
|
4671
4671
|
</IMPORTANT>
|
|
4672
4672
|
|
|
4673
4673
|
You can use multiple property changes at once by providing multiple entries in the propertiesToChange object, including _style alongside non-style props.
|
|
4674
4674
|
Some properties are nested, use the root property name, then objects with nested values inside, as the complete schema suggests.
|
|
4675
4675
|
|
|
4676
|
-
Make sure you have the "widget-schema-by-type" resource available to
|
|
4677
|
-
Make sure you have to "styles-schema" resources available to
|
|
4676
|
+
Make sure you have the "widget-schema-by-type" resource available to retrieve the PropType schema for the element type you are configuring.
|
|
4677
|
+
Make sure you have to "styles-schema" resources available to retrieve the common styles schema.
|
|
4678
4678
|
|
|
4679
4679
|
# How to configure elements
|
|
4680
4680
|
We use a dedicated PropType Schema for configuring elements, including styles. When you configure an element, you must use the EXACT PropType Value as defined in the schema.
|
|
4681
4681
|
For styleProperties, use the style schema provided, as it also uses the PropType format.
|
|
4682
|
-
For all non-primitive types, provide the key property as defined in the schema as $$type in the generated
|
|
4682
|
+
For all non-primitive types, provide the key property as defined in the schema as $$type in the generated object, as it is MANDATORY for parsing.
|
|
4683
4683
|
|
|
4684
4684
|
Use the EXACT "PROP-TYPE" Schema given, and ALWAYS include the "key" property from the original configuration for every property you are changing.
|
|
4685
4685
|
|
|
@@ -4735,7 +4735,7 @@ var inputSchema2 = {
|
|
|
4735
4735
|
z2.any().describe(`The style PropValue, refer to [${STYLE_SCHEMA_URI}] how to generate values`),
|
|
4736
4736
|
z2.any()
|
|
4737
4737
|
).describe("An object record containing style property names and their new values to be set on the element").default({}),
|
|
4738
|
-
elementType: z2.string().describe("The type of the element to
|
|
4738
|
+
elementType: z2.string().describe("The type of the element to retrieve the schema"),
|
|
4739
4739
|
elementId: z2.string().describe("The unique id of the element to configure")
|
|
4740
4740
|
};
|
|
4741
4741
|
var outputSchema2 = {
|
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.1.0-
|
|
4
|
+
"version": "4.1.0-829",
|
|
5
5
|
"private": false,
|
|
6
6
|
"author": "Elementor Team",
|
|
7
7
|
"homepage": "https://elementor.com/",
|
|
@@ -37,25 +37,25 @@
|
|
|
37
37
|
"react-dom": "^18.3.1"
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@elementor/editor": "4.1.0-
|
|
40
|
+
"@elementor/editor": "4.1.0-829",
|
|
41
41
|
"dompurify": "^3.2.6",
|
|
42
|
-
"@elementor/editor-controls": "4.1.0-
|
|
43
|
-
"@elementor/editor-documents": "4.1.0-
|
|
44
|
-
"@elementor/editor-elements": "4.1.0-
|
|
45
|
-
"@elementor/editor-interactions": "4.1.0-
|
|
46
|
-
"@elementor/editor-mcp": "4.1.0-
|
|
47
|
-
"@elementor/editor-notifications": "4.1.0-
|
|
48
|
-
"@elementor/editor-props": "4.1.0-
|
|
49
|
-
"@elementor/editor-responsive": "4.1.0-
|
|
50
|
-
"@elementor/editor-styles": "4.1.0-
|
|
51
|
-
"@elementor/editor-styles-repository": "4.1.0-
|
|
52
|
-
"@elementor/editor-ui": "4.1.0-
|
|
53
|
-
"@elementor/editor-v1-adapters": "4.1.0-
|
|
54
|
-
"@elementor/schema": "4.1.0-
|
|
55
|
-
"@elementor/twing": "4.1.0-
|
|
42
|
+
"@elementor/editor-controls": "4.1.0-829",
|
|
43
|
+
"@elementor/editor-documents": "4.1.0-829",
|
|
44
|
+
"@elementor/editor-elements": "4.1.0-829",
|
|
45
|
+
"@elementor/editor-interactions": "4.1.0-829",
|
|
46
|
+
"@elementor/editor-mcp": "4.1.0-829",
|
|
47
|
+
"@elementor/editor-notifications": "4.1.0-829",
|
|
48
|
+
"@elementor/editor-props": "4.1.0-829",
|
|
49
|
+
"@elementor/editor-responsive": "4.1.0-829",
|
|
50
|
+
"@elementor/editor-styles": "4.1.0-829",
|
|
51
|
+
"@elementor/editor-styles-repository": "4.1.0-829",
|
|
52
|
+
"@elementor/editor-ui": "4.1.0-829",
|
|
53
|
+
"@elementor/editor-v1-adapters": "4.1.0-829",
|
|
54
|
+
"@elementor/schema": "4.1.0-829",
|
|
55
|
+
"@elementor/twing": "4.1.0-829",
|
|
56
56
|
"@elementor/ui": "1.37.5",
|
|
57
|
-
"@elementor/utils": "4.1.0-
|
|
58
|
-
"@elementor/wp-media": "4.1.0-
|
|
57
|
+
"@elementor/utils": "4.1.0-829",
|
|
58
|
+
"@elementor/wp-media": "4.1.0-829",
|
|
59
59
|
"@floating-ui/react": "^0.27.5",
|
|
60
60
|
"@wordpress/i18n": "^5.13.0"
|
|
61
61
|
},
|
|
@@ -34,7 +34,7 @@ type CtorOptions = {
|
|
|
34
34
|
export class CompositionBuilder {
|
|
35
35
|
private elementConfig: Record< string, Record< string, AnyValue > > = {};
|
|
36
36
|
private elementStylesConfig: Record< string, Record< string, AnyValue > > = {};
|
|
37
|
-
private
|
|
37
|
+
private elementCustomCSS: Record< string, string > = {};
|
|
38
38
|
private rootContainers: V1Element[] = [];
|
|
39
39
|
private api: API = {
|
|
40
40
|
createElement,
|
|
@@ -76,7 +76,7 @@ export class CompositionBuilder {
|
|
|
76
76
|
}
|
|
77
77
|
|
|
78
78
|
setCustomCSS( config: Record< string, string > ) {
|
|
79
|
-
this.
|
|
79
|
+
this.elementCustomCSS = config;
|
|
80
80
|
}
|
|
81
81
|
|
|
82
82
|
getXML() {
|
|
@@ -176,7 +176,7 @@ export class CompositionBuilder {
|
|
|
176
176
|
const allConfigIds = new Set( [
|
|
177
177
|
...Object.keys( this.elementConfig ),
|
|
178
178
|
...Object.keys( this.elementStylesConfig ),
|
|
179
|
-
...Object.keys( this.
|
|
179
|
+
...Object.keys( this.elementCustomCSS ),
|
|
180
180
|
] );
|
|
181
181
|
|
|
182
182
|
for ( const configId of allConfigIds ) {
|
|
@@ -188,7 +188,7 @@ export class CompositionBuilder {
|
|
|
188
188
|
if ( this.elementConfig[ configId ] ) {
|
|
189
189
|
configErrors.push( msg );
|
|
190
190
|
}
|
|
191
|
-
if ( this.elementStylesConfig[ configId ] || this.
|
|
191
|
+
if ( this.elementStylesConfig[ configId ] || this.elementCustomCSS[ configId ] ) {
|
|
192
192
|
styleErrors.push( msg );
|
|
193
193
|
}
|
|
194
194
|
continue;
|
|
@@ -241,7 +241,7 @@ export class CompositionBuilder {
|
|
|
241
241
|
}
|
|
242
242
|
}
|
|
243
243
|
|
|
244
|
-
const customCSS = this.
|
|
244
|
+
const customCSS = this.elementCustomCSS[ configId ];
|
|
245
245
|
if ( customCSS ) {
|
|
246
246
|
try {
|
|
247
247
|
this.api.doUpdateElementProperty( {
|
|
@@ -9,11 +9,11 @@ export const configureElementToolPrompt = `Configure an existing element on the
|
|
|
9
9
|
2. [${ STYLE_SCHEMA_URI }]
|
|
10
10
|
Required to understand the styles schema for the widgets. All widgets share the same styles schema, grouped by categories.
|
|
11
11
|
Use this resource to understand which style properties are available for each element, and how to structure the "stylePropertiesToChange" parameter.
|
|
12
|
-
3. If not sure about the PropValues schema, you can use the "get-element-configuration-values" tool to
|
|
12
|
+
3. If not sure about the PropValues schema, you can use the "get-element-configuration-values" tool to retrieve the current PropValues configuration of the element.
|
|
13
13
|
|
|
14
14
|
Before using this tool, check the definitions of the elements PropTypes at the resource "widget-schema-by-type" at editor-canvas__elementor://widgets/schema/{widgetType}
|
|
15
15
|
All widgets share a common _style property for styling, which uses the common styles schema.
|
|
16
|
-
|
|
16
|
+
Retrieve and check the common styles schema at the resource list "styles-schema" at editor-canvas__elementor://styles/schema/{category}
|
|
17
17
|
|
|
18
18
|
# Parameters
|
|
19
19
|
- propertiesToChange: An object containing the properties to change, with their new values. MANDATORY. When updating a style only, provide an empty object.
|
|
@@ -42,19 +42,19 @@ PropValue structure:
|
|
|
42
42
|
}
|
|
43
43
|
|
|
44
44
|
<IMPORTANT>
|
|
45
|
-
ALWAYS MAKE SURE you have the PropType schemas for the element you are configuring, and the common-styles schema for styling. If you are not sure,
|
|
45
|
+
ALWAYS MAKE SURE you have the PropType schemas for the element you are configuring, and the common-styles schema for styling. If you are not sure, retrieve the schema from the resources mentioned above.
|
|
46
46
|
</IMPORTANT>
|
|
47
47
|
|
|
48
48
|
You can use multiple property changes at once by providing multiple entries in the propertiesToChange object, including _style alongside non-style props.
|
|
49
49
|
Some properties are nested, use the root property name, then objects with nested values inside, as the complete schema suggests.
|
|
50
50
|
|
|
51
|
-
Make sure you have the "widget-schema-by-type" resource available to
|
|
52
|
-
Make sure you have to "styles-schema" resources available to
|
|
51
|
+
Make sure you have the "widget-schema-by-type" resource available to retrieve the PropType schema for the element type you are configuring.
|
|
52
|
+
Make sure you have to "styles-schema" resources available to retrieve the common styles schema.
|
|
53
53
|
|
|
54
54
|
# How to configure elements
|
|
55
55
|
We use a dedicated PropType Schema for configuring elements, including styles. When you configure an element, you must use the EXACT PropType Value as defined in the schema.
|
|
56
56
|
For styleProperties, use the style schema provided, as it also uses the PropType format.
|
|
57
|
-
For all non-primitive types, provide the key property as defined in the schema as $$type in the generated
|
|
57
|
+
For all non-primitive types, provide the key property as defined in the schema as $$type in the generated object, as it is MANDATORY for parsing.
|
|
58
58
|
|
|
59
59
|
Use the EXACT "PROP-TYPE" Schema given, and ALWAYS include the "key" property from the original configuration for every property you are changing.
|
|
60
60
|
|
|
@@ -20,7 +20,7 @@ export const inputSchema = {
|
|
|
20
20
|
)
|
|
21
21
|
.describe( 'An object record containing style property names and their new values to be set on the element' )
|
|
22
22
|
.default( {} ),
|
|
23
|
-
elementType: z.string().describe( 'The type of the element to
|
|
23
|
+
elementType: z.string().describe( 'The type of the element to retrieve the schema' ),
|
|
24
24
|
elementId: z.string().describe( 'The unique id of the element to configure' ),
|
|
25
25
|
};
|
|
26
26
|
|
|
@@ -30,7 +30,7 @@ export function resolvePropValue( value: unknown, forceKey?: string ): PropValue
|
|
|
30
30
|
}
|
|
31
31
|
|
|
32
32
|
/*
|
|
33
|
-
* This function expects a PropValue bag for
|
|
33
|
+
* This function expects a PropValue bag for updating an element.
|
|
34
34
|
* Also, it supports updating styles "on-the-way" by checking for "_styles" property with PropValue bag that fits the common style schema.
|
|
35
35
|
*/
|
|
36
36
|
export const doUpdateElementProperty = ( params: OwnParams ) => {
|