@flozy/editor 5.3.5 → 5.3.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (123) hide show
  1. package/dist/Editor/CommonEditor.js +8 -14
  2. package/dist/Editor/Editor.css +22 -58
  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/MiniEditor.js +1 -15
  23. package/dist/Editor/Styles/EditorStyles.js +3 -5
  24. package/dist/Editor/Toolbar/FormatTools/FontFamilyAutocomplete.js +1 -17
  25. package/dist/Editor/Toolbar/FormatTools/TextSize.js +3 -5
  26. package/dist/Editor/Toolbar/PopupTool/PopupToolStyle.js +72 -210
  27. package/dist/Editor/Toolbar/PopupTool/TextFormat.js +8 -55
  28. package/dist/Editor/Toolbar/Toolbar.js +0 -6
  29. package/dist/Editor/Toolbar/toolbarGroups.js +0 -4
  30. package/dist/Editor/assets/svg/SettingsIcon.js +4 -4
  31. package/dist/Editor/common/ColorPickerButton.js +3 -5
  32. package/dist/Editor/common/DnD/Draggable.js +1 -2
  33. package/dist/Editor/common/FontLoader/FontLoader.js +4 -4
  34. package/dist/Editor/common/Icon.js +0 -6
  35. package/dist/Editor/common/ImageSelector/Options/Upload.js +1 -2
  36. package/dist/Editor/common/ImageSelector/Styles.js +6 -47
  37. package/dist/Editor/common/ImageSelector/UploadStyles.js +6 -18
  38. package/dist/Editor/common/MentionsPopup/Styles.js +122 -109
  39. package/dist/Editor/common/RnD/ElementSettings/Settings/FormSettings.js +0 -1
  40. package/dist/Editor/common/RnD/GuideLines/styles.js +3 -3
  41. package/dist/Editor/common/RnD/ShadowElement.js +1 -1
  42. package/dist/Editor/common/RnD/SwitchViewport/SwitchViewport.js +2 -14
  43. package/dist/Editor/common/RnD/Utils/gridDropItem.js +6 -9
  44. package/dist/Editor/common/RnD/index.js +1 -2
  45. package/dist/Editor/common/Section/index.js +3 -3
  46. package/dist/Editor/common/Section/styles.js +1 -5
  47. package/dist/Editor/common/Shorthands/elements.js +1 -13
  48. package/dist/Editor/common/StyleBuilder/fieldStyle.js +1 -2
  49. package/dist/Editor/common/StyleBuilder/fieldTypes/backgroundImage.js +3 -9
  50. package/dist/Editor/common/StyleBuilder/fieldTypes/bannerSpacing.js +3 -27
  51. package/dist/Editor/common/StyleBuilder/fieldTypes/borderRadius.js +2 -15
  52. package/dist/Editor/common/StyleBuilder/fieldTypes/card.js +2 -10
  53. package/dist/Editor/common/StyleBuilder/fieldTypes/color.js +1 -2
  54. package/dist/Editor/common/StyleBuilder/fieldTypes/fontSize.js +1 -1
  55. package/dist/Editor/common/StyleBuilder/fieldTypes/icons.js +0 -2
  56. package/dist/Editor/common/StyleBuilder/fieldTypes/index.js +1 -3
  57. package/dist/Editor/common/StyleBuilder/fieldTypes/radiusStyle.js +4 -4
  58. package/dist/Editor/common/StyleBuilder/fieldTypes/saveAsTemplate.js +6 -22
  59. package/dist/Editor/common/StyleBuilder/fieldTypes/selectBox.js +2 -21
  60. package/dist/Editor/common/StyleBuilder/fieldTypes/text.js +4 -15
  61. package/dist/Editor/common/StyleBuilder/fieldTypes/textOptions.js +0 -7
  62. package/dist/Editor/common/StyleBuilder/index.js +9 -17
  63. package/dist/Editor/common/StyleBuilder/pageSettingsStyle.js +0 -4
  64. package/dist/Editor/common/ToolbarIcon.js +1 -2
  65. package/dist/Editor/common/Uploader.js +36 -46
  66. package/dist/Editor/common/iconListV2.js +130 -348
  67. package/dist/Editor/common/iconslist.js +3 -6
  68. package/dist/Editor/commonStyle.js +4 -290
  69. package/dist/Editor/helper/index.js +3 -16
  70. package/dist/Editor/helper/theme.js +1 -24
  71. package/dist/Editor/hooks/useMouseMove.js +2 -5
  72. package/dist/Editor/plugins/withCustomDeleteBackward.js +2 -33
  73. package/dist/Editor/plugins/withEmbeds.js +26 -30
  74. package/dist/Editor/utils/SlateUtilityFunctions.js +4 -27
  75. package/dist/Editor/utils/button.js +4 -4
  76. package/dist/Editor/utils/helper.js +13 -40
  77. package/dist/Editor/utils/pageSettings.js +2 -14
  78. package/package.json +2 -2
  79. package/dist/Editor/Elements/DataView/DataView.js +0 -124
  80. package/dist/Editor/Elements/DataView/DataViewButton.js +0 -23
  81. package/dist/Editor/Elements/DataView/Layouts/ColumnView.js +0 -67
  82. package/dist/Editor/Elements/DataView/Layouts/DataTypes/CheckType.js +0 -33
  83. package/dist/Editor/Elements/DataView/Layouts/DataTypes/Components/Select.js +0 -162
  84. package/dist/Editor/Elements/DataView/Layouts/DataTypes/Components/SimpleSelect.js +0 -40
  85. package/dist/Editor/Elements/DataView/Layouts/DataTypes/Components/styles.js +0 -67
  86. package/dist/Editor/Elements/DataView/Layouts/DataTypes/DateType.js +0 -35
  87. package/dist/Editor/Elements/DataView/Layouts/DataTypes/MultiSelectType.js +0 -39
  88. package/dist/Editor/Elements/DataView/Layouts/DataTypes/NumberType.js +0 -30
  89. package/dist/Editor/Elements/DataView/Layouts/DataTypes/PersonType.js +0 -30
  90. package/dist/Editor/Elements/DataView/Layouts/DataTypes/SelectType.js +0 -35
  91. package/dist/Editor/Elements/DataView/Layouts/DataTypes/TextType.js +0 -36
  92. package/dist/Editor/Elements/DataView/Layouts/DataTypes/index.js +0 -17
  93. package/dist/Editor/Elements/DataView/Layouts/FilterSort/SortOptions/ChooseField.js +0 -29
  94. package/dist/Editor/Elements/DataView/Layouts/FilterSort/SortOptions/ChooseSort.js +0 -38
  95. package/dist/Editor/Elements/DataView/Layouts/FilterSort/SortOptions/index.js +0 -74
  96. package/dist/Editor/Elements/DataView/Layouts/FilterSort/index.js +0 -64
  97. package/dist/Editor/Elements/DataView/Layouts/FilterSort/styles.js +0 -106
  98. package/dist/Editor/Elements/DataView/Layouts/FilterView.js +0 -174
  99. package/dist/Editor/Elements/DataView/Layouts/Formula.js +0 -29
  100. package/dist/Editor/Elements/DataView/Layouts/Options/AddOptions.js +0 -113
  101. package/dist/Editor/Elements/DataView/Layouts/Options/AddProperty.js +0 -37
  102. package/dist/Editor/Elements/DataView/Layouts/Options/AllProperties.js +0 -111
  103. package/dist/Editor/Elements/DataView/Layouts/Options/ChangeProperty.js +0 -60
  104. package/dist/Editor/Elements/DataView/Layouts/Options/ColumnsList.js +0 -36
  105. package/dist/Editor/Elements/DataView/Layouts/Options/Constants.js +0 -101
  106. package/dist/Editor/Elements/DataView/Layouts/Options/EditOption.js +0 -160
  107. package/dist/Editor/Elements/DataView/Layouts/Options/EditProperty.js +0 -190
  108. package/dist/Editor/Elements/DataView/Layouts/Options/FilterProperty.js +0 -42
  109. package/dist/Editor/Elements/DataView/Layouts/Options/PropertyList.js +0 -30
  110. package/dist/Editor/Elements/DataView/Layouts/Options/index.js +0 -110
  111. package/dist/Editor/Elements/DataView/Layouts/Options/styles.js +0 -179
  112. package/dist/Editor/Elements/DataView/Layouts/TableStyles.js +0 -112
  113. package/dist/Editor/Elements/DataView/Layouts/TableView.js +0 -227
  114. package/dist/Editor/Elements/DataView/Layouts/ViewData.js +0 -80
  115. package/dist/Editor/Elements/DataView/Layouts/colStyles.js +0 -10
  116. package/dist/Editor/Elements/DataView/Layouts/index.js +0 -25
  117. package/dist/Editor/Elements/DataView/Providers/DataViewProvider.js +0 -281
  118. package/dist/Editor/Elements/DataView/Utils/globalSearch.js +0 -15
  119. package/dist/Editor/Elements/DataView/Utils/multiSortRows.js +0 -74
  120. package/dist/Editor/Elements/DataView/styles.js +0 -154
  121. package/dist/Editor/common/StyleBuilder/fieldTypes/lineSpacing.js +0 -79
  122. package/dist/Editor/helper/enforceDateFormat.js +0 -41
  123. package/dist/Editor/utils/dataView.js +0 -43
