@flozy/editor 5.2.8 → 5.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (95) hide show
  1. package/dist/Editor/ChatEditor.js +34 -25
  2. package/dist/Editor/CommonEditor.js +11 -17
  3. package/dist/Editor/Editor.css +16 -14
  4. package/dist/Editor/Elements/AI/AIInput.js +3 -0
  5. package/dist/Editor/Elements/AppHeader/AppHeader.js +6 -6
  6. package/dist/Editor/Elements/Button/EditorButton.js +2 -8
  7. package/dist/Editor/Elements/Color Picker/ColorButtons.js +2 -4
  8. package/dist/Editor/Elements/Form/Form.js +0 -1
  9. package/dist/Editor/Elements/FreeGrid/breakpointConstants.js +4 -4
  10. package/dist/Editor/Elements/FreeGrid/styles.js +1 -2
  11. package/dist/Editor/Elements/List/CheckList.js +1 -2
  12. package/dist/Editor/Elements/Search/SearchAttachment.js +0 -1
  13. package/dist/Editor/Elements/SimpleText/index.js +1 -8
  14. package/dist/Editor/Elements/SimpleText/style.js +1 -10
  15. package/dist/Editor/Elements/Table/Table.js +1 -1
  16. package/dist/Editor/Elements/TopBanner/TopBanner.js +1 -2
  17. package/dist/Editor/Toolbar/PopupTool/PopupToolStyle.js +0 -10
  18. package/dist/Editor/Toolbar/PopupTool/TextFormat.js +0 -45
  19. package/dist/Editor/Toolbar/Toolbar.js +0 -6
  20. package/dist/Editor/Toolbar/toolbarGroups.js +0 -4
  21. package/dist/Editor/common/FontLoader/FontLoader.js +4 -4
  22. package/dist/Editor/common/Icon.js +0 -6
  23. package/dist/Editor/common/MentionsPopup/Styles.js +5 -2
  24. package/dist/Editor/common/RnD/ElementSettings/Settings/FormSettings.js +0 -1
  25. package/dist/Editor/common/RnD/GuideLines/styles.js +3 -3
  26. package/dist/Editor/common/RnD/ShadowElement.js +1 -1
  27. package/dist/Editor/common/RnD/SwitchViewport/SwitchViewport.js +2 -14
  28. package/dist/Editor/common/RnD/Utils/gridDropItem.js +6 -9
  29. package/dist/Editor/common/Shorthands/elements.js +1 -13
  30. package/dist/Editor/common/StyleBuilder/fieldTypes/backgroundImage.js +0 -5
  31. package/dist/Editor/common/StyleBuilder/fieldTypes/card.js +2 -10
  32. package/dist/Editor/common/StyleBuilder/fieldTypes/index.js +1 -3
  33. package/dist/Editor/common/StyleBuilder/pageSettingsStyle.js +0 -4
  34. package/dist/Editor/common/Uploader.js +0 -8
  35. package/dist/Editor/common/iconListV2.js +53 -53
  36. package/dist/Editor/common/iconslist.js +3 -6
  37. package/dist/Editor/commonStyle.js +0 -9
  38. package/dist/Editor/helper/index.js +2 -2
  39. package/dist/Editor/helper/theme.js +1 -24
  40. package/dist/Editor/hooks/useMouseMove.js +2 -5
  41. package/dist/Editor/plugins/withEmbeds.js +26 -30
  42. package/dist/Editor/plugins/withHTML.js +2 -42
  43. package/dist/Editor/plugins/withLayout.js +0 -42
  44. package/dist/Editor/utils/SlateUtilityFunctions.js +1 -24
  45. package/dist/Editor/utils/button.js +4 -4
  46. package/dist/Editor/utils/chatEditor/SlateUtilityFunctions.js +1 -26
  47. package/dist/Editor/utils/events.js +1 -0
  48. package/dist/Editor/utils/helper.js +1 -51
  49. package/dist/Editor/utils/pageSettings.js +2 -14
  50. package/dist/Editor/utils/serializeToText.js +0 -2
  51. package/package.json +1 -1
  52. package/dist/Editor/Elements/DataView/DataView.js +0 -124
  53. package/dist/Editor/Elements/DataView/DataViewButton.js +0 -23
  54. package/dist/Editor/Elements/DataView/Layouts/ColumnView.js +0 -68
  55. package/dist/Editor/Elements/DataView/Layouts/DataTypes/CheckType.js +0 -33
  56. package/dist/Editor/Elements/DataView/Layouts/DataTypes/Components/Select.js +0 -162
  57. package/dist/Editor/Elements/DataView/Layouts/DataTypes/Components/SimpleSelect.js +0 -40
  58. package/dist/Editor/Elements/DataView/Layouts/DataTypes/Components/styles.js +0 -67
  59. package/dist/Editor/Elements/DataView/Layouts/DataTypes/DateType.js +0 -35
  60. package/dist/Editor/Elements/DataView/Layouts/DataTypes/MultiSelectType.js +0 -39
  61. package/dist/Editor/Elements/DataView/Layouts/DataTypes/NumberType.js +0 -30
  62. package/dist/Editor/Elements/DataView/Layouts/DataTypes/PersonType.js +0 -30
  63. package/dist/Editor/Elements/DataView/Layouts/DataTypes/SelectType.js +0 -35
  64. package/dist/Editor/Elements/DataView/Layouts/DataTypes/TextType.js +0 -36
  65. package/dist/Editor/Elements/DataView/Layouts/DataTypes/index.js +0 -17
  66. package/dist/Editor/Elements/DataView/Layouts/FilterSort/SortOptions/ChooseField.js +0 -29
  67. package/dist/Editor/Elements/DataView/Layouts/FilterSort/SortOptions/ChooseSort.js +0 -38
  68. package/dist/Editor/Elements/DataView/Layouts/FilterSort/SortOptions/index.js +0 -74
  69. package/dist/Editor/Elements/DataView/Layouts/FilterSort/index.js +0 -64
  70. package/dist/Editor/Elements/DataView/Layouts/FilterSort/styles.js +0 -106
  71. package/dist/Editor/Elements/DataView/Layouts/FilterView.js +0 -174
  72. package/dist/Editor/Elements/DataView/Layouts/Formula.js +0 -29
  73. package/dist/Editor/Elements/DataView/Layouts/Options/AddOptions.js +0 -113
  74. package/dist/Editor/Elements/DataView/Layouts/Options/AddProperty.js +0 -37
  75. package/dist/Editor/Elements/DataView/Layouts/Options/AllProperties.js +0 -111
  76. package/dist/Editor/Elements/DataView/Layouts/Options/ChangeProperty.js +0 -60
  77. package/dist/Editor/Elements/DataView/Layouts/Options/ColumnsList.js +0 -36
  78. package/dist/Editor/Elements/DataView/Layouts/Options/Constants.js +0 -101
  79. package/dist/Editor/Elements/DataView/Layouts/Options/EditOption.js +0 -160
  80. package/dist/Editor/Elements/DataView/Layouts/Options/EditProperty.js +0 -190
  81. package/dist/Editor/Elements/DataView/Layouts/Options/FilterProperty.js +0 -42
  82. package/dist/Editor/Elements/DataView/Layouts/Options/PropertyList.js +0 -30
  83. package/dist/Editor/Elements/DataView/Layouts/Options/index.js +0 -110
  84. package/dist/Editor/Elements/DataView/Layouts/Options/styles.js +0 -179
  85. package/dist/Editor/Elements/DataView/Layouts/TableStyles.js +0 -112
  86. package/dist/Editor/Elements/DataView/Layouts/TableView.js +0 -227
  87. package/dist/Editor/Elements/DataView/Layouts/ViewData.js +0 -81
  88. package/dist/Editor/Elements/DataView/Layouts/index.js +0 -25
  89. package/dist/Editor/Elements/DataView/Providers/DataViewProvider.js +0 -273
  90. package/dist/Editor/Elements/DataView/Utils/globalSearch.js +0 -15
  91. package/dist/Editor/Elements/DataView/Utils/multiSortRows.js +0 -74
  92. package/dist/Editor/Elements/DataView/styles.js +0 -154
  93. package/dist/Editor/common/StyleBuilder/fieldTypes/lineSpacing.js +0 -79
  94. package/dist/Editor/helper/enforceDateFormat.js +0 -41
  95. package/dist/Editor/utils/dataView.js +0 -43
