@elementor/editor-editing-panel 4.3.0-964 → 4.3.0-966
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 +15 -15
- package/dist/index.d.ts +15 -15
- package/dist/index.js +3 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +24 -24
- package/src/components/css-classes/css-class-menu.tsx +3 -0
package/dist/index.d.mts
CHANGED
|
@@ -418,8 +418,8 @@ declare const controlTypes: {
|
|
|
418
418
|
id?: string;
|
|
419
419
|
ariaLabel?: string;
|
|
420
420
|
} & {
|
|
421
|
-
units?:
|
|
422
|
-
defaultUnit?:
|
|
421
|
+
units?: _elementor_editor_controls.LengthUnit[] | undefined;
|
|
422
|
+
defaultUnit?: _elementor_editor_controls.LengthUnit | undefined;
|
|
423
423
|
} & {
|
|
424
424
|
variant: "length";
|
|
425
425
|
}) | ({
|
|
@@ -459,7 +459,7 @@ declare const controlTypes: {
|
|
|
459
459
|
readonly propTypeUtil: {
|
|
460
460
|
extract: (prop: unknown) => {
|
|
461
461
|
size: number | "";
|
|
462
|
-
unit: "px" | "em" | "rem" | "%" | "vw" | "vh" | "ch";
|
|
462
|
+
unit: "px" | "em" | "rem" | "%" | "vw" | "vh" | "ch" | "fr";
|
|
463
463
|
} | {
|
|
464
464
|
size: number | "";
|
|
465
465
|
unit: "deg" | "rad" | "grad" | "turn";
|
|
@@ -475,7 +475,7 @@ declare const controlTypes: {
|
|
|
475
475
|
} | null;
|
|
476
476
|
isValid: (prop: unknown) => prop is _elementor_editor_props.TransformablePropValue<"size", {
|
|
477
477
|
size: number | "";
|
|
478
|
-
unit: "px" | "em" | "rem" | "%" | "vw" | "vh" | "ch";
|
|
478
|
+
unit: "px" | "em" | "rem" | "%" | "vw" | "vh" | "ch" | "fr";
|
|
479
479
|
} | {
|
|
480
480
|
size: number | "";
|
|
481
481
|
unit: "deg" | "rad" | "grad" | "turn";
|
|
@@ -492,7 +492,7 @@ declare const controlTypes: {
|
|
|
492
492
|
create: {
|
|
493
493
|
(value: {
|
|
494
494
|
size: number | "";
|
|
495
|
-
unit: "px" | "em" | "rem" | "%" | "vw" | "vh" | "ch";
|
|
495
|
+
unit: "px" | "em" | "rem" | "%" | "vw" | "vh" | "ch" | "fr";
|
|
496
496
|
} | {
|
|
497
497
|
size: number | "";
|
|
498
498
|
unit: "deg" | "rad" | "grad" | "turn";
|
|
@@ -507,7 +507,7 @@ declare const controlTypes: {
|
|
|
507
507
|
unit: "custom";
|
|
508
508
|
}): _elementor_editor_props.TransformablePropValue<"size", {
|
|
509
509
|
size: number | "";
|
|
510
|
-
unit: "px" | "em" | "rem" | "%" | "vw" | "vh" | "ch";
|
|
510
|
+
unit: "px" | "em" | "rem" | "%" | "vw" | "vh" | "ch" | "fr";
|
|
511
511
|
} | {
|
|
512
512
|
size: number | "";
|
|
513
513
|
unit: "deg" | "rad" | "grad" | "turn";
|
|
@@ -523,7 +523,7 @@ declare const controlTypes: {
|
|
|
523
523
|
}>;
|
|
524
524
|
(value: {
|
|
525
525
|
size: number | "";
|
|
526
|
-
unit: "px" | "em" | "rem" | "%" | "vw" | "vh" | "ch";
|
|
526
|
+
unit: "px" | "em" | "rem" | "%" | "vw" | "vh" | "ch" | "fr";
|
|
527
527
|
} | {
|
|
528
528
|
size: number | "";
|
|
529
529
|
unit: "deg" | "rad" | "grad" | "turn";
|
|
@@ -538,7 +538,7 @@ declare const controlTypes: {
|
|
|
538
538
|
unit: "custom";
|
|
539
539
|
}, createOptions?: _elementor_editor_props.CreateOptions): _elementor_editor_props.TransformablePropValue<"size", {
|
|
540
540
|
size: number | "";
|
|
541
|
-
unit: "px" | "em" | "rem" | "%" | "vw" | "vh" | "ch";
|
|
541
|
+
unit: "px" | "em" | "rem" | "%" | "vw" | "vh" | "ch" | "fr";
|
|
542
542
|
} | {
|
|
543
543
|
size: number | "";
|
|
544
544
|
unit: "deg" | "rad" | "grad" | "turn";
|
|
@@ -554,7 +554,7 @@ declare const controlTypes: {
|
|
|
554
554
|
}>;
|
|
555
555
|
(value: (prev?: {
|
|
556
556
|
size: number | "";
|
|
557
|
-
unit: "px" | "em" | "rem" | "%" | "vw" | "vh" | "ch";
|
|
557
|
+
unit: "px" | "em" | "rem" | "%" | "vw" | "vh" | "ch" | "fr";
|
|
558
558
|
} | {
|
|
559
559
|
size: number | "";
|
|
560
560
|
unit: "deg" | "rad" | "grad" | "turn";
|
|
@@ -569,7 +569,7 @@ declare const controlTypes: {
|
|
|
569
569
|
unit: "custom";
|
|
570
570
|
} | undefined) => {
|
|
571
571
|
size: number | "";
|
|
572
|
-
unit: "px" | "em" | "rem" | "%" | "vw" | "vh" | "ch";
|
|
572
|
+
unit: "px" | "em" | "rem" | "%" | "vw" | "vh" | "ch" | "fr";
|
|
573
573
|
} | {
|
|
574
574
|
size: number | "";
|
|
575
575
|
unit: "deg" | "rad" | "grad" | "turn";
|
|
@@ -584,7 +584,7 @@ declare const controlTypes: {
|
|
|
584
584
|
unit: "custom";
|
|
585
585
|
}, createOptions: _elementor_editor_props.CreateOptions): _elementor_editor_props.TransformablePropValue<"size", {
|
|
586
586
|
size: number | "";
|
|
587
|
-
unit: "px" | "em" | "rem" | "%" | "vw" | "vh" | "ch";
|
|
587
|
+
unit: "px" | "em" | "rem" | "%" | "vw" | "vh" | "ch" | "fr";
|
|
588
588
|
} | {
|
|
589
589
|
size: number | "";
|
|
590
590
|
unit: "deg" | "rad" | "grad" | "turn";
|
|
@@ -603,7 +603,7 @@ declare const controlTypes: {
|
|
|
603
603
|
$$type: zod.ZodLiteral<"size">;
|
|
604
604
|
value: zod.ZodType<{
|
|
605
605
|
size: number | "";
|
|
606
|
-
unit: "px" | "em" | "rem" | "%" | "vw" | "vh" | "ch";
|
|
606
|
+
unit: "px" | "em" | "rem" | "%" | "vw" | "vh" | "ch" | "fr";
|
|
607
607
|
} | {
|
|
608
608
|
size: number | "";
|
|
609
609
|
unit: "deg" | "rad" | "grad" | "turn";
|
|
@@ -618,7 +618,7 @@ declare const controlTypes: {
|
|
|
618
618
|
unit: "custom";
|
|
619
619
|
}, zod.ZodTypeDef, {
|
|
620
620
|
size: number | "";
|
|
621
|
-
unit: "px" | "em" | "rem" | "%" | "vw" | "vh" | "ch";
|
|
621
|
+
unit: "px" | "em" | "rem" | "%" | "vw" | "vh" | "ch" | "fr";
|
|
622
622
|
} | {
|
|
623
623
|
size: number | "";
|
|
624
624
|
unit: "deg" | "rad" | "grad" | "turn";
|
|
@@ -637,7 +637,7 @@ declare const controlTypes: {
|
|
|
637
637
|
$$type: "size";
|
|
638
638
|
value: {
|
|
639
639
|
size: number | "";
|
|
640
|
-
unit: "px" | "em" | "rem" | "%" | "vw" | "vh" | "ch";
|
|
640
|
+
unit: "px" | "em" | "rem" | "%" | "vw" | "vh" | "ch" | "fr";
|
|
641
641
|
} | {
|
|
642
642
|
size: number | "";
|
|
643
643
|
unit: "deg" | "rad" | "grad" | "turn";
|
|
@@ -656,7 +656,7 @@ declare const controlTypes: {
|
|
|
656
656
|
$$type: "size";
|
|
657
657
|
value: {
|
|
658
658
|
size: number | "";
|
|
659
|
-
unit: "px" | "em" | "rem" | "%" | "vw" | "vh" | "ch";
|
|
659
|
+
unit: "px" | "em" | "rem" | "%" | "vw" | "vh" | "ch" | "fr";
|
|
660
660
|
} | {
|
|
661
661
|
size: number | "";
|
|
662
662
|
unit: "deg" | "rad" | "grad" | "turn";
|
package/dist/index.d.ts
CHANGED
|
@@ -418,8 +418,8 @@ declare const controlTypes: {
|
|
|
418
418
|
id?: string;
|
|
419
419
|
ariaLabel?: string;
|
|
420
420
|
} & {
|
|
421
|
-
units?:
|
|
422
|
-
defaultUnit?:
|
|
421
|
+
units?: _elementor_editor_controls.LengthUnit[] | undefined;
|
|
422
|
+
defaultUnit?: _elementor_editor_controls.LengthUnit | undefined;
|
|
423
423
|
} & {
|
|
424
424
|
variant: "length";
|
|
425
425
|
}) | ({
|
|
@@ -459,7 +459,7 @@ declare const controlTypes: {
|
|
|
459
459
|
readonly propTypeUtil: {
|
|
460
460
|
extract: (prop: unknown) => {
|
|
461
461
|
size: number | "";
|
|
462
|
-
unit: "px" | "em" | "rem" | "%" | "vw" | "vh" | "ch";
|
|
462
|
+
unit: "px" | "em" | "rem" | "%" | "vw" | "vh" | "ch" | "fr";
|
|
463
463
|
} | {
|
|
464
464
|
size: number | "";
|
|
465
465
|
unit: "deg" | "rad" | "grad" | "turn";
|
|
@@ -475,7 +475,7 @@ declare const controlTypes: {
|
|
|
475
475
|
} | null;
|
|
476
476
|
isValid: (prop: unknown) => prop is _elementor_editor_props.TransformablePropValue<"size", {
|
|
477
477
|
size: number | "";
|
|
478
|
-
unit: "px" | "em" | "rem" | "%" | "vw" | "vh" | "ch";
|
|
478
|
+
unit: "px" | "em" | "rem" | "%" | "vw" | "vh" | "ch" | "fr";
|
|
479
479
|
} | {
|
|
480
480
|
size: number | "";
|
|
481
481
|
unit: "deg" | "rad" | "grad" | "turn";
|
|
@@ -492,7 +492,7 @@ declare const controlTypes: {
|
|
|
492
492
|
create: {
|
|
493
493
|
(value: {
|
|
494
494
|
size: number | "";
|
|
495
|
-
unit: "px" | "em" | "rem" | "%" | "vw" | "vh" | "ch";
|
|
495
|
+
unit: "px" | "em" | "rem" | "%" | "vw" | "vh" | "ch" | "fr";
|
|
496
496
|
} | {
|
|
497
497
|
size: number | "";
|
|
498
498
|
unit: "deg" | "rad" | "grad" | "turn";
|
|
@@ -507,7 +507,7 @@ declare const controlTypes: {
|
|
|
507
507
|
unit: "custom";
|
|
508
508
|
}): _elementor_editor_props.TransformablePropValue<"size", {
|
|
509
509
|
size: number | "";
|
|
510
|
-
unit: "px" | "em" | "rem" | "%" | "vw" | "vh" | "ch";
|
|
510
|
+
unit: "px" | "em" | "rem" | "%" | "vw" | "vh" | "ch" | "fr";
|
|
511
511
|
} | {
|
|
512
512
|
size: number | "";
|
|
513
513
|
unit: "deg" | "rad" | "grad" | "turn";
|
|
@@ -523,7 +523,7 @@ declare const controlTypes: {
|
|
|
523
523
|
}>;
|
|
524
524
|
(value: {
|
|
525
525
|
size: number | "";
|
|
526
|
-
unit: "px" | "em" | "rem" | "%" | "vw" | "vh" | "ch";
|
|
526
|
+
unit: "px" | "em" | "rem" | "%" | "vw" | "vh" | "ch" | "fr";
|
|
527
527
|
} | {
|
|
528
528
|
size: number | "";
|
|
529
529
|
unit: "deg" | "rad" | "grad" | "turn";
|
|
@@ -538,7 +538,7 @@ declare const controlTypes: {
|
|
|
538
538
|
unit: "custom";
|
|
539
539
|
}, createOptions?: _elementor_editor_props.CreateOptions): _elementor_editor_props.TransformablePropValue<"size", {
|
|
540
540
|
size: number | "";
|
|
541
|
-
unit: "px" | "em" | "rem" | "%" | "vw" | "vh" | "ch";
|
|
541
|
+
unit: "px" | "em" | "rem" | "%" | "vw" | "vh" | "ch" | "fr";
|
|
542
542
|
} | {
|
|
543
543
|
size: number | "";
|
|
544
544
|
unit: "deg" | "rad" | "grad" | "turn";
|
|
@@ -554,7 +554,7 @@ declare const controlTypes: {
|
|
|
554
554
|
}>;
|
|
555
555
|
(value: (prev?: {
|
|
556
556
|
size: number | "";
|
|
557
|
-
unit: "px" | "em" | "rem" | "%" | "vw" | "vh" | "ch";
|
|
557
|
+
unit: "px" | "em" | "rem" | "%" | "vw" | "vh" | "ch" | "fr";
|
|
558
558
|
} | {
|
|
559
559
|
size: number | "";
|
|
560
560
|
unit: "deg" | "rad" | "grad" | "turn";
|
|
@@ -569,7 +569,7 @@ declare const controlTypes: {
|
|
|
569
569
|
unit: "custom";
|
|
570
570
|
} | undefined) => {
|
|
571
571
|
size: number | "";
|
|
572
|
-
unit: "px" | "em" | "rem" | "%" | "vw" | "vh" | "ch";
|
|
572
|
+
unit: "px" | "em" | "rem" | "%" | "vw" | "vh" | "ch" | "fr";
|
|
573
573
|
} | {
|
|
574
574
|
size: number | "";
|
|
575
575
|
unit: "deg" | "rad" | "grad" | "turn";
|
|
@@ -584,7 +584,7 @@ declare const controlTypes: {
|
|
|
584
584
|
unit: "custom";
|
|
585
585
|
}, createOptions: _elementor_editor_props.CreateOptions): _elementor_editor_props.TransformablePropValue<"size", {
|
|
586
586
|
size: number | "";
|
|
587
|
-
unit: "px" | "em" | "rem" | "%" | "vw" | "vh" | "ch";
|
|
587
|
+
unit: "px" | "em" | "rem" | "%" | "vw" | "vh" | "ch" | "fr";
|
|
588
588
|
} | {
|
|
589
589
|
size: number | "";
|
|
590
590
|
unit: "deg" | "rad" | "grad" | "turn";
|
|
@@ -603,7 +603,7 @@ declare const controlTypes: {
|
|
|
603
603
|
$$type: zod.ZodLiteral<"size">;
|
|
604
604
|
value: zod.ZodType<{
|
|
605
605
|
size: number | "";
|
|
606
|
-
unit: "px" | "em" | "rem" | "%" | "vw" | "vh" | "ch";
|
|
606
|
+
unit: "px" | "em" | "rem" | "%" | "vw" | "vh" | "ch" | "fr";
|
|
607
607
|
} | {
|
|
608
608
|
size: number | "";
|
|
609
609
|
unit: "deg" | "rad" | "grad" | "turn";
|
|
@@ -618,7 +618,7 @@ declare const controlTypes: {
|
|
|
618
618
|
unit: "custom";
|
|
619
619
|
}, zod.ZodTypeDef, {
|
|
620
620
|
size: number | "";
|
|
621
|
-
unit: "px" | "em" | "rem" | "%" | "vw" | "vh" | "ch";
|
|
621
|
+
unit: "px" | "em" | "rem" | "%" | "vw" | "vh" | "ch" | "fr";
|
|
622
622
|
} | {
|
|
623
623
|
size: number | "";
|
|
624
624
|
unit: "deg" | "rad" | "grad" | "turn";
|
|
@@ -637,7 +637,7 @@ declare const controlTypes: {
|
|
|
637
637
|
$$type: "size";
|
|
638
638
|
value: {
|
|
639
639
|
size: number | "";
|
|
640
|
-
unit: "px" | "em" | "rem" | "%" | "vw" | "vh" | "ch";
|
|
640
|
+
unit: "px" | "em" | "rem" | "%" | "vw" | "vh" | "ch" | "fr";
|
|
641
641
|
} | {
|
|
642
642
|
size: number | "";
|
|
643
643
|
unit: "deg" | "rad" | "grad" | "turn";
|
|
@@ -656,7 +656,7 @@ declare const controlTypes: {
|
|
|
656
656
|
$$type: "size";
|
|
657
657
|
value: {
|
|
658
658
|
size: number | "";
|
|
659
|
-
unit: "px" | "em" | "rem" | "%" | "vw" | "vh" | "ch";
|
|
659
|
+
unit: "px" | "em" | "rem" | "%" | "vw" | "vh" | "ch" | "fr";
|
|
660
660
|
} | {
|
|
661
661
|
size: number | "";
|
|
662
662
|
unit: "deg" | "rad" | "grad" | "turn";
|
package/dist/index.js
CHANGED
|
@@ -1040,6 +1040,9 @@ function ClassStatesMenu({ closeMenu }) {
|
|
|
1040
1040
|
var CLASS_STATES_MAP = {
|
|
1041
1041
|
selected: {
|
|
1042
1042
|
label: (0, import_i18n4.__)("selected", "elementor")
|
|
1043
|
+
},
|
|
1044
|
+
disabled: {
|
|
1045
|
+
label: (0, import_i18n4.__)("disabled", "elementor")
|
|
1043
1046
|
}
|
|
1044
1047
|
};
|
|
1045
1048
|
function useElementStates() {
|