@flozy/editor 5.1.2 → 5.1.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (146) hide show
  1. package/dist/Editor/ChatEditor.js +34 -25
  2. package/dist/Editor/CommonEditor.js +7 -13
  3. package/dist/Editor/Editor.css +10 -52
  4. package/dist/Editor/Elements/AI/AIInput.js +1 -0
  5. package/dist/Editor/Elements/AI/CustomSelect.js +10 -17
  6. package/dist/Editor/Elements/AI/Styles.js +1 -7
  7. package/dist/Editor/Elements/Button/EditorButton.js +1 -0
  8. package/dist/Editor/Elements/Color Picker/ColorButtons.js +5 -7
  9. package/dist/Editor/Elements/Color Picker/Styles.js +3 -7
  10. package/dist/Editor/Elements/Color Picker/defaultColors.js +2 -2
  11. package/dist/Editor/Elements/Form/Form.js +2 -38
  12. package/dist/Editor/Elements/Form/FormElements/FormCheckbox.js +1 -7
  13. package/dist/Editor/Elements/Form/FormElements/FormDate.js +1 -7
  14. package/dist/Editor/Elements/Form/FormElements/FormEmail.js +1 -7
  15. package/dist/Editor/Elements/Form/FormElements/FormNumbers.js +1 -7
  16. package/dist/Editor/Elements/Form/FormElements/FormRadioButton.js +1 -7
  17. package/dist/Editor/Elements/Form/FormElements/FormText.js +1 -7
  18. package/dist/Editor/Elements/Form/FormElements/FormTextArea.js +1 -6
  19. package/dist/Editor/Elements/Form/FormPopup.js +9 -12
  20. package/dist/Editor/Elements/FreeGrid/FreeGrid.js +1 -1
  21. package/dist/Editor/Elements/FreeGrid/FreeGridItem.js +1 -20
  22. package/dist/Editor/Elements/Grid/GridButton.js +1 -2
  23. package/dist/Editor/Elements/Grid/GridItem.js +2 -3
  24. package/dist/Editor/Elements/Grid/Styles.js +3 -0
  25. package/dist/Editor/Elements/Link/LinkButton.js +1 -1
  26. package/dist/Editor/Elements/Signature/Signature.css +1 -1
  27. package/dist/Editor/Elements/Signature/SignatureOptions/TypeSignature.js +2 -2
  28. package/dist/Editor/Elements/Signature/SignaturePopup.js +48 -13
  29. package/dist/Editor/Elements/SimpleText/index.js +1 -8
  30. package/dist/Editor/Elements/SimpleText/style.js +1 -8
  31. package/dist/Editor/Elements/Table/Styles.js +43 -25
  32. package/dist/Editor/Elements/Table/Table.js +138 -206
  33. package/dist/Editor/Elements/Table/TableCell.js +102 -355
  34. package/dist/Editor/Elements/Table/TablePopup.js +3 -9
  35. package/dist/Editor/Elements/Table/TableRow.js +2 -10
  36. package/dist/Editor/Styles/EditorStyles.js +1 -3
  37. package/dist/Editor/Toolbar/FormatTools/BlockButton.js +0 -10
  38. package/dist/Editor/Toolbar/FormatTools/Dropdown.js +11 -7
  39. package/dist/Editor/Toolbar/FormatTools/FontFamilyAutocomplete.js +4 -10
  40. package/dist/Editor/Toolbar/FormatTools/MarkButton.js +0 -3
  41. package/dist/Editor/Toolbar/FormatTools/TextSize.js +2 -0
  42. package/dist/Editor/Toolbar/Mini/MiniToolbar.js +6 -3
  43. package/dist/Editor/Toolbar/Mini/Styles.js +1 -4
  44. package/dist/Editor/Toolbar/PopupTool/MiniTextFormat/index.js +3 -3
  45. package/dist/Editor/Toolbar/PopupTool/PopperHeader.js +11 -16
  46. package/dist/Editor/Toolbar/PopupTool/PopupToolStyle.js +49 -416
  47. package/dist/Editor/Toolbar/PopupTool/TextFormat.js +8 -62
  48. package/dist/Editor/Toolbar/PopupTool/index.js +6 -5
  49. package/dist/Editor/Toolbar/Toolbar.js +0 -6
  50. package/dist/Editor/Toolbar/toolbarGroups.js +0 -4
  51. package/dist/Editor/assets/svg/BrainIcon.js +2 -2
  52. package/dist/Editor/common/ColorPickerButton.js +2 -3
  53. package/dist/Editor/common/FontLoader/FontLoader.js +4 -4
  54. package/dist/Editor/common/Icon.js +23 -24
  55. package/dist/Editor/common/LinkSettings/NavComponents.js +1 -2
  56. package/dist/Editor/common/LinkSettings/index.js +1 -2
  57. package/dist/Editor/common/MentionsPopup/Styles.js +3 -151
  58. package/dist/Editor/common/MentionsPopup/index.js +1 -1
  59. package/dist/Editor/common/RnD/ElementSettings/Settings/FormSettings.js +12 -108
  60. package/dist/Editor/common/RnD/SwitchViewport/SwitchViewport.js +2 -14
  61. package/dist/Editor/common/Shorthands/elements.js +1 -13
  62. package/dist/Editor/common/StyleBuilder/fieldTypes/backgroundImage.js +0 -5
  63. package/dist/Editor/common/StyleBuilder/fieldTypes/card.js +2 -10
  64. package/dist/Editor/common/StyleBuilder/fieldTypes/index.js +1 -3
  65. package/dist/Editor/common/StyleBuilder/fieldTypes/textOptions.js +2 -5
  66. package/dist/Editor/common/StyleBuilder/formStyle.js +149 -268
  67. package/dist/Editor/common/StyleBuilder/index.js +11 -84
  68. package/dist/Editor/common/StyleBuilder/pageSettingsStyle.js +0 -4
  69. package/dist/Editor/common/StyleBuilder/tableStyle.js +25 -69
  70. package/dist/Editor/common/Uploader.js +0 -8
  71. package/dist/Editor/common/iconListV2.js +40 -378
  72. package/dist/Editor/common/iconslist.js +5 -8
  73. package/dist/Editor/commonStyle.js +9 -117
  74. package/dist/Editor/helper/deserialize/index.js +1 -4
  75. package/dist/Editor/helper/index.js +2 -2
  76. package/dist/Editor/helper/theme.js +1 -24
  77. package/dist/Editor/hooks/useMouseMove.js +2 -5
  78. package/dist/Editor/plugins/withCustomDeleteBackward.js +2 -3
  79. package/dist/Editor/plugins/withHTML.js +1 -17
  80. package/dist/Editor/plugins/withLayout.js +1 -48
  81. package/dist/Editor/utils/SlateUtilityFunctions.js +0 -18
  82. package/dist/Editor/utils/chatEditor/SlateUtilityFunctions.js +0 -21
  83. package/dist/Editor/utils/embed.js +1 -2
  84. package/dist/Editor/utils/events.js +1 -0
  85. package/dist/Editor/utils/font.js +4 -11
  86. package/dist/Editor/utils/formfield.js +4 -8
  87. package/dist/Editor/utils/helper.js +1 -34
  88. package/dist/Editor/utils/insertNewLine.js +1 -19
  89. package/dist/Editor/utils/pageSettings.js +2 -14
  90. package/dist/Editor/utils/serializeToText.js +0 -2
  91. package/dist/Editor/utils/table.js +24 -228
  92. package/package.json +1 -1
  93. package/dist/Editor/Elements/DataView/DataView.js +0 -101
  94. package/dist/Editor/Elements/DataView/DataViewButton.js +0 -23
  95. package/dist/Editor/Elements/DataView/Layouts/ColumnView.js +0 -59
  96. package/dist/Editor/Elements/DataView/Layouts/DataTypes/CheckType.js +0 -30
  97. package/dist/Editor/Elements/DataView/Layouts/DataTypes/Components/Select.js +0 -140
  98. package/dist/Editor/Elements/DataView/Layouts/DataTypes/Components/SimpleSelect.js +0 -40
  99. package/dist/Editor/Elements/DataView/Layouts/DataTypes/Components/styles.js +0 -59
  100. package/dist/Editor/Elements/DataView/Layouts/DataTypes/DateType.js +0 -26
  101. package/dist/Editor/Elements/DataView/Layouts/DataTypes/MultiSelectType.js +0 -38
  102. package/dist/Editor/Elements/DataView/Layouts/DataTypes/NumberType.js +0 -30
  103. package/dist/Editor/Elements/DataView/Layouts/DataTypes/PersonType.js +0 -30
  104. package/dist/Editor/Elements/DataView/Layouts/DataTypes/SelectType.js +0 -35
  105. package/dist/Editor/Elements/DataView/Layouts/DataTypes/TextType.js +0 -36
  106. package/dist/Editor/Elements/DataView/Layouts/DataTypes/index.js +0 -17
  107. package/dist/Editor/Elements/DataView/Layouts/FilterSort/SortOptions/ChooseField.js +0 -29
  108. package/dist/Editor/Elements/DataView/Layouts/FilterSort/SortOptions/ChooseSort.js +0 -38
  109. package/dist/Editor/Elements/DataView/Layouts/FilterSort/SortOptions/index.js +0 -74
  110. package/dist/Editor/Elements/DataView/Layouts/FilterSort/index.js +0 -64
  111. package/dist/Editor/Elements/DataView/Layouts/FilterSort/styles.js +0 -106
  112. package/dist/Editor/Elements/DataView/Layouts/FilterView.js +0 -174
  113. package/dist/Editor/Elements/DataView/Layouts/Formula.js +0 -29
  114. package/dist/Editor/Elements/DataView/Layouts/Options/AddOptions.js +0 -113
  115. package/dist/Editor/Elements/DataView/Layouts/Options/AddProperty.js +0 -37
  116. package/dist/Editor/Elements/DataView/Layouts/Options/AllProperties.js +0 -111
  117. package/dist/Editor/Elements/DataView/Layouts/Options/ChangeProperty.js +0 -62
  118. package/dist/Editor/Elements/DataView/Layouts/Options/ColumnsList.js +0 -36
  119. package/dist/Editor/Elements/DataView/Layouts/Options/Constants.js +0 -101
  120. package/dist/Editor/Elements/DataView/Layouts/Options/EditOption.js +0 -160
  121. package/dist/Editor/Elements/DataView/Layouts/Options/EditProperty.js +0 -190
  122. package/dist/Editor/Elements/DataView/Layouts/Options/FilterProperty.js +0 -42
  123. package/dist/Editor/Elements/DataView/Layouts/Options/PropertyList.js +0 -30
  124. package/dist/Editor/Elements/DataView/Layouts/Options/index.js +0 -110
  125. package/dist/Editor/Elements/DataView/Layouts/Options/styles.js +0 -179
  126. package/dist/Editor/Elements/DataView/Layouts/TableStyles.js +0 -100
  127. package/dist/Editor/Elements/DataView/Layouts/TableView.js +0 -227
  128. package/dist/Editor/Elements/DataView/Layouts/ViewData.js +0 -70
  129. package/dist/Editor/Elements/DataView/Layouts/index.js +0 -25
  130. package/dist/Editor/Elements/DataView/Providers/DataViewProvider.js +0 -288
  131. package/dist/Editor/Elements/DataView/Utils/globalSearch.js +0 -15
  132. package/dist/Editor/Elements/DataView/Utils/multiSortRows.js +0 -72
  133. package/dist/Editor/Elements/DataView/styles.js +0 -143
  134. package/dist/Editor/Elements/Table/AddRowCol.js +0 -77
  135. package/dist/Editor/Elements/Table/DragButton.js +0 -141
  136. package/dist/Editor/Elements/Table/DragStyles.js +0 -69
  137. package/dist/Editor/Elements/Table/Draggable.js +0 -25
  138. package/dist/Editor/Elements/Table/Droppable.js +0 -53
  139. package/dist/Editor/Elements/Table/TableTool.js +0 -101
  140. package/dist/Editor/Elements/Table/tableHelper.js +0 -71
  141. package/dist/Editor/assets/svg/TableIcons.js +0 -220
  142. package/dist/Editor/common/Select/index.js +0 -20
  143. package/dist/Editor/common/Select/styles.js +0 -17
  144. package/dist/Editor/common/StyleBuilder/fieldTypes/lineSpacing.js +0 -79
  145. package/dist/Editor/hooks/useTable.js +0 -175
  146. package/dist/Editor/utils/dataView.js +0 -43
