@elementor/editor-controls 4.4.0-1143 → 4.4.0-1145
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.js +32 -15
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +32 -15
- package/dist/index.mjs.map +1 -1
- package/package.json +16 -16
- package/src/controls/background-control/background-overlay/background-overlay-repeater-control.tsx +7 -1
- package/src/controls/notice-control.tsx +12 -5
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elementor/editor-controls",
|
|
3
3
|
"description": "This package contains the controls model and utils for the Elementor editor",
|
|
4
|
-
"version": "4.4.0-
|
|
4
|
+
"version": "4.4.0-1145",
|
|
5
5
|
"private": false,
|
|
6
6
|
"author": "Elementor Team",
|
|
7
7
|
"homepage": "https://elementor.com/",
|
|
@@ -40,23 +40,23 @@
|
|
|
40
40
|
"dev": "tsup --config=../../tsup.dev.ts"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@elementor/editor-current-user": "4.4.0-
|
|
44
|
-
"@elementor/editor-elements": "4.4.0-
|
|
45
|
-
"@elementor/editor-props": "4.4.0-
|
|
46
|
-
"@elementor/editor-responsive": "4.4.0-
|
|
47
|
-
"@elementor/editor-ui": "4.4.0-
|
|
48
|
-
"@elementor/editor-v1-adapters": "4.4.0-
|
|
49
|
-
"@elementor/env": "4.4.0-
|
|
50
|
-
"@elementor/events": "4.4.0-
|
|
51
|
-
"@elementor/http-client": "4.4.0-
|
|
43
|
+
"@elementor/editor-current-user": "4.4.0-1145",
|
|
44
|
+
"@elementor/editor-elements": "4.4.0-1145",
|
|
45
|
+
"@elementor/editor-props": "4.4.0-1145",
|
|
46
|
+
"@elementor/editor-responsive": "4.4.0-1145",
|
|
47
|
+
"@elementor/editor-ui": "4.4.0-1145",
|
|
48
|
+
"@elementor/editor-v1-adapters": "4.4.0-1145",
|
|
49
|
+
"@elementor/env": "4.4.0-1145",
|
|
50
|
+
"@elementor/events": "4.4.0-1145",
|
|
51
|
+
"@elementor/http-client": "4.4.0-1145",
|
|
52
52
|
"@elementor/icons": "~1.78.1",
|
|
53
|
-
"@elementor/locations": "4.4.0-
|
|
54
|
-
"@elementor/query": "4.4.0-
|
|
55
|
-
"@elementor/schema": "4.4.0-
|
|
56
|
-
"@elementor/session": "4.4.0-
|
|
53
|
+
"@elementor/locations": "4.4.0-1145",
|
|
54
|
+
"@elementor/query": "4.4.0-1145",
|
|
55
|
+
"@elementor/schema": "4.4.0-1145",
|
|
56
|
+
"@elementor/session": "4.4.0-1145",
|
|
57
57
|
"@elementor/ui": "1.41.4",
|
|
58
|
-
"@elementor/utils": "4.4.0-
|
|
59
|
-
"@elementor/wp-media": "4.4.0-
|
|
58
|
+
"@elementor/utils": "4.4.0-1145",
|
|
59
|
+
"@elementor/wp-media": "4.4.0-1145",
|
|
60
60
|
"@monaco-editor/react": "^4.7.0",
|
|
61
61
|
"@tanstack/react-virtual": "^3.13.3",
|
|
62
62
|
"@tiptap/extension-bold": "^3.11.1",
|
package/src/controls/background-control/background-overlay/background-overlay-repeater-control.tsx
CHANGED
|
@@ -311,7 +311,13 @@ const getGradientValue = ( value: BackgroundOverlayItemPropValue ) => {
|
|
|
311
311
|
?.join( ',' );
|
|
312
312
|
|
|
313
313
|
if ( gradient.type.value === 'linear' ) {
|
|
314
|
-
|
|
314
|
+
const angle = gradient.angle?.value;
|
|
315
|
+
|
|
316
|
+
if ( typeof angle !== 'number' ) {
|
|
317
|
+
return `linear-gradient(${ stops })`;
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
return `linear-gradient(${ angle }deg, ${ stops })`;
|
|
315
321
|
}
|
|
316
322
|
|
|
317
323
|
return `radial-gradient(circle at ${ gradient.positions.value }, ${ stops })`;
|
|
@@ -83,15 +83,22 @@ export const NoticeControl = createControl(
|
|
|
83
83
|
};
|
|
84
84
|
|
|
85
85
|
const handleActionClick = () => {
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
if ( dismissible ) {
|
|
89
|
-
markNoticeAsDismissedInSession( dismissible );
|
|
86
|
+
if ( ! dismissible ) {
|
|
87
|
+
return;
|
|
90
88
|
}
|
|
89
|
+
|
|
90
|
+
setIsDismissed( true );
|
|
91
|
+
markNoticeAsDismissedInSession( dismissible );
|
|
91
92
|
};
|
|
92
93
|
|
|
93
94
|
return (
|
|
94
|
-
<Alert
|
|
95
|
+
<Alert
|
|
96
|
+
variant="outlined"
|
|
97
|
+
severity={ severity }
|
|
98
|
+
icon={ icon }
|
|
99
|
+
size="small"
|
|
100
|
+
onClose={ dismissible ? handleDismiss : undefined }
|
|
101
|
+
>
|
|
95
102
|
{ heading && <NoticeTitle>{ heading }</NoticeTitle> }
|
|
96
103
|
<Typography variant="caption" color="textSecondary" sx={ { fontStyle: 'italic' } }>
|
|
97
104
|
{ content }
|