@elementor/editor-editing-panel 3.33.0-99 → 3.35.0-325

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.
Files changed (69) hide show
  1. package/dist/index.d.mts +430 -90
  2. package/dist/index.d.ts +430 -90
  3. package/dist/index.js +3193 -2294
  4. package/dist/index.js.map +1 -1
  5. package/dist/index.mjs +3747 -2842
  6. package/dist/index.mjs.map +1 -1
  7. package/package.json +22 -21
  8. package/src/apply-unapply-actions.ts +30 -0
  9. package/src/components/collapsible-content.tsx +1 -0
  10. package/src/components/css-classes/css-class-item.tsx +14 -4
  11. package/src/components/css-classes/css-class-menu.tsx +85 -11
  12. package/src/components/css-classes/css-class-selector.tsx +25 -1
  13. package/src/components/css-classes/use-apply-and-unapply-class.ts +4 -13
  14. package/src/components/custom-css-indicator.tsx +68 -1
  15. package/src/components/editing-panel-tabs.tsx +13 -2
  16. package/src/components/editing-panel.tsx +4 -0
  17. package/src/components/interactions-tab.tsx +15 -0
  18. package/src/components/section-content.tsx +3 -2
  19. package/src/components/section.tsx +2 -1
  20. package/src/components/settings-control.tsx +79 -0
  21. package/src/components/settings-tab.tsx +16 -46
  22. package/src/components/style-sections/border-section/border-section.tsx +6 -4
  23. package/src/components/style-sections/effects-section/blend-mode-field.tsx +44 -0
  24. package/src/components/style-sections/effects-section/effects-section.tsx +4 -1
  25. package/src/components/style-sections/typography-section/font-family-field.tsx +5 -1
  26. package/src/components/style-sections/typography-section/font-size-field.tsx +1 -1
  27. package/src/components/style-sections/typography-section/letter-spacing-field.tsx +1 -1
  28. package/src/components/style-sections/typography-section/text-color-field.tsx +1 -1
  29. package/src/components/style-sections/typography-section/word-spacing-field.tsx +1 -1
  30. package/src/components/style-tab-section.tsx +2 -2
  31. package/src/components/style-tab.tsx +12 -17
  32. package/src/components/styles-field-layout.tsx +8 -1
  33. package/src/contexts/interaction-context.tsx +0 -0
  34. package/src/controls-registry/conditional-field.tsx +1 -1
  35. package/src/controls-registry/control-type-container.tsx +17 -5
  36. package/src/controls-registry/controls-registry.tsx +18 -5
  37. package/src/controls-registry/element-controls/get-element-by-type.ts +21 -0
  38. package/src/controls-registry/element-controls/registry.ts +16 -0
  39. package/src/controls-registry/element-controls/tabs-control/tabs-control.tsx +229 -0
  40. package/src/controls-registry/element-controls/tabs-control/use-actions.ts +219 -0
  41. package/src/controls-registry/settings-field.tsx +3 -3
  42. package/src/controls-registry/styles-field.tsx +2 -9
  43. package/src/dynamics/components/dynamic-conditional-control.tsx +62 -0
  44. package/src/dynamics/components/dynamic-selection-control.tsx +81 -25
  45. package/src/dynamics/components/dynamic-selection.tsx +3 -3
  46. package/src/dynamics/dynamic-control.tsx +10 -1
  47. package/src/dynamics/hooks/use-prop-dynamic-tags.ts +24 -6
  48. package/src/field-indicators-registry.ts +37 -0
  49. package/src/hooks/use-computed-style.ts +1 -4
  50. package/src/index.ts +18 -3
  51. package/src/init.ts +7 -0
  52. package/src/reset-style-props.tsx +21 -4
  53. package/src/styles-inheritance/components/infotip/value-component.tsx +2 -0
  54. package/src/styles-inheritance/components/styles-inheritance-indicator.tsx +1 -13
  55. package/src/styles-inheritance/components/styles-inheritance-infotip.tsx +5 -1
  56. package/src/styles-inheritance/hooks/use-normalized-inheritance-chain-items.tsx +18 -2
  57. package/src/styles-inheritance/init-styles-inheritance-transformers.ts +25 -4
  58. package/src/styles-inheritance/init.ts +9 -0
  59. package/src/styles-inheritance/transformers/{background-overlay-transformer.tsx → array-transformer.tsx} +2 -2
  60. package/src/styles-inheritance/transformers/background-color-overlay-transformer.tsx +0 -6
  61. package/src/styles-inheritance/transformers/box-shadow-transformer.tsx +32 -0
  62. package/src/styles-inheritance/transformers/color-transformer.tsx +32 -0
  63. package/src/styles-inheritance/transformers/repeater-to-items-transformer.tsx +27 -0
  64. package/src/utils/is-equal.ts +53 -0
  65. package/src/utils/prop-dependency-utils.ts +107 -19
  66. package/src/utils/tracking/subscribe.ts +7 -0
  67. package/src/components/custom-css-field.tsx +0 -20
  68. package/src/components/custom-css.tsx +0 -36
  69. package/src/components/style-sections/border-section/border-field.tsx +0 -54
