@elementor/editor-editing-panel 3.32.0-63 → 3.32.0-65
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 +4 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4 -4
- package/dist/index.mjs.map +1 -1
- package/package.json +19 -19
- package/src/controls-registry/create-top-level-object-type.ts +1 -1
- package/src/controls-registry/settings-field.tsx +2 -2
- package/src/controls-registry/styles-field.tsx +2 -2
- package/src/dynamics/dynamic-control.tsx +2 -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-65",
|
|
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-65",
|
|
43
|
+
"@elementor/editor-canvas": "3.32.0-65",
|
|
44
|
+
"@elementor/editor-controls": "3.32.0-65",
|
|
45
|
+
"@elementor/editor-documents": "3.32.0-65",
|
|
46
|
+
"@elementor/editor-elements": "3.32.0-65",
|
|
47
|
+
"@elementor/editor-panels": "3.32.0-65",
|
|
48
|
+
"@elementor/editor-props": "3.32.0-65",
|
|
49
|
+
"@elementor/editor-responsive": "3.32.0-65",
|
|
50
|
+
"@elementor/editor-styles": "3.32.0-65",
|
|
51
|
+
"@elementor/editor-styles-repository": "3.32.0-65",
|
|
52
|
+
"@elementor/editor-ui": "3.32.0-65",
|
|
53
|
+
"@elementor/editor-v1-adapters": "3.32.0-65",
|
|
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-65",
|
|
56
|
+
"@elementor/menus": "3.32.0-65",
|
|
57
|
+
"@elementor/schema": "3.32.0-65",
|
|
58
|
+
"@elementor/session": "3.32.0-65",
|
|
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-65",
|
|
61
|
+
"@elementor/wp-media": "3.32.0-65",
|
|
62
62
|
"@wordpress/i18n": "^5.13.0"
|
|
63
63
|
},
|
|
64
64
|
"peerDependencies": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type ObjectPropType, type PropsSchema } from '@elementor/editor-props';
|
|
2
2
|
|
|
3
|
-
export const
|
|
3
|
+
export const createTopLevelObjectType = ( { schema }: { schema: PropsSchema } ) => {
|
|
4
4
|
const schemaPropType: ObjectPropType = {
|
|
5
5
|
key: '',
|
|
6
6
|
kind: 'object',
|
|
@@ -15,7 +15,7 @@ import { __ } from '@wordpress/i18n';
|
|
|
15
15
|
|
|
16
16
|
import { useElement } from '../contexts/element-context';
|
|
17
17
|
import { extractOrderedDependencies, updateValues, type Values } from '../utils/prop-dependency-utils';
|
|
18
|
-
import {
|
|
18
|
+
import { createTopLevelObjectType } from './create-top-level-object-type';
|
|
19
19
|
|
|
20
20
|
type SettingsFieldProps = {
|
|
21
21
|
bind: PropKey;
|
|
@@ -35,7 +35,7 @@ export const SettingsField = ( { bind, children, propDisplayName }: SettingsFiel
|
|
|
35
35
|
|
|
36
36
|
const value = { [ bind ]: elementSettingValues?.[ bind ] ?? null };
|
|
37
37
|
|
|
38
|
-
const propType =
|
|
38
|
+
const propType = createTopLevelObjectType( { schema: propsSchema } );
|
|
39
39
|
|
|
40
40
|
const undoableUpdateElementProp = useUndoableUpdateElementProp( {
|
|
41
41
|
elementId,
|
|
@@ -7,7 +7,7 @@ import { useStylesInheritanceChain } from '../contexts/styles-inheritance-contex
|
|
|
7
7
|
import { useStylesField } from '../hooks/use-styles-field';
|
|
8
8
|
import { StylesInheritanceIndicator } from '../styles-inheritance/components/styles-inheritance-indicator';
|
|
9
9
|
import { ConditionalField } from './conditional-field';
|
|
10
|
-
import {
|
|
10
|
+
import { createTopLevelObjectType } from './create-top-level-object-type';
|
|
11
11
|
|
|
12
12
|
export type StylesFieldProps = {
|
|
13
13
|
bind: PropKey;
|
|
@@ -23,7 +23,7 @@ export const StylesField = ( { bind, propDisplayName, children }: StylesFieldPro
|
|
|
23
23
|
|
|
24
24
|
const { value, canEdit, ...fields } = useStylesField( bind, { history: { propDisplayName } } );
|
|
25
25
|
|
|
26
|
-
const propType =
|
|
26
|
+
const propType = createTopLevelObjectType( { schema: stylesSchema } );
|
|
27
27
|
|
|
28
28
|
const [ actualValue ] = stylesInheritanceChain;
|
|
29
29
|
|
|
@@ -2,7 +2,7 @@ import * as React from 'react';
|
|
|
2
2
|
import { PropKeyProvider, PropProvider, type SetValue, useBoundProp } from '@elementor/editor-controls';
|
|
3
3
|
import { type PropKey } from '@elementor/editor-props';
|
|
4
4
|
|
|
5
|
-
import {
|
|
5
|
+
import { createTopLevelObjectType } from '../controls-registry/create-top-level-object-type';
|
|
6
6
|
import { useDynamicTag } from './hooks/use-dynamic-tag';
|
|
7
7
|
import { dynamicPropTypeUtil, type DynamicPropValue } from './utils';
|
|
8
8
|
|
|
@@ -35,7 +35,7 @@ export const DynamicControl = ( { bind, children }: DynamicControlProps ) => {
|
|
|
35
35
|
} );
|
|
36
36
|
};
|
|
37
37
|
|
|
38
|
-
const propType =
|
|
38
|
+
const propType = createTopLevelObjectType( { schema: dynamicTag.props_schema } );
|
|
39
39
|
|
|
40
40
|
return (
|
|
41
41
|
<PropProvider propType={ propType } setValue={ setDynamicValue } value={ { [ bind ]: dynamicValue } }>
|