@flozy/editor 5.3.7 → 5.3.8

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 (191) hide show
  1. package/dist/Editor/ChatEditor.js +34 -25
  2. package/dist/Editor/CommonEditor.js +15 -29
  3. package/dist/Editor/Editor.css +18 -100
  4. package/dist/Editor/Elements/AI/AIInput.js +1 -0
  5. package/dist/Editor/Elements/AI/CustomSelect.js +11 -19
  6. package/dist/Editor/Elements/AI/PopoverAIInput.js +4 -9
  7. package/dist/Editor/Elements/AI/Styles.js +5 -17
  8. package/dist/Editor/Elements/Accordion/Accordion.js +1 -8
  9. package/dist/Editor/Elements/AppHeader/AppHeader.js +6 -6
  10. package/dist/Editor/Elements/Button/EditorButton.js +2 -9
  11. package/dist/Editor/Elements/Carousel/CarouselItem.js +3 -11
  12. package/dist/Editor/Elements/Color Picker/ColorButtons.js +5 -7
  13. package/dist/Editor/Elements/Color Picker/Styles.js +3 -7
  14. package/dist/Editor/Elements/Color Picker/defaultColors.js +2 -2
  15. package/dist/Editor/Elements/Divider/Divider.js +20 -36
  16. package/dist/Editor/Elements/Embed/Image.js +16 -51
  17. package/dist/Editor/Elements/Embed/Video.js +3 -26
  18. package/dist/Editor/Elements/Form/Form.js +2 -39
  19. package/dist/Editor/Elements/Form/FormElements/FormCheckbox.js +1 -7
  20. package/dist/Editor/Elements/Form/FormElements/FormDate.js +1 -7
  21. package/dist/Editor/Elements/Form/FormElements/FormEmail.js +1 -7
  22. package/dist/Editor/Elements/Form/FormElements/FormNumbers.js +1 -7
  23. package/dist/Editor/Elements/Form/FormElements/FormRadioButton.js +1 -7
  24. package/dist/Editor/Elements/Form/FormElements/FormText.js +1 -7
  25. package/dist/Editor/Elements/Form/FormElements/FormTextArea.js +1 -6
  26. package/dist/Editor/Elements/Form/FormPopup.js +9 -12
  27. package/dist/Editor/Elements/FreeGrid/FreeGrid.js +1 -1
  28. package/dist/Editor/Elements/FreeGrid/FreeGridItem.js +1 -20
  29. package/dist/Editor/Elements/FreeGrid/breakpointConstants.js +4 -4
  30. package/dist/Editor/Elements/FreeGrid/styles.js +1 -2
  31. package/dist/Editor/Elements/Grid/GridButton.js +2 -2
  32. package/dist/Editor/Elements/Grid/GridItem.js +36 -47
  33. package/dist/Editor/Elements/Grid/Styles.js +0 -50
  34. package/dist/Editor/Elements/Link/LinkButton.js +1 -1
  35. package/dist/Editor/Elements/List/CheckList.js +1 -2
  36. package/dist/Editor/Elements/Search/SearchAttachment.js +0 -1
  37. package/dist/Editor/Elements/Search/SearchButton.js +0 -1
  38. package/dist/Editor/Elements/Signature/Signature.css +1 -1
  39. package/dist/Editor/Elements/Signature/SignatureOptions/TypeSignature.js +2 -2
  40. package/dist/Editor/Elements/Signature/SignaturePopup.js +52 -17
  41. package/dist/Editor/Elements/SimpleText/index.js +1 -8
  42. package/dist/Editor/Elements/SimpleText/style.js +1 -20
  43. package/dist/Editor/Elements/Table/Styles.js +79 -82
  44. package/dist/Editor/Elements/Table/Table.js +140 -258
  45. package/dist/Editor/Elements/Table/TableCell.js +111 -365
  46. package/dist/Editor/Elements/Table/TablePopup.js +3 -9
  47. package/dist/Editor/Elements/Table/TableRow.js +2 -10
  48. package/dist/Editor/Elements/TopBanner/TopBanner.js +1 -2
  49. package/dist/Editor/MiniEditor.js +1 -15
  50. package/dist/Editor/Styles/EditorStyles.js +4 -13
  51. package/dist/Editor/Toolbar/FormatTools/BlockButton.js +0 -10
  52. package/dist/Editor/Toolbar/FormatTools/Dropdown.js +12 -7
  53. package/dist/Editor/Toolbar/FormatTools/FontFamilyAutocomplete.js +4 -26
  54. package/dist/Editor/Toolbar/FormatTools/MarkButton.js +0 -3
  55. package/dist/Editor/Toolbar/FormatTools/TextSize.js +5 -5
  56. package/dist/Editor/Toolbar/Mini/MiniToolbar.js +6 -3
  57. package/dist/Editor/Toolbar/Mini/Styles.js +1 -4
  58. package/dist/Editor/Toolbar/PopupTool/MiniTextFormat/index.js +3 -3
  59. package/dist/Editor/Toolbar/PopupTool/PopperHeader.js +15 -19
  60. package/dist/Editor/Toolbar/PopupTool/PopupToolStyle.js +57 -555
  61. package/dist/Editor/Toolbar/PopupTool/TextFormat.js +16 -73
  62. package/dist/Editor/Toolbar/PopupTool/index.js +5 -3
  63. package/dist/Editor/Toolbar/Toolbar.js +0 -6
  64. package/dist/Editor/Toolbar/toolbarGroups.js +0 -4
  65. package/dist/Editor/assets/svg/BrainIcon.js +2 -2
  66. package/dist/Editor/assets/svg/SettingsIcon.js +4 -4
  67. package/dist/Editor/common/ColorPickerButton.js +45 -85
  68. package/dist/Editor/common/DnD/Draggable.js +1 -2
  69. package/dist/Editor/common/FontLoader/FontLoader.js +4 -4
  70. package/dist/Editor/common/Icon.js +20 -23
  71. package/dist/Editor/common/ImageSelector/Options/Upload.js +1 -2
  72. package/dist/Editor/common/ImageSelector/Styles.js +6 -47
  73. package/dist/Editor/common/ImageSelector/UploadStyles.js +6 -18
  74. package/dist/Editor/common/LinkSettings/NavComponents.js +1 -2
  75. package/dist/Editor/common/LinkSettings/index.js +1 -2
  76. package/dist/Editor/common/MentionsPopup/Styles.js +8 -143
  77. package/dist/Editor/common/MentionsPopup/index.js +1 -1
  78. package/dist/Editor/common/RnD/ElementSettings/Settings/FormSettings.js +12 -108
  79. package/dist/Editor/common/RnD/GuideLines/styles.js +3 -3
  80. package/dist/Editor/common/RnD/ShadowElement.js +1 -1
  81. package/dist/Editor/common/RnD/SwitchViewport/SwitchViewport.js +2 -14
  82. package/dist/Editor/common/RnD/Utils/gridDropItem.js +6 -9
  83. package/dist/Editor/common/RnD/VirtualElement/index.js +1 -5
  84. package/dist/Editor/common/RnD/index.js +2 -3
  85. package/dist/Editor/common/Section/index.js +3 -3
  86. package/dist/Editor/common/Section/styles.js +1 -5
  87. package/dist/Editor/common/Shorthands/elements.js +1 -13
  88. package/dist/Editor/common/StyleBuilder/fieldStyle.js +1 -2
  89. package/dist/Editor/common/StyleBuilder/fieldTypes/backgroundImage.js +3 -9
  90. package/dist/Editor/common/StyleBuilder/fieldTypes/bannerSpacing.js +7 -35
  91. package/dist/Editor/common/StyleBuilder/fieldTypes/borderRadius.js +2 -15
  92. package/dist/Editor/common/StyleBuilder/fieldTypes/card.js +2 -10
  93. package/dist/Editor/common/StyleBuilder/fieldTypes/color.js +1 -2
  94. package/dist/Editor/common/StyleBuilder/fieldTypes/fontSize.js +1 -1
  95. package/dist/Editor/common/StyleBuilder/fieldTypes/icons.js +0 -2
  96. package/dist/Editor/common/StyleBuilder/fieldTypes/index.js +1 -3
  97. package/dist/Editor/common/StyleBuilder/fieldTypes/radiusStyle.js +11 -11
  98. package/dist/Editor/common/StyleBuilder/fieldTypes/saveAsTemplate.js +6 -22
  99. package/dist/Editor/common/StyleBuilder/fieldTypes/selectBox.js +2 -21
  100. package/dist/Editor/common/StyleBuilder/fieldTypes/text.js +4 -15
  101. package/dist/Editor/common/StyleBuilder/fieldTypes/textOptions.js +2 -12
  102. package/dist/Editor/common/StyleBuilder/formStyle.js +149 -268
  103. package/dist/Editor/common/StyleBuilder/index.js +20 -101
  104. package/dist/Editor/common/StyleBuilder/pageSettingsStyle.js +0 -4
  105. package/dist/Editor/common/StyleBuilder/tableStyle.js +25 -69
  106. package/dist/Editor/common/SwipeableDrawer/style.js +4 -15
  107. package/dist/Editor/common/ToolbarIcon.js +1 -1
  108. package/dist/Editor/common/Uploader.js +36 -46
  109. package/dist/Editor/common/iconListV2.js +60 -616
  110. package/dist/Editor/common/iconslist.js +17 -23
  111. package/dist/Editor/commonStyle.js +11 -417
  112. package/dist/Editor/helper/deserialize/index.js +1 -4
  113. package/dist/Editor/helper/index.js +4 -17
  114. package/dist/Editor/helper/theme.js +1 -24
  115. package/dist/Editor/hooks/useMouseMove.js +2 -5
  116. package/dist/Editor/plugins/withCustomDeleteBackward.js +4 -36
  117. package/dist/Editor/plugins/withEmbeds.js +26 -30
  118. package/dist/Editor/plugins/withHTML.js +10 -61
  119. package/dist/Editor/plugins/withLayout.js +0 -1
  120. package/dist/Editor/utils/SlateUtilityFunctions.js +4 -29
  121. package/dist/Editor/utils/brains.js +1 -1
  122. package/dist/Editor/utils/button.js +4 -4
  123. package/dist/Editor/utils/chatEditor/SlateUtilityFunctions.js +1 -26
  124. package/dist/Editor/utils/customHooks/useResize.js +4 -7
  125. package/dist/Editor/utils/customHooks/useTableResize.js +2 -6
  126. package/dist/Editor/utils/embed.js +1 -2
  127. package/dist/Editor/utils/events.js +1 -0
  128. package/dist/Editor/utils/font.js +4 -11
  129. package/dist/Editor/utils/formfield.js +4 -8
  130. package/dist/Editor/utils/helper.js +2 -95
  131. package/dist/Editor/utils/insertNewLine.js +1 -19
  132. package/dist/Editor/utils/pageSettings.js +2 -14
  133. package/dist/Editor/utils/serializeToText.js +0 -2
  134. package/dist/Editor/utils/table.js +24 -228
  135. package/package.json +2 -2
  136. package/dist/Editor/Elements/DataView/DataView.js +0 -124
  137. package/dist/Editor/Elements/DataView/DataViewButton.js +0 -23
  138. package/dist/Editor/Elements/DataView/Layouts/ColumnView.js +0 -67
  139. package/dist/Editor/Elements/DataView/Layouts/DataTypes/CheckType.js +0 -33
  140. package/dist/Editor/Elements/DataView/Layouts/DataTypes/Components/Select.js +0 -162
  141. package/dist/Editor/Elements/DataView/Layouts/DataTypes/Components/SimpleSelect.js +0 -40
  142. package/dist/Editor/Elements/DataView/Layouts/DataTypes/Components/styles.js +0 -67
  143. package/dist/Editor/Elements/DataView/Layouts/DataTypes/DateType.js +0 -35
  144. package/dist/Editor/Elements/DataView/Layouts/DataTypes/MultiSelectType.js +0 -39
  145. package/dist/Editor/Elements/DataView/Layouts/DataTypes/NumberType.js +0 -30
  146. package/dist/Editor/Elements/DataView/Layouts/DataTypes/PersonType.js +0 -30
  147. package/dist/Editor/Elements/DataView/Layouts/DataTypes/SelectType.js +0 -35
  148. package/dist/Editor/Elements/DataView/Layouts/DataTypes/TextType.js +0 -36
  149. package/dist/Editor/Elements/DataView/Layouts/DataTypes/index.js +0 -17
  150. package/dist/Editor/Elements/DataView/Layouts/FilterSort/SortOptions/ChooseField.js +0 -29
  151. package/dist/Editor/Elements/DataView/Layouts/FilterSort/SortOptions/ChooseSort.js +0 -38
  152. package/dist/Editor/Elements/DataView/Layouts/FilterSort/SortOptions/index.js +0 -74
  153. package/dist/Editor/Elements/DataView/Layouts/FilterSort/index.js +0 -64
  154. package/dist/Editor/Elements/DataView/Layouts/FilterSort/styles.js +0 -106
  155. package/dist/Editor/Elements/DataView/Layouts/FilterView.js +0 -174
  156. package/dist/Editor/Elements/DataView/Layouts/Formula.js +0 -29
  157. package/dist/Editor/Elements/DataView/Layouts/Options/AddOptions.js +0 -113
  158. package/dist/Editor/Elements/DataView/Layouts/Options/AddProperty.js +0 -37
  159. package/dist/Editor/Elements/DataView/Layouts/Options/AllProperties.js +0 -111
  160. package/dist/Editor/Elements/DataView/Layouts/Options/ChangeProperty.js +0 -60
  161. package/dist/Editor/Elements/DataView/Layouts/Options/ColumnsList.js +0 -36
  162. package/dist/Editor/Elements/DataView/Layouts/Options/Constants.js +0 -101
  163. package/dist/Editor/Elements/DataView/Layouts/Options/EditOption.js +0 -160
  164. package/dist/Editor/Elements/DataView/Layouts/Options/EditProperty.js +0 -190
  165. package/dist/Editor/Elements/DataView/Layouts/Options/FilterProperty.js +0 -42
  166. package/dist/Editor/Elements/DataView/Layouts/Options/PropertyList.js +0 -30
  167. package/dist/Editor/Elements/DataView/Layouts/Options/index.js +0 -110
  168. package/dist/Editor/Elements/DataView/Layouts/Options/styles.js +0 -179
  169. package/dist/Editor/Elements/DataView/Layouts/TableStyles.js +0 -112
  170. package/dist/Editor/Elements/DataView/Layouts/TableView.js +0 -227
  171. package/dist/Editor/Elements/DataView/Layouts/ViewData.js +0 -80
  172. package/dist/Editor/Elements/DataView/Layouts/colStyles.js +0 -10
  173. package/dist/Editor/Elements/DataView/Layouts/index.js +0 -25
  174. package/dist/Editor/Elements/DataView/Providers/DataViewProvider.js +0 -281
  175. package/dist/Editor/Elements/DataView/Utils/globalSearch.js +0 -15
  176. package/dist/Editor/Elements/DataView/Utils/multiSortRows.js +0 -74
  177. package/dist/Editor/Elements/DataView/styles.js +0 -154
  178. package/dist/Editor/Elements/Table/AddRowCol.js +0 -77
  179. package/dist/Editor/Elements/Table/DragButton.js +0 -142
  180. package/dist/Editor/Elements/Table/DragStyles.js +0 -70
  181. package/dist/Editor/Elements/Table/Draggable.js +0 -25
  182. package/dist/Editor/Elements/Table/Droppable.js +0 -53
  183. package/dist/Editor/Elements/Table/TableTool.js +0 -101
  184. package/dist/Editor/Elements/Table/tableHelper.js +0 -71
  185. package/dist/Editor/assets/svg/TableIcons.js +0 -220
  186. package/dist/Editor/common/Select/index.js +0 -20
  187. package/dist/Editor/common/Select/styles.js +0 -17
  188. package/dist/Editor/common/StyleBuilder/fieldTypes/lineSpacing.js +0 -79
  189. package/dist/Editor/helper/enforceDateFormat.js +0 -41
  190. package/dist/Editor/hooks/useTable.js +0 -210
  191. package/dist/Editor/utils/dataView.js +0 -43