package/dist/index.d.mts CHANGED
@@ -1,18 +1,23 @@
1
1
  import * as _elementor_editor_controls from '@elementor/editor-controls';
2
- import { FontCategory, ControlComponent } from '@elementor/editor-controls';
2
+ import { FontCategory, ControlComponent, AdornmentComponent } from '@elementor/editor-controls';
3
3
  export { useBoundProp } from '@elementor/editor-controls';
4
4
  import * as _elementor_locations from '@elementor/locations';
5
- import { StyleDefinition } from '@elementor/editor-styles';
5
+ import { StyleDefinition, StyleDefinitionVariant, StyleDefinitionState, StyleDefinitionID } from '@elementor/editor-styles';
6
6
  import * as react from 'react';
7
- import { FC, PropsWithChildren, ElementType, ComponentType } from 'react';
7
+ import { FC, PropsWithChildren, Dispatch, ElementType as ElementType$1, ComponentType } from 'react';
8
8
  import { PopoverBody as PopoverBody$1 } from '@elementor/editor-ui';
9
+ import { Control, ElementControl, Element, ElementType, ControlLayout } from '@elementor/editor-elements';
10
+ import * as _emotion_styled from '@emotion/styled';
11
+ import * as _mui_system from '@mui/system';
12
+ import { Theme, ChipProps } from '@elementor/ui';
13
+ import { StylesProvider } from '@elementor/editor-styles-repository';
9
14
  import * as _elementor_editor_props from '@elementor/editor-props';
10
- import { PropTypeUtil } from '@elementor/editor-props';
15
+ import { PropTypeUtil, PropsSchema, ObjectPropType } from '@elementor/editor-props';
11
16
  import * as _elementor_menus from '@elementor/menus';
12
- import { ChipProps, Theme } from '@elementor/ui';
13
- import * as _mui_system from '@mui/system';
17
+ import * as _mui_material from '@mui/material';
14
18
  import * as zod from 'zod';
15
- import { ControlLayout } from '@elementor/editor-elements';
19
+ import * as _elementor_utils from '@elementor/utils';
20
+ import * as _elementor_editor_canvas from '@elementor/editor-canvas';
16
21
 
