@elementor/editor-editing-panel 3.35.0-389 → 3.35.0-391
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 +25 -3
- package/dist/index.d.ts +25 -3
- package/dist/index.js +6 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +20 -20
- package/src/index.ts +3 -2
package/dist/index.d.mts
CHANGED
|
@@ -7,12 +7,12 @@ import * as react from 'react';
|
|
|
7
7
|
import { FC, PropsWithChildren, Dispatch, ElementType as ElementType$1, ComponentType } from 'react';
|
|
8
8
|
import { PopoverBody as PopoverBody$1 } from '@elementor/editor-ui';
|
|
9
9
|
import { Control, ElementControl, Element, ElementType, ControlLayout } from '@elementor/editor-elements';
|
|
10
|
+
import * as _elementor_editor_props from '@elementor/editor-props';
|
|
11
|
+
import { PropKey, PropTypeUtil, PropsSchema, ObjectPropType } from '@elementor/editor-props';
|
|
10
12
|
import * as _emotion_styled from '@emotion/styled';
|
|
11
13
|
import * as _mui_system from '@mui/system';
|
|
12
14
|
import { Theme, ChipProps } from '@elementor/ui';
|
|
13
15
|
import { StylesProvider } from '@elementor/editor-styles-repository';
|
|
14
|
-
import * as _elementor_editor_props from '@elementor/editor-props';
|
|
15
|
-
import { PropTypeUtil, PropsSchema, ObjectPropType } from '@elementor/editor-props';
|
|
16
16
|
import * as _elementor_menus from '@elementor/menus';
|
|
17
17
|
import * as _mui_material from '@mui/material';
|
|
18
18
|
import * as zod from 'zod';
|
|
@@ -56,6 +56,13 @@ declare const SettingsControl: ({ control: { value, type } }: {
|
|
|
56
56
|
control: Control | ElementControl;
|
|
57
57
|
}) => react.JSX.Element | null;
|
|
58
58
|
|
|
59
|
+
type SettingsFieldProps = {
|
|
60
|
+
bind: PropKey;
|
|
61
|
+
propDisplayName: string;
|
|
62
|
+
children: react.ReactNode;
|
|
63
|
+
};
|
|
64
|
+
declare const SettingsField: ({ bind, children, propDisplayName }: SettingsFieldProps) => react.JSX.Element;
|
|
65
|
+
|
|
59
66
|
declare const StyleIndicator: _emotion_styled.StyledComponent<_mui_system.MUIStyledCommonProps<Theme> & ({
|
|
60
67
|
isOverridden?: boolean;
|
|
61
68
|
getColor?: never;
|
|
@@ -120,6 +127,17 @@ declare const registerControlReplacement: (replacement: {
|
|
|
120
127
|
placeholder?: _elementor_editor_props.PropValue;
|
|
121
128
|
}) => boolean;
|
|
122
129
|
}) => void;
|
|
130
|
+
declare const getControlReplacements: () => {
|
|
131
|
+
component: react.ComponentClass<object & {
|
|
132
|
+
OriginalControl: react.ComponentType;
|
|
133
|
+
}, any> | react.FunctionComponent<object & {
|
|
134
|
+
OriginalControl: react.ComponentType;
|
|
135
|
+
}>;
|
|
136
|
+
condition: ({ value }: {
|
|
137
|
+
value: _elementor_editor_props.PropValue;
|
|
138
|
+
placeholder?: _elementor_editor_props.PropValue;
|
|
139
|
+
}) => boolean;
|
|
140
|
+
}[];
|
|
123
141
|
|
|
124
142
|
type ActionProps = {
|
|
125
143
|
title: string;
|
|
@@ -1332,6 +1350,10 @@ declare const FIELD_TYPE: {
|
|
|
1332
1350
|
declare const registerFieldIndicator: ({ fieldType, id, indicator, priority, }: FieldIndicator & {
|
|
1333
1351
|
fieldType: FieldType;
|
|
1334
1352
|
}) => void;
|
|
1353
|
+
declare const getFieldIndicators: (fieldType: FieldType) => {
|
|
1354
|
+
id: string;
|
|
1355
|
+
Adornment: AdornmentComponent;
|
|
1356
|
+
}[];
|
|
1335
1357
|
|
|
1336
1358
|
type EditingPanelReplacement = {
|
|
1337
1359
|
condition: (element: Element, elementType: ElementType) => boolean;
|
|
@@ -1347,4 +1369,4 @@ declare function doGetAppliedClasses(elementId: string, classesPropType?: string
|
|
|
1347
1369
|
declare function doApplyClasses(elementId: string, classIds: StyleDefinitionID[], classesPropType?: string): void;
|
|
1348
1370
|
declare function doUnapplyClass(elementId: string, classId: StyleDefinitionID, classesPropType?: string): boolean;
|
|
1349
1371
|
|
|
1350
|
-
export { type ControlType, CustomCssIndicator, ElementProvider, FIELD_TYPE, HISTORY_DEBOUNCE_WAIT, type PopoverActionProps, PopoverBody, SectionContent, SettingsControl, StyleIndicator, StyleTabSection, StylesProviderCannotUpdatePropsError, type ValidationEvent, type ValidationResult, controlActionsMenu, controlsRegistry, createTopLevelObjectType, doApplyClasses, doGetAppliedClasses, doUnapplyClass, getSubtitle, getTitle, init, injectIntoClassSelectorActions, injectIntoCssClassConvert, injectIntoPanelHeaderTop, injectIntoStyleTab, registerControlReplacement, registerEditingPanelReplacement, registerFieldIndicator, registerStyleProviderToColors, stylesInheritanceTransformersRegistry, useClassesProp, useCustomCss, useElement, useFontFamilies, usePanelActions, usePanelStatus, useSectionWidth, useStateByElement, useStyle, useStylesRerender };
|
|
1372
|
+
export { type ControlType, CustomCssIndicator, ElementProvider, FIELD_TYPE, HISTORY_DEBOUNCE_WAIT, type PopoverActionProps, PopoverBody, SectionContent, SettingsControl, SettingsField, StyleIndicator, StyleTabSection, StylesProviderCannotUpdatePropsError, type ValidationEvent, type ValidationResult, controlActionsMenu, controlsRegistry, createTopLevelObjectType, doApplyClasses, doGetAppliedClasses, doUnapplyClass, getControlReplacements, getFieldIndicators, getSubtitle, getTitle, init, injectIntoClassSelectorActions, injectIntoCssClassConvert, injectIntoPanelHeaderTop, injectIntoStyleTab, registerControlReplacement, registerEditingPanelReplacement, registerFieldIndicator, registerStyleProviderToColors, stylesInheritanceTransformersRegistry, useClassesProp, useCustomCss, useElement, useFontFamilies, usePanelActions, usePanelStatus, useSectionWidth, useStateByElement, useStyle, useStylesRerender };
|
package/dist/index.d.ts
CHANGED
|
@@ -7,12 +7,12 @@ import * as react from 'react';
|
|
|
7
7
|
import { FC, PropsWithChildren, Dispatch, ElementType as ElementType$1, ComponentType } from 'react';
|
|
8
8
|
import { PopoverBody as PopoverBody$1 } from '@elementor/editor-ui';
|
|
9
9
|
import { Control, ElementControl, Element, ElementType, ControlLayout } from '@elementor/editor-elements';
|
|
10
|
+
import * as _elementor_editor_props from '@elementor/editor-props';
|
|
11
|
+
import { PropKey, PropTypeUtil, PropsSchema, ObjectPropType } from '@elementor/editor-props';
|
|
10
12
|
import * as _emotion_styled from '@emotion/styled';
|
|
11
13
|
import * as _mui_system from '@mui/system';
|
|
12
14
|
import { Theme, ChipProps } from '@elementor/ui';
|
|
13
15
|
import { StylesProvider } from '@elementor/editor-styles-repository';
|
|
14
|
-
import * as _elementor_editor_props from '@elementor/editor-props';
|
|
15
|
-
import { PropTypeUtil, PropsSchema, ObjectPropType } from '@elementor/editor-props';
|
|
16
16
|
import * as _elementor_menus from '@elementor/menus';
|
|
17
17
|
import * as _mui_material from '@mui/material';
|
|
18
18
|
import * as zod from 'zod';
|
|
@@ -56,6 +56,13 @@ declare const SettingsControl: ({ control: { value, type } }: {
|
|
|
56
56
|
control: Control | ElementControl;
|
|
57
57
|
}) => react.JSX.Element | null;
|
|
58
58
|
|
|
59
|
+
type SettingsFieldProps = {
|
|
60
|
+
bind: PropKey;
|
|
61
|
+
propDisplayName: string;
|
|
62
|
+
children: react.ReactNode;
|
|
63
|
+
};
|
|
64
|
+
declare const SettingsField: ({ bind, children, propDisplayName }: SettingsFieldProps) => react.JSX.Element;
|
|
65
|
+
|
|
59
66
|
declare const StyleIndicator: _emotion_styled.StyledComponent<_mui_system.MUIStyledCommonProps<Theme> & ({
|
|
60
67
|
isOverridden?: boolean;
|
|
61
68
|
getColor?: never;
|
|
@@ -120,6 +127,17 @@ declare const registerControlReplacement: (replacement: {
|
|
|
120
127
|
placeholder?: _elementor_editor_props.PropValue;
|
|
121
128
|
}) => boolean;
|
|
122
129
|
}) => void;
|
|
130
|
+
declare const getControlReplacements: () => {
|
|
131
|
+
component: react.ComponentClass<object & {
|
|
132
|
+
OriginalControl: react.ComponentType;
|
|
133
|
+
}, any> | react.FunctionComponent<object & {
|
|
134
|
+
OriginalControl: react.ComponentType;
|
|
135
|
+
}>;
|
|
136
|
+
condition: ({ value }: {
|
|
137
|
+
value: _elementor_editor_props.PropValue;
|
|
138
|
+
placeholder?: _elementor_editor_props.PropValue;
|
|
139
|
+
}) => boolean;
|
|
140
|
+
}[];
|
|
123
141
|
|
|
124
142
|
type ActionProps = {
|
|
125
143
|
title: string;
|
|
@@ -1332,6 +1350,10 @@ declare const FIELD_TYPE: {
|
|
|
1332
1350
|
declare const registerFieldIndicator: ({ fieldType, id, indicator, priority, }: FieldIndicator & {
|
|
1333
1351
|
fieldType: FieldType;
|
|
1334
1352
|
}) => void;
|
|
1353
|
+
declare const getFieldIndicators: (fieldType: FieldType) => {
|
|
1354
|
+
id: string;
|
|
1355
|
+
Adornment: AdornmentComponent;
|
|
1356
|
+
}[];
|
|
1335
1357
|
|
|
1336
1358
|
type EditingPanelReplacement = {
|
|
1337
1359
|
condition: (element: Element, elementType: ElementType) => boolean;
|
|
@@ -1347,4 +1369,4 @@ declare function doGetAppliedClasses(elementId: string, classesPropType?: string
|
|
|
1347
1369
|
declare function doApplyClasses(elementId: string, classIds: StyleDefinitionID[], classesPropType?: string): void;
|
|
1348
1370
|
declare function doUnapplyClass(elementId: string, classId: StyleDefinitionID, classesPropType?: string): boolean;
|
|
1349
1371
|
|
|
1350
|
-
export { type ControlType, CustomCssIndicator, ElementProvider, FIELD_TYPE, HISTORY_DEBOUNCE_WAIT, type PopoverActionProps, PopoverBody, SectionContent, SettingsControl, StyleIndicator, StyleTabSection, StylesProviderCannotUpdatePropsError, type ValidationEvent, type ValidationResult, controlActionsMenu, controlsRegistry, createTopLevelObjectType, doApplyClasses, doGetAppliedClasses, doUnapplyClass, getSubtitle, getTitle, init, injectIntoClassSelectorActions, injectIntoCssClassConvert, injectIntoPanelHeaderTop, injectIntoStyleTab, registerControlReplacement, registerEditingPanelReplacement, registerFieldIndicator, registerStyleProviderToColors, stylesInheritanceTransformersRegistry, useClassesProp, useCustomCss, useElement, useFontFamilies, usePanelActions, usePanelStatus, useSectionWidth, useStateByElement, useStyle, useStylesRerender };
|
|
1372
|
+
export { type ControlType, CustomCssIndicator, ElementProvider, FIELD_TYPE, HISTORY_DEBOUNCE_WAIT, type PopoverActionProps, PopoverBody, SectionContent, SettingsControl, SettingsField, StyleIndicator, StyleTabSection, StylesProviderCannotUpdatePropsError, type ValidationEvent, type ValidationResult, controlActionsMenu, controlsRegistry, createTopLevelObjectType, doApplyClasses, doGetAppliedClasses, doUnapplyClass, getControlReplacements, getFieldIndicators, getSubtitle, getTitle, init, injectIntoClassSelectorActions, injectIntoCssClassConvert, injectIntoPanelHeaderTop, injectIntoStyleTab, registerControlReplacement, registerEditingPanelReplacement, registerFieldIndicator, registerStyleProviderToColors, stylesInheritanceTransformersRegistry, useClassesProp, useCustomCss, useElement, useFontFamilies, usePanelActions, usePanelStatus, useSectionWidth, useStateByElement, useStyle, useStylesRerender };
|
package/dist/index.js
CHANGED
|
@@ -37,6 +37,7 @@ __export(index_exports, {
|
|
|
37
37
|
PopoverBody: () => PopoverBody,
|
|
38
38
|
SectionContent: () => SectionContent,
|
|
39
39
|
SettingsControl: () => SettingsControl,
|
|
40
|
+
SettingsField: () => SettingsField,
|
|
40
41
|
StyleIndicator: () => StyleIndicator,
|
|
41
42
|
StyleTabSection: () => StyleTabSection,
|
|
42
43
|
StylesProviderCannotUpdatePropsError: () => StylesProviderCannotUpdatePropsError,
|
|
@@ -46,6 +47,8 @@ __export(index_exports, {
|
|
|
46
47
|
doApplyClasses: () => doApplyClasses,
|
|
47
48
|
doGetAppliedClasses: () => doGetAppliedClasses,
|
|
48
49
|
doUnapplyClass: () => doUnapplyClass,
|
|
50
|
+
getControlReplacements: () => getControlReplacements,
|
|
51
|
+
getFieldIndicators: () => getFieldIndicators,
|
|
49
52
|
getSubtitle: () => getSubtitle,
|
|
50
53
|
getTitle: () => getTitle,
|
|
51
54
|
init: () => init4,
|
|
@@ -6685,6 +6688,7 @@ var blockV1Panel = () => {
|
|
|
6685
6688
|
PopoverBody,
|
|
6686
6689
|
SectionContent,
|
|
6687
6690
|
SettingsControl,
|
|
6691
|
+
SettingsField,
|
|
6688
6692
|
StyleIndicator,
|
|
6689
6693
|
StyleTabSection,
|
|
6690
6694
|
StylesProviderCannotUpdatePropsError,
|
|
@@ -6694,6 +6698,8 @@ var blockV1Panel = () => {
|
|
|
6694
6698
|
doApplyClasses,
|
|
6695
6699
|
doGetAppliedClasses,
|
|
6696
6700
|
doUnapplyClass,
|
|
6701
|
+
getControlReplacements,
|
|
6702
|
+
getFieldIndicators,
|
|
6697
6703
|
getSubtitle,
|
|
6698
6704
|
getTitle,
|
|
6699
6705
|
init,
|