@elementor/editor-controls 3.33.0-115 → 3.33.0-117
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 -13
- package/dist/index.d.ts +10 -13
- package/dist/index.js +43 -400
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +35 -392
- package/dist/index.mjs.map +1 -1
- package/package.json +14 -14
- package/src/index.ts +1 -1
- package/src/components/css-code-editor/css-editor.styles.ts +0 -53
- package/src/components/css-code-editor/css-editor.tsx +0 -177
- package/src/components/css-code-editor/css-validation.ts +0 -75
- package/src/components/css-code-editor/resize-handle.tsx +0 -55
- package/src/components/css-code-editor/visual-content-change-protection.ts +0 -69
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React$1 from 'react';
|
|
2
|
-
import { RefObject, ReactNode, FC, PropsWithChildren, ComponentType } from 'react';
|
|
2
|
+
import { RefObject, ReactNode, FC, PropsWithChildren, ReactElement, ComponentType } from 'react';
|
|
3
3
|
import { SxProps, UnstableColorFieldProps, ToggleButtonProps, StackProps, PopupState, FormLabelProps } from '@elementor/ui';
|
|
4
4
|
import { StringPropValue, PropTypeUtil, PropValue, PropKey, SizePropValue, PropType, CreateOptions } from '@elementor/editor-props';
|
|
5
5
|
import { StyleDefinitionState } from '@elementor/editor-styles';
|
|
@@ -318,12 +318,6 @@ declare const transitionsItemsList: {
|
|
|
318
318
|
|
|
319
319
|
declare const ControlFormLabel: (props: FormLabelProps) => React$1.JSX.Element;
|
|
320
320
|
|
|
321
|
-
type CssEditorProps = {
|
|
322
|
-
value: string;
|
|
323
|
-
onChange: (value: string, isValid: boolean) => void;
|
|
324
|
-
};
|
|
325
|
-
declare const CssEditor: ({ value, onChange }: CssEditorProps) => React$1.JSX.Element;
|
|
326
|
-
|
|
327
321
|
type ClearIconButtonProps = {
|
|
328
322
|
onClick?: () => void;
|
|
329
323
|
tooltipText: React$1.ReactNode;
|
|
@@ -368,6 +362,14 @@ type RepeaterProps<T> = {
|
|
|
368
362
|
};
|
|
369
363
|
declare const Repeater: <T>({ label, itemSettings, disabled, openOnAdd, addToBottom, values: repeaterValues, setValues: setRepeaterValues, showDuplicate, showToggle, isSortable, collectionPropUtil, }: RepeaterProps<Item<T>>) => React$1.JSX.Element;
|
|
370
364
|
|
|
365
|
+
declare function FloatingActionsBar({ actions, children }: PropsWithChildren<{
|
|
366
|
+
actions: ReactElement[];
|
|
367
|
+
}>): React$1.JSX.Element;
|
|
368
|
+
declare function useFloatingActionsBar(): {
|
|
369
|
+
open: boolean;
|
|
370
|
+
setOpen: React$1.Dispatch<React$1.SetStateAction<boolean>>;
|
|
371
|
+
};
|
|
372
|
+
|
|
371
373
|
type AnyComponentType = ComponentType<any>;
|
|
372
374
|
declare const brandSymbol: unique symbol;
|
|
373
375
|
type ControlComponent<TComponent extends AnyComponentType = AnyComponentType> = TComponent & {
|
|
@@ -451,11 +453,6 @@ declare const createControlReplacementsRegistry: () => {
|
|
|
451
453
|
getControlReplacements: () => ControlReplacement[];
|
|
452
454
|
};
|
|
453
455
|
|
|
454
|
-
declare function useFloatingActionsBar(): {
|
|
455
|
-
open: boolean;
|
|
456
|
-
setOpen: React$1.Dispatch<React$1.SetStateAction<boolean>>;
|
|
457
|
-
};
|
|
458
|
-
|
|
459
456
|
type ControlAdornmentsItems = Array<{
|
|
460
457
|
id: string;
|
|
461
458
|
Adornment: ComponentType<{
|
|
@@ -499,4 +496,4 @@ type UseInternalStateOptions<TValue> = {
|
|
|
499
496
|
};
|
|
500
497
|
declare const useSyncExternalState: <TValue>({ external, setExternal, persistWhen, fallback, }: UseInternalStateOptions<TValue>) => readonly [TValue, (setter: ((value: TValue) => TValue) | TValue, options?: CreateOptions, meta?: SetValueMeta) => void];
|
|
501
498
|
|
|
502
|
-
export { type AngleUnit, AspectRatioControl, BackgroundControl, BoxShadowRepeaterControl, ClearIconButton, ColorControl, type ControlActionsItems, ControlActionsProvider, ControlAdornments, ControlAdornmentsProvider, type ControlComponent, ControlFormLabel, ControlReplacementsProvider, ControlToggleButtonGroup,
|
|
499
|
+
export { type AngleUnit, AspectRatioControl, BackgroundControl, BoxShadowRepeaterControl, ClearIconButton, ColorControl, type ControlActionsItems, ControlActionsProvider, ControlAdornments, ControlAdornmentsProvider, type ControlComponent, ControlFormLabel, ControlReplacementsProvider, ControlToggleButtonGroup, type EqualUnequalItems, EqualUnequalSizesControl, type ExtendedOption, FilterRepeaterControl, FloatingActionsBar, type FontCategory, FontFamilyControl, GapControl, ImageControl, ItemSelector, KeyValueControl, type LengthUnit, LinkControl, LinkedDimensionsControl, NumberControl, PopoverContent, PositionControl, PropKeyProvider, PropProvider, type PropProviderProps, RepeatableControl, Repeater, SelectControl, type SetValue, SizeControl, StrokeControl, SvgMediaControl, SwitchControl, TextAreaControl, TextControl, type TimeUnit, type ToggleButtonGroupItem, ToggleControl, type ToggleControlProps, TransformBaseControl, TransformRepeaterControl, TransitionRepeaterControl, type Unit, UrlControl, createControl, createControlReplacementsRegistry, enqueueFont, injectIntoRepeaterHeaderActions, injectIntoRepeaterItemActions, injectIntoRepeaterItemIcon, injectIntoRepeaterItemLabel, transitionProperties, transitionsItemsList, useBoundProp, useControlActions, useFloatingActionsBar, useSyncExternalState };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React$1 from 'react';
|
|
2
|
-
import { RefObject, ReactNode, FC, PropsWithChildren, ComponentType } from 'react';
|
|
2
|
+
import { RefObject, ReactNode, FC, PropsWithChildren, ReactElement, ComponentType } from 'react';
|
|
3
3
|
import { SxProps, UnstableColorFieldProps, ToggleButtonProps, StackProps, PopupState, FormLabelProps } from '@elementor/ui';
|
|
4
4
|
import { StringPropValue, PropTypeUtil, PropValue, PropKey, SizePropValue, PropType, CreateOptions } from '@elementor/editor-props';
|
|
5
5
|
import { StyleDefinitionState } from '@elementor/editor-styles';
|
|
@@ -318,12 +318,6 @@ declare const transitionsItemsList: {
|
|
|
318
318
|
|
|
319
319
|
declare const ControlFormLabel: (props: FormLabelProps) => React$1.JSX.Element;
|
|
320
320
|
|
|
321
|
-
type CssEditorProps = {
|
|
322
|
-
value: string;
|
|
323
|
-
onChange: (value: string, isValid: boolean) => void;
|
|
324
|
-
};
|
|
325
|
-
declare const CssEditor: ({ value, onChange }: CssEditorProps) => React$1.JSX.Element;
|
|
326
|
-
|
|
327
321
|
type ClearIconButtonProps = {
|
|
328
322
|
onClick?: () => void;
|
|
329
323
|
tooltipText: React$1.ReactNode;
|
|
@@ -368,6 +362,14 @@ type RepeaterProps<T> = {
|
|
|
368
362
|
};
|
|
369
363
|
declare const Repeater: <T>({ label, itemSettings, disabled, openOnAdd, addToBottom, values: repeaterValues, setValues: setRepeaterValues, showDuplicate, showToggle, isSortable, collectionPropUtil, }: RepeaterProps<Item<T>>) => React$1.JSX.Element;
|
|
370
364
|
|
|
365
|
+
declare function FloatingActionsBar({ actions, children }: PropsWithChildren<{
|
|
366
|
+
actions: ReactElement[];
|
|
367
|
+
}>): React$1.JSX.Element;
|
|
368
|
+
declare function useFloatingActionsBar(): {
|
|
369
|
+
open: boolean;
|
|
370
|
+
setOpen: React$1.Dispatch<React$1.SetStateAction<boolean>>;
|
|
371
|
+
};
|
|
372
|
+
|
|
371
373
|
type AnyComponentType = ComponentType<any>;
|
|
372
374
|
declare const brandSymbol: unique symbol;
|
|
373
375
|
type ControlComponent<TComponent extends AnyComponentType = AnyComponentType> = TComponent & {
|
|
@@ -451,11 +453,6 @@ declare const createControlReplacementsRegistry: () => {
|
|
|
451
453
|
getControlReplacements: () => ControlReplacement[];
|
|
452
454
|
};
|
|
453
455
|
|
|
454
|
-
declare function useFloatingActionsBar(): {
|
|
455
|
-
open: boolean;
|
|
456
|
-
setOpen: React$1.Dispatch<React$1.SetStateAction<boolean>>;
|
|
457
|
-
};
|
|
458
|
-
|
|
459
456
|
type ControlAdornmentsItems = Array<{
|
|
460
457
|
id: string;
|
|
461
458
|
Adornment: ComponentType<{
|
|
@@ -499,4 +496,4 @@ type UseInternalStateOptions<TValue> = {
|
|
|
499
496
|
};
|
|
500
497
|
declare const useSyncExternalState: <TValue>({ external, setExternal, persistWhen, fallback, }: UseInternalStateOptions<TValue>) => readonly [TValue, (setter: ((value: TValue) => TValue) | TValue, options?: CreateOptions, meta?: SetValueMeta) => void];
|
|
501
498
|
|
|
502
|
-
export { type AngleUnit, AspectRatioControl, BackgroundControl, BoxShadowRepeaterControl, ClearIconButton, ColorControl, type ControlActionsItems, ControlActionsProvider, ControlAdornments, ControlAdornmentsProvider, type ControlComponent, ControlFormLabel, ControlReplacementsProvider, ControlToggleButtonGroup,
|
|
499
|
+
export { type AngleUnit, AspectRatioControl, BackgroundControl, BoxShadowRepeaterControl, ClearIconButton, ColorControl, type ControlActionsItems, ControlActionsProvider, ControlAdornments, ControlAdornmentsProvider, type ControlComponent, ControlFormLabel, ControlReplacementsProvider, ControlToggleButtonGroup, type EqualUnequalItems, EqualUnequalSizesControl, type ExtendedOption, FilterRepeaterControl, FloatingActionsBar, type FontCategory, FontFamilyControl, GapControl, ImageControl, ItemSelector, KeyValueControl, type LengthUnit, LinkControl, LinkedDimensionsControl, NumberControl, PopoverContent, PositionControl, PropKeyProvider, PropProvider, type PropProviderProps, RepeatableControl, Repeater, SelectControl, type SetValue, SizeControl, StrokeControl, SvgMediaControl, SwitchControl, TextAreaControl, TextControl, type TimeUnit, type ToggleButtonGroupItem, ToggleControl, type ToggleControlProps, TransformBaseControl, TransformRepeaterControl, TransitionRepeaterControl, type Unit, UrlControl, createControl, createControlReplacementsRegistry, enqueueFont, injectIntoRepeaterHeaderActions, injectIntoRepeaterItemActions, injectIntoRepeaterItemIcon, injectIntoRepeaterItemLabel, transitionProperties, transitionsItemsList, useBoundProp, useControlActions, useFloatingActionsBar, useSyncExternalState };
|