@flozy/editor 5.3.4 → 5.3.6

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 (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
@@ -82,12 +82,10 @@ const ColorPickerButton = props => {
82
82
  height: "22px",
83
83
  minWidth: "22px",
84
84
  borderRadius: "26px"
85
+ // border: "2px solid #E7E7E7",
85
86
  },
86
- onClick: handleColorPicker,
87
- className: "colorPickerButton",
88
- sx: {
89
- ...classes.colorPickerBtnBorder
90
- }
87
+
88
+ onClick: handleColorPicker
91
89
  }), isMobile ? /*#__PURE__*/_jsx(SwipeableDrawerComponent, {
92
90
  open: open,
93
91
  onClose: handleClose,
@@ -2,7 +2,6 @@ import React, { useEffect } from "react";
2
2
  import { useDraggable } from "@dnd-kit/core";
3
3
  import { Box } from "@mui/material";
4
4
  import DragIndicatorIcon from "@mui/icons-material/DragIndicator";
5
- import { SectionDragIcon } from "../iconListV2";
6
5
  import { jsx as _jsx } from "react/jsx-runtime";
7
6
  const Draggable = props => {
8
7
  const {
@@ -36,7 +35,7 @@ const Draggable = props => {
36
35
  contentEditable: false,
37
36
  style: dragStyle,
38
37
  sx: classes.dragHandle,
39
- children: /*#__PURE__*/_jsx(SectionDragIcon, {})
38
+ children: /*#__PURE__*/_jsx(DragIndicatorIcon, {})
40
39
  });
41
40
  };
42
41
  export default Draggable;
@@ -41,9 +41,9 @@ const FontLoader = props => {
41
41
  // Retry loading the same batch
42
42
  loadNextBatch();
43
43
  } else {
44
- // console.log(
45
- // `Max retries reached for batch: ${batch}. Moving to the next batch.`
46
- // );
44
+ console.log(
45
+ // `Max retries reached for batch: ${batch}. Moving to the next batch.`
46
+ );
47
47
  currentIndex += batchSize;
48
48
  retryCount = 0; // Reset retry count for the next batch
49
49
  loadNextBatch();
@@ -67,7 +67,7 @@ const FontLoader = props => {
67
67
  });
68
68
  loadFontsInBatches(families);
69
69
  }).catch(err => {
70
- // console.log(err);
70
+ console.log(err);
71
71
  });