@@ -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,
@@ -141,11 +141,7 @@ const VirtualElement = props => {
141
141
  sx: classes.root,
142
142
  dangerouslySetInnerHTML: {
143
143
  __html: getItems()
144
- },
145
- style: {
146
- visibility: "hidden"
147
- },
148
- "aria-hidden": "true"
144
+ }
149
145
  });
150
146
  };
151
147
  export default VirtualElement;
@@ -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,
@@ -534,7 +533,7 @@ const RnD = props => {
534
533
  children: [/*#__PURE__*/_jsx("div", {
535
534
  id: `opt_ref_${str_path}`,
536
535
  style: {
537
- display: readOnly ? "none" : "block",
536
+ display: "block",
538
537
  position: "absolute",
539
538
  left: "-8px",
540
539
  top: "-30px",
@@ -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;
@@ -2,12 +2,8 @@ const SectionStyle = (themeReact, theme) => ({
2
2
  root: {
3
3
  "&:hover": {
4
4
  "& .dh-para": {
5
- opacity: 1,
6
- background: 'transparent',
7
- width: '30px'
8
- // top: '2px'
5
+ opacity: 1
9
6
  },
10
-
11
7
  "& .sectionIcon": {
12
8
  opacity: 1
13
9
  },
@@ -13,7 +13,6 @@ import { insertDivider } from "../../utils/divider";
13
13
  import { insertFreeGrid } from "../../utils/freegrid";
14
14
  import { Transforms } from "slate";
15
15
  import { insertInfinityAI } from "../../utils/infinityAI";
16
- import { insertDataView } from "../../utils/dataView";
17
16
  import SearchButton from "../../Elements/Search/SearchButton";
18
17
  import { jsx as _jsx } from "react/jsx-runtime";
19
18
  const ELEMENTS_LIST = [{
@@ -159,7 +158,7 @@ const ELEMENTS_LIST = [{
159
158
  renderComponent: rest => /*#__PURE__*/_jsx(SearchButton, {
160
159
  ...rest,
161
160
  element: {
162
- name: "Brain"
161
+ name: 'Brain'
163
162
  },
164
163
  icoBtnType: "cmd"
165
164
  })
@@ -263,17 +262,6 @@ const ELEMENTS_LIST = [{
263
262
  onInsert: editor => {
264
263
  insertInfinityAI(editor);
265
264
  }
266
- }, {
267
- name: "Dynamic Table",
268
- group: "Dynamic Table",
269
- desc: "",
270
- type: "dataView",
271
- icon: /*#__PURE__*/_jsx(Icon, {
272
- icon: "dataView"
273
- }),
274
- onInsert: editor => {
275
- insertDataView(editor);
276
- }
277
265
  }];
278
266
  const elements = props => {
279
267
  const {
@@ -6,8 +6,7 @@ const fieldStyle = [{
6
6
  fields: [{
7
7
  label: "Field Name",
8
8
  key: "name",
9
- type: "text",
10
- required: true
9
+ type: "text"
11
10
  }, {
12
11
  label: "Field Type",
13
12
  key: "element",
@@ -60,10 +60,9 @@ const BackgroundImage = props => {
60
60
  item: true,
61
61
  xs: 12,
62
62
  style: {
63
- backgroundImage: base64 ? `url(${base64})` : "none"
64
- // height: "200px",
63
+ backgroundImage: base64 ? `url(${base64})` : "none",
64
+ height: "200px"
65
65
  },
66
-
67
66
  sx: classes.uploadField,
68
67
  children: /*#__PURE__*/_jsx(Grid, {
69
68
  className: "uploadImageSection",
@@ -73,11 +72,6 @@ const BackgroundImage = props => {
73
72
  children: "REMOVE"
74
73
  }) : /*#__PURE__*/_jsx(Grid, {
75
74
  className: "uploadImageText",
76
- sx: {
77
- padding: 0,
78
- background: `${theme?.palette?.editor?.inputFieldBgColor}`,
79
- border: `1px solid ${theme?.palette?.editor?.inputFieldBorder}`
80
- },
81
75
  children: /*#__PURE__*/_jsxs(Button, {
82
76
  component: "label",
83
77
  variant: "text",
@@ -92,7 +86,7 @@ const BackgroundImage = props => {
92
86
  style: {
93
87
  paddingLeft: "8px"
94
88
  },
95
- children: "Upload a image"
89
+ children: "upload your image"
96
90
  })]
97
91
  })
98
92
  })
@@ -1,9 +1,8 @@
1
1
  import React, { useState } from "react";
2
- import { Checkbox, FormControlLabel, Grid, Slider, Typography, Box, IconButton } from "@mui/material";
2
+ import { Checkbox, FormControlLabel, Grid, Slider, Typography, Box } from "@mui/material";
3
3
  import { squreStyle } from "./radiusStyle";
4
4
  import { getBreakPointsValue } from "../../../helper/theme";
5
5
  import useWindowResize from "../../../hooks/useWindowResize";
6
- import { CheckedBoxCheckIcon } from "../../iconListV2";
7
6
  import { jsx as _jsx } from "react/jsx-runtime";
8
7
  import { jsxs as _jsxs } from "react/jsx-runtime";
9
8
  const BANNER_SPACING_KEYS = ["top", "left", "right", "bottom"];
@@ -82,18 +81,7 @@ const BannerSpacing = props => {
82
81
  onChange: handleChange
83
82
  }), /*#__PURE__*/_jsx(Box, {
84
83
  component: "input",
85
- sx: {
86
- ...classes.sapcingInput,
87
- "::-webkit-outer-spin-button": {
88
- WebkitAppearance: "none",
89
- margin: 0
90
- },
91
- "::-webkit-inner-spin-button": {
92
- WebkitAppearance: "none",
93
- margin: 0
94
- },
95
- MozAppearance: "textfield"
96
- },
84
+ sx: classes.sapcingInput,
97
85
  name: "top",
98
86
  value: !lockSpacing ? "" : pro_value?.top,
99
87
  className: "sliderInput",
@@ -104,22 +92,10 @@ const BannerSpacing = props => {
104
92
  })]
105
93
  }), /*#__PURE__*/_jsx(FormControlLabel, {
106
94
  className: "ccheckbox-primary",
107
- sx: {
108
- ...classes.customCheckBox
109
- },
110
95
  control: /*#__PURE__*/_jsx(Checkbox, {
111
96
  value: !lockSpacing,
112
97
  checked: !lockSpacing,
113
- onChange: onLockSpacing,
114
- variant: "outlined",
115
- className: "checkBox",
116
- checkedIcon: /*#__PURE__*/_jsx(IconButton, {
117
- className: "checkedIcon",
118
- children: /*#__PURE__*/_jsx(CheckedBoxCheckIcon, {})
119
- }),
120
- icon: /*#__PURE__*/_jsx(IconButton, {
121
- className: "unCheckedIcon"
122
- })
98
+ onChange: onLockSpacing
123
99
  }),
124
100
  label: /*#__PURE__*/_jsx(Typography, {
125
101
  variant: "body1",
@@ -159,8 +135,7 @@ const BannerSpacing = props => {
159
135
  value: pro_value?.top,
160
136
  className: "borderInput removeScroll",
161
137
  style: {
162
- ...squreStyle.topRight,
163
- ...classes.customPaddingInput
138
+ ...squreStyle.topRight
164
139
  },
165
140
  onChange: handleChange,
166
141
  placeholder: "0"
@@ -173,8 +148,7 @@ const BannerSpacing = props => {
173
148
  value: pro_value?.right,
174
149
  className: "borderInput removeScroll",
175
150
  style: {
176
- ...squreStyle.bottomLeft,
177
- ...classes.customPaddingInput
151
+ ...squreStyle.bottomLeft
178
152
  },
179
153
  onChange: handleChange,
180
154
  placeholder: "0"
@@ -187,8 +161,7 @@ const BannerSpacing = props => {
187
161
  value: pro_value?.bottom,
188
162
  className: "borderInput removeScroll",
189
163
  style: {
190
- ...squreStyle.bottomRight,
191
- ...classes.customPaddingInput
164
+ ...squreStyle.bottomRight
192
165
  },
193
166
  onChange: handleChange,
194
167
  placeholder: "0"
@@ -201,8 +174,7 @@ const BannerSpacing = props => {
201
174
  value: pro_value?.left,
202
175
  className: "borderInput removeScroll",
203
176
  style: {
204
- ...squreStyle.topLeft,
205
- ...classes.customPaddingInput
177
+ ...squreStyle.topLeft
206
178
  },
207
179
  onChange: handleChange,
208
180
  placeholder: "0"
@@ -1,9 +1,8 @@
1
1
  import React from "react";
2
- import { Grid, Typography, Slider, FormControlLabel, Checkbox, Box, IconButton } from "@mui/material";
2
+ import { Grid, Typography, Slider, FormControlLabel, Checkbox, Box } from "@mui/material";
3
3
  import { radiusStyle } from "./radiusStyle";
4
4
  import useWindowResize from "../../../hooks/useWindowResize";
5
5
  import { getBreakPointsValue, getCustomizationValue } from "../../../helper/theme";
6
- import { CheckedBoxCheckIcon } from "../../iconListV2";
7
6
  import { jsx as _jsx } from "react/jsx-runtime";
8
7
  import { jsxs as _jsxs } from "react/jsx-runtime";
9
8
  const BORDER_RADIUS_KEYS = ["topLeft", "topRight", "bottomLeft", "bottomRight"];
@@ -91,22 +90,10 @@ const BorderRadius = props => {
91
90
  })]
92
91
  }), /*#__PURE__*/_jsx(FormControlLabel, {
93
92
  className: "ccheckbox-primary",
94
- sx: {
95
- ...classes.customCheckBox
96
- },
97
93
  control: /*#__PURE__*/_jsx(Checkbox, {
98
94
  value: !lockRadius,
99
95
  checked: !lockRadius,
100
- onChange: onLockRadius,
101
- variant: "outlined",
102
- className: "checkBox",
103
- checkedIcon: /*#__PURE__*/_jsx(IconButton, {
104
- className: "checkedIcon",
105
- children: /*#__PURE__*/_jsx(CheckedBoxCheckIcon, {})
106
- }),
107
- icon: /*#__PURE__*/_jsx(IconButton, {
108
- className: "unCheckedIcon"
109
- })
96
+ onChange: onLockRadius
110
97
  }),
111
98
  label: /*#__PURE__*/_jsx(Typography, {
112
99
  variant: "body1",
@@ -1,7 +1,6 @@
1
1
  import { Box, Card, Checkbox, FormControlLabel, Grid, Tooltip, Typography } from "@mui/material";
2
2
  import React from "react";
3
3
  import Icon from "../../Icon";
4
- import { useEditorContext } from "../../../hooks/useMouseMove";
5
4
  import { jsx as _jsx } from "react/jsx-runtime";
6
5
  import { Fragment as _Fragment } from "react/jsx-runtime";
7
6
  import { jsxs as _jsxs } from "react/jsx-runtime";
@@ -16,10 +15,7 @@ const RenderCard = ({
16
15
  return /*#__PURE__*/_jsx(Card, {
17
16
  sx: {
18
17
  position: 'relative',
19
- padding: "10px",
20
- '& .MuiCheckbox-root svg': {
21
- fill: 'unset !important'
22
- }
18
+ padding: "10px"
23
19
  },
24
20
  children: /*#__PURE__*/_jsx(FormControlLabel, {
25
21
  control: /*#__PURE__*/_jsx(Checkbox, {
@@ -85,9 +81,6 @@ const CardsMapping = props => {
85
81
  selectedCard,
86
82
  infoIcon
87
83
  } = data;
88
- const {
89
- theme
90
- } = useEditorContext();
91
84
  const activeCard = value === selectedCard;
92
85
  const handleChange = e => {
93
86
  if (selectedCard === data?.value) {
@@ -106,8 +99,7 @@ const CardsMapping = props => {
106
99
  sx: {
107
100
  marginBottom: "12px",
108
101
  "& .MuiPaper-root": {
109
- background: theme?.palette?.editor?.miniToolBarBackground,
110
- border: activeCard ? "1px solid #2563EB" : `1px solid ${theme?.palette?.editor?.inputFieldBorder}`,
102
+ border: activeCard ? "1px solid #2563EB" : "1px solid #C8D8FA",
111
103
  borderRadius: "8px",
112
104
  boxShadow: activeCard ? "0px 4px 16px 0px #2563EB40" : "unset"
113
105
  }
@@ -16,7 +16,6 @@ const Color = props => {
16
16
  hideGradient
17
17
  } = data;
18
18
  const [recentColors, setRecentColors] = useState({});
19
- const getLable = label === 'Text' ? 'Select text color' : label === 'Background' ? 'Select background color' : label;
20
19
  useEffect(() => {
21
20
  const storedColors = JSON.parse(localStorage.getItem("recentColors"));
22
21
  if (storedColors) {
@@ -74,7 +73,7 @@ const Color = props => {
74
73
  }), /*#__PURE__*/_jsx(TextField, {
75
74
  fullWidth: true,
76
75
  value: value,
77
- placeholder: getLable || `${label} color code`,
76
+ placeholder: `${label} color code`,
78
77
  InputLabelProps: {
79
78
  shrink: true
80
79
  },
@@ -73,7 +73,7 @@ const FontSize = props => {
73
73
  size: "small",
74
74
  inputProps: {
75
75
  style: {
76
- // textAlign: "center",
76
+ textAlign: "center",
77
77
  padding: "11px"
78
78
  }
79
79
  },
@@ -91,14 +91,12 @@ const Icons = props => {
91
91
  overflowY: "auto",
92
92
  paddingTop: "5px"
93
93
  },
94
- className: "muiIconsListParent",
95
94
  children: list.map(m => {
96
95
  return /*#__PURE__*/_jsx(Tooltip, {
97
96
  title: m,
98
97
  arrow: true,
99
98
  children: /*#__PURE__*/_jsx(IconButton, {
100
99
  onClick: onSelectIcon(m),
101
- className: "muiIconsList",
102
100
  children: /*#__PURE__*/_jsx(MUIIcon, {
103
101
  iconName: m,
104
102
  props: customProps
@@ -18,7 +18,6 @@ import FontSize from "./fontSize";
18
18
  import SelectSwitch from "./selectSwitch";
19
19
  import CardsMapping from "./card";
20
20
  import MetaDataMapping from "./metaDataMapping";
21
- import LineSpacing from "./lineSpacing";
22
21
  const FieldMap = {
23
22
  text: Text,
24
23
  bannerSpacing: BannerSpacing,
@@ -39,7 +38,6 @@ const FieldMap = {
39
38
  fontSize: FontSize,
40
39
  selectSwitch: SelectSwitch,
41
40
  card: CardsMapping,
42
- metadatamapping: MetaDataMapping,
43
- lineSpacing: LineSpacing
41
+ metadatamapping: MetaDataMapping
44
42
  };
45
43
  export default FieldMap;
@@ -53,7 +53,7 @@ export const radiusStyle = {
53
53
  export const squreStyle = {
54
54
  topLeft: {
55
55
  position: "absolute",
56
- left: "-37px",
56
+ left: "-35px",
57
57
  top: "50%",
58
58
  transform: "translateY(-50%)",
59
59
  width: "30px",
@@ -61,7 +61,7 @@ export const squreStyle = {
61
61
  margin: "auto",
62
62
  // borderTop: `2px solid #2563eb`,
63
63
  // borderLeft: `2px solid #2563eb`,
64
- // border: `1px solid transparent`,
64
+ border: `none`,
65
65
  // borderBottom: `none`,
66
66
  fontSize: "14px",
67
67
  textAlign: "center"
@@ -71,13 +71,13 @@ export const squreStyle = {
71
71
  // top: "-28px",
72
72
  left: "50%",
73
73
  transform: "translateX(-50%)",
74
- top: "-37px",
74
+ top: "-35px",
75
75
  width: "30px",
76
76
  height: "30px",
77
77
  // borderTop: `2px solid #2563eb`,
78
78
  // borderRight: `2px solid #2563eb`,
79
- // border: `none`,
80
- // borderLeft: `none`,
79
+ border: `none`,
80
+ borderLeft: `none`,
81
81
  fontSize: "14px"
82
82
  },
83
83
  bottomLeft: {
@@ -85,18 +85,18 @@ export const squreStyle = {
85
85
  // left: "-25px",
86
86
  top: "50%",
87
87
  transform: "translateY(-50%)",
88
- right: "-37px",
88
+ right: "-35px",
89
89
  width: "30px",
90
90
  height: "30px",
91
91
  // borderBottom: `2px solid #2563eb`,
92
92
  // borderLeft: `2px solid #2563eb`,
93
- // border: `none`,
94
- // borderTop: `none`,
93
+ border: `none`,
94
+ borderTop: `none`,
95
95
  fontSize: "14px"
96
96
  },
97
97
  bottomRight: {
98
98
  position: "absolute",
99
- bottom: "-37px",
99
+ bottom: "-35px",
100
100
  // right: "-25px",
101
101
  left: "50%",
102
102
  transform: "translateX(-50%)",
@@ -104,8 +104,8 @@ export const squreStyle = {
104
104
  height: "30px",
105
105
  // borderBottom: `2px solid #2563eb`,
106
106
  // borderRight: `2px solid #2563eb`,
107
- // border: "none",
108
- // borderLeft: "none",
107
+ border: "none",
108
+ borderLeft: "none",
109
109
  fontSize: "14px"
110
110
  }
111
111
  };
@@ -3,8 +3,6 @@ import { Grid, Button, Typography, Select, MenuItem, TextField } from "@mui/mate
3
3
  import CloudUploadIcon from "@mui/icons-material/CloudUpload";
4
4
  import { convertBase64 } from "../../../utils/helper";
5
5
  import { uploadFile } from "../../../service/fileupload";
6
- import { useEditorContext } from "../../../hooks/useMouseMove";
7
- import useCommonStyle from "../../../commonStyle";
8
6
  import { jsx as _jsx } from "react/jsx-runtime";
9
7
  import { jsxs as _jsxs } from "react/jsx-runtime";
10
8
  import { Fragment as _Fragment } from "react/jsx-runtime";
@@ -32,10 +30,6 @@ const SaveAsTemplate = props => {
32
30
  });
33
31
  const [base64, setBase64] = useState(value);
34
32
  const [uploading, setUploading] = useState(false);
35
- const {
36
- theme
37
- } = useEditorContext();
38
- const classes = useCommonStyle(theme);
39
33
  const handleChange = async e => {
40
34
  const file = e.target.files[0];
41
35
  const strImage = await convertBase64(file);
@@ -82,9 +76,6 @@ const SaveAsTemplate = props => {
82
76
  onSaveTemplate(formData, params);
83
77
  handleClose();
84
78
  };
85
- if (!onSaveTemplate) {
86
- return null;
87
- }
88
79
  return /*#__PURE__*/_jsxs(_Fragment, {
89
80
  children: [/*#__PURE__*/_jsx(Grid, {
90
81
  item: true,
@@ -158,14 +149,9 @@ const SaveAsTemplate = props => {
158
149
  justifyContent: "space-between",
159
150
  alignItems: "center",
160
151
  children: [/*#__PURE__*/_jsxs(Button, {
161
- component: "label"
162
- // variant="contained"
163
- ,
164
- className: "gradientFillBtn",
152
+ component: "label",
153
+ variant: "contained",
165
154
  startIcon: /*#__PURE__*/_jsx(CloudUploadIcon, {}),
166
- sx: {
167
- ...classes.gradientFillBtn
168
- },
169
155
  children: ["Upload file", /*#__PURE__*/_jsx("input", {
170
156
  type: "file",
171
157
  style: {
@@ -208,14 +194,12 @@ const SaveAsTemplate = props => {
208
194
  },
209
195
  className: "action-btn-wrpr",
210
196
  children: [/*#__PURE__*/_jsx(Button, {
211
- className: "savebtn gradientFillBtn",
197
+ className: "savebtn",
212
198
  onClick: handleSave,
213
199
  sx: {
214
- fontWeight: 700,
215
- ...classes.gradientFillBtn
216
- }
217
- // variant="contained"
218
- ,
200
+ fontWeight: 700
201
+ },
202
+ variant: "contained",
219
203
  children: saveText
220
204
  }), closeText ? /*#__PURE__*/_jsx(Button, {
221
205
  className: "closebtn",