@elementor/editor-canvas 4.3.0-976 → 4.3.0-978
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
|
@@ -2047,7 +2047,8 @@ function blockFormFieldCreate(args) {
|
|
|
2047
2047
|
if (!elementType || !FORM_FIELD_ELEMENT_TYPES.has(elementType)) {
|
|
2048
2048
|
return false;
|
|
2049
2049
|
}
|
|
2050
|
-
|
|
2050
|
+
const containers = args.containers ?? [args.container];
|
|
2051
|
+
if (containers.some((container) => !isWithinForm(container))) {
|
|
2051
2052
|
handleBlockedFormField();
|
|
2052
2053
|
return true;
|
|
2053
2054
|
}
|
package/dist/index.mjs
CHANGED
|
@@ -2001,7 +2001,8 @@ function blockFormFieldCreate(args) {
|
|
|
2001
2001
|
if (!elementType || !FORM_FIELD_ELEMENT_TYPES.has(elementType)) {
|
|
2002
2002
|
return false;
|
|
2003
2003
|
}
|
|
2004
|
-
|
|
2004
|
+
const containers = args.containers ?? [args.container];
|
|
2005
|
+
if (containers.some((container) => !isWithinForm(container))) {
|
|
2005
2006
|
handleBlockedFormField();
|
|
2006
2007
|
return true;
|
|
2007
2008
|
}
|
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.3.0-
|
|
4
|
+
"version": "4.3.0-978",
|
|
5
5
|
"private": false,
|
|
6
6
|
"author": "Elementor Team",
|
|
7
7
|
"homepage": "https://elementor.com/",
|
|
@@ -37,26 +37,26 @@
|
|
|
37
37
|
"react-dom": "^18.3.1"
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@elementor/editor": "4.3.0-
|
|
41
|
-
"@elementor/editor-controls": "4.3.0-
|
|
42
|
-
"@elementor/editor-documents": "4.3.0-
|
|
43
|
-
"@elementor/editor-elements": "4.3.0-
|
|
44
|
-
"@elementor/editor-interactions": "4.3.0-
|
|
45
|
-
"@elementor/editor-mcp": "4.3.0-
|
|
46
|
-
"@elementor/editor-notifications": "4.3.0-
|
|
47
|
-
"@elementor/editor-props": "4.3.0-
|
|
48
|
-
"@elementor/editor-responsive": "4.3.0-
|
|
49
|
-
"@elementor/editor-styles": "4.3.0-
|
|
50
|
-
"@elementor/editor-styles-repository": "4.3.0-
|
|
51
|
-
"@elementor/editor-ui": "4.3.0-
|
|
52
|
-
"@elementor/editor-v1-adapters": "4.3.0-
|
|
53
|
-
"@elementor/events": "4.3.0-
|
|
54
|
-
"@elementor/http-client": "4.3.0-
|
|
55
|
-
"@elementor/schema": "4.3.0-
|
|
56
|
-
"@elementor/twing": "4.3.0-
|
|
40
|
+
"@elementor/editor": "4.3.0-978",
|
|
41
|
+
"@elementor/editor-controls": "4.3.0-978",
|
|
42
|
+
"@elementor/editor-documents": "4.3.0-978",
|
|
43
|
+
"@elementor/editor-elements": "4.3.0-978",
|
|
44
|
+
"@elementor/editor-interactions": "4.3.0-978",
|
|
45
|
+
"@elementor/editor-mcp": "4.3.0-978",
|
|
46
|
+
"@elementor/editor-notifications": "4.3.0-978",
|
|
47
|
+
"@elementor/editor-props": "4.3.0-978",
|
|
48
|
+
"@elementor/editor-responsive": "4.3.0-978",
|
|
49
|
+
"@elementor/editor-styles": "4.3.0-978",
|
|
50
|
+
"@elementor/editor-styles-repository": "4.3.0-978",
|
|
51
|
+
"@elementor/editor-ui": "4.3.0-978",
|
|
52
|
+
"@elementor/editor-v1-adapters": "4.3.0-978",
|
|
53
|
+
"@elementor/events": "4.3.0-978",
|
|
54
|
+
"@elementor/http-client": "4.3.0-978",
|
|
55
|
+
"@elementor/schema": "4.3.0-978",
|
|
56
|
+
"@elementor/twing": "4.3.0-978",
|
|
57
57
|
"@elementor/ui": "1.37.5",
|
|
58
|
-
"@elementor/utils": "4.3.0-
|
|
59
|
-
"@elementor/wp-media": "4.3.0-
|
|
58
|
+
"@elementor/utils": "4.3.0-978",
|
|
59
|
+
"@elementor/wp-media": "4.3.0-978",
|
|
60
60
|
"@floating-ui/react": "^0.27.5",
|
|
61
61
|
"@wordpress/i18n": "^5.13.0",
|
|
62
62
|
"dompurify": "^3.2.6"
|
|
@@ -48,7 +48,9 @@ function blockFormFieldCreate( args: CreateArgs ): boolean {
|
|
|
48
48
|
return false;
|
|
49
49
|
}
|
|
50
50
|
|
|
51
|
-
|
|
51
|
+
const containers = args.containers ?? [ args.container ];
|
|
52
|
+
|
|
53
|
+
if ( containers.some( ( container ) => ! isWithinForm( container ) ) ) {
|
|
52
54
|
handleBlockedFormField();
|
|
53
55
|
|
|
54
56
|
return true;
|