@@ -1,9 +1,6 @@
1
1
  import React from "react";
2
2
  import { Autocomplete, TextField } from "@mui/material";
3
3
  import { activeMark, addMarkData } from "../../utils/SlateUtilityFunctions.js";
4
- import usePopupStyle from "../PopupTool/PopupToolStyle.js";
5
- import { useEditorContext } from "../../hooks/useMouseMove.js";
6
- import KeyboardArrowDownRoundedIcon from '@mui/icons-material/KeyboardArrowDownRounded';
7
4
  import { jsx as _jsx } from "react/jsx-runtime";
8
5
  const FontFamilyAutocomplete = ({
9
6
  editor,
@@ -30,19 +27,17 @@ const FontFamilyAutocomplete = ({
30
27
  });
31
28
  }
32
29
  };
33
- const {
34
- theme
35
- } = useEditorContext();
36
- const classes = usePopupStyle(theme);
37
30
  return /*#__PURE__*/_jsx(Autocomplete, {
38
31
  size: "small",
39
32
  style: {
40
33
  fontFamily: `${value || ""}`,
41
- width: width || "100%"
34
+ width: width || "100%",
35
+ height: "36px",
36
+ borderRadius: "10px",
37
+ fontSize: "14px"
42
38
  },
43
39
  value: value || options?.[0],
44
40
  className: "editor-dd",
45
- sx: classes.autoCompleteaFontFamily,
46
41
  onChange: (e, newValue) => changeMarkData(e, newValue, format),
47
42
  getOptionLabel: option => {
48
43
  return option;
@@ -58,7 +53,6 @@ const FontFamilyAutocomplete = ({
58
53
  children: option
59
54
  });
60
55
  },
61
- popupIcon: /*#__PURE__*/_jsx(KeyboardArrowDownRoundedIcon, {}),
62
56
  renderInput: params => /*#__PURE__*/_jsx(TextField, {
63
57
  sx: {
64
58
  "& .MuiInputBase-root.MuiOutlinedInput-root": {
@@ -16,9 +16,6 @@ const MarkButton = ({
16
16
  toggleMark(editor, format);
17
17
  },
18
18
  title: title,
19
- style: {
20
- color: "#64748B"
21
- },
22
19
  children: /*#__PURE__*/_jsx(Icon, {
23
20
  icon: format
24
21
  })
@@ -93,6 +93,8 @@ const TextSize = ({
93
93
  inputProps: {
94
94
  style: {
95
95
  width: fullWidth ? "100%" : "30px",
96
+ // textAlign: "center",
97
+ height: "19px",
96
98
  fontSize: "12px"
97
99
  }
98
100
  },
@@ -19,9 +19,9 @@ const POPUP_TYPES = {
19
19
  addTemplate: AddTemplates
20
20
  };
21
21
  const POPUP_OFFSETS = {
22
- textFormat: [75, 5],
23
- addElement: [40, 5],
24
- addTemplate: [10, 5]
22
+ textFormat: [80, 5],
23
+ addElement: [60, 5],
24
+ addTemplate: [20, 5]
25
25
  };
26
26
  const FULLSCREEN_POPUP = {
27
27
  addTemplate: true
@@ -180,6 +180,9 @@ const MiniToolbar = props => {
180
180
  }],
181
181
  children: PopupComponent ? /*#__PURE__*/_jsxs(Paper, {
182
182
  className: "papper-wrpr",
183
+ style: {
184
+ borderRadius: "10px"
185
+ },
183
186
  children: [/*#__PURE__*/_jsx(PopperHeader, {
184
187
  title: POPUP_TITLE[popper],
185
188
  classes: popupStyles,
@@ -39,10 +39,7 @@ const miniToolbarStyles = theme => ({
39
39
  },
40
40
  "&.active": {
41
41
  "& svg": {
42
- stroke: theme?.palette?.editor?.activeColor,
43
- "& path": {
44
- stroke: theme?.palette?.editor?.activeColor
45
- }
42
+ stroke: theme?.palette?.editor?.activeColor
46
43
  }
47
44
  },
48
45
  "&.activeUndo": {
@@ -1,4 +1,4 @@
1
- import { Fade, Grid, IconButton, Paper, Popper } from "@mui/material";
1
+ import { Button, Fade, Grid, Paper, Popper } from "@mui/material";
2
2
  import SelectTypography from "./SelectTypography";
3
3
  import SelectList from "./SelectList";
4
4
  import { toolbarGroups } from "../../toolbarGroups";
@@ -95,9 +95,9 @@ const MiniTextFormat = props => {
95
95
  active: isBlockActive(editor, link.format),
96
96
  editor: editor,
97
97
  customProps: customProps
98
- }, link.id), /*#__PURE__*/_jsx(IconButton, {
98
+ }, link.id), /*#__PURE__*/_jsx(Button, {
99
99
  onClick: e => setAnchorEl(document.getElementById("mini-text-editor-wrapper")),
100
- className: `textSettingsIcon ${open ? "btnActive" : ""}`,
100
+ className: "textSettingsIcon",
101
101
  children: /*#__PURE__*/_jsx(TextToolIcon, {})
102
102
  }), /*#__PURE__*/_jsx(Popper, {
103
103
  id: id,
@@ -1,11 +1,9 @@
1
1
  import React, { useState } from "react";
2
- import { Grid, Typography, IconButton, Tooltip, TextField, InputAdornment } from "@mui/material";
2
+ import { Grid, Typography, IconButton, Tooltip, TextField } from "@mui/material";
3
3
  import CloseIcon from "@mui/icons-material/Close";
4
4
  import OpenInFullIcon from "@mui/icons-material/OpenInFull";
5
5
  import CloseFullscreenIcon from "@mui/icons-material/CloseFullscreen";
6
6
  import Icon from "../../common/Icon";
7
- import { ToggleFullScreenIcon } from "../../common/iconListV2";
8
- import { SearchIcon } from "../../common/iconslist";
9
7
  import { jsx as _jsx } from "react/jsx-runtime";
10
8
  import { jsxs as _jsxs } from "react/jsx-runtime";
11
9
  const SearchBox = props => {
@@ -18,13 +16,7 @@ const SearchBox = props => {
18
16
  sx: classes.searchBox,
19
17
  size: "small",
20
18
  value: search,
21
- onChange: handleChange,
22
- InputProps: {
23
- startAdornment: /*#__PURE__*/_jsx(InputAdornment, {
24
- position: "start",
25
- children: /*#__PURE__*/_jsx(SearchIcon, {})
26
- })
27
- }
19
+ onChange: handleChange
28
20
  });
29
21
  };
30
22
  const PopperHeader = props => {
@@ -47,14 +39,18 @@ const PopperHeader = props => {
47
39
  padding: 2,
48
40
  className: "headerContainer",
49
41
  style: {
50
- paddingTop: "5px"
42
+ paddingTop: "2px"
51
43
  },
52
44
  children: /*#__PURE__*/_jsxs(Grid, {
53
45
  item: true,
54
46
  xs: 12,
47
+ style: {
48
+ display: "flex",
49
+ borderBottom: "1px solid #DCE4EC"
50
+ },
55
51
  justifyContent: "space-between",
56
52
  alignItems: "center",
57
- sx: classes.textSettingHeader,
53
+ className: "textSettingHeader",
58
54
  children: [/*#__PURE__*/_jsx(Typography, {
59
55
  color: "primary",
60
56
  sx: {
@@ -70,7 +66,6 @@ const PopperHeader = props => {
70
66
  sx: {
71
67
  position: 'relative'
72
68
  },
73
- className: "inputField",
74
69
  children: [/*#__PURE__*/_jsx(IconButton, {
75
70
  className: openSearch ? 'searchContainer' : '',
76
71
  onClick: handleSearchButton,
@@ -88,11 +83,11 @@ const PopperHeader = props => {
88
83
  children: /*#__PURE__*/_jsx(IconButton, {
89
84
  style: {
90
85
  marginRight: "8px",
91
- marginLeft: "4px"
86
+ marginLeft: "8px"
92
87
  },
93
- className: "close-popupbtn toogleFullScreenBtn",
88
+ className: "close-popupbtn",
94
89
  onClick: toggleFullscreen,
95
- children: fullScreen ? /*#__PURE__*/_jsx(CloseFullscreenIcon, {}) : /*#__PURE__*/_jsx(ToggleFullScreenIcon, {})
90
+ children: fullScreen ? /*#__PURE__*/_jsx(CloseFullscreenIcon, {}) : /*#__PURE__*/_jsx(OpenInFullIcon, {})
96
91
  })
97
92
  }) : null, /*#__PURE__*/_jsx(Tooltip, {
98
93
  title: "Close",