@elementor/editor-controls 4.0.0-564 → 4.0.0-591
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 +10 -4
- package/dist/index.d.ts +10 -4
- package/dist/index.js +211 -132
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +186 -109
- package/dist/index.mjs.map +1 -1
- package/package.json +15 -15
- package/src/components/size/unstable-size-field.tsx +7 -12
- package/src/controls/email-form-action-control.tsx +151 -0
- package/src/controls/inline-editing-control.tsx +5 -5
- package/src/hooks/use-size-value.ts +9 -4
- package/src/index.ts +2 -0
package/dist/index.d.mts
CHANGED
|
@@ -6,6 +6,7 @@ import { StyleDefinitionState } from '@elementor/editor-styles';
|
|
|
6
6
|
import { EditorProps, EditorView } from '@tiptap/pm/view';
|
|
7
7
|
import { Editor } from '@tiptap/react';
|
|
8
8
|
import { ElementID } from '@elementor/editor-elements';
|
|
9
|
+
import * as _mui_material from '@mui/material';
|
|
9
10
|
import * as _elementor_locations from '@elementor/locations';
|
|
10
11
|
|
|
11
12
|
type ImageControlProps = {
|
|
@@ -399,6 +400,8 @@ declare const InlineEditingControl: ControlComponent$1<({ sx, attributes, props,
|
|
|
399
400
|
props?: ComponentProps<"div">;
|
|
400
401
|
}) => React$1.JSX.Element>;
|
|
401
402
|
|
|
403
|
+
declare const EmailFormActionControl: ControlComponent$1<() => React$1.JSX.Element>;
|
|
404
|
+
|
|
402
405
|
declare const ControlFormLabel: (props: FormLabelProps) => React$1.JSX.Element;
|
|
403
406
|
|
|
404
407
|
declare const DisplayConditionsControl: ControlComponent$1<() => React$1.JSX.Element>;
|
|
@@ -603,15 +606,18 @@ type InlineEditorToolbarProps = {
|
|
|
603
606
|
declare const InlineEditorToolbar: ({ editor, elementId, sx }: InlineEditorToolbarProps) => React$1.JSX.Element;
|
|
604
607
|
|
|
605
608
|
type Props$1<TValue> = {
|
|
606
|
-
units: Unit[];
|
|
607
609
|
value: TValue;
|
|
608
|
-
|
|
610
|
+
units: Unit[];
|
|
611
|
+
defaultUnit?: Unit;
|
|
609
612
|
onChange: (value: TValue) => void;
|
|
610
613
|
onBlur?: (event: React$1.FocusEvent<HTMLInputElement>) => void;
|
|
611
614
|
disabled?: boolean;
|
|
612
615
|
InputProps?: TextFieldProps['InputProps'];
|
|
616
|
+
startIcon?: React$1.ReactNode;
|
|
613
617
|
};
|
|
614
|
-
declare const UnstableSizeField: <T extends SizePropValue["value"]>({ value, InputProps,
|
|
618
|
+
declare const UnstableSizeField: <T extends SizePropValue["value"]>({ value, InputProps, onChange, onBlur, units, defaultUnit, startIcon, }: Props$1<T>) => React$1.JSX.Element;
|
|
619
|
+
|
|
620
|
+
declare const NumberInput: React$1.ForwardRefExoticComponent<(Omit<_mui_material.FilledTextFieldProps, "ref"> | Omit<_mui_material.OutlinedTextFieldProps, "ref"> | Omit<_mui_material.StandardTextFieldProps, "ref">) & React$1.RefAttributes<unknown>>;
|
|
615
621
|
|
|
616
622
|
type AnyComponentType = ComponentType<any>;
|
|
617
623
|
declare const brandSymbol: unique symbol;
|
|
@@ -708,4 +714,4 @@ declare const useElementCanHaveChildren: () => boolean;
|
|
|
708
714
|
|
|
709
715
|
declare const useFontFamilies: () => FontCategory[];
|
|
710
716
|
|
|
711
|
-
export { type AdornmentComponent, type AngleUnit, AspectRatioControl, AttributesControl, BackgroundControl, BoxShadowRepeaterControl, ChipsControl, ClearIconButton, ColorControl, type ControlActionsItems, ControlActionsProvider, ControlAdornments, ControlAdornmentsProvider, type ControlComponent$1 as ControlComponent, ControlFormLabel, type ControlReplacement, ControlReplacementsProvider, ControlToggleButtonGroup, DateTimeControl, DisplayConditionsControl, type EqualUnequalItems, EqualUnequalSizesControl, type ExtendedOption, FilterRepeaterControl, type FontCategory, FontFamilyControl, GapControl, HtmlTagControl, ImageControl, InlineEditingControl, InlineEditor, InlineEditorToolbar, type InlineEditorToolbarProps, ItemSelector, type ItemsActionPayload, KeyValueControl, type LengthUnit, LinkControl, LinkedDimensionsControl, NumberControl, PopoverContent, PopoverGridContainer, PositionControl, PromotionTrigger, type PromotionTriggerRef, 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, ToggleButtonGroupUi, ToggleControl, type ToggleControlProps, TransformRepeaterControl, TransformSettingsControl, TransitionRepeaterControl, type Unit, UnstableSizeField, UrlControl, type V4PromotionData, type V4PromotionKey, createControl, createControlReplacementsRegistry, enqueueFont, getControlReplacements, injectIntoRepeaterItemActions, injectIntoRepeaterItemIcon, injectIntoRepeaterItemLabel, registerControlReplacement, transitionProperties, transitionsItemsList, useBoundProp, useControlActions, useControlReplacement, useElementCanHaveChildren, useFontFamilies, useSyncExternalState };
|
|
717
|
+
export { type AdornmentComponent, type AngleUnit, AspectRatioControl, AttributesControl, BackgroundControl, BoxShadowRepeaterControl, ChipsControl, ClearIconButton, ColorControl, type ControlActionsItems, ControlActionsProvider, ControlAdornments, ControlAdornmentsProvider, type ControlComponent$1 as ControlComponent, ControlFormLabel, type ControlReplacement, ControlReplacementsProvider, ControlToggleButtonGroup, DateTimeControl, DisplayConditionsControl, EmailFormActionControl, type EqualUnequalItems, EqualUnequalSizesControl, type ExtendedOption, FilterRepeaterControl, type FontCategory, FontFamilyControl, GapControl, HtmlTagControl, ImageControl, InlineEditingControl, InlineEditor, InlineEditorToolbar, type InlineEditorToolbarProps, ItemSelector, type ItemsActionPayload, KeyValueControl, type LengthUnit, LinkControl, LinkedDimensionsControl, NumberControl, NumberInput, PopoverContent, PopoverGridContainer, PositionControl, PromotionTrigger, type PromotionTriggerRef, 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, ToggleButtonGroupUi, ToggleControl, type ToggleControlProps, TransformRepeaterControl, TransformSettingsControl, TransitionRepeaterControl, type Unit, UnstableSizeField, UrlControl, type V4PromotionData, type V4PromotionKey, createControl, createControlReplacementsRegistry, enqueueFont, getControlReplacements, injectIntoRepeaterItemActions, injectIntoRepeaterItemIcon, injectIntoRepeaterItemLabel, registerControlReplacement, transitionProperties, transitionsItemsList, useBoundProp, useControlActions, useControlReplacement, useElementCanHaveChildren, useFontFamilies, useSyncExternalState };
|
package/dist/index.d.ts
CHANGED
|
@@ -6,6 +6,7 @@ import { StyleDefinitionState } from '@elementor/editor-styles';
|
|
|
6
6
|
import { EditorProps, EditorView } from '@tiptap/pm/view';
|
|
7
7
|
import { Editor } from '@tiptap/react';
|
|
8
8
|
import { ElementID } from '@elementor/editor-elements';
|
|
9
|
+
import * as _mui_material from '@mui/material';
|
|
9
10
|
import * as _elementor_locations from '@elementor/locations';
|
|
10
11
|
|
|
11
12
|
type ImageControlProps = {
|
|
@@ -399,6 +400,8 @@ declare const InlineEditingControl: ControlComponent$1<({ sx, attributes, props,
|
|
|
399
400
|
props?: ComponentProps<"div">;
|
|
400
401
|
}) => React$1.JSX.Element>;
|
|
401
402
|
|
|
403
|
+
declare const EmailFormActionControl: ControlComponent$1<() => React$1.JSX.Element>;
|
|
404
|
+
|
|
402
405
|
declare const ControlFormLabel: (props: FormLabelProps) => React$1.JSX.Element;
|
|
403
406
|
|
|
404
407
|
declare const DisplayConditionsControl: ControlComponent$1<() => React$1.JSX.Element>;
|
|
@@ -603,15 +606,18 @@ type InlineEditorToolbarProps = {
|
|
|
603
606
|
declare const InlineEditorToolbar: ({ editor, elementId, sx }: InlineEditorToolbarProps) => React$1.JSX.Element;
|
|
604
607
|
|
|
605
608
|
type Props$1<TValue> = {
|
|
606
|
-
units: Unit[];
|
|
607
609
|
value: TValue;
|
|
608
|
-
|
|
610
|
+
units: Unit[];
|
|
611
|
+
defaultUnit?: Unit;
|
|
609
612
|
onChange: (value: TValue) => void;
|
|
610
613
|
onBlur?: (event: React$1.FocusEvent<HTMLInputElement>) => void;
|
|
611
614
|
disabled?: boolean;
|
|
612
615
|
InputProps?: TextFieldProps['InputProps'];
|
|
616
|
+
startIcon?: React$1.ReactNode;
|
|
613
617
|
};
|
|
614
|
-
declare const UnstableSizeField: <T extends SizePropValue["value"]>({ value, InputProps,
|
|
618
|
+
declare const UnstableSizeField: <T extends SizePropValue["value"]>({ value, InputProps, onChange, onBlur, units, defaultUnit, startIcon, }: Props$1<T>) => React$1.JSX.Element;
|
|
619
|
+
|
|
620
|
+
declare const NumberInput: React$1.ForwardRefExoticComponent<(Omit<_mui_material.FilledTextFieldProps, "ref"> | Omit<_mui_material.OutlinedTextFieldProps, "ref"> | Omit<_mui_material.StandardTextFieldProps, "ref">) & React$1.RefAttributes<unknown>>;
|
|
615
621
|
|
|
616
622
|
type AnyComponentType = ComponentType<any>;
|
|
617
623
|
declare const brandSymbol: unique symbol;
|
|
@@ -708,4 +714,4 @@ declare const useElementCanHaveChildren: () => boolean;
|
|
|
708
714
|
|
|
709
715
|
declare const useFontFamilies: () => FontCategory[];
|
|
710
716
|
|
|
711
|
-
export { type AdornmentComponent, type AngleUnit, AspectRatioControl, AttributesControl, BackgroundControl, BoxShadowRepeaterControl, ChipsControl, ClearIconButton, ColorControl, type ControlActionsItems, ControlActionsProvider, ControlAdornments, ControlAdornmentsProvider, type ControlComponent$1 as ControlComponent, ControlFormLabel, type ControlReplacement, ControlReplacementsProvider, ControlToggleButtonGroup, DateTimeControl, DisplayConditionsControl, type EqualUnequalItems, EqualUnequalSizesControl, type ExtendedOption, FilterRepeaterControl, type FontCategory, FontFamilyControl, GapControl, HtmlTagControl, ImageControl, InlineEditingControl, InlineEditor, InlineEditorToolbar, type InlineEditorToolbarProps, ItemSelector, type ItemsActionPayload, KeyValueControl, type LengthUnit, LinkControl, LinkedDimensionsControl, NumberControl, PopoverContent, PopoverGridContainer, PositionControl, PromotionTrigger, type PromotionTriggerRef, 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, ToggleButtonGroupUi, ToggleControl, type ToggleControlProps, TransformRepeaterControl, TransformSettingsControl, TransitionRepeaterControl, type Unit, UnstableSizeField, UrlControl, type V4PromotionData, type V4PromotionKey, createControl, createControlReplacementsRegistry, enqueueFont, getControlReplacements, injectIntoRepeaterItemActions, injectIntoRepeaterItemIcon, injectIntoRepeaterItemLabel, registerControlReplacement, transitionProperties, transitionsItemsList, useBoundProp, useControlActions, useControlReplacement, useElementCanHaveChildren, useFontFamilies, useSyncExternalState };
|
|
717
|
+
export { type AdornmentComponent, type AngleUnit, AspectRatioControl, AttributesControl, BackgroundControl, BoxShadowRepeaterControl, ChipsControl, ClearIconButton, ColorControl, type ControlActionsItems, ControlActionsProvider, ControlAdornments, ControlAdornmentsProvider, type ControlComponent$1 as ControlComponent, ControlFormLabel, type ControlReplacement, ControlReplacementsProvider, ControlToggleButtonGroup, DateTimeControl, DisplayConditionsControl, EmailFormActionControl, type EqualUnequalItems, EqualUnequalSizesControl, type ExtendedOption, FilterRepeaterControl, type FontCategory, FontFamilyControl, GapControl, HtmlTagControl, ImageControl, InlineEditingControl, InlineEditor, InlineEditorToolbar, type InlineEditorToolbarProps, ItemSelector, type ItemsActionPayload, KeyValueControl, type LengthUnit, LinkControl, LinkedDimensionsControl, NumberControl, NumberInput, PopoverContent, PopoverGridContainer, PositionControl, PromotionTrigger, type PromotionTriggerRef, 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, ToggleButtonGroupUi, ToggleControl, type ToggleControlProps, TransformRepeaterControl, TransformSettingsControl, TransitionRepeaterControl, type Unit, UnstableSizeField, UrlControl, type V4PromotionData, type V4PromotionKey, createControl, createControlReplacementsRegistry, enqueueFont, getControlReplacements, injectIntoRepeaterItemActions, injectIntoRepeaterItemIcon, injectIntoRepeaterItemLabel, registerControlReplacement, transitionProperties, transitionsItemsList, useBoundProp, useControlActions, useControlReplacement, useElementCanHaveChildren, useFontFamilies, useSyncExternalState };
|