@flozy/editor 4.9.4 → 4.9.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (37) hide show
  1. package/dist/Editor/ChatEditor.js +25 -34
  2. package/dist/Editor/Editor.css +25 -7
  3. package/dist/Editor/Elements/AI/AIInput.js +0 -1
  4. package/dist/Editor/Elements/AI/Styles.js +7 -7
  5. package/dist/Editor/Elements/Link/LinkButton.js +1 -1
  6. package/dist/Editor/Elements/Search/SearchButton.js +4 -4
  7. package/dist/Editor/Elements/Search/SearchList.js +7 -5
  8. package/dist/Editor/Elements/Signature/SignaturePopup.js +3 -2
  9. package/dist/Editor/Elements/Table/AddRowCol.js +3 -2
  10. package/dist/Editor/Elements/Table/DragButton.js +6 -2
  11. package/dist/Editor/Elements/Table/DragStyles.js +62 -36
  12. package/dist/Editor/Elements/Table/Styles.js +1 -1
  13. package/dist/Editor/Elements/Table/Table.js +8 -3
  14. package/dist/Editor/Elements/Table/TableCell.js +24 -10
  15. package/dist/Editor/Elements/Table/tableHelper.js +83 -0
  16. package/dist/Editor/Toolbar/FormatTools/Dropdown.js +2 -0
  17. package/dist/Editor/Toolbar/FormatTools/FontFamilyAutocomplete.js +2 -0
  18. package/dist/Editor/Toolbar/PopupTool/MiniTextFormat/index.js +3 -3
  19. package/dist/Editor/Toolbar/PopupTool/PopupToolStyle.js +133 -31
  20. package/dist/Editor/Toolbar/PopupTool/TextFormat.js +2 -0
  21. package/dist/Editor/common/ColorPickerButton.js +3 -2
  22. package/dist/Editor/common/MentionsPopup/Styles.js +1 -7
  23. package/dist/Editor/common/RnD/ElementSettings/Settings/FormSettings.js +1 -0
  24. package/dist/Editor/common/RnD/index.js +1 -1
  25. package/dist/Editor/common/StyleBuilder/fieldTypes/backgroundImage.js +5 -0
  26. package/dist/Editor/common/StyleBuilder/fieldTypes/card.js +10 -2
  27. package/dist/Editor/common/Uploader.js +8 -0
  28. package/dist/Editor/common/iconListV2.js +2 -0
  29. package/dist/Editor/common/iconslist.js +1 -0
  30. package/dist/Editor/commonStyle.js +6 -2
  31. package/dist/Editor/helper/deserialize/index.js +5 -11
  32. package/dist/Editor/hooks/useTable.js +37 -30
  33. package/dist/Editor/utils/chatEditor/SlateUtilityFunctions.js +14 -0
  34. package/dist/Editor/utils/events.js +0 -1
  35. package/dist/Editor/utils/helper.js +11 -0
  36. package/dist/Editor/utils/serializeToText.js +2 -0
  37. package/package.json +1 -1
@@ -2,6 +2,7 @@ import React from "react";
2
2
  import { Select, MenuItem } from "@mui/material";
3
3
  import { addMarkData, activeMark } from "../../utils/SlateUtilityFunctions.js";
4
4
  import { fontFamilyMap } from "../../utils/font";
5
+ import KeyboardArrowDownRoundedIcon from '@mui/icons-material/KeyboardArrowDownRounded';
5
6
  import { jsx as _jsx } from "react/jsx-runtime";
