@elementor/editor-variables 3.35.0-329 → 3.35.0-331

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
@@ -47,7 +47,7 @@ declare const registerVariableType: ({ key, icon, startIcon, valueField, propTyp
47
47
  fallbackPropTypeUtil: any;
48
48
  propTypeUtil: _elementor_editor_props.PropTypeUtil<string, string>;
49
49
  selectionFilter?: (variables: NormalizedVariable[], propType: _elementor_editor_props.PropType) => NormalizedVariable[];
50
- valueTransformer?: (variable: Variable) => _elementor_editor_props.PropValue;
50
+ valueTransformer?: (value: string, type?: string) => _elementor_editor_props.PropValue;
51
51
  isCompatible?: (propType: _elementor_editor_props.PropType, variable: Variable) => boolean;
52
52
  }) => void;
53
53
 
package/dist/index.d.ts CHANGED
@@ -47,7 +47,7 @@ declare const registerVariableType: ({ key, icon, startIcon, valueField, propTyp
47
47
  fallbackPropTypeUtil: any;
48
48
  propTypeUtil: _elementor_editor_props.PropTypeUtil<string, string>;
49
49
  selectionFilter?: (variables: NormalizedVariable[], propType: _elementor_editor_props.PropType) => NormalizedVariable[];
50
- valueTransformer?: (variable: Variable) => _elementor_editor_props.PropValue;
50
+ valueTransformer?: (value: string, type?: string) => _elementor_editor_props.PropValue;
51
51
  isCompatible?: (propType: _elementor_editor_props.PropType, variable: Variable) => boolean;
52
52
  }) => void;
53
53
 
package/dist/index.js CHANGED
@@ -1956,7 +1956,7 @@ var import_ui22 = require("@elementor/ui");
1956
1956
  function transformValueBeforeUnlink(variable, propTypeKey) {
1957
1957
  const { valueTransformer } = getVariableType(propTypeKey);
1958
1958
  if (valueTransformer) {
1959
- return valueTransformer(variable);
1959
+ return valueTransformer(variable.value, variable.type);
1960
1960
  }
1961
1961
  return variable.value;
1962
1962
  }