@flozy/editor 5.3.4 → 5.3.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (120) hide show
  1. package/dist/Editor/CommonEditor.js +8 -14
  2. package/dist/Editor/Editor.css +22 -50
  3. package/dist/Editor/Elements/Accordion/Accordion.js +1 -8
  4. package/dist/Editor/Elements/AppHeader/AppHeader.js +6 -6
  5. package/dist/Editor/Elements/Button/EditorButton.js +2 -9
  6. package/dist/Editor/Elements/Color Picker/ColorButtons.js +2 -4
  7. package/dist/Editor/Elements/Divider/Divider.js +9 -24
  8. package/dist/Editor/Elements/Embed/Image.js +12 -31
  9. package/dist/Editor/Elements/Embed/Video.js +2 -13
  10. package/dist/Editor/Elements/Form/Form.js +0 -1
  11. package/dist/Editor/Elements/FreeGrid/breakpointConstants.js +4 -4
  12. package/dist/Editor/Elements/FreeGrid/styles.js +1 -2
  13. package/dist/Editor/Elements/Grid/GridItem.js +0 -2
  14. package/dist/Editor/Elements/Grid/Styles.js +0 -44
  15. package/dist/Editor/Elements/List/CheckList.js +1 -2
  16. package/dist/Editor/Elements/PageSettings/PageSettingsButton.js +0 -1
  17. package/dist/Editor/Elements/Search/SearchAttachment.js +0 -1
  18. package/dist/Editor/Elements/Signature/SignaturePopup.js +4 -4
  19. package/dist/Editor/Elements/SimpleText/index.js +1 -8
  20. package/dist/Editor/Elements/SimpleText/style.js +1 -10
  21. package/dist/Editor/Elements/TopBanner/TopBanner.js +1 -2
  22. package/dist/Editor/Styles/EditorStyles.js +3 -5
  23. package/dist/Editor/Toolbar/FormatTools/FontFamilyAutocomplete.js +1 -17
  24. package/dist/Editor/Toolbar/FormatTools/TextSize.js +3 -5
  25. package/dist/Editor/Toolbar/PopupTool/PopupToolStyle.js +72 -210
  26. package/dist/Editor/Toolbar/PopupTool/TextFormat.js +8 -55
  27. package/dist/Editor/Toolbar/Toolbar.js +0 -6
  28. package/dist/Editor/Toolbar/toolbarGroups.js +0 -4
  29. package/dist/Editor/assets/svg/SettingsIcon.js +4 -4
  30. package/dist/Editor/common/ColorPickerButton.js +3 -5
  31. package/dist/Editor/common/DnD/Draggable.js +1 -2
  32. package/dist/Editor/common/FontLoader/FontLoader.js +4 -4
  33. package/dist/Editor/common/Icon.js +0 -6
  34. package/dist/Editor/common/ImageSelector/Options/Upload.js +1 -2
  35. package/dist/Editor/common/ImageSelector/Styles.js +6 -47
  36. package/dist/Editor/common/ImageSelector/UploadStyles.js +6 -18
  37. package/dist/Editor/common/MentionsPopup/Styles.js +122 -109
  38. package/dist/Editor/common/RnD/ElementSettings/Settings/FormSettings.js +0 -1
  39. package/dist/Editor/common/RnD/GuideLines/styles.js +3 -3
  40. package/dist/Editor/common/RnD/ShadowElement.js +1 -1
  41. package/dist/Editor/common/RnD/SwitchViewport/SwitchViewport.js +2 -14
  42. package/dist/Editor/common/RnD/Utils/gridDropItem.js +6 -9
  43. package/dist/Editor/common/RnD/index.js +1 -2
  44. package/dist/Editor/common/Section/index.js +3 -3
  45. package/dist/Editor/common/Section/styles.js +1 -5
  46. package/dist/Editor/common/Shorthands/elements.js +1 -13
  47. package/dist/Editor/common/StyleBuilder/fieldTypes/backgroundImage.js +3 -9
  48. package/dist/Editor/common/StyleBuilder/fieldTypes/bannerSpacing.js +3 -27
  49. package/dist/Editor/common/StyleBuilder/fieldTypes/borderRadius.js +2 -15
  50. package/dist/Editor/common/StyleBuilder/fieldTypes/card.js +2 -10
  51. package/dist/Editor/common/StyleBuilder/fieldTypes/color.js +1 -2
  52. package/dist/Editor/common/StyleBuilder/fieldTypes/fontSize.js +1 -1
  53. package/dist/Editor/common/StyleBuilder/fieldTypes/icons.js +0 -2
  54. package/dist/Editor/common/StyleBuilder/fieldTypes/index.js +1 -3
  55. package/dist/Editor/common/StyleBuilder/fieldTypes/radiusStyle.js +4 -4
  56. package/dist/Editor/common/StyleBuilder/fieldTypes/saveAsTemplate.js +6 -22
  57. package/dist/Editor/common/StyleBuilder/fieldTypes/selectBox.js +2 -21
  58. package/dist/Editor/common/StyleBuilder/fieldTypes/textOptions.js +0 -7
  59. package/dist/Editor/common/StyleBuilder/index.js +3 -4
  60. package/dist/Editor/common/StyleBuilder/pageSettingsStyle.js +0 -4
  61. package/dist/Editor/common/ToolbarIcon.js +1 -2
  62. package/dist/Editor/common/Uploader.js +36 -46
  63. package/dist/Editor/common/iconListV2.js +130 -348
  64. package/dist/Editor/common/iconslist.js +3 -6
  65. package/dist/Editor/commonStyle.js +4 -290
  66. package/dist/Editor/helper/index.js +3 -16
  67. package/dist/Editor/helper/theme.js +1 -24
  68. package/dist/Editor/hooks/useMouseMove.js +2 -5
  69. package/dist/Editor/plugins/withCustomDeleteBackward.js +2 -33
  70. package/dist/Editor/plugins/withEmbeds.js +26 -30
  71. package/dist/Editor/utils/SlateUtilityFunctions.js +4 -27
  72. package/dist/Editor/utils/button.js +4 -4
  73. package/dist/Editor/utils/helper.js +13 -40
  74. package/dist/Editor/utils/pageSettings.js +2 -14
  75. package/package.json +2 -2
  76. package/dist/Editor/Elements/DataView/DataView.js +0 -124
  77. package/dist/Editor/Elements/DataView/DataViewButton.js +0 -23
  78. package/dist/Editor/Elements/DataView/Layouts/ColumnView.js +0 -67
  79. package/dist/Editor/Elements/DataView/Layouts/DataTypes/CheckType.js +0 -33
  80. package/dist/Editor/Elements/DataView/Layouts/DataTypes/Components/Select.js +0 -162
  81. package/dist/Editor/Elements/DataView/Layouts/DataTypes/Components/SimpleSelect.js +0 -40
  82. package/dist/Editor/Elements/DataView/Layouts/DataTypes/Components/styles.js +0 -67
  83. package/dist/Editor/Elements/DataView/Layouts/DataTypes/DateType.js +0 -35
  84. package/dist/Editor/Elements/DataView/Layouts/DataTypes/MultiSelectType.js +0 -39
  85. package/dist/Editor/Elements/DataView/Layouts/DataTypes/NumberType.js +0 -30
  86. package/dist/Editor/Elements/DataView/Layouts/DataTypes/PersonType.js +0 -30
  87. package/dist/Editor/Elements/DataView/Layouts/DataTypes/SelectType.js +0 -35
  88. package/dist/Editor/Elements/DataView/Layouts/DataTypes/TextType.js +0 -36
  89. package/dist/Editor/Elements/DataView/Layouts/DataTypes/index.js +0 -17
  90. package/dist/Editor/Elements/DataView/Layouts/FilterSort/SortOptions/ChooseField.js +0 -29
  91. package/dist/Editor/Elements/DataView/Layouts/FilterSort/SortOptions/ChooseSort.js +0 -38
  92. package/dist/Editor/Elements/DataView/Layouts/FilterSort/SortOptions/index.js +0 -74
  93. package/dist/Editor/Elements/DataView/Layouts/FilterSort/index.js +0 -64
  94. package/dist/Editor/Elements/DataView/Layouts/FilterSort/styles.js +0 -106
  95. package/dist/Editor/Elements/DataView/Layouts/FilterView.js +0 -174
  96. package/dist/Editor/Elements/DataView/Layouts/Formula.js +0 -29
  97. package/dist/Editor/Elements/DataView/Layouts/Options/AddOptions.js +0 -113
  98. package/dist/Editor/Elements/DataView/Layouts/Options/AddProperty.js +0 -37
  99. package/dist/Editor/Elements/DataView/Layouts/Options/AllProperties.js +0 -111
  100. package/dist/Editor/Elements/DataView/Layouts/Options/ChangeProperty.js +0 -60
  101. package/dist/Editor/Elements/DataView/Layouts/Options/ColumnsList.js +0 -36
  102. package/dist/Editor/Elements/DataView/Layouts/Options/Constants.js +0 -101
  103. package/dist/Editor/Elements/DataView/Layouts/Options/EditOption.js +0 -160
  104. package/dist/Editor/Elements/DataView/Layouts/Options/EditProperty.js +0 -190
  105. package/dist/Editor/Elements/DataView/Layouts/Options/FilterProperty.js +0 -42
  106. package/dist/Editor/Elements/DataView/Layouts/Options/PropertyList.js +0 -30
  107. package/dist/Editor/Elements/DataView/Layouts/Options/index.js +0 -110
  108. package/dist/Editor/Elements/DataView/Layouts/Options/styles.js +0 -179
  109. package/dist/Editor/Elements/DataView/Layouts/TableStyles.js +0 -112
  110. package/dist/Editor/Elements/DataView/Layouts/TableView.js +0 -227
  111. package/dist/Editor/Elements/DataView/Layouts/ViewData.js +0 -80
  112. package/dist/Editor/Elements/DataView/Layouts/colStyles.js +0 -10
  113. package/dist/Editor/Elements/DataView/Layouts/index.js +0 -25
  114. package/dist/Editor/Elements/DataView/Providers/DataViewProvider.js +0 -281
  115. package/dist/Editor/Elements/DataView/Utils/globalSearch.js +0 -15
  116. package/dist/Editor/Elements/DataView/Utils/multiSortRows.js +0 -74
  117. package/dist/Editor/Elements/DataView/styles.js +0 -154
  118. package/dist/Editor/common/StyleBuilder/fieldTypes/lineSpacing.js +0 -79
  119. package/dist/Editor/helper/enforceDateFormat.js +0 -41
  120. package/dist/Editor/utils/dataView.js +0 -43
