@elementor/editor-controls 3.33.0-149 → 3.33.0-151

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
@@ -23,10 +23,10 @@ declare const TextControl: ControlComponent<({ placeholder, error, inputValue, i
23
23
  sx?: SxProps;
24
24
  }) => React$1.JSX.Element>;
25
25
 
26
- type Props$6 = {
26
+ type Props$7 = {
27
27
  placeholder?: string;
28
28
  };
29
- declare const TextAreaControl: ControlComponent<({ placeholder }: Props$6) => React$1.JSX.Element>;
29
+ declare const TextAreaControl: ControlComponent<({ placeholder }: Props$7) => React$1.JSX.Element>;
30
30
 
31
31
  declare const lengthUnits: readonly ["px", "%", "em", "rem", "vw", "vh"];
32
32
  declare const angleUnits: readonly ["deg", "rad", "grad", "turn"];
@@ -76,32 +76,32 @@ type FilterPropName = {
76
76
  };
77
77
  declare const FilterRepeaterControl: ControlComponent<({ filterPropName }: FilterPropName) => React$1.JSX.Element>;
78
78
 
79
- type SelectOption = {
79
+ type SelectOption$1 = {
80
80
  label: string;
81
81
  value: StringPropValue['value'];
82
82
  disabled?: boolean;
83
83
  };
84
84
  type SelectControlProps = {
85
- options: SelectOption[];
85
+ options: SelectOption$1[];
86
86
  onChange?: (newValue: string | null, previousValue: string | null | undefined) => void;
87
87
  MenuProps?: SelectProps['MenuProps'];
88
88
  };
89
89
  declare const SelectControl: ControlComponent<({ options, onChange, MenuProps }: SelectControlProps) => React$1.JSX.Element>;
90
90
 
91
91
  declare const collectionMethods: {
92
- readonly 'off-canvas': () => SelectOption[];
92
+ readonly 'off-canvas': () => SelectOption$1[];
93
93
  };
94
94
  type SelectControlWrapperProps = Parameters<typeof SelectControl>[0] & {
95
95
  collectionId?: keyof typeof collectionMethods;
96
96
  };
97
97
  declare const SelectControlWrapper: ControlComponent<({ collectionId, options, ...props }: SelectControlWrapperProps) => React$1.JSX.Element>;
98
98
 
99
- type Props$5 = Partial<Omit<UnstableColorFieldProps, 'value' | 'onChange'>> & {
99
+ type Props$6 = Partial<Omit<UnstableColorFieldProps, 'value' | 'onChange'>> & {
100
100
  propTypeUtil?: PropTypeUtil<string, string>;
101
101
  anchorEl?: HTMLElement | null;
102
102
  id?: string;
103
103
  };
104
- declare const ColorControl: ControlComponent<({ propTypeUtil, anchorEl, slotProps, id, ...props }: Props$5) => React$1.JSX.Element>;
104
+ declare const ColorControl: ControlComponent<({ propTypeUtil, anchorEl, slotProps, id, ...props }: Props$6) => React$1.JSX.Element>;
105
105
 
106
106
  type RenderContentProps = {
107
107
  size: ToggleButtonProps['size'];
@@ -114,7 +114,7 @@ type ToggleButtonGroupItem<TValue> = {
114
114
  };
115
115
  type ExclusiveValue<TValue> = TValue;
116
116
  type NonExclusiveValue<TValue> = TValue[];
117
- type Props$4<TValue> = {
117
+ type Props$5<TValue> = {
118
118
  disabled?: boolean;
119
119
  justify?: StackProps['justifyContent'];
120
120
  size?: ToggleButtonProps['size'];
@@ -131,7 +131,7 @@ type Props$4<TValue> = {
131
131
  value: ExclusiveValue<TValue>;
132
132
  onChange: (value: ExclusiveValue<TValue>) => void;
133
133
  });
134
- declare const ControlToggleButtonGroup: <TValue>({ justify, size, value, onChange, items, maxItems, exclusive, fullWidth, disabled, placeholder, }: Props$4<TValue>) => React$1.JSX.Element;
134
+ declare const ControlToggleButtonGroup: <TValue>({ justify, size, value, onChange, items, maxItems, exclusive, fullWidth, disabled, placeholder, }: Props$5<TValue>) => React$1.JSX.Element;
135
135
 
136
136
  type ToggleControlProps<T extends PropValue> = {
137
137
  options: Array<ToggleButtonGroupItem<T> & {
@@ -160,14 +160,14 @@ type Item = {
160
160
  bind: PropKey;
161
161
  };
162
162
  type EqualUnequalItems = [Item, Item, Item, Item];
163
- type Props$3<TMultiPropType extends string, TPropValue extends MultiSizePropValue> = {
163
+ type Props$4<TMultiPropType extends string, TPropValue extends MultiSizePropValue> = {
164
164
  label: string;
165
165
  icon: ReactNode;
166
166
  tooltipLabel: string;
167
167
  items: EqualUnequalItems;
168
168
  multiSizePropTypeUtil: PropTypeUtil<TMultiPropType, TPropValue>;
169
169
  };
170
- declare function EqualUnequalSizesControl<TMultiPropType extends string, TPropValue extends MultiSizePropValue>({ label, icon, tooltipLabel, items, multiSizePropTypeUtil, }: Props$3<TMultiPropType, TPropValue>): React$1.JSX.Element;
170
+ declare function EqualUnequalSizesControl<TMultiPropType extends string, TPropValue extends MultiSizePropValue>({ label, icon, tooltipLabel, items, multiSizePropTypeUtil, }: Props$4<TMultiPropType, TPropValue>): React$1.JSX.Element;
171
171
 
172
172
  declare const LinkedDimensionsControl: ({ label, isSiteRtl, extendedOptions, min, }: {
173
173
  label: string;
@@ -223,7 +223,7 @@ type ControlProps<TControlProps = unknown> = TControlProps & {
223
223
  };
224
224
  };
225
225
 
226
- type Props$2 = ControlProps<{
226
+ type Props$3 = ControlProps<{
227
227
  queryOptions: {
228
228
  params: Record<string, unknown>;
229
229
  url: string;
@@ -234,7 +234,19 @@ type Props$2 = ControlProps<{
234
234
  label?: string;
235
235
  }>;
236
236
  type DestinationProp = LinkPropValue['value']['destination'];
237
- declare const LinkControl: ControlComponent<(props: Props$2) => React$1.JSX.Element>;
237
+ declare const LinkControl: ControlComponent<(props: Props$3) => React$1.JSX.Element>;
238
+
239
+ type SelectOption = {
240
+ label: string;
241
+ value: StringPropValue['value'];
242
+ disabled?: boolean;
243
+ };
244
+ type Props$2 = {
245
+ options: SelectOption[];
246
+ onChange?: (newValue: string | null, previousValue: string | null | undefined) => void;
247
+ fallbackLabels?: Record<string, string>;
248
+ };
249
+ declare const HtmlTagControl: ControlComponent<({ options, onChange, fallbackLabels }: Props$2) => React$1.JSX.Element>;
238
250
 
239
251
  type Props$1 = {
240
252
  queryOptions: {
@@ -543,4 +555,4 @@ type UseInternalStateOptions<TValue> = {
543
555
  };
544
556
  declare const useSyncExternalState: <TValue>({ external, setExternal, persistWhen, fallback, }: UseInternalStateOptions<TValue>) => readonly [TValue, (setter: ((value: TValue) => TValue) | TValue, options?: CreateOptions, meta?: SetValueMeta) => void];
545
557
 
546
- export { type AngleUnit, AspectRatioControl, BackgroundControl, BoxShadowRepeaterControl, ClearIconButton, ColorControl, type ControlActionsItems, ControlActionsProvider, ControlAdornments, ControlAdornmentsProvider, type ControlComponent, ControlFormLabel, ControlReplacementsProvider, ControlToggleButtonGroup, type EqualUnequalItems, EqualUnequalSizesControl, type ExtendedOption, FilterRepeaterControl, FloatingActionsBar, type FontCategory, FontFamilyControl, GapControl, ImageControl, type ItemActionPayload, ItemSelector, KeyValueControl, type LengthUnit, LinkControl, LinkedDimensionsControl, NumberControl, PopoverContent, PositionControl, PropKeyProvider, PropProvider, type PropProviderProps, QueryControl, RepeatableControl, Repeater, type RepeaterItem, SelectControl, SelectControlWrapper, type SetRepeaterValuesMeta, type SetValue, type SetValueMeta, SizeControl, StrokeControl, SvgMediaControl, SwitchControl, TextAreaControl, TextControl, type TimeUnit, type ToggleButtonGroupItem, ToggleControl, type ToggleControlProps, TransformBaseControl, TransformRepeaterControl, TransitionRepeaterControl, type Unit, UrlControl, createControl, createControlReplacementsRegistry, enqueueFont, injectIntoRepeaterItemActions, injectIntoRepeaterItemIcon, injectIntoRepeaterItemLabel, transitionProperties, transitionsItemsList, useBoundProp, useControlActions, useFloatingActionsBar, useSyncExternalState };
558
+ export { type AngleUnit, AspectRatioControl, BackgroundControl, BoxShadowRepeaterControl, ClearIconButton, ColorControl, type ControlActionsItems, ControlActionsProvider, ControlAdornments, ControlAdornmentsProvider, type ControlComponent, ControlFormLabel, ControlReplacementsProvider, ControlToggleButtonGroup, type EqualUnequalItems, EqualUnequalSizesControl, type ExtendedOption, FilterRepeaterControl, FloatingActionsBar, type FontCategory, FontFamilyControl, GapControl, HtmlTagControl, ImageControl, type ItemActionPayload, ItemSelector, KeyValueControl, type LengthUnit, LinkControl, LinkedDimensionsControl, NumberControl, PopoverContent, PositionControl, PropKeyProvider, PropProvider, type PropProviderProps, QueryControl, RepeatableControl, Repeater, type RepeaterItem, SelectControl, SelectControlWrapper, type SetRepeaterValuesMeta, type SetValue, type SetValueMeta, SizeControl, StrokeControl, SvgMediaControl, SwitchControl, TextAreaControl, TextControl, type TimeUnit, type ToggleButtonGroupItem, ToggleControl, type ToggleControlProps, TransformBaseControl, TransformRepeaterControl, TransitionRepeaterControl, type Unit, UrlControl, createControl, createControlReplacementsRegistry, enqueueFont, injectIntoRepeaterItemActions, injectIntoRepeaterItemIcon, injectIntoRepeaterItemLabel, transitionProperties, transitionsItemsList, useBoundProp, useControlActions, useFloatingActionsBar, useSyncExternalState };
package/dist/index.d.ts CHANGED
@@ -23,10 +23,10 @@ declare const TextControl: ControlComponent<({ placeholder, error, inputValue, i
23
23
  sx?: SxProps;
24
24
  }) => React$1.JSX.Element>;
25
25
 
26
- type Props$6 = {
26
+ type Props$7 = {
27
27
  placeholder?: string;
28
28
  };
29
- declare const TextAreaControl: ControlComponent<({ placeholder }: Props$6) => React$1.JSX.Element>;
29
+ declare const TextAreaControl: ControlComponent<({ placeholder }: Props$7) => React$1.JSX.Element>;
30
30
 
31
31
  declare const lengthUnits: readonly ["px", "%", "em", "rem", "vw", "vh"];
32
32
  declare const angleUnits: readonly ["deg", "rad", "grad", "turn"];
@@ -76,32 +76,32 @@ type FilterPropName = {
76
76
  };
77
77
  declare const FilterRepeaterControl: ControlComponent<({ filterPropName }: FilterPropName) => React$1.JSX.Element>;
78
78
 
79
- type SelectOption = {
79
+ type SelectOption$1 = {
80
80
  label: string;
81
81
  value: StringPropValue['value'];
82
82
  disabled?: boolean;
83
83
  };
84
84
  type SelectControlProps = {
85
- options: SelectOption[];
85
+ options: SelectOption$1[];
86
86
  onChange?: (newValue: string | null, previousValue: string | null | undefined) => void;
87
87
  MenuProps?: SelectProps['MenuProps'];
88
88
  };
89
89
  declare const SelectControl: ControlComponent<({ options, onChange, MenuProps }: SelectControlProps) => React$1.JSX.Element>;
90
90
 
91
91
  declare const collectionMethods: {
92
- readonly 'off-canvas': () => SelectOption[];
92
+ readonly 'off-canvas': () => SelectOption$1[];
93
93
  };
94
94
  type SelectControlWrapperProps = Parameters<typeof SelectControl>[0] & {
95
95
  collectionId?: keyof typeof collectionMethods;
96
96
  };
97
97
  declare const SelectControlWrapper: ControlComponent<({ collectionId, options, ...props }: SelectControlWrapperProps) => React$1.JSX.Element>;
98
98
 
99
- type Props$5 = Partial<Omit<UnstableColorFieldProps, 'value' | 'onChange'>> & {
99
+ type Props$6 = Partial<Omit<UnstableColorFieldProps, 'value' | 'onChange'>> & {
100
100
  propTypeUtil?: PropTypeUtil<string, string>;
101
101
  anchorEl?: HTMLElement | null;
102
102
  id?: string;
103
103
  };
104
- declare const ColorControl: ControlComponent<({ propTypeUtil, anchorEl, slotProps, id, ...props }: Props$5) => React$1.JSX.Element>;
104
+ declare const ColorControl: ControlComponent<({ propTypeUtil, anchorEl, slotProps, id, ...props }: Props$6) => React$1.JSX.Element>;
105
105
 
106
106
  type RenderContentProps = {
107
107
  size: ToggleButtonProps['size'];
@@ -114,7 +114,7 @@ type ToggleButtonGroupItem<TValue> = {
114
114
  };
115
115
  type ExclusiveValue<TValue> = TValue;
116
116
  type NonExclusiveValue<TValue> = TValue[];
117
- type Props$4<TValue> = {
117
+ type Props$5<TValue> = {
118
118
  disabled?: boolean;
119
119
  justify?: StackProps['justifyContent'];
120
120
  size?: ToggleButtonProps['size'];
@@ -131,7 +131,7 @@ type Props$4<TValue> = {
131
131
  value: ExclusiveValue<TValue>;
132
132
  onChange: (value: ExclusiveValue<TValue>) => void;
133
133
  });
134
- declare const ControlToggleButtonGroup: <TValue>({ justify, size, value, onChange, items, maxItems, exclusive, fullWidth, disabled, placeholder, }: Props$4<TValue>) => React$1.JSX.Element;
134
+ declare const ControlToggleButtonGroup: <TValue>({ justify, size, value, onChange, items, maxItems, exclusive, fullWidth, disabled, placeholder, }: Props$5<TValue>) => React$1.JSX.Element;
135
135
 
136
136
  type ToggleControlProps<T extends PropValue> = {
137
137
  options: Array<ToggleButtonGroupItem<T> & {
@@ -160,14 +160,14 @@ type Item = {
160
160
  bind: PropKey;
161
161
  };
162
162
  type EqualUnequalItems = [Item, Item, Item, Item];
163
- type Props$3<TMultiPropType extends string, TPropValue extends MultiSizePropValue> = {
163
+ type Props$4<TMultiPropType extends string, TPropValue extends MultiSizePropValue> = {
164
164
  label: string;
165
165
  icon: ReactNode;
166
166
  tooltipLabel: string;
167
167
  items: EqualUnequalItems;
168
168
  multiSizePropTypeUtil: PropTypeUtil<TMultiPropType, TPropValue>;
169
169
  };
170
- declare function EqualUnequalSizesControl<TMultiPropType extends string, TPropValue extends MultiSizePropValue>({ label, icon, tooltipLabel, items, multiSizePropTypeUtil, }: Props$3<TMultiPropType, TPropValue>): React$1.JSX.Element;
170
+ declare function EqualUnequalSizesControl<TMultiPropType extends string, TPropValue extends MultiSizePropValue>({ label, icon, tooltipLabel, items, multiSizePropTypeUtil, }: Props$4<TMultiPropType, TPropValue>): React$1.JSX.Element;
171
171
 
172
172
  declare const LinkedDimensionsControl: ({ label, isSiteRtl, extendedOptions, min, }: {
173
173
  label: string;
@@ -223,7 +223,7 @@ type ControlProps<TControlProps = unknown> = TControlProps & {
223
223
  };
224
224
  };
225
225
 
226
- type Props$2 = ControlProps<{
226
+ type Props$3 = ControlProps<{
227
227
  queryOptions: {
228
228
  params: Record<string, unknown>;
229
229
  url: string;
@@ -234,7 +234,19 @@ type Props$2 = ControlProps<{
234
234
  label?: string;
235
235
  }>;
236
236
  type DestinationProp = LinkPropValue['value']['destination'];
237
- declare const LinkControl: ControlComponent<(props: Props$2) => React$1.JSX.Element>;
237
+ declare const LinkControl: ControlComponent<(props: Props$3) => React$1.JSX.Element>;
238
+
239
+ type SelectOption = {
240
+ label: string;
241
+ value: StringPropValue['value'];
242
+ disabled?: boolean;
243
+ };
244
+ type Props$2 = {
245
+ options: SelectOption[];
246
+ onChange?: (newValue: string | null, previousValue: string | null | undefined) => void;
247
+ fallbackLabels?: Record<string, string>;
248
+ };
249
+ declare const HtmlTagControl: ControlComponent<({ options, onChange, fallbackLabels }: Props$2) => React$1.JSX.Element>;
238
250
 
239
251
  type Props$1 = {
240
252
  queryOptions: {
@@ -543,4 +555,4 @@ type UseInternalStateOptions<TValue> = {
543
555
  };
544
556
  declare const useSyncExternalState: <TValue>({ external, setExternal, persistWhen, fallback, }: UseInternalStateOptions<TValue>) => readonly [TValue, (setter: ((value: TValue) => TValue) | TValue, options?: CreateOptions, meta?: SetValueMeta) => void];
545
557
 
546
- export { type AngleUnit, AspectRatioControl, BackgroundControl, BoxShadowRepeaterControl, ClearIconButton, ColorControl, type ControlActionsItems, ControlActionsProvider, ControlAdornments, ControlAdornmentsProvider, type ControlComponent, ControlFormLabel, ControlReplacementsProvider, ControlToggleButtonGroup, type EqualUnequalItems, EqualUnequalSizesControl, type ExtendedOption, FilterRepeaterControl, FloatingActionsBar, type FontCategory, FontFamilyControl, GapControl, ImageControl, type ItemActionPayload, ItemSelector, KeyValueControl, type LengthUnit, LinkControl, LinkedDimensionsControl, NumberControl, PopoverContent, PositionControl, PropKeyProvider, PropProvider, type PropProviderProps, QueryControl, RepeatableControl, Repeater, type RepeaterItem, SelectControl, SelectControlWrapper, type SetRepeaterValuesMeta, type SetValue, type SetValueMeta, SizeControl, StrokeControl, SvgMediaControl, SwitchControl, TextAreaControl, TextControl, type TimeUnit, type ToggleButtonGroupItem, ToggleControl, type ToggleControlProps, TransformBaseControl, TransformRepeaterControl, TransitionRepeaterControl, type Unit, UrlControl, createControl, createControlReplacementsRegistry, enqueueFont, injectIntoRepeaterItemActions, injectIntoRepeaterItemIcon, injectIntoRepeaterItemLabel, transitionProperties, transitionsItemsList, useBoundProp, useControlActions, useFloatingActionsBar, useSyncExternalState };
558
+ export { type AngleUnit, AspectRatioControl, BackgroundControl, BoxShadowRepeaterControl, ClearIconButton, ColorControl, type ControlActionsItems, ControlActionsProvider, ControlAdornments, ControlAdornmentsProvider, type ControlComponent, ControlFormLabel, ControlReplacementsProvider, ControlToggleButtonGroup, type EqualUnequalItems, EqualUnequalSizesControl, type ExtendedOption, FilterRepeaterControl, FloatingActionsBar, type FontCategory, FontFamilyControl, GapControl, HtmlTagControl, ImageControl, type ItemActionPayload, ItemSelector, KeyValueControl, type LengthUnit, LinkControl, LinkedDimensionsControl, NumberControl, PopoverContent, PositionControl, PropKeyProvider, PropProvider, type PropProviderProps, QueryControl, RepeatableControl, Repeater, type RepeaterItem, SelectControl, SelectControlWrapper, type SetRepeaterValuesMeta, type SetValue, type SetValueMeta, SizeControl, StrokeControl, SvgMediaControl, SwitchControl, TextAreaControl, TextControl, type TimeUnit, type ToggleButtonGroupItem, ToggleControl, type ToggleControlProps, TransformBaseControl, TransformRepeaterControl, TransitionRepeaterControl, type Unit, UrlControl, createControl, createControlReplacementsRegistry, enqueueFont, injectIntoRepeaterItemActions, injectIntoRepeaterItemIcon, injectIntoRepeaterItemLabel, transitionProperties, transitionsItemsList, useBoundProp, useControlActions, useFloatingActionsBar, useSyncExternalState };