@elementor/editor-canvas 4.1.0-836 → 4.1.0-837
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
|
@@ -293,14 +293,8 @@ Variables from the user context ARE NOT SUPPORTED AND WILL RESOLVE IN ERROR.
|
|
|
293
293
|
};
|
|
294
294
|
}
|
|
295
295
|
const asJson = Object.fromEntries(
|
|
296
|
-
Object.entries(propSchema).map(([key, propType]) => [
|
|
297
|
-
key,
|
|
298
|
-
import_editor_props.Schema.propTypeToJsonSchema(propType)
|
|
299
|
-
])
|
|
296
|
+
Object.entries(propSchema).filter(([key, propType]) => import_editor_props.Schema.isPropKeyConfigurable(key, propType)).map(([key, propType]) => [key, import_editor_props.Schema.propTypeToJsonSchema(propType)])
|
|
300
297
|
);
|
|
301
|
-
import_editor_props.Schema.nonConfigurablePropKeys.forEach((key) => {
|
|
302
|
-
delete asJson[key];
|
|
303
|
-
});
|
|
304
298
|
const description = typeof widgetData?.meta?.description === "string" ? widgetData.meta.description : void 0;
|
|
305
299
|
const defaultStyles = {};
|
|
306
300
|
const baseStyleSchema = widgetData?.base_styles;
|
|
@@ -4034,7 +4028,7 @@ var validateInput = {
|
|
|
4034
4028
|
if (!propSchema) {
|
|
4035
4029
|
errors.push(`Property "${propName}" is not defined in the schema.`);
|
|
4036
4030
|
hasInvalidKey = true;
|
|
4037
|
-
} else if (!import_editor_props7.Schema.isPropKeyConfigurable(propName)) {
|
|
4031
|
+
} else if (!import_editor_props7.Schema.isPropKeyConfigurable(propName, propSchema)) {
|
|
4038
4032
|
errors.push(`Property "${propName}" is not configurable.`);
|
|
4039
4033
|
} else {
|
|
4040
4034
|
const { valid } = import_editor_props7.Schema.validatePropValue(propSchema, propValue);
|
package/dist/index.mjs
CHANGED
|
@@ -236,14 +236,8 @@ Variables from the user context ARE NOT SUPPORTED AND WILL RESOLVE IN ERROR.
|
|
|
236
236
|
};
|
|
237
237
|
}
|
|
238
238
|
const asJson = Object.fromEntries(
|
|
239
|
-
Object.entries(propSchema).map(([key, propType]) => [
|
|
240
|
-
key,
|
|
241
|
-
Schema.propTypeToJsonSchema(propType)
|
|
242
|
-
])
|
|
239
|
+
Object.entries(propSchema).filter(([key, propType]) => Schema.isPropKeyConfigurable(key, propType)).map(([key, propType]) => [key, Schema.propTypeToJsonSchema(propType)])
|
|
243
240
|
);
|
|
244
|
-
Schema.nonConfigurablePropKeys.forEach((key) => {
|
|
245
|
-
delete asJson[key];
|
|
246
|
-
});
|
|
247
241
|
const description = typeof widgetData?.meta?.description === "string" ? widgetData.meta.description : void 0;
|
|
248
242
|
const defaultStyles = {};
|
|
249
243
|
const baseStyleSchema = widgetData?.base_styles;
|
|
@@ -4028,7 +4022,7 @@ var validateInput = {
|
|
|
4028
4022
|
if (!propSchema) {
|
|
4029
4023
|
errors.push(`Property "${propName}" is not defined in the schema.`);
|
|
4030
4024
|
hasInvalidKey = true;
|
|
4031
|
-
} else if (!Schema3.isPropKeyConfigurable(propName)) {
|
|
4025
|
+
} else if (!Schema3.isPropKeyConfigurable(propName, propSchema)) {
|
|
4032
4026
|
errors.push(`Property "${propName}" is not configurable.`);
|
|
4033
4027
|
} else {
|
|
4034
4028
|
const { valid } = Schema3.validatePropValue(propSchema, propValue);
|
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-837",
|
|
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-837",
|
|
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-837",
|
|
43
|
+
"@elementor/editor-documents": "4.1.0-837",
|
|
44
|
+
"@elementor/editor-elements": "4.1.0-837",
|
|
45
|
+
"@elementor/editor-interactions": "4.1.0-837",
|
|
46
|
+
"@elementor/editor-mcp": "4.1.0-837",
|
|
47
|
+
"@elementor/editor-notifications": "4.1.0-837",
|
|
48
|
+
"@elementor/editor-props": "4.1.0-837",
|
|
49
|
+
"@elementor/editor-responsive": "4.1.0-837",
|
|
50
|
+
"@elementor/editor-styles": "4.1.0-837",
|
|
51
|
+
"@elementor/editor-styles-repository": "4.1.0-837",
|
|
52
|
+
"@elementor/editor-ui": "4.1.0-837",
|
|
53
|
+
"@elementor/editor-v1-adapters": "4.1.0-837",
|
|
54
|
+
"@elementor/schema": "4.1.0-837",
|
|
55
|
+
"@elementor/twing": "4.1.0-837",
|
|
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-837",
|
|
58
|
+
"@elementor/wp-media": "4.1.0-837",
|
|
59
59
|
"@floating-ui/react": "^0.27.5",
|
|
60
60
|
"@wordpress/i18n": "^5.13.0"
|
|
61
61
|
},
|
|
@@ -178,15 +178,10 @@ Variables from the user context ARE NOT SUPPORTED AND WILL RESOLVE IN ERROR.
|
|
|
178
178
|
};
|
|
179
179
|
}
|
|
180
180
|
const asJson = Object.fromEntries(
|
|
181
|
-
Object.entries( propSchema )
|
|
182
|
-
key,
|
|
183
|
-
Schema.propTypeToJsonSchema( propType )
|
|
184
|
-
] )
|
|
181
|
+
Object.entries( propSchema )
|
|
182
|
+
.filter( ( [ key, propType ] ) => Schema.isPropKeyConfigurable( key, propType as PropType ) )
|
|
183
|
+
.map( ( [ key, propType ] ) => [ key, Schema.propTypeToJsonSchema( propType ) ] )
|
|
185
184
|
);
|
|
186
|
-
Schema.nonConfigurablePropKeys.forEach( ( key ) => {
|
|
187
|
-
// eslint-disable-next-line @typescript-eslint/no-dynamic-delete
|
|
188
|
-
delete asJson[ key ];
|
|
189
|
-
} );
|
|
190
185
|
|
|
191
186
|
const description =
|
|
192
187
|
typeof widgetData?.meta?.description === 'string' ? widgetData.meta.description : undefined;
|
|
@@ -47,7 +47,7 @@ export const validateInput = {
|
|
|
47
47
|
if ( ! propSchema ) {
|
|
48
48
|
errors.push( `Property "${ propName }" is not defined in the schema.` );
|
|
49
49
|
hasInvalidKey = true;
|
|
50
|
-
} else if ( ! Schema.isPropKeyConfigurable( propName ) ) {
|
|
50
|
+
} else if ( ! Schema.isPropKeyConfigurable( propName, propSchema ) ) {
|
|
51
51
|
errors.push( `Property "${ propName }" is not configurable.` );
|
|
52
52
|
} else {
|
|
53
53
|
const { valid } = Schema.validatePropValue( propSchema, propValue as PropValue );
|