@@ -2,12 +2,8 @@ const SectionStyle = (themeReact, theme) => ({
2
2
  root: {
3
3
  "&:hover": {
4
4
  "& .dh-para": {
5
- opacity: 1,
6
- background: 'transparent',
7
- width: '30px'
8
- // top: '2px'
5
+ opacity: 1
9
6
  },
10
-
11
7
  "& .sectionIcon": {
12
8
  opacity: 1
13
9
  },
@@ -13,7 +13,6 @@ import { insertDivider } from "../../utils/divider";
13
13
  import { insertFreeGrid } from "../../utils/freegrid";
14
14
  import { Transforms } from "slate";
15
15
  import { insertInfinityAI } from "../../utils/infinityAI";
16
- import { insertDataView } from "../../utils/dataView";
17
16
  import SearchButton from "../../Elements/Search/SearchButton";
18
17
  import { jsx as _jsx } from "react/jsx-runtime";
19
18
  const ELEMENTS_LIST = [{
@@ -159,7 +158,7 @@ const ELEMENTS_LIST = [{
159
158
  renderComponent: rest => /*#__PURE__*/_jsx(SearchButton, {
160
159
  ...rest,
161
160
  element: {
162
- name: "Brain"
161
+ name: 'Brain'
163
162
  },
164
163
  icoBtnType: "cmd"
165
164
  })
@@ -263,17 +262,6 @@ const ELEMENTS_LIST = [{
263
262
  onInsert: editor => {
264
263
  insertInfinityAI(editor);
265
264
  }
266
- }, {
267
- name: "Dynamic Table",
268
- group: "Dynamic Table",
269
- desc: "",
270
- type: "dataView",
271
- icon: /*#__PURE__*/_jsx(Icon, {
272
- icon: "dataView"
273
- }),
274
- onInsert: editor => {
275
- insertDataView(editor);
276
- }
277
265
  }];
278
266
  const elements = props => {
279
267
  const {
@@ -60,10 +60,9 @@ const BackgroundImage = props => {
60
60
  item: true,
61
61
  xs: 12,
62
62
  style: {
63
- backgroundImage: base64 ? `url(${base64})` : "none"
64
- // height: "200px",
63
+ backgroundImage: base64 ? `url(${base64})` : "none",
64
+ height: "200px"
65
65
  },
66
-
67
66
  sx: classes.uploadField,
68
67
  children: /*#__PURE__*/_jsx(Grid, {
69
68
  className: "uploadImageSection",
@@ -73,11 +72,6 @@ const BackgroundImage = props => {
73
72
  children: "REMOVE"
74
73
  }) : /*#__PURE__*/_jsx(Grid, {
75
74
  className: "uploadImageText",
76
- sx: {
77
- padding: 0,
78
- background: `${theme?.palette?.editor?.inputFieldBgColor}`,
79
- border: `1px solid ${theme?.palette?.editor?.inputFieldBorder}`
80
- },
81
75
  children: /*#__PURE__*/_jsxs(Button, {
82
76
  component: "label",
83
77
  variant: "text",
@@ -92,7 +86,7 @@ const BackgroundImage = props => {
92
86
  style: {
93
87
  paddingLeft: "8px"
94
88
  },
95
- children: "Upload a image"
89
+ children: "upload your image"
96
90
  })]
97
91
  })
98
92
  })
@@ -1,9 +1,8 @@
1
1
  import React, { useState } from "react";
2
- import { Checkbox, FormControlLabel, Grid, Slider, Typography, Box, IconButton } from "@mui/material";
2
+ import { Checkbox, FormControlLabel, Grid, Slider, Typography, Box } from "@mui/material";
3
3
  import { squreStyle } from "./radiusStyle";
4
4
  import { getBreakPointsValue } from "../../../helper/theme";
5
5
  import useWindowResize from "../../../hooks/useWindowResize";
6
- import { CheckedBoxCheckIcon } from "../../iconListV2";
7
6
  import { jsx as _jsx } from "react/jsx-runtime";
8
7
  import { jsxs as _jsxs } from "react/jsx-runtime";
9
8
  const BANNER_SPACING_KEYS = ["top", "left", "right", "bottom"];
@@ -82,18 +81,7 @@ const BannerSpacing = props => {
82
81
  onChange: handleChange
83
82
  }), /*#__PURE__*/_jsx(Box, {
84
83
  component: "input",
85
- sx: {
86
- ...classes.sapcingInput,
87
- "::-webkit-outer-spin-button": {
88
- WebkitAppearance: "none",
89
- margin: 0
90
- },
91
- "::-webkit-inner-spin-button": {
92
- WebkitAppearance: "none",
93
- margin: 0
94
- },
95
- MozAppearance: "textfield"
96
- },
84
+ sx: classes.sapcingInput,
97
85
  name: "top",
98
86
  value: !lockSpacing ? "" : pro_value?.top,
99
87
  className: "sliderInput",
@@ -104,22 +92,10 @@ const BannerSpacing = props => {
104
92
  })]
105
93
  }), /*#__PURE__*/_jsx(FormControlLabel, {
106
94
  className: "ccheckbox-primary",
107
- sx: {
108
- ...classes.customCheckBox
109
- },
110
95
  control: /*#__PURE__*/_jsx(Checkbox, {
111
96
  value: !lockSpacing,
112
97
  checked: !lockSpacing,
113
- onChange: onLockSpacing,
114
- variant: "outlined",
115
- className: "checkBox",
116
- checkedIcon: /*#__PURE__*/_jsx(IconButton, {
117
- className: "checkedIcon",
118
- children: /*#__PURE__*/_jsx(CheckedBoxCheckIcon, {})
119
- }),
120
- icon: /*#__PURE__*/_jsx(IconButton, {
121
- className: "unCheckedIcon"
122
- })
98
+ onChange: onLockSpacing
123
99
  }),
124
100
  label: /*#__PURE__*/_jsx(Typography, {
125
101
  variant: "body1",
@@ -1,9 +1,8 @@
1
1
  import React from "react";
2
- import { Grid, Typography, Slider, FormControlLabel, Checkbox, Box, IconButton } from "@mui/material";
2
+ import { Grid, Typography, Slider, FormControlLabel, Checkbox, Box } from "@mui/material";
3
3
  import { radiusStyle } from "./radiusStyle";
4
4
  import useWindowResize from "../../../hooks/useWindowResize";
5
5
  import { getBreakPointsValue, getCustomizationValue } from "../../../helper/theme";
6
- import { CheckedBoxCheckIcon } from "../../iconListV2";
7
6
  import { jsx as _jsx } from "react/jsx-runtime";
8
7
  import { jsxs as _jsxs } from "react/jsx-runtime";
9
8
  const BORDER_RADIUS_KEYS = ["topLeft", "topRight", "bottomLeft", "bottomRight"];
@@ -91,22 +90,10 @@ const BorderRadius = props => {
91
90
  })]
92
91
  }), /*#__PURE__*/_jsx(FormControlLabel, {
93
92
  className: "ccheckbox-primary",
94
- sx: {
95
- ...classes.customCheckBox
96
- },
97
93
  control: /*#__PURE__*/_jsx(Checkbox, {
98
94
  value: !lockRadius,
99
95
  checked: !lockRadius,
100
- onChange: onLockRadius,
101
- variant: "outlined",
102
- className: "checkBox",
103
- checkedIcon: /*#__PURE__*/_jsx(IconButton, {
104
- className: "checkedIcon",
105
- children: /*#__PURE__*/_jsx(CheckedBoxCheckIcon, {})
106
- }),
107
- icon: /*#__PURE__*/_jsx(IconButton, {
108
- className: "unCheckedIcon"
109
- })
96
+ onChange: onLockRadius
110
97
  }),
111
98
  label: /*#__PURE__*/_jsx(Typography, {
112
99
  variant: "body1",
@@ -1,7 +1,6 @@
1
1
  import { Box, Card, Checkbox, FormControlLabel, Grid, Tooltip, Typography } from "@mui/material";
2
2
  import React from "react";
3
3
  import Icon from "../../Icon";
4
- import { useEditorContext } from "../../../hooks/useMouseMove";
5
4
  import { jsx as _jsx } from "react/jsx-runtime";
6
5
  import { Fragment as _Fragment } from "react/jsx-runtime";
7
6
  import { jsxs as _jsxs } from "react/jsx-runtime";
@@ -16,10 +15,7 @@ const RenderCard = ({
16
15
  return /*#__PURE__*/_jsx(Card, {
17
16
  sx: {
18
17
  position: 'relative',
19
- padding: "10px",
20
- '& .MuiCheckbox-root svg': {
21
- fill: 'unset !important'
22
- }
18
+ padding: "10px"
23
19
  },
24
20
  children: /*#__PURE__*/_jsx(FormControlLabel, {
25
21
  control: /*#__PURE__*/_jsx(Checkbox, {
@@ -85,9 +81,6 @@ const CardsMapping = props => {
85
81
  selectedCard,
86
82
  infoIcon
87
83
  } = data;
88
- const {
89
- theme
90
- } = useEditorContext();
91
84
  const activeCard = value === selectedCard;
92
85
  const handleChange = e => {
93
86
  if (selectedCard === data?.value) {
@@ -106,8 +99,7 @@ const CardsMapping = props => {
106
99
  sx: {
107
100
  marginBottom: "12px",
108
101
  "& .MuiPaper-root": {
109
- background: theme?.palette?.editor?.miniToolBarBackground,
110
- border: activeCard ? "1px solid #2563EB" : `1px solid ${theme?.palette?.editor?.inputFieldBorder}`,
102
+ border: activeCard ? "1px solid #2563EB" : "1px solid #C8D8FA",
111
103
  borderRadius: "8px",
112
104
  boxShadow: activeCard ? "0px 4px 16px 0px #2563EB40" : "unset"
113
105
  }
@@ -16,7 +16,6 @@ const Color = props => {
16
16
  hideGradient
17
17
  } = data;
18
18
  const [recentColors, setRecentColors] = useState({});
19
- const getLable = label === 'Text' ? 'Select text color' : label === 'Background' ? 'Select background color' : label;
20
19
  useEffect(() => {
21
20
  const storedColors = JSON.parse(localStorage.getItem("recentColors"));
22
21
  if (storedColors) {
@@ -74,7 +73,7 @@ const Color = props => {
74
73
  }), /*#__PURE__*/_jsx(TextField, {
75
74
  fullWidth: true,
76
75
  value: value,
77
- placeholder: getLable || `${label} color code`,
76
+ placeholder: `${label} color code`,
78
77
  InputLabelProps: {
79
78
  shrink: true
80
79
  },
@@ -73,7 +73,7 @@ const FontSize = props => {
73
73
  size: "small",
74
74
  inputProps: {
75
75
  style: {
76
- // textAlign: "center",
76
+ textAlign: "center",
77
77
  padding: "11px"
78
78
  }
79
79
  },
@@ -91,14 +91,12 @@ const Icons = props => {
91
91
  overflowY: "auto",
92
92
  paddingTop: "5px"
93
93
  },
94
- className: "muiIconsListParent",
95
94
  children: list.map(m => {
96
95
  return /*#__PURE__*/_jsx(Tooltip, {
97
96
  title: m,
98
97
  arrow: true,
99
98
  children: /*#__PURE__*/_jsx(IconButton, {
100
99
  onClick: onSelectIcon(m),
101
- className: "muiIconsList",
102
100
  children: /*#__PURE__*/_jsx(MUIIcon, {
103
101
  iconName: m,
104
102
  props: customProps
@@ -18,7 +18,6 @@ import FontSize from "./fontSize";
18
18
  import SelectSwitch from "./selectSwitch";
19
19
  import CardsMapping from "./card";
20
20
  import MetaDataMapping from "./metaDataMapping";
21
- import LineSpacing from "./lineSpacing";
22
21
  const FieldMap = {
23
22
  text: Text,
24
23
  bannerSpacing: BannerSpacing,
@@ -39,7 +38,6 @@ const FieldMap = {
39
38
  fontSize: FontSize,
40
39
  selectSwitch: SelectSwitch,
41
40
  card: CardsMapping,
42
- metadatamapping: MetaDataMapping,
43
- lineSpacing: LineSpacing
41
+ metadatamapping: MetaDataMapping
44
42
  };
45
43
  export default FieldMap;
@@ -53,7 +53,7 @@ export const radiusStyle = {
53
53
  export const squreStyle = {
54
54
  topLeft: {
55
55
  position: "absolute",
56
- left: "-37px",
56
+ left: "-35px",
57
57
  top: "50%",
58
58
  transform: "translateY(-50%)",
59
59
  width: "30px",
@@ -71,7 +71,7 @@ export const squreStyle = {
71
71
  // top: "-28px",
72
72
  left: "50%",
73
73
  transform: "translateX(-50%)",
74
- top: "-37px",
74
+ top: "-35px",
75
75
  width: "30px",
76
76
  height: "30px",
77
77
  // borderTop: `2px solid #2563eb`,
@@ -85,7 +85,7 @@ export const squreStyle = {
85
85
  // left: "-25px",
86
86
  top: "50%",
87
87
  transform: "translateY(-50%)",
88
- right: "-37px",
88
+ right: "-35px",
89
89
  width: "30px",
90
90
  height: "30px",
91
91
  // borderBottom: `2px solid #2563eb`,
@@ -96,7 +96,7 @@ export const squreStyle = {
96
96
  },
97
97
  bottomRight: {
98
98
  position: "absolute",
99
- bottom: "-37px",
99
+ bottom: "-35px",
100
100
  // right: "-25px",
101
101
  left: "50%",
102
102
  transform: "translateX(-50%)",
@@ -3,8 +3,6 @@ import { Grid, Button, Typography, Select, MenuItem, TextField } from "@mui/mate
3
3
  import CloudUploadIcon from "@mui/icons-material/CloudUpload";
4
4
  import { convertBase64 } from "../../../utils/helper";
5
5
  import { uploadFile } from "../../../service/fileupload";
6
- import { useEditorContext } from "../../../hooks/useMouseMove";
7
- import useCommonStyle from "../../../commonStyle";
8
6
  import { jsx as _jsx } from "react/jsx-runtime";
9
7
  import { jsxs as _jsxs } from "react/jsx-runtime";
10
8
  import { Fragment as _Fragment } from "react/jsx-runtime";
@@ -32,10 +30,6 @@ const SaveAsTemplate = props => {
32
30
  });
33
31
  const [base64, setBase64] = useState(value);
34
32
  const [uploading, setUploading] = useState(false);
35
- const {
36
- theme
37
- } = useEditorContext();
38
- const classes = useCommonStyle(theme);
39
33
  const handleChange = async e => {
40
34
  const file = e.target.files[0];
41
35
  const strImage = await convertBase64(file);
@@ -82,9 +76,6 @@ const SaveAsTemplate = props => {
82
76
  onSaveTemplate(formData, params);
83
77
  handleClose();
84
78
  };
85
- if (!onSaveTemplate) {
86
- return null;
87
- }
88
79
  return /*#__PURE__*/_jsxs(_Fragment, {
89
80
  children: [/*#__PURE__*/_jsx(Grid, {
90
81
  item: true,
@@ -158,14 +149,9 @@ const SaveAsTemplate = props => {
158
149
  justifyContent: "space-between",
159
150
  alignItems: "center",
160
151
  children: [/*#__PURE__*/_jsxs(Button, {
161
- component: "label"
162
- // variant="contained"
163
- ,
164
- className: "gradientFillBtn",
152
+ component: "label",
153
+ variant: "contained",
165
154
  startIcon: /*#__PURE__*/_jsx(CloudUploadIcon, {}),
166
- sx: {
167
- ...classes.gradientFillBtn
168
- },
169
155
  children: ["Upload file", /*#__PURE__*/_jsx("input", {
170
156
  type: "file",
171
157
  style: {
@@ -208,14 +194,12 @@ const SaveAsTemplate = props => {
208
194
  },
209
195
  className: "action-btn-wrpr",
210
196
  children: [/*#__PURE__*/_jsx(Button, {
211
- className: "savebtn gradientFillBtn",
197
+ className: "savebtn",
212
198
  onClick: handleSave,
213
199
  sx: {
214
- fontWeight: 700,
215
- ...classes.gradientFillBtn
216
- }
217
- // variant="contained"
218
- ,
200
+ fontWeight: 700
201
+ },
202
+ variant: "contained",
219
203
  children: saveText
220
204
  }), closeText ? /*#__PURE__*/_jsx(Button, {
221
205
  className: "closebtn",
@@ -1,8 +1,5 @@
1
1
  import React, { useEffect, useState, useRef } from "react";
2
- import { Grid, Checkbox, FormControlLabel, FormHelperText, IconButton } from "@mui/material";
3
- import useCommonStyle from "../../../commonStyle";
4
- import { useEditorContext } from "../../../hooks/useMouseMove";
5
- import { CheckedBoxCheckIcon } from "../../iconListV2";
2
+ import { Grid, Checkbox, FormControlLabel, FormHelperText } from "@mui/material";
6
3
  import { jsx as _jsx } from "react/jsx-runtime";
7
4
  import { jsxs as _jsxs } from "react/jsx-runtime";
8
5
  const SelectBox = props => {
@@ -18,10 +15,6 @@ const SelectBox = props => {
18
15
  } = data;
19
16
  const [checkedValue, setCheckedValue] = useState(false);
20
17
  const isFirstRender = useRef(true);
21
- const {
22
- theme
23
- } = useEditorContext();
24
- const classes = useCommonStyle(theme);
25
18
  useEffect(() => {
26
19
  if (isFirstRender.current && elementProps.element === "email" && value === undefined) {
27
20
  setCheckedValue(true);
@@ -42,22 +35,10 @@ const SelectBox = props => {
42
35
  marginBottom: "12px"
43
36
  },
44
37
  children: [/*#__PURE__*/_jsx(FormControlLabel, {
45
- className: "ccheckbox-primary",
46
- sx: {
47
- ...classes.customCheckBox
48
- },
49
38
  control: /*#__PURE__*/_jsx(Checkbox, {
50
39
  value: value,
51
40
  checked: checkedValue,
52
- onChange: handleChange,
53
- className: "checkBox",
54
- checkedIcon: /*#__PURE__*/_jsx(IconButton, {
55
- className: "checkedIcon",
56
- children: /*#__PURE__*/_jsx(CheckedBoxCheckIcon, {})
57
- }),
58
- icon: /*#__PURE__*/_jsx(IconButton, {
59
- className: "unCheckedIcon"
60
- })
41
+ onChange: handleChange
61
42
  }),
62
43
  label: placeholder
63
44
  }), /*#__PURE__*/_jsx(FormHelperText, {
@@ -5,7 +5,6 @@ import useWindowResize from "../../../hooks/useWindowResize";
5
5
  import { useEditorContext } from "../../../hooks/useMouseMove";
6
6
  import FontFamilyAutocomplete from "../../../Toolbar/FormatTools/FontFamilyAutocomplete";
7
7
  import { useSlate } from "slate-react";
8
- import KeyboardArrowDownRoundedIcon from "@mui/icons-material/KeyboardArrowDownRounded";
9
8
 
10
9
  // hideMetaDataOptions -- pass true to hide metadata option in select field
11
10
  import { jsx as _jsx } from "react/jsx-runtime";
@@ -91,12 +90,6 @@ const TextOptions = props => {
91
90
  marginBottom: "16px"
92
91
  },
93
92
  sx: classes.textOptions,
94
- IconComponent: KeyboardArrowDownRoundedIcon,
95
- MenuProps: {
96
- sx: {
97
- ...classes.textOptionsList
98
- }
99
- },
100
93
  children: updatedOption?.map((m, i) => {
101
94
  return m?.value === "listSubHeader" ? /*#__PURE__*/_jsx(ListSubheader, {
102
95
  children: m?.label
@@ -1,7 +1,7 @@
1
1
  import React, { useEffect, useState } from "react";
2
2
  import { DialogTitle, DialogContent, DialogActions, Button, Grid, IconButton, Typography, Drawer, SwipeableDrawer, Accordion, AccordionSummary, AccordionDetails, createTheme } from "@mui/material";
3
3
  import FieldMap from "./fieldTypes";
4
- import CloseRoundedIcon from '@mui/icons-material/CloseRounded';
4
+ import CloseIcon from "@mui/icons-material/Close";
5
5
  import useCommonStyle from "../../commonStyle";
6
6
  import { useEditorContext } from "../../hooks/useMouseMove";
7
7
  import { ThemeProvider } from "@mui/material/styles";
@@ -143,8 +143,7 @@ const StyleBuilder = props => {
143
143
  xs: 12,
144
144
  sx: {
145
145
  p: 2,
146
- width: isMobile ? "100%" : "312px",
147
- ...classes.pageSettingPopUpRoot
146
+ width: isMobile ? "100%" : "350px"
148
147
  },
149
148
  children: [/*#__PURE__*/_jsx(DialogTitle, {
150
149
  sx: {
@@ -167,7 +166,7 @@ const StyleBuilder = props => {
167
166
  children: /*#__PURE__*/_jsx(IconButton, {
168
167
  onClick: onClose,
169
168
  className: "close-popupbtn",
170
- children: /*#__PURE__*/_jsx(CloseRoundedIcon, {})
169
+ children: /*#__PURE__*/_jsx(CloseIcon, {})
171
170
  })
172
171
  })]
173
172
  })
@@ -25,10 +25,6 @@ const pageSettingsStyle = [{
25
25
  label: "Padding",
26
26
  key: "bannerSpacing",
27
27
  type: "bannerSpacing"
28
- }, {
29
- label: "Line Spacing",
30
- key: "lineHeight",
31
- type: "lineSpacing"
32
28
  }]
33
29
  }, {
34
30
  tab: "Max Width",
@@ -11,7 +11,6 @@ const ToolbarIcon = props => {
11
11
  style,
12
12
  icoBtnType
13
13
  } = props;
14
- console.log("Props:", props);
15
14
  const renderIconText = () => {
16
15
  if (icoBtnType === "mini") {
17
16
  return /*#__PURE__*/_jsx("span", {
@@ -40,7 +39,7 @@ const ToolbarIcon = props => {
40
39
  title: title,
41
40
  arrow: true,
42
41
  children: /*#__PURE__*/_jsxs(IconButton, {
43
- className: `${className} ${icoBtnType} accordionIcon`,
42
+ className: `${className} ${icoBtnType}`,
44
43
  onClick: onClick,
45
44
  style: style,
46
45
  children: [icon, renderIconText()]
@@ -4,7 +4,6 @@ import { convertBase64 } from "../utils/helper";
4
4
  import { uploadFile } from "../service/fileupload";
5
5
  import Icon from "./Icon";
6
6
  import UploadStyles from "../common/ImageSelector/UploadStyles";
7
- import { useEditorContext } from "../hooks/useMouseMove";
8
7
  import { jsx as _jsx } from "react/jsx-runtime";
9
8
  import { Fragment as _Fragment } from "react/jsx-runtime";
10
9
  import { jsxs as _jsxs } from "react/jsx-runtime";
@@ -19,9 +18,6 @@ const Uploader = props => {
19
18
  const [base64, setBase64] = useState(value?.url);
20
19
  const [fileName, setFileName] = useState("");
21
20
  const [uploading, setUploading] = useState(false);
22
- const {
23
- theme
24
- } = useEditorContext();
25
21
  const handleChange = async e => {
26
22
  const uFile = e.target.files[0];
27
23
  const strImage = await convertBase64(uFile);
@@ -83,57 +79,51 @@ const Uploader = props => {
83
79
  });
84
80
  }
85
81
  };
86
- return /*#__PURE__*/_jsxs(_Fragment, {
82
+ return /*#__PURE__*/_jsxs(Grid, {
83
+ container: true,
84
+ sx: classes.uploadContainer,
87
85
  children: [/*#__PURE__*/_jsx(Grid, {
88
86
  item: true,
89
87
  xs: 12,
90
88
  children: uploading ? "Uploading..." : ""
91
89
  }), /*#__PURE__*/_jsx(Grid, {
92
- container: true,
93
- sx: classes.uploadContainer,
94
- children: /*#__PURE__*/_jsx(Grid, {
95
- item: true,
96
- xs: 12,
97
- className: "btn--wrpr",
98
- style: {
99
- ...getBackground()
100
- },
101
- sx: classes.uploadField,
102
- children: !uploading ? /*#__PURE__*/_jsx(Grid, {
103
- className: "uploadImageSection",
104
- children: base64 ? renderThumb() : /*#__PURE__*/_jsx(Grid, {
105
- className: "uploadImageText",
106
- sx: {
107
- background: `${theme?.palette?.editor?.inputFieldBgColor}`,
108
- border: `1px solid ${theme?.palette?.editor?.inputFieldBorder}`
90
+ item: true,
91
+ xs: 12,
92
+ className: "btn--wrpr",
93
+ style: {
94
+ ...getBackground()
95
+ },
96
+ sx: classes.uploadField,
97
+ children: !uploading ? /*#__PURE__*/_jsx(Grid, {
98
+ className: "uploadImageSection",
99
+ children: base64 ? renderThumb() : /*#__PURE__*/_jsx(Grid, {
100
+ className: "uploadImageText",
101
+ children: /*#__PURE__*/_jsxs(Button, {
102
+ component: "label",
103
+ variant: "text",
104
+ style: {
105
+ background: "none",
106
+ width: "100%"
109
107
  },
110
- children: /*#__PURE__*/_jsxs(Button, {
111
- component: "label",
112
- variant: "text",
108
+ sx: classes.uploadIcon,
109
+ children: [/*#__PURE__*/_jsx("input", {
110
+ type: "file",
111
+ style: {
112
+ opacity: 0,
113
+ width: "0px"
114
+ },
115
+ onChange: handleChange
116
+ }), /*#__PURE__*/_jsx(Icon, {
117
+ icon: "fileUpload"
118
+ }), /*#__PURE__*/_jsxs("span", {
113
119
  style: {
114
- background: "none",
115
- width: "100%"
120
+ paddingLeft: "8px"
116
121
  },
117
- sx: classes.uploadIcon,
118
- children: [/*#__PURE__*/_jsx("input", {
119
- type: "file",
120
- style: {
121
- opacity: 0,
122
- width: "0px"
123
- },
124
- onChange: handleChange
125
- }), /*#__PURE__*/_jsx(Icon, {
126
- icon: "fileUpload"
127
- }), /*#__PURE__*/_jsxs("span", {
128
- style: {
129
- paddingLeft: "8px"
130
- },
131
- children: ["upload ", title || "image"]
132
- })]
133
- })
122
+ children: ["upload ", title || "image"]
123
+ })]
134
124
  })
135
- }) : null
136
- })
125
+ })
126
+ }) : null
137
127
  })]
138
128
  });
139
129
  };