@@ -1346,22 +1346,19 @@ export const GridAddSectionIcon = props => /*#__PURE__*/_jsxs("svg", {
1346
1346
  stroke: "#64748B",
1347
1347
  strokeWidth: "1.5",
1348
1348
  strokeLinecap: "round",
1349
- strokeLinejoin: "round",
1350
- className: "fillStroke"
1349
+ strokeLinejoin: "round"
1351
1350
  }), /*#__PURE__*/_jsx("path", {
1352
1351
  d: "M10.1733 6.125V14.875",
1353
1352
  stroke: "#64748B",
1354
1353
  strokeWidth: "1.5",
1355
1354
  strokeLinecap: "round",
1356
- strokeLinejoin: "round",
1357
- className: "fillStroke"
1355
+ strokeLinejoin: "round"
1358
1356
  }), /*#__PURE__*/_jsx("path", {
1359
1357
  d: "M5.79834 10.5H14.5483",
1360
1358
  stroke: "#64748B",
1361
1359
  strokeWidth: "1.5",
1362
1360
  strokeLinecap: "round",
1363
- strokeLinejoin: "round",
1364
- className: "fillStroke"
1361
+ strokeLinejoin: "round"
1365
1362
  })]
1366
1363
  });
1367
1364
  export const FormIcon = () => {
@@ -1,147 +1,7 @@
1
1
  const useCommonStyle = theme => ({
2
2
  sideBarDrawer: {
3
3
  "& .MuiPaper-root": {
4
- backgroundColor: theme?.palette?.editor?.textFormatBgColor,
5
- border: `1px solid ${theme?.palette?.editor?.miniToolBarBorder}`,
6
- "@media only screen and (min-width: 899px)": {
7
- borderRadius: "20px",
8
- margin: "5px",
9
- height: "calc(100% - 10px)",
10
- overflow: "hidden"
11
- },
12
- "@media only screen and (max-width: 599px)": {
13
- borderRadius: "20px 20px 0px 0px"
14
- }
15
- },
16
- "& .optionePopupHeader": {
17
- borderBottom: `1px solid ${theme?.palette?.editor?.deviderBgColor} !important`,
18
- padding: "0px 0px 10px 0px",
19
- margin: "0px 10px",
20
- "& .MuiTypography-root": {
21
- textTransform: "capitalize"
22
- },
23
- "& .close-popupbtn": {
24
- background: theme?.palette?.editor?.closeButtonBgColor,
25
- color: `${theme?.palette?.editor?.closeButtonSvgStroke} !important`,
26
- "& svg": {
27
- color: `${theme?.palette?.editor?.closeButtonSvgStroke} !important`
28
- }
29
- }
30
- },
31
- "& .MuiDialogActions-root": {
32
- // paddingTop: "10px",
33
- "& .primaryBtn, .deleteBtn": {
34
- height: "32px !important",
35
- fontSize: "14px !important",
36
- fontWeight: "600 !important",
37
- padding: "0px 20px !important"
38
- },
39
- "& .deleteBtn": {
40
- background: `${theme?.palette?.type === "light" && "#FFF7F9"} !important`
41
- }
42
- },
43
- "& .MuiDialogContent-root": {
44
- padding: "0px 5px 0px 10px!important",
45
- height: "100%",
46
- fontFamily: "Inter, sans-serif",
47
- "& .MuiTypography-root": {
48
- fontSize: "14px",
49
- fontWeight: "500",
50
- fontFamily: "Inter, sans-serif"
51
- },
52
- "& p": {
53
- marginBottom: "7px",
54
- marginTop: "4px"
55
- },
56
- "& .muiIconsListParent": {
57
- "& svg": {
58
- color: `${theme?.palette?.editor?.svgTextAlignStrokeColor} !important`
59
- },
60
- "&::-webkit-scrollbar-thumb": {
61
- background: `none !important`
62
- },
63
- "&::-webkit-scrollbar-track": {
64
- visibility: "hidden"
65
- },
66
- "&::-webkit-scrollbar-thumb": {
67
- background: `${theme?.palette?.editor?.brainPopupScroll} !important`
68
- },
69
- "&::-webkit-scrollbar-track": {
70
- visibility: "hidden"
71
- }
72
- },
73
- "& .MuiGrid-root>.MuiGrid-item": {
74
- paddingRight: "0px !important",
75
- fontFamily: "Inter, sans-serif",
76
- height: 'fit-content'
77
- },
78
- "& .MuiInputBase-root": {
79
- borderRadius: "10px",
80
- background: theme?.palette?.editor?.inputFieldBgColor,
81
- border: `none`,
82
- height: "36px",
83
- boxShadow: "0px 4px 16px 0px #0000000D",
84
- fontFamily: "Inter, sans-serif",
85
- "&:hover .MuiOutlinedInput-notchedOutline": {
86
- border: `1px solid ${theme?.palette?.editor?.inputFieldBorder}`
87
- },
88
- "& input::placeholder": {
89
- color: "#94A3B8 !important",
90
- opacity: "unset",
91
- fontFamily: "Inter, sans-serif"
92
- },
93
- "& .colorPickerButton": {
94
- border: `2px solid ${theme?.palette?.editor?.buttonBorder2} !important`
95
- }
96
- },
97
- "& .MuiInputBase-root:has(.colorPickerButton)": {
98
- "& .MuiInputBase-input": {
99
- padding: "8.5px 14px 8.5px 0px",
100
- fontFamily: "Inter, sans-serif"
101
- }
102
- },
103
- "& .MuiInputBase-input": {
104
- color: theme?.palette?.editor?.deletePopUpButtonTextColor,
105
- textTransform: "math-auto",
106
- fontFamily: "Inter, sans-serif"
107
- },
108
- "& .MuiOutlinedInput-notchedOutline": {
109
- border: `1px solid ${theme?.palette?.editor?.inputFieldBorder}`
110
- },
111
- "& fieldset": {
112
- border: `1px solid transparent`,
113
- borderRadius: "10px"
114
- },
115
- "&::-webkit-scrollbar-thumb, & .MuiPaper-root ::-webkit-scrollbar-thumb": {
116
- background: `none !important`
117
- },
118
- "&::-webkit-scrollbar-track, & .MuiPaper-root ::-webkit-scrollbar-track": {
119
- visibility: "hidden"
120
- },
121
- "&:hover": {
122
- "&::-webkit-scrollbar-thumb, & .MuiPaper-root ::-webkit-scrollbar-thumb": {
123
- background: `${theme?.palette?.editor?.brainPopupScroll} !important`
124
- },
125
- "&::-webkit-scrollbar-track, & .MuiPaper-root ::-webkit-scrollbar-track": {
126
- visibility: "hidden"
127
- }
128
- },
129
- "& .sld-wrpr": {
130
- paddingLeft: "5px",
131
- "& .sliderInput": {
132
- background: theme?.palette?.editor?.inputFieldBgColor,
133
- border: `1px solid ${theme?.palette?.editor?.inputFieldBorder}`,
134
- borderRadius: "10px",
135
- width: "46px !important",
136
- marginLeft: "10px",
137
- height: '36px !important'
138
- }
139
- },
140
- '& .MuiFormHelperText-root': {
141
- margin: '4px 0px 0px 0px',
142
- color: theme?.palette?.editor?.closeButtonSvgStroke,
143
- fontFamily: "Inter, sans-serif"
144
- }
4
+ backgroundColor: theme?.palette?.editor?.background
145
5
  },
146
6
  "& .MuiTypography-root": {
147
7
  color: theme?.palette?.editor?.textColor
@@ -166,41 +26,11 @@ const useCommonStyle = theme => ({
166
26
  backgroundColor: theme?.palette?.editor?.background,
167
27
  color: theme?.palette?.editor?.textColor
168
28
  },
169
- customCheckBox: {
170
- padding: "0px",
171
- "& .MuiCheckbox-root": {
172
- padding: "8px 8px 8px 10px",
173
- "&:hover": {
174
- background: "unset !important"
175
- }
176
- },
177
- "& button": {
178
- width: "18px !important",
179
- height: "18px !important",
180
- borderRadius: "3px",
181
- border: `1px solid ${theme?.palette?.editor?.buttonBorder3}`,
182
- "& svg": {
183
- width: "14px",
184
- height: "14px"
185
- }
186
- },
187
- "& .checkedIcon": {
188
- background: "#2563EB",
189
- borderColor: "#2563EB",
190
- padding: "0px"
191
- },
192
- "& .unCheckedIcon": {
193
- background: theme?.palette?.editor?.checkedIconBg
194
- },
195
- "& p": {
196
- margin: "0px !important"
197
- }
198
- },
199
29
  customPaddingInput: {
200
30
  background: theme?.palette?.editor?.inputFieldBgColor,
201
31
  border: `1px solid ${theme?.palette?.editor?.inputFieldBorder}`,
202
32
  color: theme?.palette?.editor?.textColor,
203
- borderRadius: "6px"
33
+ borderRadius: '6px'
204
34
  },
205
35
  colorPickerPopup: {
206
36
  "& .MuiPaper-root": {
@@ -210,7 +40,7 @@ const useCommonStyle = theme => ({
210
40
  "& .popup_tabs": {
211
41
  backgroundColor: theme?.palette?.editor?.background,
212
42
  "@media only screen and (max-width: 899px)": {
213
- width: "100% !important"
43
+ width: '100% !important'
214
44
  }
215
45
  },
216
46
  "& .popup_tabs-header": {
@@ -248,9 +78,6 @@ const useCommonStyle = theme => ({
248
78
  }
249
79
  }
250
80
  },
251
- colorPickerBtnBorder: {
252
- border: `2px solid ${theme?.palette?.editor?.buttonBorder2} !important`
253
- },
254
81
  signaturePopup: {
255
82
  "& .MuiPaper-root": {
256
83
  backgroundColor: theme?.palette?.editor?.miniToolBarBackground,
@@ -348,7 +175,7 @@ const useCommonStyle = theme => ({
348
175
  },
349
176
  "& .deleteBtn": {
350
177
  background: "transparent",
351
- margin: "0px !important"
178
+ margin: '0px !important'
352
179
  },
353
180
  "& .MuiGrid-container": {
354
181
  "& .workFlowButton": {
@@ -382,44 +209,6 @@ const useCommonStyle = theme => ({
382
209
  textOptions: {
383
210
  "& .MuiPopover-root": {
384
211
  backgroundColor: theme?.palette?.editor?.background
385
- },
386
- "& svg": {
387
- width: "20px",
388
- height: "24px",
389
- color: `${theme?.palette?.editor?.svgTextAlignStrokeColor} !important`
390
- }
391
- },
392
- textOptionsList: {
393
- "& .MuiMenuItem-root": {
394
- padding: "8px 12px",
395
- fontSize: "12px",
396
- color: theme?.palette?.editor?.menuOptionTextColor,
397
- fontWeight: '500',
398
- fontFamily: "Inter, sans-serif",
399
- minHeight: '36px',
400
- "&:hover": {
401
- backgroundColor: theme?.palette?.editor?.menuOptionHoverBackground
402
- }
403
- },
404
- '& .Mui-selected': {
405
- background: `${theme?.palette?.editor?.menuOptionSelectedOption} !important`
406
- },
407
- "& .MuiListSubheader-root": {
408
- color: "gray",
409
- fontWeight: "bold",
410
- fontSize: "12px"
411
- },
412
- "& .MuiPaper-root": {
413
- borderRadius: '8px',
414
- padding: '0px',
415
- background: `${theme?.palette?.editor?.textWeightPopUpBackground} !important`
416
- },
417
- '& .MuiButtonBase-root': {
418
- margin: '4px',
419
- borderRadius: '6px'
420
- },
421
- '& .MuiList-root': {
422
- padding: '0px'
423
212
  }
424
213
  },
425
214
  datePicker: {
@@ -463,81 +252,6 @@ const useCommonStyle = theme => ({
463
252
  border: `1px solid transparent !important`
464
253
  }
465
254
  }
466
- },
467
- buttonMoreOption: {
468
- background: `${theme?.palette?.editor?.aiInputBackground} !important`,
469
- border: `1px solid ${theme?.palette?.editor?.buttonBorder1} !important`,
470
- padding: '4px !important',
471
- '& svg': {
472
- width: '18px !important',
473
- height: '18px !important',
474
- '& path': {
475
- stroke: `${theme?.palette?.editor?.closeButtonSvgStroke} !important`
476
- }
477
- }
478
- },
479
- pageSettingPopUpRoot: {
480
- padding: "16px 8px 16px 10px!important",
481
- height: "100%"
482
- },
483
- buttonMoreOption2: {
484
- background: `${theme?.palette?.editor?.aiInputBackground} !important`,
485
- border: `1px solid ${theme?.palette?.editor?.buttonBorder1} !important`,
486
- '& svg': {
487
- '& path': {
488
- fill: `${theme?.palette?.editor?.closeButtonSvgStroke} !important`
489
- }
490
- }
491
- },
492
- buttonMoreOption3: {
493
- background: `${theme?.palette?.editor?.aiInputBackground} !important`,
494
- border: `1px solid ${theme?.palette?.editor?.buttonBorder1} !important`,
495
- padding: '5px !important',
496
- '& svg': {
497
- width: '16px !important',
498
- height: '16px !important',
499
- '& path': {
500
- stroke: `${theme?.palette?.editor?.closeButtonSvgStroke} !important`
501
- }
502
- }
503
- },
504
- resizeButton: {
505
- background: theme?.palette?.editor?.aiInputBackground,
506
- border: `1px solid ${theme?.palette?.editor?.buttonBorder1}`,
507
- padding: '5px !important',
508
- borderRadius: '50% !important',
509
- '& svg': {
510
- width: '18px',
511
- height: '18px',
512
- '& path': {
513
- fill: `${theme?.palette?.editor?.closeButtonSvgStroke}`
514
- }
515
- },
516
- '&:hover': {
517
- background: theme?.palette?.editor?.aiInputBackground
518
- }
519
- },
520
- gradientFillBtn: {
521
- background: `linear-gradient(112.61deg, #2C63ED 19.3%, #8360FD 88.14%) !important`,
522
- textTransform: 'math-auto !important',
523
- color: '#FFFFFF !important',
524
- padding: '0px 12px !important',
525
- height: '32px',
526
- borderRadius: '8px',
527
- fontWeight: '500',
528
- fontSize: '14px'
529
- },
530
- emptyThumbBtn: {
531
- background: `${theme?.palette?.editor?.sectionSettingIconHover} !important`,
532
- color: `${theme?.palette?.editor?.textColor} !important`,
533
- fontSize: '14px !important',
534
- '& svg': {
535
- width: '20px !important',
536
- height: '20px !important',
537
- '& path': {
538
- stroke: `${theme?.palette?.editor?.closeButtonSvgStroke} !important`
539
- }
540
- }
541
255
  }
542
256
  });
543
257
  export default useCommonStyle;
@@ -308,13 +308,7 @@ export const getTextColor = (color = "") => {
308
308
  color: "transparent !important",
309
309
  caretColor: "black",
310
310
  "& span": {
311
- color: "transparent !important",
312
- "& ::selection": {
313
- color: "#000 !important"
314
- }
315
- },
316
- "& ::selection": {
317
- color: "#000 !important"
311
+ color: "transparent !important"
318
312
  }
319
313
  } : {
320
314
  color
@@ -337,14 +331,14 @@ export const isCarouselSelected = editor => {
337
331
  return false;
338
332
  }
339
333
  const [nodeEntry] = Editor.nodes(editor, {
340
- match: n => !Editor.isEditor(n) && Element.isElement(n) && n.type === "carousel"
334
+ match: n => !Editor.isEditor(n) && Element.isElement(n) && n.type === 'carousel'
341
335
  });
342
336
  if (!nodeEntry) {
343
337
  return false;
344
338
  }
345
339
  const [node] = nodeEntry;
346
340
  const carouselDom = ReactEditor.toDOMNode(editor, node);
347
- const isEdit = carouselDom.classList.contains("carousel_slider_edit");
341
+ const isEdit = carouselDom.classList.contains('carousel_slider_edit');
348
342
  return !isEdit;
349
343
  } catch (err) {
350
344
  console.log(err);
@@ -366,11 +360,4 @@ export const clearBrainText = editor => {
366
360
  } catch (err) {
367
361
  console.log(err);
368
362
  }
369
- };
370
- export const clearSelectionOnly = editor => {
371
- try {
372
- Transforms.deselect(editor);
373
- } catch (err) {
374
- console.log(err);
375
- }
376
363
  };
@@ -147,27 +147,4 @@ export const groupByBreakpoint = (styleProps, theme) => {
147
147
  }
148
148
  };
149
149
  };
150
- export const getCustomizationValue = value => isNaN(parseInt(value)) ? null : parseInt(value);
151
- export const getBreakpointLineSpacing = (value, breakpoint) => {
152
- try {
153
- const values = getBreakPointsValue(value, breakpoint);
154
- const cssVal = BREAKPOINTS_DEVICES.reduce((a, b) => {
155
- if (values[b] || values["lg"]) {
156
- const value = values[b] || values["lg"];
157
- return {
158
- ...a,
159
- [b]: value
160
- };
161
- } else {
162
- return a;
163
- }
164
- }, {});
165
- if (breakpoint) {
166
- return value[breakpoint] || value["lg"] || value;
167
- } else {
168
- return cssVal["lg"];
169
- }
170
- } catch (err) {
171
- // console.log(err);
172
- }
173
- };
150
+ export const getCustomizationValue = value => isNaN(parseInt(value)) ? null : parseInt(value);
@@ -35,7 +35,6 @@ export const EditorProvider = ({
35
35
  path: null
36
36
  });
37
37
  const [fontFamilies, setFontFamilies] = useState({});
38
- const [activeBreakPoint, setActiveBreakPoint] = useState("");
39
38
  useEffect(() => {
40
39
  window.updateSelectedItem = d => {
41
40
  setSelectedElement(d);
@@ -98,10 +97,8 @@ export const EditorProvider = ({
98
97
  setOpenAI,
99
98
  updateDragging,
100
99
  fontFamilies,
101
- setFontFamilies,
102
- activeBreakPoint,
103
- setActiveBreakPoint
104
- }), [path, editor?.selection, selectedPath, selectedElement, contextMenu, openAI, popupType, drop, activeBreakPoint]);
100
+ setFontFamilies
101
+ }), [path, editor?.selection, selectedPath, selectedElement, contextMenu, openAI, popupType, drop]);
105
102
  return /*#__PURE__*/_jsx(EditorContext.Provider, {
106
103
  value: otherValues,
107
104
  children: children
@@ -1,5 +1,5 @@
1
- import { Editor, Node, Path, Point, Range, Transforms } from "slate";
2
- import { containsSurrogatePair, getNextNode } from "../utils/helper";
1
+ import { Editor, Node, Path, Point, Transforms } from "slate";
2
+ import { getNextNode } from "../utils/helper";
3
3
  const BACKWARD_BLOCKS = ["list-item", "signature"];
4
4
  const isNodeTextEmpty = node => {
5
5
  const nodeText = Node.string(node);
@@ -29,37 +29,6 @@ const withCustomDeleteBackward = editor => {
29
29
  return;
30
30
  }
31
31
  }
32
- if (selection && Range.isCollapsed(selection)) {
33
- const [currentNode, path] = Editor.node(editor, selection);
34
- if (currentNode && typeof currentNode.text === 'string') {
35
- const text = currentNode.text;
36
- if (containsSurrogatePair(text)) {
37
- // Check if the cursor is at the end of a surrogate pair
38
- const {
39
- offset
40
- } = selection.anchor;
41
- const beforeCursor = text.slice(0, offset);
42
- const afterCursor = text.slice(offset);
43
- if (containsSurrogatePair(beforeCursor) || containsSurrogatePair(afterCursor)) {
44
- // Delete the entire surrogate pair
45
- Transforms.delete(editor, {
46
- at: {
47
- anchor: {
48
- path,
49
- offset: offset - 2
50
- },
51
- // Move back 2 for surrogate pair
52
- focus: {
53
- path,
54
- offset
55
- }
56
- }
57
- });
58
- return;
59
- }
60
- }
61
- }
62
- }
63
32
 
64
33
  // Check if current node is a list item and is the last one, signature node
65
34
  const [node] = Editor.nodes(editor, {
@@ -40,36 +40,32 @@ const withEmbeds = editor => {
40
40
  }
41
41
  };
42
42
  editor.insertBreak = (...args) => {
43
- try {
44
- const parentPath = Path.parent(editor.selection.focus.path);
45
- const parentNode = Node.get(editor, parentPath);
46
- if (editor.isVoid(parentNode)) {
47
- const nextPath = Path.next(parentPath);
48
- Transforms.insertNodes(editor, {
49
- type: "paragraph",
50
- children: [{
51
- text: ""
52
- }]
53
- }, {
54
- at: nextPath,
55
- select: true // Focus on this node once inserted
56
- });
57
- } else if (AvoidCopying.indexOf(parentNode?.type) >= 0) {
58
- const nextPath = Path.next(parentPath);
59
- Transforms.insertNodes(editor, {
60
- type: "paragraph",
61
- children: [{
62
- text: ""
63
- }]
64
- }, {
65
- at: nextPath,
66
- select: true // Focus on this node once inserted
67
- });
68
- } else {
69
- insertBreak(...args);
70
- }
71
- } catch (err) {
72
- console.log(err);
43
+ const parentPath = Path.parent(editor.selection.focus.path);
44
+ const parentNode = Node.get(editor, parentPath);
45
+ if (editor.isVoid(parentNode)) {
46
+ const nextPath = Path.next(parentPath);
47
+ Transforms.insertNodes(editor, {
48
+ type: "paragraph",
49
+ children: [{
50
+ text: ""
51
+ }]
52
+ }, {
53
+ at: nextPath,
54
+ select: true // Focus on this node once inserted
55
+ });
56
+ } else if (AvoidCopying.indexOf(parentNode?.type) >= 0) {
57
+ const nextPath = Path.next(parentPath);
58
+ Transforms.insertNodes(editor, {
59
+ type: "paragraph",
60
+ children: [{
61
+ text: ""
62
+ }]
63
+ }, {
64
+ at: nextPath,
65
+ select: true // Focus on this node once inserted
66
+ });
67
+ } else {
68
+ insertBreak(...args);
73
69
  }
74
70
  };
75
71
  return editor;
@@ -43,9 +43,6 @@ import Code from "../Elements/EmbedScript/Code";
43
43
  import FreeGrid from "../Elements/FreeGrid/FreeGrid";
44
44
  import FreeGridItem from "../Elements/FreeGrid/FreeGridItem";
45
45
  import FreeGridBox from "../Elements/FreeGrid/FreeGridBox";
46
- import DataView from "../Elements/DataView/DataView";
47
- import ViewData from "../Elements/DataView/Layouts/ViewData";
48
- import ColumnView from "../Elements/DataView/Layouts/ColumnView";
49
46
  import SearchAttachment from "../Elements/Search/SearchAttachment";
50
47
  // import { wrapThemeBreakpoints } from "../Elements/FreeGrid/breakpointConstants";
51
48
  import { jsx as _jsx } from "react/jsx-runtime";
@@ -155,7 +152,7 @@ export const activeMark = (editor, format) => {
155
152
  const defaultMarkData = {
156
153
  color: "#000000",
157
154
  bgColor: "#FFFFFF",
158
- fontSize: "14px",
155
+ fontSize: "normal",
159
156
  fontFamily: "PoppinsRegular",
160
157
  fontWeight: "normal"
161
158
  };
@@ -240,8 +237,7 @@ export const getMarked = (leaf, children, theme) => {
240
237
  // },
241
238
  ...textStyles,
242
239
  fontFamily: family,
243
- fontWeight: leaf.fontWeight,
244
- WebkitTextFillColor: 'unset !important'
240
+ fontWeight: leaf.fontWeight
245
241
  },
246
242
  children: children
247
243
  })
@@ -250,6 +246,7 @@ export const getMarked = (leaf, children, theme) => {
250
246
  if (leaf.highlight) {
251
247
  children = /*#__PURE__*/_jsx("span", {
252
248
  style: {
249
+ background: "#EAEBFE",
253
250
  color: "inherit"
254
251
  },
255
252
  children: children
@@ -312,8 +309,7 @@ export const getBlock = props => {
312
309
  borderRadius: `${element?.color ? "0px" : "12px"} 12px 12px ${element?.color ? "0px" : "12px"}`,
313
310
  margin: `${element?.bgColor ? "16px" : "0px"} 0px`,
314
311
  width: element?.bgColor ? "calc(100% - 16px)" : "100%",
315
- borderWidth: element?.color ? "0px 0px 0px 3px" : "0px",
316
- lineHeight: 1.43
312
+ borderWidth: element?.color ? "0px 0px 0px 3px" : "0px"
317
313
  },
318
314
  children: children
319
315
  });
@@ -373,9 +369,6 @@ export const getBlock = props => {
373
369
  });
374
370
  case "orderedList":
375
371
  return /*#__PURE__*/_jsx("ol", {
376
- style: {
377
- lineHeight: 1.43
378
- },
379
372
  className: "listItemMargin",
380
373
  type: "1",
381
374
  ...attributes,
@@ -383,9 +376,6 @@ export const getBlock = props => {
383
376
  });
384
377
  case "unorderedList":
385
378
  return /*#__PURE__*/_jsx("ul", {
386
- style: {
387
- lineHeight: 1.43
388
- },
389
379
  className: "listItemMargin",
390
380
  ...attributes,
391
381
  children: children
@@ -574,19 +564,6 @@ export const getBlock = props => {
574
564
  contentEditable: false,
575
565
  children: children
576
566
  });
577
- // Data View
578
- case "dataView":
579
- return /*#__PURE__*/_jsx(DataView, {
580
- ...props
581
- });
582
- case "viewData":
583
- return /*#__PURE__*/_jsx(ViewData, {
584
- ...props
585
- });
586
- case "columnView":
587
- return /*#__PURE__*/_jsx(ColumnView, {
588
- ...props
589
- });
590
567
  default:
591
568
  return /*#__PURE__*/_jsx(SimpleText, {
592
569
  ...props,
@@ -20,10 +20,10 @@ export const insertButton = editor => {
20
20
  bottomRight: 30
21
21
  },
22
22
  bannerSpacing: {
23
- left: 24,
24
- top: 10,
25
- right: 24,
26
- bottom: 10
23
+ left: 16,
24
+ top: 8,
25
+ right: 16,
26
+ bottom: 8
27
27
  },
28
28
  ...(windowVar.lastButtonProps || {})
29
29
  };