@flozy/editor 9.0.7 → 9.1.0

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.
Files changed (35) hide show
  1. package/dist/Editor/ChatEditor.js +2 -2
  2. package/dist/Editor/CommonEditor.js +11 -41
  3. package/dist/Editor/Editor.css +1 -15
  4. package/dist/Editor/Elements/Color Picker/ColorPicker.js +1 -0
  5. package/dist/Editor/Elements/DataView/Layouts/ColumnView.js +1 -4
  6. package/dist/Editor/Elements/DataView/Layouts/DataTypes/Components/Select.js +4 -3
  7. package/dist/Editor/Elements/DataView/Layouts/DataTypes/Components/styles.js +1 -6
  8. package/dist/Editor/Elements/DataView/Layouts/DataTypes/DateType.js +9 -19
  9. package/dist/Editor/Elements/DataView/Layouts/TableStyles.js +2 -32
  10. package/dist/Editor/Elements/DataView/Layouts/TableView.js +29 -126
  11. package/dist/Editor/Elements/DataView/Layouts/ViewData.js +3 -3
  12. package/dist/Editor/Elements/DataView/Providers/DataViewProvider.js +1 -1
  13. package/dist/Editor/Elements/DataView/styles.js +8 -8
  14. package/dist/Editor/Elements/Grid/GridItem.js +2 -1
  15. package/dist/Editor/Elements/Link/Link.js +43 -70
  16. package/dist/Editor/Elements/SimpleText/index.js +1 -0
  17. package/dist/Editor/Elements/Variables/Style.js +2 -28
  18. package/dist/Editor/Elements/Variables/VariableButton.js +3 -7
  19. package/dist/Editor/Toolbar/FormatTools/TextSize.js +2 -0
  20. package/dist/Editor/Toolbar/PopupTool/AddTemplates.js +8 -9
  21. package/dist/Editor/Toolbar/PopupTool/PopupToolStyle.js +6 -3
  22. package/dist/Editor/Toolbar/PopupTool/TextFormat.js +14 -38
  23. package/dist/Editor/common/DnD/Draggable.js +1 -0
  24. package/dist/Editor/common/ImageSelector/UploadStyles.js +1 -0
  25. package/dist/Editor/common/LinkSettings/index.js +2 -1
  26. package/dist/Editor/common/MentionsPopup/Styles.js +3 -3
  27. package/dist/Editor/common/RnD/Utils/gridDropItem.js +4 -5
  28. package/dist/Editor/common/StyleBuilder/pageSettingsStyle.js +7 -5
  29. package/dist/Editor/commonStyle.js +4 -59
  30. package/dist/Editor/plugins/withHTML.js +1 -1
  31. package/dist/Editor/utils/helper.js +1 -13
  32. package/dist/Editor/utils/link.js +1 -1
  33. package/package.json +2 -5
  34. package/dist/Editor/common/CustomDialog/index.js +0 -90
  35. package/dist/Editor/common/CustomDialog/styles.js +0 -80
