@elementor/editor-editing-panel 4.0.0-647 → 4.0.0-649

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elementor/editor-editing-panel",
3
- "version": "4.0.0-647",
3
+ "version": "4.0.0-649",
4
4
  "private": false,
5
5
  "author": "Elementor Team",
6
6
  "homepage": "https://elementor.com/",
@@ -39,28 +39,28 @@
39
39
  "dev": "tsup --config=../../tsup.dev.ts"
40
40
  },
41
41
  "dependencies": {
42
- "@elementor/editor": "4.0.0-647",
43
- "@elementor/editor-canvas": "4.0.0-647",
44
- "@elementor/editor-controls": "4.0.0-647",
45
- "@elementor/editor-documents": "4.0.0-647",
46
- "@elementor/editor-elements": "4.0.0-647",
47
- "@elementor/editor-interactions": "4.0.0-647",
48
- "@elementor/editor-panels": "4.0.0-647",
49
- "@elementor/editor-props": "4.0.0-647",
50
- "@elementor/editor-responsive": "4.0.0-647",
51
- "@elementor/editor-styles": "4.0.0-647",
52
- "@elementor/editor-styles-repository": "4.0.0-647",
53
- "@elementor/editor-ui": "4.0.0-647",
54
- "@elementor/editor-v1-adapters": "4.0.0-647",
42
+ "@elementor/editor": "4.0.0-649",
43
+ "@elementor/editor-canvas": "4.0.0-649",
44
+ "@elementor/editor-controls": "4.0.0-649",
45
+ "@elementor/editor-documents": "4.0.0-649",
46
+ "@elementor/editor-elements": "4.0.0-649",
47
+ "@elementor/editor-interactions": "4.0.0-649",
48
+ "@elementor/editor-panels": "4.0.0-649",
49
+ "@elementor/editor-props": "4.0.0-649",
50
+ "@elementor/editor-responsive": "4.0.0-649",
51
+ "@elementor/editor-styles": "4.0.0-649",
52
+ "@elementor/editor-styles-repository": "4.0.0-649",
53
+ "@elementor/editor-ui": "4.0.0-649",
54
+ "@elementor/editor-v1-adapters": "4.0.0-649",
55
55
  "@elementor/icons": "^1.68.0",
56
- "@elementor/editor-variables": "4.0.0-647",
57
- "@elementor/locations": "4.0.0-647",
58
- "@elementor/menus": "4.0.0-647",
59
- "@elementor/schema": "4.0.0-647",
60
- "@elementor/session": "4.0.0-647",
56
+ "@elementor/editor-variables": "4.0.0-649",
57
+ "@elementor/locations": "4.0.0-649",
58
+ "@elementor/menus": "4.0.0-649",
59
+ "@elementor/schema": "4.0.0-649",
60
+ "@elementor/session": "4.0.0-649",
61
61
  "@elementor/ui": "1.36.17",
62
- "@elementor/utils": "4.0.0-647",
63
- "@elementor/wp-media": "4.0.0-647",
62
+ "@elementor/utils": "4.0.0-649",
63
+ "@elementor/wp-media": "4.0.0-649",
64
64
  "@wordpress/i18n": "^5.13.0"
65
65
  },
66
66
  "peerDependencies": {
@@ -27,10 +27,10 @@ type SettingsFieldProps = {
27
27
 
28
28
  const HISTORY_DEBOUNCE_WAIT = 800;
29
29
 
30
- const getElementSettigsWithDefaults = ( propsSchema: PropsSchema, elementSettings?: Props ) => {
30
+ const getElementSettingsWithDefaults = ( propsSchema: PropsSchema, elementSettings?: Props ) => {
31
31
  const elementSettingsWithDefaults = { ...elementSettings };
32
32
  Object.keys( propsSchema ).forEach( ( key ) => {
33
- if ( ! ( key in elementSettingsWithDefaults ) ) {
33
+ if ( ! ( key in elementSettingsWithDefaults ) || elementSettingsWithDefaults[ key ] === null ) {
34
34
  if ( propsSchema[ key ].default !== null ) {
35
35
  elementSettingsWithDefaults[ key ] = propsSchema[ key ].default as Values[ keyof Values ];
36
36
  }
@@ -40,7 +40,7 @@ const getElementSettigsWithDefaults = ( propsSchema: PropsSchema, elementSetting
40
40
  };
41
41
 
42
42
  const extractDependencyEffect = ( bind: string, propsSchema: PropsSchema, currentElementSettings: Props ) => {
43
- const elementSettingsForDepCheck = getElementSettigsWithDefaults( propsSchema, currentElementSettings );
43
+ const elementSettingsForDepCheck = getElementSettingsWithDefaults( propsSchema, currentElementSettings );
44
44
  const propType = propsSchema[ bind ];
45
45
  const depCheck = isDependencyMet( propType?.dependencies, elementSettingsForDepCheck );
46
46
  const isHidden =