@elementor/editor-controls 0.28.1 → 0.29.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,25 @@
1
1
  # @elementor/editor-controls
2
2
 
3
+ ## 0.29.0
4
+
5
+ ### Minor Changes
6
+
7
+ - ebcf7cc: Prevent redundant on-change trigger, remove tooltip from menu items, render label as content
8
+ - 71d9ffe: Added support for split items in toggle button group and an API for checking if an experiment is active
9
+ - 810db8d: Removed characters added by mistake
10
+ - b150c2b: Wrap font family with Control Action
11
+
12
+ ## 0.28.2
13
+
14
+ ### Patch Changes
15
+
16
+ - a1d7b3b: Added configurable layout and top divider for controls in settings
17
+ - Updated dependencies [a1d7b3b]
18
+ - Updated dependencies [3ccc78c]
19
+ - @elementor/editor-elements@0.8.2
20
+ - @elementor/http-client@0.3.0
21
+ - @elementor/editor-current-user@0.3.2
22
+
3
23
  ## 0.28.1
4
24
 
5
25
  ### Patch Changes
package/dist/index.d.mts CHANGED
@@ -66,6 +66,7 @@ type Props$3<TValue> = {
66
66
  justify?: StackProps['justifyContent'];
67
67
  size?: ToggleButtonProps['size'];
68
68
  items: ToggleButtonGroupItem<TValue | null>[];
69
+ maxItems?: number;
69
70
  fullWidth?: boolean;
70
71
  } & ({
71
72
  exclusive?: false;
@@ -76,7 +77,7 @@ type Props$3<TValue> = {
76
77
  value: ExclusiveValue<TValue>;
77
78
  onChange: (value: ExclusiveValue<TValue>) => void;
78
79
  });
79
- declare const ControlToggleButtonGroup: <TValue>({ justify, size, value, onChange, items, exclusive, fullWidth, }: Props$3<TValue>) => React.JSX.Element;
80
+ declare const ControlToggleButtonGroup: <TValue>({ justify, size, value, onChange, items, maxItems, exclusive, fullWidth, }: Props$3<TValue>) => React.JSX.Element;
80
81
 
81
82
  type ToggleControlProps<T extends PropValue> = {
82
83
  options: Array<ToggleButtonGroupItem<T> & {
@@ -85,8 +86,9 @@ type ToggleControlProps<T extends PropValue> = {
85
86
  fullWidth?: boolean;
86
87
  size?: ToggleButtonProps['size'];
87
88
  exclusive?: boolean;
89
+ maxItems?: number;
88
90
  };
89
- declare const ToggleControl: ControlComponent<({ options, fullWidth, size, exclusive, }: ToggleControlProps<StringPropValue["value"]>) => React.JSX.Element>;
91
+ declare const ToggleControl: ControlComponent<({ options, fullWidth, size, exclusive, maxItems, }: ToggleControlProps<StringPropValue["value"]>) => React.JSX.Element>;
90
92
 
91
93
  declare const NumberControl: ControlComponent<({ placeholder, max, min, step, shouldForceInt, }: {
92
94
  placeholder?: string;
package/dist/index.d.ts CHANGED
@@ -66,6 +66,7 @@ type Props$3<TValue> = {
66
66
  justify?: StackProps['justifyContent'];
67
67
  size?: ToggleButtonProps['size'];
68
68
  items: ToggleButtonGroupItem<TValue | null>[];
69
+ maxItems?: number;
69
70
  fullWidth?: boolean;
70
71
  } & ({
71
72
  exclusive?: false;
@@ -76,7 +77,7 @@ type Props$3<TValue> = {
76
77
  value: ExclusiveValue<TValue>;
77
78
  onChange: (value: ExclusiveValue<TValue>) => void;
78
79
  });
79
- declare const ControlToggleButtonGroup: <TValue>({ justify, size, value, onChange, items, exclusive, fullWidth, }: Props$3<TValue>) => React.JSX.Element;
80
+ declare const ControlToggleButtonGroup: <TValue>({ justify, size, value, onChange, items, maxItems, exclusive, fullWidth, }: Props$3<TValue>) => React.JSX.Element;
80
81
 
81
82
  type ToggleControlProps<T extends PropValue> = {
82
83
  options: Array<ToggleButtonGroupItem<T> & {
@@ -85,8 +86,9 @@ type ToggleControlProps<T extends PropValue> = {
85
86
  fullWidth?: boolean;
86
87
  size?: ToggleButtonProps['size'];
87
88
  exclusive?: boolean;
89
+ maxItems?: number;
88
90
  };
89
- declare const ToggleControl: ControlComponent<({ options, fullWidth, size, exclusive, }: ToggleControlProps<StringPropValue["value"]>) => React.JSX.Element>;
91
+ declare const ToggleControl: ControlComponent<({ options, fullWidth, size, exclusive, maxItems, }: ToggleControlProps<StringPropValue["value"]>) => React.JSX.Element>;
90
92
 
91
93
  declare const NumberControl: ControlComponent<({ placeholder, max, min, step, shouldForceInt, }: {
92
94
  placeholder?: string;