@elementor/editor-editing-panel 3.32.0-60 → 3.32.0-62

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
@@ -1,13 +1,18 @@
1
- import { FontCategory } from '@elementor/editor-controls';
1
+ import * as _elementor_editor_controls from '@elementor/editor-controls';
2
+ import { FontCategory, ControlComponent } from '@elementor/editor-controls';
2
3
  export { useBoundProp } from '@elementor/editor-controls';
3
4
  import * as _elementor_locations from '@elementor/locations';
4
5
  import { StyleDefinition } from '@elementor/editor-styles';
5
- import * as React from 'react';
6
+ import * as react from 'react';
6
7
  import { FC, PropsWithChildren, ElementType, ComponentType } from 'react';
7
8
  import { PopoverBody as PopoverBody$1 } from '@elementor/editor-ui';
8
9
  import * as _elementor_editor_props from '@elementor/editor-props';
10
+ import { PropTypeUtil } from '@elementor/editor-props';
9
11
  import * as _elementor_menus from '@elementor/menus';
10
12
  import { ChipProps, Theme } from '@elementor/ui';
13
+ import * as _mui_system from '@mui/system';
14
+ import * as zod from 'zod';
15
+ import { ControlLayout } from '@elementor/editor-elements';
11
16
 
12
17
  type ValidationResult = {
13
18
  isValid: true;
@@ -26,8 +31,8 @@ declare const injectIntoCssClassConvert: (args: _elementor_locations.InjectArgs<
26
31
 
27
32
  declare const injectIntoClassSelectorActions: (args: _elementor_locations.InjectArgs<object>) => void;
28
33
 
29
- type Props = React.ComponentProps<typeof PopoverBody$1>;
30
- declare const PopoverBody: (props: Props) => React.JSX.Element;
34
+ type Props = react.ComponentProps<typeof PopoverBody$1>;
35
+ declare const PopoverBody: (props: Props) => react.JSX.Element;
31
36
 
32
37
  type SectionContentProps = PropsWithChildren<{
33
38
  gap?: number;
@@ -37,7 +42,7 @@ type SectionContentProps = PropsWithChildren<{
37
42
  }>;
38
43
  declare const SectionContent: FC<SectionContentProps>;
39
44
 
40
- declare const CustomCss: () => React.JSX.Element;
45
+ declare const CustomCss: () => react.JSX.Element;
41
46
 
42
47
  declare const useFontFamilies: () => FontCategory[];
43
48
 
@@ -55,7 +60,7 @@ declare const useCustomCss: () => {
55
60
  declare const useSectionWidth: () => number;
56
61
 
57
62
  declare const registerControlReplacement: (replacement: {
58
- component: React.ComponentType;
63
+ component: react.ComponentType;
59
64
  condition: ({ value }: {
60
65
  value: _elementor_editor_props.PropValue;
61
66
  }) => boolean;
@@ -67,7 +72,7 @@ type ActionProps = {
67
72
  icon: ElementType;
68
73
  onClick: () => void;
69
74
  };
70
- declare function Action({ title, visible, icon: Icon, onClick }: ActionProps): React.JSX.Element | null;
75
+ declare function Action({ title, visible, icon: Icon, onClick }: ActionProps): react.JSX.Element | null;
71
76
 
72
77
  type PopoverActionProps = {
73
78
  title: string;
@@ -77,7 +82,7 @@ type PopoverActionProps = {
77
82
  close: () => void;
78
83
  }>;
79
84
  };
80
- declare function PopoverAction({ title, visible, icon: Icon, content: PopoverContent }: PopoverActionProps): React.JSX.Element | null;
85
+ declare function PopoverAction({ title, visible, icon: Icon, content: PopoverContent }: PopoverActionProps): react.JSX.Element | null;
81
86
 
82
87
  declare const controlActionsMenu: _elementor_menus.Menu<{
83
88
  Action: typeof Action;
@@ -130,4 +135,799 @@ declare const stylesInheritanceTransformersRegistry: {
130
135
  };
131
136
  };
132
137
 
133
- export { CustomCss, type PopoverActionProps, PopoverBody, SectionContent, type ValidationEvent, type ValidationResult, controlActionsMenu, init, injectIntoClassSelectorActions, injectIntoCssClassConvert, registerControlReplacement, registerStyleProviderToColors, stylesInheritanceTransformersRegistry, useCustomCss, useFontFamilies, usePanelActions, usePanelStatus, useSectionWidth };
138
+ type ControlRegistry = Record<string, {
139
+ component: ControlComponent;
140
+ layout: ControlLayout;
141
+ propTypeUtil?: PropTypeUtil<string, any>;
142
+ }>;
143
+ declare const controlTypes: {
144
+ readonly image: {
145
+ readonly component: ControlComponent<({ sizes, showMode }: {
146
+ sizes: {
147
+ label: string;
148
+ value: string;
149
+ }[];
150
+ showMode?: "all" | "media" | "sizes";
151
+ }) => react.JSX.Element>;
152
+ readonly layout: "full";
153
+ readonly propTypeUtil: {
154
+ extract: (prop: unknown) => {
155
+ size?: any;
156
+ src?: any;
157
+ } | null;
158
+ isValid: (prop: unknown) => prop is _elementor_editor_props.TransformablePropValue<"image", {
159
+ size?: any;
160
+ src?: any;
161
+ }>;
162
+ create: {
163
+ (value: {
164
+ size?: any;
165
+ src?: any;
166
+ }): _elementor_editor_props.TransformablePropValue<"image", {
167
+ size?: any;
168
+ src?: any;
169
+ }>;
170
+ (value: {
171
+ size?: any;
172
+ src?: any;
173
+ }, createOptions?: _elementor_editor_props.CreateOptions): _elementor_editor_props.TransformablePropValue<"image", {
174
+ size?: any;
175
+ src?: any;
176
+ }>;
177
+ (value: (prev?: {
178
+ size?: any;
179
+ src?: any;
180
+ } | undefined) => {
181
+ size?: any;
182
+ src?: any;
183
+ }, createOptions: _elementor_editor_props.CreateOptions): _elementor_editor_props.TransformablePropValue<"image", {
184
+ size?: any;
185
+ src?: any;
186
+ }>;
187
+ };
188
+ schema: zod.ZodObject<{
189
+ $$type: zod.ZodLiteral<"image">;
190
+ value: zod.ZodType<{
191
+ size?: any;
192
+ src?: any;
193
+ }, zod.ZodTypeDef, {
194
+ size?: any;
195
+ src?: any;
196
+ }>;
197
+ disabled: zod.ZodOptional<zod.ZodBoolean>;
198
+ }, "strict", zod.ZodTypeAny, {
199
+ $$type: "image";
200
+ value: {
201
+ size?: any;
202
+ src?: any;
203
+ };
204
+ disabled?: boolean | undefined;
205
+ }, {
206
+ $$type: "image";
207
+ value: {
208
+ size?: any;
209
+ src?: any;
210
+ };
211
+ disabled?: boolean | undefined;
212
+ }>;
213
+ key: "image";
214
+ };
215
+ };
216
+ readonly 'svg-media': {
217
+ readonly component: ControlComponent<() => react.JSX.Element>;
218
+ readonly layout: "full";
219
+ readonly propTypeUtil: {
220
+ extract: (prop: unknown) => {
221
+ url: null;
222
+ id?: any;
223
+ } | {
224
+ id: null;
225
+ url?: any;
226
+ } | null;
227
+ isValid: (prop: unknown) => prop is _elementor_editor_props.TransformablePropValue<"image-src", {
228
+ url: null;
229
+ id?: any;
230
+ } | {
231
+ id: null;
232
+ url?: any;
233
+ }>;
234
+ create: {
235
+ (value: {
236
+ url: null;
237
+ id?: any;
238
+ } | {
239
+ id: null;
240
+ url?: any;
241
+ }): _elementor_editor_props.TransformablePropValue<"image-src", {
242
+ url: null;
243
+ id?: any;
244
+ } | {
245
+ id: null;
246
+ url?: any;
247
+ }>;
248
+ (value: {
249
+ url: null;
250
+ id?: any;
251
+ } | {
252
+ id: null;
253
+ url?: any;
254
+ }, createOptions?: _elementor_editor_props.CreateOptions): _elementor_editor_props.TransformablePropValue<"image-src", {
255
+ url: null;
256
+ id?: any;
257
+ } | {
258
+ id: null;
259
+ url?: any;
260
+ }>;
261
+ (value: (prev?: {
262
+ url: null;
263
+ id?: any;
264
+ } | {
265
+ id: null;
266
+ url?: any;
267
+ } | undefined) => {
268
+ url: null;
269
+ id?: any;
270
+ } | {
271
+ id: null;
272
+ url?: any;
273
+ }, createOptions: _elementor_editor_props.CreateOptions): _elementor_editor_props.TransformablePropValue<"image-src", {
274
+ url: null;
275
+ id?: any;
276
+ } | {
277
+ id: null;
278
+ url?: any;
279
+ }>;
280
+ };
281
+ schema: zod.ZodObject<{
282
+ $$type: zod.ZodLiteral<"image-src">;
283
+ value: zod.ZodType<{
284
+ url: null;
285
+ id?: any;
286
+ } | {
287
+ id: null;
288
+ url?: any;
289
+ }, zod.ZodTypeDef, {
290
+ url: null;
291
+ id?: any;
292
+ } | {
293
+ id: null;
294
+ url?: any;
295
+ }>;
296
+ disabled: zod.ZodOptional<zod.ZodBoolean>;
297
+ }, "strict", zod.ZodTypeAny, {
298
+ $$type: "image-src";
299
+ value: {
300
+ url: null;
301
+ id?: any;
302
+ } | {
303
+ id: null;
304
+ url?: any;
305
+ };
306
+ disabled?: boolean | undefined;
307
+ }, {
308
+ $$type: "image-src";
309
+ value: {
310
+ url: null;
311
+ id?: any;
312
+ } | {
313
+ id: null;
314
+ url?: any;
315
+ };
316
+ disabled?: boolean | undefined;
317
+ }>;
318
+ key: "image-src";
319
+ };
320
+ };
321
+ readonly text: {
322
+ readonly component: ControlComponent<({ placeholder, error, inputValue, inputDisabled, helperText, sx, }: {
323
+ placeholder?: string;
324
+ error?: boolean;
325
+ inputValue?: string;
326
+ inputDisabled?: boolean;
327
+ helperText?: string;
328
+ sx?: _mui_system.SxProps;
329
+ }) => react.JSX.Element>;
330
+ readonly layout: "full";
331
+ readonly propTypeUtil: {
332
+ extract: (prop: unknown) => string | null;
333
+ isValid: (prop: unknown) => prop is _elementor_editor_props.TransformablePropValue<"string", string | null>;
334
+ create: {
335
+ (value: string | null): _elementor_editor_props.TransformablePropValue<"string", string | null>;
336
+ (value: string | null, createOptions?: _elementor_editor_props.CreateOptions): _elementor_editor_props.TransformablePropValue<"string", string | null>;
337
+ (value: (prev?: string | null | undefined) => string | null, createOptions: _elementor_editor_props.CreateOptions): _elementor_editor_props.TransformablePropValue<"string", string | null>;
338
+ };
339
+ schema: zod.ZodObject<{
340
+ $$type: zod.ZodLiteral<"string">;
341
+ value: zod.ZodType<string | null, zod.ZodTypeDef, string | null>;
342
+ disabled: zod.ZodOptional<zod.ZodBoolean>;
343
+ }, "strict", zod.ZodTypeAny, {
344
+ $$type: "string";
345
+ value: string | null;
346
+ disabled?: boolean | undefined;
347
+ }, {
348
+ $$type: "string";
349
+ value: string | null;
350
+ disabled?: boolean | undefined;
351
+ }>;
352
+ key: "string";
353
+ };
354
+ };
355
+ readonly textarea: {
356
+ readonly component: ControlComponent<({ placeholder }: {
357
+ placeholder?: string;
358
+ }) => react.JSX.Element>;
359
+ readonly layout: "full";
360
+ readonly propTypeUtil: {
361
+ extract: (prop: unknown) => string | null;
362
+ isValid: (prop: unknown) => prop is _elementor_editor_props.TransformablePropValue<"string", string | null>;
363
+ create: {
364
+ (value: string | null): _elementor_editor_props.TransformablePropValue<"string", string | null>;
365
+ (value: string | null, createOptions?: _elementor_editor_props.CreateOptions): _elementor_editor_props.TransformablePropValue<"string", string | null>;
366
+ (value: (prev?: string | null | undefined) => string | null, createOptions: _elementor_editor_props.CreateOptions): _elementor_editor_props.TransformablePropValue<"string", string | null>;
367
+ };
368
+ schema: zod.ZodObject<{
369
+ $$type: zod.ZodLiteral<"string">;
370
+ value: zod.ZodType<string | null, zod.ZodTypeDef, string | null>;
371
+ disabled: zod.ZodOptional<zod.ZodBoolean>;
372
+ }, "strict", zod.ZodTypeAny, {
373
+ $$type: "string";
374
+ value: string | null;
375
+ disabled?: boolean | undefined;
376
+ }, {
377
+ $$type: "string";
378
+ value: string | null;
379
+ disabled?: boolean | undefined;
380
+ }>;
381
+ key: "string";
382
+ };
383
+ };
384
+ readonly size: {
385
+ readonly component: ControlComponent<({ variant, defaultUnit, units, placeholder, startIcon, anchorRef, extendedOptions, disableCustom, }: Omit<({
386
+ placeholder?: string;
387
+ startIcon?: react.ReactNode;
388
+ extendedOptions?: _elementor_editor_controls.ExtendedOption[];
389
+ disableCustom?: boolean;
390
+ anchorRef?: react.RefObject<HTMLDivElement | null>;
391
+ } & {
392
+ units?: ("em" | "px" | "%" | "rem" | "vw" | "vh")[] | undefined;
393
+ defaultUnit?: "em" | "px" | "%" | "rem" | "vw" | "vh" | undefined;
394
+ } & {
395
+ variant: "length";
396
+ }) | ({
397
+ placeholder?: string;
398
+ startIcon?: react.ReactNode;
399
+ extendedOptions?: _elementor_editor_controls.ExtendedOption[];
400
+ disableCustom?: boolean;
401
+ anchorRef?: react.RefObject<HTMLDivElement | null>;
402
+ } & {
403
+ units?: ("deg" | "rad" | "grad" | "turn")[] | undefined;
404
+ defaultUnit?: "deg" | "rad" | "grad" | "turn" | undefined;
405
+ } & {
406
+ variant: "angle";
407
+ }) | ({
408
+ placeholder?: string;
409
+ startIcon?: react.ReactNode;
410
+ extendedOptions?: _elementor_editor_controls.ExtendedOption[];
411
+ disableCustom?: boolean;
412
+ anchorRef?: react.RefObject<HTMLDivElement | null>;
413
+ } & {
414
+ units?: ("s" | "ms")[] | undefined;
415
+ defaultUnit?: "s" | "ms" | undefined;
416
+ } & {
417
+ variant: "time";
418
+ }), "variant"> & {
419
+ variant?: "length" | "time" | "angle";
420
+ }) => react.JSX.Element>;
421
+ readonly layout: "two-columns";
422
+ readonly propTypeUtil: {
423
+ extract: (prop: unknown) => {
424
+ size: number;
425
+ unit: "px" | "em" | "rem" | "%" | "vw" | "vh";
426
+ } | {
427
+ size: number;
428
+ unit: "deg" | "rad" | "grad" | "turn";
429
+ } | {
430
+ size: number;
431
+ unit: "s" | "ms";
432
+ } | {
433
+ size: "";
434
+ unit: "auto";
435
+ } | {
436
+ size: string;
437
+ unit: "custom";
438
+ } | null;
439
+ isValid: (prop: unknown) => prop is _elementor_editor_props.TransformablePropValue<"size", {
440
+ size: number;
441
+ unit: "px" | "em" | "rem" | "%" | "vw" | "vh";
442
+ } | {
443
+ size: number;
444
+ unit: "deg" | "rad" | "grad" | "turn";
445
+ } | {
446
+ size: number;
447
+ unit: "s" | "ms";
448
+ } | {
449
+ size: "";
450
+ unit: "auto";
451
+ } | {
452
+ size: string;
453
+ unit: "custom";
454
+ }>;
455
+ create: {
456
+ (value: {
457
+ size: number;
458
+ unit: "px" | "em" | "rem" | "%" | "vw" | "vh";
459
+ } | {
460
+ size: number;
461
+ unit: "deg" | "rad" | "grad" | "turn";
462
+ } | {
463
+ size: number;
464
+ unit: "s" | "ms";
465
+ } | {
466
+ size: "";
467
+ unit: "auto";
468
+ } | {
469
+ size: string;
470
+ unit: "custom";
471
+ }): _elementor_editor_props.TransformablePropValue<"size", {
472
+ size: number;
473
+ unit: "px" | "em" | "rem" | "%" | "vw" | "vh";
474
+ } | {
475
+ size: number;
476
+ unit: "deg" | "rad" | "grad" | "turn";
477
+ } | {
478
+ size: number;
479
+ unit: "s" | "ms";
480
+ } | {
481
+ size: "";
482
+ unit: "auto";
483
+ } | {
484
+ size: string;
485
+ unit: "custom";
486
+ }>;
487
+ (value: {
488
+ size: number;
489
+ unit: "px" | "em" | "rem" | "%" | "vw" | "vh";
490
+ } | {
491
+ size: number;
492
+ unit: "deg" | "rad" | "grad" | "turn";
493
+ } | {
494
+ size: number;
495
+ unit: "s" | "ms";
496
+ } | {
497
+ size: "";
498
+ unit: "auto";
499
+ } | {
500
+ size: string;
501
+ unit: "custom";
502
+ }, createOptions?: _elementor_editor_props.CreateOptions): _elementor_editor_props.TransformablePropValue<"size", {
503
+ size: number;
504
+ unit: "px" | "em" | "rem" | "%" | "vw" | "vh";
505
+ } | {
506
+ size: number;
507
+ unit: "deg" | "rad" | "grad" | "turn";
508
+ } | {
509
+ size: number;
510
+ unit: "s" | "ms";
511
+ } | {
512
+ size: "";
513
+ unit: "auto";
514
+ } | {
515
+ size: string;
516
+ unit: "custom";
517
+ }>;
518
+ (value: (prev?: {
519
+ size: number;
520
+ unit: "px" | "em" | "rem" | "%" | "vw" | "vh";
521
+ } | {
522
+ size: number;
523
+ unit: "deg" | "rad" | "grad" | "turn";
524
+ } | {
525
+ size: number;
526
+ unit: "s" | "ms";
527
+ } | {
528
+ size: "";
529
+ unit: "auto";
530
+ } | {
531
+ size: string;
532
+ unit: "custom";
533
+ } | undefined) => {
534
+ size: number;
535
+ unit: "px" | "em" | "rem" | "%" | "vw" | "vh";
536
+ } | {
537
+ size: number;
538
+ unit: "deg" | "rad" | "grad" | "turn";
539
+ } | {
540
+ size: number;
541
+ unit: "s" | "ms";
542
+ } | {
543
+ size: "";
544
+ unit: "auto";
545
+ } | {
546
+ size: string;
547
+ unit: "custom";
548
+ }, createOptions: _elementor_editor_props.CreateOptions): _elementor_editor_props.TransformablePropValue<"size", {
549
+ size: number;
550
+ unit: "px" | "em" | "rem" | "%" | "vw" | "vh";
551
+ } | {
552
+ size: number;
553
+ unit: "deg" | "rad" | "grad" | "turn";
554
+ } | {
555
+ size: number;
556
+ unit: "s" | "ms";
557
+ } | {
558
+ size: "";
559
+ unit: "auto";
560
+ } | {
561
+ size: string;
562
+ unit: "custom";
563
+ }>;
564
+ };
565
+ schema: zod.ZodObject<{
566
+ $$type: zod.ZodLiteral<"size">;
567
+ value: zod.ZodType<{
568
+ size: number;
569
+ unit: "px" | "em" | "rem" | "%" | "vw" | "vh";
570
+ } | {
571
+ size: number;
572
+ unit: "deg" | "rad" | "grad" | "turn";
573
+ } | {
574
+ size: number;
575
+ unit: "s" | "ms";
576
+ } | {
577
+ size: "";
578
+ unit: "auto";
579
+ } | {
580
+ size: string;
581
+ unit: "custom";
582
+ }, zod.ZodTypeDef, {
583
+ size: number;
584
+ unit: "px" | "em" | "rem" | "%" | "vw" | "vh";
585
+ } | {
586
+ size: number;
587
+ unit: "deg" | "rad" | "grad" | "turn";
588
+ } | {
589
+ size: number;
590
+ unit: "s" | "ms";
591
+ } | {
592
+ size: "";
593
+ unit: "auto";
594
+ } | {
595
+ size: string;
596
+ unit: "custom";
597
+ }>;
598
+ disabled: zod.ZodOptional<zod.ZodBoolean>;
599
+ }, "strict", zod.ZodTypeAny, {
600
+ $$type: "size";
601
+ value: {
602
+ size: number;
603
+ unit: "px" | "em" | "rem" | "%" | "vw" | "vh";
604
+ } | {
605
+ size: number;
606
+ unit: "deg" | "rad" | "grad" | "turn";
607
+ } | {
608
+ size: number;
609
+ unit: "s" | "ms";
610
+ } | {
611
+ size: "";
612
+ unit: "auto";
613
+ } | {
614
+ size: string;
615
+ unit: "custom";
616
+ };
617
+ disabled?: boolean | undefined;
618
+ }, {
619
+ $$type: "size";
620
+ value: {
621
+ size: number;
622
+ unit: "px" | "em" | "rem" | "%" | "vw" | "vh";
623
+ } | {
624
+ size: number;
625
+ unit: "deg" | "rad" | "grad" | "turn";
626
+ } | {
627
+ size: number;
628
+ unit: "s" | "ms";
629
+ } | {
630
+ size: "";
631
+ unit: "auto";
632
+ } | {
633
+ size: string;
634
+ unit: "custom";
635
+ };
636
+ disabled?: boolean | undefined;
637
+ }>;
638
+ key: "size";
639
+ };
640
+ };
641
+ readonly select: {
642
+ readonly component: ControlComponent<({ options, onChange }: {
643
+ options: {
644
+ label: string;
645
+ value: _elementor_editor_props.StringPropValue["value"];
646
+ disabled?: boolean;
647
+ }[];
648
+ onChange?: (newValue: string | null, previousValue: string | null | undefined) => void;
649
+ }) => react.JSX.Element>;
650
+ readonly layout: "two-columns";
651
+ readonly propTypeUtil: {
652
+ extract: (prop: unknown) => string | null;
653
+ isValid: (prop: unknown) => prop is _elementor_editor_props.TransformablePropValue<"string", string | null>;
654
+ create: {
655
+ (value: string | null): _elementor_editor_props.TransformablePropValue<"string", string | null>;
656
+ (value: string | null, createOptions?: _elementor_editor_props.CreateOptions): _elementor_editor_props.TransformablePropValue<"string", string | null>;
657
+ (value: (prev?: string | null | undefined) => string | null, createOptions: _elementor_editor_props.CreateOptions): _elementor_editor_props.TransformablePropValue<"string", string | null>;
658
+ };
659
+ schema: zod.ZodObject<{
660
+ $$type: zod.ZodLiteral<"string">;
661
+ value: zod.ZodType<string | null, zod.ZodTypeDef, string | null>;
662
+ disabled: zod.ZodOptional<zod.ZodBoolean>;
663
+ }, "strict", zod.ZodTypeAny, {
664
+ $$type: "string";
665
+ value: string | null;
666
+ disabled?: boolean | undefined;
667
+ }, {
668
+ $$type: "string";
669
+ value: string | null;
670
+ disabled?: boolean | undefined;
671
+ }>;
672
+ key: "string";
673
+ };
674
+ };
675
+ readonly link: {
676
+ readonly component: ControlComponent<(props: {
677
+ queryOptions: {
678
+ requestParams: Record<string, unknown>;
679
+ endpoint: string;
680
+ };
681
+ allowCustomValues?: boolean;
682
+ minInputLength?: number;
683
+ placeholder?: string;
684
+ label?: string;
685
+ } & {
686
+ context: {
687
+ elementId: string;
688
+ };
689
+ }) => react.JSX.Element>;
690
+ readonly layout: "custom";
691
+ readonly propTypeUtil: {
692
+ extract: (prop: unknown) => {
693
+ destination?: any;
694
+ label?: any;
695
+ isTargetBlank?: any;
696
+ } | null;
697
+ isValid: (prop: unknown) => prop is _elementor_editor_props.TransformablePropValue<"link", {
698
+ destination?: any;
699
+ label?: any;
700
+ isTargetBlank?: any;
701
+ }>;
702
+ create: {
703
+ (value: {
704
+ destination?: any;
705
+ label?: any;
706
+ isTargetBlank?: any;
707
+ }): _elementor_editor_props.TransformablePropValue<"link", {
708
+ destination?: any;
709
+ label?: any;
710
+ isTargetBlank?: any;
711
+ }>;
712
+ (value: {
713
+ destination?: any;
714
+ label?: any;
715
+ isTargetBlank?: any;
716
+ }, createOptions?: _elementor_editor_props.CreateOptions): _elementor_editor_props.TransformablePropValue<"link", {
717
+ destination?: any;
718
+ label?: any;
719
+ isTargetBlank?: any;
720
+ }>;
721
+ (value: (prev?: {
722
+ destination?: any;
723
+ label?: any;
724
+ isTargetBlank?: any;
725
+ } | undefined) => {
726
+ destination?: any;
727
+ label?: any;
728
+ isTargetBlank?: any;
729
+ }, createOptions: _elementor_editor_props.CreateOptions): _elementor_editor_props.TransformablePropValue<"link", {
730
+ destination?: any;
731
+ label?: any;
732
+ isTargetBlank?: any;
733
+ }>;
734
+ };
735
+ schema: zod.ZodObject<{
736
+ $$type: zod.ZodLiteral<"link">;
737
+ value: zod.ZodType<{
738
+ destination?: any;
739
+ label?: any;
740
+ isTargetBlank?: any;
741
+ }, zod.ZodTypeDef, {
742
+ destination?: any;
743
+ label?: any;
744
+ isTargetBlank?: any;
745
+ }>;
746
+ disabled: zod.ZodOptional<zod.ZodBoolean>;
747
+ }, "strict", zod.ZodTypeAny, {
748
+ $$type: "link";
749
+ value: {
750
+ destination?: any;
751
+ label?: any;
752
+ isTargetBlank?: any;
753
+ };
754
+ disabled?: boolean | undefined;
755
+ }, {
756
+ $$type: "link";
757
+ value: {
758
+ destination?: any;
759
+ label?: any;
760
+ isTargetBlank?: any;
761
+ };
762
+ disabled?: boolean | undefined;
763
+ }>;
764
+ key: "link";
765
+ };
766
+ };
767
+ readonly url: {
768
+ readonly component: ControlComponent<({ placeholder }: {
769
+ placeholder?: string;
770
+ }) => react.JSX.Element>;
771
+ readonly layout: "full";
772
+ readonly propTypeUtil: {
773
+ extract: (prop: unknown) => string | null;
774
+ isValid: (prop: unknown) => prop is _elementor_editor_props.TransformablePropValue<"string", string | null>;
775
+ create: {
776
+ (value: string | null): _elementor_editor_props.TransformablePropValue<"string", string | null>;
777
+ (value: string | null, createOptions?: _elementor_editor_props.CreateOptions): _elementor_editor_props.TransformablePropValue<"string", string | null>;
778
+ (value: (prev?: string | null | undefined) => string | null, createOptions: _elementor_editor_props.CreateOptions): _elementor_editor_props.TransformablePropValue<"string", string | null>;
779
+ };
780
+ schema: zod.ZodObject<{
781
+ $$type: zod.ZodLiteral<"string">;
782
+ value: zod.ZodType<string | null, zod.ZodTypeDef, string | null>;
783
+ disabled: zod.ZodOptional<zod.ZodBoolean>;
784
+ }, "strict", zod.ZodTypeAny, {
785
+ $$type: "string";
786
+ value: string | null;
787
+ disabled?: boolean | undefined;
788
+ }, {
789
+ $$type: "string";
790
+ value: string | null;
791
+ disabled?: boolean | undefined;
792
+ }>;
793
+ key: "string";
794
+ };
795
+ };
796
+ readonly switch: {
797
+ readonly component: ControlComponent<() => react.JSX.Element>;
798
+ readonly layout: "two-columns";
799
+ readonly propTypeUtil: {
800
+ extract: (prop: unknown) => boolean | null;
801
+ isValid: (prop: unknown) => prop is _elementor_editor_props.TransformablePropValue<"boolean", boolean | null>;
802
+ create: {
803
+ (value: boolean | null): _elementor_editor_props.TransformablePropValue<"boolean", boolean | null>;
804
+ (value: boolean | null, createOptions?: _elementor_editor_props.CreateOptions): _elementor_editor_props.TransformablePropValue<"boolean", boolean | null>;
805
+ (value: (prev?: boolean | null | undefined) => boolean | null, createOptions: _elementor_editor_props.CreateOptions): _elementor_editor_props.TransformablePropValue<"boolean", boolean | null>;
806
+ };
807
+ schema: zod.ZodObject<{
808
+ $$type: zod.ZodLiteral<"boolean">;
809
+ value: zod.ZodType<boolean | null, zod.ZodTypeDef, boolean | null>;
810
+ disabled: zod.ZodOptional<zod.ZodBoolean>;
811
+ }, "strict", zod.ZodTypeAny, {
812
+ $$type: "boolean";
813
+ value: boolean | null;
814
+ disabled?: boolean | undefined;
815
+ }, {
816
+ $$type: "boolean";
817
+ value: boolean | null;
818
+ disabled?: boolean | undefined;
819
+ }>;
820
+ key: "boolean";
821
+ };
822
+ };
823
+ readonly repeatable: {
824
+ readonly component: ControlComponent<({ repeaterLabel, childControlConfig, showDuplicate, showToggle, initialValues, patternLabel, placeholder, propKey, }: {
825
+ label: string;
826
+ repeaterLabel: string;
827
+ childControlConfig: {
828
+ component: React.ComponentType;
829
+ props?: Record<string, unknown>;
830
+ propTypeUtil: PropTypeUtil<string, any>;
831
+ label?: string;
832
+ };
833
+ showDuplicate?: boolean;
834
+ showToggle?: boolean;
835
+ initialValues?: object;
836
+ patternLabel?: string;
837
+ placeholder?: string;
838
+ propKey?: string;
839
+ }) => react.JSX.Element | null>;
840
+ readonly layout: "full";
841
+ readonly propTypeUtil: undefined;
842
+ };
843
+ readonly 'key-value': {
844
+ readonly component: ControlComponent<(props?: {
845
+ keyName?: string;
846
+ valueName?: string;
847
+ regexKey?: string;
848
+ regexValue?: string;
849
+ validationErrorMessage?: string;
850
+ getHelperText?: (key: string, value: string) => {
851
+ keyHelper?: string;
852
+ valueHelper?: string;
853
+ };
854
+ }) => react.JSX.Element>;
855
+ readonly layout: "full";
856
+ readonly propTypeUtil: {
857
+ extract: (prop: unknown) => {
858
+ value?: any;
859
+ key?: any;
860
+ } | null;
861
+ isValid: (prop: unknown) => prop is _elementor_editor_props.TransformablePropValue<"key-value", {
862
+ value?: any;
863
+ key?: any;
864
+ }>;
865
+ create: {
866
+ (value: {
867
+ value?: any;
868
+ key?: any;
869
+ }): _elementor_editor_props.TransformablePropValue<"key-value", {
870
+ value?: any;
871
+ key?: any;
872
+ }>;
873
+ (value: {
874
+ value?: any;
875
+ key?: any;
876
+ }, createOptions?: _elementor_editor_props.CreateOptions): _elementor_editor_props.TransformablePropValue<"key-value", {
877
+ value?: any;
878
+ key?: any;
879
+ }>;
880
+ (value: (prev?: {
881
+ value?: any;
882
+ key?: any;
883
+ } | undefined) => {
884
+ value?: any;
885
+ key?: any;
886
+ }, createOptions: _elementor_editor_props.CreateOptions): _elementor_editor_props.TransformablePropValue<"key-value", {
887
+ value?: any;
888
+ key?: any;
889
+ }>;
890
+ };
891
+ schema: zod.ZodObject<{
892
+ $$type: zod.ZodLiteral<"key-value">;
893
+ value: zod.ZodType<{
894
+ value?: any;
895
+ key?: any;
896
+ }, zod.ZodTypeDef, {
897
+ value?: any;
898
+ key?: any;
899
+ }>;
900
+ disabled: zod.ZodOptional<zod.ZodBoolean>;
901
+ }, "strict", zod.ZodTypeAny, {
902
+ $$type: "key-value";
903
+ value: {
904
+ value?: any;
905
+ key?: any;
906
+ };
907
+ disabled?: boolean | undefined;
908
+ }, {
909
+ $$type: "key-value";
910
+ value: {
911
+ value?: any;
912
+ key?: any;
913
+ };
914
+ disabled?: boolean | undefined;
915
+ }>;
916
+ key: "key-value";
917
+ };
918
+ };
919
+ };
920
+ type ControlType = keyof typeof controlTypes;
921
+ declare class ControlsRegistry {
922
+ private readonly controlsRegistry;
923
+ constructor(controlsRegistry?: ControlRegistry);
924
+ get(type: ControlType): ControlComponent;
925
+ getLayout(type: ControlType): ControlLayout;
926
+ getPropTypeUtil(type: ControlType): PropTypeUtil<string, any> | undefined;
927
+ registry(): ControlRegistry;
928
+ register(type: string, component: ControlComponent, layout: ControlLayout, propTypeUtil?: PropTypeUtil<string, any>): void;
929
+ unregister(type: string): void;
930
+ }
931
+ declare const controlsRegistry: ControlsRegistry;
932
+
933
+ export { CustomCss, type PopoverActionProps, PopoverBody, SectionContent, type ValidationEvent, type ValidationResult, controlActionsMenu, controlsRegistry, init, injectIntoClassSelectorActions, injectIntoCssClassConvert, registerControlReplacement, registerStyleProviderToColors, stylesInheritanceTransformersRegistry, useCustomCss, useFontFamilies, usePanelActions, usePanelStatus, useSectionWidth };