@elementor/editor-controls 0.30.1 → 0.32.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,38 @@
1
1
  # @elementor/editor-controls
2
2
 
3
+ ## 0.32.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 93642ee: add new switch control for v4
8
+ - ae40ebe: Add an aspect ratio control to the styles size section
9
+ - 53a75e4: Fix the link value to be saved and restored properly
10
+
11
+ ### Patch Changes
12
+
13
+ - 615baa1: upgrade elementor/ui version
14
+ - Updated dependencies [12fab9e]
15
+ - Updated dependencies [6e1d5ff]
16
+ - Updated dependencies [615baa1]
17
+ - @elementor/editor-ui@0.9.0
18
+ - @elementor/editor-current-user@0.5.0
19
+
20
+ ## 0.31.0
21
+
22
+ ### Minor Changes
23
+
24
+ - 7c8df3b: Fix color picker to open aligned with the overlay popover.
25
+ - 97fbdf0: Add keyboard-based unit switching to size control
26
+
27
+ ### Patch Changes
28
+
29
+ - 27c4c1f: Added a separated style inheritance indicator to background-color
30
+ - Updated dependencies [89dfaf2]
31
+ - Updated dependencies [27c4c1f]
32
+ - @elementor/editor-current-user@0.4.0
33
+ - @elementor/editor-props@0.12.1
34
+ - @elementor/editor-elements@0.8.4
35
+
3
36
  ## 0.30.1
4
37
 
5
38
  ### Patch Changes
package/dist/index.d.mts CHANGED
@@ -49,8 +49,9 @@ declare const SelectControl: ControlComponent<({ options, onChange }: Props$5) =
49
49
 
50
50
  type Props$4 = Partial<Omit<UnstableColorFieldProps, 'value' | 'onChange'>> & {
51
51
  propTypeUtil?: PropTypeUtil<string, string>;
52
+ anchorEl?: HTMLElement | null;
52
53
  };
53
- declare const ColorControl: ControlComponent<({ propTypeUtil, ...props }: Props$4) => React.JSX.Element>;
54
+ declare const ColorControl: ControlComponent<({ propTypeUtil, anchorEl, slotProps, ...props }: Props$4) => React.JSX.Element>;
54
55
 
