@flozy/editor 5.1.3 → 5.1.4
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/Editor/ChatEditor.js +34 -25
- package/dist/Editor/CommonEditor.js +7 -13
- package/dist/Editor/Editor.css +10 -52
- package/dist/Editor/Elements/AI/AIInput.js +1 -0
- package/dist/Editor/Elements/AI/CustomSelect.js +10 -17
- package/dist/Editor/Elements/AI/Styles.js +1 -7
- package/dist/Editor/Elements/Color Picker/ColorButtons.js +5 -7
- package/dist/Editor/Elements/Color Picker/Styles.js +3 -7
- package/dist/Editor/Elements/Color Picker/defaultColors.js +2 -2
- package/dist/Editor/Elements/Form/Form.js +2 -38
- package/dist/Editor/Elements/Form/FormElements/FormCheckbox.js +1 -7
- package/dist/Editor/Elements/Form/FormElements/FormDate.js +1 -7
- package/dist/Editor/Elements/Form/FormElements/FormEmail.js +1 -7
- package/dist/Editor/Elements/Form/FormElements/FormNumbers.js +1 -7
- package/dist/Editor/Elements/Form/FormElements/FormRadioButton.js +1 -7
- package/dist/Editor/Elements/Form/FormElements/FormText.js +1 -7
- package/dist/Editor/Elements/Form/FormElements/FormTextArea.js +1 -6
- package/dist/Editor/Elements/Form/FormPopup.js +9 -12
- package/dist/Editor/Elements/FreeGrid/FreeGrid.js +1 -1
- package/dist/Editor/Elements/FreeGrid/FreeGridItem.js +1 -20
- package/dist/Editor/Elements/Grid/GridButton.js +1 -2
- package/dist/Editor/Elements/Link/LinkButton.js +1 -1
- package/dist/Editor/Elements/Signature/Signature.css +1 -1
- package/dist/Editor/Elements/Signature/SignatureOptions/TypeSignature.js +2 -2
- package/dist/Editor/Elements/Signature/SignaturePopup.js +48 -13
- package/dist/Editor/Elements/SimpleText/index.js +1 -8
- package/dist/Editor/Elements/SimpleText/style.js +1 -8
- package/dist/Editor/Elements/Table/Styles.js +43 -25
- package/dist/Editor/Elements/Table/Table.js +138 -206
- package/dist/Editor/Elements/Table/TableCell.js +102 -355
- package/dist/Editor/Elements/Table/TablePopup.js +3 -9
- package/dist/Editor/Elements/Table/TableRow.js +2 -10
- package/dist/Editor/Styles/EditorStyles.js +1 -3
- package/dist/Editor/Toolbar/FormatTools/BlockButton.js +0 -10
- package/dist/Editor/Toolbar/FormatTools/Dropdown.js +11 -7
- package/dist/Editor/Toolbar/FormatTools/FontFamilyAutocomplete.js +4 -10
- package/dist/Editor/Toolbar/FormatTools/MarkButton.js +0 -3
- package/dist/Editor/Toolbar/FormatTools/TextSize.js +2 -0
- package/dist/Editor/Toolbar/Mini/MiniToolbar.js +6 -3
- package/dist/Editor/Toolbar/Mini/Styles.js +1 -4
- package/dist/Editor/Toolbar/PopupTool/MiniTextFormat/index.js +3 -3
- package/dist/Editor/Toolbar/PopupTool/PopperHeader.js +11 -16
- package/dist/Editor/Toolbar/PopupTool/PopupToolStyle.js +49 -416
- package/dist/Editor/Toolbar/PopupTool/TextFormat.js +8 -62
- package/dist/Editor/Toolbar/PopupTool/index.js +6 -5
- package/dist/Editor/Toolbar/Toolbar.js +0 -6
- package/dist/Editor/Toolbar/toolbarGroups.js +0 -4
- package/dist/Editor/assets/svg/BrainIcon.js +2 -2
- package/dist/Editor/common/ColorPickerButton.js +2 -3
- package/dist/Editor/common/FontLoader/FontLoader.js +4 -4
- package/dist/Editor/common/Icon.js +23 -24
- package/dist/Editor/common/LinkSettings/NavComponents.js +1 -2
- package/dist/Editor/common/LinkSettings/index.js +1 -2
- package/dist/Editor/common/MentionsPopup/Styles.js +3 -151
- package/dist/Editor/common/MentionsPopup/index.js +1 -1
- package/dist/Editor/common/RnD/ElementSettings/Settings/FormSettings.js +12 -108
- package/dist/Editor/common/RnD/SwitchViewport/SwitchViewport.js +2 -14
- package/dist/Editor/common/Shorthands/elements.js +1 -13
- package/dist/Editor/common/StyleBuilder/fieldTypes/backgroundImage.js +0 -5
- package/dist/Editor/common/StyleBuilder/fieldTypes/card.js +2 -10
- package/dist/Editor/common/StyleBuilder/fieldTypes/index.js +1 -3
- package/dist/Editor/common/StyleBuilder/fieldTypes/textOptions.js +2 -5
- package/dist/Editor/common/StyleBuilder/formStyle.js +149 -268
- package/dist/Editor/common/StyleBuilder/index.js +11 -84
- package/dist/Editor/common/StyleBuilder/pageSettingsStyle.js +0 -4
- package/dist/Editor/common/StyleBuilder/tableStyle.js +25 -69
- package/dist/Editor/common/Uploader.js +0 -8
- package/dist/Editor/common/iconListV2.js +40 -378
- package/dist/Editor/common/iconslist.js +5 -8
- package/dist/Editor/commonStyle.js +9 -117
- package/dist/Editor/helper/deserialize/index.js +1 -4
- package/dist/Editor/helper/index.js +2 -2
- package/dist/Editor/helper/theme.js +1 -24
- package/dist/Editor/hooks/useMouseMove.js +2 -5
- package/dist/Editor/plugins/withCustomDeleteBackward.js +2 -3
- package/dist/Editor/plugins/withHTML.js +1 -17
- package/dist/Editor/plugins/withLayout.js +1 -48
- package/dist/Editor/utils/SlateUtilityFunctions.js +0 -18
- package/dist/Editor/utils/chatEditor/SlateUtilityFunctions.js +0 -21
- package/dist/Editor/utils/embed.js +1 -2
- package/dist/Editor/utils/events.js +1 -0
- package/dist/Editor/utils/font.js +4 -11
- package/dist/Editor/utils/formfield.js +4 -8
- package/dist/Editor/utils/helper.js +1 -34
- package/dist/Editor/utils/insertNewLine.js +1 -19
- package/dist/Editor/utils/pageSettings.js +2 -14
- package/dist/Editor/utils/serializeToText.js +0 -2
- package/dist/Editor/utils/table.js +24 -228
- package/package.json +1 -1
- package/dist/Editor/Elements/DataView/DataView.js +0 -101
- package/dist/Editor/Elements/DataView/DataViewButton.js +0 -23
- package/dist/Editor/Elements/DataView/Layouts/ColumnView.js +0 -59
- package/dist/Editor/Elements/DataView/Layouts/DataTypes/CheckType.js +0 -30
- package/dist/Editor/Elements/DataView/Layouts/DataTypes/Components/Select.js +0 -140
- package/dist/Editor/Elements/DataView/Layouts/DataTypes/Components/SimpleSelect.js +0 -40
- package/dist/Editor/Elements/DataView/Layouts/DataTypes/Components/styles.js +0 -59
- package/dist/Editor/Elements/DataView/Layouts/DataTypes/DateType.js +0 -26
- package/dist/Editor/Elements/DataView/Layouts/DataTypes/MultiSelectType.js +0 -38
- package/dist/Editor/Elements/DataView/Layouts/DataTypes/NumberType.js +0 -30
- package/dist/Editor/Elements/DataView/Layouts/DataTypes/PersonType.js +0 -30
- package/dist/Editor/Elements/DataView/Layouts/DataTypes/SelectType.js +0 -35
- package/dist/Editor/Elements/DataView/Layouts/DataTypes/TextType.js +0 -36
- package/dist/Editor/Elements/DataView/Layouts/DataTypes/index.js +0 -17
- package/dist/Editor/Elements/DataView/Layouts/FilterSort/SortOptions/ChooseField.js +0 -29
- package/dist/Editor/Elements/DataView/Layouts/FilterSort/SortOptions/ChooseSort.js +0 -38
- package/dist/Editor/Elements/DataView/Layouts/FilterSort/SortOptions/index.js +0 -74
- package/dist/Editor/Elements/DataView/Layouts/FilterSort/index.js +0 -64
- package/dist/Editor/Elements/DataView/Layouts/FilterSort/styles.js +0 -106
- package/dist/Editor/Elements/DataView/Layouts/FilterView.js +0 -174
- package/dist/Editor/Elements/DataView/Layouts/Formula.js +0 -29
- package/dist/Editor/Elements/DataView/Layouts/Options/AddOptions.js +0 -113
- package/dist/Editor/Elements/DataView/Layouts/Options/AddProperty.js +0 -37
- package/dist/Editor/Elements/DataView/Layouts/Options/AllProperties.js +0 -111
- package/dist/Editor/Elements/DataView/Layouts/Options/ChangeProperty.js +0 -62
- package/dist/Editor/Elements/DataView/Layouts/Options/ColumnsList.js +0 -36
- package/dist/Editor/Elements/DataView/Layouts/Options/Constants.js +0 -101
- package/dist/Editor/Elements/DataView/Layouts/Options/EditOption.js +0 -160
- package/dist/Editor/Elements/DataView/Layouts/Options/EditProperty.js +0 -190
- package/dist/Editor/Elements/DataView/Layouts/Options/FilterProperty.js +0 -42
- package/dist/Editor/Elements/DataView/Layouts/Options/PropertyList.js +0 -30
- package/dist/Editor/Elements/DataView/Layouts/Options/index.js +0 -110
- package/dist/Editor/Elements/DataView/Layouts/Options/styles.js +0 -179
- package/dist/Editor/Elements/DataView/Layouts/TableStyles.js +0 -100
- package/dist/Editor/Elements/DataView/Layouts/TableView.js +0 -227
- package/dist/Editor/Elements/DataView/Layouts/ViewData.js +0 -70
- package/dist/Editor/Elements/DataView/Layouts/index.js +0 -25
- package/dist/Editor/Elements/DataView/Providers/DataViewProvider.js +0 -288
- package/dist/Editor/Elements/DataView/Utils/globalSearch.js +0 -15
- package/dist/Editor/Elements/DataView/Utils/multiSortRows.js +0 -72
- package/dist/Editor/Elements/DataView/styles.js +0 -143
- package/dist/Editor/Elements/Table/AddRowCol.js +0 -77
- package/dist/Editor/Elements/Table/DragButton.js +0 -141
- package/dist/Editor/Elements/Table/DragStyles.js +0 -69
- package/dist/Editor/Elements/Table/Draggable.js +0 -25
- package/dist/Editor/Elements/Table/Droppable.js +0 -53
- package/dist/Editor/Elements/Table/TableTool.js +0 -101
- package/dist/Editor/Elements/Table/tableHelper.js +0 -71
- package/dist/Editor/assets/svg/TableIcons.js +0 -220
- package/dist/Editor/common/Select/index.js +0 -20
- package/dist/Editor/common/Select/styles.js +0 -17
- package/dist/Editor/common/StyleBuilder/fieldTypes/lineSpacing.js +0 -79
- package/dist/Editor/hooks/useTable.js +0 -175
- 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": {
|
@@ -19,9 +19,9 @@ const POPUP_TYPES = {
|
|
19
19
|
addTemplate: AddTemplates
|
20
20
|
};
|
21
21
|
const POPUP_OFFSETS = {
|
22
|
-
textFormat: [
|
23
|
-
addElement: [
|
24
|
-
addTemplate: [
|
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,
|
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(
|
98
|
+
}, link.id), /*#__PURE__*/_jsx(Button, {
|
99
99
|
onClick: e => setAnchorEl(document.getElementById("mini-text-editor-wrapper")),
|
100
|
-
className:
|
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
|
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: "
|
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
|
-
|
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: "
|
86
|
+
marginLeft: "8px"
|
92
87
|
},
|
93
|
-
className: "close-popupbtn
|
88
|
+
className: "close-popupbtn",
|
94
89
|
onClick: toggleFullscreen,
|
95
|
-
children: fullScreen ? /*#__PURE__*/_jsx(CloseFullscreenIcon, {}) : /*#__PURE__*/_jsx(
|
90
|
+
children: fullScreen ? /*#__PURE__*/_jsx(CloseFullscreenIcon, {}) : /*#__PURE__*/_jsx(OpenInFullIcon, {})
|
96
91
|
})
|
97
92
|
}) : null, /*#__PURE__*/_jsx(Tooltip, {
|
98
93
|
title: "Close",
|