@elementor/editor-editing-panel 4.4.1 → 4.4.2

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 CHANGED
@@ -2,18 +2,17 @@ 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';
6
5
  import { StyleDefinition, StyleDefinitionState, StyleDefinitionVariant, StyleDefinitionID } from '@elementor/editor-styles';
7
- import { Control as Control$1, ElementControl, ElementID, Element, ElementType, ControlLayout, ControlItem } from '@elementor/editor-elements';
6
+ import { Control as Control$1, ElementControl, Element, ElementType, ControlLayout, ControlItem } from '@elementor/editor-elements';
8
7
  import * as _elementor_editor_props from '@elementor/editor-props';
9
8
  import { PropKey, AnyTransformable, PropTypeUtil, PropsSchema, ObjectPropType, TransformablePropValue, PropValue, PropType, Props as Props$4 } from '@elementor/editor-props';
10
9
  import * as _emotion_styled from '@emotion/styled';
11
10
  import * as _mui_system from '@mui/system';
12
11
  import { StylesProvider } from '@elementor/editor-styles-repository';
13
12
  import * as _mui_material from '@mui/material';
14
- import * as zod from 'zod';
15
13
  import * as _elementor_editor_controls from '@elementor/editor-controls';
16
14
  import { ControlComponent, AdornmentComponent } from '@elementor/editor-controls';
15
+ import * as zod from 'zod';
17
16
  import * as _elementor_utils from '@elementor/utils';
18
17
 
