@elementor/editor-controls 0.12.1 → 0.14.0

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/CHANGELOG.md CHANGED
@@ -1,5 +1,29 @@
1
1
  # @elementor/editor-controls
2
2
 
3
+ ## 0.14.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 1a1e998: Add auto size unit to size controls
8
+ - bcf4254: VQA text fixes
9
+ - ed5962d: removed transparency during, to prevent ui glitches while using drag-n-drop to re-order repeater nodes
10
+
11
+ ### Patch Changes
12
+
13
+ - f4b76ac: cannot link values once you unlinked them when input is empty
14
+ - 571ff75: Add `debounce` util
15
+ - Updated dependencies [c654f89]
16
+ - Updated dependencies [571ff75]
17
+ - @elementor/editor-props@0.9.3
18
+ - @elementor/utils@0.4.0
19
+ - @elementor/wp-media@0.4.2
20
+
21
+ ## 0.13.0
22
+
23
+ ### Minor Changes
24
+
25
+ - 33de95b: allow users to manually re-order repeater nodes
26
+
3
27
  ## 0.12.1
4
28
 
5
29
  ### Patch Changes
package/dist/index.d.mts CHANGED
@@ -21,13 +21,15 @@ type Props$5 = {
21
21
  };
22
22
  declare const TextAreaControl: ControlComponent<({ placeholder }: Props$5) => React.JSX.Element>;
23
23
 
24
+ type ExtendedValue = 'auto';
24
25
  type Unit = 'px' | '%' | 'em' | 'rem' | 'vw' | 'vh';
25
26
  type SizeControlProps = {
26
27
  placeholder?: string;
27
28
  startIcon?: React.ReactNode;
28
29
  units?: Unit[];
30
+ extendedValues?: ExtendedValue[];
29
31
  };
30
- declare const SizeControl: ControlComponent<({ units, placeholder, startIcon }: SizeControlProps) => React.JSX.Element>;
32
+ declare const SizeControl: ControlComponent<({ units, extendedValues, placeholder, startIcon }: SizeControlProps) => React.JSX.Element>;
31
33
 
32
34
  declare const StrokeControl: ControlComponent<() => React.JSX.Element>;
33
35
 
@@ -105,8 +107,9 @@ type Props$1<TMultiPropType extends string, TPropValue extends MultiSizePropValu
105
107
  };
106
108
  declare function EqualUnequalSizesControl<TMultiPropType extends string, TPropValue extends MultiSizePropValue>({ label, icon, items, multiSizePropTypeUtil, }: Props$1<TMultiPropType, TPropValue>): React.JSX.Element;
107
109
 
