@elementor/editor-controls 4.4.0-1135 → 4.4.0-1137

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
@@ -456,8 +456,34 @@ declare function getFontAwesome7IconName(iconValue: string): string | null;
456
456
  declare function resetFontAwesome7IconsCache(): void;
457
457
  declare function resolveFontAwesome7Icon(library: string, iconName: string, signal?: AbortSignal): Promise<FontAwesome7IconDefinition | null>;
458
458
 
459
- declare function isDeletedCustomIconLibrary(library: string, iconValue: string): boolean;
460
- declare function resolveCustomIconSvg(library: string, iconValue: string, signal?: AbortSignal): Promise<string | null>;
459
+ type FontAwesome7Icon = FontAwesome7IconDefinition & {
460
+ id: string;
461
+ label: string;
462
+ library: string;
463
+ value: string;
464
+ glyphClass?: string;
465
+ svgMarkup?: string;
466
+ };
467
+
468
+ type IconLibraryProviderState = {
469
+ data?: FontAwesome7Icon[];
470
+ isLoading: boolean;
471
+ };
472
+ type IconLibraryProvider = {
473
+ id: string;
474
+ useIcons: (enabled: boolean) => IconLibraryProviderState;
475
+ resolveSvg?: (library: string, iconValue: string, signal?: AbortSignal) => Promise<string | null>;
476
+ };
477
+ /**
478
+ * Register before the icon picker mounts. Each picker instance snapshots the providers on mount,
479
+ * so its hook count stays constant; a provider registered later appears on the next mount.
480
+ * @param provider
481
+ */
482
+ declare function registerIconLibraryProvider(provider: IconLibraryProvider): void;
483
+ declare function unregisterIconLibraryProvider(id: string): void;
484
+ declare function resolveProviderIconSvg(library: string, iconValue: string, signal?: AbortSignal): Promise<string | null>;
485
+
486
+ declare function enqueueIconFonts(library: string): void;
461
487
 
462
488
  type TransitionProperty = {
463
489
  label: string;
@@ -925,4 +951,4 @@ declare function useTypingBuffer(options?: UseTypingBufferOptions): {
925
951
  startsWith: (haystack: string, needle: string) => boolean;
926
952
  };
927
953
 
928
- 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 };
954
+ 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 FontAwesome7Icon, type FontAwesome7IconDefinition, type FontCategory, FontFamilyControl, GapControl, GridSpanControl, HtmlTagControl, type IconLibraryProvider, 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, enqueueIconFonts, getControlReplacements, getFontAwesome7IconName, injectIntoRepeaterItemActions, injectIntoRepeaterItemIcon, injectIntoRepeaterItemLabel, isUnitExtendedOption, registerControlReplacement, registerIconLibraryProvider, resetFontAwesome7IconsCache, resolveFontAwesome7Icon, resolveProviderIconSvg, trackUpgradePromotionClick, trackViewPromotion, transitionProperties, transitionsItemsList, unregisterIconLibraryProvider, useBoundProp, useControlActions, useControlReplacement, useFontFamilies, useSyncExternalState, useTypingBuffer };
package/dist/index.d.ts CHANGED
@@ -456,8 +456,34 @@ declare function getFontAwesome7IconName(iconValue: string): string | null;
456
456
  declare function resetFontAwesome7IconsCache(): void;
457
457
  declare function resolveFontAwesome7Icon(library: string, iconName: string, signal?: AbortSignal): Promise<FontAwesome7IconDefinition | null>;
458
458
 
459
- declare function isDeletedCustomIconLibrary(library: string, iconValue: string): boolean;
460
- declare function resolveCustomIconSvg(library: string, iconValue: string, signal?: AbortSignal): Promise<string | null>;
459
+ type FontAwesome7Icon = FontAwesome7IconDefinition & {
460
+ id: string;
461
+ label: string;
462
+ library: string;
463
+ value: string;
464
+ glyphClass?: string;
465
+ svgMarkup?: string;
466
+ };
467
+
468
+ type IconLibraryProviderState = {
469
+ data?: FontAwesome7Icon[];
470
+ isLoading: boolean;
471
+ };
472
+ type IconLibraryProvider = {
473
+ id: string;
474
+ useIcons: (enabled: boolean) => IconLibraryProviderState;
475
+ resolveSvg?: (library: string, iconValue: string, signal?: AbortSignal) => Promise<string | null>;
476
+ };
477
+ /**
478
+ * Register before the icon picker mounts. Each picker instance snapshots the providers on mount,
479
+ * so its hook count stays constant; a provider registered later appears on the next mount.
480
+ * @param provider
481
+ */
482
+ declare function registerIconLibraryProvider(provider: IconLibraryProvider): void;
483
+ declare function unregisterIconLibraryProvider(id: string): void;
484
+ declare function resolveProviderIconSvg(library: string, iconValue: string, signal?: AbortSignal): Promise<string | null>;
485
+
486
+ declare function enqueueIconFonts(library: string): void;
461
487
 
462
488
  type TransitionProperty = {
463
489
  label: string;
@@ -925,4 +951,4 @@ declare function useTypingBuffer(options?: UseTypingBufferOptions): {
925
951
  startsWith: (haystack: string, needle: string) => boolean;
926
952
  };
927
953
 
928
- 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 };
954
+ 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 FontAwesome7Icon, type FontAwesome7IconDefinition, type FontCategory, FontFamilyControl, GapControl, GridSpanControl, HtmlTagControl, type IconLibraryProvider, 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, enqueueIconFonts, getControlReplacements, getFontAwesome7IconName, injectIntoRepeaterItemActions, injectIntoRepeaterItemIcon, injectIntoRepeaterItemLabel, isUnitExtendedOption, registerControlReplacement, registerIconLibraryProvider, resetFontAwesome7IconsCache, resolveFontAwesome7Icon, resolveProviderIconSvg, trackUpgradePromotionClick, trackViewPromotion, transitionProperties, transitionsItemsList, unregisterIconLibraryProvider, useBoundProp, useControlActions, useControlReplacement, useFontFamilies, useSyncExternalState, useTypingBuffer };