6
7
  const Dropdown = ({
7
8
  classes,
@@ -29,6 +30,7 @@ const Dropdown = ({
29
30
  }
30
31
  },
31
32
  sx: classes.textFormatSelect,
33
+ IconComponent: KeyboardArrowDownRoundedIcon,
32
34
  children: options.map((item, index) => /*#__PURE__*/_jsx(MenuItem
33
35
  // style={{ fontFamily: item.text }}
34
36
  , {
@@ -3,6 +3,7 @@ import { Autocomplete, TextField } from "@mui/material";
3
3
  import { activeMark, addMarkData } from "../../utils/SlateUtilityFunctions.js";
4
4
  import usePopupStyle from "../PopupTool/PopupToolStyle.js";
5
5
  import { useEditorContext } from "../../hooks/useMouseMove.js";
6
+ import KeyboardArrowDownRoundedIcon from '@mui/icons-material/KeyboardArrowDownRounded';
6
7
  import { jsx as _jsx } from "react/jsx-runtime";
7
8
  const FontFamilyAutocomplete = ({
8
9
  editor,
@@ -57,6 +58,7 @@ const FontFamilyAutocomplete = ({
57
58
  children: option
58
59
  });
59
60
  },
61
+ popupIcon: /*#__PURE__*/_jsx(KeyboardArrowDownRoundedIcon, {}),
60
62
  renderInput: params => /*#__PURE__*/_jsx(TextField, {
61
63
  sx: {
62
64
  "& .MuiInputBase-root.MuiOutlinedInput-root": {
@@ -1,4 +1,4 @@
1
- import { Button, Fade, Grid, Paper, Popper } from "@mui/material";
1
+ import { Fade, Grid, IconButton, Paper, Popper } from "@mui/material";
2
2
  import SelectTypography from "./SelectTypography";
3
3
  import SelectList from "./SelectList";
4
4
  import { toolbarGroups } from "../../toolbarGroups";
@@ -95,9 +95,9 @@ const MiniTextFormat = props => {
95
95
  active: isBlockActive(editor, link.format),
96
96
  editor: editor,
97
97
  customProps: customProps
98
- }, link.id), /*#__PURE__*/_jsx(Button, {
98
+ }, link.id), /*#__PURE__*/_jsx(IconButton, {
99
99
  onClick: e => setAnchorEl(document.getElementById("mini-text-editor-wrapper")),
100
- className: "textSettingsIcon",
100
+ className: `textSettingsIcon ${open ? "btnActive" : ""}`,
101
101
  children: /*#__PURE__*/_jsx(TextToolIcon, {})
102
102
  }), /*#__PURE__*/_jsx(Popper, {
103
103
  id: id,
@@ -96,8 +96,29 @@ const usePopupStyle = theme => ({
96
96
  width: "100%",
97
97
  maxHeight: "fit-content"
98
98
  },
99
+ "& .MuiTab-root": {
100
+ textTransform: "capitalize",
101
+ color: "#64748B",
102
+ borderBottom: `1.5px solid ${theme?.palette?.editor?.deviderBgColor}`
103
+ },
104
+ "& .Mui-selected": {
105
+ color: `${theme?.palette?.editor?.textColor} !important`,
106
+ fontWeight: "700 !important"
107
+ },
108
+ "& .MuiTabs-indicator": {
109
+ background: "#2563EB"
110
+ },
111
+ "& .MuiTabScrollButton-horizontal": {
112
+ borderBottom: "unset !important"
113
+ },
99
114
  "@media only screen and (max-width: 599px)": {
100
115
  width: "330px"
116
+ },
117
+ "& .MuiCardContent-root": {
118
+ color: theme?.palette?.editor?.textColor,
119
+ fontFamily: "Inter, sans-serif",
120
+ fontSize: "12px",
121
+ fontWeight: "500"
101
122
  }
102
123
  },
103
124
  "& .headerContainer": {},
@@ -122,38 +143,70 @@ const usePopupStyle = theme => ({
122
143
  fill: theme?.palette?.type === "dark" ? "none" : ""
123
144
  }
124
145
  },
146
+ "& .signatureElementIcon": {
147
+ "& path": {
148
+ fill: `${theme?.palette?.editor?.closeButtonSvgStroke}`
149
+ }
150
+ },
151
+ "& .commonSvgStyle": {
152
+ "& path": {
153
+ stroke: `${theme?.palette?.editor?.closeButtonSvgStroke}`
154
+ }
155
+ },
156
+ "& .commonSvgStyle2": {
157
+ "& path": {
158
+ stroke: `${theme?.palette?.editor?.closeButtonSvgStroke}`
159
+ }
160
+ },
161
+ "& .colorBoxElementIcon": {
162
+ "& path": {
163
+ stroke: `${theme?.palette?.editor?.closeButtonSvgStroke}`,
164
+ fill: "none"
165
+ }
166
+ },
167
+ "& .gridElementIcon": {
168
+ "& path": {
169
+ stroke: `${theme?.palette?.editor?.closeButtonSvgStroke}`,
170
+ fill: `${theme?.palette?.editor?.closeButtonSvgStroke}`
171
+ }
172
+ },
173
+ "& .newLineElementIcon": {
174
+ "& path": {
175
+ fill: `${theme?.palette?.editor?.closeButtonSvgStroke}`
176
+ }
177
+ },
125
178
  "&:hover": {
126
179
  backgroundColor: `${theme?.palette?.editor?.menuOptionSelectedOption} !important`,
127
180
  "& .signatureElementIcon": {
128
181
  "& path": {
129
- fill: `${theme?.palette?.editor?.menuOptionTextColor} !important`
182
+ fill: `${theme?.palette?.editor?.menuOptionTextColor}`
130
183
  }
131
184
  },
132
185
  "& .commonSvgStyle": {
133
186
  "& path": {
134
- stroke: `${theme?.palette?.editor?.menuOptionTextColor} !important`
187
+ stroke: `${theme?.palette?.editor?.menuOptionTextColor}`
135
188
  }
136
189
  },
137
190
  "& .commonSvgStyle2": {
138
191
  "& path": {
139
- stroke: `${theme?.palette?.editor?.menuOptionTextColor} !important`
192
+ stroke: `${theme?.palette?.editor?.menuOptionTextColor}`
140
193
  }
141
194
  },
142
195
  "& .colorBoxElementIcon": {
143
196
  "& path": {
144
- stroke: `${theme?.palette?.editor?.menuOptionTextColor} !important`,
197
+ stroke: `${theme?.palette?.editor?.menuOptionTextColor}`,
145
198
  fill: "none"
146
199
  }
147
200
  },
148
201
  "& .gridElementIcon": {
149
202
  "& path": {
150
- stroke: `${theme?.palette?.editor?.menuOptionTextColor} !important`,
151
- fill: `${theme?.palette?.editor?.menuOptionTextColor} !important`
203
+ stroke: `${theme?.palette?.editor?.menuOptionTextColor}`,
204
+ fill: `${theme?.palette?.editor?.menuOptionTextColor}`
152
205
  }
153
206
  },
154
207
  "& .newLineElementIcon": {
155
208
  "& path": {
156
- fill: `${theme?.palette?.editor?.menuOptionTextColor} !important`
209
+ fill: `${theme?.palette?.editor?.menuOptionTextColor}`
157
210
  }
158
211
  }
159
212
  },
@@ -194,6 +247,11 @@ const usePopupStyle = theme => ({
194
247
  },
195
248
  "@media only screen and (max-width: 599px)": {
196
249
  width: "330px"
250
+ },
251
+ "& .textFormatMUIIcon": {
252
+ "& svg": {
253
+ color: theme?.palette?.editor?.closeButtonSvgStroke
254
+ }
197
255
  }
198
256
  },
199
257
  textFormatLabel: {
@@ -244,58 +302,64 @@ const usePopupStyle = theme => ({
244
302
  textAlignButtons: {
245
303
  "& .justifyIcon": {
246
304
  "& path": {
247
- fill: `${theme?.palette?.editor?.svgTextAlignStrokeColor} !important`,
248
- stroke: `${theme?.palette?.editor?.svgTextAlignStrokeColor} !important`
305
+ fill: `${theme?.palette?.editor?.svgTextAlignStrokeColor}`,
306
+ stroke: `${theme?.palette?.editor?.svgTextAlignStrokeColor}`
249
307
  }
250
308
  },
251
309
  "& .textAlignIconSameStyles": {
252
310
  "& path": {
253
- fill: `${theme?.palette?.editor?.svgTextAlignStrokeColor} !important`
311
+ fill: `${theme?.palette?.editor?.svgTextAlignStrokeColor}`
254
312
  }
255
313
  },
256
314
  "& .orderedListIcon": {
257
315
  "& path": {
258
- stroke: `${theme?.palette?.editor?.svgTextAlignStrokeColor} !important`
316
+ stroke: `${theme?.palette?.editor?.svgTextAlignStrokeColor}`
259
317
  },
260
318
  "& text": {
261
- fill: `${theme?.palette?.editor?.svgTextAlignStrokeColor} !important`
319
+ fill: `${theme?.palette?.editor?.svgTextAlignStrokeColor}`
262
320
  }
263
321
  },
264
322
  "& .bulletedListTextIcon": {
265
323
  "& path": {
266
- fill: `${theme?.palette?.editor?.svgTextAlignStrokeColor} !important`,
267
- stroke: `${theme?.palette?.editor?.svgTextAlignStrokeColor} !important`
324
+ fill: `${theme?.palette?.editor?.svgTextAlignStrokeColor}`,
325
+ stroke: `${theme?.palette?.editor?.svgTextAlignStrokeColor}`
268
326
  },
269
327
  "& circle": {
270
- fill: `${theme?.palette?.editor?.svgTextAlignStrokeColor} !important`
328
+ fill: `${theme?.palette?.editor?.svgTextAlignStrokeColor}`
271
329
  }
272
330
  },
273
331
  "& .checkedListTextIcon": {
274
332
  "& path": {
275
- stroke: `${theme?.palette?.editor?.svgTextAlignStrokeColor} !important`
333
+ stroke: `${theme?.palette?.editor?.svgTextAlignStrokeColor}`
276
334
  }
277
335
  },
278
336
  "& .accordianListTextIcon": {
279
337
  // stroke: `${theme?.palette?.editor?.svgTextAlignStrokeColor} !important`,
280
338
  "& svg": {
281
- fill: `${theme?.palette?.editor?.svgTextAlignStrokeColor} !important`,
282
- stroke: `${theme?.palette?.editor?.svgTextAlignStrokeColor} !important`
339
+ fill: `${theme?.palette?.editor?.svgTextAlignStrokeColor}`,
340
+ stroke: `${theme?.palette?.editor?.svgTextAlignStrokeColor}`
283
341
  },
284
342
  "& path": {
285
- fill: `${theme?.palette?.editor?.svgTextAlignStrokeColor} !important`,
286
- stroke: `${theme?.palette?.editor?.svgTextAlignStrokeColor} !important`
343
+ fill: `${theme?.palette?.editor?.svgTextAlignStrokeColor}`,
344
+ stroke: `${theme?.palette?.editor?.svgTextAlignStrokeColor}`
287
345
  }
288
346
  }
289
347
  },
290
348
  autoCompleteaFontFamily: {
291
349
  "& .MuiOutlinedInput-root": {
292
350
  borderRadius: "8px",
293
- backgroundColor: `${theme?.palette?.editor?.inputFieldBgColor} !important`,
351
+ backgroundColor: `${theme?.palette?.editor?.inputFieldBgColor}`,
294
352
  fontSize: "14px",
295
- height: "36px"
353
+ height: "36px",
354
+ paddingLeft: "15px !important"
296
355
  },
297
356
  "& .MuiOutlinedInput-notchedOutline": {
298
357
  border: `1px solid ${theme?.palette?.editor?.inputFieldBorder} !important`
358
+ },
359
+ '& .MuiInputBase-root': {
360
+ '& input': {
361
+ border: "none !important"
362
+ }
299
363
  }
300
364
  },
301
365
  textFormatSelect: {
@@ -465,7 +529,8 @@ const usePopupStyle = theme => ({
465
529
  },
466
530
  "& .colorPicker": {
467
531
  background: theme?.palette?.editor?.inputFieldBgColor,
468
- borderRadius: "0px 7px 7px 0px"
532
+ borderRadius: "0px 7px 7px 0px",
533
+ padding: "0px"
469
534
  },
470
535
  "& .vl": {
471
536
  background: theme?.palette?.editor?.borderColor,
@@ -506,7 +571,8 @@ const usePopupStyle = theme => ({
506
571
  },
507
572
  "& .colorPicker": {
508
573
  background: theme?.palette?.editor?.inputFieldBgColor,
509
- borderRadius: "0px 7px 7px 0px"
574
+ borderRadius: "0px 7px 7px 0px",
575
+ padding: "0px"
510
576
  },
511
577
  "& .vl": {
512
578
  background: theme?.palette?.editor?.borderColor,
@@ -691,8 +757,11 @@ const usePopupStyle = theme => ({
691
757
  }
692
758
  },
693
759
  "& .default-color-panel": {
760
+ gridTemplateColumns: "repeat(auto-fill, 24px)",
694
761
  "& .default-color-panel_item": {
695
- borderRadius: "50%"
762
+ borderRadius: "50%",
763
+ width: "16px",
764
+ height: "16px"
696
765
  }
697
766
  }
698
767
  },
@@ -813,17 +882,18 @@ const usePopupStyle = theme => ({
813
882
  "& .MuiPopover-paper": {
814
883
  maxHeight: "140px",
815
884
  // minWidth: "130px",
816
- border: "1px solid #E4E8EB",
817
- background: `${theme?.palette?.editor?.background} !important`,
885
+ // border: "1px solid #E4E8EB",
886
+ background: `${theme?.palette?.editor?.textWeightPopUpBackground} !important`,
818
887
  overflowY: "scroll",
819
- padding: "6px 12px 6px 0px",
888
+ padding: "3px 12px 8px 2px",
889
+ borderRadius: "8px",
820
890
  "@media only screen and (max-width: 600px)": {
821
891
  marginTop: "-40px"
822
892
  }
823
893
  },
824
894
  "& .customSelectOptionLabel": {
825
895
  color: theme?.palette?.editor?.textColor || "black",
826
- margin: "0px 6px 0px 6px",
896
+ margin: "6px 6px 0px 6px",
827
897
  width: "100%",
828
898
  justifyContent: "start",
829
899
  paddingRight: "20px",
@@ -836,8 +906,40 @@ const usePopupStyle = theme => ({
836
906
  background: `${theme?.palette?.action?.selected} !important`
837
907
  },
838
908
  "&.selected": {
839
- color: `#2563EB !important`,
840
- background: `#E9F3FE !important`
909
+ color: `${theme?.palette?.editor?.menuOptionTextColor} !important`,
910
+ background: `${theme?.palette?.editor?.menuOptionSelectedOption} !important`,
911
+ "& .orderedListIcon": {
912
+ "& path": {
913
+ stroke: `${theme?.palette?.editor?.menuOptionsSelectedTextColor}`
914
+ },
915
+ "& text": {
916
+ fill: `${theme?.palette?.editor?.menuOptionsSelectedTextColor}`
917
+ }
918
+ },
919
+ "& .bulletedListTextIcon": {
920
+ "& path": {
921
+ fill: `${theme?.palette?.editor?.menuOptionsSelectedTextColor}`,
922
+ stroke: `${theme?.palette?.editor?.menuOptionsSelectedTextColor}`
923
+ },
924
+ "& circle": {
925
+ fill: `${theme?.palette?.editor?.menuOptionsSelectedTextColor}`
926
+ }
927
+ },
928
+ "& .checkedListTextIcon": {
929
+ "& path": {
930
+ stroke: `${theme?.palette?.editor?.menuOptionsSelectedTextColor}`
931
+ }
932
+ },
933
+ "& .accordianIconSvgTextFormat": {
934
+ "& path": {
935
+ stroke: `${theme?.palette?.editor?.menuOptionsSelectedTextColor} !important`
936
+ }
937
+ },
938
+ "& .textAlignIconSameStyles": {
939
+ "& path": {
940
+ fill: `${theme?.palette?.editor?.menuOptionsSelectedTextColor}`
941
+ }
942
+ }
841
943
  }
842
944
  },
843
945
  "& .menuOptions": {
@@ -125,6 +125,7 @@ const TextFormat = props => {
125
125
  item: true,
126
126
  xs: 12,
127
127
  sx: classes.textFormatField,
128
+ className: "textFormatMUIIcon",
128
129
  children: /*#__PURE__*/_jsx(FontFamilyAutocomplete, {
129
130
  classes: classes,
130
131
  ...fontFamilies,
@@ -147,6 +148,7 @@ const TextFormat = props => {
147
148
  item: true,
148
149
  xs: 12,
149
150
  sx: classes.textFormatField3,
151
+ className: "textFormatMUIIcon",
150
152
  children: /*#__PURE__*/_jsx(Dropdown, {
151
153
  classes: classes,
152
154
  ...fontWeight,
@@ -43,9 +43,10 @@ const ColorPickerButton = props => {
43
43
  background: value,
44
44
  height: "22px",
45
45
  minWidth: "22px",
46
- borderRadius: "26px",
47
- border: "2px solid #E7E7E7"
46
+ borderRadius: "26px"
47
+ // border: "2px solid #E7E7E7",
48
48
  },
49
+
49
50
  onClick: handleColorPicker
50
51
  }), /*#__PURE__*/_jsx(Popover, {
51
52
  open: open,
@@ -123,13 +123,7 @@ const usePopupStyles = theme => ({
123
123
  "& path": {
124
124
  stroke: `${theme?.palette?.editor?.menuOptionsSelectedTextColor} !important`
125
125
  }
126
- },
127
- "& .commonSvgStyle2": {
128
- background: "red !important"
129
126
  }
130
- },
131
- "& .renderComp": {
132
- backgroundColor: "red !important"
133
127
  }
134
128
  },
135
129
  "&:hover": {
@@ -162,7 +156,7 @@ const usePopupStyles = theme => ({
162
156
  marginBottom: "10px",
163
157
  fontSize: "14px",
164
158
  fontWeight: "bold",
165
- borderBottom: "1px solid #DCE4EC"
159
+ borderBottom: `1px solid ${theme?.palette?.editor?.deviderBgColor}`
166
160
  },
167
161
  listItem: {
168
162
  cursor: "pointer",
@@ -62,6 +62,7 @@ const FormSettings = props => {
62
62
  MuiAccordion: {
63
63
  styleOverrides: {
64
64
  root: {
65
+ background: theme?.palette?.editor?.miniToolBarBackground,
65
66
  "& .MuiAccordionSummary-root": {
66
67
  flexDirection: "row-reverse",
67
68
  "& .MuiSvgIcon-root": {
@@ -14,7 +14,7 @@ import BoundaryLine from "./GuideLines/BoundaryLine";
14
14
  import ContextMenu from "./ContextMenu";
15
15
  import VirtualElement from "./VirtualElement";
16
16
  import { ItemTypes } from "./ElementSettings/settingsConstants";
17
- import { focusSelection, clearSelection } from "../../helper";
17
+ import { clearSelection } from "../../helper";
18
18
  import { selectText } from "../../utils/helper";
19
19
  import { removeSign } from "./ElementSettings/OtherSettings";
20
20
  import useDragging from "../../hooks/useDragging";
@@ -72,6 +72,11 @@ const BackgroundImage = props => {
72
72
  children: "REMOVE"
73
73
  }) : /*#__PURE__*/_jsx(Grid, {
74
74
  className: "uploadImageText",
75
+ sx: {
76
+ padding: 0,
77
+ background: `${theme?.palette?.editor?.inputFieldBgColor}`,
78
+ border: `1px solid ${theme?.palette?.editor?.inputFieldBorder}`
79
+ },
75
80
  children: /*#__PURE__*/_jsxs(Button, {
76
81
  component: "label",
77
82
  variant: "text",
@@ -1,6 +1,7 @@
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";
4
5
  import { jsx as _jsx } from "react/jsx-runtime";
5
6
  import { Fragment as _Fragment } from "react/jsx-runtime";
6
7
  import { jsxs as _jsxs } from "react/jsx-runtime";
@@ -15,7 +16,10 @@ const RenderCard = ({
15
16
  return /*#__PURE__*/_jsx(Card, {
16
17
  sx: {
17
18
  position: 'relative',
18
- padding: "10px"
19
+ padding: "10px",
20
+ '& .MuiCheckbox-root svg': {
21
+ fill: 'unset !important'
22
+ }
19
23
  },
20
24
  children: /*#__PURE__*/_jsx(FormControlLabel, {
21
25
  control: /*#__PURE__*/_jsx(Checkbox, {
@@ -81,6 +85,9 @@ const CardsMapping = props => {
81
85
  selectedCard,
82
86
  infoIcon
83
87
  } = data;
88
+ const {
89
+ theme
90
+ } = useEditorContext();
84
91
  const activeCard = value === selectedCard;
85
92
  const handleChange = e => {
86
93
  if (selectedCard === data?.value) {
@@ -99,7 +106,8 @@ const CardsMapping = props => {
99
106
  sx: {
100
107
  marginBottom: "12px",
101
108
  "& .MuiPaper-root": {
102
- border: activeCard ? "1px solid #2563EB" : "1px solid #C8D8FA",
109
+ background: theme?.palette?.editor?.miniToolBarBackground,
110
+ border: activeCard ? "1px solid #2563EB" : `1px solid ${theme?.palette?.editor?.inputFieldBorder}`,
103
111
  borderRadius: "8px",
104
112
  boxShadow: activeCard ? "0px 4px 16px 0px #2563EB40" : "unset"
105
113
  }
@@ -4,6 +4,7 @@ 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";
7
8
  import { jsx as _jsx } from "react/jsx-runtime";
8
9
  import { Fragment as _Fragment } from "react/jsx-runtime";
9
10
  import { jsxs as _jsxs } from "react/jsx-runtime";
@@ -18,6 +19,9 @@ const Uploader = props => {
18
19
  const [base64, setBase64] = useState(value?.url);
19
20
  const [fileName, setFileName] = useState("");
20
21
  const [uploading, setUploading] = useState(false);
22
+ const {
23
+ theme
24
+ } = useEditorContext();
21
25
  const handleChange = async e => {
22
26
  const uFile = e.target.files[0];
23
27
  const strImage = await convertBase64(uFile);
@@ -98,6 +102,10 @@ const Uploader = props => {
98
102
  className: "uploadImageSection",
99
103
  children: base64 ? renderThumb() : /*#__PURE__*/_jsx(Grid, {
100
104
  className: "uploadImageText",
105
+ sx: {
106
+ background: `${theme?.palette?.editor?.inputFieldBgColor}`,
107
+ border: `1px solid ${theme?.palette?.editor?.inputFieldBorder}`
108
+ },
101
109
  children: /*#__PURE__*/_jsxs(Button, {
102
110
  component: "label",
103
111
  variant: "text",
@@ -628,6 +628,7 @@ export const BoldTextFormatIcon = props => /*#__PURE__*/_jsx("svg", {
628
628
  viewBox: "0 0 12 16",
629
629
  fill: "none",
630
630
  xmlns: "http://www.w3.org/2000/svg",
631
+ className: "fill-path",
631
632
  children: /*#__PURE__*/_jsx("path", {
632
633
  d: "M0.598011 15.3564V0.81099H5.92472C6.95691 0.81099 7.81155 0.981445 8.48864 1.32235C9.16572 1.65853 9.67235 2.11544 10.0085 2.69309C10.3447 3.26601 10.5128 3.91232 10.5128 4.63201C10.5128 5.23807 10.4015 5.74944 10.179 6.1661C9.95644 6.57804 9.65814 6.90948 9.28409 7.16042C8.91477 7.40663 8.50758 7.58656 8.0625 7.7002V7.84224C8.54545 7.86591 9.01657 8.02216 9.47585 8.31099C9.93987 8.59508 10.3234 8.99991 10.6264 9.52548C10.9295 10.051 11.081 10.6903 11.081 11.4431C11.081 12.1865 10.9058 12.8541 10.5554 13.4459C10.2098 14.0331 9.67472 14.4994 8.95028 14.8451C8.22585 15.186 7.30019 15.3564 6.1733 15.3564H0.598011ZM2.79261 13.4743H5.96023C7.01136 13.4743 7.7642 13.2707 8.21875 12.8635C8.6733 12.4564 8.90057 11.9474 8.90057 11.3366C8.90057 10.8773 8.78456 10.4559 8.55256 10.0724C8.32055 9.68883 7.98911 9.38343 7.55824 9.15616C7.1321 8.92889 6.62547 8.81525 6.03835 8.81525H2.79261V13.4743ZM2.79261 7.1036H5.73295C6.22538 7.1036 6.66809 7.00891 7.06108 6.81951C7.45881 6.63012 7.77367 6.36497 8.00568 6.02406C8.24242 5.67841 8.3608 5.27122 8.3608 4.80247C8.3608 4.20114 8.15009 3.69688 7.72869 3.28968C7.30729 2.88249 6.66099 2.67889 5.78977 2.67889H2.79261V7.1036Z",
633
634
  fill: "#64748B"
@@ -1200,6 +1201,7 @@ export function DragIcon() {
1200
1201
  viewBox: "0 0 10 6",
1201
1202
  fill: "none",
1202
1203
  xmlns: "http://www.w3.org/2000/svg",
1204
+ className: "dragIcon",
1203
1205
  children: [/*#__PURE__*/_jsx("ellipse", {
1204
1206
  cx: "1.49462",
1205
1207
  cy: "4.42384",
@@ -135,6 +135,7 @@ export const StrikethroughIcon = props => /*#__PURE__*/_jsx("svg", {
135
135
  height: "15",
136
136
  viewBox: "0 0 15 15",
137
137
  fill: "none",
138
+ className: "fill-path",
138
139
  children: /*#__PURE__*/_jsx("path", {
139
140
  className: "strokeFillPath",
140
141
  d: "M2.7607 11.125C2.7607 13.0718 4.33885 14.65 6.28568 14.65H8.21432C10.1611 14.65 11.7393 13.0718 11.7393 11.125V10.6429C11.7393 9.78254 11.4309 8.99403 10.9189 8.38214H13.5179C13.867 8.38214 14.15 8.0991 14.15 7.75C14.15 7.4009 13.867 7.11786 13.5179 7.11786H8.21597H8.21435H6.28579C5.03727 7.11786 4.02509 6.10568 4.02509 4.85714V4.375C4.02509 3.12647 5.03727 2.11429 6.28579 2.11429H8.21435C9.46288 2.11429 10.4751 3.12647 10.4751 4.375V4.84874C10.4751 5.19784 10.7581 5.48088 11.1072 5.48088C11.4563 5.48088 11.7393 5.19784 11.7393 4.84874V4.375C11.7393 2.42817 10.1612 0.85 8.21435 0.85H6.28579C4.33897 0.85 2.76081 2.42817 2.76081 4.375V4.85714C2.76081 5.71746 3.06916 6.50597 3.58108 7.11786H0.982141C0.633044 7.11786 0.35 7.4009 0.35 7.75C0.35 8.0991 0.633044 8.38214 0.982141 8.38214H8.21424L8.21556 8.38214C8.21559 8.38214 8.21562 8.38214 8.21564 8.38214C9.46353 8.38289 10.4749 9.39474 10.4749 10.6429V11.125C10.4749 12.3735 9.46276 13.3857 8.21424 13.3857H6.28568C5.03715 13.3857 4.02498 12.3735 4.02498 11.125V10.6429C4.02498 10.2938 3.74193 10.0107 3.39284 10.0107C3.04374 10.0107 2.7607 10.2938 2.7607 10.6429V11.125Z",
@@ -134,8 +134,7 @@ const useCommonStyle = theme => ({
134
134
  }
135
135
  },
136
136
  "& .active ": {
137
- border: `1px solid #2563EB !important`,
138
- background: `${theme?.palette?.editor?.signaturePopUpTabButtonSelectedBg} !important`
137
+ border: `1px solid #2563EB !important`
139
138
  }
140
139
  },
141
140
  "& .MuiTab-root": {
@@ -181,6 +180,11 @@ const useCommonStyle = theme => ({
181
180
  border: `1px solid ${theme?.palette?.editor?.closeButtonBorder} !important`
182
181
  }
183
182
  }
183
+ },
184
+ "& .disabledSaveBtn": {
185
+ background: "#2563EB33 !important",
186
+ color: theme?.palette?.type === "dark" && "#FFFFFF33 !important",
187
+ border: "1px solid #2563EB33 !important"
184
188
  }
185
189
  },
186
190
  popupTitle2: {
@@ -76,13 +76,11 @@ const ELEMENT_TAGS = {
76
76
  }),
77
77
  TABLE: (el, children = []) => {
78
78
  try {
79
- const tableBody = (children || [])?.find(f => f?.type === "table-body");
80
- const bodyChild = tableBody?.children || [];
81
- const firstRowChildren = tableBody[0]?.children || [];
79
+ const bodyChild = children || [];
80
+ const firstRowChildren = bodyChild[0]?.children || [];
82
81
  return {
83
82
  type: "table",
84
- overwriteChild: bodyChild,
85
- // we are not having table-body in our json format, just we are wrapping table-row's inside the table
83
+ children: bodyChild,
86
84
  rows: bodyChild?.length,
87
85
  columns: firstRowChildren?.length
88
86
  };
@@ -90,12 +88,8 @@ const ELEMENT_TAGS = {
90
88
  console.log(err);
91
89
  }
92
90
  },
93
- THEAD: () => ({
94
- type: "table-head"
95
- }),
96
- TBODY: () => ({
97
- type: "table-body"
98
- }),
91
+ // THEAD: () => ({ type: "table-head" }),
92
+ // TBODY: () => ({ type: "table-body" }),
99
93
  TH: handleTableCell,
100
94
  TR: () => ({
101
95
  type: "table-row"