108
- declare const LinkedDimensionsControl: ControlComponent<({ label }: {
110
+ declare const LinkedDimensionsControl: ControlComponent<({ label, extendedValues }: {
109
111
  label: string;
112
+ extendedValues?: ExtendedValue[];
110
113
  }) => React.JSX.Element>;
111
114
 
112
115
  declare const FontFamilyControl: ControlComponent<({ fontFamilies }: any) => React.JSX.Element | null>;
@@ -211,4 +214,4 @@ type UseInternalStateOptions<TValue> = {
211
214
  };
212
215
  declare const useSyncExternalState: <TValue>({ external, setExternal, persistWhen, fallback, }: UseInternalStateOptions<TValue>) => readonly [TValue, (setter: ((value: TValue) => TValue) | TValue) => void];
213
216
 
214
- export { BackgroundControl, BoxShadowRepeaterControl, ColorControl, type ControlActionsItems, ControlActionsProvider, type ControlComponent, ControlLabel, ControlReplacementProvider, ControlToggleButtonGroup, type EqualUnequalItems, EqualUnequalSizesControl, FontFamilyControl, GapControl, ImageControl, LinkControl, LinkedDimensionsControl, NumberControl, PropKeyProvider, PropProvider, type PropProviderProps, SelectControl, type SetValue, SizeControl, StrokeControl, SvgMediaControl, TextAreaControl, TextControl, type ToggleButtonGroupItem, ToggleControl, UrlControl, createControlReplacement, useBoundProp, useControlActions, useSyncExternalState };
217
+ export { BackgroundControl, BoxShadowRepeaterControl, ColorControl, type ControlActionsItems, ControlActionsProvider, type ControlComponent, ControlLabel, ControlReplacementProvider, ControlToggleButtonGroup, type EqualUnequalItems, EqualUnequalSizesControl, type ExtendedValue, FontFamilyControl, GapControl, ImageControl, LinkControl, LinkedDimensionsControl, NumberControl, PropKeyProvider, PropProvider, type PropProviderProps, SelectControl, type SetValue, SizeControl, StrokeControl, SvgMediaControl, TextAreaControl, TextControl, type ToggleButtonGroupItem, ToggleControl, UrlControl, createControlReplacement, useBoundProp, useControlActions, useSyncExternalState };
package/dist/index.d.ts CHANGED
@@ -21,13 +21,15 @@ type Props$5 = {
21
21
  };
22
22
  declare const TextAreaControl: ControlComponent<({ placeholder }: Props$5) => React.JSX.Element>;
23
23
 
24
+ type ExtendedValue = 'auto';
24
25
  type Unit = 'px' | '%' | 'em' | 'rem' | 'vw' | 'vh';
25
26
  type SizeControlProps = {
26
27
  placeholder?: string;
27
28
  startIcon?: React.ReactNode;
28
29
  units?: Unit[];
30
+ extendedValues?: ExtendedValue[];
29
31
  };
30
- declare const SizeControl: ControlComponent<({ units, placeholder, startIcon }: SizeControlProps) => React.JSX.Element>;
32
+ declare const SizeControl: ControlComponent<({ units, extendedValues, placeholder, startIcon }: SizeControlProps) => React.JSX.Element>;
31
33
 
32
34
  declare const StrokeControl: ControlComponent<() => React.JSX.Element>;
33
35
 
@@ -105,8 +107,9 @@ type Props$1<TMultiPropType extends string, TPropValue extends MultiSizePropValu
105
107
  };
106
108
  declare function EqualUnequalSizesControl<TMultiPropType extends string, TPropValue extends MultiSizePropValue>({ label, icon, items, multiSizePropTypeUtil, }: Props$1<TMultiPropType, TPropValue>): React.JSX.Element;
107
109
 
108
- declare const LinkedDimensionsControl: ControlComponent<({ label }: {
110
+ declare const LinkedDimensionsControl: ControlComponent<({ label, extendedValues }: {
109
111
  label: string;
112
+ extendedValues?: ExtendedValue[];
110
113
  }) => React.JSX.Element>;
111
114
 
112
115
  declare const FontFamilyControl: ControlComponent<({ fontFamilies }: any) => React.JSX.Element | null>;
@@ -211,4 +214,4 @@ type UseInternalStateOptions<TValue> = {
211
214
  };
212
215
  declare const useSyncExternalState: <TValue>({ external, setExternal, persistWhen, fallback, }: UseInternalStateOptions<TValue>) => readonly [TValue, (setter: ((value: TValue) => TValue) | TValue) => void];
213
216
 
214
- export { BackgroundControl, BoxShadowRepeaterControl, ColorControl, type ControlActionsItems, ControlActionsProvider, type ControlComponent, ControlLabel, ControlReplacementProvider, ControlToggleButtonGroup, type EqualUnequalItems, EqualUnequalSizesControl, FontFamilyControl, GapControl, ImageControl, LinkControl, LinkedDimensionsControl, NumberControl, PropKeyProvider, PropProvider, type PropProviderProps, SelectControl, type SetValue, SizeControl, StrokeControl, SvgMediaControl, TextAreaControl, TextControl, type ToggleButtonGroupItem, ToggleControl, UrlControl, createControlReplacement, useBoundProp, useControlActions, useSyncExternalState };
217
+ export { BackgroundControl, BoxShadowRepeaterControl, ColorControl, type ControlActionsItems, ControlActionsProvider, type ControlComponent, ControlLabel, ControlReplacementProvider, ControlToggleButtonGroup, type EqualUnequalItems, EqualUnequalSizesControl, type ExtendedValue, FontFamilyControl, GapControl, ImageControl, LinkControl, LinkedDimensionsControl, NumberControl, PropKeyProvider, PropProvider, type PropProviderProps, SelectControl, type SetValue, SizeControl, StrokeControl, SvgMediaControl, TextAreaControl, TextControl, type ToggleButtonGroupItem, ToggleControl, UrlControl, createControlReplacement, useBoundProp, useControlActions, useSyncExternalState };