@elementor/editor-editing-panel 3.35.0-493 → 3.35.1
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 +31 -6
- package/dist/index.d.ts +31 -6
- package/dist/index.js +90 -157
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +41 -108
- package/dist/index.mjs.map +1 -1
- package/package.json +20 -20
- package/src/components/promotions/custom-css.tsx +5 -30
- package/src/components/promotions/init.tsx +7 -0
- package/src/dynamics/components/dynamic-selection-control.tsx +4 -13
- package/src/dynamics/components/dynamic-selection.tsx +27 -63
- package/src/index.ts +2 -1
- package/src/components/promotions/types.ts +0 -14
- package/src/hooks/use-license-config.ts +0 -26
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';
|
|
@@ -1368,9 +1368,34 @@ declare function doGetAppliedClasses(elementId: string, classesPropType?: string
|
|
|
1368
1368
|
declare function doApplyClasses(elementId: string, classIds: StyleDefinitionID[], classesPropType?: string): void;
|
|
1369
1369
|
declare function doUnapplyClass(elementId: string, classId: StyleDefinitionID, classesPropType?: string): boolean;
|
|
1370
1370
|
|
|
1371
|
-
type
|
|
1372
|
-
|
|
1371
|
+
type DynamicTags = Record<DynamicTag['name'], DynamicTag>;
|
|
1372
|
+
type DynamicTag = {
|
|
1373
|
+
name: string;
|
|
1374
|
+
label: string;
|
|
1375
|
+
group: string;
|
|
1376
|
+
categories: string[];
|
|
1377
|
+
atomic_controls: ControlItem[];
|
|
1378
|
+
props_schema: PropsSchema;
|
|
1373
1379
|
};
|
|
1374
|
-
|
|
1380
|
+
type DynamicPropValue = TransformablePropValue<'dynamic', {
|
|
1381
|
+
name: string;
|
|
1382
|
+
settings?: Record<string, unknown>;
|
|
1383
|
+
}>;
|
|
1384
|
+
type DynamicTagsManager = {
|
|
1385
|
+
createTag: (id: string, name: string, settings: Record<string, unknown>) => TagInstance;
|
|
1386
|
+
loadTagDataFromCache: (tag: TagInstance) => unknown;
|
|
1387
|
+
refreshCacheFromServer: (callback: () => void) => void;
|
|
1388
|
+
};
|
|
1389
|
+
type TagInstance = {
|
|
1390
|
+
options: {
|
|
1391
|
+
id: string;
|
|
1392
|
+
name: string;
|
|
1393
|
+
};
|
|
1394
|
+
model: {
|
|
1395
|
+
toJSON: () => Record<string, unknown>;
|
|
1396
|
+
};
|
|
1397
|
+
};
|
|
1398
|
+
|
|
1399
|
+
declare const isDynamicPropValue: (prop: PropValue) => prop is DynamicPropValue;
|
|
1375
1400
|
|
|
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,
|
|
1401
|
+
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 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';
|
|
@@ -1368,9 +1368,34 @@ declare function doGetAppliedClasses(elementId: string, classesPropType?: string
|
|
|
1368
1368
|
declare function doApplyClasses(elementId: string, classIds: StyleDefinitionID[], classesPropType?: string): void;
|
|
1369
1369
|
declare function doUnapplyClass(elementId: string, classId: StyleDefinitionID, classesPropType?: string): boolean;
|
|
1370
1370
|
|
|
1371
|
-
type
|
|
1372
|
-
|
|
1371
|
+
type DynamicTags = Record<DynamicTag['name'], DynamicTag>;
|
|
1372
|
+
type DynamicTag = {
|
|
1373
|
+
name: string;
|
|
1374
|
+
label: string;
|
|
1375
|
+
group: string;
|
|
1376
|
+
categories: string[];
|
|
1377
|
+
atomic_controls: ControlItem[];
|
|
1378
|
+
props_schema: PropsSchema;
|
|
1373
1379
|
};
|
|
1374
|
-
|
|
1380
|
+
type DynamicPropValue = TransformablePropValue<'dynamic', {
|
|
1381
|
+
name: string;
|
|
1382
|
+
settings?: Record<string, unknown>;
|
|
1383
|
+
}>;
|
|
1384
|
+
type DynamicTagsManager = {
|
|
1385
|
+
createTag: (id: string, name: string, settings: Record<string, unknown>) => TagInstance;
|
|
1386
|
+
loadTagDataFromCache: (tag: TagInstance) => unknown;
|
|
1387
|
+
refreshCacheFromServer: (callback: () => void) => void;
|
|
1388
|
+
};
|
|
1389
|
+
type TagInstance = {
|
|
1390
|
+
options: {
|
|
1391
|
+
id: string;
|
|
1392
|
+
name: string;
|
|
1393
|
+
};
|
|
1394
|
+
model: {
|
|
1395
|
+
toJSON: () => Record<string, unknown>;
|
|
1396
|
+
};
|
|
1397
|
+
};
|
|
1398
|
+
|
|
1399
|
+
declare const isDynamicPropValue: (prop: PropValue) => prop is DynamicPropValue;
|
|
1375
1400
|
|
|
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,
|
|
1401
|
+
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 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 };
|