17
22
  type ValidationResult = {
18
23
  isValid: true;
@@ -31,45 +36,94 @@ declare const injectIntoCssClassConvert: (args: _elementor_locations.InjectArgs<
31
36
 
32
37
  declare const injectIntoClassSelectorActions: (args: _elementor_locations.InjectArgs<object>) => void;
33
38
 
34
- type Props = react.ComponentProps<typeof PopoverBody$1>;
35
- declare const PopoverBody: (props: Props) => react.JSX.Element;
39
+ declare const CustomCssIndicator: () => react.JSX.Element | null;
40
+
41
+ declare const injectIntoPanelHeaderTop: (args: _elementor_locations.InjectArgs<object>) => void;
42
+
43
+ type Props$2 = react.ComponentProps<typeof PopoverBody$1>;
44
+ declare const PopoverBody: (props: Props$2) => react.JSX.Element;
36
45
 
37
46
  type SectionContentProps = PropsWithChildren<{
38
47
  gap?: number;
39
48
  sx?: {
40
49
  pt?: number;
41
50
  };
51
+ 'aria-label'?: string;
42
52
  }>;
43
53
  declare const SectionContent: FC<SectionContentProps>;
44
54
 
45
- declare const CustomCss: () => react.JSX.Element;
55
+ declare const SettingsControl: ({ control: { value, type } }: {
56
+ control: Control | ElementControl;
57
+ }) => react.JSX.Element | null;
58
+
59
+ declare const StyleIndicator: _emotion_styled.StyledComponent<_mui_system.MUIStyledCommonProps<Theme> & ({
60
+ isOverridden?: boolean;
61
+ getColor?: never;
62
+ } | {
63
+ isOverridden?: boolean;
64
+ getColor?: ((theme: Theme) => string) | null;
65
+ }), react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
46
66
 
47
67
  declare const useFontFamilies: () => FontCategory[];
48
68
 
49
- declare const useCustomCss: () => {
50
- customCss: {
51
- raw: string;
52
- } | null;
53
- setCustomCss: (raw: string, { history: { propDisplayName } }: {
54
- history: {
55
- propDisplayName: string;
56
- };
57
- }) => void;
69
+ declare const injectIntoStyleTab: (args: _elementor_locations.InjectArgs<object>) => void;
70
+
71
+ type SectionType = {
72
+ component: () => react.JSX.Element;
73
+ name: string;
74
+ title: string;
75
+ };
76
+ type Props$1 = {
77
+ section: SectionType;
78
+ fields?: string[];
79
+ unmountOnExit?: boolean;
58
80
  };
81
+ declare const StyleTabSection: ({ section, fields, unmountOnExit }: Props$1) => react.JSX.Element;
82
+
83
+ declare function useClassesProp(): string;
84
+
85
+ type ContextValue$1 = {
86
+ element: Element;
87
+ elementType: ElementType;
88
+ };
89
+ type Props = PropsWithChildren<ContextValue$1>;
90
+ declare function ElementProvider({ children, element, elementType }: Props): react.JSX.Element;
91
+ declare function useElement(): ContextValue$1;
59
92
 
60
93
  declare const useSectionWidth: () => number;
61
94
 
95
+ type ContextValue = {
96
+ setId: Dispatch<StyleDefinition['id'] | null>;
97
+ meta: StyleDefinitionVariant['meta'];
98
+ setMetaState: Dispatch<StyleDefinitionState>;
99
+ canEdit?: boolean;
100
+ } & (ContextValueWithProvider | ContextValueWithoutProvider);
101
+ type ContextValueWithProvider = {
102
+ id: StyleDefinitionID;
103
+ provider: StylesProvider;
104
+ };
105
+ type ContextValueWithoutProvider = {
106
+ id: null;
107
+ provider: null;
108
+ };
109
+ declare function useStyle(): ContextValue;
110
+
62
111
  declare const registerControlReplacement: (replacement: {
63
- component: react.ComponentType;
112
+ component: react.ComponentClass<object & {
113
+ OriginalControl: react.ComponentType;
114
+ }, any> | react.FunctionComponent<object & {
115
+ OriginalControl: react.ComponentType;
116
+ }>;
64
117
  condition: ({ value }: {
65
118
  value: _elementor_editor_props.PropValue;
119
+ placeholder?: _elementor_editor_props.PropValue;
66
120
  }) => boolean;
67
121
  }) => void;
68
122
 
69
123
  type ActionProps = {
70
124
  title: string;
71
125
  visible?: boolean;
72
- icon: ElementType;
126
+ icon: ElementType$1;
73
127
  onClick: () => void;
74
128
  };
75
129
  declare function Action({ title, visible, icon: Icon, onClick }: ActionProps): react.JSX.Element | null;
@@ -77,7 +131,7 @@ declare function Action({ title, visible, icon: Icon, onClick }: ActionProps): r
77
131
  type PopoverActionProps = {
78
132
  title: string;
79
133
  visible?: boolean;
80
- icon: ElementType;
134
+ icon: ElementType$1;
81
135
  content: ComponentType<{
82
136
  close: () => void;
83
137
  }>;
@@ -89,52 +143,6 @@ declare const controlActionsMenu: _elementor_menus.Menu<{
89
143
  PopoverAction: typeof PopoverAction;
90
144
  }, "default">;
91
145
 
92
- declare function init(): void;
93
-
94
- declare const usePanelActions: () => {
95
- open: () => Promise<void>;
96
- close: () => Promise<void>;
97
- };
98
- declare const usePanelStatus: () => {
99
- isOpen: boolean;
100
- isBlocked: boolean;
101
- };
102
-
103
- type Colors = {
104
- name: ChipProps['color'];
105
- getThemeColor: ((theme: Theme) => string) | null;
106
- };
107
- declare const registerStyleProviderToColors: (provider: string, colors: Colors) => void;
108
-
109
- declare const stylesInheritanceTransformersRegistry: {
110
- register(type: _elementor_editor_props.PropTypeKey, transformer: ((value: any, options: {
111
- key: string;
112
- signal?: AbortSignal;
113
- }) => unknown) & {
114
- __transformer: true;
115
- }): any;
116
- registerFallback(transformer: ((value: any, options: {
117
- key: string;
118
- signal?: AbortSignal;
119
- }) => unknown) & {
120
- __transformer: true;
121
- }): any;
122
- get(type: _elementor_editor_props.PropTypeKey): (((value: any, options: {
123
- key: string;
124
- signal?: AbortSignal;
125
- }) => unknown) & {
126
- __transformer: true;
127
- }) | null;
128
- all(): {
129
- [x: string]: ((value: any, options: {
130
- key: string;
131
- signal?: AbortSignal;
132
- }) => unknown) & {
133
- __transformer: true;
134
- };
135
- };
136
- };
137
-
138
146
  type ControlRegistry = Record<string, {
139
147
  component: ControlComponent;
140
148
  layout: ControlLayout;
@@ -319,13 +327,14 @@ declare const controlTypes: {
319
327
  };
320
328
  };
321
329
  readonly text: {
322
- readonly component: ControlComponent<({ placeholder, error, inputValue, inputDisabled, helperText, sx, }: {
330
+ readonly component: ControlComponent<({ placeholder, error, inputValue, inputDisabled, helperText, sx, ariaLabel, }: {
323
331
  placeholder?: string;
324
332
  error?: boolean;
325
333
  inputValue?: string;
326
334
  inputDisabled?: boolean;
327
335
  helperText?: string;
328
336
  sx?: _mui_system.SxProps;
337
+ ariaLabel?: string;
329
338
  }) => react.JSX.Element>;
330
339
  readonly layout: "full";
331
340
  readonly propTypeUtil: {
@@ -353,8 +362,9 @@ declare const controlTypes: {
353
362
  };
354
363
  };
355
364
  readonly textarea: {
356
- readonly component: ControlComponent<({ placeholder }: {
365
+ readonly component: ControlComponent<({ placeholder, ariaLabel }: {
357
366
  placeholder?: string;
367
+ ariaLabel?: string;
358
368
  }) => react.JSX.Element>;
359
369
  readonly layout: "full";
360
370
  readonly propTypeUtil: {
@@ -382,7 +392,7 @@ declare const controlTypes: {
382
392
  };
383
393
  };
384
394
  readonly size: {
385
- readonly component: ControlComponent<({ variant, defaultUnit, units, placeholder, startIcon, anchorRef, extendedOptions, disableCustom, min, enablePropTypeUnits, id, }: Omit<({
395
+ readonly component: ControlComponent<({ variant, defaultUnit, units, placeholder, startIcon, anchorRef, extendedOptions, disableCustom, min, enablePropTypeUnits, id, ariaLabel, isRepeaterControl, }: Omit<({
386
396
  placeholder?: string;
387
397
  startIcon?: react.ReactNode;
388
398
  extendedOptions?: _elementor_editor_controls.ExtendedOption[];
@@ -391,6 +401,8 @@ declare const controlTypes: {
391
401
  min?: number;
392
402
  enablePropTypeUnits?: boolean;
393
403
  id?: string;
404
+ ariaLabel?: string;
405
+ isRepeaterControl?: boolean;
394
406
  } & {
395
407
  units?: ("em" | "px" | "%" | "rem" | "vw" | "vh")[] | undefined;
396
408
  defaultUnit?: "em" | "px" | "%" | "rem" | "vw" | "vh" | undefined;
@@ -405,6 +417,8 @@ declare const controlTypes: {
405
417
  min?: number;
406
418
  enablePropTypeUnits?: boolean;
407
419
  id?: string;
420
+ ariaLabel?: string;
421
+ isRepeaterControl?: boolean;
408
422
  } & {
409
423
  units?: ("deg" | "rad" | "grad" | "turn")[] | undefined;
410
424
  defaultUnit?: "deg" | "rad" | "grad" | "turn" | undefined;
@@ -419,6 +433,8 @@ declare const controlTypes: {
419
433
  min?: number;
420
434
  enablePropTypeUnits?: boolean;
421
435
  id?: string;
436
+ ariaLabel?: string;
437
+ isRepeaterControl?: boolean;
422
438
  } & {
423
439
  units?: ("s" | "ms")[] | undefined;
424
440
  defaultUnit?: "s" | "ms" | undefined;
@@ -648,13 +664,17 @@ declare const controlTypes: {
648
664
  };
649
665
  };
650
666
  readonly select: {
651
- readonly component: ControlComponent<({ options, onChange }: {
667
+ readonly component: ControlComponent<({ collectionId, options, ...props }: {
652
668
  options: {
653
669
  label: string;
654
670
  value: _elementor_editor_props.StringPropValue["value"];
655
671
  disabled?: boolean;
656
672
  }[];
657
673
  onChange?: (newValue: string | null, previousValue: string | null | undefined) => void;
674
+ MenuProps?: _mui_material.SelectProps["MenuProps"];
675
+ ariaLabel?: string;
676
+ } & {
677
+ collectionId?: "off-canvas";
658
678
  }) => react.JSX.Element>;
659
679
  readonly layout: "two-columns";
660
680
  readonly propTypeUtil: {
@@ -684,13 +704,14 @@ declare const controlTypes: {
684
704
  readonly link: {
685
705
  readonly component: ControlComponent<(props: {
686
706
  queryOptions: {
687
- requestParams: Record<string, unknown>;
688
- endpoint: string;
707
+ params: Record<string, unknown>;
708
+ url: string;
689
709
  };
690
710
  allowCustomValues?: boolean;
691
711
  minInputLength?: number;
692
712
  placeholder?: string;
693
713
  label?: string;
714
+ ariaLabel?: string;
694
715
  } & {
695
716
  context: {
696
717
  elementId: string;
@@ -700,44 +721,35 @@ declare const controlTypes: {
700
721
  readonly propTypeUtil: {
701
722
  extract: (prop: unknown) => {
702
723
  destination?: any;
703
- label?: any;
704
724
  isTargetBlank?: any;
705
725
  } | null;
706
726
  isValid: (prop: unknown) => prop is _elementor_editor_props.TransformablePropValue<"link", {
707
727
  destination?: any;
708
- label?: any;
709
728
  isTargetBlank?: any;
710
729
  }>;
711
730
  create: {
712
731
  (value: {
713
732
  destination?: any;
714
- label?: any;
715
733
  isTargetBlank?: any;
716
734
  }): _elementor_editor_props.TransformablePropValue<"link", {
717
735
  destination?: any;
718
- label?: any;
719
736
  isTargetBlank?: any;
720
737
  }>;
721
738
  (value: {
722
739
  destination?: any;
723
- label?: any;
724
740
  isTargetBlank?: any;
725
741
  }, createOptions?: _elementor_editor_props.CreateOptions): _elementor_editor_props.TransformablePropValue<"link", {
726
742
  destination?: any;
727
- label?: any;
728
743
  isTargetBlank?: any;
729
744
  }>;
730
745
  (value: (prev?: {
731
746
  destination?: any;
732
- label?: any;
733
747
  isTargetBlank?: any;
734
748
  } | undefined) => {
735
749
  destination?: any;
736
- label?: any;
737
750
  isTargetBlank?: any;
738
751
  }, createOptions: _elementor_editor_props.CreateOptions): _elementor_editor_props.TransformablePropValue<"link", {
739
752
  destination?: any;
740
- label?: any;
741
753
  isTargetBlank?: any;
742
754
  }>;
743
755
  };
@@ -745,11 +757,9 @@ declare const controlTypes: {
745
757
  $$type: zod.ZodLiteral<"link">;
746
758
  value: zod.ZodType<{
747
759
  destination?: any;
748
- label?: any;
749
760
  isTargetBlank?: any;
750
761
  }, zod.ZodTypeDef, {
751
762
  destination?: any;
752
- label?: any;
753
763
  isTargetBlank?: any;
754
764
  }>;
755
765
  disabled: zod.ZodOptional<zod.ZodBoolean>;
@@ -757,7 +767,6 @@ declare const controlTypes: {
757
767
  $$type: "link";
758
768
  value: {
759
769
  destination?: any;
760
- label?: any;
761
770
  isTargetBlank?: any;
762
771
  };
763
772
  disabled?: boolean | undefined;
@@ -765,7 +774,6 @@ declare const controlTypes: {
765
774
  $$type: "link";
766
775
  value: {
767
776
  destination?: any;
768
- label?: any;
769
777
  isTargetBlank?: any;
770
778
  };
771
779
  disabled?: boolean | undefined;
@@ -773,9 +781,86 @@ declare const controlTypes: {
773
781
  key: "link";
774
782
  };
775
783
  };
784
+ readonly query: {
785
+ readonly component: ControlComponent<(props: {
786
+ queryOptions: {
787
+ params: Record<string, unknown>;
788
+ url: string;
789
+ };
790
+ allowCustomValues?: boolean;
791
+ minInputLength?: number;
792
+ placeholder?: string;
793
+ onSetValue?: (value: any | null) => void;
794
+ ariaLabel?: string;
795
+ }) => react.JSX.Element>;
796
+ readonly layout: "full";
797
+ readonly propTypeUtil: {
798
+ extract: (prop: unknown) => {
799
+ id?: any;
800
+ label?: any;
801
+ } | null;
802
+ isValid: (prop: unknown) => prop is _elementor_editor_props.TransformablePropValue<"query", {
803
+ id?: any;
804
+ label?: any;
805
+ }>;
806
+ create: {
807
+ (value: {
808
+ id?: any;
809
+ label?: any;
810
+ }): _elementor_editor_props.TransformablePropValue<"query", {
811
+ id?: any;
812
+ label?: any;
813
+ }>;
814
+ (value: {
815
+ id?: any;
816
+ label?: any;
817
+ }, createOptions?: _elementor_editor_props.CreateOptions): _elementor_editor_props.TransformablePropValue<"query", {
818
+ id?: any;
819
+ label?: any;
820
+ }>;
821
+ (value: (prev?: {
822
+ id?: any;
823
+ label?: any;
824
+ } | undefined) => {
825
+ id?: any;
826
+ label?: any;
827
+ }, createOptions: _elementor_editor_props.CreateOptions): _elementor_editor_props.TransformablePropValue<"query", {
828
+ id?: any;
829
+ label?: any;
830
+ }>;
831
+ };
832
+ schema: zod.ZodObject<{
833
+ $$type: zod.ZodLiteral<"query">;
834
+ value: zod.ZodType<{
835
+ id?: any;
836
+ label?: any;
837
+ }, zod.ZodTypeDef, {
838
+ id?: any;
839
+ label?: any;
840
+ }>;
841
+ disabled: zod.ZodOptional<zod.ZodBoolean>;
842
+ }, "strict", zod.ZodTypeAny, {
843
+ $$type: "query";
844
+ value: {
845
+ id?: any;
846
+ label?: any;
847
+ };
848
+ disabled?: boolean | undefined;
849
+ }, {
850
+ $$type: "query";
851
+ value: {
852
+ id?: any;
853
+ label?: any;
854
+ };
855
+ disabled?: boolean | undefined;
856
+ }>;
857
+ key: "query";
858
+ };
859
+ };
776
860
  readonly url: {
777
- readonly component: ControlComponent<({ placeholder }: {
861
+ readonly component: ControlComponent<({ placeholder, ariaLabel }: {
778
862
  placeholder?: string;
863
+ ariaLabel?: string;
779
864
  }) => react.JSX.Element>;
780
865
  readonly layout: "full";
781
866
  readonly propTypeUtil: {
@@ -872,6 +957,13 @@ declare const controlTypes: {
872
957
  props?: Record<string, unknown>;
873
958
  propTypeUtil: PropTypeUtil<string, any>;
874
959
  label?: string;
960
+ isItemDisabled?: (item: {
961
+ disabled?: boolean;
962
+ } & {
963
+ $$type: string;
964
+ value: _elementor_editor_props.PropValue;
965
+ disabled?: boolean;
966
+ }) => boolean;
875
967
  };
876
968
  showDuplicate?: boolean;
877
969
  showToggle?: boolean;
@@ -897,6 +989,7 @@ declare const controlTypes: {
897
989
  regexKey?: string;
898
990
  regexValue?: string;
899
991
  validationErrorMessage?: string;
992
+ escapeHtml?: boolean;
900
993
  getHelperText?: (key: string, value: string) => {
901
994
  keyHelper?: string;
902
995
  valueHelper?: string;
@@ -966,11 +1059,168 @@ declare const controlTypes: {
966
1059
  key: "key-value";
967
1060
  };
968
1061
  };
1062
+ readonly 'html-tag': {
1063
+ readonly component: ControlComponent<({ options, onChange, fallbackLabels }: {
1064
+ options: {
1065
+ label: string;
1066
+ value: _elementor_editor_props.StringPropValue["value"];
1067
+ disabled?: boolean;
1068
+ }[];
1069
+ onChange?: (newValue: string | null, previousValue: string | null | undefined) => void;
1070
+ fallbackLabels?: Record<string, string>;
1071
+ }) => react.JSX.Element>;
1072
+ readonly layout: "two-columns";
1073
+ readonly propTypeUtil: {
1074
+ extract: (prop: unknown) => string | null;
1075
+ isValid: (prop: unknown) => prop is _elementor_editor_props.TransformablePropValue<"string", string | null>;
1076
+ create: {
1077
+ (value: string | null): _elementor_editor_props.TransformablePropValue<"string", string | null>;
1078
+ (value: string | null, createOptions?: _elementor_editor_props.CreateOptions): _elementor_editor_props.TransformablePropValue<"string", string | null>;
1079
+ (value: (prev?: string | null | undefined) => string | null, createOptions: _elementor_editor_props.CreateOptions): _elementor_editor_props.TransformablePropValue<"string", string | null>;
1080
+ };
1081
+ schema: zod.ZodObject<{
1082
+ $$type: zod.ZodLiteral<"string">;
1083
+ value: zod.ZodType<string | null, zod.ZodTypeDef, string | null>;
1084
+ disabled: zod.ZodOptional<zod.ZodBoolean>;
1085
+ }, "strict", zod.ZodTypeAny, {
1086
+ $$type: "string";
1087
+ value: string | null;
1088
+ disabled?: boolean | undefined;
1089
+ }, {
1090
+ $$type: "string";
1091
+ value: string | null;
1092
+ disabled?: boolean | undefined;
1093
+ }>;
1094
+ key: "string";
1095
+ };
1096
+ };
1097
+ readonly toggle: {
1098
+ readonly component: ControlComponent<({ options, fullWidth, size, exclusive, maxItems, convertOptions, }: _elementor_editor_controls.ToggleControlProps<_elementor_editor_props.StringPropValue["value"]>) => react.JSX.Element>;
1099
+ readonly layout: "full";
1100
+ readonly propTypeUtil: {
1101
+ extract: (prop: unknown) => string | null;
1102
+ isValid: (prop: unknown) => prop is _elementor_editor_props.TransformablePropValue<"string", string | null>;
1103
+ create: {
1104
+ (value: string | null): _elementor_editor_props.TransformablePropValue<"string", string | null>;
1105
+ (value: string | null, createOptions?: _elementor_editor_props.CreateOptions): _elementor_editor_props.TransformablePropValue<"string", string | null>;
1106
+ (value: (prev?: string | null | undefined) => string | null, createOptions: _elementor_editor_props.CreateOptions): _elementor_editor_props.TransformablePropValue<"string", string | null>;
1107
+ };
1108
+ schema: zod.ZodObject<{
1109
+ $$type: zod.ZodLiteral<"string">;
1110
+ value: zod.ZodType<string | null, zod.ZodTypeDef, string | null>;
1111
+ disabled: zod.ZodOptional<zod.ZodBoolean>;
1112
+ }, "strict", zod.ZodTypeAny, {
1113
+ $$type: "string";
1114
+ value: string | null;
1115
+ disabled?: boolean | undefined;
1116
+ }, {
1117
+ $$type: "string";
1118
+ value: string | null;
1119
+ disabled?: boolean | undefined;
1120
+ }>;
1121
+ key: "string";
1122
+ };
1123
+ };
1124
+ readonly 'date-time': {
1125
+ readonly component: ControlComponent<({ inputDisabled }: {
1126
+ inputDisabled?: boolean;
1127
+ }) => react.JSX.Element>;
1128
+ readonly layout: "full";
1129
+ readonly propTypeUtil: {
1130
+ extract: (prop: unknown) => {
1131
+ date?: any;
1132
+ time?: any;
1133
+ } | null;
1134
+ isValid: (prop: unknown) => prop is _elementor_editor_props.TransformablePropValue<"date-time", {
1135
+ date?: any;
1136
+ time?: any;
1137
+ }>;
1138
+ create: {
1139
+ (value: {
1140
+ date?: any;
1141
+ time?: any;
1142
+ }): _elementor_editor_props.TransformablePropValue<"date-time", {
1143
+ date?: any;
1144
+ time?: any;
1145
+ }>;
1146
+ (value: {
1147
+ date?: any;
1148
+ time?: any;
1149
+ }, createOptions?: _elementor_editor_props.CreateOptions): _elementor_editor_props.TransformablePropValue<"date-time", {
1150
+ date?: any;
1151
+ time?: any;
1152
+ }>;
1153
+ (value: (prev?: {
1154
+ date?: any;
1155
+ time?: any;
1156
+ } | undefined) => {
1157
+ date?: any;
1158
+ time?: any;
1159
+ }, createOptions: _elementor_editor_props.CreateOptions): _elementor_editor_props.TransformablePropValue<"date-time", {
1160
+ date?: any;
1161
+ time?: any;
1162
+ }>;
1163
+ };
1164
+ schema: zod.ZodObject<{
1165
+ $$type: zod.ZodLiteral<"date-time">;
1166
+ value: zod.ZodType<{
1167
+ date?: any;
1168
+ time?: any;
1169
+ }, zod.ZodTypeDef, {
1170
+ date?: any;
1171
+ time?: any;
1172
+ }>;
1173
+ disabled: zod.ZodOptional<zod.ZodBoolean>;
1174
+ }, "strict", zod.ZodTypeAny, {
1175
+ $$type: "date-time";
1176
+ value: {
1177
+ date?: any;
1178
+ time?: any;
1179
+ };
1180
+ disabled?: boolean | undefined;
1181
+ }, {
1182
+ $$type: "date-time";
1183
+ value: {
1184
+ date?: any;
1185
+ time?: any;
1186
+ };
1187
+ disabled?: boolean | undefined;
1188
+ }>;
1189
+ key: "date-time";
1190
+ };
1191
+ };
1192
+ readonly 'inline-editing': {
1193
+ readonly component: ControlComponent<() => react.JSX.Element>;
1194
+ readonly layout: "full";
1195
+ readonly propTypeUtil: {
1196
+ extract: (prop: unknown) => string | null;
1197
+ isValid: (prop: unknown) => prop is _elementor_editor_props.TransformablePropValue<"html", string | null>;
1198
+ create: {
1199
+ (value: string | null): _elementor_editor_props.TransformablePropValue<"html", string | null>;
1200
+ (value: string | null, createOptions?: _elementor_editor_props.CreateOptions): _elementor_editor_props.TransformablePropValue<"html", string | null>;
1201
+ (value: (prev?: string | null | undefined) => string | null, createOptions: _elementor_editor_props.CreateOptions): _elementor_editor_props.TransformablePropValue<"html", string | null>;
1202
+ };
1203
+ schema: zod.ZodObject<{
1204
+ $$type: zod.ZodLiteral<"html">;
1205
+ value: zod.ZodType<string | null, zod.ZodTypeDef, string | null>;
1206
+ disabled: zod.ZodOptional<zod.ZodBoolean>;
1207
+ }, "strict", zod.ZodTypeAny, {
1208
+ $$type: "html";
1209
+ value: string | null;
1210
+ disabled?: boolean | undefined;
1211
+ }, {
1212
+ $$type: "html";
1213
+ value: string | null;
1214
+ disabled?: boolean | undefined;
1215
+ }>;
1216
+ key: "html";
1217
+ };
1218
+ };
969
1219
  };
970
1220
  type ControlType = keyof typeof controlTypes;
971
1221
  declare class ControlsRegistry {
972
1222
  private readonly controlsRegistry;
973
- constructor(controlsRegistry?: ControlRegistry);
1223
+ constructor(controlsRegistry: ControlRegistry);
974
1224
  get(type: ControlType): ControlComponent;
975
1225
  getLayout(type: ControlType): ControlLayout;
976
1226
  getPropTypeUtil(type: ControlType): PropTypeUtil<string, any> | undefined;
@@ -980,4 +1230,94 @@ declare class ControlsRegistry {
980
1230
  }
981
1231
  declare const controlsRegistry: ControlsRegistry;
982
1232
 
983
- export { CustomCss, type PopoverActionProps, PopoverBody, SectionContent, type ValidationEvent, type ValidationResult, controlActionsMenu, controlsRegistry, init, injectIntoClassSelectorActions, injectIntoCssClassConvert, registerControlReplacement, registerStyleProviderToColors, stylesInheritanceTransformersRegistry, useCustomCss, useFontFamilies, usePanelActions, usePanelStatus, useSectionWidth };
1233
+ declare const StylesProviderCannotUpdatePropsError: {
1234
+ new ({ cause, context }?: {
1235
+ cause?: _elementor_utils.ElementorErrorOptions["cause"];
1236
+ context?: {
1237
+ providerKey: string;
1238
+ } | undefined;
1239
+ } | undefined): {
1240
+ readonly context: _elementor_utils.ElementorErrorOptions["context"];
1241
+ readonly code: _elementor_utils.ElementorErrorOptions["code"];
1242
+ name: string;
1243
+ message: string;
1244
+ stack?: string;
1245
+ cause?: unknown;
1246
+ };
1247
+ isError(error: unknown): error is Error;
1248
+ };
1249
+
1250
+ declare const createTopLevelObjectType: ({ schema }: {
1251
+ schema: PropsSchema;
1252
+ }) => ObjectPropType;
1253
+
1254
+ declare const useCustomCss: () => {
1255
+ customCss: {
1256
+ raw: string;
1257
+ } | null;
1258
+ setCustomCss: (raw: string, { history: { propDisplayName } }: {
1259
+ history: {
1260
+ propDisplayName: string;
1261
+ };
1262
+ }) => void;
1263
+ };
1264
+
1265
+ declare const HISTORY_DEBOUNCE_WAIT = 800;
1266
+ type TitleOptions = {
1267
+ provider: StylesProvider | null;
1268
+ styleId: string | null;
1269
+ elementId: string;
1270
+ };
1271
+ type SubtitleOptions = TitleOptions & {
1272
+ propDisplayName: string;
1273
+ };
1274
+ declare const getTitle: ({ provider, styleId, elementId }: TitleOptions) => string;
1275
+ declare const getSubtitle: ({ provider, styleId, propDisplayName, elementId }: SubtitleOptions) => string;
1276
+
1277
+ declare const useStylesRerender: () => void;
1278
+
1279
+ declare function init(): void;
1280
+
1281
+ declare const usePanelActions: () => {
1282
+ open: () => Promise<void>;
1283
+ close: () => Promise<void>;
1284
+ };
1285
+ declare const usePanelStatus: () => {
1286
+ isOpen: boolean;
1287
+ isBlocked: boolean;
1288
+ };
1289
+
1290
+ type Colors = {
1291
+ name: ChipProps['color'];
1292
+ getThemeColor: ((theme: Theme) => string) | null;
1293
+ };
1294
+ declare const registerStyleProviderToColors: (provider: string, colors: Colors) => void;
1295
+
1296
+ declare const stylesInheritanceTransformersRegistry: {
1297
+ register(type: _elementor_editor_props.PropTypeKey, transformer: _elementor_editor_canvas.AnyTransformer): any;
1298
+ registerFallback(transformer: _elementor_editor_canvas.AnyTransformer): any;
1299
+ get(type: _elementor_editor_props.PropTypeKey): _elementor_editor_canvas.AnyTransformer | null;
1300
+ all(): {
1301
+ [x: string]: _elementor_editor_canvas.AnyTransformer;
1302
+ };
1303
+ };
1304
+
1305
+ type FieldType = 'settings' | 'styles';
1306
+ type FieldIndicator = {
1307
+ id: string;
1308
+ indicator: AdornmentComponent;
1309
+ priority: number;
1310
+ };
1311
+ declare const FIELD_TYPE: {
1312
+ SETTINGS: "settings";
1313
+ STYLES: "styles";
1314
+ };
1315
+ declare const registerFieldIndicator: ({ fieldType, id, indicator, priority, }: FieldIndicator & {
1316
+ fieldType: FieldType;
1317
+ }) => void;
1318
+
1319
+ declare function doGetAppliedClasses(elementId: string, classesPropType?: string): string[];
1320
+ declare function doApplyClasses(elementId: string, classIds: StyleDefinitionID[], classesPropType?: string): void;
1321
+ declare function doUnapplyClass(elementId: string, classId: StyleDefinitionID, classesPropType?: string): boolean;
1322
+
1323
+ export { CustomCssIndicator, ElementProvider, FIELD_TYPE, HISTORY_DEBOUNCE_WAIT, type PopoverActionProps, PopoverBody, SectionContent, SettingsControl, StyleIndicator, StyleTabSection, StylesProviderCannotUpdatePropsError, type ValidationEvent, type ValidationResult, controlActionsMenu, controlsRegistry, createTopLevelObjectType, doApplyClasses, doGetAppliedClasses, doUnapplyClass, getSubtitle, getTitle, init, injectIntoClassSelectorActions, injectIntoCssClassConvert, injectIntoPanelHeaderTop, injectIntoStyleTab, registerControlReplacement, registerFieldIndicator, registerStyleProviderToColors, stylesInheritanceTransformersRegistry, useClassesProp, useCustomCss, useElement, useFontFamilies, usePanelActions, usePanelStatus, useSectionWidth, useStyle, useStylesRerender };