@elementor/editor-editing-panel 3.32.0-91 → 3.32.0-93
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 +7 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +7 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +19 -19
- package/src/dynamics/components/dynamic-selection-control.tsx +13 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elementor/editor-editing-panel",
|
|
3
|
-
"version": "3.32.0-
|
|
3
|
+
"version": "3.32.0-93",
|
|
4
4
|
"private": false,
|
|
5
5
|
"author": "Elementor Team",
|
|
6
6
|
"homepage": "https://elementor.com/",
|
|
@@ -39,26 +39,26 @@
|
|
|
39
39
|
"dev": "tsup --config=../../tsup.dev.ts"
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@elementor/editor": "3.32.0-
|
|
43
|
-
"@elementor/editor-canvas": "3.32.0-
|
|
44
|
-
"@elementor/editor-controls": "3.32.0-
|
|
45
|
-
"@elementor/editor-documents": "3.32.0-
|
|
46
|
-
"@elementor/editor-elements": "3.32.0-
|
|
47
|
-
"@elementor/editor-panels": "3.32.0-
|
|
48
|
-
"@elementor/editor-props": "3.32.0-
|
|
49
|
-
"@elementor/editor-responsive": "3.32.0-
|
|
50
|
-
"@elementor/editor-styles": "3.32.0-
|
|
51
|
-
"@elementor/editor-styles-repository": "3.32.0-
|
|
52
|
-
"@elementor/editor-ui": "3.32.0-
|
|
53
|
-
"@elementor/editor-v1-adapters": "3.32.0-
|
|
42
|
+
"@elementor/editor": "3.32.0-93",
|
|
43
|
+
"@elementor/editor-canvas": "3.32.0-93",
|
|
44
|
+
"@elementor/editor-controls": "3.32.0-93",
|
|
45
|
+
"@elementor/editor-documents": "3.32.0-93",
|
|
46
|
+
"@elementor/editor-elements": "3.32.0-93",
|
|
47
|
+
"@elementor/editor-panels": "3.32.0-93",
|
|
48
|
+
"@elementor/editor-props": "3.32.0-93",
|
|
49
|
+
"@elementor/editor-responsive": "3.32.0-93",
|
|
50
|
+
"@elementor/editor-styles": "3.32.0-93",
|
|
51
|
+
"@elementor/editor-styles-repository": "3.32.0-93",
|
|
52
|
+
"@elementor/editor-ui": "3.32.0-93",
|
|
53
|
+
"@elementor/editor-v1-adapters": "3.32.0-93",
|
|
54
54
|
"@elementor/icons": "1.46.0",
|
|
55
|
-
"@elementor/locations": "3.32.0-
|
|
56
|
-
"@elementor/menus": "3.32.0-
|
|
57
|
-
"@elementor/schema": "3.32.0-
|
|
58
|
-
"@elementor/session": "3.32.0-
|
|
55
|
+
"@elementor/locations": "3.32.0-93",
|
|
56
|
+
"@elementor/menus": "3.32.0-93",
|
|
57
|
+
"@elementor/schema": "3.32.0-93",
|
|
58
|
+
"@elementor/session": "3.32.0-93",
|
|
59
59
|
"@elementor/ui": "1.36.8",
|
|
60
|
-
"@elementor/utils": "3.32.0-
|
|
61
|
-
"@elementor/wp-media": "3.32.0-
|
|
60
|
+
"@elementor/utils": "3.32.0-93",
|
|
61
|
+
"@elementor/wp-media": "3.32.0-93",
|
|
62
62
|
"@wordpress/i18n": "^5.13.0"
|
|
63
63
|
},
|
|
64
64
|
"peerDependencies": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { ControlFormLabel, useBoundProp } from '@elementor/editor-controls';
|
|
3
|
-
import type { Control, ControlsSection } from '@elementor/editor-elements';
|
|
3
|
+
import type { Control, ControlLayout, ControlsSection } from '@elementor/editor-elements';
|
|
4
4
|
import { PopoverHeader } from '@elementor/editor-ui';
|
|
5
5
|
import { DatabaseIcon, SettingsIcon, XIcon } from '@elementor/icons';
|
|
6
6
|
import {
|
|
@@ -168,12 +168,23 @@ const DynamicSettings = ( { controls }: { controls: DynamicTag[ 'atomic_controls
|
|
|
168
168
|
);
|
|
169
169
|
};
|
|
170
170
|
|
|
171
|
+
const LAYOUT_OVERRIDE_FIELDS = {
|
|
172
|
+
separator: 'two-columns',
|
|
173
|
+
} as const;
|
|
174
|
+
|
|
175
|
+
const getLayout = ( control: Control[ 'value' ] ): ControlLayout => {
|
|
176
|
+
return (
|
|
177
|
+
LAYOUT_OVERRIDE_FIELDS[ control.bind as keyof typeof LAYOUT_OVERRIDE_FIELDS ] ??
|
|
178
|
+
controlsRegistry.getLayout( control.type as ControlType )
|
|
179
|
+
);
|
|
180
|
+
};
|
|
181
|
+
|
|
171
182
|
const Control = ( { control }: { control: Control[ 'value' ] } ) => {
|
|
172
183
|
if ( ! controlsRegistry.get( control.type as ControlType ) ) {
|
|
173
184
|
return null;
|
|
174
185
|
}
|
|
175
186
|
|
|
176
|
-
const layout =
|
|
187
|
+
const layout = getLayout( control );
|
|
177
188
|
|
|
178
189
|
return (
|
|
179
190
|
<DynamicControl bind={ control.bind }>
|