@elementor/editor-components 4.2.0-902 → 4.2.0-903

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,7 +1,7 @@
1
1
  {
2
2
  "name": "@elementor/editor-components",
3
3
  "description": "Elementor editor components",
4
- "version": "4.2.0-902",
4
+ "version": "4.2.0-903",
5
5
  "private": false,
6
6
  "author": "Elementor Team",
7
7
  "homepage": "https://elementor.com/",
@@ -40,32 +40,32 @@
40
40
  "dev": "tsup --config=../../tsup.dev.ts"
41
41
  },
42
42
  "dependencies": {
43
- "@elementor/editor": "4.2.0-902",
44
- "@elementor/editor-canvas": "4.2.0-902",
45
- "@elementor/editor-controls": "4.2.0-902",
46
- "@elementor/editor-documents": "4.2.0-902",
47
- "@elementor/editor-editing-panel": "4.2.0-902",
48
- "@elementor/editor-elements": "4.2.0-902",
49
- "@elementor/editor-elements-panel": "4.2.0-902",
50
- "@elementor/editor-global-classes": "4.2.0-902",
51
- "@elementor/editor-mcp": "4.2.0-902",
52
- "@elementor/editor-templates": "4.2.0-902",
53
- "@elementor/editor-panels": "4.2.0-902",
54
- "@elementor/editor-props": "4.2.0-902",
55
- "@elementor/editor-styles-repository": "4.2.0-902",
56
- "@elementor/editor-ui": "4.2.0-902",
57
- "@elementor/editor-v1-adapters": "4.2.0-902",
58
- "@elementor/http-client": "4.2.0-902",
43
+ "@elementor/editor": "4.2.0-903",
44
+ "@elementor/editor-canvas": "4.2.0-903",
45
+ "@elementor/editor-controls": "4.2.0-903",
46
+ "@elementor/editor-documents": "4.2.0-903",
47
+ "@elementor/editor-editing-panel": "4.2.0-903",
48
+ "@elementor/editor-elements": "4.2.0-903",
49
+ "@elementor/editor-elements-panel": "4.2.0-903",
50
+ "@elementor/editor-global-classes": "4.2.0-903",
51
+ "@elementor/editor-mcp": "4.2.0-903",
52
+ "@elementor/editor-templates": "4.2.0-903",
53
+ "@elementor/editor-panels": "4.2.0-903",
54
+ "@elementor/editor-props": "4.2.0-903",
55
+ "@elementor/editor-styles-repository": "4.2.0-903",
56
+ "@elementor/editor-ui": "4.2.0-903",
57
+ "@elementor/editor-v1-adapters": "4.2.0-903",
58
+ "@elementor/http-client": "4.2.0-903",
59
59
  "@elementor/icons": "~1.75.1",
60
- "@elementor/events": "4.2.0-902",
61
- "@elementor/query": "4.2.0-902",
62
- "@elementor/schema": "4.2.0-902",
63
- "@elementor/store": "4.2.0-902",
60
+ "@elementor/events": "4.2.0-903",
61
+ "@elementor/query": "4.2.0-903",
62
+ "@elementor/schema": "4.2.0-903",
63
+ "@elementor/store": "4.2.0-903",
64
64
  "@elementor/ui": "1.37.5",
65
- "@elementor/utils": "4.2.0-902",
65
+ "@elementor/utils": "4.2.0-903",
66
66
  "@wordpress/i18n": "^5.13.0",
67
- "@elementor/editor-notifications": "4.2.0-902",
68
- "@elementor/editor-current-user": "4.2.0-902"
67
+ "@elementor/editor-notifications": "4.2.0-903",
68
+ "@elementor/editor-current-user": "4.2.0-903"
69
69
  },
70
70
  "peerDependencies": {
71
71
  "react": "^18.3.1",
@@ -117,7 +117,6 @@ function OverrideControl( { overridableProp }: InternalProps ) {
117
117
  }
118
118
 
119
119
  const { propValue, baseValue: resolvedBaseValue } = resolveOverrideValues(
120
- matchingOverride,
121
120
  overrideValue,
122
121
  resolvedOriginValues,
123
122
  propKey
@@ -226,7 +225,6 @@ function OverrideControl( { overridableProp }: InternalProps ) {
226
225
  }
227
226
 
228
227
  function resolveOverrideValues(
229
- matchingOverride: ComponentInstanceOverride | null,
230
228
  overrideValue: AnyTransformable | null,
231
229
  resolvedOriginValues: ElementSettings,
232
230
  propKey: string
@@ -235,10 +233,10 @@ function resolveOverrideValues(
235
233
  const inheritedValue = unwrappedSettings[ propKey ] ?? null;
236
234
  const isInheritedDynamic = isDynamicPropValue( inheritedValue );
237
235
 
238
- const shouldUseInheritedAsValue = isInheritedDynamic && ! matchingOverride;
236
+ const shouldUseInheritedAsValue = isInheritedDynamic && ! overrideValue;
239
237
 
240
238
  const propValue = shouldUseInheritedAsValue ? inheritedValue : overrideValue;
241
- const baseValue = matchingOverride || isInheritedDynamic ? null : inheritedValue;
239
+ const baseValue = overrideValue || isInheritedDynamic ? null : inheritedValue;
242
240
 
243
241
  return { propValue, baseValue };
244
242
  }