@elementor/editor-controls 4.4.0-1131 → 4.4.0-1132
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 +14 -2
- package/dist/index.d.ts +14 -2
- package/dist/index.js +1851 -1686
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1542 -1377
- package/dist/index.mjs.map +1 -1
- package/package.json +16 -16
- package/src/controls/image-control.tsx +25 -18
- package/src/controls/image-optimize-trigger.tsx +215 -0
- package/src/controls/inline-editing-control.tsx +100 -80
- package/src/controls/notice-control.tsx +2 -2
package/dist/index.d.mts
CHANGED
|
@@ -10,14 +10,24 @@ import { ElementID } from '@elementor/editor-elements';
|
|
|
10
10
|
import * as _mui_material from '@mui/material';
|
|
11
11
|
import * as _elementor_locations from '@elementor/locations';
|
|
12
12
|
|
|
13
|
+
type ImagePromotion = {
|
|
14
|
+
label?: string;
|
|
15
|
+
title?: string;
|
|
16
|
+
content: string;
|
|
17
|
+
buttonText?: string;
|
|
18
|
+
buttonUrl?: string;
|
|
19
|
+
dismissible?: string;
|
|
20
|
+
};
|
|
21
|
+
|
|
13
22
|
type ImageControlProps = {
|
|
14
23
|
sizes: {
|
|
15
24
|
label: string;
|
|
16
25
|
value: string;
|
|
17
26
|
}[];
|
|
18
27
|
label?: string;
|
|
28
|
+
promotion?: ImagePromotion;
|
|
19
29
|
};
|
|
20
|
-
declare const ImageControl: ControlComponent$1<({ sizes, label }: ImageControlProps) => React$1.JSX.Element>;
|
|
30
|
+
declare const ImageControl: ControlComponent$1<({ sizes, promotion, label }: ImageControlProps) => React$1.JSX.Element>;
|
|
21
31
|
|
|
22
32
|
declare const TextControl: ControlComponent$1<({ placeholder: propPlaceholder, error, inputValue, inputDisabled, helperText, sx, ariaLabel, }: {
|
|
23
33
|
placeholder?: string;
|
|
@@ -486,8 +496,10 @@ type Props$5 = ControlProps<{
|
|
|
486
496
|
sx?: SxProps<Theme>;
|
|
487
497
|
attributes?: Record<string, string>;
|
|
488
498
|
props?: ComponentProps<'div'>;
|
|
499
|
+
label?: string;
|
|
500
|
+
promotion?: ImagePromotion;
|
|
489
501
|
}>;
|
|
490
|
-
declare const InlineEditingControl: ControlComponent$1<({ sx, attributes, props, context: { elementId } }: Props$5) => React$1.JSX.Element>;
|
|
502
|
+
declare const InlineEditingControl: ControlComponent$1<({ sx, attributes, props, label, promotion, context: { elementId } }: Props$5) => React$1.JSX.Element>;
|
|
491
503
|
|
|
492
504
|
declare const EmailFormActionControl: ControlComponent$1<({ toPlaceholder, label }: {
|
|
493
505
|
toPlaceholder?: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -10,14 +10,24 @@ import { ElementID } from '@elementor/editor-elements';
|
|
|
10
10
|
import * as _mui_material from '@mui/material';
|
|
11
11
|
import * as _elementor_locations from '@elementor/locations';
|
|
12
12
|
|
|
13
|
+
type ImagePromotion = {
|
|
14
|
+
label?: string;
|
|
15
|
+
title?: string;
|
|
16
|
+
content: string;
|
|
17
|
+
buttonText?: string;
|
|
18
|
+
buttonUrl?: string;
|
|
19
|
+
dismissible?: string;
|
|
20
|
+
};
|
|
21
|
+
|
|
13
22
|
type ImageControlProps = {
|
|
14
23
|
sizes: {
|
|
15
24
|
label: string;
|
|
16
25
|
value: string;
|
|
17
26
|
}[];
|
|
18
27
|
label?: string;
|
|
28
|
+
promotion?: ImagePromotion;
|
|
19
29
|
};
|
|
20
|
-
declare const ImageControl: ControlComponent$1<({ sizes, label }: ImageControlProps) => React$1.JSX.Element>;
|
|
30
|
+
declare const ImageControl: ControlComponent$1<({ sizes, promotion, label }: ImageControlProps) => React$1.JSX.Element>;
|
|
21
31
|
|
|
22
32
|
declare const TextControl: ControlComponent$1<({ placeholder: propPlaceholder, error, inputValue, inputDisabled, helperText, sx, ariaLabel, }: {
|
|
23
33
|
placeholder?: string;
|
|
@@ -486,8 +496,10 @@ type Props$5 = ControlProps<{
|
|
|
486
496
|
sx?: SxProps<Theme>;
|
|
487
497
|
attributes?: Record<string, string>;
|
|
488
498
|
props?: ComponentProps<'div'>;
|
|
499
|
+
label?: string;
|
|
500
|
+
promotion?: ImagePromotion;
|
|
489
501
|
}>;
|
|
490
|
-
declare const InlineEditingControl: ControlComponent$1<({ sx, attributes, props, context: { elementId } }: Props$5) => React$1.JSX.Element>;
|
|
502
|
+
declare const InlineEditingControl: ControlComponent$1<({ sx, attributes, props, label, promotion, context: { elementId } }: Props$5) => React$1.JSX.Element>;
|
|
491
503
|
|
|
492
504
|
declare const EmailFormActionControl: ControlComponent$1<({ toPlaceholder, label }: {
|
|
493
505
|
toPlaceholder?: string;
|