@elementor/editor-editing-panel 4.3.0-999 → 4.3.0-beta1
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 +142 -143
- package/dist/index.d.ts +142 -143
- package/dist/index.js +1867 -1141
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1774 -1047
- package/dist/index.mjs.map +1 -1
- package/package.json +24 -24
- package/src/components/css-classes/css-class-menu.tsx +29 -30
- package/src/components/css-classes/css-class-selector.tsx +1 -0
- package/src/components/editing-panel-tabs.tsx +4 -10
- package/src/components/style-sections/position-section/position-section.tsx +8 -3
- package/src/components/style-sections-definition.ts +119 -0
- package/src/components/style-sections.tsx +22 -0
- package/src/components/style-states/pseudo-state-menu-items.tsx +44 -0
- package/src/components/style-states/pseudo-states.ts +17 -0
- package/src/components/style-states/use-pseudo-states.ts +18 -0
- package/src/components/style-tab.tsx +8 -123
- package/src/contexts/styles-inheritance-context.tsx +17 -1
- package/src/controls-registry/controls-registry.tsx +2 -2
- package/src/controls-registry/element-controls/accordion-items-control/accordion-items-control.tsx +141 -0
- package/src/controls-registry/element-controls/accordion-items-control/use-actions.ts +235 -0
- package/src/controls-registry/element-controls/accordion-items-control/use-show-icon-write-through.ts +135 -0
- package/src/controls-registry/element-controls/list-items-control/list-actions.ts +129 -0
- package/src/controls-registry/element-controls/list-items-control/list-items-control.tsx +152 -0
- package/src/controls-registry/element-controls/list-items-control/use-show-markers-write-through.ts +89 -0
- package/src/controls-registry/element-controls/registry.ts +4 -0
- package/src/hooks/use-default-style-tag-from-preview.ts +14 -0
- package/src/index.ts +21 -4
- package/src/init.ts +1 -1
- package/src/panel.ts +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import * as _elementor_locations from '@elementor/locations';
|
|
2
|
-
import { StyleDefinition, StyleDefinitionVariant, StyleDefinitionState, StyleDefinitionID } from '@elementor/editor-styles';
|
|
3
1
|
import * as react from 'react';
|
|
4
2
|
import { PropsWithChildren, FC, ReactNode, Dispatch, ComponentProps, ComponentType } from 'react';
|
|
3
|
+
import { AutocompleteProps, AutocompleteChangeReason, ListProps, Theme, ChipProps } from '@elementor/ui';
|
|
4
|
+
import * as _elementor_locations from '@elementor/locations';
|
|
5
|
+
import { StyleDefinition, StyleDefinitionState, StyleDefinitionVariant, StyleDefinitionID } from '@elementor/editor-styles';
|
|
5
6
|
import { Control as Control$1, ElementControl, Element, ElementType, ControlLayout, ControlItem } from '@elementor/editor-elements';
|
|
6
7
|
import * as _elementor_editor_props from '@elementor/editor-props';
|
|
7
|
-
import { PropKey, AnyTransformable, PropTypeUtil, PropsSchema, ObjectPropType, TransformablePropValue, PropValue, PropType, Props as Props$
|
|
8
|
+
import { PropKey, AnyTransformable, PropTypeUtil, PropsSchema, ObjectPropType, TransformablePropValue, PropValue, PropType, Props as Props$4 } from '@elementor/editor-props';
|
|
8
9
|
import * as _emotion_styled from '@emotion/styled';
|
|
9
10
|
import * as _mui_system from '@mui/system';
|
|
10
|
-
import { Theme, ChipProps } from '@elementor/ui';
|
|
11
11
|
import { StylesProvider } from '@elementor/editor-styles-repository';
|
|
12
12
|
import * as _mui_material from '@mui/material';
|
|
13
13
|
import * as _elementor_editor_controls from '@elementor/editor-controls';
|
|
@@ -15,6 +15,16 @@ import { ControlComponent, AdornmentComponent } from '@elementor/editor-controls
|
|
|
15
15
|
import * as zod from 'zod';
|
|
16
16
|
import * as _elementor_utils from '@elementor/utils';
|
|
17
17
|
|
|
18
|
+
type Option = {
|
|
19
|
+
label: string;
|
|
20
|
+
value: string | null;
|
|
21
|
+
fixed?: boolean;
|
|
22
|
+
key?: string;
|
|
23
|
+
};
|
|
24
|
+
type InternalKeys = '_group' | '_action';
|
|
25
|
+
type SafeOptionConstraint = Option & {
|
|
26
|
+
[K in InternalKeys]?: never;
|
|
27
|
+
};
|
|
18
28
|
type ValidationResult = {
|
|
19
29
|
isValid: true;
|
|
20
30
|
errorMessage: null;
|
|
@@ -23,6 +33,30 @@ type ValidationResult = {
|
|
|
23
33
|
errorMessage: string;
|
|
24
34
|
};
|
|
25
35
|
type ValidationEvent = 'inputChange' | 'create';
|
|
36
|
+
type OnSelect<TOption extends Option> = (value: TOption[], reason: AutocompleteChangeReason, option: TOption) => void;
|
|
37
|
+
type OnCreate = (value: string) => unknown;
|
|
38
|
+
type Validate = (value: string, event: ValidationEvent) => ValidationResult;
|
|
39
|
+
type CreatableAutocompleteProps<TOption extends SafeOptionConstraint> = Omit<AutocompleteProps<TOption, true, true, true>, 'renderInput' | 'onSelect' | 'options'> & {
|
|
40
|
+
selected: TOption[];
|
|
41
|
+
options: TOption[];
|
|
42
|
+
placeholder?: string;
|
|
43
|
+
entityName?: {
|
|
44
|
+
singular: string;
|
|
45
|
+
plural: string;
|
|
46
|
+
};
|
|
47
|
+
renderEmptyState?: (props: {
|
|
48
|
+
searchValue: string;
|
|
49
|
+
onClear: () => void;
|
|
50
|
+
}) => React.ReactNode;
|
|
51
|
+
onSelect?: OnSelect<TOption>;
|
|
52
|
+
onCreate?: OnCreate;
|
|
53
|
+
validate?: Validate;
|
|
54
|
+
};
|
|
55
|
+
|
|
56
|
+
declare const CreatableAutocomplete: <TOption extends SafeOptionConstraint>(props: CreatableAutocompleteProps<TOption> & {
|
|
57
|
+
ref?: react.ForwardedRef<HTMLElement>;
|
|
58
|
+
}) => ReturnType<typeof CreatableAutocompleteInner>;
|
|
59
|
+
declare function CreatableAutocompleteInner<TOption extends SafeOptionConstraint>({ selected, options, entityName, onSelect, placeholder, onCreate, validate, renderEmptyState, ...props }: CreatableAutocompleteProps<TOption>, ref: react.ForwardedRef<HTMLElement>): react.JSX.Element;
|
|
26
60
|
|
|
27
61
|
declare const injectIntoCssClassConvert: (args: _elementor_locations.InjectArgs<{
|
|
28
62
|
styleDef: StyleDefinition | null;
|
|
@@ -53,6 +87,8 @@ type SectionContentProps = PropsWithChildren<{
|
|
|
53
87
|
}>;
|
|
54
88
|
declare const SectionContent: FC<SectionContentProps>;
|
|
55
89
|
|
|
90
|
+
declare function SectionsList(props: ListProps): react.JSX.Element;
|
|
91
|
+
|
|
56
92
|
declare const SettingsControl: ({ control: { value, type } }: {
|
|
57
93
|
control: Control$1 | ElementControl;
|
|
58
94
|
}) => react.JSX.Element | null;
|
|
@@ -72,8 +108,39 @@ declare const StyleIndicator: _emotion_styled.StyledComponent<_mui_system.MUISty
|
|
|
72
108
|
getColor?: ((theme: Theme) => string) | null;
|
|
73
109
|
}), react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
74
110
|
|
|
111
|
+
declare const StyleTabSlot: react.ComponentType<object>;
|
|
75
112
|
declare const injectIntoStyleTab: (args: _elementor_locations.InjectArgs<object>) => void;
|
|
76
113
|
|
|
114
|
+
declare const StyleSections: () => react.JSX.Element;
|
|
115
|
+
|
|
116
|
+
type StyleSectionDefinition = {
|
|
117
|
+
name: string;
|
|
118
|
+
title: string;
|
|
119
|
+
component: () => react.JSX.Element;
|
|
120
|
+
fields: string[];
|
|
121
|
+
};
|
|
122
|
+
declare const STYLE_SECTIONS: StyleSectionDefinition[];
|
|
123
|
+
declare const STYLE_SECTION_NAMES: string[];
|
|
124
|
+
|
|
125
|
+
type StyleDefinitionStateWithNormal = NonNullable<StyleDefinitionState> | 'normal';
|
|
126
|
+
|
|
127
|
+
type PseudoStateOption = {
|
|
128
|
+
key: StyleDefinitionStateWithNormal;
|
|
129
|
+
value: StyleDefinitionState | null;
|
|
130
|
+
label: string;
|
|
131
|
+
};
|
|
132
|
+
declare const DEFAULT_PSEUDO_STATES: PseudoStateOption[];
|
|
133
|
+
|
|
134
|
+
type PseudoStateMenuItemsProps = {
|
|
135
|
+
states: PseudoStateOption[];
|
|
136
|
+
activeState: StyleDefinitionState | null;
|
|
137
|
+
onSelectState: (state: StyleDefinitionState | null) => void;
|
|
138
|
+
onClose?: () => void;
|
|
139
|
+
};
|
|
140
|
+
declare function PseudoStateMenuItems({ states, activeState, onSelectState, onClose }: PseudoStateMenuItemsProps): react.JSX.Element;
|
|
141
|
+
|
|
142
|
+
declare function usePseudoStates(): PseudoStateOption[];
|
|
143
|
+
|
|
77
144
|
declare const injectIntoGridFields: (args: _elementor_locations.InjectArgs<object>) => void;
|
|
78
145
|
|
|
79
146
|
type SectionType = {
|
|
@@ -85,13 +152,18 @@ type SectionType = {
|
|
|
85
152
|
onClick: () => void;
|
|
86
153
|
};
|
|
87
154
|
};
|
|
88
|
-
type Props$
|
|
155
|
+
type Props$3 = {
|
|
89
156
|
section: SectionType;
|
|
90
157
|
fields?: string[];
|
|
91
158
|
unmountOnExit?: boolean;
|
|
92
159
|
};
|
|
93
|
-
declare const StyleTabSection: ({ section, fields, unmountOnExit }: Props$
|
|
160
|
+
declare const StyleTabSection: ({ section, fields, unmountOnExit }: Props$3) => react.JSX.Element;
|
|
94
161
|
|
|
162
|
+
type ContextValue$2 = {
|
|
163
|
+
prop: string;
|
|
164
|
+
};
|
|
165
|
+
type Props$2 = PropsWithChildren<ContextValue$2>;
|
|
166
|
+
declare function ClassesPropProvider({ children, prop }: Props$2): react.JSX.Element;
|
|
95
167
|
declare function useClassesProp(): string;
|
|
96
168
|
|
|
97
169
|
type ContextValue$1 = {
|
|
@@ -99,8 +171,8 @@ type ContextValue$1 = {
|
|
|
99
171
|
elementType: ElementType;
|
|
100
172
|
settings: Record<string, AnyTransformable | null>;
|
|
101
173
|
};
|
|
102
|
-
type Props = PropsWithChildren<ContextValue$1>;
|
|
103
|
-
declare function ElementProvider({ children, element, elementType, settings }: Props): react.JSX.Element;
|
|
174
|
+
type Props$1 = PropsWithChildren<ContextValue$1>;
|
|
175
|
+
declare function ElementProvider({ children, element, elementType, settings }: Props$1): react.JSX.Element;
|
|
104
176
|
declare function useElement(): ContextValue$1;
|
|
105
177
|
|
|
106
178
|
type ContextValue = {
|
|
@@ -117,8 +189,12 @@ type ContextValueWithoutProvider = {
|
|
|
117
189
|
id: null;
|
|
118
190
|
provider: null;
|
|
119
191
|
};
|
|
192
|
+
type Props = PropsWithChildren<Omit<ContextValue, 'provider'>>;
|
|
193
|
+
declare function StyleProvider({ children, ...props }: Props): react.JSX.Element;
|
|
120
194
|
declare function useStyle(): ContextValue;
|
|
121
195
|
|
|
196
|
+
declare function StyleInheritanceProvider({ children }: PropsWithChildren): react.JSX.Element;
|
|
197
|
+
|
|
122
198
|
type ControlRegistry = Record<string, {
|
|
123
199
|
component: ControlComponent;
|
|
124
200
|
layout: ControlLayout;
|
|
@@ -198,7 +274,9 @@ declare const controlTypes: {
|
|
|
198
274
|
};
|
|
199
275
|
};
|
|
200
276
|
readonly 'svg-media': {
|
|
201
|
-
readonly component: ControlComponent<(
|
|
277
|
+
readonly component: ControlComponent<({ showIconLibrary }: {
|
|
278
|
+
showIconLibrary?: boolean;
|
|
279
|
+
}) => react.JSX.Element>;
|
|
202
280
|
readonly layout: "full";
|
|
203
281
|
readonly propTypeUtil: {
|
|
204
282
|
extract: (prop: unknown) => {
|
|
@@ -677,11 +755,19 @@ declare const controlTypes: {
|
|
|
677
755
|
};
|
|
678
756
|
readonly select: {
|
|
679
757
|
readonly component: ControlComponent<({ collectionId, options, ...props }: {
|
|
680
|
-
options
|
|
758
|
+
options?: {
|
|
681
759
|
label: string;
|
|
682
760
|
value: _elementor_editor_props.StringPropValue["value"];
|
|
683
761
|
disabled?: boolean;
|
|
684
762
|
}[];
|
|
763
|
+
groups?: {
|
|
764
|
+
label: string;
|
|
765
|
+
options: {
|
|
766
|
+
label: string;
|
|
767
|
+
value: _elementor_editor_props.StringPropValue["value"];
|
|
768
|
+
disabled?: boolean;
|
|
769
|
+
}[];
|
|
770
|
+
}[];
|
|
685
771
|
onChange?: (newValue: string | null, previousValue: string | null | undefined) => void;
|
|
686
772
|
MenuProps?: _mui_material.SelectProps["MenuProps"];
|
|
687
773
|
ariaLabel?: string;
|
|
@@ -1571,99 +1657,99 @@ declare const controlTypes: {
|
|
|
1571
1657
|
readonly layout: "full";
|
|
1572
1658
|
readonly propTypeUtil: {
|
|
1573
1659
|
extract: (prop: unknown) => {
|
|
1574
|
-
url: null;
|
|
1575
1660
|
id?: any;
|
|
1661
|
+
url?: null | undefined;
|
|
1576
1662
|
} | {
|
|
1577
|
-
id
|
|
1663
|
+
id?: null | undefined;
|
|
1578
1664
|
url?: any;
|
|
1579
1665
|
} | null;
|
|
1580
1666
|
isValid: (prop: unknown) => prop is _elementor_editor_props.TransformablePropValue<"video-src", {
|
|
1581
|
-
url: null;
|
|
1582
1667
|
id?: any;
|
|
1668
|
+
url?: null | undefined;
|
|
1583
1669
|
} | {
|
|
1584
|
-
id
|
|
1670
|
+
id?: null | undefined;
|
|
1585
1671
|
url?: any;
|
|
1586
1672
|
}>;
|
|
1587
1673
|
create: {
|
|
1588
1674
|
(value: {
|
|
1589
|
-
url: null;
|
|
1590
1675
|
id?: any;
|
|
1676
|
+
url?: null | undefined;
|
|
1591
1677
|
} | {
|
|
1592
|
-
id
|
|
1678
|
+
id?: null | undefined;
|
|
1593
1679
|
url?: any;
|
|
1594
1680
|
}): _elementor_editor_props.TransformablePropValue<"video-src", {
|
|
1595
|
-
url: null;
|
|
1596
1681
|
id?: any;
|
|
1682
|
+
url?: null | undefined;
|
|
1597
1683
|
} | {
|
|
1598
|
-
id
|
|
1684
|
+
id?: null | undefined;
|
|
1599
1685
|
url?: any;
|
|
1600
1686
|
}>;
|
|
1601
1687
|
(value: {
|
|
1602
|
-
url: null;
|
|
1603
1688
|
id?: any;
|
|
1689
|
+
url?: null | undefined;
|
|
1604
1690
|
} | {
|
|
1605
|
-
id
|
|
1691
|
+
id?: null | undefined;
|
|
1606
1692
|
url?: any;
|
|
1607
1693
|
}, createOptions?: _elementor_editor_props.CreateOptions): _elementor_editor_props.TransformablePropValue<"video-src", {
|
|
1608
|
-
url: null;
|
|
1609
1694
|
id?: any;
|
|
1695
|
+
url?: null | undefined;
|
|
1610
1696
|
} | {
|
|
1611
|
-
id
|
|
1697
|
+
id?: null | undefined;
|
|
1612
1698
|
url?: any;
|
|
1613
1699
|
}>;
|
|
1614
1700
|
(value: (prev?: {
|
|
1615
|
-
url: null;
|
|
1616
1701
|
id?: any;
|
|
1702
|
+
url?: null | undefined;
|
|
1617
1703
|
} | {
|
|
1618
|
-
id
|
|
1704
|
+
id?: null | undefined;
|
|
1619
1705
|
url?: any;
|
|
1620
1706
|
} | undefined) => {
|
|
1621
|
-
url: null;
|
|
1622
1707
|
id?: any;
|
|
1708
|
+
url?: null | undefined;
|
|
1623
1709
|
} | {
|
|
1624
|
-
id
|
|
1710
|
+
id?: null | undefined;
|
|
1625
1711
|
url?: any;
|
|
1626
1712
|
}, createOptions: _elementor_editor_props.CreateOptions): _elementor_editor_props.TransformablePropValue<"video-src", {
|
|
1627
|
-
url: null;
|
|
1628
1713
|
id?: any;
|
|
1714
|
+
url?: null | undefined;
|
|
1629
1715
|
} | {
|
|
1630
|
-
id
|
|
1716
|
+
id?: null | undefined;
|
|
1631
1717
|
url?: any;
|
|
1632
1718
|
}>;
|
|
1633
1719
|
};
|
|
1634
1720
|
schema: zod.ZodObject<{
|
|
1635
1721
|
$$type: zod.ZodLiteral<"video-src">;
|
|
1636
1722
|
value: zod.ZodType<{
|
|
1637
|
-
url: null;
|
|
1638
1723
|
id?: any;
|
|
1724
|
+
url?: null | undefined;
|
|
1639
1725
|
} | {
|
|
1640
|
-
id
|
|
1726
|
+
id?: null | undefined;
|
|
1641
1727
|
url?: any;
|
|
1642
1728
|
}, zod.ZodTypeDef, {
|
|
1643
|
-
url: null;
|
|
1644
1729
|
id?: any;
|
|
1730
|
+
url?: null | undefined;
|
|
1645
1731
|
} | {
|
|
1646
|
-
id
|
|
1732
|
+
id?: null | undefined;
|
|
1647
1733
|
url?: any;
|
|
1648
1734
|
}>;
|
|
1649
1735
|
disabled: zod.ZodOptional<zod.ZodBoolean>;
|
|
1650
1736
|
}, "strict", zod.ZodTypeAny, {
|
|
1651
1737
|
$$type: "video-src";
|
|
1652
1738
|
value: {
|
|
1653
|
-
url: null;
|
|
1654
1739
|
id?: any;
|
|
1740
|
+
url?: null | undefined;
|
|
1655
1741
|
} | {
|
|
1656
|
-
id
|
|
1742
|
+
id?: null | undefined;
|
|
1657
1743
|
url?: any;
|
|
1658
1744
|
};
|
|
1659
1745
|
disabled?: boolean | undefined;
|
|
1660
1746
|
}, {
|
|
1661
1747
|
$$type: "video-src";
|
|
1662
1748
|
value: {
|
|
1663
|
-
url: null;
|
|
1664
1749
|
id?: any;
|
|
1750
|
+
url?: null | undefined;
|
|
1665
1751
|
} | {
|
|
1666
|
-
id
|
|
1752
|
+
id?: null | undefined;
|
|
1667
1753
|
url?: any;
|
|
1668
1754
|
};
|
|
1669
1755
|
disabled?: boolean | undefined;
|
|
@@ -1672,125 +1758,38 @@ declare const controlTypes: {
|
|
|
1672
1758
|
};
|
|
1673
1759
|
};
|
|
1674
1760
|
readonly 'inline-editing': {
|
|
1675
|
-
readonly component: ControlComponent<({ sx, attributes, props, }: {
|
|
1761
|
+
readonly component: ControlComponent<({ sx, attributes, props, context: { elementId } }: {
|
|
1676
1762
|
sx?: _mui_system.SxProps<_mui_material.Theme>;
|
|
1677
1763
|
attributes?: Record<string, string>;
|
|
1678
1764
|
props?: react.ComponentProps<"div">;
|
|
1765
|
+
} & {
|
|
1766
|
+
context: {
|
|
1767
|
+
elementId: string;
|
|
1768
|
+
};
|
|
1679
1769
|
}) => react.JSX.Element>;
|
|
1680
1770
|
readonly layout: "full";
|
|
1681
1771
|
readonly propTypeUtil: {
|
|
1682
|
-
extract: (prop: unknown) =>
|
|
1683
|
-
|
|
1684
|
-
$$type: "string";
|
|
1685
|
-
value: string | null;
|
|
1686
|
-
disabled?: boolean | undefined;
|
|
1687
|
-
} | null;
|
|
1688
|
-
children: unknown[];
|
|
1689
|
-
} | null;
|
|
1690
|
-
isValid: (prop: unknown) => prop is _elementor_editor_props.TransformablePropValue<"html-v3", {
|
|
1691
|
-
content: {
|
|
1692
|
-
$$type: "string";
|
|
1693
|
-
value: string | null;
|
|
1694
|
-
disabled?: boolean | undefined;
|
|
1695
|
-
} | null;
|
|
1696
|
-
children: unknown[];
|
|
1697
|
-
}>;
|
|
1772
|
+
extract: (prop: unknown) => string | null;
|
|
1773
|
+
isValid: (prop: unknown) => prop is _elementor_editor_props.TransformablePropValue<"escaped-html", string | null>;
|
|
1698
1774
|
create: {
|
|
1699
|
-
(value:
|
|
1700
|
-
|
|
1701
|
-
|
|
1702
|
-
value: string | null;
|
|
1703
|
-
disabled?: boolean | undefined;
|
|
1704
|
-
} | null;
|
|
1705
|
-
children: unknown[];
|
|
1706
|
-
}): _elementor_editor_props.TransformablePropValue<"html-v3", {
|
|
1707
|
-
content: {
|
|
1708
|
-
$$type: "string";
|
|
1709
|
-
value: string | null;
|
|
1710
|
-
disabled?: boolean | undefined;
|
|
1711
|
-
} | null;
|
|
1712
|
-
children: unknown[];
|
|
1713
|
-
}>;
|
|
1714
|
-
(value: {
|
|
1715
|
-
content: {
|
|
1716
|
-
$$type: "string";
|
|
1717
|
-
value: string | null;
|
|
1718
|
-
disabled?: boolean | undefined;
|
|
1719
|
-
} | null;
|
|
1720
|
-
children: unknown[];
|
|
1721
|
-
}, createOptions?: _elementor_editor_props.CreateOptions): _elementor_editor_props.TransformablePropValue<"html-v3", {
|
|
1722
|
-
content: {
|
|
1723
|
-
$$type: "string";
|
|
1724
|
-
value: string | null;
|
|
1725
|
-
disabled?: boolean | undefined;
|
|
1726
|
-
} | null;
|
|
1727
|
-
children: unknown[];
|
|
1728
|
-
}>;
|
|
1729
|
-
(value: (prev?: {
|
|
1730
|
-
content: {
|
|
1731
|
-
$$type: "string";
|
|
1732
|
-
value: string | null;
|
|
1733
|
-
disabled?: boolean | undefined;
|
|
1734
|
-
} | null;
|
|
1735
|
-
children: unknown[];
|
|
1736
|
-
} | undefined) => {
|
|
1737
|
-
content: {
|
|
1738
|
-
$$type: "string";
|
|
1739
|
-
value: string | null;
|
|
1740
|
-
disabled?: boolean | undefined;
|
|
1741
|
-
} | null;
|
|
1742
|
-
children: unknown[];
|
|
1743
|
-
}, createOptions: _elementor_editor_props.CreateOptions): _elementor_editor_props.TransformablePropValue<"html-v3", {
|
|
1744
|
-
content: {
|
|
1745
|
-
$$type: "string";
|
|
1746
|
-
value: string | null;
|
|
1747
|
-
disabled?: boolean | undefined;
|
|
1748
|
-
} | null;
|
|
1749
|
-
children: unknown[];
|
|
1750
|
-
}>;
|
|
1775
|
+
(value: string | null): _elementor_editor_props.TransformablePropValue<"escaped-html", string | null>;
|
|
1776
|
+
(value: string | null, createOptions?: _elementor_editor_props.CreateOptions): _elementor_editor_props.TransformablePropValue<"escaped-html", string | null>;
|
|
1777
|
+
(value: (prev?: string | null | undefined) => string | null, createOptions: _elementor_editor_props.CreateOptions): _elementor_editor_props.TransformablePropValue<"escaped-html", string | null>;
|
|
1751
1778
|
};
|
|
1752
1779
|
schema: zod.ZodObject<{
|
|
1753
|
-
$$type: zod.ZodLiteral<"html
|
|
1754
|
-
value: zod.ZodType<
|
|
1755
|
-
content: {
|
|
1756
|
-
$$type: "string";
|
|
1757
|
-
value: string | null;
|
|
1758
|
-
disabled?: boolean | undefined;
|
|
1759
|
-
} | null;
|
|
1760
|
-
children: unknown[];
|
|
1761
|
-
}, zod.ZodTypeDef, {
|
|
1762
|
-
content: {
|
|
1763
|
-
$$type: "string";
|
|
1764
|
-
value: string | null;
|
|
1765
|
-
disabled?: boolean | undefined;
|
|
1766
|
-
} | null;
|
|
1767
|
-
children: unknown[];
|
|
1768
|
-
}>;
|
|
1780
|
+
$$type: zod.ZodLiteral<"escaped-html">;
|
|
1781
|
+
value: zod.ZodType<string | null, zod.ZodTypeDef, string | null>;
|
|
1769
1782
|
disabled: zod.ZodOptional<zod.ZodBoolean>;
|
|
1770
1783
|
}, "strict", zod.ZodTypeAny, {
|
|
1771
|
-
$$type: "html
|
|
1772
|
-
value:
|
|
1773
|
-
content: {
|
|
1774
|
-
$$type: "string";
|
|
1775
|
-
value: string | null;
|
|
1776
|
-
disabled?: boolean | undefined;
|
|
1777
|
-
} | null;
|
|
1778
|
-
children: unknown[];
|
|
1779
|
-
};
|
|
1784
|
+
$$type: "escaped-html";
|
|
1785
|
+
value: string | null;
|
|
1780
1786
|
disabled?: boolean | undefined;
|
|
1781
1787
|
}, {
|
|
1782
|
-
$$type: "html
|
|
1783
|
-
value:
|
|
1784
|
-
content: {
|
|
1785
|
-
$$type: "string";
|
|
1786
|
-
value: string | null;
|
|
1787
|
-
disabled?: boolean | undefined;
|
|
1788
|
-
} | null;
|
|
1789
|
-
children: unknown[];
|
|
1790
|
-
};
|
|
1788
|
+
$$type: "escaped-html";
|
|
1789
|
+
value: string | null;
|
|
1791
1790
|
disabled?: boolean | undefined;
|
|
1792
1791
|
}>;
|
|
1793
|
-
key: "html
|
|
1792
|
+
key: "escaped-html";
|
|
1794
1793
|
};
|
|
1795
1794
|
};
|
|
1796
1795
|
readonly email: {
|
|
@@ -2316,9 +2315,9 @@ type DependencyEffect = {
|
|
|
2316
2315
|
isHidden: boolean;
|
|
2317
2316
|
isDisabled: (propType: PropType) => boolean;
|
|
2318
2317
|
};
|
|
2319
|
-
declare function getElementSettingsWithDefaults(propsSchema: PropsSchema, elementSettings?: Props$
|
|
2320
|
-
declare function extractDependencyEffect(bind: string, propsSchema: PropsSchema, settings: Props$
|
|
2318
|
+
declare function getElementSettingsWithDefaults(propsSchema: PropsSchema, elementSettings?: Props$4): Values;
|
|
2319
|
+
declare function extractDependencyEffect(bind: string, propsSchema: PropsSchema, settings: Props$4): DependencyEffect;
|
|
2321
2320
|
declare function extractOrderedDependencies(dependenciesPerTargetMapping: Record<string, string[]>): string[];
|
|
2322
2321
|
declare function getUpdatedValues(values: Values, dependencies: string[], propsSchema: PropsSchema, elementValues: Values, elementId: string): Values;
|
|
2323
2322
|
|
|
2324
|
-
export { Control as BaseControl, ControlLabel, type ControlType, ControlTypeContainer, CustomCssIndicator, type DependencyEffect, type DynamicTag, type DynamicTags, type DynamicTagsManager, EditingPanelTabs, type Defaults as ElementPanelDefaults, 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, injectIntoGridFields, injectIntoPanelHeaderTop, injectIntoStyleTab, isDynamicPropValue, registerEditingPanelReplacement, registerElementPanelDefaults, registerFieldIndicator, registerStyleProviderToColors, setLicenseConfig, useClassesProp, useCustomCss, useElement, usePanelActions, usePanelStatus, useStateByElement, useStyle, useStylesRerender };
|
|
2323
|
+
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 };
|