55
56
  type RenderContentProps = {
56
57
  size: ToggleButtonProps['size'];
@@ -155,10 +156,16 @@ declare const GapControl: ControlComponent<({ label }: {
155
156
  label: string;
156
157
  }) => React.JSX.Element>;
157
158
 
159
+ declare const AspectRatioControl: ControlComponent<({ label }: {
160
+ label: string;
161
+ }) => React.JSX.Element>;
162
+
158
163
  declare const SvgMediaControl: ControlComponent<() => React.JSX.Element>;
159
164
 
160
165
  declare const BackgroundControl: ControlComponent<() => React.JSX.Element>;
161
166
 
167
+ declare const SwitchControl: ControlComponent<() => React.JSX.Element>;
168
+
162
169
  declare const ControlFormLabel: ({ children }: {
163
170
  children: React.ReactNode;
164
171
  }) => React.JSX.Element;
@@ -262,4 +269,4 @@ type UseInternalStateOptions<TValue> = {
262
269
  };
263
270
  declare const useSyncExternalState: <TValue>({ external, setExternal, persistWhen, fallback, }: UseInternalStateOptions<TValue>) => readonly [TValue, (setter: ((value: TValue) => TValue) | TValue) => void];
264
271
 
265
- export { BackgroundControl, BoxShadowRepeaterControl, ColorControl, type ControlActionsItems, ControlActionsProvider, ControlAdornments, ControlAdornmentsProvider, type ControlComponent, ControlFormLabel, ControlReplacementsProvider, ControlToggleButtonGroup, type EqualUnequalItems, EqualUnequalSizesControl, type ExtendedValue, type FontCategory, FontFamilyControl, GapControl, ImageControl, LinkControl, LinkedDimensionsControl, NumberControl, PropKeyProvider, PropProvider, type PropProviderProps, SelectControl, type SetValue, SizeControl, StrokeControl, SvgMediaControl, TextAreaControl, TextControl, type ToggleButtonGroupItem, ToggleControl, type ToggleControlProps, UrlControl, createControlReplacementsRegistry, injectIntoRepeaterItemIcon, injectIntoRepeaterItemLabel, useBoundProp, useControlActions, useSyncExternalState };
272
+ export { AspectRatioControl, BackgroundControl, BoxShadowRepeaterControl, ColorControl, type ControlActionsItems, ControlActionsProvider, ControlAdornments, ControlAdornmentsProvider, type ControlComponent, ControlFormLabel, ControlReplacementsProvider, ControlToggleButtonGroup, type EqualUnequalItems, EqualUnequalSizesControl, type ExtendedValue, type FontCategory, FontFamilyControl, GapControl, ImageControl, LinkControl, LinkedDimensionsControl, NumberControl, PropKeyProvider, PropProvider, type PropProviderProps, SelectControl, type SetValue, SizeControl, StrokeControl, SvgMediaControl, SwitchControl, TextAreaControl, TextControl, type ToggleButtonGroupItem, ToggleControl, type ToggleControlProps, UrlControl, createControlReplacementsRegistry, injectIntoRepeaterItemIcon, injectIntoRepeaterItemLabel, useBoundProp, useControlActions, useSyncExternalState };
package/dist/index.d.ts CHANGED
@@ -49,8 +49,9 @@ declare const SelectControl: ControlComponent<({ options, onChange }: Props$5) =
49
49
 
50
50
  type Props$4 = Partial<Omit<UnstableColorFieldProps, 'value' | 'onChange'>> & {
51
51
  propTypeUtil?: PropTypeUtil<string, string>;
52
+ anchorEl?: HTMLElement | null;
52
53
  };
53
- declare const ColorControl: ControlComponent<({ propTypeUtil, ...props }: Props$4) => React.JSX.Element>;
54
+ declare const ColorControl: ControlComponent<({ propTypeUtil, anchorEl, slotProps, ...props }: Props$4) => React.JSX.Element>;
54
55
 
55
56
  type RenderContentProps = {
56
57
  size: ToggleButtonProps['size'];
@@ -155,10 +156,16 @@ declare const GapControl: ControlComponent<({ label }: {
155
156
  label: string;
156
157
  }) => React.JSX.Element>;
157
158
 
159
+ declare const AspectRatioControl: ControlComponent<({ label }: {
160
+ label: string;
161
+ }) => React.JSX.Element>;
162
+
158
163
  declare const SvgMediaControl: ControlComponent<() => React.JSX.Element>;
159
164
 
160
165
  declare const BackgroundControl: ControlComponent<() => React.JSX.Element>;
161
166
 
167
+ declare const SwitchControl: ControlComponent<() => React.JSX.Element>;
168
+
162
169
  declare const ControlFormLabel: ({ children }: {
163
170
  children: React.ReactNode;
164
171
  }) => React.JSX.Element;
@@ -262,4 +269,4 @@ type UseInternalStateOptions<TValue> = {
262
269
  };
263
270
  declare const useSyncExternalState: <TValue>({ external, setExternal, persistWhen, fallback, }: UseInternalStateOptions<TValue>) => readonly [TValue, (setter: ((value: TValue) => TValue) | TValue) => void];
264
271
 
265
- export { BackgroundControl, BoxShadowRepeaterControl, ColorControl, type ControlActionsItems, ControlActionsProvider, ControlAdornments, ControlAdornmentsProvider, type ControlComponent, ControlFormLabel, ControlReplacementsProvider, ControlToggleButtonGroup, type EqualUnequalItems, EqualUnequalSizesControl, type ExtendedValue, type FontCategory, FontFamilyControl, GapControl, ImageControl, LinkControl, LinkedDimensionsControl, NumberControl, PropKeyProvider, PropProvider, type PropProviderProps, SelectControl, type SetValue, SizeControl, StrokeControl, SvgMediaControl, TextAreaControl, TextControl, type ToggleButtonGroupItem, ToggleControl, type ToggleControlProps, UrlControl, createControlReplacementsRegistry, injectIntoRepeaterItemIcon, injectIntoRepeaterItemLabel, useBoundProp, useControlActions, useSyncExternalState };
272
+ export { AspectRatioControl, BackgroundControl, BoxShadowRepeaterControl, ColorControl, type ControlActionsItems, ControlActionsProvider, ControlAdornments, ControlAdornmentsProvider, type ControlComponent, ControlFormLabel, ControlReplacementsProvider, ControlToggleButtonGroup, type EqualUnequalItems, EqualUnequalSizesControl, type ExtendedValue, type FontCategory, FontFamilyControl, GapControl, ImageControl, LinkControl, LinkedDimensionsControl, NumberControl, PropKeyProvider, PropProvider, type PropProviderProps, SelectControl, type SetValue, SizeControl, StrokeControl, SvgMediaControl, SwitchControl, TextAreaControl, TextControl, type ToggleButtonGroupItem, ToggleControl, type ToggleControlProps, UrlControl, createControlReplacementsRegistry, injectIntoRepeaterItemIcon, injectIntoRepeaterItemLabel, useBoundProp, useControlActions, useSyncExternalState };