@elementor/editor-editing-panel 4.5.0-1179 → 4.5.0-1181
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 +33 -21
- package/dist/index.d.ts +33 -21
- package/dist/index.js +113 -52
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +69 -12
- package/dist/index.mjs.map +1 -1
- package/package.json +25 -25
- package/src/components/css-classes/css-class-selector.tsx +3 -0
- package/src/components/custom-css-header-location.tsx +11 -0
- package/src/components/section.tsx +19 -1
- package/src/components/style-section-header-location.tsx +29 -0
- package/src/components/style-tab-header-location.tsx +12 -0
- package/src/components/style-tab-section.tsx +6 -0
- package/src/controls-registry/controls-registry.tsx +1 -1
- package/src/index.ts +7 -0
- package/src/init.ts +3 -0
package/dist/index.d.mts
CHANGED
|
@@ -2,17 +2,18 @@ import * as react from 'react';
|
|
|
2
2
|
import { PropsWithChildren, FC, ReactNode, Dispatch, ComponentProps, ComponentType } from 'react';
|
|
3
3
|
import { AutocompleteProps, AutocompleteChangeReason, ListProps, Theme, ChipProps } from '@elementor/ui';
|
|
4
4
|
import * as _elementor_locations from '@elementor/locations';
|
|
5
|
+
import { InjectArgs } from '@elementor/locations';
|
|
5
6
|
import { StyleDefinition, StyleDefinitionState, StyleDefinitionVariant, StyleDefinitionID } from '@elementor/editor-styles';
|
|
6
|
-
import { Control as Control$1, ElementControl, Element, ElementType, ControlLayout, ControlItem } from '@elementor/editor-elements';
|
|
7
|
+
import { Control as Control$1, ElementControl, ElementID, Element, ElementType, ControlLayout, ControlItem } from '@elementor/editor-elements';
|
|
7
8
|
import * as _elementor_editor_props from '@elementor/editor-props';
|
|
8
9
|
import { PropKey, AnyTransformable, PropTypeUtil, PropsSchema, ObjectPropType, TransformablePropValue, PropValue, PropType, Props as Props$4 } from '@elementor/editor-props';
|
|
9
10
|
import * as _emotion_styled from '@emotion/styled';
|
|
10
11
|
import * as _mui_system from '@mui/system';
|
|
11
12
|
import { StylesProvider } from '@elementor/editor-styles-repository';
|
|
12
13
|
import * as _mui_material from '@mui/material';
|
|
14
|
+
import * as zod from 'zod';
|
|
13
15
|
import * as _elementor_editor_controls from '@elementor/editor-controls';
|
|
14
16
|
import { ControlComponent, AdornmentComponent } from '@elementor/editor-controls';
|
|
15
|
-
import * as zod from 'zod';
|
|
16
17
|
import * as _elementor_utils from '@elementor/utils';
|
|
17
18
|
|
|
18
19
|
type Option = {
|
|
@@ -159,6 +160,27 @@ type Props$3 = {
|
|
|
159
160
|
};
|
|
160
161
|
declare const StyleTabSection: ({ section, fields, unmountOnExit }: Props$3) => react.JSX.Element;
|
|
161
162
|
|
|
163
|
+
type CustomCssHeaderProps = {
|
|
164
|
+
elementId: string;
|
|
165
|
+
};
|
|
166
|
+
declare const CustomCssHeaderSlot: react.ComponentType<CustomCssHeaderProps>;
|
|
167
|
+
declare const injectIntoCustomCssHeader: (args: _elementor_locations.InjectArgs<CustomCssHeaderProps>) => void;
|
|
168
|
+
|
|
169
|
+
type StyleSectionHeaderProps = {
|
|
170
|
+
elementId: ElementID;
|
|
171
|
+
sectionName: string;
|
|
172
|
+
};
|
|
173
|
+
type StyleSectionHeaderInjectArgs = Pick<InjectArgs<StyleSectionHeaderProps>, 'id' | 'component'> & {
|
|
174
|
+
sections?: string[];
|
|
175
|
+
options?: InjectArgs<StyleSectionHeaderProps>['options'];
|
|
176
|
+
};
|
|
177
|
+
declare const injectIntoStyleSectionHeader: ({ id, component, sections, options }: StyleSectionHeaderInjectArgs) => void;
|
|
178
|
+
|
|
179
|
+
type StyleTabHeaderProps = {
|
|
180
|
+
elementId: ElementID;
|
|
181
|
+
};
|
|
182
|
+
declare const injectIntoStyleTabHeader: (args: _elementor_locations.InjectArgs<StyleTabHeaderProps>) => void;
|
|
183
|
+
|
|
162
184
|
type ContextValue$2 = {
|
|
163
185
|
prop: string;
|
|
164
186
|
};
|
|
@@ -202,20 +224,17 @@ type ControlRegistry = Record<string, {
|
|
|
202
224
|
}>;
|
|
203
225
|
declare const controlTypes: {
|
|
204
226
|
readonly image: {
|
|
205
|
-
readonly component: ControlComponent<({ sizes, promotion, label }: {
|
|
227
|
+
readonly component: ControlComponent<({ sizes, promotion, label, context }: Partial<{
|
|
228
|
+
context: {
|
|
229
|
+
elementId: string;
|
|
230
|
+
};
|
|
231
|
+
}> & {
|
|
206
232
|
sizes: {
|
|
207
233
|
label: string;
|
|
208
234
|
value: string;
|
|
209
235
|
}[];
|
|
210
236
|
label?: string;
|
|
211
|
-
promotion?:
|
|
212
|
-
label?: string;
|
|
213
|
-
title?: string;
|
|
214
|
-
content: string;
|
|
215
|
-
buttonText?: string;
|
|
216
|
-
buttonUrl?: string;
|
|
217
|
-
dismissible?: string;
|
|
218
|
-
};
|
|
237
|
+
promotion?: _elementor_editor_controls.AppPromotion;
|
|
219
238
|
}) => react.JSX.Element>;
|
|
220
239
|
readonly layout: "custom";
|
|
221
240
|
readonly propTypeUtil: {
|
|
@@ -1847,20 +1866,13 @@ declare const controlTypes: {
|
|
|
1847
1866
|
attributes?: Record<string, string>;
|
|
1848
1867
|
props?: react.ComponentProps<"div">;
|
|
1849
1868
|
label?: string;
|
|
1850
|
-
promotion?:
|
|
1851
|
-
label?: string;
|
|
1852
|
-
title?: string;
|
|
1853
|
-
content: string;
|
|
1854
|
-
buttonText?: string;
|
|
1855
|
-
buttonUrl?: string;
|
|
1856
|
-
dismissible?: string;
|
|
1857
|
-
};
|
|
1869
|
+
promotion?: _elementor_editor_controls.AppPromotion;
|
|
1858
1870
|
} & {
|
|
1859
1871
|
context: {
|
|
1860
1872
|
elementId: string;
|
|
1861
1873
|
};
|
|
1862
1874
|
}) => react.JSX.Element>;
|
|
1863
|
-
readonly layout: "
|
|
1875
|
+
readonly layout: "custom";
|
|
1864
1876
|
readonly propTypeUtil: {
|
|
1865
1877
|
extract: (prop: unknown) => string | null;
|
|
1866
1878
|
isValid: (prop: unknown) => prop is _elementor_editor_props.TransformablePropValue<"escaped-html", string | null>;
|
|
@@ -2447,4 +2459,4 @@ declare function extractDependencyEffect(bind: string, propsSchema: PropsSchema,
|
|
|
2447
2459
|
declare function extractOrderedDependencies(dependenciesPerTargetMapping: Record<string, string[]>): string[];
|
|
2448
2460
|
declare function getUpdatedValues(values: Values, dependencies: string[], propsSchema: PropsSchema, elementValues: Values, elementId: string): Values;
|
|
2449
2461
|
|
|
2450
|
-
export { Control as BaseControl, ClassesPropProvider, ControlLabel, type ControlType, ControlTypeContainer, CreatableAutocomplete, type CreatableAutocompleteProps, CustomCssIndicator, DEFAULT_PSEUDO_STATES, type DependencyEffect, type DynamicTag, type DynamicTags, type DynamicTagsManager, EditingPanelTabs, type Defaults as ElementPanelDefaults, ElementProvider, FIELD_TYPE, HISTORY_DEBOUNCE_WAIT, type Option, PseudoStateMenuItems, type PseudoStateOption, STYLE_SECTIONS, STYLE_SECTION_NAMES, SectionContent, SectionsList, SettingsControl, SettingsField, StyleIndicator, StyleInheritanceProvider, StyleProvider, type StyleSectionDefinition, StyleSections, StyleTabSection, StyleTabSlot, StylesProviderCannotUpdatePropsError, type ValidationEvent, type ValidationResult, controlsRegistry, createTopLevelObjectType, doApplyClasses, doGetAppliedClasses, doUnapplyClass, extractDependencyEffect, extractOrderedDependencies, getElementSettingsWithDefaults, getFieldIndicators, getSubtitle, getTitle, getUpdatedValues, init, injectIntoClassSelectorActions, injectIntoCssClassConvert, injectIntoGridFields, injectIntoPanelHeaderTop, injectIntoStyleTab, isDynamicPropValue, registerEditingPanelReplacement, registerElementPanelDefaults, registerFieldIndicator, registerStyleProviderToColors, setLicenseConfig, useClassesProp, useCustomCss, useElement, usePanelActions, usePanelStatus, usePseudoStates, useStateByElement, useStyle, useStylesRerender };
|
|
2462
|
+
export { Control as BaseControl, ClassesPropProvider, ControlLabel, type ControlType, ControlTypeContainer, CreatableAutocomplete, type CreatableAutocompleteProps, type CustomCssHeaderProps, CustomCssHeaderSlot, CustomCssIndicator, DEFAULT_PSEUDO_STATES, type DependencyEffect, type DynamicTag, type DynamicTags, type DynamicTagsManager, EditingPanelTabs, type Defaults as ElementPanelDefaults, ElementProvider, FIELD_TYPE, HISTORY_DEBOUNCE_WAIT, type Option, PseudoStateMenuItems, type PseudoStateOption, STYLE_SECTIONS, STYLE_SECTION_NAMES, SectionContent, SectionsList, SettingsControl, SettingsField, StyleIndicator, StyleInheritanceProvider, StyleProvider, type StyleSectionDefinition, type StyleSectionHeaderProps, StyleSections, type StyleTabHeaderProps, StyleTabSection, StyleTabSlot, StylesProviderCannotUpdatePropsError, type ValidationEvent, type ValidationResult, controlsRegistry, createTopLevelObjectType, doApplyClasses, doGetAppliedClasses, doUnapplyClass, extractDependencyEffect, extractOrderedDependencies, getElementSettingsWithDefaults, getFieldIndicators, getSubtitle, getTitle, getUpdatedValues, init, injectIntoClassSelectorActions, injectIntoCssClassConvert, injectIntoCustomCssHeader, injectIntoGridFields, injectIntoPanelHeaderTop, injectIntoStyleSectionHeader, injectIntoStyleTab, injectIntoStyleTabHeader, isDynamicPropValue, registerEditingPanelReplacement, registerElementPanelDefaults, registerFieldIndicator, registerStyleProviderToColors, setLicenseConfig, useClassesProp, useCustomCss, useElement, usePanelActions, usePanelStatus, usePseudoStates, useStateByElement, useStyle, useStylesRerender };
|
package/dist/index.d.ts
CHANGED
|
@@ -2,17 +2,18 @@ import * as react from 'react';
|
|
|
2
2
|
import { PropsWithChildren, FC, ReactNode, Dispatch, ComponentProps, ComponentType } from 'react';
|
|
3
3
|
import { AutocompleteProps, AutocompleteChangeReason, ListProps, Theme, ChipProps } from '@elementor/ui';
|
|
4
4
|
import * as _elementor_locations from '@elementor/locations';
|
|
5
|
+
import { InjectArgs } from '@elementor/locations';
|
|
5
6
|
import { StyleDefinition, StyleDefinitionState, StyleDefinitionVariant, StyleDefinitionID } from '@elementor/editor-styles';
|
|
6
|
-
import { Control as Control$1, ElementControl, Element, ElementType, ControlLayout, ControlItem } from '@elementor/editor-elements';
|
|
7
|
+
import { Control as Control$1, ElementControl, ElementID, Element, ElementType, ControlLayout, ControlItem } from '@elementor/editor-elements';
|
|
7
8
|
import * as _elementor_editor_props from '@elementor/editor-props';
|
|
8
9
|
import { PropKey, AnyTransformable, PropTypeUtil, PropsSchema, ObjectPropType, TransformablePropValue, PropValue, PropType, Props as Props$4 } from '@elementor/editor-props';
|
|
9
10
|
import * as _emotion_styled from '@emotion/styled';
|
|
10
11
|
import * as _mui_system from '@mui/system';
|
|
11
12
|
import { StylesProvider } from '@elementor/editor-styles-repository';
|
|
12
13
|
import * as _mui_material from '@mui/material';
|
|
14
|
+
import * as zod from 'zod';
|
|
13
15
|
import * as _elementor_editor_controls from '@elementor/editor-controls';
|
|
14
16
|
import { ControlComponent, AdornmentComponent } from '@elementor/editor-controls';
|
|
15
|
-
import * as zod from 'zod';
|
|
16
17
|
import * as _elementor_utils from '@elementor/utils';
|
|
17
18
|
|
|
18
19
|
type Option = {
|
|
@@ -159,6 +160,27 @@ type Props$3 = {
|
|
|
159
160
|
};
|
|
160
161
|
declare const StyleTabSection: ({ section, fields, unmountOnExit }: Props$3) => react.JSX.Element;
|
|
161
162
|
|
|
163
|
+
type CustomCssHeaderProps = {
|
|
164
|
+
elementId: string;
|
|
165
|
+
};
|
|
166
|
+
declare const CustomCssHeaderSlot: react.ComponentType<CustomCssHeaderProps>;
|
|
167
|
+
declare const injectIntoCustomCssHeader: (args: _elementor_locations.InjectArgs<CustomCssHeaderProps>) => void;
|
|
168
|
+
|
|
169
|
+
type StyleSectionHeaderProps = {
|
|
170
|
+
elementId: ElementID;
|
|
171
|
+
sectionName: string;
|
|
172
|
+
};
|
|
173
|
+
type StyleSectionHeaderInjectArgs = Pick<InjectArgs<StyleSectionHeaderProps>, 'id' | 'component'> & {
|
|
174
|
+
sections?: string[];
|
|
175
|
+
options?: InjectArgs<StyleSectionHeaderProps>['options'];
|
|
176
|
+
};
|
|
177
|
+
declare const injectIntoStyleSectionHeader: ({ id, component, sections, options }: StyleSectionHeaderInjectArgs) => void;
|
|
178
|
+
|
|
179
|
+
type StyleTabHeaderProps = {
|
|
180
|
+
elementId: ElementID;
|
|
181
|
+
};
|
|
182
|
+
declare const injectIntoStyleTabHeader: (args: _elementor_locations.InjectArgs<StyleTabHeaderProps>) => void;
|
|
183
|
+
|
|
162
184
|
type ContextValue$2 = {
|
|
163
185
|
prop: string;
|
|
164
186
|
};
|
|
@@ -202,20 +224,17 @@ type ControlRegistry = Record<string, {
|
|
|
202
224
|
}>;
|
|
203
225
|
declare const controlTypes: {
|
|
204
226
|
readonly image: {
|
|
205
|
-
readonly component: ControlComponent<({ sizes, promotion, label }: {
|
|
227
|
+
readonly component: ControlComponent<({ sizes, promotion, label, context }: Partial<{
|
|
228
|
+
context: {
|
|
229
|
+
elementId: string;
|
|
230
|
+
};
|
|
231
|
+
}> & {
|
|
206
232
|
sizes: {
|
|
207
233
|
label: string;
|
|
208
234
|
value: string;
|
|
209
235
|
}[];
|
|
210
236
|
label?: string;
|
|
211
|
-
promotion?:
|
|
212
|
-
label?: string;
|
|
213
|
-
title?: string;
|
|
214
|
-
content: string;
|
|
215
|
-
buttonText?: string;
|
|
216
|
-
buttonUrl?: string;
|
|
217
|
-
dismissible?: string;
|
|
218
|
-
};
|
|
237
|
+
promotion?: _elementor_editor_controls.AppPromotion;
|
|
219
238
|
}) => react.JSX.Element>;
|
|
220
239
|
readonly layout: "custom";
|
|
221
240
|
readonly propTypeUtil: {
|
|
@@ -1847,20 +1866,13 @@ declare const controlTypes: {
|
|
|
1847
1866
|
attributes?: Record<string, string>;
|
|
1848
1867
|
props?: react.ComponentProps<"div">;
|
|
1849
1868
|
label?: string;
|
|
1850
|
-
promotion?:
|
|
1851
|
-
label?: string;
|
|
1852
|
-
title?: string;
|
|
1853
|
-
content: string;
|
|
1854
|
-
buttonText?: string;
|
|
1855
|
-
buttonUrl?: string;
|
|
1856
|
-
dismissible?: string;
|
|
1857
|
-
};
|
|
1869
|
+
promotion?: _elementor_editor_controls.AppPromotion;
|
|
1858
1870
|
} & {
|
|
1859
1871
|
context: {
|
|
1860
1872
|
elementId: string;
|
|
1861
1873
|
};
|
|
1862
1874
|
}) => react.JSX.Element>;
|
|
1863
|
-
readonly layout: "
|
|
1875
|
+
readonly layout: "custom";
|
|
1864
1876
|
readonly propTypeUtil: {
|
|
1865
1877
|
extract: (prop: unknown) => string | null;
|
|
1866
1878
|
isValid: (prop: unknown) => prop is _elementor_editor_props.TransformablePropValue<"escaped-html", string | null>;
|
|
@@ -2447,4 +2459,4 @@ declare function extractDependencyEffect(bind: string, propsSchema: PropsSchema,
|
|
|
2447
2459
|
declare function extractOrderedDependencies(dependenciesPerTargetMapping: Record<string, string[]>): string[];
|
|
2448
2460
|
declare function getUpdatedValues(values: Values, dependencies: string[], propsSchema: PropsSchema, elementValues: Values, elementId: string): Values;
|
|
2449
2461
|
|
|
2450
|
-
export { Control as BaseControl, ClassesPropProvider, ControlLabel, type ControlType, ControlTypeContainer, CreatableAutocomplete, type CreatableAutocompleteProps, CustomCssIndicator, DEFAULT_PSEUDO_STATES, type DependencyEffect, type DynamicTag, type DynamicTags, type DynamicTagsManager, EditingPanelTabs, type Defaults as ElementPanelDefaults, ElementProvider, FIELD_TYPE, HISTORY_DEBOUNCE_WAIT, type Option, PseudoStateMenuItems, type PseudoStateOption, STYLE_SECTIONS, STYLE_SECTION_NAMES, SectionContent, SectionsList, SettingsControl, SettingsField, StyleIndicator, StyleInheritanceProvider, StyleProvider, type StyleSectionDefinition, StyleSections, StyleTabSection, StyleTabSlot, StylesProviderCannotUpdatePropsError, type ValidationEvent, type ValidationResult, controlsRegistry, createTopLevelObjectType, doApplyClasses, doGetAppliedClasses, doUnapplyClass, extractDependencyEffect, extractOrderedDependencies, getElementSettingsWithDefaults, getFieldIndicators, getSubtitle, getTitle, getUpdatedValues, init, injectIntoClassSelectorActions, injectIntoCssClassConvert, injectIntoGridFields, injectIntoPanelHeaderTop, injectIntoStyleTab, isDynamicPropValue, registerEditingPanelReplacement, registerElementPanelDefaults, registerFieldIndicator, registerStyleProviderToColors, setLicenseConfig, useClassesProp, useCustomCss, useElement, usePanelActions, usePanelStatus, usePseudoStates, useStateByElement, useStyle, useStylesRerender };
|
|
2462
|
+
export { Control as BaseControl, ClassesPropProvider, ControlLabel, type ControlType, ControlTypeContainer, CreatableAutocomplete, type CreatableAutocompleteProps, type CustomCssHeaderProps, CustomCssHeaderSlot, CustomCssIndicator, DEFAULT_PSEUDO_STATES, type DependencyEffect, type DynamicTag, type DynamicTags, type DynamicTagsManager, EditingPanelTabs, type Defaults as ElementPanelDefaults, ElementProvider, FIELD_TYPE, HISTORY_DEBOUNCE_WAIT, type Option, PseudoStateMenuItems, type PseudoStateOption, STYLE_SECTIONS, STYLE_SECTION_NAMES, SectionContent, SectionsList, SettingsControl, SettingsField, StyleIndicator, StyleInheritanceProvider, StyleProvider, type StyleSectionDefinition, type StyleSectionHeaderProps, StyleSections, type StyleTabHeaderProps, StyleTabSection, StyleTabSlot, StylesProviderCannotUpdatePropsError, type ValidationEvent, type ValidationResult, controlsRegistry, createTopLevelObjectType, doApplyClasses, doGetAppliedClasses, doUnapplyClass, extractDependencyEffect, extractOrderedDependencies, getElementSettingsWithDefaults, getFieldIndicators, getSubtitle, getTitle, getUpdatedValues, init, injectIntoClassSelectorActions, injectIntoCssClassConvert, injectIntoCustomCssHeader, injectIntoGridFields, injectIntoPanelHeaderTop, injectIntoStyleSectionHeader, injectIntoStyleTab, injectIntoStyleTabHeader, isDynamicPropValue, registerEditingPanelReplacement, registerElementPanelDefaults, registerFieldIndicator, registerStyleProviderToColors, setLicenseConfig, useClassesProp, useCustomCss, useElement, usePanelActions, usePanelStatus, usePseudoStates, useStateByElement, useStyle, useStylesRerender };
|