@elementor/editor-components 4.1.0-789 → 4.1.0-791

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.1.0-789",
4
+ "version": "4.1.0-791",
5
5
  "private": false,
6
6
  "author": "Elementor Team",
7
7
  "homepage": "https://elementor.com/",
@@ -40,31 +40,31 @@
40
40
  "dev": "tsup --config=../../tsup.dev.ts"
41
41
  },
42
42
  "dependencies": {
43
- "@elementor/editor": "4.1.0-789",
44
- "@elementor/editor-canvas": "4.1.0-789",
45
- "@elementor/editor-controls": "4.1.0-789",
46
- "@elementor/editor-documents": "4.1.0-789",
47
- "@elementor/editor-editing-panel": "4.1.0-789",
48
- "@elementor/editor-elements": "4.1.0-789",
49
- "@elementor/editor-elements-panel": "4.1.0-789",
50
- "@elementor/editor-mcp": "4.1.0-789",
51
- "@elementor/editor-templates": "4.1.0-789",
52
- "@elementor/editor-panels": "4.1.0-789",
53
- "@elementor/editor-props": "4.1.0-789",
54
- "@elementor/editor-styles-repository": "4.1.0-789",
55
- "@elementor/editor-ui": "4.1.0-789",
56
- "@elementor/editor-v1-adapters": "4.1.0-789",
57
- "@elementor/http-client": "4.1.0-789",
43
+ "@elementor/editor": "4.1.0-791",
44
+ "@elementor/editor-canvas": "4.1.0-791",
45
+ "@elementor/editor-controls": "4.1.0-791",
46
+ "@elementor/editor-documents": "4.1.0-791",
47
+ "@elementor/editor-editing-panel": "4.1.0-791",
48
+ "@elementor/editor-elements": "4.1.0-791",
49
+ "@elementor/editor-elements-panel": "4.1.0-791",
50
+ "@elementor/editor-mcp": "4.1.0-791",
51
+ "@elementor/editor-templates": "4.1.0-791",
52
+ "@elementor/editor-panels": "4.1.0-791",
53
+ "@elementor/editor-props": "4.1.0-791",
54
+ "@elementor/editor-styles-repository": "4.1.0-791",
55
+ "@elementor/editor-ui": "4.1.0-791",
56
+ "@elementor/editor-v1-adapters": "4.1.0-791",
57
+ "@elementor/http-client": "4.1.0-791",
58
58
  "@elementor/icons": "^1.68.0",
59
- "@elementor/events": "4.1.0-789",
60
- "@elementor/query": "4.1.0-789",
61
- "@elementor/schema": "4.1.0-789",
62
- "@elementor/store": "4.1.0-789",
59
+ "@elementor/events": "4.1.0-791",
60
+ "@elementor/query": "4.1.0-791",
61
+ "@elementor/schema": "4.1.0-791",
62
+ "@elementor/store": "4.1.0-791",
63
63
  "@elementor/ui": "1.37.5",
64
- "@elementor/utils": "4.1.0-789",
64
+ "@elementor/utils": "4.1.0-791",
65
65
  "@wordpress/i18n": "^5.13.0",
66
- "@elementor/editor-notifications": "4.1.0-789",
67
- "@elementor/editor-current-user": "4.1.0-789"
66
+ "@elementor/editor-notifications": "4.1.0-791",
67
+ "@elementor/editor-current-user": "4.1.0-791"
68
68
  },
69
69
  "peerDependencies": {
70
70
  "react": "^18.3.1",
@@ -4,6 +4,7 @@ import {
4
4
  getControlReplacements,
5
5
  PropKeyProvider,
6
6
  PropProvider,
7
+ type SetValueMeta,
7
8
  useBoundProp,
8
9
  } from '@elementor/editor-controls';
9
10
  import {
@@ -18,7 +19,7 @@ import {
18
19
  useElement,
19
20
  } from '@elementor/editor-editing-panel';
20
21
  import { type Control } from '@elementor/editor-elements';
21
- import { type AnyTransformable, type PropType, type PropValue } from '@elementor/editor-props';
22
+ import { type AnyTransformable, type CreateOptions, type PropType, type PropValue } from '@elementor/editor-props';
22
23
  import { Box } from '@elementor/ui';
23
24
 
24
25
  import { useControlsByWidgetType } from '../../hooks/use-controls-by-widget-type';
@@ -140,7 +141,7 @@ function OverrideControl( { overridableProp }: InternalProps ) {
140
141
  schema: { [ overridableProp.overrideKey ]: propType },
141
142
  } );
142
143
 
143
- const setValue = ( newValue: OverridesSchema ) => {
144
+ const setValue = ( newValue: OverridesSchema, options?: CreateOptions, meta?: SetValueMeta ) => {
144
145
  let newPropValue = getTempNewValueForDynamicProp(
145
146
  propType,
146
147
  propValue,
@@ -164,10 +165,14 @@ function OverrideControl( { overridableProp }: InternalProps ) {
164
165
  newOverrides = [ ...newOverrides, newOverrideValue ];
165
166
  }
166
167
 
167
- setInstanceValue( {
168
- ...instanceValue,
169
- overrides: componentInstanceOverridesPropTypeUtil.create( newOverrides ),
170
- } );
168
+ setInstanceValue(
169
+ {
170
+ ...instanceValue,
171
+ overrides: componentInstanceOverridesPropTypeUtil.create( newOverrides ),
172
+ },
173
+ options,
174
+ meta
175
+ );
171
176
 
172
177
  const overridableValue = componentOverridablePropTypeUtil.extract( newOverrideValue );
173
178
  if ( overridableValue && wrappingComponentId ) {