@elementor/editor-editing-panel 4.1.0-748 → 4.1.0-750
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 +18 -3
- package/dist/index.d.ts +18 -3
- package/dist/index.js +967 -903
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +865 -807
- package/dist/index.mjs.map +1 -1
- package/package.json +21 -21
- package/src/components/css-classes/consts.ts +1 -0
- package/src/components/css-classes/css-class-convert-local.tsx +2 -1
- package/src/components/css-classes/css-class-item.tsx +2 -1
- package/src/components/css-classes/css-class-menu.tsx +4 -1
- package/src/components/css-classes/duplicate-class-menu-item.tsx +68 -0
- package/src/controls-registry/settings-field.tsx +6 -33
- package/src/index.ts +7 -0
- package/src/utils/prop-dependency-utils.ts +20 -0
package/dist/index.d.mts
CHANGED
|
@@ -4,7 +4,7 @@ import * as react from 'react';
|
|
|
4
4
|
import { FC, PropsWithChildren, ReactNode, Dispatch, ComponentProps, ComponentType } from 'react';
|
|
5
5
|
import { Control as Control$1, ElementControl, Element, ElementType, ControlLayout, ControlItem } from '@elementor/editor-elements';
|
|
6
6
|
import * as _elementor_editor_props from '@elementor/editor-props';
|
|
7
|
-
import { PropKey, AnyTransformable, PropTypeUtil, PropsSchema, ObjectPropType, TransformablePropValue, PropValue } from '@elementor/editor-props';
|
|
7
|
+
import { PropKey, AnyTransformable, PropTypeUtil, PropsSchema, ObjectPropType, TransformablePropValue, PropValue, PropType, Props as Props$2 } from '@elementor/editor-props';
|
|
8
8
|
import * as _emotion_styled from '@emotion/styled';
|
|
9
9
|
import * as _mui_system from '@mui/system';
|
|
10
10
|
import { Theme, ChipProps } from '@elementor/ui';
|
|
@@ -1159,7 +1159,7 @@ declare const controlTypes: {
|
|
|
1159
1159
|
};
|
|
1160
1160
|
};
|
|
1161
1161
|
readonly 'html-tag': {
|
|
1162
|
-
readonly component: ControlComponent<(
|
|
1162
|
+
readonly component: ControlComponent<(props: {
|
|
1163
1163
|
options: {
|
|
1164
1164
|
label: string;
|
|
1165
1165
|
value: _elementor_editor_props.StringPropValue["value"];
|
|
@@ -1167,6 +1167,10 @@ declare const controlTypes: {
|
|
|
1167
1167
|
}[];
|
|
1168
1168
|
onChange?: (newValue: string | null, previousValue: string | null | undefined) => void;
|
|
1169
1169
|
fallbackLabels?: Record<string, string>;
|
|
1170
|
+
} & {
|
|
1171
|
+
context: {
|
|
1172
|
+
elementId: string;
|
|
1173
|
+
};
|
|
1170
1174
|
}) => react.JSX.Element>;
|
|
1171
1175
|
readonly layout: "two-columns";
|
|
1172
1176
|
readonly propTypeUtil: {
|
|
@@ -1855,4 +1859,15 @@ type TagInstance = {
|
|
|
1855
1859
|
|
|
1856
1860
|
declare const isDynamicPropValue: (prop: PropValue) => prop is DynamicPropValue;
|
|
1857
1861
|
|
|
1858
|
-
|
|
1862
|
+
type Value = TransformablePropValue<string> | null;
|
|
1863
|
+
type Values = Record<string, Value>;
|
|
1864
|
+
type DependencyEffect = {
|
|
1865
|
+
isHidden: boolean;
|
|
1866
|
+
isDisabled: (propType: PropType) => boolean;
|
|
1867
|
+
};
|
|
1868
|
+
declare function getElementSettingsWithDefaults(propsSchema: PropsSchema, elementSettings?: Props$2): Values;
|
|
1869
|
+
declare function extractDependencyEffect(bind: string, propsSchema: PropsSchema, settings: Props$2): DependencyEffect;
|
|
1870
|
+
declare function extractOrderedDependencies(dependenciesPerTargetMapping: Record<string, string[]>): string[];
|
|
1871
|
+
declare function getUpdatedValues(values: Values, dependencies: string[], propsSchema: PropsSchema, elementValues: Values, elementId: string): Values;
|
|
1872
|
+
|
|
1873
|
+
export { Control as BaseControl, type ControlType, ControlTypeContainer, CustomCssIndicator, type DependencyEffect, type DynamicTag, type DynamicTags, type DynamicTagsManager, ElementProvider, FIELD_TYPE, HISTORY_DEBOUNCE_WAIT, SectionContent, SettingsControl, SettingsField, StyleIndicator, StyleTabSection, StylesProviderCannotUpdatePropsError, type ValidationEvent, type ValidationResult, controlsRegistry, createTopLevelObjectType, doApplyClasses, doGetAppliedClasses, doUnapplyClass, extractDependencyEffect, extractOrderedDependencies, getElementSettingsWithDefaults, getFieldIndicators, getSubtitle, getTitle, getUpdatedValues, init, injectIntoClassSelectorActions, injectIntoCssClassConvert, injectIntoPanelHeaderTop, injectIntoStyleTab, isDynamicPropValue, registerEditingPanelReplacement, registerFieldIndicator, registerStyleProviderToColors, setLicenseConfig, useClassesProp, useCustomCss, useElement, usePanelActions, usePanelStatus, useStateByElement, useStyle, useStylesRerender };
|
package/dist/index.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import * as react from 'react';
|
|
|
4
4
|
import { FC, PropsWithChildren, ReactNode, Dispatch, ComponentProps, ComponentType } from 'react';
|
|
5
5
|
import { Control as Control$1, ElementControl, Element, ElementType, ControlLayout, ControlItem } from '@elementor/editor-elements';
|
|
6
6
|
import * as _elementor_editor_props from '@elementor/editor-props';
|
|
7
|
-
import { PropKey, AnyTransformable, PropTypeUtil, PropsSchema, ObjectPropType, TransformablePropValue, PropValue } from '@elementor/editor-props';
|
|
7
|
+
import { PropKey, AnyTransformable, PropTypeUtil, PropsSchema, ObjectPropType, TransformablePropValue, PropValue, PropType, Props as Props$2 } from '@elementor/editor-props';
|
|
8
8
|
import * as _emotion_styled from '@emotion/styled';
|
|
9
9
|
import * as _mui_system from '@mui/system';
|
|
10
10
|
import { Theme, ChipProps } from '@elementor/ui';
|
|
@@ -1159,7 +1159,7 @@ declare const controlTypes: {
|
|
|
1159
1159
|
};
|
|
1160
1160
|
};
|
|
1161
1161
|
readonly 'html-tag': {
|
|
1162
|
-
readonly component: ControlComponent<(
|
|
1162
|
+
readonly component: ControlComponent<(props: {
|
|
1163
1163
|
options: {
|
|
1164
1164
|
label: string;
|
|
1165
1165
|
value: _elementor_editor_props.StringPropValue["value"];
|
|
@@ -1167,6 +1167,10 @@ declare const controlTypes: {
|
|
|
1167
1167
|
}[];
|
|
1168
1168
|
onChange?: (newValue: string | null, previousValue: string | null | undefined) => void;
|
|
1169
1169
|
fallbackLabels?: Record<string, string>;
|
|
1170
|
+
} & {
|
|
1171
|
+
context: {
|
|
1172
|
+
elementId: string;
|
|
1173
|
+
};
|
|
1170
1174
|
}) => react.JSX.Element>;
|
|
1171
1175
|
readonly layout: "two-columns";
|
|
1172
1176
|
readonly propTypeUtil: {
|
|
@@ -1855,4 +1859,15 @@ type TagInstance = {
|
|
|
1855
1859
|
|
|
1856
1860
|
declare const isDynamicPropValue: (prop: PropValue) => prop is DynamicPropValue;
|
|
1857
1861
|
|
|
1858
|
-
|
|
1862
|
+
type Value = TransformablePropValue<string> | null;
|
|
1863
|
+
type Values = Record<string, Value>;
|
|
1864
|
+
type DependencyEffect = {
|
|
1865
|
+
isHidden: boolean;
|
|
1866
|
+
isDisabled: (propType: PropType) => boolean;
|
|
1867
|
+
};
|
|
1868
|
+
declare function getElementSettingsWithDefaults(propsSchema: PropsSchema, elementSettings?: Props$2): Values;
|
|
1869
|
+
declare function extractDependencyEffect(bind: string, propsSchema: PropsSchema, settings: Props$2): DependencyEffect;
|
|
1870
|
+
declare function extractOrderedDependencies(dependenciesPerTargetMapping: Record<string, string[]>): string[];
|
|
1871
|
+
declare function getUpdatedValues(values: Values, dependencies: string[], propsSchema: PropsSchema, elementValues: Values, elementId: string): Values;
|
|
1872
|
+
|
|
1873
|
+
export { Control as BaseControl, type ControlType, ControlTypeContainer, CustomCssIndicator, type DependencyEffect, type DynamicTag, type DynamicTags, type DynamicTagsManager, ElementProvider, FIELD_TYPE, HISTORY_DEBOUNCE_WAIT, SectionContent, SettingsControl, SettingsField, StyleIndicator, StyleTabSection, StylesProviderCannotUpdatePropsError, type ValidationEvent, type ValidationResult, controlsRegistry, createTopLevelObjectType, doApplyClasses, doGetAppliedClasses, doUnapplyClass, extractDependencyEffect, extractOrderedDependencies, getElementSettingsWithDefaults, getFieldIndicators, getSubtitle, getTitle, getUpdatedValues, init, injectIntoClassSelectorActions, injectIntoCssClassConvert, injectIntoPanelHeaderTop, injectIntoStyleTab, isDynamicPropValue, registerEditingPanelReplacement, registerFieldIndicator, registerStyleProviderToColors, setLicenseConfig, useClassesProp, useCustomCss, useElement, usePanelActions, usePanelStatus, useStateByElement, useStyle, useStylesRerender };
|