@@ -32,7 +32,6 @@ import ColorboxButton from "../Elements/Colorbox/ColorboxButton.js";
32
32
  import DividerButton from "../Elements/Divider/DividerButton.js";
33
33
  import EmbedScript from "../Elements/EmbedScript/EmbedScript.js";
34
34
  import FreeGridButton from "../Elements/FreeGrid/FreeGridButton.js";
35
- import DataViewButton from "../Elements/DataView/DataViewButton.js";
36
35
  import SearchButton from "../Elements/Search/SearchButton.js";
37
36
  import { jsx as _jsx } from "react/jsx-runtime";
38
37
  import { jsxs as _jsxs } from "react/jsx-runtime";
@@ -119,11 +118,6 @@ export const RenderToolbarIcon = props => {
119
118
  editor: editor,
120
119
  icoBtnType: icoBtnType
121
120
  }, element.id);
122
- case "dataView":
123
- return /*#__PURE__*/_jsx(DataViewButton, {
124
- editor: editor,
125
- icoBtnType: icoBtnType
126
- }, element.id);
127
121
  case "id":
128
122
  return /*#__PURE__*/_jsx(Id, {
129
123
  editor: editor
@@ -191,10 +191,6 @@ export const toolbarGroups = [[{
191
191
  id: 42,
192
192
  type: "table",
193
193
  group: "elements"
194
- }, {
195
- id: 51,
196
- type: "dataView",
197
- group: "elements"
198
194
  }, {
199
195
  id: 48,
200
196
  format: "divider",
@@ -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, {}),
@@ -3,7 +3,6 @@ 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
8
  padding: "8px 0px !important",
@@ -28,8 +27,12 @@ const usePopupStyles = theme => ({
28
27
  "&:hover": {
29
28
  borderRadius: "10px",
30
29
  background: `${theme?.palette?.editor?.menuOptionHoverBackground} !important`
30
+ // "& svg": {
31
+ // fill: "#007bff",
32
+ // },
31
33
  }
32
34
  },
35
+
33
36
  "& .active": {
34
37
  border: "unset !important",
35
38
  "& .MuiPaper-root": {
@@ -48,7 +51,7 @@ const usePopupStyles = theme => ({
48
51
  borderRadius: "7px",
49
52
  "& svg": {
50
53
  "& path": {
51
- stroke: `${theme?.palette?.editor?.menuOptionsSelectedTextColor}`
54
+ stroke: `${theme?.palette?.editor?.menuOptionsSelectedTextColor} !important`
52
55
  }
53
56
  },
54
57
  "& span": {
@@ -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 = handleNegativeInteger(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,
@@ -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 {
@@ -72,11 +72,6 @@ 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
- },
80
75
  children: /*#__PURE__*/_jsxs(Button, {
81
76
  component: "label",
82
77
  variant: "text",
@@ -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
  }
@@ -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;
@@ -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",
@@ -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);
@@ -102,10 +98,6 @@ const Uploader = props => {
102
98
  className: "uploadImageSection",
103
99
  children: base64 ? renderThumb() : /*#__PURE__*/_jsx(Grid, {
104
100
  className: "uploadImageText",
105
- sx: {
106
- background: `${theme?.palette?.editor?.inputFieldBgColor}`,
107
- border: `1px solid ${theme?.palette?.editor?.inputFieldBorder}`
108
- },
109
101
  children: /*#__PURE__*/_jsxs(Button, {
110
102
  component: "label",
111
103
  variant: "text",
@@ -940,6 +940,59 @@ export function CalendlyIcon() {
940
940
  })]
941
941
  });
942
942
  }
943
+ export function DragIcon() {
944
+ return /*#__PURE__*/_jsxs("svg", {
945
+ width: "16",
946
+ height: "12",
947
+ viewBox: "0 0 10 6",
948
+ fill: "none",
949
+ xmlns: "http://www.w3.org/2000/svg",
950
+ className: "dragIcon",
951
+ children: [/*#__PURE__*/_jsx("ellipse", {
952
+ cx: "1.49462",
953
+ cy: "4.42384",
954
+ rx: "0.779289",
955
+ ry: "0.779289",
956
+ transform: "rotate(-90 1.49462 4.42384)",
957
+ fill: "#94A3B8"
958
+ }), /*#__PURE__*/_jsx("ellipse", {
959
+ cx: "4.99999",
960
+ cy: "4.42384",
961
+ rx: "0.779289",
962
+ ry: "0.779289",
963
+ transform: "rotate(-90 4.99999 4.42384)",
964
+ fill: "#94A3B8"
965
+ }), /*#__PURE__*/_jsx("ellipse", {
966
+ cx: "8.50732",
967
+ cy: "4.42384",
968
+ rx: "0.779289",
969
+ ry: "0.779289",
970
+ transform: "rotate(-90 8.50732 4.42384)",
971
+ fill: "#94A3B8"
972
+ }), /*#__PURE__*/_jsx("ellipse", {
973
+ cx: "1.49462",
974
+ cy: "0.91993",
975
+ rx: "0.779289",
976
+ ry: "0.779289",
977
+ transform: "rotate(-90 1.49462 0.91993)",
978
+ fill: "#94A3B8"
979
+ }), /*#__PURE__*/_jsx("ellipse", {
980
+ cx: "4.99999",
981
+ cy: "0.91993",
982
+ rx: "0.779289",
983
+ ry: "0.779289",
984
+ transform: "rotate(-90 4.99999 0.91993)",
985
+ fill: "#94A3B8"
986
+ }), /*#__PURE__*/_jsx("ellipse", {
987
+ cx: "8.50732",
988
+ cy: "0.91993",
989
+ rx: "0.779289",
990
+ ry: "0.779289",
991
+ transform: "rotate(-90 8.50732 0.91993)",
992
+ fill: "#94A3B8"
993
+ })]
994
+ });
995
+ }
943
996
  export function LeftAlignTextFormat() {
944
997
  return /*#__PURE__*/_jsxs("svg", {
945
998
  width: "19",
@@ -1192,57 +1245,4 @@ export function CodeElementIcon() {
1192
1245
  strokeLinejoin: "round"
1193
1246
  })]
1194
1247
  });
1195
- }
1196
- export function DragIcon() {
1197
- return /*#__PURE__*/_jsxs("svg", {
1198
- width: "16",
1199
- height: "12",
1200
- viewBox: "0 0 10 6",
1201
- fill: "none",
1202
- xmlns: "http://www.w3.org/2000/svg",
1203
- className: "dragIcon",
1204
- children: [/*#__PURE__*/_jsx("ellipse", {
1205
- cx: "1.49462",
1206
- cy: "4.42384",
1207
- rx: "0.779289",
1208
- ry: "0.779289",
1209
- transform: "rotate(-90 1.49462 4.42384)",
1210
- fill: "#94A3B8"
1211
- }), /*#__PURE__*/_jsx("ellipse", {
1212
- cx: "4.99999",
1213
- cy: "4.42384",
1214
- rx: "0.779289",
1215
- ry: "0.779289",
1216
- transform: "rotate(-90 4.99999 4.42384)",
1217
- fill: "#94A3B8"
1218
- }), /*#__PURE__*/_jsx("ellipse", {
1219
- cx: "8.50732",
1220
- cy: "4.42384",
1221
- rx: "0.779289",
1222
- ry: "0.779289",
1223
- transform: "rotate(-90 8.50732 4.42384)",
1224
- fill: "#94A3B8"
1225
- }), /*#__PURE__*/_jsx("ellipse", {
1226
- cx: "1.49462",
1227
- cy: "0.91993",
1228
- rx: "0.779289",
1229
- ry: "0.779289",
1230
- transform: "rotate(-90 1.49462 0.91993)",
1231
- fill: "#94A3B8"
1232
- }), /*#__PURE__*/_jsx("ellipse", {
1233
- cx: "4.99999",
1234
- cy: "0.91993",
1235
- rx: "0.779289",
1236
- ry: "0.779289",
1237
- transform: "rotate(-90 4.99999 0.91993)",
1238
- fill: "#94A3B8"
1239
- }), /*#__PURE__*/_jsx("ellipse", {
1240
- cx: "8.50732",
1241
- cy: "0.91993",
1242
- rx: "0.779289",
1243
- ry: "0.779289",
1244
- transform: "rotate(-90 8.50732 0.91993)",
1245
- fill: "#94A3B8"
1246
- })]
1247
- });
1248
1248
  }
@@ -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 = () => {
@@ -252,15 +252,6 @@ const useCommonStyle = theme => ({
252
252
  border: `1px solid transparent !important`
253
253
  }
254
254
  }
255
- },
256
- buttonMoreOption: {
257
- background: `${theme?.palette?.editor?.aiInputBackground} !important`,
258
- border: `1px solid ${theme?.palette?.editor?.buttonBorder1} !important`,
259
- '& svg': {
260
- '& path': {
261
- stroke: `${theme?.palette?.editor?.closeButtonSvgStroke} !important`
262
- }
263
- }
264
255
  }
265
256
  });
266
257
  export default useCommonStyle;
@@ -331,14 +331,14 @@ export const isCarouselSelected = editor => {
331
331
  return false;
332
332
  }
333
333
  const [nodeEntry] = Editor.nodes(editor, {
334
- match: n => !Editor.isEditor(n) && Element.isElement(n) && n.type === "carousel"
334
+ match: n => !Editor.isEditor(n) && Element.isElement(n) && n.type === 'carousel'
335
335
  });
336
336
  if (!nodeEntry) {
337
337
  return false;
338
338
  }
339
339
  const [node] = nodeEntry;
340
340
  const carouselDom = ReactEditor.toDOMNode(editor, node);
341
- const isEdit = carouselDom.classList.contains("carousel_slider_edit");
341
+ const isEdit = carouselDom.classList.contains('carousel_slider_edit');
342
342
  return !isEdit;
343
343
  } catch (err) {
344
344
  console.log(err);
@@ -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