@elementor/editor-editing-panel 3.35.0-493 → 3.35.0

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
@@ -6,9 +6,9 @@ import { StyleDefinition, StyleDefinitionVariant, StyleDefinitionState, StyleDef
6
6
  import * as React$1 from 'react';
7
7
  import { FC, PropsWithChildren, ReactNode, Dispatch, ElementType as ElementType$1, ComponentType, ComponentProps } from 'react';
8
8
  import { PopoverBody as PopoverBody$1 } from '@elementor/editor-ui';
9
- import { Control as Control$1, ElementControl, Element, ElementType, ControlLayout } from '@elementor/editor-elements';
9
+ import { Control as Control$1, ElementControl, Element, ElementType, ControlLayout, ControlItem } from '@elementor/editor-elements';
10
10
  import * as _elementor_editor_props from '@elementor/editor-props';
11
- import { PropKey, PropTypeUtil, PropsSchema, ObjectPropType } from '@elementor/editor-props';
11
+ import { PropKey, PropTypeUtil, PropsSchema, ObjectPropType, TransformablePropValue, PropValue } from '@elementor/editor-props';
12
12
  import * as _emotion_styled from '@emotion/styled';
13
13
  import * as _mui_system from '@mui/system';
14
14
  import { Theme, ChipProps } from '@elementor/ui';
@@ -1364,13 +1364,45 @@ declare const registerEditingPanelReplacement: ({ id, priority, ...props }: Omit
1364
1364
  priority?: number;
1365
1365
  }) => void;
1366
1366
 
1367
+ type V4PromotionData = {
1368
+ title: string;
1369
+ content: string;
1370
+ image: string;
1371
+ ctaUrl: string;
1372
+ };
1373
+
1367
1374
  declare function doGetAppliedClasses(elementId: string, classesPropType?: string): string[];
1368
1375
  declare function doApplyClasses(elementId: string, classIds: StyleDefinitionID[], classesPropType?: string): void;
1369
1376
  declare function doUnapplyClass(elementId: string, classId: StyleDefinitionID, classesPropType?: string): boolean;
1370
1377
 