72
72
  } else {
73
73
  function correctFontArray(fontString) {
@@ -11,7 +11,6 @@ import ArrowRightIcon from "@mui/icons-material/ArrowRight";
11
11
  import ArrowDropDownIcon from "@mui/icons-material/ArrowDropDown";
12
12
  import EmailRoundedIcon from "@mui/icons-material/EmailRounded";
13
13
  import InfoOutlinedIcon from "@mui/icons-material/InfoOutlined";
14
- import GridOnIcon from "@mui/icons-material/GridOn";
15
14
  import GppBadOutlinedIcon from "@mui/icons-material/GppBadOutlined";
16
15
  import { AccordionTextFormatIcon, BoldTextFormatIcon, BulletedListTextFormatIcon, ButtonElementIcon, CarouselElementIcon, CheckListTextFormatIcon, ColorBoxElementIcon, DividerElementIcon, DocUploadElementIcon, EmbedElementIcon, EmojiElementIcon, FormElementIcon, GridElementIcon, H1, H2, H3, ImageElementIcon, ItalicTextFormatIcon, LinkIconV2, OrderedListTextFormatIcon, SignatureElementIcon, TableElementIcon, TopBannerElementIcon, UnderlineTextFormatIcon, VideoElementIcon, CalendlyIcon, LeftAlignTextFormat, CenterAlignTextFormat, RightAlignTextFormat, JustifyTextFormat, FreeGridElement, AppHeaderElement, CodeElementIcon } from "./iconListV2";
17
16
  import MoreVertRoundedIcon from "@mui/icons-material/MoreVertRounded";
@@ -272,11 +271,6 @@ const iconList = {
272
271
  addElement: /*#__PURE__*/_jsx(AddElementIcon, {}),
273
272
  addTemplate: /*#__PURE__*/_jsx(AddTemplateIcon, {}),
274
273
  openLinkIcon: /*#__PURE__*/_jsx(OpenLinkIcon, {}),
275
- dataView: /*#__PURE__*/_jsx(GridOnIcon, {
276
- sx: {
277
- fill: "#64748B"
278
- }
279
- }),
280
274
  editIcon: /*#__PURE__*/_jsx(EditIcon, {}),
281
275
  deleteIcon: /*#__PURE__*/_jsx(DeleteIcon, {}),
282
276
  brain: /*#__PURE__*/_jsx(BrainIcon, {}),
@@ -18,8 +18,7 @@ const Upload = props => {
18
18
  item: true,
19
19
  xs: 12,
20
20
  sx: {
21
- padding: 0,
22
- height: '100%'
21
+ padding: 0
23
22
  },
24
23
  className: "ims-right",
25
24
  children: /*#__PURE__*/_jsx(Uploader, {
@@ -58,32 +58,11 @@ const ImageSelectorStyles = theme => ({
58
58
  borderRadius: "12px",
59
59
  backgroundColor: theme?.palette?.editor?.background
60
60
  },
61
- "& .MuiDialogTitle-root": {
62
- fontSize: "16px",
63
- fontWeight: "700",
64
- "& button": {
65
- "& svg": {
66
- "& rect": {
67
- fill: theme?.palette?.editor?.closeButtonBgColor
68
- },
69
- "& path": {
70
- stroke: theme?.palette?.editor?.closeButtonSvgStroke
71
- }
72
- }
73
- }
74
- },
75
- "& .MuiDivider-root": {
76
- background: theme?.palette?.editor?.deviderBgColor,
77
- "@media only screen and (min-width: 899px)": {
78
- margin: "0px 24px",
79
- width: 'calc(100% - 48px)'
80
- }
81
- },
82
61
  "& .primaryBtn": {
83
62
  background: "#2563eb !important",
84
63
  boxShadow: "0px 8px 24px rgba(30, 64, 175, 0.08)",
85
64
  borderRadius: "8px !important",
86
- height: "32px !important",
65
+ height: "28px !important",
87
66
  fontWeight: "600 !important",
88
67
  fontSize: "12px !important",
89
68
  color: "#ffffff !important",
@@ -92,43 +71,23 @@ const ImageSelectorStyles = theme => ({
92
71
  marginLeft: "0px !important"
93
72
  },
94
73
  "& .secondaryBtn": {
95
- background: `${theme?.palette?.editor?.closeButtonBgColor} !important`,
74
+ background: "#ffffff !important",
96
75
  boxShadow: "0px 8px 24px rgba(30, 64, 175, 0.08)",
97
76
  borderRadius: "8px !important",
98
- height: "32px !important",
77
+ height: "28px !important",
99
78
  fontWeight: "600 !important",
100
79
  fontSize: "12px !important",
101
- color: `${theme?.palette?.editor?.deletePopUpButtonTextColor} !important`,
102
- border: `1px solid ${theme?.palette?.editor?.closeButtonBorder} !important`,
80
+ color: "#2563eb !important",
81
+ border: "1px solid #2563eb !important",
103
82
  width: "auto !important",
104
83
  marginRight: "8px !important"
105
- },
106
- "& .MuiGrid-root": {
107
- "&::-webkit-scrollbar-thumb": {
108
- background: `none !important`
109
- },
110
- "&::-webkit-scrollbar-track": {
111
- visibility: "hidden"
112
- },
113
- "&::-webkit-scrollbar-thumb": {
114
- background: `${theme?.palette?.editor?.brainPopupScroll} !important`
115
- },
116
- "&::-webkit-scrollbar-track": {
117
- visibility: "hidden"
118
- }
119
- },
120
- "& .MuiImageList-root": {
121
- margin: '0px'
122
- },
123
- "& .MuiDialogContent-root": {
124
- padding: '20px 24px 5px 24px'
125
84
  }
126
85
  },
127
86
  titleTypo: {
128
87
  fontSize: "16px",
129
88
  fontWeight: 500,
130
89
  color: theme?.palette?.editor?.textColor,
131
- fontFamily: "Inter, sans-serif"
90
+ fontFamily: 'Inter, sans-serif'
132
91
  },
133
92
  addLinkField: {
134
93
  "& .MuiOutlinedInput-input": {
@@ -1,38 +1,26 @@
1
1
  const UploadStyles = theme => ({
2
2
  uploadContainer: {
3
- border: `1px solid ${theme?.palette?.editor?.uploadFileBorder}`,
3
+ border: "1px solid #2563EB",
4
4
  padding: "10px",
5
- borderRadius: "11px",
6
- boxShadow: "0px 4px 10px rgba(0, 0, 0, 0.16)",
7
- background: theme?.palette?.editor?.uploadFileBg,
8
- height: '100%',
9
- minHeight: '150px'
5
+ borderRadius: "7px",
6
+ boxShadow: "0px 4px 10px rgba(0, 0, 0, 0.16)"
10
7
  },
11
8
  uploadField: {
12
9
  width: "100%",
13
10
  backgroundSize: "100% auto",
14
11
  backgroundRepeat: "no-repeat",
15
12
  backgroundPosition: "center",
16
- height: "auto",
13
+ height: "250px",
17
14
  position: "relative",
18
- backgroundColor: theme?.palette?.editor?.uploadFileInnerBg,
15
+ backgroundColor: theme?.palette?.editor?.background,
19
16
  borderRadius: "9px",
20
- border: "1px dashed #2563EB",
21
- minHeight: '150px'
17
+ border: "1px dashed #2563EB"
22
18
  },
23
19
  uploadIcon: {
24
- display: "grid !important",
25
20
  "& svg": {
26
- display: 'flex',
27
- width: '100%',
28
21
  "& path": {
29
22
  stroke: "#2563EB"
30
23
  }
31
- },
32
- '& span': {
33
- display: 'flex',
34
- width: '100%',
35
- marginTop: '5px'
36
24
  }
37
25
  }
38
26
  });
@@ -3,10 +3,9 @@ const usePopupStyles = theme => ({
3
3
  position: "absolute",
4
4
  zIndex: 1300,
5
5
  borderRadius: "10px",
6
- // padding: "0px",
7
6
  boxShadow: "0px 4px 10px 0px #00000029",
8
7
  overflow: "hidden",
9
- // padding: "8px 0px !important",
8
+ padding: "8px 0px !important",
10
9
  background: `${theme?.palette?.editor?.miniToolBarBackground} !important`,
11
10
  "& .MuiPaper-root": {
12
11
  background: `${theme?.palette?.editor?.miniToolBarBackground} !important`,
@@ -22,12 +21,131 @@ const usePopupStyles = theme => ({
22
21
  "& button": {
23
22
  padding: "0px 0px 0px 4px !important",
24
23
  "& svg": {
25
- width: "21px !important",
26
- margin: "5px 12px 6px 4px !important"
24
+ width: "18px !important",
25
+ margin: "5px 12px 6px 6px !important"
27
26
  },
28
27
  "&:hover": {
29
28
  borderRadius: "10px",
30
29
  background: `${theme?.palette?.editor?.menuOptionHoverBackground} !important`
30
+ // "& svg": {
31
+ // fill: "#007bff",
32
+ // },
33
+ }
34
+ },
35
+
36
+ "& .active": {
37
+ border: "unset !important",
38
+ "& .MuiPaper-root": {
39
+ background: `${theme?.palette?.editor?.menuOptionSelectedOption} !important`,
40
+ borderRadius: "7px",
41
+ "& .MuiBox-root": {
42
+ "& .MuiCardContent-root": {
43
+ "& .MuiTypography-root": {
44
+ color: `${theme?.palette?.editor?.menuOptionsSelectedTextColor} !important`
45
+ }
46
+ }
47
+ }
48
+ },
49
+ "& button": {
50
+ background: `${theme?.palette?.editor?.menuOptionSelectedOption} !important`,
51
+ borderRadius: "7px",
52
+ "& svg": {
53
+ "& path": {
54
+ stroke: `${theme?.palette?.editor?.menuOptionsSelectedTextColor} !important`
55
+ }
56
+ },
57
+ "& span": {
58
+ "& .MuiTypography-root": {
59
+ color: `${theme?.palette?.editor?.menuOptionsSelectedTextColor} !important`
60
+ }
61
+ },
62
+ "& .BrainIcon": {
63
+ "& .bainIconPathStroke": {
64
+ fill: `${theme?.palette?.editor?.menuOptionsSelectedTextColor} !important`,
65
+ stroke: "unset !important"
66
+ },
67
+ "& .bainIconPathStroke2": {
68
+ stroke: `${theme?.palette?.editor?.menuOptionsSelectedTextColor} !important`,
69
+ fill: `${theme?.palette?.editor?.menuOptionsSelectedTextColor} !important`
70
+ }
71
+ }
72
+ },
73
+ "& .MuiCardMedia-root": {
74
+ "& .signatureElementIcon": {
75
+ "& path": {
76
+ fill: `${theme?.palette?.editor?.menuOptionsSelectedTextColor} !important`
77
+ }
78
+ },
79
+ "& .commonSvgStyle": {
80
+ "& path": {
81
+ stroke: `${theme?.palette?.editor?.menuOptionsSelectedTextColor} !important`
82
+ }
83
+ },
84
+ "& .calederIconSvg": {
85
+ "& path": {
86
+ stroke: `${theme?.palette?.editor?.menuOptionsSelectedTextColor} !important`
87
+ },
88
+ "& rect": {
89
+ stroke: `${theme?.palette?.editor?.menuOptionsSelectedTextColor} !important`
90
+ }
91
+ },
92
+ "& .colorBoxElementIcon": {
93
+ "& path": {
94
+ stroke: `${theme?.palette?.editor?.menuOptionsSelectedTextColor} !important`,
95
+ fill: "none"
96
+ }
97
+ },
98
+ "& .gridElementIcon": {
99
+ "& path": {
100
+ stroke: `${theme?.palette?.editor?.menuOptionsSelectedTextColor} !important`
101
+ }
102
+ },
103
+ "& .newLineElementIcon": {
104
+ "& path": {
105
+ fill: `${theme?.palette?.editor?.menuOptionsSelectedTextColor} !important`
106
+ }
107
+ },
108
+ "& .blockQuoteSvg": {
109
+ fill: `${theme?.palette?.editor?.menuOptionsSelectedTextColor} !important`
110
+ },
111
+ "& .orderedListIcon": {
112
+ "& path": {
113
+ stroke: `${theme?.palette?.editor?.menuOptionsSelectedTextColor} !important`
114
+ },
115
+ "& text": {
116
+ fill: `${theme?.palette?.editor?.menuOptionsSelectedTextColor} !important`
117
+ }
118
+ },
119
+ "& .bulletedListTextIcon": {
120
+ "& path": {
121
+ fill: `${theme?.palette?.editor?.menuOptionsSelectedTextColor} !important`,
122
+ stroke: `${theme?.palette?.editor?.menuOptionsSelectedTextColor} !important`
123
+ },
124
+ "& circle": {
125
+ fill: `${theme?.palette?.editor?.menuOptionsSelectedTextColor} !important`
126
+ }
127
+ },
128
+ "& .checkedListTextIcon": {
129
+ "& path": {
130
+ stroke: `${theme?.palette?.editor?.menuOptionsSelectedTextColor} !important`
131
+ }
132
+ },
133
+ "& .accordianListTextIcon": {
134
+ // stroke: `${theme?.palette?.editor?.svgTextAlignStrokeColor} !important`,
135
+ "& svg": {
136
+ fill: `${theme?.palette?.editor?.menuOptionsSelectedTextColor} !important`,
137
+ stroke: `${theme?.palette?.editor?.menuOptionsSelectedTextColor} !important`
138
+ },
139
+ "& path": {
140
+ fill: `${theme?.palette?.editor?.menuOptionsSelectedTextColor} !important`,
141
+ stroke: `${theme?.palette?.editor?.menuOptionsSelectedTextColor} !important`
142
+ }
143
+ },
144
+ "& .accordianIconSvgTextFormat": {
145
+ "& path": {
146
+ stroke: `${theme?.palette?.editor?.menuOptionsSelectedTextColor} !important`
147
+ }
148
+ }
31
149
  }
32
150
  },
33
151
  "&:hover": {
@@ -53,111 +171,6 @@ const usePopupStyles = theme => ({
53
171
  },
54
172
  "& button": {
55
173
  color: theme?.palette?.editor?.textColor
56
- },
57
- "@media only screen and (min-width: 899px)": {
58
- maxHeight: "400px"
59
- },
60
- "& .orderedListIcon, .bulletedListTextIcon, .checkedListTextIcon, .accordianIconSvgTextFormat": {
61
- width: "20px !important"
62
- },
63
- "&::-webkit-scrollbar-thumb": {
64
- background: `none !important`
65
- },
66
- "&::-webkit-scrollbar-track": {
67
- visibility: "hidden"
68
- },
69
- "&::-webkit-scrollbar-thumb": {
70
- background: `${theme?.palette?.editor?.brainPopupScroll} !important`
71
- },
72
- "&::-webkit-scrollbar-track": {
73
- visibility: "hidden"
74
- },
75
- "& svg": {
76
- width: "20px",
77
- height: "20px"
78
- },
79
- "& .signatureElementIcon": {
80
- "& path": {
81
- fill: `${theme?.palette?.editor?.closeButtonSvgStroke}`
82
- }
83
- },
84
- "& .commonSvgStyle": {
85
- "& path": {
86
- stroke: `${theme?.palette?.editor?.closeButtonSvgStroke}`
87
- }
88
- },
89
- "& .commonSvgStyle2": {
90
- "& path": {
91
- stroke: `${theme?.palette?.editor?.closeButtonSvgStroke}`
92
- }
93
- },
94
- "& .colorBoxElementIcon": {
95
- "& path": {
96
- stroke: `${theme?.palette?.editor?.closeButtonSvgStroke}`,
97
- fill: "none"
98
- }
99
- },
100
- "& .gridElementIcon": {
101
- "& path": {
102
- stroke: `${theme?.palette?.editor?.closeButtonSvgStroke}`
103
- }
104
- },
105
- "& .newLineElementIcon": {
106
- "& path": {
107
- fill: `${theme?.palette?.editor?.closeButtonSvgStroke}`
108
- }
109
- },
110
- "& .orderedListIcon": {
111
- "& .strokePathList": {
112
- stroke: theme?.palette?.editor?.closeButtonSvgStroke
113
- },
114
- "& .fillPathList": {
115
- fill: theme?.palette?.editor?.closeButtonSvgStroke
116
- }
117
- },
118
- "& .bulletedListTextIcon": {
119
- "& path": {
120
- fill: theme?.palette?.editor?.closeButtonSvgStroke,
121
- stroke: theme?.palette?.editor?.closeButtonSvgStroke
122
- },
123
- "& circle": {
124
- fill: theme?.palette?.editor?.closeButtonSvgStroke
125
- }
126
- },
127
- "& .checkedListTextIcon": {
128
- "& path": {
129
- stroke: theme?.palette?.editor?.closeButtonSvgStroke
130
- }
131
- },
132
- "& .accordianIconSvgTextFormat": {
133
- "& path": {
134
- stroke: theme?.palette?.editor?.closeButtonSvgStroke
135
- }
136
- },
137
- "& .blockQuoteSvg": {
138
- fill: theme?.palette?.editor?.closeButtonSvgStroke,
139
- stroke: theme?.palette?.editor?.closeButtonSvgStroke
140
- },
141
- "& .BrainIcon": {
142
- "& .bainIconPathStroke": {
143
- fill: theme?.palette?.editor?.closeButtonSvgStroke,
144
- stroke: "unset !important"
145
- },
146
- "& .bainIconPathStroke2": {
147
- stroke: theme?.palette?.editor?.closeButtonSvgStroke,
148
- fill: theme?.palette?.editor?.closeButtonSvgStroke
149
- }
150
- },
151
- "& .calederIconSvg": {
152
- '& rect': {
153
- stroke: theme?.palette?.editor?.closeButtonSvgStroke
154
- },
155
- '& .strokePath': {
156
- stroke: theme?.palette?.editor?.closeButtonSvgStroke
157
- },
158
- '& .fillPath': {
159
- fill: theme?.palette?.editor?.closeButtonSvgStroke
160
- }
161
174
  }
162
175
  },
163
176
  groupHeader: {
@@ -62,7 +62,6 @@ const FormSettings = props => {
62
62
  MuiAccordion: {
63
63
  styleOverrides: {
64
64
  root: {
65
- background: theme?.palette?.editor?.miniToolBarBackground,
66
65
  "& .MuiAccordionSummary-root": {
67
66
  flexDirection: "row-reverse",
68
67
  "& .MuiSvgIcon-root": {
@@ -22,7 +22,7 @@ const useGuideLineStyle = ({
22
22
  backgroundColor: "#FFF",
23
23
  pointerEvents: "none",
24
24
  zIndex: 1,
25
- [theme?.breakpoints?.between("xs", "md")]: {
25
+ [theme.breakpoints.between("xs", "md")]: {
26
26
  left: "calc(50% - 160px)"
27
27
  }
28
28
  },
@@ -35,13 +35,13 @@ const useGuideLineStyle = ({
35
35
  backgroundColor: "#FFF",
36
36
  pointerEvents: "none",
37
37
  zIndex: 1,
38
- [theme?.breakpoints?.between("xs", "md")]: {
38
+ [theme.breakpoints.between("xs", "md")]: {
39
39
  left: "calc(50% + 160px)"
40
40
  }
41
41
  },
42
42
  "& .white-wrapper": {
43
43
  overflowX: "hidden",
44
- [theme?.breakpoints?.between("xs", "md")]: {
44
+ [theme.breakpoints.between("xs", "md")]: {
45
45
  position: "absolute",
46
46
  width: "calc(50% - 162px)",
47
47
  height: "calc(100% - 2px)",
@@ -10,7 +10,7 @@ const useShadowElementStyles = ({
10
10
  position: "relative",
11
11
  backgroundColor: "rgba(0,0,0,0)",
12
12
  marginLeft: `calc((100% - 980px) * 0.5)`,
13
- [theme?.breakpoints?.between("xs", "md")]: {
13
+ [theme.breakpoints.between("xs", "md")]: {
14
14
  marginLeft: `calc((100% - 320px) * 0.5)`
15
15
  }
16
16
  }
@@ -3,35 +3,24 @@ import PersonalVideoIcon from "@mui/icons-material/PersonalVideo";
3
3
  import PhoneIphoneIcon from "@mui/icons-material/PhoneIphone";
4
4
  import useSwitchViewport from "./styles";
5
5
  import { useEffect } from "react";
6
- import { useEditorContext } from "../../../hooks/useMouseMove";
7
6
  import { jsx as _jsx } from "react/jsx-runtime";
8
7
  import { jsxs as _jsxs } from "react/jsx-runtime";
9
8
  const SwitchViewport = props => {
10
9
  const {
11
10
  breakpoint,
12
- onChange,
13
- show
11
+ onChange
14
12
  } = props;
15
13
  const classes = useSwitchViewport();
16
- const {
17
- setSelectedElement,
18
- setActiveBreakPoint
19
- } = useEditorContext();
20
14
  useEffect(() => {
21
- // to reset selection on viewport changes - FS-6589
22
- setSelectedElement({});
15
+ console.log(breakpoint);
23
16
  }, [breakpoint]);
24
17
  return /*#__PURE__*/_jsxs(Box, {
25
18
  sx: classes.root,
26
- style: {
27
- display: show ? "block" : "none"
28
- },
29
19
  children: [/*#__PURE__*/_jsx(Tooltip, {
30
20
  title: "Desktop View",
31
21
  children: /*#__PURE__*/_jsx(IconButton, {
32
22
  className: `${!breakpoint || breakpoint === "lg" ? "active" : ""}`,
33
23
  onClick: () => {
34
- setActiveBreakPoint("");
35
24
  onChange("");
36
25
  },
37
26
  children: /*#__PURE__*/_jsx(PersonalVideoIcon, {})
@@ -41,7 +30,6 @@ const SwitchViewport = props => {
41
30
  children: /*#__PURE__*/_jsx(IconButton, {
42
31
  className: `${breakpoint === "xs" ? "active" : ""}`,
43
32
  onClick: () => {
44
- setActiveBreakPoint("xs");
45
33
  onChange("xs");
46
34
  },
47
35
  children: /*#__PURE__*/_jsx(PhoneIphoneIcon, {})
@@ -1,6 +1,5 @@
1
1
  import { Transforms, Node, Path } from "slate";
2
2
  import { ReactEditor } from "slate-react";
3
- import { handleNegativeInteger } from "../../../utils/helper";
4
3
  export const ROW_HEIGHT = 50;
5
4
  const MARGIN_OF = {
6
5
  xs: 160,
@@ -76,7 +75,7 @@ const reRenderChildNodes = (editor, path) => {
76
75
  console.log(err);
77
76
  }
78
77
  };
79
- function isContainerElement(editor, moveTopath, props, appenBp) {
78
+ function isContainerElement(editor, moveTopath, props) {
80
79
  try {
81
80
  const {
82
81
  path,
@@ -92,7 +91,6 @@ function isContainerElement(editor, moveTopath, props, appenBp) {
92
91
  parentNode = Node.get(editor, Path.parent(dragItemPath));
93
92
  }
94
93
  const moveToNode = Node.get(editor, moveTopath);
95
- const leftOfMoveToNode = moveToNode[`left${appenBp}`];
96
94
  if (moveToNode.type === "freegridBox") {
97
95
  if (parentNode.type === "freegridBox") {
98
96
  // same box
@@ -100,10 +98,10 @@ function isContainerElement(editor, moveTopath, props, appenBp) {
100
98
  return props.calX;
101
99
  } else {
102
100
  // for different box
103
- return parseInt(props.x - window.innerWidth / 2 + MARGIN_OF[props.breakpoint] - props.diffX - leftOfMoveToNode);
101
+ return parseInt(props.x - window.innerWidth / 2 + MARGIN_OF[props.breakpoint] - props.diffX - moveToNode.left);
104
102
  }
105
103
  } else {
106
- return props.calX - leftOfMoveToNode;
104
+ return props.calX - moveToNode?.left;
107
105
  }
108
106
  } else if (moveToNode.type === "freegrid") {
109
107
  if (parentNode.type === "freegridBox") {
@@ -135,16 +133,14 @@ export function onDropItem(props, parentClass) {
135
133
  const from = parentPath.split("|").map(m => parseInt(m));
136
134
  let newPath = [];
137
135
  newPath = moveTo;
138
- const appenBp = breakpoint === "lg" ? "" : `_${breakpoint}`;
139
- const cCalx = isContainerElement(editor, moveTo, props, appenBp);
140
-
136
+ const cCalx = isContainerElement(editor, moveTo, props);
141
137
  // const posX = parseInt(
142
138
  // cx - window.innerWidth / 2 + MARGIN_OF[breakpoint] - diffX
143
139
  // );
144
140
  const toSectionNode = Node.get(editor, newPath);
145
141
  const addToSectionDOM = ReactEditor.toDOMNode(editor, toSectionNode);
146
142
  const rect = addToSectionDOM.getBoundingClientRect();
147
- const y = handleNegativeInteger(endPosition.y - startPosition.diffY - rect.top);
143
+ const y = endPosition.y - startPosition.diffY - rect.top;
148
144
 
149
145
  // Calculate grid position
150
146
  const row = Math.floor(y / ROW_HEIGHT) + 1;
@@ -154,6 +150,7 @@ export function onDropItem(props, parentClass) {
154
150
 
155
151
  // Update grid area
156
152
  const gridArea = `${row} / 1 / ${row + 1} / 2`;
153
+ const appenBp = breakpoint === "lg" ? "" : `_${breakpoint}`;
157
154
  Transforms.setNodes(editor, {
158
155
  [`gridArea${appenBp}`]: gridArea,
159
156
  [`left${appenBp}`]: cCalx,
@@ -18,7 +18,7 @@ import { selectText } from "../../utils/helper";
18
18
  import { removeSign } from "./ElementSettings/OtherSettings";
19
19
  import useDragging from "../../hooks/useDragging";
20
20
  import { dragOverOn } from "../../helper/RnD/focusNode";
21
- import { focusSelection, clearSelection, clearSelectionOnly } from "../../helper";
21
+ import { focusSelection, clearSelection } from "../../helper";
22
22
  import { jsx as _jsx } from "react/jsx-runtime";
23
23
  import { jsxs as _jsxs } from "react/jsx-runtime";
24
24
  import { Fragment as _Fragment } from "react/jsx-runtime";
@@ -163,7 +163,6 @@ const RnD = props => {
163
163
  }
164
164
  switch (e.detail) {
165
165
  case 1:
166
- clearSelectionOnly(editor); //for selection removal on click outside
167
166
  if (!enable) {
168
167
  setSelectedElement({
169
168
  path: str_path,
@@ -3,13 +3,13 @@ import { useTheme } from "@mui/material";
3
3
  import { Transforms } from "slate";
4
4
  import { ReactEditor, useSlateStatic } from "slate-react";
5
5
  import { Box, IconButton, Popper, Tooltip } from "@mui/material";
6
+ import TuneIcon from "@mui/icons-material/Tune";
6
7
  import SectionPopup from "../../Elements/Grid/SectionPopup";
7
8
  import { getBreakPointsValue, getTRBLBreakPoints, groupByBreakpoint } from "../../helper/theme";
8
9
  import DragHandle from "../DnD/DragHandleButton";
9
10
  import { useEditorSelection } from "../../hooks/useMouseMove";
10
11
  import SectionStyle from "./styles";
11
12
  import useWindowResize from "../../hooks/useWindowResize";
12
- import { SectionSettingIcon } from "../iconListV2";
13
13
  import { jsx as _jsx } from "react/jsx-runtime";
14
14
  import { jsxs as _jsxs } from "react/jsx-runtime";
15
15
  import { Fragment as _Fragment } from "react/jsx-runtime";
@@ -72,13 +72,13 @@ const Section = props => {
72
72
  height: "100%"
73
73
  } : {
74
74
  left: "-28px",
75
- top: "1px"
75
+ top: "3px"
76
76
  },
77
77
  children: /*#__PURE__*/_jsx(Tooltip, {
78
78
  title: "Section Settings",
79
79
  children: /*#__PURE__*/_jsx(IconButton, {
80
80
  onClick: onSettings,
81
- children: /*#__PURE__*/_jsx(SectionSettingIcon, {})
81
+ children: /*#__PURE__*/_jsx(TuneIcon, {})
82
82
  })
83
83
  })
84
84
  }) : null;