@elementor/editor-variables 3.32.0-60 → 3.32.0-62

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.d.mts CHANGED
@@ -1,4 +1,5 @@
1
1
  import * as _elementor_editor_props from '@elementor/editor-props';
2
+ import { PropType } from '@elementor/editor-props';
2
3
  import * as react from 'react';
3
4
  import * as _mui_material from '@mui/material';
4
5
 
@@ -10,17 +11,19 @@ type NormalizedVariable = {
10
11
  value: string;
11
12
  };
12
13
 
14
+ type ValueFieldProps = {
15
+ value: string;
16
+ onChange: (value: string) => void;
17
+ onValidationChange?: (value: string) => void;
18
+ propType?: PropType;
19
+ };
20
+
13
21
  declare const registerVariableType: ({ icon, startIcon, valueField, propTypeUtil, variableType, selectionFilter, valueTransformer, fallbackPropTypeUtil, }: {
14
22
  icon: react.ForwardRefExoticComponent<Omit<_mui_material.SvgIconProps, "ref"> & react.RefAttributes<SVGSVGElement>>;
15
23
  startIcon?: ({ value }: {
16
24
  value: string;
17
25
  }) => react.JSX.Element;
18
- valueField: ({ value, onChange, onValidationChange, propType }: {
19
- value: string;
20
- onChange: (value: string) => void;
21
- onValidationChange?: (value: string) => void;
22
- propType?: _elementor_editor_props.PropType;
23
- }) => react.JSX.Element;
26
+ valueField: ({ value, onChange, onValidationChange, propType }: ValueFieldProps) => react.JSX.Element;
24
27
  variableType: string;
25
28
  fallbackPropTypeUtil: any;
26
29
  propTypeUtil: _elementor_editor_props.PropTypeUtil<string, string>;
package/dist/index.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  import * as _elementor_editor_props from '@elementor/editor-props';
2
+ import { PropType } from '@elementor/editor-props';
2
3
  import * as react from 'react';
3
4
  import * as _mui_material from '@mui/material';
4
5
 
@@ -10,17 +11,19 @@ type NormalizedVariable = {
10
11
  value: string;
11
12
  };
12
13
 
14
+ type ValueFieldProps = {
15
+ value: string;
16
+ onChange: (value: string) => void;
17
+ onValidationChange?: (value: string) => void;
18
+ propType?: PropType;
19
+ };
20
+
13
21
  declare const registerVariableType: ({ icon, startIcon, valueField, propTypeUtil, variableType, selectionFilter, valueTransformer, fallbackPropTypeUtil, }: {
14
22
  icon: react.ForwardRefExoticComponent<Omit<_mui_material.SvgIconProps, "ref"> & react.RefAttributes<SVGSVGElement>>;
15
23
  startIcon?: ({ value }: {
16
24
  value: string;
17
25
  }) => react.JSX.Element;
18
- valueField: ({ value, onChange, onValidationChange, propType }: {
19
- value: string;
20
- onChange: (value: string) => void;
21
- onValidationChange?: (value: string) => void;
22
- propType?: _elementor_editor_props.PropType;
23
- }) => react.JSX.Element;
26
+ valueField: ({ value, onChange, onValidationChange, propType }: ValueFieldProps) => react.JSX.Element;
24
27
  variableType: string;
25
28
  fallbackPropTypeUtil: any;
26
29
  propTypeUtil: _elementor_editor_props.PropTypeUtil<string, string>;