@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.
Files changed (30) hide show
  1. package/dist/index.d.mts +10 -3
  2. package/dist/index.d.ts +10 -3
  3. package/dist/index.js +2431 -1698
  4. package/dist/index.js.map +1 -1
  5. package/dist/index.mjs +2093 -1362
  6. package/dist/index.mjs.map +1 -1
  7. package/package.json +18 -18
  8. package/src/controls/color-control.tsx +5 -0
  9. package/src/controls/email-form-action-control/fields.tsx +27 -2
  10. package/src/controls/icon-library/custom-icon-libraries.ts +556 -0
  11. package/src/controls/icon-library/font-awesome-7-catalog.ts +16 -7
  12. package/src/controls/icon-library/font-awesome-7-data.ts +2 -0
  13. package/src/controls/icon-library/font-awesome-glyph.tsx +62 -17
  14. package/src/controls/icon-library/fontello-svg-font.ts +227 -0
  15. package/src/controls/icon-library/icomoon-selection.ts +104 -0
  16. package/src/controls/icon-library/icon-library-filter.tsx +142 -68
  17. package/src/controls/icon-library/icon-library-grid.tsx +19 -15
  18. package/src/controls/icon-library/icon-library-popover.tsx +31 -15
  19. package/src/controls/icon-library/icon-library-view-toggle.tsx +22 -82
  20. package/src/controls/icon-library/sanitize-icon-svg-markup.ts +53 -0
  21. package/src/controls/icon-library/svg-element-icon.tsx +15 -0
  22. package/src/controls/image-control.tsx +3 -3
  23. package/src/controls/image-media-control.tsx +15 -33
  24. package/src/controls/media-select-actions.tsx +105 -0
  25. package/src/controls/notice-control.tsx +11 -1
  26. package/src/controls/svg-media-control.tsx +4 -1
  27. package/src/controls/svg-media-overlay.tsx +24 -76
  28. package/src/controls/svg-media-preview.tsx +7 -2
  29. package/src/controls/video-media-control.tsx +13 -30
  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
- declare const VideoMediaControl: ControlComponent$1<() => React$1.JSX.Element>;
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
- declare const VideoMediaControl: ControlComponent$1<() => React$1.JSX.Element>;
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 };