19
18
  type Option = {
@@ -160,27 +159,6 @@ type Props$3 = {
160
159
  };
161
160
  declare const StyleTabSection: ({ section, fields, unmountOnExit }: Props$3) => react.JSX.Element;
162
161
 
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
-
184
162
  type ContextValue$2 = {
185
163
  prop: string;
186
164
  };
@@ -224,17 +202,20 @@ type ControlRegistry = Record<string, {
224
202
  }>;
225
203
  declare const controlTypes: {
226
204
  readonly image: {
227
- readonly component: ControlComponent<({ sizes, promotion, label, context }: Partial<{
228
- context: {
229
- elementId: string;
230
- };
231
- }> & {
205
+ readonly component: ControlComponent<({ sizes, promotion, label }: {
232
206
  sizes: {
233
207
  label: string;
234
208
  value: string;
235
209
  }[];
236
210
  label?: string;
237
- promotion?: _elementor_editor_controls.AppPromotion;
211
+ promotion?: {
212
+ label?: string;
213
+ title?: string;
214
+ content: string;
215
+ buttonText?: string;
216
+ buttonUrl?: string;
217
+ dismissible?: string;
218
+ };
238
219
  }) => react.JSX.Element>;
239
220
  readonly layout: "custom";
240
221
  readonly propTypeUtil: {
@@ -1866,13 +1847,20 @@ declare const controlTypes: {
1866
1847
  attributes?: Record<string, string>;
1867
1848
  props?: react.ComponentProps<"div">;
1868
1849
  label?: string;
1869
- promotion?: _elementor_editor_controls.AppPromotion;
1850
+ promotion?: {
1851
+ label?: string;
1852
+ title?: string;
1853
+ content: string;
1854
+ buttonText?: string;
1855
+ buttonUrl?: string;
1856
+ dismissible?: string;
1857
+ };
1870
1858
  } & {
1871
1859
  context: {
1872
1860
  elementId: string;
1873
1861
  };
1874
1862
  }) => react.JSX.Element>;
1875
- readonly layout: "custom";
1863
+ readonly layout: "full";
1876
1864
  readonly propTypeUtil: {
1877
1865
  extract: (prop: unknown) => string | null;
1878
1866
  isValid: (prop: unknown) => prop is _elementor_editor_props.TransformablePropValue<"escaped-html", string | null>;
@@ -2459,4 +2447,4 @@ declare function extractDependencyEffect(bind: string, propsSchema: PropsSchema,
2459
2447
  declare function extractOrderedDependencies(dependenciesPerTargetMapping: Record<string, string[]>): string[];
2460
2448
  declare function getUpdatedValues(values: Values, dependencies: string[], propsSchema: PropsSchema, elementValues: Values, elementId: string): Values;
2461
2449
 
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 };
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 };
package/dist/index.d.ts CHANGED
@@ -2,18 +2,17 @@ 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';
6
5
  import { StyleDefinition, StyleDefinitionState, StyleDefinitionVariant, StyleDefinitionID } from '@elementor/editor-styles';
7
- import { Control as Control$1, ElementControl, ElementID, Element, ElementType, ControlLayout, ControlItem } from '@elementor/editor-elements';
6
+ import { Control as Control$1, ElementControl, Element, ElementType, ControlLayout, ControlItem } from '@elementor/editor-elements';
8
7
  import * as _elementor_editor_props from '@elementor/editor-props';
9
8
  import { PropKey, AnyTransformable, PropTypeUtil, PropsSchema, ObjectPropType, TransformablePropValue, PropValue, PropType, Props as Props$4 } from '@elementor/editor-props';
10
9
  import * as _emotion_styled from '@emotion/styled';
11
10
  import * as _mui_system from '@mui/system';
12
11
  import { StylesProvider } from '@elementor/editor-styles-repository';
13
12
  import * as _mui_material from '@mui/material';
14
- import * as zod from 'zod';
15
13
  import * as _elementor_editor_controls from '@elementor/editor-controls';
16
14
  import { ControlComponent, AdornmentComponent } from '@elementor/editor-controls';
15
+ import * as zod from 'zod';
17
16
  import * as _elementor_utils from '@elementor/utils';
18
17
 
19
18
  type Option = {
@@ -160,27 +159,6 @@ type Props$3 = {
160
159
  };
161
160
  declare const StyleTabSection: ({ section, fields, unmountOnExit }: Props$3) => react.JSX.Element;
162
161
 
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
-
184
162
  type ContextValue$2 = {
185
163
  prop: string;
186
164
  };
@@ -224,17 +202,20 @@ type ControlRegistry = Record<string, {
224
202
  }>;
225
203
  declare const controlTypes: {
226
204
  readonly image: {
227
- readonly component: ControlComponent<({ sizes, promotion, label, context }: Partial<{
228
- context: {
229
- elementId: string;
230
- };
231
- }> & {
205
+ readonly component: ControlComponent<({ sizes, promotion, label }: {
232
206
  sizes: {
233
207
  label: string;
234
208
  value: string;
235
209
  }[];
236
210
  label?: string;
237
- promotion?: _elementor_editor_controls.AppPromotion;
211
+ promotion?: {
212
+ label?: string;
213
+ title?: string;
214
+ content: string;
215
+ buttonText?: string;
216
+ buttonUrl?: string;
217
+ dismissible?: string;
218
+ };
238
219
  }) => react.JSX.Element>;
239
220
  readonly layout: "custom";
240
221
  readonly propTypeUtil: {
@@ -1866,13 +1847,20 @@ declare const controlTypes: {
1866
1847
  attributes?: Record<string, string>;
1867
1848
  props?: react.ComponentProps<"div">;
1868
1849
  label?: string;
1869
- promotion?: _elementor_editor_controls.AppPromotion;
1850
+ promotion?: {
1851
+ label?: string;
1852
+ title?: string;
1853
+ content: string;
1854
+ buttonText?: string;
1855
+ buttonUrl?: string;
1856
+ dismissible?: string;
1857
+ };
1870
1858
  } & {
1871
1859
  context: {
1872
1860
  elementId: string;
1873
1861
  };
1874
1862
  }) => react.JSX.Element>;
1875
- readonly layout: "custom";
1863
+ readonly layout: "full";
1876
1864
  readonly propTypeUtil: {
1877
1865
  extract: (prop: unknown) => string | null;
1878
1866
  isValid: (prop: unknown) => prop is _elementor_editor_props.TransformablePropValue<"escaped-html", string | null>;
@@ -2459,4 +2447,4 @@ declare function extractDependencyEffect(bind: string, propsSchema: PropsSchema,
2459
2447
  declare function extractOrderedDependencies(dependenciesPerTargetMapping: Record<string, string[]>): string[];
2460
2448
  declare function getUpdatedValues(values: Values, dependencies: string[], propsSchema: PropsSchema, elementValues: Values, elementId: string): Values;
2461
2449
 
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 };
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 };