@elementor/editor-props 3.35.0-340 → 3.35.0-341

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.
@@ -0,0 +1,970 @@
1
+ import { type ObjectPropType, type PropsSchema } from '../../types';
2
+
3
+ export const STUBS = {
4
+ tag: {
5
+ kind: 'string',
6
+ key: 'string',
7
+ settings: {},
8
+ default: null,
9
+ meta: {},
10
+ dependencies: undefined,
11
+ initial_value: null,
12
+ },
13
+ color: {
14
+ kind: 'union',
15
+ default: null,
16
+ meta: {
17
+ description: 'A color value prop type',
18
+ },
19
+ settings: {
20
+ required: true,
21
+ },
22
+ prop_types: {
23
+ color: {
24
+ kind: 'string',
25
+ key: 'color',
26
+ default: null,
27
+ meta: {},
28
+ settings: {
29
+ required: true,
30
+ },
31
+ dependencies: undefined,
32
+ initial_value: {
33
+ $$type: 'color',
34
+ value: 'rgba(0, 0, 0, 1)',
35
+ },
36
+ },
37
+ 'global-color-variable': {
38
+ kind: 'string',
39
+ key: 'global-color-variable',
40
+ default: null,
41
+ meta: {},
42
+ settings: {},
43
+ dependencies: undefined,
44
+ initial_value: null,
45
+ },
46
+ },
47
+ dependencies: undefined,
48
+ initial_value: {
49
+ $$type: 'color',
50
+ value: 'rgba(0, 0, 0, 1)',
51
+ },
52
+ },
53
+ alignContent: {
54
+ kind: 'string',
55
+ key: 'string',
56
+ default: null,
57
+ meta: {
58
+ description:
59
+ "Aligns a flex container's lines within when there is extra space in the cross-axis. CSS values: center, start, end, space-between, space-around, space-evenly",
60
+ },
61
+ settings: {
62
+ enum: [ 'center', 'start', 'end', 'space-between', 'space-around', 'space-evenly' ],
63
+ },
64
+ dependencies: undefined,
65
+ initial_value: null,
66
+ },
67
+ background: {
68
+ kind: 'object',
69
+ key: 'background',
70
+ default: null,
71
+ meta: {},
72
+ settings: {},
73
+ shape: {
74
+ 'background-overlay': {
75
+ kind: 'array',
76
+ key: 'background-overlay',
77
+ default: null,
78
+ meta: {},
79
+ settings: {},
80
+ item_prop_type: {
81
+ kind: 'union',
82
+ default: null,
83
+ meta: [],
84
+ settings: [],
85
+ prop_types: {
86
+ 'background-color-overlay': {
87
+ kind: 'object',
88
+ key: 'background-color-overlay',
89
+ default: null,
90
+ meta: {},
91
+ settings: {},
92
+ shape: {
93
+ color: {
94
+ kind: 'union',
95
+ default: null,
96
+ meta: [],
97
+ settings: [],
98
+ prop_types: {
99
+ color: {
100
+ kind: 'string',
101
+ key: 'color',
102
+ default: null,
103
+ meta: {},
104
+ settings: {},
105
+ dependencies: null,
106
+ initial_value: {
107
+ $$type: 'color',
108
+ value: '#00000033',
109
+ },
110
+ },
111
+ 'global-color-variable': {
112
+ kind: 'string',
113
+ key: 'global-color-variable',
114
+ default: null,
115
+ meta: {},
116
+ settings: {},
117
+ dependencies: null,
118
+ initial_value: null,
119
+ },
120
+ },
121
+ dependencies: null,
122
+ initial_value: null,
123
+ },
124
+ },
125
+ dependencies: null,
126
+ initial_value: null,
127
+ },
128
+ 'background-image-overlay': {
129
+ kind: 'object',
130
+ key: 'background-image-overlay',
131
+ default: null,
132
+ meta: {},
133
+ settings: {},
134
+ shape: {
135
+ image: {
136
+ kind: 'object',
137
+ key: 'image',
138
+ default: null,
139
+ meta: {},
140
+ settings: {},
141
+ shape: {
142
+ src: {
143
+ kind: 'union',
144
+ default: null,
145
+ meta: [],
146
+ settings: [],
147
+ prop_types: {
148
+ 'image-src': {
149
+ kind: 'object',
150
+ key: 'image-src',
151
+ default: null,
152
+ meta: {},
153
+ settings: {
154
+ required: true,
155
+ },
156
+ shape: {
157
+ id: {
158
+ kind: 'union',
159
+ default: null,
160
+ meta: [],
161
+ settings: [],
162
+ prop_types: {
163
+ 'image-attachment-id': {
164
+ kind: 'number',
165
+ key: 'image-attachment-id',
166
+ default: null,
167
+ meta: {
168
+ description:
169
+ 'The ID of the image attachment in the WordPress media library, applicable for internal images only',
170
+ },
171
+ settings: {},
172
+ dependencies: null,
173
+ initial_value: null,
174
+ },
175
+ dynamic: {
176
+ kind: 'plain',
177
+ key: 'dynamic',
178
+ default: null,
179
+ meta: {},
180
+ settings: {
181
+ categories: [ 'number' ],
182
+ },
183
+ dependencies: null,
184
+ initial_value: null,
185
+ },
186
+ },
187
+ dependencies: null,
188
+ initial_value: null,
189
+ },
190
+ url: {
191
+ kind: 'union',
192
+ default: null,
193
+ meta: [],
194
+ settings: [],
195
+ prop_types: {
196
+ url: {
197
+ kind: 'string',
198
+ key: 'url',
199
+ default: null,
200
+ meta: {},
201
+ settings: {},
202
+ dependencies: null,
203
+ initial_value: null,
204
+ },
205
+ dynamic: {
206
+ kind: 'plain',
207
+ key: 'dynamic',
208
+ default: null,
209
+ meta: {},
210
+ settings: {
211
+ categories: [ 'url' ],
212
+ },
213
+ dependencies: null,
214
+ initial_value: null,
215
+ },
216
+ },
217
+ dependencies: null,
218
+ initial_value: null,
219
+ },
220
+ },
221
+ dependencies: null,
222
+ initial_value: null,
223
+ },
224
+ dynamic: {
225
+ kind: 'plain',
226
+ key: 'dynamic',
227
+ default: null,
228
+ meta: {},
229
+ settings: {
230
+ categories: [ 'image' ],
231
+ },
232
+ dependencies: null,
233
+ initial_value: null,
234
+ },
235
+ },
236
+ dependencies: null,
237
+ initial_value: null,
238
+ },
239
+ size: {
240
+ kind: 'string',
241
+ key: 'string',
242
+ default: null,
243
+ meta: {
244
+ description:
245
+ "The image file size to use, affecting quality only!. This DOES NOT affect dimensions on the page. For affecting dimensions, use the element's style schema instead",
246
+ },
247
+ settings: {
248
+ enum: [
249
+ 'thumbnail',
250
+ 'medium',
251
+ 'medium_large',
252
+ 'large',
253
+ '1536x1536',
254
+ '2048x2048',
255
+ 'full',
256
+ ],
257
+ required: true,
258
+ },
259
+ dependencies: null,
260
+ initial_value: {
261
+ $$type: 'string',
262
+ value: 'large',
263
+ },
264
+ },
265
+ },
266
+ dependencies: null,
267
+ initial_value: null,
268
+ },
269
+ repeat: {
270
+ kind: 'string',
271
+ key: 'string',
272
+ default: null,
273
+ meta: {},
274
+ settings: {
275
+ enum: [ 'repeat', 'repeat-x', 'repeat-y', 'no-repeat' ],
276
+ },
277
+ dependencies: null,
278
+ initial_value: null,
279
+ },
280
+ size: {
281
+ kind: 'union',
282
+ default: null,
283
+ meta: [],
284
+ settings: [],
285
+ prop_types: {
286
+ string: {
287
+ kind: 'string',
288
+ key: 'string',
289
+ default: null,
290
+ meta: {},
291
+ settings: {
292
+ enum: [ 'auto', 'cover', 'contain' ],
293
+ },
294
+ dependencies: null,
295
+ initial_value: null,
296
+ },
297
+ 'background-image-size-scale': {
298
+ kind: 'object',
299
+ key: 'background-image-size-scale',
300
+ default: null,
301
+ meta: {},
302
+ settings: {},
303
+ shape: {
304
+ width: {
305
+ kind: 'union',
306
+ default: null,
307
+ meta: [],
308
+ settings: [],
309
+ prop_types: {
310
+ size: {
311
+ kind: 'object',
312
+ key: 'size',
313
+ default: null,
314
+ meta: {},
315
+ settings: {
316
+ available_units: [
317
+ 'px',
318
+ 'em',
319
+ 'rem',
320
+ 'vw',
321
+ 'vh',
322
+ 'ch',
323
+ '%',
324
+ 'auto',
325
+ ],
326
+ },
327
+ shape: {
328
+ unit: {
329
+ kind: 'string',
330
+ key: 'string',
331
+ default: null,
332
+ meta: {},
333
+ settings: {
334
+ enum: [
335
+ 'px',
336
+ 'em',
337
+ 'rem',
338
+ 'vw',
339
+ 'vh',
340
+ 'ch',
341
+ '%',
342
+ 'auto',
343
+ 'deg',
344
+ 'rad',
345
+ 'grad',
346
+ 'turn',
347
+ 's',
348
+ 'ms',
349
+ 'auto',
350
+ 'custom',
351
+ 'vmin',
352
+ 'vmax',
353
+ ],
354
+ required: true,
355
+ },
356
+ dependencies: null,
357
+ initial_value: null,
358
+ },
359
+ size: {
360
+ kind: 'union',
361
+ default: null,
362
+ meta: [],
363
+ settings: [],
364
+ prop_types: {
365
+ string: {
366
+ kind: 'string',
367
+ key: 'string',
368
+ default: null,
369
+ meta: {},
370
+ settings: {},
371
+ dependencies: null,
372
+ initial_value: null,
373
+ },
374
+ number: {
375
+ kind: 'number',
376
+ key: 'number',
377
+ default: null,
378
+ meta: {},
379
+ settings: {},
380
+ dependencies: null,
381
+ initial_value: null,
382
+ },
383
+ dynamic: {
384
+ kind: 'plain',
385
+ key: 'dynamic',
386
+ default: null,
387
+ meta: {},
388
+ settings: {
389
+ categories: [ 'text', 'number' ],
390
+ },
391
+ dependencies: null,
392
+ initial_value: null,
393
+ },
394
+ },
395
+ dependencies: null,
396
+ initial_value: null,
397
+ },
398
+ },
399
+ dependencies: null,
400
+ initial_value: null,
401
+ },
402
+ 'global-size-variable': {
403
+ kind: 'string',
404
+ key: 'global-size-variable',
405
+ default: null,
406
+ meta: {},
407
+ settings: {},
408
+ dependencies: null,
409
+ initial_value: null,
410
+ },
411
+ },
412
+ dependencies: null,
413
+ initial_value: null,
414
+ },
415
+ height: {
416
+ kind: 'union',
417
+ default: null,
418
+ meta: [],
419
+ settings: [],
420
+ prop_types: {
421
+ size: {
422
+ kind: 'object',
423
+ key: 'size',
424
+ default: null,
425
+ meta: {},
426
+ settings: {
427
+ available_units: [
428
+ 'px',
429
+ 'em',
430
+ 'rem',
431
+ 'vw',
432
+ 'vh',
433
+ 'ch',
434
+ '%',
435
+ 'auto',
436
+ ],
437
+ },
438
+ shape: {
439
+ unit: {
440
+ kind: 'string',
441
+ key: 'string',
442
+ default: null,
443
+ meta: {},
444
+ settings: {
445
+ enum: [
446
+ 'px',
447
+ 'em',
448
+ 'rem',
449
+ 'vw',
450
+ 'vh',
451
+ 'ch',
452
+ '%',
453
+ 'auto',
454
+ 'deg',
455
+ 'rad',
456
+ 'grad',
457
+ 'turn',
458
+ 's',
459
+ 'ms',
460
+ 'auto',
461
+ 'custom',
462
+ 'vmin',
463
+ 'vmax',
464
+ ],
465
+ required: true,
466
+ },
467
+ dependencies: null,
468
+ initial_value: null,
469
+ },
470
+ size: {
471
+ kind: 'union',
472
+ default: null,
473
+ meta: [],
474
+ settings: [],
475
+ prop_types: {
476
+ string: {
477
+ kind: 'string',
478
+ key: 'string',
479
+ default: null,
480
+ meta: {},
481
+ settings: {},
482
+ dependencies: null,
483
+ initial_value: null,
484
+ },
485
+ number: {
486
+ kind: 'number',
487
+ key: 'number',
488
+ default: null,
489
+ meta: {},
490
+ settings: {},
491
+ dependencies: null,
492
+ initial_value: null,
493
+ },
494
+ dynamic: {
495
+ kind: 'plain',
496
+ key: 'dynamic',
497
+ default: null,
498
+ meta: {},
499
+ settings: {
500
+ categories: [ 'text', 'number' ],
501
+ },
502
+ dependencies: null,
503
+ initial_value: null,
504
+ },
505
+ },
506
+ dependencies: null,
507
+ initial_value: null,
508
+ },
509
+ },
510
+ dependencies: null,
511
+ initial_value: null,
512
+ },
513
+ 'global-size-variable': {
514
+ kind: 'string',
515
+ key: 'global-size-variable',
516
+ default: null,
517
+ meta: {},
518
+ settings: {},
519
+ dependencies: null,
520
+ initial_value: null,
521
+ },
522
+ },
523
+ dependencies: null,
524
+ initial_value: null,
525
+ },
526
+ },
527
+ dependencies: null,
528
+ initial_value: null,
529
+ },
530
+ },
531
+ dependencies: null,
532
+ initial_value: null,
533
+ },
534
+ position: {
535
+ kind: 'union',
536
+ default: null,
537
+ meta: [],
538
+ settings: [],
539
+ prop_types: {
540
+ string: {
541
+ kind: 'string',
542
+ key: 'string',
543
+ default: null,
544
+ meta: {},
545
+ settings: {
546
+ enum: [
547
+ 'center center',
548
+ 'center left',
549
+ 'center right',
550
+ 'top center',
551
+ 'top left',
552
+ 'top right',
553
+ 'bottom center',
554
+ 'bottom left',
555
+ 'bottom right',
556
+ ],
557
+ },
558
+ dependencies: null,
559
+ initial_value: null,
560
+ },
561
+ 'background-image-position-offset': {
562
+ kind: 'object',
563
+ key: 'background-image-position-offset',
564
+ default: null,
565
+ meta: {},
566
+ settings: {},
567
+ shape: {
568
+ x: {
569
+ kind: 'union',
570
+ default: null,
571
+ meta: [],
572
+ settings: [],
573
+ prop_types: {
574
+ size: {
575
+ kind: 'object',
576
+ key: 'size',
577
+ default: null,
578
+ meta: {},
579
+ settings: {
580
+ available_units: [
581
+ 'px',
582
+ 'em',
583
+ 'rem',
584
+ 'vw',
585
+ 'vh',
586
+ 'ch',
587
+ '%',
588
+ ],
589
+ },
590
+ shape: {
591
+ unit: {
592
+ kind: 'string',
593
+ key: 'string',
594
+ default: null,
595
+ meta: {},
596
+ settings: {
597
+ enum: [
598
+ 'px',
599
+ 'em',
600
+ 'rem',
601
+ 'vw',
602
+ 'vh',
603
+ 'ch',
604
+ '%',
605
+ 'auto',
606
+ 'deg',
607
+ 'rad',
608
+ 'grad',
609
+ 'turn',
610
+ 's',
611
+ 'ms',
612
+ 'auto',
613
+ 'custom',
614
+ 'vmin',
615
+ 'vmax',
616
+ ],
617
+ required: true,
618
+ },
619
+ dependencies: null,
620
+ initial_value: null,
621
+ },
622
+ size: {
623
+ kind: 'union',
624
+ default: null,
625
+ meta: [],
626
+ settings: [],
627
+ prop_types: {
628
+ string: {
629
+ kind: 'string',
630
+ key: 'string',
631
+ default: null,
632
+ meta: {},
633
+ settings: {},
634
+ dependencies: null,
635
+ initial_value: null,
636
+ },
637
+ number: {
638
+ kind: 'number',
639
+ key: 'number',
640
+ default: null,
641
+ meta: {},
642
+ settings: {},
643
+ dependencies: null,
644
+ initial_value: null,
645
+ },
646
+ dynamic: {
647
+ kind: 'plain',
648
+ key: 'dynamic',
649
+ default: null,
650
+ meta: {},
651
+ settings: {
652
+ categories: [ 'text', 'number' ],
653
+ },
654
+ dependencies: null,
655
+ initial_value: null,
656
+ },
657
+ },
658
+ dependencies: null,
659
+ initial_value: null,
660
+ },
661
+ },
662
+ dependencies: null,
663
+ initial_value: null,
664
+ },
665
+ 'global-size-variable': {
666
+ kind: 'string',
667
+ key: 'global-size-variable',
668
+ default: null,
669
+ meta: {},
670
+ settings: {},
671
+ dependencies: null,
672
+ initial_value: null,
673
+ },
674
+ },
675
+ dependencies: null,
676
+ initial_value: null,
677
+ },
678
+ y: {
679
+ kind: 'union',
680
+ default: null,
681
+ meta: [],
682
+ settings: [],
683
+ prop_types: {
684
+ size: {
685
+ kind: 'object',
686
+ key: 'size',
687
+ default: null,
688
+ meta: {},
689
+ settings: {
690
+ available_units: [
691
+ 'px',
692
+ 'em',
693
+ 'rem',
694
+ 'vw',
695
+ 'vh',
696
+ 'ch',
697
+ '%',
698
+ ],
699
+ },
700
+ shape: {
701
+ unit: {
702
+ kind: 'string',
703
+ key: 'string',
704
+ default: null,
705
+ meta: {},
706
+ settings: {
707
+ enum: [
708
+ 'px',
709
+ 'em',
710
+ 'rem',
711
+ 'vw',
712
+ 'vh',
713
+ 'ch',
714
+ '%',
715
+ 'auto',
716
+ 'deg',
717
+ 'rad',
718
+ 'grad',
719
+ 'turn',
720
+ 's',
721
+ 'ms',
722
+ 'auto',
723
+ 'custom',
724
+ 'vmin',
725
+ 'vmax',
726
+ ],
727
+ required: true,
728
+ },
729
+ dependencies: null,
730
+ initial_value: null,
731
+ },
732
+ size: {
733
+ kind: 'union',
734
+ default: null,
735
+ meta: [],
736
+ settings: [],
737
+ prop_types: {
738
+ string: {
739
+ kind: 'string',
740
+ key: 'string',
741
+ default: null,
742
+ meta: {},
743
+ settings: {},
744
+ dependencies: null,
745
+ initial_value: null,
746
+ },
747
+ number: {
748
+ kind: 'number',
749
+ key: 'number',
750
+ default: null,
751
+ meta: {},
752
+ settings: {},
753
+ dependencies: null,
754
+ initial_value: null,
755
+ },
756
+ dynamic: {
757
+ kind: 'plain',
758
+ key: 'dynamic',
759
+ default: null,
760
+ meta: {},
761
+ settings: {
762
+ categories: [ 'text', 'number' ],
763
+ },
764
+ dependencies: null,
765
+ initial_value: null,
766
+ },
767
+ },
768
+ dependencies: null,
769
+ initial_value: null,
770
+ },
771
+ },
772
+ dependencies: null,
773
+ initial_value: null,
774
+ },
775
+ 'global-size-variable': {
776
+ kind: 'string',
777
+ key: 'global-size-variable',
778
+ default: null,
779
+ meta: {},
780
+ settings: {},
781
+ dependencies: null,
782
+ initial_value: null,
783
+ },
784
+ },
785
+ dependencies: null,
786
+ initial_value: null,
787
+ },
788
+ },
789
+ dependencies: null,
790
+ initial_value: null,
791
+ },
792
+ },
793
+ dependencies: null,
794
+ initial_value: null,
795
+ },
796
+ attachment: {
797
+ kind: 'string',
798
+ key: 'string',
799
+ default: null,
800
+ meta: {},
801
+ settings: {
802
+ enum: [ 'fixed', 'scroll' ],
803
+ },
804
+ dependencies: null,
805
+ initial_value: null,
806
+ },
807
+ },
808
+ dependencies: null,
809
+ initial_value: null,
810
+ },
811
+ 'background-gradient-overlay': {
812
+ kind: 'object',
813
+ key: 'background-gradient-overlay',
814
+ default: null,
815
+ meta: {},
816
+ settings: {},
817
+ shape: {
818
+ type: {
819
+ kind: 'string',
820
+ key: 'string',
821
+ default: null,
822
+ meta: {},
823
+ settings: {
824
+ enum: [ 'linear', 'radial' ],
825
+ },
826
+ dependencies: null,
827
+ initial_value: null,
828
+ },
829
+ angle: {
830
+ kind: 'number',
831
+ key: 'number',
832
+ default: null,
833
+ meta: {},
834
+ settings: {},
835
+ dependencies: null,
836
+ initial_value: null,
837
+ },
838
+ stops: {
839
+ kind: 'array',
840
+ key: 'gradient-color-stop',
841
+ default: null,
842
+ meta: {},
843
+ settings: {},
844
+ item_prop_type: {
845
+ kind: 'object',
846
+ key: 'color-stop',
847
+ default: null,
848
+ meta: {},
849
+ settings: {},
850
+ shape: {
851
+ color: {
852
+ kind: 'union',
853
+ default: null,
854
+ meta: [],
855
+ settings: [],
856
+ prop_types: {
857
+ color: {
858
+ kind: 'string',
859
+ key: 'color',
860
+ default: null,
861
+ meta: {},
862
+ settings: {},
863
+ dependencies: null,
864
+ initial_value: null,
865
+ },
866
+ 'global-color-variable': {
867
+ kind: 'string',
868
+ key: 'global-color-variable',
869
+ default: null,
870
+ meta: {},
871
+ settings: {},
872
+ dependencies: null,
873
+ initial_value: null,
874
+ },
875
+ },
876
+ dependencies: null,
877
+ initial_value: null,
878
+ },
879
+ offset: {
880
+ kind: 'number',
881
+ key: 'number',
882
+ default: null,
883
+ meta: {},
884
+ settings: {},
885
+ dependencies: null,
886
+ initial_value: null,
887
+ },
888
+ },
889
+ dependencies: null,
890
+ initial_value: null,
891
+ },
892
+ dependencies: null,
893
+ initial_value: null,
894
+ },
895
+ positions: {
896
+ kind: 'string',
897
+ key: 'string',
898
+ default: null,
899
+ meta: {},
900
+ settings: {
901
+ enum: [
902
+ 'center center',
903
+ 'center left',
904
+ 'center right',
905
+ 'top center',
906
+ 'top left',
907
+ 'top right',
908
+ 'bottom center',
909
+ 'bottom left',
910
+ 'bottom right',
911
+ ],
912
+ },
913
+ dependencies: null,
914
+ initial_value: null,
915
+ },
916
+ },
917
+ dependencies: null,
918
+ initial_value: null,
919
+ },
920
+ },
921
+ dependencies: null,
922
+ initial_value: null,
923
+ },
924
+ dependencies: null,
925
+ initial_value: null,
926
+ },
927
+ color: {
928
+ kind: 'union',
929
+ default: null,
930
+ meta: [],
931
+ settings: [],
932
+ prop_types: {
933
+ color: {
934
+ kind: 'string',
935
+ key: 'color',
936
+ default: null,
937
+ meta: {},
938
+ settings: {},
939
+ dependencies: null,
940
+ initial_value: null,
941
+ },
942
+ 'global-color-variable': {
943
+ kind: 'string',
944
+ key: 'global-color-variable',
945
+ default: null,
946
+ meta: {},
947
+ settings: {},
948
+ dependencies: null,
949
+ initial_value: null,
950
+ },
951
+ },
952
+ dependencies: null,
953
+ initial_value: null,
954
+ },
955
+ clip: {
956
+ kind: 'string',
957
+ key: 'string',
958
+ default: null,
959
+ meta: {},
960
+ settings: {
961
+ enum: [ 'border-box', 'padding-box', 'content-box', 'text' ],
962
+ },
963
+ dependencies: null,
964
+ initial_value: null,
965
+ },
966
+ },
967
+ dependencies: null,
968
+ initial_value: null,
969
+ } as unknown as ObjectPropType,
970
+ } as PropsSchema;