@elementor/editor-editing-panel 3.33.0-172 → 3.33.0-174
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 +116 -112
- package/dist/index.d.ts +116 -112
- package/dist/index.js +3504 -3476
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3589 -3564
- package/dist/index.mjs.map +1 -1
- package/package.json +19 -19
- package/src/apply-unapply-actions.ts +30 -0
- package/src/components/css-classes/use-apply-and-unapply-class.ts +4 -12
- package/src/index.ts +14 -12
package/dist/index.d.mts
CHANGED
|
@@ -4,18 +4,18 @@ export { useBoundProp } from '@elementor/editor-controls';
|
|
|
4
4
|
import * as _elementor_locations from '@elementor/locations';
|
|
5
5
|
import { StyleDefinition, StyleDefinitionVariant, StyleDefinitionState, StyleDefinitionID } from '@elementor/editor-styles';
|
|
6
6
|
import * as react from 'react';
|
|
7
|
-
import { FC, PropsWithChildren, ElementType, ComponentType
|
|
7
|
+
import { FC, PropsWithChildren, Dispatch, ElementType as ElementType$1, ComponentType } from 'react';
|
|
8
8
|
import { PopoverBody as PopoverBody$1 } from '@elementor/editor-ui';
|
|
9
|
+
import * as _emotion_styled from '@emotion/styled';
|
|
10
|
+
import * as _mui_system from '@mui/system';
|
|
11
|
+
import { Theme, ChipProps } from '@elementor/ui';
|
|
12
|
+
import { Element, ElementType, ControlLayout } from '@elementor/editor-elements';
|
|
13
|
+
import { StylesProvider } from '@elementor/editor-styles-repository';
|
|
9
14
|
import * as _elementor_editor_props from '@elementor/editor-props';
|
|
10
15
|
import { PropTypeUtil } from '@elementor/editor-props';
|
|
11
16
|
import * as _elementor_menus from '@elementor/menus';
|
|
12
|
-
import { ChipProps, Theme } from '@elementor/ui';
|
|
13
17
|
import * as _mui_material from '@mui/material';
|
|
14
|
-
import * as _mui_system from '@mui/system';
|
|
15
18
|
import * as zod from 'zod';
|
|
16
|
-
import { ControlLayout, Element, ElementType as ElementType$1 } from '@elementor/editor-elements';
|
|
17
|
-
import * as _emotion_styled from '@emotion/styled';
|
|
18
|
-
import { StylesProvider } from '@elementor/editor-styles-repository';
|
|
19
19
|
import * as _elementor_utils from '@elementor/utils';
|
|
20
20
|
|
|
21
21
|
type ValidationResult = {
|
|
@@ -35,6 +35,8 @@ declare const injectIntoCssClassConvert: (args: _elementor_locations.InjectArgs<
|
|
|
35
35
|
|
|
36
36
|
declare const injectIntoClassSelectorActions: (args: _elementor_locations.InjectArgs<object>) => void;
|
|
37
37
|
|
|
38
|
+
declare const CustomCssIndicator: () => react.JSX.Element | null;
|
|
39
|
+
|
|
38
40
|
type Props$1 = react.ComponentProps<typeof PopoverBody$1>;
|
|
39
41
|
declare const PopoverBody: (props: Props$1) => react.JSX.Element;
|
|
40
42
|
|
|
@@ -46,21 +48,56 @@ type SectionContentProps = PropsWithChildren<{
|
|
|
46
48
|
}>;
|
|
47
49
|
declare const SectionContent: FC<SectionContentProps>;
|
|
48
50
|
|
|
51
|
+
declare const StyleIndicator: _emotion_styled.StyledComponent<_mui_system.MUIStyledCommonProps<Theme> & ({
|
|
52
|
+
isOverridden?: boolean;
|
|
53
|
+
getColor?: never;
|
|
54
|
+
} | {
|
|
55
|
+
isOverridden?: boolean;
|
|
56
|
+
getColor?: ((theme: Theme) => string) | null;
|
|
57
|
+
}), react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
58
|
+
|
|
49
59
|
declare const useFontFamilies: () => FontCategory[];
|
|
50
60
|
|
|
51
|
-
declare const
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
61
|
+
declare const injectIntoStyleTab: (args: _elementor_locations.InjectArgs<object>) => void;
|
|
62
|
+
|
|
63
|
+
type SectionType = {
|
|
64
|
+
component: () => react.JSX.Element;
|
|
65
|
+
name: string;
|
|
66
|
+
title: string;
|
|
67
|
+
};
|
|
68
|
+
type Props = {
|
|
69
|
+
section: SectionType;
|
|
70
|
+
fields?: string[];
|
|
71
|
+
unmountOnExit?: boolean;
|
|
72
|
+
};
|
|
73
|
+
declare const StyleTabSection: ({ section, fields, unmountOnExit }: Props) => react.JSX.Element;
|
|
74
|
+
|
|
75
|
+
declare function useClassesProp(): string;
|
|
76
|
+
|
|
77
|
+
type ContextValue$1 = {
|
|
78
|
+
element: Element;
|
|
79
|
+
elementType: ElementType;
|
|
60
80
|
};
|
|
81
|
+
declare function useElement(): ContextValue$1;
|
|
61
82
|
|
|
62
83
|
declare const useSectionWidth: () => number;
|
|
63
84
|
|
|
85
|
+
type ContextValue = {
|
|
86
|
+
setId: Dispatch<StyleDefinition['id'] | null>;
|
|
87
|
+
meta: StyleDefinitionVariant['meta'];
|
|
88
|
+
setMetaState: Dispatch<StyleDefinitionState>;
|
|
89
|
+
canEdit?: boolean;
|
|
90
|
+
} & (ContextValueWithProvider | ContextValueWithoutProvider);
|
|
91
|
+
type ContextValueWithProvider = {
|
|
92
|
+
id: StyleDefinitionID;
|
|
93
|
+
provider: StylesProvider;
|
|
94
|
+
};
|
|
95
|
+
type ContextValueWithoutProvider = {
|
|
96
|
+
id: null;
|
|
97
|
+
provider: null;
|
|
98
|
+
};
|
|
99
|
+
declare function useStyle(): ContextValue;
|
|
100
|
+
|
|
64
101
|
declare const registerControlReplacement: (replacement: {
|
|
65
102
|
component: react.ComponentType;
|
|
66
103
|
condition: ({ value }: {
|
|
@@ -72,7 +109,7 @@ declare const registerControlReplacement: (replacement: {
|
|
|
72
109
|
type ActionProps = {
|
|
73
110
|
title: string;
|
|
74
111
|
visible?: boolean;
|
|
75
|
-
icon: ElementType;
|
|
112
|
+
icon: ElementType$1;
|
|
76
113
|
onClick: () => void;
|
|
77
114
|
};
|
|
78
115
|
declare function Action({ title, visible, icon: Icon, onClick }: ActionProps): react.JSX.Element | null;
|
|
@@ -80,7 +117,7 @@ declare function Action({ title, visible, icon: Icon, onClick }: ActionProps): r
|
|
|
80
117
|
type PopoverActionProps = {
|
|
81
118
|
title: string;
|
|
82
119
|
visible?: boolean;
|
|
83
|
-
icon: ElementType;
|
|
120
|
+
icon: ElementType$1;
|
|
84
121
|
content: ComponentType<{
|
|
85
122
|
close: () => void;
|
|
86
123
|
}>;
|
|
@@ -92,52 +129,6 @@ declare const controlActionsMenu: _elementor_menus.Menu<{
|
|
|
92
129
|
PopoverAction: typeof PopoverAction;
|
|
93
130
|
}, "default">;
|
|
94
131
|
|
|
95
|
-
declare function init(): void;
|
|
96
|
-
|
|
97
|
-
declare const usePanelActions: () => {
|
|
98
|
-
open: () => Promise<void>;
|
|
99
|
-
close: () => Promise<void>;
|
|
100
|
-
};
|
|
101
|
-
declare const usePanelStatus: () => {
|
|
102
|
-
isOpen: boolean;
|
|
103
|
-
isBlocked: boolean;
|
|
104
|
-
};
|
|
105
|
-
|
|
106
|
-
type Colors = {
|
|
107
|
-
name: ChipProps['color'];
|
|
108
|
-
getThemeColor: ((theme: Theme) => string) | null;
|
|
109
|
-
};
|
|
110
|
-
declare const registerStyleProviderToColors: (provider: string, colors: Colors) => void;
|
|
111
|
-
|
|
112
|
-
declare const stylesInheritanceTransformersRegistry: {
|
|
113
|
-
register(type: _elementor_editor_props.PropTypeKey, transformer: ((value: any, options: {
|
|
114
|
-
key: string;
|
|
115
|
-
signal?: AbortSignal;
|
|
116
|
-
}) => unknown) & {
|
|
117
|
-
__transformer: true;
|
|
118
|
-
}): any;
|
|
119
|
-
registerFallback(transformer: ((value: any, options: {
|
|
120
|
-
key: string;
|
|
121
|
-
signal?: AbortSignal;
|
|
122
|
-
}) => unknown) & {
|
|
123
|
-
__transformer: true;
|
|
124
|
-
}): any;
|
|
125
|
-
get(type: _elementor_editor_props.PropTypeKey): (((value: any, options: {
|
|
126
|
-
key: string;
|
|
127
|
-
signal?: AbortSignal;
|
|
128
|
-
}) => unknown) & {
|
|
129
|
-
__transformer: true;
|
|
130
|
-
}) | null;
|
|
131
|
-
all(): {
|
|
132
|
-
[x: string]: ((value: any, options: {
|
|
133
|
-
key: string;
|
|
134
|
-
signal?: AbortSignal;
|
|
135
|
-
}) => unknown) & {
|
|
136
|
-
__transformer: true;
|
|
137
|
-
};
|
|
138
|
-
};
|
|
139
|
-
};
|
|
140
|
-
|
|
141
132
|
type ControlRegistry = Record<string, {
|
|
142
133
|
component: ControlComponent;
|
|
143
134
|
layout: ControlLayout;
|
|
@@ -1111,52 +1102,6 @@ declare class ControlsRegistry {
|
|
|
1111
1102
|
}
|
|
1112
1103
|
declare const controlsRegistry: ControlsRegistry;
|
|
1113
1104
|
|
|
1114
|
-
type SectionType = {
|
|
1115
|
-
component: () => react.JSX.Element;
|
|
1116
|
-
name: string;
|
|
1117
|
-
title: string;
|
|
1118
|
-
};
|
|
1119
|
-
type Props = {
|
|
1120
|
-
section: SectionType;
|
|
1121
|
-
fields?: string[];
|
|
1122
|
-
unmountOnExit?: boolean;
|
|
1123
|
-
};
|
|
1124
|
-
declare const StyleTabSection: ({ section, fields, unmountOnExit }: Props) => react.JSX.Element;
|
|
1125
|
-
|
|
1126
|
-
declare const injectIntoStyleTab: (args: _elementor_locations.InjectArgs<object>) => void;
|
|
1127
|
-
|
|
1128
|
-
declare const StyleIndicator: _emotion_styled.StyledComponent<_mui_system.MUIStyledCommonProps<Theme> & ({
|
|
1129
|
-
isOverridden?: boolean;
|
|
1130
|
-
getColor?: never;
|
|
1131
|
-
} | {
|
|
1132
|
-
isOverridden?: boolean;
|
|
1133
|
-
getColor?: ((theme: Theme) => string) | null;
|
|
1134
|
-
}), react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
1135
|
-
|
|
1136
|
-
declare function useClassesProp(): string;
|
|
1137
|
-
|
|
1138
|
-
type ContextValue$1 = {
|
|
1139
|
-
element: Element;
|
|
1140
|
-
elementType: ElementType$1;
|
|
1141
|
-
};
|
|
1142
|
-
declare function useElement(): ContextValue$1;
|
|
1143
|
-
|
|
1144
|
-
type ContextValue = {
|
|
1145
|
-
setId: Dispatch<StyleDefinition['id'] | null>;
|
|
1146
|
-
meta: StyleDefinitionVariant['meta'];
|
|
1147
|
-
setMetaState: Dispatch<StyleDefinitionState>;
|
|
1148
|
-
canEdit?: boolean;
|
|
1149
|
-
} & (ContextValueWithProvider | ContextValueWithoutProvider);
|
|
1150
|
-
type ContextValueWithProvider = {
|
|
1151
|
-
id: StyleDefinitionID;
|
|
1152
|
-
provider: StylesProvider;
|
|
1153
|
-
};
|
|
1154
|
-
type ContextValueWithoutProvider = {
|
|
1155
|
-
id: null;
|
|
1156
|
-
provider: null;
|
|
1157
|
-
};
|
|
1158
|
-
declare function useStyle(): ContextValue;
|
|
1159
|
-
|
|
1160
1105
|
declare const StylesProviderCannotUpdatePropsError: {
|
|
1161
1106
|
new ({ cause, context }?: {
|
|
1162
1107
|
cause?: _elementor_utils.ElementorErrorOptions["cause"];
|
|
@@ -1174,7 +1119,16 @@ declare const StylesProviderCannotUpdatePropsError: {
|
|
|
1174
1119
|
isError(error: unknown): error is Error;
|
|
1175
1120
|
};
|
|
1176
1121
|
|
|
1177
|
-
declare const
|
|
1122
|
+
declare const useCustomCss: () => {
|
|
1123
|
+
customCss: {
|
|
1124
|
+
raw: string;
|
|
1125
|
+
} | null;
|
|
1126
|
+
setCustomCss: (raw: string, { history: { propDisplayName } }: {
|
|
1127
|
+
history: {
|
|
1128
|
+
propDisplayName: string;
|
|
1129
|
+
};
|
|
1130
|
+
}) => void;
|
|
1131
|
+
};
|
|
1178
1132
|
|
|
1179
1133
|
declare const HISTORY_DEBOUNCE_WAIT = 800;
|
|
1180
1134
|
type TitleOptions = {
|
|
@@ -1188,6 +1142,56 @@ type SubtitleOptions = TitleOptions & {
|
|
|
1188
1142
|
declare const getTitle: ({ provider, styleId, elementId }: TitleOptions) => string;
|
|
1189
1143
|
declare const getSubtitle: ({ provider, styleId, propDisplayName, elementId }: SubtitleOptions) => string;
|
|
1190
1144
|
|
|
1191
|
-
declare const
|
|
1145
|
+
declare const useStylesRerender: () => void;
|
|
1146
|
+
|
|
1147
|
+
declare function init(): void;
|
|
1148
|
+
|
|
1149
|
+
declare const usePanelActions: () => {
|
|
1150
|
+
open: () => Promise<void>;
|
|
1151
|
+
close: () => Promise<void>;
|
|
1152
|
+
};
|
|
1153
|
+
declare const usePanelStatus: () => {
|
|
1154
|
+
isOpen: boolean;
|
|
1155
|
+
isBlocked: boolean;
|
|
1156
|
+
};
|
|
1157
|
+
|
|
1158
|
+
type Colors = {
|
|
1159
|
+
name: ChipProps['color'];
|
|
1160
|
+
getThemeColor: ((theme: Theme) => string) | null;
|
|
1161
|
+
};
|
|
1162
|
+
declare const registerStyleProviderToColors: (provider: string, colors: Colors) => void;
|
|
1163
|
+
|
|
1164
|
+
declare const stylesInheritanceTransformersRegistry: {
|
|
1165
|
+
register(type: _elementor_editor_props.PropTypeKey, transformer: ((value: any, options: {
|
|
1166
|
+
key: string;
|
|
1167
|
+
signal?: AbortSignal;
|
|
1168
|
+
}) => unknown) & {
|
|
1169
|
+
__transformer: true;
|
|
1170
|
+
}): any;
|
|
1171
|
+
registerFallback(transformer: ((value: any, options: {
|
|
1172
|
+
key: string;
|
|
1173
|
+
signal?: AbortSignal;
|
|
1174
|
+
}) => unknown) & {
|
|
1175
|
+
__transformer: true;
|
|
1176
|
+
}): any;
|
|
1177
|
+
get(type: _elementor_editor_props.PropTypeKey): (((value: any, options: {
|
|
1178
|
+
key: string;
|
|
1179
|
+
signal?: AbortSignal;
|
|
1180
|
+
}) => unknown) & {
|
|
1181
|
+
__transformer: true;
|
|
1182
|
+
}) | null;
|
|
1183
|
+
all(): {
|
|
1184
|
+
[x: string]: ((value: any, options: {
|
|
1185
|
+
key: string;
|
|
1186
|
+
signal?: AbortSignal;
|
|
1187
|
+
}) => unknown) & {
|
|
1188
|
+
__transformer: true;
|
|
1189
|
+
};
|
|
1190
|
+
};
|
|
1191
|
+
};
|
|
1192
|
+
|
|
1193
|
+
declare function doGetAppliedClasses(elementId: string, classesPropType?: string): string[];
|
|
1194
|
+
declare function doApplyClasses(elementId: string, classIds: StyleDefinitionID[], classesPropType?: string): void;
|
|
1195
|
+
declare function doUnapplyClass(elementId: string, classId: StyleDefinitionID, classesPropType?: string): boolean;
|
|
1192
1196
|
|
|
1193
|
-
export { CustomCssIndicator, HISTORY_DEBOUNCE_WAIT, type PopoverActionProps, PopoverBody, SectionContent, StyleIndicator, StyleTabSection, StylesProviderCannotUpdatePropsError, type ValidationEvent, type ValidationResult, controlActionsMenu, controlsRegistry, getSubtitle, getTitle, init, injectIntoClassSelectorActions, injectIntoCssClassConvert, injectIntoStyleTab, registerControlReplacement, registerStyleProviderToColors, stylesInheritanceTransformersRegistry, useClassesProp, useCustomCss, useElement, useFontFamilies, usePanelActions, usePanelStatus, useSectionWidth, useStyle, useStylesRerender };
|
|
1197
|
+
export { CustomCssIndicator, HISTORY_DEBOUNCE_WAIT, type PopoverActionProps, PopoverBody, SectionContent, StyleIndicator, StyleTabSection, StylesProviderCannotUpdatePropsError, type ValidationEvent, type ValidationResult, controlActionsMenu, controlsRegistry, doApplyClasses, doGetAppliedClasses, doUnapplyClass, getSubtitle, getTitle, init, injectIntoClassSelectorActions, injectIntoCssClassConvert, injectIntoStyleTab, registerControlReplacement, registerStyleProviderToColors, stylesInheritanceTransformersRegistry, useClassesProp, useCustomCss, useElement, useFontFamilies, usePanelActions, usePanelStatus, useSectionWidth, useStyle, useStylesRerender };
|
package/dist/index.d.ts
CHANGED
|
@@ -4,18 +4,18 @@ export { useBoundProp } from '@elementor/editor-controls';
|
|
|
4
4
|
import * as _elementor_locations from '@elementor/locations';
|
|
5
5
|
import { StyleDefinition, StyleDefinitionVariant, StyleDefinitionState, StyleDefinitionID } from '@elementor/editor-styles';
|
|
6
6
|
import * as react from 'react';
|
|
7
|
-
import { FC, PropsWithChildren, ElementType, ComponentType
|
|
7
|
+
import { FC, PropsWithChildren, Dispatch, ElementType as ElementType$1, ComponentType } from 'react';
|
|
8
8
|
import { PopoverBody as PopoverBody$1 } from '@elementor/editor-ui';
|
|
9
|
+
import * as _emotion_styled from '@emotion/styled';
|
|
10
|
+
import * as _mui_system from '@mui/system';
|
|
11
|
+
import { Theme, ChipProps } from '@elementor/ui';
|
|
12
|
+
import { Element, ElementType, ControlLayout } from '@elementor/editor-elements';
|
|
13
|
+
import { StylesProvider } from '@elementor/editor-styles-repository';
|
|
9
14
|
import * as _elementor_editor_props from '@elementor/editor-props';
|
|
10
15
|
import { PropTypeUtil } from '@elementor/editor-props';
|
|
11
16
|
import * as _elementor_menus from '@elementor/menus';
|
|
12
|
-
import { ChipProps, Theme } from '@elementor/ui';
|
|
13
17
|
import * as _mui_material from '@mui/material';
|
|
14
|
-
import * as _mui_system from '@mui/system';
|
|
15
18
|
import * as zod from 'zod';
|
|
16
|
-
import { ControlLayout, Element, ElementType as ElementType$1 } from '@elementor/editor-elements';
|
|
17
|
-
import * as _emotion_styled from '@emotion/styled';
|
|
18
|
-
import { StylesProvider } from '@elementor/editor-styles-repository';
|
|
19
19
|
import * as _elementor_utils from '@elementor/utils';
|
|
20
20
|
|
|
21
21
|
type ValidationResult = {
|
|
@@ -35,6 +35,8 @@ declare const injectIntoCssClassConvert: (args: _elementor_locations.InjectArgs<
|
|
|
35
35
|
|
|
36
36
|
declare const injectIntoClassSelectorActions: (args: _elementor_locations.InjectArgs<object>) => void;
|
|
37
37
|
|
|
38
|
+
declare const CustomCssIndicator: () => react.JSX.Element | null;
|
|
39
|
+
|
|
38
40
|
type Props$1 = react.ComponentProps<typeof PopoverBody$1>;
|
|
39
41
|
declare const PopoverBody: (props: Props$1) => react.JSX.Element;
|
|
40
42
|
|
|
@@ -46,21 +48,56 @@ type SectionContentProps = PropsWithChildren<{
|
|
|
46
48
|
}>;
|
|
47
49
|
declare const SectionContent: FC<SectionContentProps>;
|
|
48
50
|
|
|
51
|
+
declare const StyleIndicator: _emotion_styled.StyledComponent<_mui_system.MUIStyledCommonProps<Theme> & ({
|
|
52
|
+
isOverridden?: boolean;
|
|
53
|
+
getColor?: never;
|
|
54
|
+
} | {
|
|
55
|
+
isOverridden?: boolean;
|
|
56
|
+
getColor?: ((theme: Theme) => string) | null;
|
|
57
|
+
}), react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
58
|
+
|
|
49
59
|
declare const useFontFamilies: () => FontCategory[];
|
|
50
60
|
|
|
51
|
-
declare const
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
61
|
+
declare const injectIntoStyleTab: (args: _elementor_locations.InjectArgs<object>) => void;
|
|
62
|
+
|
|
63
|
+
type SectionType = {
|
|
64
|
+
component: () => react.JSX.Element;
|
|
65
|
+
name: string;
|
|
66
|
+
title: string;
|
|
67
|
+
};
|
|
68
|
+
type Props = {
|
|
69
|
+
section: SectionType;
|
|
70
|
+
fields?: string[];
|
|
71
|
+
unmountOnExit?: boolean;
|
|
72
|
+
};
|
|
73
|
+
declare const StyleTabSection: ({ section, fields, unmountOnExit }: Props) => react.JSX.Element;
|
|
74
|
+
|
|
75
|
+
declare function useClassesProp(): string;
|
|
76
|
+
|
|
77
|
+
type ContextValue$1 = {
|
|
78
|
+
element: Element;
|
|
79
|
+
elementType: ElementType;
|
|
60
80
|
};
|
|
81
|
+
declare function useElement(): ContextValue$1;
|
|
61
82
|
|
|
62
83
|
declare const useSectionWidth: () => number;
|
|
63
84
|
|
|
85
|
+
type ContextValue = {
|
|
86
|
+
setId: Dispatch<StyleDefinition['id'] | null>;
|
|
87
|
+
meta: StyleDefinitionVariant['meta'];
|
|
88
|
+
setMetaState: Dispatch<StyleDefinitionState>;
|
|
89
|
+
canEdit?: boolean;
|
|
90
|
+
} & (ContextValueWithProvider | ContextValueWithoutProvider);
|
|
91
|
+
type ContextValueWithProvider = {
|
|
92
|
+
id: StyleDefinitionID;
|
|
93
|
+
provider: StylesProvider;
|
|
94
|
+
};
|
|
95
|
+
type ContextValueWithoutProvider = {
|
|
96
|
+
id: null;
|
|
97
|
+
provider: null;
|
|
98
|
+
};
|
|
99
|
+
declare function useStyle(): ContextValue;
|
|
100
|
+
|
|
64
101
|
declare const registerControlReplacement: (replacement: {
|
|
65
102
|
component: react.ComponentType;
|
|
66
103
|
condition: ({ value }: {
|
|
@@ -72,7 +109,7 @@ declare const registerControlReplacement: (replacement: {
|
|
|
72
109
|
type ActionProps = {
|
|
73
110
|
title: string;
|
|
74
111
|
visible?: boolean;
|
|
75
|
-
icon: ElementType;
|
|
112
|
+
icon: ElementType$1;
|
|
76
113
|
onClick: () => void;
|
|
77
114
|
};
|
|
78
115
|
declare function Action({ title, visible, icon: Icon, onClick }: ActionProps): react.JSX.Element | null;
|
|
@@ -80,7 +117,7 @@ declare function Action({ title, visible, icon: Icon, onClick }: ActionProps): r
|
|
|
80
117
|
type PopoverActionProps = {
|
|
81
118
|
title: string;
|
|
82
119
|
visible?: boolean;
|
|
83
|
-
icon: ElementType;
|
|
120
|
+
icon: ElementType$1;
|
|
84
121
|
content: ComponentType<{
|
|
85
122
|
close: () => void;
|
|
86
123
|
}>;
|
|
@@ -92,52 +129,6 @@ declare const controlActionsMenu: _elementor_menus.Menu<{
|
|
|
92
129
|
PopoverAction: typeof PopoverAction;
|
|
93
130
|
}, "default">;
|
|
94
131
|
|
|
95
|
-
declare function init(): void;
|
|
96
|
-
|
|
97
|
-
declare const usePanelActions: () => {
|
|
98
|
-
open: () => Promise<void>;
|
|
99
|
-
close: () => Promise<void>;
|
|
100
|
-
};
|
|
101
|
-
declare const usePanelStatus: () => {
|
|
102
|
-
isOpen: boolean;
|
|
103
|
-
isBlocked: boolean;
|
|
104
|
-
};
|
|
105
|
-
|
|
106
|
-
type Colors = {
|
|
107
|
-
name: ChipProps['color'];
|
|
108
|
-
getThemeColor: ((theme: Theme) => string) | null;
|
|
109
|
-
};
|
|
110
|
-
declare const registerStyleProviderToColors: (provider: string, colors: Colors) => void;
|
|
111
|
-
|
|
112
|
-
declare const stylesInheritanceTransformersRegistry: {
|
|
113
|
-
register(type: _elementor_editor_props.PropTypeKey, transformer: ((value: any, options: {
|
|
114
|
-
key: string;
|
|
115
|
-
signal?: AbortSignal;
|
|
116
|
-
}) => unknown) & {
|
|
117
|
-
__transformer: true;
|
|
118
|
-
}): any;
|
|
119
|
-
registerFallback(transformer: ((value: any, options: {
|
|
120
|
-
key: string;
|
|
121
|
-
signal?: AbortSignal;
|
|
122
|
-
}) => unknown) & {
|
|
123
|
-
__transformer: true;
|
|
124
|
-
}): any;
|
|
125
|
-
get(type: _elementor_editor_props.PropTypeKey): (((value: any, options: {
|
|
126
|
-
key: string;
|
|
127
|
-
signal?: AbortSignal;
|
|
128
|
-
}) => unknown) & {
|
|
129
|
-
__transformer: true;
|
|
130
|
-
}) | null;
|
|
131
|
-
all(): {
|
|
132
|
-
[x: string]: ((value: any, options: {
|
|
133
|
-
key: string;
|
|
134
|
-
signal?: AbortSignal;
|
|
135
|
-
}) => unknown) & {
|
|
136
|
-
__transformer: true;
|
|
137
|
-
};
|
|
138
|
-
};
|
|
139
|
-
};
|
|
140
|
-
|
|
141
132
|
type ControlRegistry = Record<string, {
|
|
142
133
|
component: ControlComponent;
|
|
143
134
|
layout: ControlLayout;
|
|
@@ -1111,52 +1102,6 @@ declare class ControlsRegistry {
|
|
|
1111
1102
|
}
|
|
1112
1103
|
declare const controlsRegistry: ControlsRegistry;
|
|
1113
1104
|
|
|
1114
|
-
type SectionType = {
|
|
1115
|
-
component: () => react.JSX.Element;
|
|
1116
|
-
name: string;
|
|
1117
|
-
title: string;
|
|
1118
|
-
};
|
|
1119
|
-
type Props = {
|
|
1120
|
-
section: SectionType;
|
|
1121
|
-
fields?: string[];
|
|
1122
|
-
unmountOnExit?: boolean;
|
|
1123
|
-
};
|
|
1124
|
-
declare const StyleTabSection: ({ section, fields, unmountOnExit }: Props) => react.JSX.Element;
|
|
1125
|
-
|
|
1126
|
-
declare const injectIntoStyleTab: (args: _elementor_locations.InjectArgs<object>) => void;
|
|
1127
|
-
|
|
1128
|
-
declare const StyleIndicator: _emotion_styled.StyledComponent<_mui_system.MUIStyledCommonProps<Theme> & ({
|
|
1129
|
-
isOverridden?: boolean;
|
|
1130
|
-
getColor?: never;
|
|
1131
|
-
} | {
|
|
1132
|
-
isOverridden?: boolean;
|
|
1133
|
-
getColor?: ((theme: Theme) => string) | null;
|
|
1134
|
-
}), react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
1135
|
-
|
|
1136
|
-
declare function useClassesProp(): string;
|
|
1137
|
-
|
|
1138
|
-
type ContextValue$1 = {
|
|
1139
|
-
element: Element;
|
|
1140
|
-
elementType: ElementType$1;
|
|
1141
|
-
};
|
|
1142
|
-
declare function useElement(): ContextValue$1;
|
|
1143
|
-
|
|
1144
|
-
type ContextValue = {
|
|
1145
|
-
setId: Dispatch<StyleDefinition['id'] | null>;
|
|
1146
|
-
meta: StyleDefinitionVariant['meta'];
|
|
1147
|
-
setMetaState: Dispatch<StyleDefinitionState>;
|
|
1148
|
-
canEdit?: boolean;
|
|
1149
|
-
} & (ContextValueWithProvider | ContextValueWithoutProvider);
|
|
1150
|
-
type ContextValueWithProvider = {
|
|
1151
|
-
id: StyleDefinitionID;
|
|
1152
|
-
provider: StylesProvider;
|
|
1153
|
-
};
|
|
1154
|
-
type ContextValueWithoutProvider = {
|
|
1155
|
-
id: null;
|
|
1156
|
-
provider: null;
|
|
1157
|
-
};
|
|
1158
|
-
declare function useStyle(): ContextValue;
|
|
1159
|
-
|
|
1160
1105
|
declare const StylesProviderCannotUpdatePropsError: {
|
|
1161
1106
|
new ({ cause, context }?: {
|
|
1162
1107
|
cause?: _elementor_utils.ElementorErrorOptions["cause"];
|
|
@@ -1174,7 +1119,16 @@ declare const StylesProviderCannotUpdatePropsError: {
|
|
|
1174
1119
|
isError(error: unknown): error is Error;
|
|
1175
1120
|
};
|
|
1176
1121
|
|
|
1177
|
-
declare const
|
|
1122
|
+
declare const useCustomCss: () => {
|
|
1123
|
+
customCss: {
|
|
1124
|
+
raw: string;
|
|
1125
|
+
} | null;
|
|
1126
|
+
setCustomCss: (raw: string, { history: { propDisplayName } }: {
|
|
1127
|
+
history: {
|
|
1128
|
+
propDisplayName: string;
|
|
1129
|
+
};
|
|
1130
|
+
}) => void;
|
|
1131
|
+
};
|
|
1178
1132
|
|
|
1179
1133
|
declare const HISTORY_DEBOUNCE_WAIT = 800;
|
|
1180
1134
|
type TitleOptions = {
|
|
@@ -1188,6 +1142,56 @@ type SubtitleOptions = TitleOptions & {
|
|
|
1188
1142
|
declare const getTitle: ({ provider, styleId, elementId }: TitleOptions) => string;
|
|
1189
1143
|
declare const getSubtitle: ({ provider, styleId, propDisplayName, elementId }: SubtitleOptions) => string;
|
|
1190
1144
|
|
|
1191
|
-
declare const
|
|
1145
|
+
declare const useStylesRerender: () => void;
|
|
1146
|
+
|
|
1147
|
+
declare function init(): void;
|
|
1148
|
+
|
|
1149
|
+
declare const usePanelActions: () => {
|
|
1150
|
+
open: () => Promise<void>;
|
|
1151
|
+
close: () => Promise<void>;
|
|
1152
|
+
};
|
|
1153
|
+
declare const usePanelStatus: () => {
|
|
1154
|
+
isOpen: boolean;
|
|
1155
|
+
isBlocked: boolean;
|
|
1156
|
+
};
|
|
1157
|
+
|
|
1158
|
+
type Colors = {
|
|
1159
|
+
name: ChipProps['color'];
|
|
1160
|
+
getThemeColor: ((theme: Theme) => string) | null;
|
|
1161
|
+
};
|
|
1162
|
+
declare const registerStyleProviderToColors: (provider: string, colors: Colors) => void;
|
|
1163
|
+
|
|
1164
|
+
declare const stylesInheritanceTransformersRegistry: {
|
|
1165
|
+
register(type: _elementor_editor_props.PropTypeKey, transformer: ((value: any, options: {
|
|
1166
|
+
key: string;
|
|
1167
|
+
signal?: AbortSignal;
|
|
1168
|
+
}) => unknown) & {
|
|
1169
|
+
__transformer: true;
|
|
1170
|
+
}): any;
|
|
1171
|
+
registerFallback(transformer: ((value: any, options: {
|
|
1172
|
+
key: string;
|
|
1173
|
+
signal?: AbortSignal;
|
|
1174
|
+
}) => unknown) & {
|
|
1175
|
+
__transformer: true;
|
|
1176
|
+
}): any;
|
|
1177
|
+
get(type: _elementor_editor_props.PropTypeKey): (((value: any, options: {
|
|
1178
|
+
key: string;
|
|
1179
|
+
signal?: AbortSignal;
|
|
1180
|
+
}) => unknown) & {
|
|
1181
|
+
__transformer: true;
|
|
1182
|
+
}) | null;
|
|
1183
|
+
all(): {
|
|
1184
|
+
[x: string]: ((value: any, options: {
|
|
1185
|
+
key: string;
|
|
1186
|
+
signal?: AbortSignal;
|
|
1187
|
+
}) => unknown) & {
|
|
1188
|
+
__transformer: true;
|
|
1189
|
+
};
|
|
1190
|
+
};
|
|
1191
|
+
};
|
|
1192
|
+
|
|
1193
|
+
declare function doGetAppliedClasses(elementId: string, classesPropType?: string): string[];
|
|
1194
|
+
declare function doApplyClasses(elementId: string, classIds: StyleDefinitionID[], classesPropType?: string): void;
|
|
1195
|
+
declare function doUnapplyClass(elementId: string, classId: StyleDefinitionID, classesPropType?: string): boolean;
|
|
1192
1196
|
|
|
1193
|
-
export { CustomCssIndicator, HISTORY_DEBOUNCE_WAIT, type PopoverActionProps, PopoverBody, SectionContent, StyleIndicator, StyleTabSection, StylesProviderCannotUpdatePropsError, type ValidationEvent, type ValidationResult, controlActionsMenu, controlsRegistry, getSubtitle, getTitle, init, injectIntoClassSelectorActions, injectIntoCssClassConvert, injectIntoStyleTab, registerControlReplacement, registerStyleProviderToColors, stylesInheritanceTransformersRegistry, useClassesProp, useCustomCss, useElement, useFontFamilies, usePanelActions, usePanelStatus, useSectionWidth, useStyle, useStylesRerender };
|
|
1197
|
+
export { CustomCssIndicator, HISTORY_DEBOUNCE_WAIT, type PopoverActionProps, PopoverBody, SectionContent, StyleIndicator, StyleTabSection, StylesProviderCannotUpdatePropsError, type ValidationEvent, type ValidationResult, controlActionsMenu, controlsRegistry, doApplyClasses, doGetAppliedClasses, doUnapplyClass, getSubtitle, getTitle, init, injectIntoClassSelectorActions, injectIntoCssClassConvert, injectIntoStyleTab, registerControlReplacement, registerStyleProviderToColors, stylesInheritanceTransformersRegistry, useClassesProp, useCustomCss, useElement, useFontFamilies, usePanelActions, usePanelStatus, useSectionWidth, useStyle, useStylesRerender };
|