@elementor/editor-controls 4.1.0-712 → 4.1.0-714
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 +8 -1
- package/dist/index.d.ts +8 -1
- package/dist/index.js +11 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +9 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +15 -15
- package/src/components/control-toggle-button-group.tsx +1 -1
- package/src/controls/linked-dimensions-control.tsx +12 -1
- package/src/index.ts +1 -0
package/dist/index.d.mts
CHANGED
|
@@ -2,6 +2,7 @@ import * as React$1 from 'react';
|
|
|
2
2
|
import { RefObject, ReactNode, FC, PropsWithChildren, ComponentProps, Dispatch, SetStateAction, ComponentType } from 'react';
|
|
3
3
|
import { SxProps, SelectProps, UnstableColorFieldProps, StackProps, ToggleButtonProps, PopupState, Theme, FormLabelProps, Grid, TextFieldProps } from '@elementor/ui';
|
|
4
4
|
import { StringPropValue, PropTypeUtil, PropValue, PropKey, LinkPropValue, TransformablePropValue, PropType, CreateOptions, SizePropValue } from '@elementor/editor-props';
|
|
5
|
+
import * as _emotion_styled from '@emotion/styled';
|
|
5
6
|
import { StyleDefinitionState } from '@elementor/editor-styles';
|
|
6
7
|
import { EditorProps, EditorView } from '@tiptap/pm/view';
|
|
7
8
|
import { Editor } from '@tiptap/react';
|
|
@@ -132,6 +133,12 @@ type ToggleButtonGroupItem<TValue> = {
|
|
|
132
133
|
renderContent: ({ size }: RenderContentProps) => React$1.ReactNode;
|
|
133
134
|
showTooltip?: boolean;
|
|
134
135
|
};
|
|
136
|
+
declare const StyledToggleButtonGroup: _emotion_styled.StyledComponent<any, {}, {
|
|
137
|
+
ref?: React$1.Ref<any> | undefined;
|
|
138
|
+
}>;
|
|
139
|
+
declare const StyledToggleButton: _emotion_styled.StyledComponent<any, {}, {
|
|
140
|
+
ref?: React$1.Ref<any> | undefined;
|
|
141
|
+
}>;
|
|
135
142
|
type ExclusiveValue<TValue> = TValue;
|
|
136
143
|
type NonExclusiveValue<TValue> = TValue[];
|
|
137
144
|
type Props$9<TValue> = {
|
|
@@ -801,4 +808,4 @@ declare function useTypingBuffer(options?: UseTypingBufferOptions): {
|
|
|
801
808
|
startsWith: (haystack: string, needle: string) => boolean;
|
|
802
809
|
};
|
|
803
810
|
|
|
804
|
-
export { type AdornmentComponent, type AngleUnit$1 as 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$1 as LengthUnit, LinkControl, LinkedDimensionsControl, NumberControl, NumberInput, PopoverContent, PopoverGridContainer, PositionControl, type PromotionTrackingData, PromotionTrigger, type PromotionTriggerRef, PropKeyProvider, PropProvider, type PropProviderProps, QueryControl, RepeatableControl, Repeater, type RepeaterItem, SelectControl, SelectControlWrapper, type SetRepeaterValuesMeta, type SetValue, type SetValueMeta, SizeComponent, SizeControl, StrokeControl, SvgMediaControl, SwitchControl, TextAreaControl, TextControl, type TimeUnit$1 as TimeUnit, type ToggleButtonGroupItem, ToggleButtonGroupUi, ToggleControl, type ToggleControlProps, TransformRepeaterControl, TransformSettingsControl, TransitionRepeaterControl, type Unit$1 as Unit, UnstableSizeControl, UnstableSizeField, UrlControl, type UseTypingBufferOptions, type V4PromotionData, type V4PromotionKey, VideoMediaControl, createControl, createControlReplacementsRegistry, enqueueFont, getControlReplacements, injectIntoRepeaterItemActions, injectIntoRepeaterItemIcon, injectIntoRepeaterItemLabel, isUnitExtendedOption, registerControlReplacement, trackUpgradePromotionClick, trackViewPromotion, transitionProperties, transitionsItemsList, useBoundProp, useControlActions, useControlReplacement, useFontFamilies, useSyncExternalState, useTypingBuffer };
|
|
811
|
+
export { type AdornmentComponent, type AngleUnit$1 as 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$1 as LengthUnit, LinkControl, LinkedDimensionsControl, NumberControl, NumberInput, PopoverContent, PopoverGridContainer, PositionControl, type PromotionTrackingData, PromotionTrigger, type PromotionTriggerRef, PropKeyProvider, PropProvider, type PropProviderProps, QueryControl, RepeatableControl, Repeater, type RepeaterItem, SelectControl, SelectControlWrapper, type SetRepeaterValuesMeta, type SetValue, type SetValueMeta, SizeComponent, SizeControl, StrokeControl, StyledToggleButton, StyledToggleButtonGroup, SvgMediaControl, SwitchControl, TextAreaControl, TextControl, type TimeUnit$1 as TimeUnit, type ToggleButtonGroupItem, ToggleButtonGroupUi, ToggleControl, type ToggleControlProps, TransformRepeaterControl, TransformSettingsControl, TransitionRepeaterControl, type Unit$1 as Unit, UnstableSizeControl, UnstableSizeField, UrlControl, type UseTypingBufferOptions, type V4PromotionData, type V4PromotionKey, VideoMediaControl, createControl, createControlReplacementsRegistry, enqueueFont, getControlReplacements, injectIntoRepeaterItemActions, injectIntoRepeaterItemIcon, injectIntoRepeaterItemLabel, isUnitExtendedOption, registerControlReplacement, trackUpgradePromotionClick, trackViewPromotion, transitionProperties, transitionsItemsList, useBoundProp, useControlActions, useControlReplacement, useFontFamilies, useSyncExternalState, useTypingBuffer };
|
package/dist/index.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ import * as React$1 from 'react';
|
|
|
2
2
|
import { RefObject, ReactNode, FC, PropsWithChildren, ComponentProps, Dispatch, SetStateAction, ComponentType } from 'react';
|
|
3
3
|
import { SxProps, SelectProps, UnstableColorFieldProps, StackProps, ToggleButtonProps, PopupState, Theme, FormLabelProps, Grid, TextFieldProps } from '@elementor/ui';
|
|
4
4
|
import { StringPropValue, PropTypeUtil, PropValue, PropKey, LinkPropValue, TransformablePropValue, PropType, CreateOptions, SizePropValue } from '@elementor/editor-props';
|
|
5
|
+
import * as _emotion_styled from '@emotion/styled';
|
|
5
6
|
import { StyleDefinitionState } from '@elementor/editor-styles';
|
|
6
7
|
import { EditorProps, EditorView } from '@tiptap/pm/view';
|
|
7
8
|
import { Editor } from '@tiptap/react';
|
|
@@ -132,6 +133,12 @@ type ToggleButtonGroupItem<TValue> = {
|
|
|
132
133
|
renderContent: ({ size }: RenderContentProps) => React$1.ReactNode;
|
|
133
134
|
showTooltip?: boolean;
|
|
134
135
|
};
|
|
136
|
+
declare const StyledToggleButtonGroup: _emotion_styled.StyledComponent<any, {}, {
|
|
137
|
+
ref?: React$1.Ref<any> | undefined;
|
|
138
|
+
}>;
|
|
139
|
+
declare const StyledToggleButton: _emotion_styled.StyledComponent<any, {}, {
|
|
140
|
+
ref?: React$1.Ref<any> | undefined;
|
|
141
|
+
}>;
|
|
135
142
|
type ExclusiveValue<TValue> = TValue;
|
|
136
143
|
type NonExclusiveValue<TValue> = TValue[];
|
|
137
144
|
type Props$9<TValue> = {
|
|
@@ -801,4 +808,4 @@ declare function useTypingBuffer(options?: UseTypingBufferOptions): {
|
|
|
801
808
|
startsWith: (haystack: string, needle: string) => boolean;
|
|
802
809
|
};
|
|
803
810
|
|
|
804
|
-
export { type AdornmentComponent, type AngleUnit$1 as 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$1 as LengthUnit, LinkControl, LinkedDimensionsControl, NumberControl, NumberInput, PopoverContent, PopoverGridContainer, PositionControl, type PromotionTrackingData, PromotionTrigger, type PromotionTriggerRef, PropKeyProvider, PropProvider, type PropProviderProps, QueryControl, RepeatableControl, Repeater, type RepeaterItem, SelectControl, SelectControlWrapper, type SetRepeaterValuesMeta, type SetValue, type SetValueMeta, SizeComponent, SizeControl, StrokeControl, SvgMediaControl, SwitchControl, TextAreaControl, TextControl, type TimeUnit$1 as TimeUnit, type ToggleButtonGroupItem, ToggleButtonGroupUi, ToggleControl, type ToggleControlProps, TransformRepeaterControl, TransformSettingsControl, TransitionRepeaterControl, type Unit$1 as Unit, UnstableSizeControl, UnstableSizeField, UrlControl, type UseTypingBufferOptions, type V4PromotionData, type V4PromotionKey, VideoMediaControl, createControl, createControlReplacementsRegistry, enqueueFont, getControlReplacements, injectIntoRepeaterItemActions, injectIntoRepeaterItemIcon, injectIntoRepeaterItemLabel, isUnitExtendedOption, registerControlReplacement, trackUpgradePromotionClick, trackViewPromotion, transitionProperties, transitionsItemsList, useBoundProp, useControlActions, useControlReplacement, useFontFamilies, useSyncExternalState, useTypingBuffer };
|
|
811
|
+
export { type AdornmentComponent, type AngleUnit$1 as 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$1 as LengthUnit, LinkControl, LinkedDimensionsControl, NumberControl, NumberInput, PopoverContent, PopoverGridContainer, PositionControl, type PromotionTrackingData, PromotionTrigger, type PromotionTriggerRef, PropKeyProvider, PropProvider, type PropProviderProps, QueryControl, RepeatableControl, Repeater, type RepeaterItem, SelectControl, SelectControlWrapper, type SetRepeaterValuesMeta, type SetValue, type SetValueMeta, SizeComponent, SizeControl, StrokeControl, StyledToggleButton, StyledToggleButtonGroup, SvgMediaControl, SwitchControl, TextAreaControl, TextControl, type TimeUnit$1 as TimeUnit, type ToggleButtonGroupItem, ToggleButtonGroupUi, ToggleControl, type ToggleControlProps, TransformRepeaterControl, TransformSettingsControl, TransitionRepeaterControl, type Unit$1 as Unit, UnstableSizeControl, UnstableSizeField, UrlControl, type UseTypingBufferOptions, type V4PromotionData, type V4PromotionKey, VideoMediaControl, createControl, createControlReplacementsRegistry, enqueueFont, getControlReplacements, injectIntoRepeaterItemActions, injectIntoRepeaterItemIcon, injectIntoRepeaterItemLabel, isUnitExtendedOption, registerControlReplacement, trackUpgradePromotionClick, trackViewPromotion, transitionProperties, transitionsItemsList, useBoundProp, useControlActions, useControlReplacement, useFontFamilies, useSyncExternalState, useTypingBuffer };
|
package/dist/index.js
CHANGED
|
@@ -75,6 +75,8 @@ __export(index_exports, {
|
|
|
75
75
|
SizeComponent: () => SizeComponent,
|
|
76
76
|
SizeControl: () => SizeControl,
|
|
77
77
|
StrokeControl: () => StrokeControl,
|
|
78
|
+
StyledToggleButton: () => StyledToggleButton,
|
|
79
|
+
StyledToggleButtonGroup: () => StyledToggleButtonGroup,
|
|
78
80
|
SvgMediaControl: () => SvgMediaControl,
|
|
79
81
|
SwitchControl: () => SwitchControl,
|
|
80
82
|
TextAreaControl: () => TextAreaControl,
|
|
@@ -2922,10 +2924,16 @@ var LinkedDimensionsControl = ({ label, isSiteRtl = false, extendedOptions, min
|
|
|
2922
2924
|
const linkedLabel = (0, import_i18n18.__)("Link %s", "elementor").replace("%s", tooltipLabel);
|
|
2923
2925
|
const unlinkedLabel = (0, import_i18n18.__)("Unlink %s", "elementor").replace("%s", tooltipLabel);
|
|
2924
2926
|
const disabled = sizeDisabled || dimensionsDisabled;
|
|
2927
|
+
const effectiveDimensionsPlaceholder = dimensionsPlaceholder ?? (import_editor_props19.sizePropTypeUtil.extract(masterPlaceholder) ? {
|
|
2928
|
+
"block-start": masterPlaceholder,
|
|
2929
|
+
"block-end": masterPlaceholder,
|
|
2930
|
+
"inline-start": masterPlaceholder,
|
|
2931
|
+
"inline-end": masterPlaceholder
|
|
2932
|
+
} : null);
|
|
2925
2933
|
const propProviderProps = {
|
|
2926
2934
|
propType,
|
|
2927
2935
|
value: dimensionsValue,
|
|
2928
|
-
placeholder:
|
|
2936
|
+
placeholder: effectiveDimensionsPlaceholder,
|
|
2929
2937
|
setValue: setDimensionsValue,
|
|
2930
2938
|
isDisabled: () => dimensionsDisabled
|
|
2931
2939
|
};
|
|
@@ -8247,6 +8255,8 @@ var useFontFamilies = () => {
|
|
|
8247
8255
|
SizeComponent,
|
|
8248
8256
|
SizeControl,
|
|
8249
8257
|
StrokeControl,
|
|
8258
|
+
StyledToggleButton,
|
|
8259
|
+
StyledToggleButtonGroup,
|
|
8250
8260
|
SvgMediaControl,
|
|
8251
8261
|
SwitchControl,
|
|
8252
8262
|
TextAreaControl,
|