1371
- type LicenseConfig = {
1372
- expired: boolean;
1378
+ type DynamicTags = Record<DynamicTag['name'], DynamicTag>;
1379
+ type DynamicTag = {
1380
+ name: string;
1381
+ label: string;
1382
+ group: string;
1383
+ categories: string[];
1384
+ atomic_controls: ControlItem[];
1385
+ props_schema: PropsSchema;
1386
+ };
1387
+ type DynamicPropValue = TransformablePropValue<'dynamic', {
1388
+ name: string;
1389
+ settings?: Record<string, unknown>;
1390
+ }>;
1391
+ type DynamicTagsManager = {
1392
+ createTag: (id: string, name: string, settings: Record<string, unknown>) => TagInstance;
1393
+ loadTagDataFromCache: (tag: TagInstance) => unknown;
1394
+ refreshCacheFromServer: (callback: () => void) => void;
1395
+ };
1396
+ type TagInstance = {
1397
+ options: {
1398
+ id: string;
1399
+ name: string;
1400
+ };
1401
+ model: {
1402
+ toJSON: () => Record<string, unknown>;
1403
+ };
1373
1404
  };
1374
- declare function setLicenseConfig(newConfig: Partial<LicenseConfig>): void;
1375
1405
 
1376
- export { Control as BaseControl, 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, setLicenseConfig, stylesInheritanceTransformersRegistry, useClassesProp, useCustomCss, useElement, useFontFamilies, usePanelActions, usePanelStatus, useSectionWidth, useStateByElement, useStyle, useStylesRerender };
1406
+ declare const isDynamicPropValue: (prop: PropValue) => prop is DynamicPropValue;
1407
+
1408
+ export { Control as BaseControl, type ControlType, CustomCssIndicator, type DynamicTag, type DynamicTags, type DynamicTagsManager, ElementProvider, FIELD_TYPE, HISTORY_DEBOUNCE_WAIT, type PopoverActionProps, PopoverBody, SectionContent, SettingsControl, SettingsField, StyleIndicator, StyleTabSection, StylesProviderCannotUpdatePropsError, type V4PromotionData, type ValidationEvent, type ValidationResult, controlActionsMenu, controlsRegistry, createTopLevelObjectType, doApplyClasses, doGetAppliedClasses, doUnapplyClass, getControlReplacements, getFieldIndicators, getSubtitle, getTitle, init, injectIntoClassSelectorActions, injectIntoCssClassConvert, injectIntoPanelHeaderTop, injectIntoStyleTab, isDynamicPropValue, registerControlReplacement, registerEditingPanelReplacement, registerFieldIndicator, registerStyleProviderToColors, stylesInheritanceTransformersRegistry, useClassesProp, useCustomCss, useElement, useFontFamilies, usePanelActions, usePanelStatus, useSectionWidth, useStateByElement, useStyle, useStylesRerender };
package/dist/index.d.ts CHANGED
@@ -6,9 +6,9 @@ import { StyleDefinition, StyleDefinitionVariant, StyleDefinitionState, StyleDef
6
6
  import * as React$1 from 'react';
7
7
  import { FC, PropsWithChildren, ReactNode, Dispatch, ElementType as ElementType$1, ComponentType, ComponentProps } from 'react';
8
8
  import { PopoverBody as PopoverBody$1 } from '@elementor/editor-ui';
9
- import { Control as Control$1, ElementControl, Element, ElementType, ControlLayout } from '@elementor/editor-elements';
9
+ import { Control as Control$1, ElementControl, Element, ElementType, ControlLayout, ControlItem } from '@elementor/editor-elements';
10
10
  import * as _elementor_editor_props from '@elementor/editor-props';
11
- import { PropKey, PropTypeUtil, PropsSchema, ObjectPropType } from '@elementor/editor-props';
11
+ import { PropKey, PropTypeUtil, PropsSchema, ObjectPropType, TransformablePropValue, PropValue } from '@elementor/editor-props';
12
12
  import * as _emotion_styled from '@emotion/styled';
13
13
  import * as _mui_system from '@mui/system';
14
14
  import { Theme, ChipProps } from '@elementor/ui';
@@ -1364,13 +1364,45 @@ declare const registerEditingPanelReplacement: ({ id, priority, ...props }: Omit
1364
1364
  priority?: number;
1365
1365
  }) => void;
1366
1366
 
1367
+ type V4PromotionData = {
1368
+ title: string;
1369
+ content: string;
1370
+ image: string;
1371
+ ctaUrl: string;
1372
+ };
1373
+
1367
1374
  declare function doGetAppliedClasses(elementId: string, classesPropType?: string): string[];
1368
1375
  declare function doApplyClasses(elementId: string, classIds: StyleDefinitionID[], classesPropType?: string): void;
1369
1376
  declare function doUnapplyClass(elementId: string, classId: StyleDefinitionID, classesPropType?: string): boolean;
1370
1377
 
1371
- type LicenseConfig = {
1372
- expired: boolean;
1378
+ type DynamicTags = Record<DynamicTag['name'], DynamicTag>;
1379
+ type DynamicTag = {
1380
+ name: string;
1381
+ label: string;
1382
+ group: string;
1383
+ categories: string[];
1384
+ atomic_controls: ControlItem[];
1385
+ props_schema: PropsSchema;
1386
+ };
1387
+ type DynamicPropValue = TransformablePropValue<'dynamic', {
1388
+ name: string;
1389
+ settings?: Record<string, unknown>;
1390
+ }>;
1391
+ type DynamicTagsManager = {
1392
+ createTag: (id: string, name: string, settings: Record<string, unknown>) => TagInstance;
1393
+ loadTagDataFromCache: (tag: TagInstance) => unknown;
1394
+ refreshCacheFromServer: (callback: () => void) => void;
1395
+ };
1396
+ type TagInstance = {
1397
+ options: {
1398
+ id: string;
1399
+ name: string;
1400
+ };
1401
+ model: {
1402
+ toJSON: () => Record<string, unknown>;
1403
+ };
1373
1404
  };
1374
- declare function setLicenseConfig(newConfig: Partial<LicenseConfig>): void;
1375
1405
 
1376
- export { Control as BaseControl, 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, setLicenseConfig, stylesInheritanceTransformersRegistry, useClassesProp, useCustomCss, useElement, useFontFamilies, usePanelActions, usePanelStatus, useSectionWidth, useStateByElement, useStyle, useStylesRerender };
1406
+ declare const isDynamicPropValue: (prop: PropValue) => prop is DynamicPropValue;
1407
+
1408
+ export { Control as BaseControl, type ControlType, CustomCssIndicator, type DynamicTag, type DynamicTags, type DynamicTagsManager, ElementProvider, FIELD_TYPE, HISTORY_DEBOUNCE_WAIT, type PopoverActionProps, PopoverBody, SectionContent, SettingsControl, SettingsField, StyleIndicator, StyleTabSection, StylesProviderCannotUpdatePropsError, type V4PromotionData, type ValidationEvent, type ValidationResult, controlActionsMenu, controlsRegistry, createTopLevelObjectType, doApplyClasses, doGetAppliedClasses, doUnapplyClass, getControlReplacements, getFieldIndicators, getSubtitle, getTitle, init, injectIntoClassSelectorActions, injectIntoCssClassConvert, injectIntoPanelHeaderTop, injectIntoStyleTab, isDynamicPropValue, registerControlReplacement, registerEditingPanelReplacement, registerFieldIndicator, registerStyleProviderToColors, stylesInheritanceTransformersRegistry, useClassesProp, useCustomCss, useElement, useFontFamilies, usePanelActions, usePanelStatus, useSectionWidth, useStateByElement, useStyle, useStylesRerender };