@elementor/editor-variables 3.35.0-426 → 3.35.0-428
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 +72 -78
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +23 -37
- package/dist/index.mjs.map +1 -1
- package/package.json +15 -15
- package/src/components/ui/delete-confirmation-dialog.tsx +14 -37
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elementor/editor-variables",
|
|
3
|
-
"version": "3.35.0-
|
|
3
|
+
"version": "3.35.0-428",
|
|
4
4
|
"private": false,
|
|
5
5
|
"author": "Elementor Team",
|
|
6
6
|
"homepage": "https://elementor.com/",
|
|
@@ -39,22 +39,22 @@
|
|
|
39
39
|
"dev": "tsup --config=../../tsup.dev.ts"
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@elementor/editor": "3.35.0-
|
|
43
|
-
"@elementor/editor-canvas": "3.35.0-
|
|
44
|
-
"@elementor/editor-controls": "3.35.0-
|
|
45
|
-
"@elementor/editor-current-user": "3.35.0-
|
|
46
|
-
"@elementor/editor-editing-panel": "3.35.0-
|
|
47
|
-
"@elementor/editor-mcp": "3.35.0-
|
|
48
|
-
"@elementor/editor-panels": "3.35.0-
|
|
49
|
-
"@elementor/editor-props": "3.35.0-
|
|
50
|
-
"@elementor/editor-ui": "3.35.0-
|
|
51
|
-
"@elementor/editor-v1-adapters": "3.35.0-
|
|
52
|
-
"@elementor/http-client": "3.35.0-
|
|
42
|
+
"@elementor/editor": "3.35.0-428",
|
|
43
|
+
"@elementor/editor-canvas": "3.35.0-428",
|
|
44
|
+
"@elementor/editor-controls": "3.35.0-428",
|
|
45
|
+
"@elementor/editor-current-user": "3.35.0-428",
|
|
46
|
+
"@elementor/editor-editing-panel": "3.35.0-428",
|
|
47
|
+
"@elementor/editor-mcp": "3.35.0-428",
|
|
48
|
+
"@elementor/editor-panels": "3.35.0-428",
|
|
49
|
+
"@elementor/editor-props": "3.35.0-428",
|
|
50
|
+
"@elementor/editor-ui": "3.35.0-428",
|
|
51
|
+
"@elementor/editor-v1-adapters": "3.35.0-428",
|
|
52
|
+
"@elementor/http-client": "3.35.0-428",
|
|
53
53
|
"@elementor/icons": "^1.63.0",
|
|
54
|
-
"@elementor/mixpanel": "3.35.0-
|
|
55
|
-
"@elementor/schema": "3.35.0-
|
|
54
|
+
"@elementor/mixpanel": "3.35.0-428",
|
|
55
|
+
"@elementor/schema": "3.35.0-428",
|
|
56
56
|
"@elementor/ui": "1.36.17",
|
|
57
|
-
"@elementor/utils": "3.35.0-
|
|
57
|
+
"@elementor/utils": "3.35.0-428",
|
|
58
58
|
"@wordpress/i18n": "^5.13.0"
|
|
59
59
|
},
|
|
60
60
|
"peerDependencies": {
|
|
@@ -1,37 +1,21 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
Button,
|
|
5
|
-
Dialog,
|
|
6
|
-
DialogActions,
|
|
7
|
-
DialogContent,
|
|
8
|
-
DialogContentText,
|
|
9
|
-
DialogTitle,
|
|
10
|
-
Typography,
|
|
11
|
-
} from '@elementor/ui';
|
|
2
|
+
import { ConfirmationDialog } from '@elementor/editor-ui';
|
|
3
|
+
import { Typography } from '@elementor/ui';
|
|
12
4
|
import { __ } from '@wordpress/i18n';
|
|
13
5
|
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
export const DeleteConfirmationDialog = ( {
|
|
17
|
-
open,
|
|
18
|
-
label,
|
|
19
|
-
closeDialog,
|
|
20
|
-
onConfirm,
|
|
21
|
-
}: {
|
|
6
|
+
type DeleteConfirmationDialogProps = {
|
|
22
7
|
open: boolean;
|
|
23
8
|
label: string;
|
|
24
9
|
closeDialog: () => void;
|
|
25
10
|
onConfirm: () => void;
|
|
26
|
-
}
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
export const DeleteConfirmationDialog = ( { open, label, closeDialog, onConfirm }: DeleteConfirmationDialogProps ) => {
|
|
27
14
|
return (
|
|
28
|
-
<
|
|
29
|
-
<
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
</DialogTitle>
|
|
33
|
-
<DialogContent>
|
|
34
|
-
<DialogContentText variant="body2" color="textPrimary">
|
|
15
|
+
<ConfirmationDialog open={ open } onClose={ closeDialog }>
|
|
16
|
+
<ConfirmationDialog.Title>{ __( 'Delete this variable?', 'elementor' ) }</ConfirmationDialog.Title>
|
|
17
|
+
<ConfirmationDialog.Content>
|
|
18
|
+
<ConfirmationDialog.ContentText>
|
|
35
19
|
{ __( 'All elements using', 'elementor' ) }
|
|
36
20
|
|
|
37
21
|
<Typography variant="subtitle2" component="span" sx={ { lineBreak: 'anywhere' } }>
|
|
@@ -39,16 +23,9 @@ export const DeleteConfirmationDialog = ( {
|
|
|
39
23
|
</Typography>
|
|
40
24
|
|
|
41
25
|
{ __( 'will keep their current values, but the variable itself will be removed.', 'elementor' ) }
|
|
42
|
-
</
|
|
43
|
-
</
|
|
44
|
-
<
|
|
45
|
-
|
|
46
|
-
{ __( 'Not now', 'elementor' ) }
|
|
47
|
-
</Button>
|
|
48
|
-
<Button variant="contained" color="error" onClick={ onConfirm }>
|
|
49
|
-
{ __( 'Delete', 'elementor' ) }
|
|
50
|
-
</Button>
|
|
51
|
-
</DialogActions>
|
|
52
|
-
</Dialog>
|
|
26
|
+
</ConfirmationDialog.ContentText>
|
|
27
|
+
</ConfirmationDialog.Content>
|
|
28
|
+
<ConfirmationDialog.Actions onClose={ closeDialog } onConfirm={ onConfirm } />
|
|
29
|
+
</ConfirmationDialog>
|
|
53
30
|
);
|
|
54
31
|
};
|