@@ -1,90 +0,0 @@
1
- import { Button, Dialog, DialogActions, DialogContent, Grid, SwipeableDrawer, Typography, useMediaQuery } from "@mui/material";
2
- import PropTypes from "prop-types";
3
- import { useEditorContext } from "../../hooks/useMouseMove";
4
- import CustomDialogStyles from "./styles";
5
- import { forwardRef, useImperativeHandle, useState } from "react";
6
- import { jsx as _jsx } from "react/jsx-runtime";
7
- import { jsxs as _jsxs } from "react/jsx-runtime";
8
- import { Fragment as _Fragment } from "react/jsx-runtime";
9
- const CustomDialog = (props, ref) => {
10
- const {
11
- content,
12
- confirmText,
13
- cancelText,
14
- onConfirm
15
- } = props;
16
- const [open, setOpen] = useState(false);
17
- const isMobile = useMediaQuery("(max-width:899px)");
18
- const {
19
- theme
20
- } = useEditorContext();
21
- const classes = CustomDialogStyles(theme);
22
- useImperativeHandle(ref, () => ({
23
- handleOpen: () => setOpen(true),
24
- handleClose: () => setOpen(false)
25
- }));
26
- const DialogueContent = () => /*#__PURE__*/_jsxs(_Fragment, {
27
- children: [/*#__PURE__*/_jsx(DialogContent, {
28
- children: /*#__PURE__*/_jsx(Typography, {
29
- children: content
30
- })
31
- }), /*#__PURE__*/_jsxs(DialogActions, {
32
- children: [/*#__PURE__*/_jsx(Button, {
33
- className: "closeBtn",
34
- onClick: () => setOpen(false),
35
- children: cancelText
36
- }), /*#__PURE__*/_jsx(Button, {
37
- className: "confirmBtn",
38
- onClick: () => {
39
- onConfirm();
40
- setOpen(false);
41
- },
42
- children: confirmText
43
- })]
44
- })]
45
- });
46
- return /*#__PURE__*/_jsx(_Fragment, {
47
- children: !isMobile ? /*#__PURE__*/_jsx(Dialog, {
48
- className: `${classes.MuiBackdropRoot}`,
49
- open: open,
50
- onClose: () => setOpen(false),
51
- fullWidth: true,
52
- maxWidth: "sm",
53
- sx: classes.CustomDialogu,
54
- children: /*#__PURE__*/_jsx(DialogueContent, {})
55
- }) : /*#__PURE__*/_jsxs(SwipeableDrawer, {
56
- open: open,
57
- anchor: "bottom",
58
- onClose: () => setOpen(false),
59
- style: {
60
- zIndex: "1300"
61
- },
62
- sx: classes.CustomDialogu,
63
- disableBackdropTransition: true,
64
- disableSwipeToOpen: true,
65
- children: [/*#__PURE__*/_jsx(Grid, {
66
- container: true,
67
- justifyContent: "center",
68
- className: "pullerRoot",
69
- children: /*#__PURE__*/_jsx(Grid, {
70
- item: true,
71
- className: "pullerGrid"
72
- })
73
- }), /*#__PURE__*/_jsx(DialogueContent, {})]
74
- })
75
- });
76
- };
77
- const CustomDialogComponent = /*#__PURE__*/forwardRef(CustomDialog);
78
- CustomDialogComponent.defaultProps = {
79
- content: "Are you sure you want to proceed?",
80
- confirmText: "Confirm",
81
- cancelText: "Cancel",
82
- onConfirm: () => console.warn("onConfirm not provided")
83
- };
84
- CustomDialogComponent.propTypes = {
85
- content: PropTypes.string,
86
- confirmText: PropTypes.string,
87
- cancelText: PropTypes.string,
88
- onConfirm: PropTypes.func
89
- };
90
- export { CustomDialogComponent };
@@ -1,80 +0,0 @@
1
- const CustomDialogStyles = theme => ({
2
- MuiBackdropRoot: {
3
- opacity: "1",
4
- transition: "opacity 225ms cubic-bezier(0.4, 0, 0.2, 1) 0ms"
5
- },
6
- CustomDialogu: {
7
- "& .MuiPaper-root": {
8
- borderRadius: "12px 12px 0px 0px",
9
- backgroundColor: `${theme?.palette?.greyshades?.light9} !important`,
10
- "@media only screen and (min-width: 899px)": {
11
- maxWidth: "400px",
12
- border: `1px solid ${theme?.palette?.editor?.customDialogueBorder}`,
13
- borderRadius: "12px"
14
- }
15
- },
16
- "& .MuiDialogContent-root": {
17
- padding: "20px 24px 8px 24px",
18
- "& .MuiTypography-root": {
19
- textAlign: "center",
20
- fontFamily: "Inter, sans-serif",
21
- fontSize: "14px",
22
- fontWeight: 500,
23
- color: theme?.palette?.editor?.textColor
24
- }
25
- },
26
- "& .confirmBtn": {
27
- backgroundColor: "#2563EB",
28
- padding: "8px 12px",
29
- color: "#ffffff",
30
- fontWeight: 600,
31
- fontSize: "14px",
32
- opacity: 1,
33
- borderRadius: "8px",
34
- textTransform: "math-auto",
35
- height: "36px",
36
- padding: "0px 12px",
37
- minWidth: "90px",
38
- "&:hover": {
39
- backgroundColor: "#2563EB"
40
- },
41
- "@media only screen and (max-width: 899px)": {
42
- width: "50%"
43
- }
44
- },
45
- "& .MuiDialogActions-root": {
46
- justifyContent: "center",
47
- paddingBottom: "20px"
48
- },
49
- "& .closeBtn": {
50
- padding: "8px 12px",
51
- color: theme?.palette?.editor?.customDialogueCloseBtnColor,
52
- fontWeight: 600,
53
- fontSize: "14px",
54
- opacity: 1,
55
- borderRadius: "8px",
56
- textTransform: "math-auto",
57
- height: "36px",
58
- padding: "0px 12px",
59
- minWidth: "90px",
60
- backgroundColor: theme?.palette?.editor?.closeButtonBackground,
61
- border: `1px solid ${theme?.palette?.editor?.customDialogueCloseBtnBorder}`,
62
- "&:hover": {
63
- backgroundColor: theme?.palette?.editor?.closeButtonBackground
64
- },
65
- "@media only screen and (max-width: 899px)": {
66
- width: "50%"
67
- }
68
- },
69
- "& .pullerRoot": {
70
- padding: "8px 0"
71
- },
72
- "& .pullerGrid": {
73
- width: "40px",
74
- height: "5px",
75
- backgroundColor: "#ccc",
76
- borderRadius: "10px"
77
- }
78
- }
79
- });
80
- export default CustomDialogStyles;