@elementor/editor-controls 4.3.4 → 4.3.5
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 -3
- package/dist/index.d.ts +10 -3
- package/dist/index.js +2431 -1698
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2093 -1362
- package/dist/index.mjs.map +1 -1
- package/package.json +18 -18
- package/src/controls/color-control.tsx +5 -0
- package/src/controls/email-form-action-control/fields.tsx +27 -2
- package/src/controls/icon-library/custom-icon-libraries.ts +556 -0
- package/src/controls/icon-library/font-awesome-7-catalog.ts +16 -7
- package/src/controls/icon-library/font-awesome-7-data.ts +2 -0
- package/src/controls/icon-library/font-awesome-glyph.tsx +62 -17
- package/src/controls/icon-library/fontello-svg-font.ts +227 -0
- package/src/controls/icon-library/icomoon-selection.ts +104 -0
- package/src/controls/icon-library/icon-library-filter.tsx +142 -68
- package/src/controls/icon-library/icon-library-grid.tsx +19 -15
- package/src/controls/icon-library/icon-library-popover.tsx +31 -15
- package/src/controls/icon-library/icon-library-view-toggle.tsx +22 -82
- package/src/controls/icon-library/sanitize-icon-svg-markup.ts +53 -0
- package/src/controls/icon-library/svg-element-icon.tsx +15 -0
- package/src/controls/image-control.tsx +3 -3
- package/src/controls/image-media-control.tsx +15 -33
- package/src/controls/media-select-actions.tsx +105 -0
- package/src/controls/notice-control.tsx +11 -1
- package/src/controls/svg-media-control.tsx +4 -1
- package/src/controls/svg-media-overlay.tsx +24 -76
- package/src/controls/svg-media-preview.tsx +7 -2
- package/src/controls/video-media-control.tsx +13 -30
- package/src/index.ts +1 -0
package/dist/index.d.mts
CHANGED
|
@@ -350,10 +350,14 @@ declare const AspectRatioControl: ControlComponent$1<({ label }: {
|
|
|
350
350
|
|
|
351
351
|
type SvgMediaControlProps = {
|
|
352
352
|
showIconLibrary?: boolean;
|
|
353
|
+
label?: string;
|
|
353
354
|
};
|
|
354
|
-
declare const SvgMediaControl: ControlComponent$1<({ showIconLibrary }: SvgMediaControlProps) => React$1.JSX.Element>;
|
|
355
|
+
declare const SvgMediaControl: ControlComponent$1<({ showIconLibrary, label }: SvgMediaControlProps) => React$1.JSX.Element>;
|
|
355
356
|
|
|
356
|
-
|
|
357
|
+
type VideoMediaControlProps = {
|
|
358
|
+
label?: string;
|
|
359
|
+
};
|
|
360
|
+
declare const VideoMediaControl: ControlComponent$1<({ label }: VideoMediaControlProps) => React$1.JSX.Element>;
|
|
357
361
|
|
|
358
362
|
declare const BackgroundControl: ControlComponent$1<() => React$1.JSX.Element>;
|
|
359
363
|
|
|
@@ -442,6 +446,9 @@ declare function getFontAwesome7IconName(iconValue: string): string | null;
|
|
|
442
446
|
declare function resetFontAwesome7IconsCache(): void;
|
|
443
447
|
declare function resolveFontAwesome7Icon(library: string, iconName: string, signal?: AbortSignal): Promise<FontAwesome7IconDefinition | null>;
|
|
444
448
|
|
|
449
|
+
declare function isDeletedCustomIconLibrary(library: string, iconValue: string): boolean;
|
|
450
|
+
declare function resolveCustomIconSvg(library: string, iconValue: string, signal?: AbortSignal): Promise<string | null>;
|
|
451
|
+
|
|
445
452
|
type TransitionProperty = {
|
|
446
453
|
label: string;
|
|
447
454
|
value: string;
|
|
@@ -906,4 +913,4 @@ declare function useTypingBuffer(options?: UseTypingBufferOptions): {
|
|
|
906
913
|
startsWith: (haystack: string, needle: string) => boolean;
|
|
907
914
|
};
|
|
908
915
|
|
|
909
|
-
export { type AdornmentComponent, type AngleUnit, AspectRatioControl, AttachmentTypeControl, AttributesControl, BackgroundControl, BoxShadowRepeaterControl, ChipsControl, ClearIconButton, ColorControl, ControlActions, type ControlActionsItems, ControlActionsProvider, ControlAdornments, ControlAdornmentsProvider, type ControlComponent$1 as ControlComponent, ControlFormLabel, type ControlReplacement, ControlReplacementsProvider, ControlToggleButtonGroup, DateRangeControl, DateTimeControl, DisplayConditionsControl, EmailFormActionControl, type EqualUnequalItems, EqualUnequalSizesControl, type ExtendedOption, FilterRepeaterControl, type FontAwesome7IconDefinition, type FontCategory, FontFamilyControl, GapControl, GridSpanControl, HtmlTagControl, ImageControl, InlineEditingControl, InlineEditor, InlineEditorToolbar, type InlineEditorToolbarProps, ItemSelector, type ItemsActionPayload, KeyValueControl, type LengthUnit, LinkControl, LinkedDimensionsControl, MentionTextAreaControl, NoticeControl, NumberControl, NumberInput, PopoverContent, PopoverGridContainer, PositionControl, type PromotionTrackingData, PromotionTrigger, type PromotionTriggerRef, PropKeyProvider, PropProvider, type PropProviderProps, QueryChipsControl, QueryControl, QueryFilterRepeaterControl, RepeatableControl, Repeater, type RepeaterItem, SelectControl, SelectControlWrapper, type SetRepeaterValuesMeta, type SetValue, type SetValueMeta, SizeComponent, SizeControl, StrokeControl, StyledToggleButton, StyledToggleButtonGroup, SvgMediaControl, SwitchControl, TextAreaControl, TextControl, TimeRangeControl, TimeStringControl, type TimeUnit, type ToggleButtonGroupItem, ToggleButtonGroupUi, ToggleControl, type ToggleControlProps, TransformRepeaterControl, TransformSettingsControl, TransitionRepeaterControl, type Unit, UnstableSizeControl, UnstableSizeField, UrlControl, type UseTypingBufferOptions, type V4PromotionData, type V4PromotionKey, VideoMediaControl, createControl, createControlReplacementsRegistry, enqueueFont, getControlReplacements, getFontAwesome7IconName, injectIntoRepeaterItemActions, injectIntoRepeaterItemIcon, injectIntoRepeaterItemLabel, isUnitExtendedOption, registerControlReplacement, resetFontAwesome7IconsCache, resolveFontAwesome7Icon, trackUpgradePromotionClick, trackViewPromotion, transitionProperties, transitionsItemsList, useBoundProp, useControlActions, useControlReplacement, useFontFamilies, useSyncExternalState, useTypingBuffer };
|
|
916
|
+
export { type AdornmentComponent, type AngleUnit, AspectRatioControl, AttachmentTypeControl, AttributesControl, BackgroundControl, BoxShadowRepeaterControl, ChipsControl, ClearIconButton, ColorControl, ControlActions, type ControlActionsItems, ControlActionsProvider, ControlAdornments, ControlAdornmentsProvider, type ControlComponent$1 as ControlComponent, ControlFormLabel, type ControlReplacement, ControlReplacementsProvider, ControlToggleButtonGroup, DateRangeControl, DateTimeControl, DisplayConditionsControl, EmailFormActionControl, type EqualUnequalItems, EqualUnequalSizesControl, type ExtendedOption, FilterRepeaterControl, type FontAwesome7IconDefinition, type FontCategory, FontFamilyControl, GapControl, GridSpanControl, HtmlTagControl, ImageControl, InlineEditingControl, InlineEditor, InlineEditorToolbar, type InlineEditorToolbarProps, ItemSelector, type ItemsActionPayload, KeyValueControl, type LengthUnit, LinkControl, LinkedDimensionsControl, MentionTextAreaControl, NoticeControl, NumberControl, NumberInput, PopoverContent, PopoverGridContainer, PositionControl, type PromotionTrackingData, PromotionTrigger, type PromotionTriggerRef, PropKeyProvider, PropProvider, type PropProviderProps, QueryChipsControl, QueryControl, QueryFilterRepeaterControl, RepeatableControl, Repeater, type RepeaterItem, SelectControl, SelectControlWrapper, type SetRepeaterValuesMeta, type SetValue, type SetValueMeta, SizeComponent, SizeControl, StrokeControl, StyledToggleButton, StyledToggleButtonGroup, SvgMediaControl, SwitchControl, TextAreaControl, TextControl, TimeRangeControl, TimeStringControl, type TimeUnit, type ToggleButtonGroupItem, ToggleButtonGroupUi, ToggleControl, type ToggleControlProps, TransformRepeaterControl, TransformSettingsControl, TransitionRepeaterControl, type Unit, UnstableSizeControl, UnstableSizeField, UrlControl, type UseTypingBufferOptions, type V4PromotionData, type V4PromotionKey, VideoMediaControl, createControl, createControlReplacementsRegistry, enqueueFont, getControlReplacements, getFontAwesome7IconName, injectIntoRepeaterItemActions, injectIntoRepeaterItemIcon, injectIntoRepeaterItemLabel, isDeletedCustomIconLibrary, isUnitExtendedOption, registerControlReplacement, resetFontAwesome7IconsCache, resolveCustomIconSvg, resolveFontAwesome7Icon, trackUpgradePromotionClick, trackViewPromotion, transitionProperties, transitionsItemsList, useBoundProp, useControlActions, useControlReplacement, useFontFamilies, useSyncExternalState, useTypingBuffer };
|
package/dist/index.d.ts
CHANGED
|
@@ -350,10 +350,14 @@ declare const AspectRatioControl: ControlComponent$1<({ label }: {
|
|
|
350
350
|
|
|
351
351
|
type SvgMediaControlProps = {
|
|
352
352
|
showIconLibrary?: boolean;
|
|
353
|
+
label?: string;
|
|
353
354
|
};
|
|
354
|
-
declare const SvgMediaControl: ControlComponent$1<({ showIconLibrary }: SvgMediaControlProps) => React$1.JSX.Element>;
|
|
355
|
+
declare const SvgMediaControl: ControlComponent$1<({ showIconLibrary, label }: SvgMediaControlProps) => React$1.JSX.Element>;
|
|
355
356
|
|
|
356
|
-
|
|
357
|
+
type VideoMediaControlProps = {
|
|
358
|
+
label?: string;
|
|
359
|
+
};
|
|
360
|
+
declare const VideoMediaControl: ControlComponent$1<({ label }: VideoMediaControlProps) => React$1.JSX.Element>;
|
|
357
361
|
|
|
358
362
|
declare const BackgroundControl: ControlComponent$1<() => React$1.JSX.Element>;
|
|
359
363
|
|
|
@@ -442,6 +446,9 @@ declare function getFontAwesome7IconName(iconValue: string): string | null;
|
|
|
442
446
|
declare function resetFontAwesome7IconsCache(): void;
|
|
443
447
|
declare function resolveFontAwesome7Icon(library: string, iconName: string, signal?: AbortSignal): Promise<FontAwesome7IconDefinition | null>;
|
|
444
448
|
|
|
449
|
+
declare function isDeletedCustomIconLibrary(library: string, iconValue: string): boolean;
|
|
450
|
+
declare function resolveCustomIconSvg(library: string, iconValue: string, signal?: AbortSignal): Promise<string | null>;
|
|
451
|
+
|
|
445
452
|
type TransitionProperty = {
|
|
446
453
|
label: string;
|
|
447
454
|
value: string;
|
|
@@ -906,4 +913,4 @@ declare function useTypingBuffer(options?: UseTypingBufferOptions): {
|
|
|
906
913
|
startsWith: (haystack: string, needle: string) => boolean;
|
|
907
914
|
};
|
|
908
915
|
|
|
909
|
-
export { type AdornmentComponent, type AngleUnit, AspectRatioControl, AttachmentTypeControl, AttributesControl, BackgroundControl, BoxShadowRepeaterControl, ChipsControl, ClearIconButton, ColorControl, ControlActions, type ControlActionsItems, ControlActionsProvider, ControlAdornments, ControlAdornmentsProvider, type ControlComponent$1 as ControlComponent, ControlFormLabel, type ControlReplacement, ControlReplacementsProvider, ControlToggleButtonGroup, DateRangeControl, DateTimeControl, DisplayConditionsControl, EmailFormActionControl, type EqualUnequalItems, EqualUnequalSizesControl, type ExtendedOption, FilterRepeaterControl, type FontAwesome7IconDefinition, type FontCategory, FontFamilyControl, GapControl, GridSpanControl, HtmlTagControl, ImageControl, InlineEditingControl, InlineEditor, InlineEditorToolbar, type InlineEditorToolbarProps, ItemSelector, type ItemsActionPayload, KeyValueControl, type LengthUnit, LinkControl, LinkedDimensionsControl, MentionTextAreaControl, NoticeControl, NumberControl, NumberInput, PopoverContent, PopoverGridContainer, PositionControl, type PromotionTrackingData, PromotionTrigger, type PromotionTriggerRef, PropKeyProvider, PropProvider, type PropProviderProps, QueryChipsControl, QueryControl, QueryFilterRepeaterControl, RepeatableControl, Repeater, type RepeaterItem, SelectControl, SelectControlWrapper, type SetRepeaterValuesMeta, type SetValue, type SetValueMeta, SizeComponent, SizeControl, StrokeControl, StyledToggleButton, StyledToggleButtonGroup, SvgMediaControl, SwitchControl, TextAreaControl, TextControl, TimeRangeControl, TimeStringControl, type TimeUnit, type ToggleButtonGroupItem, ToggleButtonGroupUi, ToggleControl, type ToggleControlProps, TransformRepeaterControl, TransformSettingsControl, TransitionRepeaterControl, type Unit, UnstableSizeControl, UnstableSizeField, UrlControl, type UseTypingBufferOptions, type V4PromotionData, type V4PromotionKey, VideoMediaControl, createControl, createControlReplacementsRegistry, enqueueFont, getControlReplacements, getFontAwesome7IconName, injectIntoRepeaterItemActions, injectIntoRepeaterItemIcon, injectIntoRepeaterItemLabel, isUnitExtendedOption, registerControlReplacement, resetFontAwesome7IconsCache, resolveFontAwesome7Icon, trackUpgradePromotionClick, trackViewPromotion, transitionProperties, transitionsItemsList, useBoundProp, useControlActions, useControlReplacement, useFontFamilies, useSyncExternalState, useTypingBuffer };
|
|
916
|
+
export { type AdornmentComponent, type AngleUnit, AspectRatioControl, AttachmentTypeControl, AttributesControl, BackgroundControl, BoxShadowRepeaterControl, ChipsControl, ClearIconButton, ColorControl, ControlActions, type ControlActionsItems, ControlActionsProvider, ControlAdornments, ControlAdornmentsProvider, type ControlComponent$1 as ControlComponent, ControlFormLabel, type ControlReplacement, ControlReplacementsProvider, ControlToggleButtonGroup, DateRangeControl, DateTimeControl, DisplayConditionsControl, EmailFormActionControl, type EqualUnequalItems, EqualUnequalSizesControl, type ExtendedOption, FilterRepeaterControl, type FontAwesome7IconDefinition, type FontCategory, FontFamilyControl, GapControl, GridSpanControl, HtmlTagControl, ImageControl, InlineEditingControl, InlineEditor, InlineEditorToolbar, type InlineEditorToolbarProps, ItemSelector, type ItemsActionPayload, KeyValueControl, type LengthUnit, LinkControl, LinkedDimensionsControl, MentionTextAreaControl, NoticeControl, NumberControl, NumberInput, PopoverContent, PopoverGridContainer, PositionControl, type PromotionTrackingData, PromotionTrigger, type PromotionTriggerRef, PropKeyProvider, PropProvider, type PropProviderProps, QueryChipsControl, QueryControl, QueryFilterRepeaterControl, RepeatableControl, Repeater, type RepeaterItem, SelectControl, SelectControlWrapper, type SetRepeaterValuesMeta, type SetValue, type SetValueMeta, SizeComponent, SizeControl, StrokeControl, StyledToggleButton, StyledToggleButtonGroup, SvgMediaControl, SwitchControl, TextAreaControl, TextControl, TimeRangeControl, TimeStringControl, type TimeUnit, type ToggleButtonGroupItem, ToggleButtonGroupUi, ToggleControl, type ToggleControlProps, TransformRepeaterControl, TransformSettingsControl, TransitionRepeaterControl, type Unit, UnstableSizeControl, UnstableSizeField, UrlControl, type UseTypingBufferOptions, type V4PromotionData, type V4PromotionKey, VideoMediaControl, createControl, createControlReplacementsRegistry, enqueueFont, getControlReplacements, getFontAwesome7IconName, injectIntoRepeaterItemActions, injectIntoRepeaterItemIcon, injectIntoRepeaterItemLabel, isDeletedCustomIconLibrary, isUnitExtendedOption, registerControlReplacement, resetFontAwesome7IconsCache, resolveCustomIconSvg, resolveFontAwesome7Icon, trackUpgradePromotionClick, trackViewPromotion, transitionProperties, transitionsItemsList, useBoundProp, useControlActions, useControlReplacement, useFontFamilies, useSyncExternalState, useTypingBuffer };
|