@flozy/editor 10.6.8 → 10.7.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.
- package/dist/Editor/ChatEditor.js +16 -17
- package/dist/Editor/CommonEditor.js +13 -116
- package/dist/Editor/DialogWrapper.js +25 -31
- package/dist/Editor/Editor.css +11 -31
- package/dist/Editor/Elements/AI/PopoverAIInput.js +3 -11
- package/dist/Editor/Elements/AI/Styles.js +0 -1
- package/dist/Editor/Elements/Accordion/Accordion.js +17 -25
- package/dist/Editor/Elements/AppHeader/AppHeader.js +3 -3
- package/dist/Editor/Elements/Button/EditorButton.js +7 -23
- package/dist/Editor/Elements/Color Picker/ColorButtons.js +14 -61
- package/dist/Editor/Elements/Color Picker/ColorPicker.css +1 -25
- package/dist/Editor/Elements/Color Picker/ColorPicker.js +7 -10
- package/dist/Editor/Elements/Color Picker/Styles.js +13 -15
- package/dist/Editor/Elements/DataView/Layouts/DataTypes/Components/MultiSelect.js +454 -0
- package/dist/Editor/Elements/Embed/Video.js +1 -1
- package/dist/Editor/Elements/Form/FormField.js +1 -1
- package/dist/Editor/Elements/Form/Workflow/Styles.js +22 -24
- package/dist/Editor/Elements/FreeGrid/FreeGrid.js +30 -31
- package/dist/Editor/Elements/FreeGrid/FreeGridBox.js +4 -7
- package/dist/Editor/Elements/FreeGrid/Options/More.js +7 -7
- package/dist/Editor/Elements/FreeGrid/styles.js +0 -9
- package/dist/Editor/Elements/Grid/GridItem.js +1 -1
- package/dist/Editor/Elements/SimpleText/style.js +2 -2
- package/dist/Editor/Elements/Table/Table.js +3 -3
- package/dist/Editor/Elements/Title/title.js +6 -6
- package/dist/Editor/Elements/Variables/VariableButton.js +1 -10
- package/dist/Editor/MiniEditor.js +1 -2
- package/dist/Editor/Styles/EditorStyles.js +5 -9
- package/dist/Editor/Toolbar/FormatTools/Dropdown.js +3 -27
- package/dist/Editor/Toolbar/FormatTools/FontFamilyAutocomplete.js +3 -4
- package/dist/Editor/Toolbar/FormatTools/MarkButton.js +2 -2
- package/dist/Editor/Toolbar/FormatTools/TextSize.js +13 -10
- package/dist/Editor/Toolbar/Mini/MiniToolbar.js +1 -2
- package/dist/Editor/Toolbar/PopupTool/MiniTextFormat/MiniColorPicker.js +2 -4
- package/dist/Editor/Toolbar/PopupTool/MiniTextFormat/SelectFontSize.js +13 -6
- package/dist/Editor/Toolbar/PopupTool/MiniTextFormat/SelectList.js +2 -4
- package/dist/Editor/Toolbar/PopupTool/MiniTextFormat/SelectTypography.js +42 -167
- package/dist/Editor/Toolbar/PopupTool/MiniTextFormat/index.js +4 -7
- package/dist/Editor/Toolbar/PopupTool/PopperHeader.js +1 -2
- package/dist/Editor/Toolbar/PopupTool/PopupToolStyle.js +9 -69
- package/dist/Editor/Toolbar/PopupTool/TextFormat.js +10 -58
- package/dist/Editor/Toolbar/PopupTool/index.js +2 -5
- package/dist/Editor/Toolbar/toolbarGroups.js +6 -48
- package/dist/Editor/common/ColorPickerButton.js +16 -38
- package/dist/Editor/common/DnD/DragHandleButton.js +1 -1
- package/dist/Editor/common/FontLoader/FontLoader.js +0 -3
- package/dist/Editor/common/Icon.js +0 -28
- package/dist/Editor/common/ImageSelector/ImageSelector.js +2 -2
- package/dist/Editor/common/ImageSelector/Styles.js +9 -3
- package/dist/Editor/common/LinkSettings/NavComponents.js +2 -6
- package/dist/Editor/common/RnD/ElementSettings/OtherSettings/Settings.js +1 -2
- package/dist/Editor/common/RnD/ElementSettings/Settings/AppHeaderSettings.js +2 -3
- package/dist/Editor/common/RnD/ElementSettings/Settings/BoxSettings.js +2 -3
- package/dist/Editor/common/RnD/ElementSettings/Settings/ButtonSettings.js +2 -3
- package/dist/Editor/common/RnD/ElementSettings/Settings/CodeSettings.js +2 -3
- package/dist/Editor/common/RnD/ElementSettings/Settings/FormSettings.js +2 -4
- package/dist/Editor/common/RnD/ElementSettings/Settings/ImageSettings.js +2 -3
- package/dist/Editor/common/RnD/ElementSettings/Settings/TableSettings.js +2 -3
- package/dist/Editor/common/RnD/ElementSettings/Settings/TextSettings.js +1 -3
- package/dist/Editor/common/RnD/ElementSettings/Settings/VideoSettings.js +2 -3
- package/dist/Editor/common/RnD/SwitchViewport/SwitchViewport.js +2 -11
- package/dist/Editor/common/RnD/Theme/ViewportStimulator.js +3 -6
- package/dist/Editor/common/RnD/Utils/gridDropItem.js +18 -28
- package/dist/Editor/common/RnD/Utils/index.js +1 -3
- package/dist/Editor/common/RnD/VirtualElement/VirtualTextElement.js +58 -45
- package/dist/Editor/common/RnD/VirtualElement/helper.js +130 -320
- package/dist/Editor/common/RnD/VirtualElement/styles.js +0 -22
- package/dist/Editor/common/RnD/index.js +11 -42
- package/dist/Editor/common/Shorthands/elements.js +0 -54
- package/dist/Editor/common/StyleBuilder/buttonStyle.js +2 -4
- package/dist/Editor/common/StyleBuilder/embedVideoStyle.js +0 -4
- package/dist/Editor/common/StyleBuilder/fieldTypes/backgroundImage.js +0 -5
- package/dist/Editor/common/StyleBuilder/fieldTypes/bannerSpacing.js +2 -12
- package/dist/Editor/common/StyleBuilder/fieldTypes/borderRadius.js +7 -15
- package/dist/Editor/common/StyleBuilder/fieldTypes/card.js +8 -16
- package/dist/Editor/common/StyleBuilder/fieldTypes/color.js +10 -36
- package/dist/Editor/common/StyleBuilder/fieldTypes/fontSize.js +7 -16
- package/dist/Editor/common/StyleBuilder/fieldTypes/index.js +1 -3
- package/dist/Editor/common/StyleBuilder/fieldTypes/menusArray.js +0 -2
- package/dist/Editor/common/StyleBuilder/fieldTypes/textOptions.js +7 -15
- package/dist/Editor/common/Uploader.js +0 -16
- package/dist/Editor/common/iconslist.js +0 -21
- package/dist/Editor/commonStyle.js +64 -107
- package/dist/Editor/helper/index.js +2 -7
- package/dist/Editor/helper/theme.js +2 -203
- package/dist/Editor/hooks/useMouseMove.js +3 -9
- package/dist/Editor/plugins/withEmbeds.js +1 -1
- package/dist/Editor/plugins/withHTML.js +1 -3
- package/dist/Editor/plugins/withTable.js +1 -1
- package/dist/Editor/theme/ThemeList.js +173 -50
- package/dist/Editor/utils/SlateUtilityFunctions.js +24 -229
- package/dist/Editor/utils/accordion.js +34 -62
- package/dist/Editor/utils/button.js +17 -1
- package/dist/Editor/utils/draftToSlate.js +2 -3
- package/dist/Editor/utils/font.js +37 -40
- package/dist/Editor/utils/helper.js +21 -97
- package/dist/Editor/utils/insertAppHeader.js +4 -8
- package/package.json +4 -4
- package/dist/Editor/Elements/FreeGrid/helper.js +0 -115
- package/dist/Editor/Toolbar/PopupTool/ThemeTextFormat.js +0 -439
- package/dist/Editor/assets/svg/BackIcon.js +0 -18
- package/dist/Editor/assets/svg/ThemeIcons.js +0 -293
- package/dist/Editor/common/CustomColorPicker/index.js +0 -130
- package/dist/Editor/common/CustomColorPicker/style.js +0 -53
- package/dist/Editor/common/CustomDialog2/index.js +0 -94
- package/dist/Editor/common/CustomDialog2/style.js +0 -67
- package/dist/Editor/common/CustomSelect.js +0 -43
- package/dist/Editor/common/RnD/Theme/MainThemeProvider.js +0 -17
- package/dist/Editor/common/StyleBuilder/fieldTypes/embedUpload.js +0 -115
- package/dist/Editor/helper/textIndeces.js +0 -58
- package/dist/Editor/hooks/useEditorTheme.js +0 -153
- package/dist/Editor/hooks/useThemeValues.js +0 -63
- package/dist/Editor/theme/index.js +0 -149
- package/dist/Editor/themeSettings/ActiveTheme.js +0 -82
- package/dist/Editor/themeSettings/buttons/index.js +0 -300
- package/dist/Editor/themeSettings/buttons/style.js +0 -23
- package/dist/Editor/themeSettings/colorTheme/index.js +0 -310
- package/dist/Editor/themeSettings/colorTheme/style.js +0 -81
- package/dist/Editor/themeSettings/fonts/PreviewElement.js +0 -121
- package/dist/Editor/themeSettings/fonts/index.js +0 -240
- package/dist/Editor/themeSettings/fonts/style.js +0 -62
- package/dist/Editor/themeSettings/icons.js +0 -60
- package/dist/Editor/themeSettings/index.js +0 -380
- package/dist/Editor/themeSettings/style.js +0 -299
- package/dist/Editor/themeSettingsAI/icons.js +0 -96
- package/dist/Editor/themeSettingsAI/index.js +0 -355
- package/dist/Editor/themeSettingsAI/saveTheme.js +0 -202
- package/dist/Editor/themeSettingsAI/style.js +0 -332
@@ -28,20 +28,16 @@ export const toolbarGroups = [[{
|
|
28
28
|
type: "dropdown",
|
29
29
|
options: [{
|
30
30
|
text: "Normal",
|
31
|
-
value: "normal"
|
32
|
-
numVal: "400"
|
31
|
+
value: "normal"
|
33
32
|
}, {
|
34
33
|
text: "Bold",
|
35
|
-
value: "bold"
|
36
|
-
numVal: "700"
|
34
|
+
value: "bold"
|
37
35
|
}, {
|
38
36
|
text: "Bolder",
|
39
|
-
value: "bolder"
|
40
|
-
numVal: "700"
|
37
|
+
value: "bolder"
|
41
38
|
}, {
|
42
39
|
text: "Lighter",
|
43
|
-
value: "lighter"
|
44
|
-
numVal: "100"
|
40
|
+
value: "lighter"
|
45
41
|
}],
|
46
42
|
icon: FormatBoldIcon,
|
47
43
|
width: "100px"
|
@@ -50,8 +46,7 @@ export const toolbarGroups = [[{
|
|
50
46
|
format: "bold",
|
51
47
|
type: "mark",
|
52
48
|
title: "Bold",
|
53
|
-
basic: true
|
54
|
-
themeEnabled: true
|
49
|
+
basic: true
|
55
50
|
}, {
|
56
51
|
id: 5,
|
57
52
|
format: "underline",
|
@@ -62,8 +57,7 @@ export const toolbarGroups = [[{
|
|
62
57
|
format: "italic",
|
63
58
|
type: "mark",
|
64
59
|
title: "Italic",
|
65
|
-
basic: true
|
66
|
-
themeEnabled: true
|
60
|
+
basic: true
|
67
61
|
}, {
|
68
62
|
id: 6,
|
69
63
|
format: "strikethrough",
|
@@ -107,42 +101,6 @@ export const toolbarGroups = [[{
|
|
107
101
|
type: "block",
|
108
102
|
title: "H3",
|
109
103
|
group: "typography"
|
110
|
-
}, {
|
111
|
-
id: 39,
|
112
|
-
format: "headingFour",
|
113
|
-
type: "block",
|
114
|
-
title: "H4",
|
115
|
-
group: "typography"
|
116
|
-
}, {
|
117
|
-
id: 40,
|
118
|
-
format: "headingFive",
|
119
|
-
type: "block",
|
120
|
-
title: "H5",
|
121
|
-
group: "typography"
|
122
|
-
}, {
|
123
|
-
id: 41,
|
124
|
-
format: "headingSix",
|
125
|
-
type: "block",
|
126
|
-
title: "H6",
|
127
|
-
group: "typography"
|
128
|
-
}, {
|
129
|
-
id: 42,
|
130
|
-
format: "paragraphOne",
|
131
|
-
type: "block",
|
132
|
-
title: "Paragraph 1",
|
133
|
-
group: "typography"
|
134
|
-
}, {
|
135
|
-
id: 43,
|
136
|
-
format: "paragraphTwo",
|
137
|
-
type: "block",
|
138
|
-
title: "Paragraph 2",
|
139
|
-
group: "typography"
|
140
|
-
}, {
|
141
|
-
id: 44,
|
142
|
-
format: "paragraphThree",
|
143
|
-
type: "block",
|
144
|
-
title: "Paragraph 3",
|
145
|
-
group: "typography"
|
146
104
|
}, {
|
147
105
|
id: 14,
|
148
106
|
format: "doublequote",
|
@@ -1,8 +1,8 @@
|
|
1
1
|
import React, { useMemo, useState } from "react";
|
2
2
|
import { Grid, Button, Popover } from "@mui/material";
|
3
|
+
import ColorPickerTool from "react-gcolor-picker";
|
3
4
|
import { colors } from "../Elements/Color Picker/defaultColors";
|
4
5
|
import SwipeableDrawerComponent from "./SwipeableDrawer";
|
5
|
-
import CustomColorPicker from "./CustomColorPicker";
|
6
6
|
import { jsx as _jsx } from "react/jsx-runtime";
|
7
7
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
8
8
|
import { Fragment as _Fragment } from "react/jsx-runtime";
|
@@ -12,10 +12,7 @@ const ColorPickerToolComponent = ({
|
|
12
12
|
onSave = () => {},
|
13
13
|
recentColors = [],
|
14
14
|
hideGradient,
|
15
|
-
handleClose
|
16
|
-
closeDrawer,
|
17
|
-
hideThemeColors,
|
18
|
-
disableEditTheme
|
15
|
+
handleClose
|
19
16
|
}) => {
|
20
17
|
const [color, setColor] = useState(value);
|
21
18
|
const handleSave = () => {
|
@@ -35,32 +32,29 @@ const ColorPickerToolComponent = ({
|
|
35
32
|
return /*#__PURE__*/_jsxs(Grid, {
|
36
33
|
item: true,
|
37
34
|
xs: 12,
|
38
|
-
style: {
|
39
|
-
position: "relative"
|
40
|
-
},
|
41
35
|
children: [/*#__PURE__*/_jsx("div", {
|
42
36
|
style: {
|
43
37
|
minHeight: "460px"
|
44
38
|
},
|
45
|
-
children: /*#__PURE__*/_jsx(
|
39
|
+
children: /*#__PURE__*/_jsx(ColorPickerTool, {
|
46
40
|
gradient: hideGradient ? false : true,
|
47
|
-
|
41
|
+
value: color,
|
48
42
|
onChange: handleColorChange,
|
49
|
-
|
50
|
-
defaultColors: initialColors,
|
51
|
-
closeDrawer: closeDrawer,
|
52
|
-
hideThemeColors: hideThemeColors,
|
53
|
-
disableEditTheme: disableEditTheme
|
43
|
+
defaultColors: initialColors
|
54
44
|
})
|
55
45
|
}), /*#__PURE__*/_jsxs("div", {
|
56
|
-
|
46
|
+
style: {
|
47
|
+
display: "flex",
|
48
|
+
justifyContent: "end",
|
49
|
+
margin: "8px"
|
50
|
+
},
|
57
51
|
children: [/*#__PURE__*/_jsx(Button, {
|
58
52
|
onClick: handleClose,
|
59
|
-
className: "
|
53
|
+
className: "secondaryBtn",
|
60
54
|
children: "Cancel"
|
61
55
|
}), /*#__PURE__*/_jsx(Button, {
|
62
56
|
onClick: handleSave,
|
63
|
-
className: "
|
57
|
+
className: "primaryBtn",
|
64
58
|
children: "Save"
|
65
59
|
})]
|
66
60
|
})]
|
@@ -73,11 +67,7 @@ const ColorPickerButton = props => {
|
|
73
67
|
defaultColors = [],
|
74
68
|
classes = {},
|
75
69
|
recentColors = [],
|
76
|
-
hideGradient
|
77
|
-
children,
|
78
|
-
handleClose: closeDrawer,
|
79
|
-
hideThemeColors,
|
80
|
-
disableEditTheme
|
70
|
+
hideGradient
|
81
71
|
} = props;
|
82
72
|
const [anchorEl, setAnchorEl] = useState(null);
|
83
73
|
const open = Boolean(anchorEl);
|
@@ -89,13 +79,7 @@ const ColorPickerButton = props => {
|
|
89
79
|
setAnchorEl(null);
|
90
80
|
};
|
91
81
|
return /*#__PURE__*/_jsxs(_Fragment, {
|
92
|
-
children: [
|
93
|
-
onClick: handleColorPicker,
|
94
|
-
style: {
|
95
|
-
cursor: "pointer"
|
96
|
-
},
|
97
|
-
children: children
|
98
|
-
}) : /*#__PURE__*/_jsx(Button, {
|
82
|
+
children: [/*#__PURE__*/_jsx(Button, {
|
99
83
|
style: {
|
100
84
|
background: value,
|
101
85
|
height: "22px",
|
@@ -122,10 +106,7 @@ const ColorPickerButton = props => {
|
|
122
106
|
onSave: onSave,
|
123
107
|
recentColors: recentColors,
|
124
108
|
hideGradient: hideGradient,
|
125
|
-
handleClose: handleClose
|
126
|
-
closeDrawer: closeDrawer,
|
127
|
-
hideThemeColors: hideThemeColors,
|
128
|
-
disableEditTheme: disableEditTheme
|
109
|
+
handleClose: handleClose
|
129
110
|
})
|
130
111
|
})
|
131
112
|
}) : /*#__PURE__*/_jsx(Popover, {
|
@@ -151,10 +132,7 @@ const ColorPickerButton = props => {
|
|
151
132
|
onSave: onSave,
|
152
133
|
recentColors: recentColors,
|
153
134
|
hideGradient: hideGradient,
|
154
|
-
handleClose: handleClose
|
155
|
-
closeDrawer: closeDrawer,
|
156
|
-
hideThemeColors: hideThemeColors,
|
157
|
-
disableEditTheme: disableEditTheme
|
135
|
+
handleClose: handleClose
|
158
136
|
})
|
159
137
|
})
|
160
138
|
})]
|
@@ -7,7 +7,7 @@ import { useEditorContext } from "../../hooks/useMouseMove";
|
|
7
7
|
import { Transforms } from "slate";
|
8
8
|
import { jsx as _jsx } from "react/jsx-runtime";
|
9
9
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
10
|
-
const DRAGGABLE_TYPES = ["paragraph", "headingOne", "headingTwo", "headingThree", "
|
10
|
+
const DRAGGABLE_TYPES = ["paragraph", "headingOne", "headingTwo", "headingThree", "grid"];
|
11
11
|
const DragHandleStyle = fromPopper => {
|
12
12
|
const handleDragStyle = fromPopper ? {
|
13
13
|
position: "absolute",
|
@@ -19,8 +19,6 @@ const FontLoader = props => {
|
|
19
19
|
const loadFontsInBatches = (families, batchSize = 5, maxRetries = 3) => {
|
20
20
|
let currentIndex = 0;
|
21
21
|
let retryCount = 0;
|
22
|
-
// let hideLoaderOn = 30;
|
23
|
-
|
24
22
|
const loadNextBatch = () => {
|
25
23
|
try {
|
26
24
|
if (currentIndex >= families?.length) {
|
@@ -81,7 +79,6 @@ const FontLoader = props => {
|
|
81
79
|
// console.log(err);
|
82
80
|
// setLoading(false);
|
83
81
|
});
|
84
|
-
// setLoading(true);
|
85
82
|
} else {
|
86
83
|
function correctFontArray(fontString) {
|
87
84
|
let fontsArray = fontString?.split(",");
|
@@ -48,16 +48,6 @@ import ChervUp from "../assets/svg/ChervUp";
|
|
48
48
|
import ResetIconNew from "../assets/svg/ResetIconNew";
|
49
49
|
import { jsx as _jsx } from "react/jsx-runtime";
|
50
50
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
51
|
-
const HeadingIcon = ({
|
52
|
-
variant
|
53
|
-
}) => {
|
54
|
-
return /*#__PURE__*/_jsx("div", {
|
55
|
-
style: {
|
56
|
-
color: "#64748B"
|
57
|
-
},
|
58
|
-
children: variant
|
59
|
-
});
|
60
|
-
};
|
61
51
|
const iconList = {
|
62
52
|
fontFamily: /*#__PURE__*/_jsx(FontFamilyIcon, {
|
63
53
|
size: 20
|
@@ -90,24 +80,6 @@ const iconList = {
|
|
90
80
|
size: 18,
|
91
81
|
fill: "#64748B"
|
92
82
|
}),
|
93
|
-
headingFour: /*#__PURE__*/_jsx(HeadingIcon, {
|
94
|
-
variant: "H4"
|
95
|
-
}),
|
96
|
-
headingFive: /*#__PURE__*/_jsx(HeadingIcon, {
|
97
|
-
variant: "H5"
|
98
|
-
}),
|
99
|
-
headingSix: /*#__PURE__*/_jsx(HeadingIcon, {
|
100
|
-
variant: "H6"
|
101
|
-
}),
|
102
|
-
paragraphOne: /*#__PURE__*/_jsx(HeadingIcon, {
|
103
|
-
variant: "P1"
|
104
|
-
}),
|
105
|
-
paragraphTwo: /*#__PURE__*/_jsx(HeadingIcon, {
|
106
|
-
variant: "P2"
|
107
|
-
}),
|
108
|
-
paragraphThree: /*#__PURE__*/_jsx(HeadingIcon, {
|
109
|
-
variant: "P3"
|
110
|
-
}),
|
111
83
|
blockquote: /*#__PURE__*/_jsx(MdFormatQuote, {
|
112
84
|
size: 20,
|
113
85
|
fill: "#64748B",
|
@@ -17,7 +17,7 @@ const IMAGE_SLECTOR_OPTIONS = {
|
|
17
17
|
};
|
18
18
|
const TAB_SHOW = {
|
19
19
|
Image: ["upload", "choose", "addLink"],
|
20
|
-
Video: ["
|
20
|
+
Video: ["addLink"],
|
21
21
|
Embed: ["addLink"],
|
22
22
|
Document: ["addLink", "upload"]
|
23
23
|
};
|
@@ -35,7 +35,7 @@ const ImageSelector = props => {
|
|
35
35
|
customProps
|
36
36
|
} = props;
|
37
37
|
const translation = customProps?.translation;
|
38
|
-
const [tabValue, setTabValue] = useState(title === "Image" ? "choose" : "
|
38
|
+
const [tabValue, setTabValue] = useState(title === "Image" ? "choose" : "addLink");
|
39
39
|
const [image, setImage] = useState(value || "");
|
40
40
|
const handleTabChange = (e, newValue) => {
|
41
41
|
setImage("");
|
@@ -76,7 +76,7 @@ const ImageSelectorStyles = theme => ({
|
|
76
76
|
background: theme?.palette?.editor?.deviderBgColor,
|
77
77
|
"@media only screen and (min-width: 899px)": {
|
78
78
|
margin: "0px 24px",
|
79
|
-
width:
|
79
|
+
width: 'calc(100% - 48px)'
|
80
80
|
}
|
81
81
|
},
|
82
82
|
"& .primaryBtn": {
|
@@ -104,6 +104,12 @@ const ImageSelectorStyles = theme => ({
|
|
104
104
|
marginRight: "8px !important"
|
105
105
|
},
|
106
106
|
"& .MuiGrid-root": {
|
107
|
+
"&::-webkit-scrollbar-thumb": {
|
108
|
+
background: `none !important`
|
109
|
+
},
|
110
|
+
"&::-webkit-scrollbar-track": {
|
111
|
+
visibility: "hidden"
|
112
|
+
},
|
107
113
|
"&::-webkit-scrollbar-thumb": {
|
108
114
|
background: `${theme?.palette?.editor?.brainPopupScroll} !important`
|
109
115
|
},
|
@@ -112,10 +118,10 @@ const ImageSelectorStyles = theme => ({
|
|
112
118
|
}
|
113
119
|
},
|
114
120
|
"& .MuiImageList-root": {
|
115
|
-
margin:
|
121
|
+
margin: '0px'
|
116
122
|
},
|
117
123
|
"& .MuiDialogContent-root": {
|
118
|
-
padding:
|
124
|
+
padding: '20px 24px 5px 24px'
|
119
125
|
}
|
120
126
|
},
|
121
127
|
titleTypo: {
|
@@ -175,8 +175,7 @@ export const ScrollTopBottom = props => {
|
|
175
175
|
const {
|
176
176
|
value,
|
177
177
|
onChange,
|
178
|
-
translation
|
179
|
-
classes
|
178
|
+
translation
|
180
179
|
} = props;
|
181
180
|
return /*#__PURE__*/_jsx(Select, {
|
182
181
|
options: scrollToOptions,
|
@@ -184,10 +183,7 @@ export const ScrollTopBottom = props => {
|
|
184
183
|
onChange: e => onChange(e.target.value),
|
185
184
|
label: translation("Choose Top/Bottom of page"),
|
186
185
|
showDefault: true,
|
187
|
-
translation: translation
|
188
|
-
MenuProps: {
|
189
|
-
sx: classes.customSelect
|
190
|
-
}
|
186
|
+
translation: translation
|
191
187
|
});
|
192
188
|
};
|
193
189
|
const filter = createFilterOptions();
|
@@ -8,8 +8,7 @@ const AppHeaderSettings = props => {
|
|
8
8
|
const {
|
9
9
|
editor,
|
10
10
|
path,
|
11
|
-
customProps
|
12
|
-
onClose
|
11
|
+
customProps
|
13
12
|
} = props;
|
14
13
|
const item_path = path?.split("|").map(m => parseInt(m));
|
15
14
|
const element_path = [...item_path, 0];
|
@@ -28,7 +27,7 @@ const AppHeaderSettings = props => {
|
|
28
27
|
});
|
29
28
|
};
|
30
29
|
const handleClose = () => {
|
31
|
-
|
30
|
+
console.log("close");
|
32
31
|
};
|
33
32
|
return /*#__PURE__*/_jsx(Box, {
|
34
33
|
component: "div",
|
@@ -8,8 +8,7 @@ const BoxSettings = props => {
|
|
8
8
|
const {
|
9
9
|
editor,
|
10
10
|
path,
|
11
|
-
customProps
|
12
|
-
onClose
|
11
|
+
customProps
|
13
12
|
} = props;
|
14
13
|
const item_path = path?.split("|").map(m => parseInt(m));
|
15
14
|
const element_path = [...item_path];
|
@@ -28,7 +27,7 @@ const BoxSettings = props => {
|
|
28
27
|
});
|
29
28
|
};
|
30
29
|
const handleClose = () => {
|
31
|
-
|
30
|
+
console.log("close");
|
32
31
|
};
|
33
32
|
return /*#__PURE__*/_jsx(Box, {
|
34
33
|
component: "div",
|
@@ -8,8 +8,7 @@ const ButtonSettings = props => {
|
|
8
8
|
const {
|
9
9
|
editor,
|
10
10
|
path,
|
11
|
-
customProps
|
12
|
-
onClose
|
11
|
+
customProps
|
13
12
|
} = props;
|
14
13
|
const item_path = path?.split("|").map(m => parseInt(m));
|
15
14
|
const element_path = [...item_path, 0];
|
@@ -29,7 +28,7 @@ const ButtonSettings = props => {
|
|
29
28
|
});
|
30
29
|
};
|
31
30
|
const handleClose = () => {
|
32
|
-
|
31
|
+
console.log("close");
|
33
32
|
};
|
34
33
|
return /*#__PURE__*/_jsx(Box, {
|
35
34
|
component: "div",
|
@@ -8,8 +8,7 @@ const CodeSettings = props => {
|
|
8
8
|
const {
|
9
9
|
editor,
|
10
10
|
path,
|
11
|
-
customProps
|
12
|
-
onClose
|
11
|
+
customProps
|
13
12
|
} = props;
|
14
13
|
const item_path = path?.split("|").map(m => parseInt(m));
|
15
14
|
const element_path = [...item_path, 0];
|
@@ -28,7 +27,7 @@ const CodeSettings = props => {
|
|
28
27
|
});
|
29
28
|
};
|
30
29
|
const handleClose = () => {
|
31
|
-
|
30
|
+
console.log("close");
|
32
31
|
};
|
33
32
|
return /*#__PURE__*/_jsx(Box, {
|
34
33
|
component: "div",
|
@@ -12,8 +12,7 @@ const FormSettings = props => {
|
|
12
12
|
const {
|
13
13
|
editor,
|
14
14
|
path,
|
15
|
-
customProps
|
16
|
-
onClose
|
15
|
+
customProps
|
17
16
|
} = props;
|
18
17
|
const item_path = path?.split("|").map(m => parseInt(m));
|
19
18
|
const element_path = [...item_path];
|
@@ -57,14 +56,13 @@ const FormSettings = props => {
|
|
57
56
|
}
|
58
57
|
};
|
59
58
|
const handleClose = () => {
|
60
|
-
|
59
|
+
console.log("close");
|
61
60
|
};
|
62
61
|
const muiTheme = createTheme({
|
63
62
|
components: {
|
64
63
|
MuiAccordion: {
|
65
64
|
styleOverrides: {
|
66
65
|
root: {
|
67
|
-
background: theme?.palette?.editor?.miniToolBarBackground,
|
68
66
|
"& .MuiAccordionSummary-root": {
|
69
67
|
flexDirection: "row-reverse",
|
70
68
|
"& .MuiSvgIcon-root": {
|
@@ -8,8 +8,7 @@ const ImageSettings = props => {
|
|
8
8
|
const {
|
9
9
|
editor,
|
10
10
|
path,
|
11
|
-
customProps
|
12
|
-
onClose
|
11
|
+
customProps
|
13
12
|
} = props;
|
14
13
|
const item_path = path?.split("|").map(m => parseInt(m));
|
15
14
|
const element_path = [...item_path, 0];
|
@@ -28,7 +27,7 @@ const ImageSettings = props => {
|
|
28
27
|
});
|
29
28
|
};
|
30
29
|
const handleClose = () => {
|
31
|
-
|
30
|
+
console.log("close");
|
32
31
|
};
|
33
32
|
return /*#__PURE__*/_jsx(Box, {
|
34
33
|
component: "div",
|
@@ -9,8 +9,7 @@ const TableSettings = props => {
|
|
9
9
|
const {
|
10
10
|
editor,
|
11
11
|
path,
|
12
|
-
customProps
|
13
|
-
onClose
|
12
|
+
customProps
|
14
13
|
} = props;
|
15
14
|
const item_path = path?.split("|").map(m => parseInt(m));
|
16
15
|
const element_path = [...item_path, 0];
|
@@ -58,7 +57,7 @@ const TableSettings = props => {
|
|
58
57
|
}
|
59
58
|
};
|
60
59
|
const handleClose = () => {
|
61
|
-
|
60
|
+
console.log("close");
|
62
61
|
};
|
63
62
|
return /*#__PURE__*/_jsx(Box, {
|
64
63
|
component: "div",
|
@@ -9,7 +9,6 @@ const TextSettings = props => {
|
|
9
9
|
editor,
|
10
10
|
path,
|
11
11
|
theme,
|
12
|
-
onClose,
|
13
12
|
customProps
|
14
13
|
} = props;
|
15
14
|
const item_path = path.split("|").map(m => parseInt(m));
|
@@ -28,8 +27,7 @@ const TextSettings = props => {
|
|
28
27
|
return /*#__PURE__*/_jsx(TextFormat, {
|
29
28
|
classes: classes,
|
30
29
|
editor: editor,
|
31
|
-
customProps: customProps
|
32
|
-
closeMainPopup: onClose
|
30
|
+
customProps: customProps
|
33
31
|
});
|
34
32
|
};
|
35
33
|
export default TextSettings;
|
@@ -8,8 +8,7 @@ const VideoSettings = props => {
|
|
8
8
|
const {
|
9
9
|
editor,
|
10
10
|
path,
|
11
|
-
customProps
|
12
|
-
onClose
|
11
|
+
customProps
|
13
12
|
} = props;
|
14
13
|
const item_path = path?.split("|").map(m => parseInt(m));
|
15
14
|
const element_path = [...item_path, 0];
|
@@ -29,7 +28,7 @@ const VideoSettings = props => {
|
|
29
28
|
});
|
30
29
|
};
|
31
30
|
const handleClose = () => {
|
32
|
-
|
31
|
+
console.log("close");
|
33
32
|
};
|
34
33
|
return /*#__PURE__*/_jsx(Box, {
|
35
34
|
component: "div",
|
@@ -3,29 +3,20 @@ 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
11
|
onChange,
|
13
|
-
translation
|
14
|
-
show
|
12
|
+
translation
|
15
13
|
} = props;
|
16
14
|
const classes = useSwitchViewport();
|
17
|
-
const {
|
18
|
-
setSelectedElement
|
19
|
-
} = useEditorContext();
|
20
15
|
useEffect(() => {
|
21
|
-
|
22
|
-
setSelectedElement({});
|
16
|
+
console.log(breakpoint);
|
23
17
|
}, [breakpoint]);
|
24
18
|
return /*#__PURE__*/_jsxs(Box, {
|
25
19
|
sx: classes.root,
|
26
|
-
style: {
|
27
|
-
display: show ? "block" : "none"
|
28
|
-
},
|
29
20
|
children: [/*#__PURE__*/_jsx(Tooltip, {
|
30
21
|
title: translation("Desktop View"),
|
31
22
|
children: /*#__PURE__*/_jsx(IconButton, {
|
@@ -1,7 +1,6 @@
|
|
1
1
|
import React from "react";
|
2
|
-
import { useTheme, createTheme, useMediaQuery } from "@mui/material";
|
2
|
+
import { useTheme, ThemeProvider, createTheme, useMediaQuery } from "@mui/material";
|
3
3
|
import { isStimulator, STIMULATOR_MOCK } from "../../../hooks/useBreakpoints";
|
4
|
-
import MainThemeProvider from "./MainThemeProvider";
|
5
4
|
|
6
5
|
// Custom breakpoints functions
|
7
6
|
import { jsx as _jsx } from "react/jsx-runtime";
|
@@ -60,15 +59,13 @@ const extendedTheme = (prevTheme, isPrintMode) => createTheme({
|
|
60
59
|
} : getBreakPoints(prevTheme)
|
61
60
|
});
|
62
61
|
const ViewportStimulator = ({
|
63
|
-
children
|
64
|
-
selectedTheme
|
62
|
+
children
|
65
63
|
}) => {
|
66
64
|
const theme = useTheme();
|
67
65
|
const isPrintMode = useMediaQuery("print");
|
68
66
|
const viewportTheme = extendedTheme(theme, isPrintMode);
|
69
|
-
return /*#__PURE__*/_jsx(
|
67
|
+
return /*#__PURE__*/_jsx(ThemeProvider, {
|
70
68
|
theme: viewportTheme,
|
71
|
-
userSelectedTheme: selectedTheme,
|
72
69
|
children: children
|
73
70
|
});
|
74
71
|
};
|