@flozy/editor 11.0.7 → 11.0.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.
- package/dist/Editor/ChatEditor.js +17 -16
- package/dist/Editor/CommonEditor.js +141 -28
- package/dist/Editor/DialogWrapper.js +31 -25
- package/dist/Editor/Editor.css +39 -11
- package/dist/Editor/Elements/AI/PopoverAIInput.js +11 -3
- package/dist/Editor/Elements/AI/Styles.js +1 -0
- package/dist/Editor/Elements/Accordion/Accordion.js +28 -22
- package/dist/Editor/Elements/Accordion/AccordionButton.js +12 -3
- package/dist/Editor/Elements/AppHeader/AppHeader.js +3 -3
- package/dist/Editor/Elements/Attachments/AttachmentStyles.js +16 -0
- package/dist/Editor/Elements/Attachments/Attachments.js +153 -11
- package/dist/Editor/Elements/Attachments/AttachmentsButton.js +8 -3
- package/dist/Editor/Elements/Button/EditorButton.js +23 -7
- package/dist/Editor/Elements/Color Picker/ColorButtons.js +61 -14
- package/dist/Editor/Elements/Color Picker/ColorPicker.css +25 -1
- package/dist/Editor/Elements/Color Picker/ColorPicker.js +10 -7
- package/dist/Editor/Elements/Color Picker/Styles.js +15 -13
- package/dist/Editor/Elements/DataView/Layouts/DataTypes/Components/Select.js +134 -55
- package/dist/Editor/Elements/DataView/Layouts/DataTypes/Components/SelectV1.js +7 -8
- package/dist/Editor/Elements/DataView/Layouts/DataTypes/PersonType.js +8 -3
- package/dist/Editor/Elements/DataView/Layouts/Options/EditProperty.js +1 -1
- package/dist/Editor/Elements/DataView/Layouts/TableStyles.js +1 -1
- package/dist/Editor/Elements/Embed/Embed.css +5 -0
- package/dist/Editor/Elements/Embed/Embed.js +36 -43
- package/dist/Editor/Elements/Embed/Image.js +236 -23
- package/dist/Editor/Elements/Embed/Video.js +245 -15
- package/dist/Editor/Elements/Form/Form.js +35 -10
- package/dist/Editor/Elements/Form/FormField.js +1 -1
- package/dist/Editor/Elements/Form/Workflow/Styles.js +24 -22
- package/dist/Editor/Elements/Form/Workflow/constant.js +25 -1
- package/dist/Editor/Elements/FreeGrid/FreeGrid.js +31 -74
- package/dist/Editor/Elements/FreeGrid/FreeGridBox.js +9 -5
- package/dist/Editor/Elements/FreeGrid/FreeGridItem.js +3 -1
- package/dist/Editor/Elements/FreeGrid/Options/More.js +7 -7
- package/dist/Editor/Elements/FreeGrid/helper.js +194 -0
- package/dist/Editor/Elements/FreeGrid/styles.js +15 -0
- package/dist/Editor/Elements/Grid/GridItem.js +1 -1
- package/dist/Editor/Elements/PageSettings/PageSettingsButton.js +2 -1
- package/dist/Editor/Elements/Signature/SignaturePopup.js +13 -6
- package/dist/Editor/Elements/SimpleText/index.js +4 -1
- package/dist/Editor/Elements/SimpleText/style.js +2 -2
- package/dist/Editor/Elements/Table/Table.js +5 -4
- package/dist/Editor/Elements/Table/TableCell.js +10 -3
- package/dist/Editor/Elements/Title/title.js +10 -11
- package/dist/Editor/Elements/TopBanner/TopBanner.js +4 -2
- package/dist/Editor/Elements/TopBanner/TopBannerButton.js +5 -3
- package/dist/Editor/Elements/Variables/VariableButton.js +10 -1
- package/dist/Editor/MiniEditor.js +2 -1
- package/dist/Editor/Styles/EditorStyles.js +20 -5
- package/dist/Editor/Toolbar/FormatTools/Dropdown.js +27 -3
- package/dist/Editor/Toolbar/FormatTools/FontFamilyAutocomplete.js +4 -3
- package/dist/Editor/Toolbar/FormatTools/MarkButton.js +2 -2
- package/dist/Editor/Toolbar/FormatTools/TextSize.js +33 -29
- package/dist/Editor/Toolbar/Mini/MiniToolbar.js +2 -1
- package/dist/Editor/Toolbar/PopupTool/MiniTextFormat/MiniColorPicker.js +4 -2
- package/dist/Editor/Toolbar/PopupTool/MiniTextFormat/SelectFontSize.js +25 -23
- package/dist/Editor/Toolbar/PopupTool/MiniTextFormat/SelectList.js +25 -7
- package/dist/Editor/Toolbar/PopupTool/MiniTextFormat/SelectTypography.js +167 -42
- package/dist/Editor/Toolbar/PopupTool/MiniTextFormat/index.js +24 -8
- package/dist/Editor/Toolbar/PopupTool/PopperHeader.js +2 -1
- package/dist/Editor/Toolbar/PopupTool/PopupToolStyle.js +70 -10
- package/dist/Editor/Toolbar/PopupTool/TextFormat.js +73 -14
- package/dist/Editor/Toolbar/PopupTool/ThemeTextFormat.js +439 -0
- package/dist/Editor/Toolbar/PopupTool/index.js +7 -4
- package/dist/Editor/Toolbar/toolbarGroups.js +56 -10
- package/dist/Editor/assets/svg/BackIcon.js +18 -0
- package/dist/Editor/assets/svg/ThemeIcons.js +293 -0
- package/dist/Editor/common/ColorPickerButton.js +38 -16
- package/dist/Editor/common/CustomColorPicker/index.js +130 -0
- package/dist/Editor/common/CustomColorPicker/style.js +53 -0
- package/dist/Editor/common/CustomDialog2/index.js +94 -0
- package/dist/Editor/common/CustomDialog2/style.js +67 -0
- package/dist/Editor/common/CustomSelect.js +43 -0
- package/dist/Editor/common/DnD/DragHandleButton.js +1 -1
- package/dist/Editor/common/FontLoader/FontLoader.js +4 -0
- package/dist/Editor/common/Icon.js +28 -0
- package/dist/Editor/common/ImageSelector/ImageSelector.js +45 -7
- package/dist/Editor/common/ImageSelector/Options/Upload.js +26 -11
- package/dist/Editor/common/ImageSelector/Styles.js +3 -9
- package/dist/Editor/common/LinkSettings/NavComponents.js +6 -2
- package/dist/Editor/common/MentionsPopup/index.js +9 -1
- package/dist/Editor/common/RnD/ElementSettings/OtherSettings/Settings.js +2 -1
- package/dist/Editor/common/RnD/ElementSettings/Settings/AppHeaderSettings.js +3 -2
- package/dist/Editor/common/RnD/ElementSettings/Settings/BoxSettings.js +3 -2
- package/dist/Editor/common/RnD/ElementSettings/Settings/ButtonSettings.js +3 -2
- package/dist/Editor/common/RnD/ElementSettings/Settings/CodeSettings.js +3 -2
- package/dist/Editor/common/RnD/ElementSettings/Settings/FormSettings.js +4 -2
- package/dist/Editor/common/RnD/ElementSettings/Settings/ImageSettings.js +20 -7
- package/dist/Editor/common/RnD/ElementSettings/Settings/TableSettings.js +3 -2
- package/dist/Editor/common/RnD/ElementSettings/Settings/TextSettings.js +9 -1
- package/dist/Editor/common/RnD/ElementSettings/Settings/VideoSettings.js +20 -7
- package/dist/Editor/common/RnD/GuideLines/styles.js +1 -1
- package/dist/Editor/common/RnD/SwitchViewport/SwitchViewport.js +11 -2
- package/dist/Editor/common/RnD/Theme/MainThemeProvider.js +17 -0
- package/dist/Editor/common/RnD/Theme/ViewportStimulator.js +6 -3
- package/dist/Editor/common/RnD/Utils/gridDropItem.js +28 -11
- package/dist/Editor/common/RnD/Utils/index.js +3 -1
- package/dist/Editor/common/RnD/VirtualElement/VirtualTextElement.js +52 -63
- package/dist/Editor/common/RnD/VirtualElement/helper.js +320 -130
- package/dist/Editor/common/RnD/VirtualElement/styles.js +22 -0
- package/dist/Editor/common/RnD/index.js +61 -14
- package/dist/Editor/common/Shorthands/elements.js +62 -4
- package/dist/Editor/common/StyleBuilder/buttonStyle.js +4 -2
- package/dist/Editor/common/StyleBuilder/embedVideoStyle.js +4 -0
- package/dist/Editor/common/StyleBuilder/fieldStyle.js +1 -0
- package/dist/Editor/common/StyleBuilder/fieldTypes/backgroundImage.js +15 -2
- package/dist/Editor/common/StyleBuilder/fieldTypes/bannerSpacing.js +12 -2
- package/dist/Editor/common/StyleBuilder/fieldTypes/borderRadius.js +15 -7
- package/dist/Editor/common/StyleBuilder/fieldTypes/card.js +16 -8
- package/dist/Editor/common/StyleBuilder/fieldTypes/color.js +36 -10
- package/dist/Editor/common/StyleBuilder/fieldTypes/embedUpload.js +115 -0
- package/dist/Editor/common/StyleBuilder/fieldTypes/fontSize.js +16 -7
- package/dist/Editor/common/StyleBuilder/fieldTypes/index.js +3 -1
- package/dist/Editor/common/StyleBuilder/fieldTypes/menusArray.js +2 -0
- package/dist/Editor/common/StyleBuilder/fieldTypes/textOptions.js +15 -7
- package/dist/Editor/common/StyleBuilder/formStyle.js +19 -13
- package/dist/Editor/common/StyleBuilder/index.js +8 -4
- package/dist/Editor/common/Uploader.js +125 -17
- package/dist/Editor/common/UploaderWithProgress.js +183 -0
- package/dist/Editor/common/iconslist.js +21 -0
- package/dist/Editor/commonStyle.js +67 -18
- package/dist/Editor/helper/index.js +10 -2
- package/dist/Editor/helper/textIndeces.js +58 -0
- package/dist/Editor/helper/theme.js +203 -2
- package/dist/Editor/hooks/useEditorTheme.js +153 -0
- package/dist/Editor/hooks/useMouseMove.js +9 -3
- package/dist/Editor/hooks/useTable.js +62 -1
- package/dist/Editor/hooks/useThemeValues.js +63 -0
- package/dist/Editor/plugins/withEmbeds.js +12 -1
- package/dist/Editor/plugins/withHTML.js +58 -3
- package/dist/Editor/plugins/withTable.js +1 -1
- package/dist/Editor/service/fileupload.js +70 -0
- package/dist/Editor/theme/ThemeList.js +50 -173
- package/dist/Editor/theme/index.js +149 -0
- package/dist/Editor/themeSettings/ActiveTheme.js +82 -0
- package/dist/Editor/themeSettings/buttons/index.js +300 -0
- package/dist/Editor/themeSettings/buttons/style.js +23 -0
- package/dist/Editor/themeSettings/colorTheme/index.js +310 -0
- package/dist/Editor/themeSettings/colorTheme/style.js +81 -0
- package/dist/Editor/themeSettings/fonts/PreviewElement.js +121 -0
- package/dist/Editor/themeSettings/fonts/index.js +240 -0
- package/dist/Editor/themeSettings/fonts/style.js +62 -0
- package/dist/Editor/themeSettings/icons.js +60 -0
- package/dist/Editor/themeSettings/index.js +380 -0
- package/dist/Editor/themeSettings/style.js +299 -0
- package/dist/Editor/themeSettingsAI/icons.js +96 -0
- package/dist/Editor/themeSettingsAI/index.js +355 -0
- package/dist/Editor/themeSettingsAI/saveTheme.js +202 -0
- package/dist/Editor/themeSettingsAI/style.js +332 -0
- package/dist/Editor/utils/SlateUtilityFunctions.js +191 -40
- package/dist/Editor/utils/accordion.js +67 -39
- package/dist/Editor/utils/button.js +1 -17
- package/dist/Editor/utils/draftToSlate.js +3 -2
- package/dist/Editor/utils/events.js +94 -89
- package/dist/Editor/utils/font.js +40 -37
- package/dist/Editor/utils/helper.js +100 -23
- package/dist/Editor/utils/insertAppHeader.js +8 -4
- package/package.json +4 -4
- package/dist/Editor/Elements/DataView/Layouts/DataTypes/Components/MultiSelect.js +0 -454
@@ -98,6 +98,9 @@ const usePopupStyle = theme => ({
|
|
98
98
|
}
|
99
99
|
}
|
100
100
|
},
|
101
|
+
"& .MuiDivider-root": {
|
102
|
+
border: `0.5px solid ${theme?.palette?.editor?.deviderBgColor}`
|
103
|
+
},
|
101
104
|
"@media only screen and (max-width: 599px)": {
|
102
105
|
// margin: "10px !important",
|
103
106
|
background: "unset",
|
@@ -111,6 +114,7 @@ const usePopupStyle = theme => ({
|
|
111
114
|
width: "323px",
|
112
115
|
maxWidth: "100%",
|
113
116
|
overflowX: "hidden !important",
|
117
|
+
marginTop: "6px",
|
114
118
|
// 30% of window height
|
115
119
|
maxHeight: `${window.innerHeight * 0.45}px`,
|
116
120
|
overflow: "auto",
|
@@ -304,6 +308,21 @@ const usePopupStyle = theme => ({
|
|
304
308
|
paddingRight: "0px !important"
|
305
309
|
}
|
306
310
|
},
|
311
|
+
textFormatContainer: {
|
312
|
+
".saveThemeBtnsWrapper": {
|
313
|
+
position: "sticky",
|
314
|
+
bottom: "0px",
|
315
|
+
right: "0px",
|
316
|
+
boxShadow: `0px -3px 16px 0px ${theme?.palette?.editor?.cardShadow}`,
|
317
|
+
padding: "10px",
|
318
|
+
borderRadius: "8px 8px 19px 19px",
|
319
|
+
display: "flex",
|
320
|
+
justifyContent: "end",
|
321
|
+
alignItems: "center",
|
322
|
+
gap: "8px",
|
323
|
+
background: theme?.palette?.editor?.miniToolBarBackground
|
324
|
+
}
|
325
|
+
},
|
307
326
|
textFormatLabel: {
|
308
327
|
display: "flex",
|
309
328
|
alignItems: "center",
|
@@ -335,9 +354,10 @@ const usePopupStyle = theme => ({
|
|
335
354
|
borderBottom: `1px solid ${theme?.palette?.editor?.deviderBgColor} !important`
|
336
355
|
},
|
337
356
|
textFormatField: {
|
338
|
-
marginBottom: "8px"
|
339
|
-
marginTop: "8px"
|
357
|
+
marginBottom: "8px"
|
358
|
+
// marginTop: "8px",
|
340
359
|
},
|
360
|
+
|
341
361
|
textFormatField1: {
|
342
362
|
marginBottom: "16px",
|
343
363
|
marginTop: "10px"
|
@@ -416,6 +436,11 @@ const usePopupStyle = theme => ({
|
|
416
436
|
"& .MuiOutlinedInput-notchedOutline": {
|
417
437
|
border: `1px solid ${theme?.palette?.editor?.inputFieldBorder} !important`
|
418
438
|
},
|
439
|
+
"& .MuiInputBase-root": {
|
440
|
+
"& input": {
|
441
|
+
border: "none !important"
|
442
|
+
}
|
443
|
+
},
|
419
444
|
"& svg": {
|
420
445
|
width: "20px",
|
421
446
|
height: "24px"
|
@@ -424,9 +449,6 @@ const usePopupStyle = theme => ({
|
|
424
449
|
fontFamilyListOptions: {
|
425
450
|
"& .MuiAutocomplete-listbox": {
|
426
451
|
padding: "0px",
|
427
|
-
// "&::-webkit-scrollbar-thumb": {
|
428
|
-
// background: `none !important`,
|
429
|
-
// },
|
430
452
|
"&::-webkit-scrollbar-thumb": {
|
431
453
|
background: `${theme?.palette?.editor?.brainPopupScroll} !important`
|
432
454
|
},
|
@@ -537,7 +559,7 @@ const usePopupStyle = theme => ({
|
|
537
559
|
}
|
538
560
|
},
|
539
561
|
alignItems: "flexStart",
|
540
|
-
justifyContent: "center",
|
562
|
+
// justifyContent: "center",
|
541
563
|
flexDirection: "row",
|
542
564
|
"&:hover": {
|
543
565
|
background: "unset"
|
@@ -786,8 +808,13 @@ const usePopupStyle = theme => ({
|
|
786
808
|
padding: "0px"
|
787
809
|
},
|
788
810
|
defaultBtn: {
|
789
|
-
color: "#
|
790
|
-
textTransform: "none"
|
811
|
+
color: "#2563EB !important",
|
812
|
+
textTransform: "none",
|
813
|
+
textDecoration: "underline",
|
814
|
+
"&.Mui-disabled": {
|
815
|
+
color: "#A0AEC0 !important",
|
816
|
+
textDecoration: "none"
|
817
|
+
}
|
791
818
|
},
|
792
819
|
templateCardBtnGrp: {
|
793
820
|
display: "none",
|
@@ -864,7 +891,7 @@ const usePopupStyle = theme => ({
|
|
864
891
|
margin: "30px",
|
865
892
|
"& .MuiPaper-root": {
|
866
893
|
overflow: "auto",
|
867
|
-
backgroundColor: theme?.palette?.editor?.
|
894
|
+
backgroundColor: theme?.palette?.editor?.miniToolBarBackground,
|
868
895
|
borderRadius: "14px !important",
|
869
896
|
border: `1px solid ${theme?.palette?.editor?.inputFieldBorder} !important`,
|
870
897
|
minWidth: "fit-content",
|
@@ -1132,12 +1159,45 @@ const usePopupStyle = theme => ({
|
|
1132
1159
|
miniFontSizeInput: {
|
1133
1160
|
"& input": {
|
1134
1161
|
fontSize: "14px",
|
1135
|
-
width: "
|
1162
|
+
width: "26px",
|
1136
1163
|
padding: "8px 4px"
|
1137
1164
|
},
|
1138
1165
|
"& fieldset": {
|
1139
1166
|
border: "none !important"
|
1140
1167
|
}
|
1168
|
+
},
|
1169
|
+
customCheckBox: {
|
1170
|
+
marginTop: "4px",
|
1171
|
+
padding: "0px",
|
1172
|
+
"& .MuiCheckbox-root": {
|
1173
|
+
padding: "8px 8px 8px 10px",
|
1174
|
+
"&:hover": {
|
1175
|
+
background: "unset !important"
|
1176
|
+
}
|
1177
|
+
},
|
1178
|
+
"& button": {
|
1179
|
+
width: "14px !important",
|
1180
|
+
height: "14px !important",
|
1181
|
+
borderRadius: "3px",
|
1182
|
+
border: `1px solid ${theme?.palette?.editor?.buttonBorder3}`,
|
1183
|
+
padding: "0px",
|
1184
|
+
"& svg": {
|
1185
|
+
width: "10px",
|
1186
|
+
height: "10px"
|
1187
|
+
}
|
1188
|
+
},
|
1189
|
+
"& .checkedIcon": {
|
1190
|
+
background: "#2563EB",
|
1191
|
+
borderColor: "#2563EB"
|
1192
|
+
},
|
1193
|
+
"& .unCheckedIcon": {
|
1194
|
+
background: theme?.palette?.editor?.checkedIconBg
|
1195
|
+
},
|
1196
|
+
"& p": {
|
1197
|
+
margin: "0px !important",
|
1198
|
+
color: theme?.palette?.editor?.tv_text,
|
1199
|
+
fontSize: "13px"
|
1200
|
+
}
|
1141
1201
|
}
|
1142
1202
|
});
|
1143
1203
|
export default usePopupStyle;
|
@@ -10,6 +10,8 @@ import { AllColors } from "../../Elements/Color Picker/ColorButtons";
|
|
10
10
|
import { fontFamilyMap } from "../../utils/font";
|
11
11
|
import { getBorderColor } from "../../utils/helper";
|
12
12
|
import SelectTypography from "./MiniTextFormat/SelectTypography";
|
13
|
+
import { isTextCustomized, saveToTheme } from "../../helper/theme";
|
14
|
+
import { useEditorTheme } from "../../hooks/useEditorTheme";
|
13
15
|
import SelectSuperSubscript from "./MiniTextFormat/SelectSuperSubscript";
|
14
16
|
import { ColorResetIcon, TextDefaultStyleIcon } from "../../common/iconListV2";
|
15
17
|
import FontFamilyAutocomplete from "../FormatTools/FontFamilyAutocomplete";
|
@@ -29,7 +31,11 @@ const TextFormat = props => {
|
|
29
31
|
editor,
|
30
32
|
onClose,
|
31
33
|
closeMainPopup,
|
32
|
-
customProps
|
34
|
+
customProps,
|
35
|
+
commonProps,
|
36
|
+
setResizedSize,
|
37
|
+
resizedSize,
|
38
|
+
fromMiniTextFormat
|
33
39
|
} = props;
|
34
40
|
const [anchorEl, setAnchorEl] = useState(null);
|
35
41
|
const [type, setType] = useState(null);
|
@@ -37,20 +43,23 @@ const TextFormat = props => {
|
|
37
43
|
const {
|
38
44
|
translation
|
39
45
|
} = customProps;
|
46
|
+
const {
|
47
|
+
listType
|
48
|
+
} = commonProps || {};
|
40
49
|
const {
|
41
50
|
element: pageSt
|
42
51
|
} = getPageSettings(editor) || {};
|
43
52
|
const pageSettingLine = pageSt?.pageProps?.lineHeight;
|
44
53
|
const {
|
45
54
|
fontFamilies,
|
46
|
-
theme
|
55
|
+
theme: appTheme
|
47
56
|
} = useEditorContext();
|
48
57
|
const breakpoint = getDevice(window.innerWidth);
|
49
58
|
const fontWeight = allTools.find(f => f.format === "fontWeight");
|
50
59
|
const fontStyle = allTools.filter(f => f.type === "mark" && f.format !== "strikethrough" && f.format !== "superscript" && f.format !== "subscript");
|
51
60
|
const fontAlign = allTools.filter(f => f.format?.indexOf("align") >= 0);
|
52
61
|
const link = allTools.find(f => f.format?.indexOf("link") >= 0);
|
53
|
-
const lists = allTools.filter(f => f.group?.
|
62
|
+
const lists = allTools.filter(f => f.group?.includes("list") && !f.hideFor?.includes(listType));
|
54
63
|
const {
|
55
64
|
isActive: isBlockQuoteActive,
|
56
65
|
props: bqProps
|
@@ -62,6 +71,11 @@ const TextFormat = props => {
|
|
62
71
|
color: "",
|
63
72
|
bgColor: ""
|
64
73
|
};
|
74
|
+
const {
|
75
|
+
theme,
|
76
|
+
updateTheme
|
77
|
+
} = useEditorTheme();
|
78
|
+
const customized = isTextCustomized(editor);
|
65
79
|
let lineSpacingValue = activeMark(editor, "lineHeight");
|
66
80
|
lineSpacingValue = lineSpacingValue?.[breakpoint] !== undefined ? lineSpacingValue : pageSettingLine;
|
67
81
|
const handleColorPicker = type => e => {
|
@@ -116,6 +130,51 @@ const TextFormat = props => {
|
|
116
130
|
sx: classes.textFormatWrapper,
|
117
131
|
className: "text-formatter-popup",
|
118
132
|
children: [/*#__PURE__*/_jsxs(Grid, {
|
133
|
+
item: true,
|
134
|
+
xs: 12,
|
135
|
+
children: [/*#__PURE__*/_jsxs(Grid, {
|
136
|
+
container: true,
|
137
|
+
justifyContent: "space-between",
|
138
|
+
alignItems: "center",
|
139
|
+
children: [/*#__PURE__*/_jsx(Grid, {
|
140
|
+
item: true,
|
141
|
+
children: /*#__PURE__*/_jsx(Typography, {
|
142
|
+
variant: "body1",
|
143
|
+
color: "primary",
|
144
|
+
sx: classes.typoLabel,
|
145
|
+
children: "Style"
|
146
|
+
})
|
147
|
+
}), /*#__PURE__*/_jsx(Grid, {
|
148
|
+
item: true,
|
149
|
+
children: theme?.id ? /*#__PURE__*/_jsx(Button, {
|
150
|
+
sx: classes.defaultBtn,
|
151
|
+
onClick: () => {
|
152
|
+
const {
|
153
|
+
field,
|
154
|
+
theme
|
155
|
+
} = saveToTheme(editor) || {};
|
156
|
+
updateTheme(theme, {
|
157
|
+
action: "ELEMENT_PROPS_CHANGE",
|
158
|
+
fieldName: field
|
159
|
+
});
|
160
|
+
},
|
161
|
+
disabled: !customized,
|
162
|
+
children: "Save to theme"
|
163
|
+
}) : null
|
164
|
+
})]
|
165
|
+
}), /*#__PURE__*/_jsx(Grid, {
|
166
|
+
item: true,
|
167
|
+
xs: 12,
|
168
|
+
sx: classes.textFormatField,
|
169
|
+
children: /*#__PURE__*/_jsx(SelectTypography, {
|
170
|
+
editor: editor,
|
171
|
+
classes: classes,
|
172
|
+
closeMainPopup: closeMainPopup,
|
173
|
+
type: "fullWidth",
|
174
|
+
customProps: customProps
|
175
|
+
})
|
176
|
+
})]
|
177
|
+
}), /*#__PURE__*/_jsxs(Grid, {
|
119
178
|
item: true,
|
120
179
|
xs: 12,
|
121
180
|
children: [/*#__PURE__*/_jsxs(Grid, {
|
@@ -196,7 +255,10 @@ const TextFormat = props => {
|
|
196
255
|
format: "fontSize",
|
197
256
|
activeMark: activeMark,
|
198
257
|
editor: editor,
|
199
|
-
fullWidth: true
|
258
|
+
fullWidth: true,
|
259
|
+
fromMiniTextFormat: fromMiniTextFormat,
|
260
|
+
setResizedSize: setResizedSize,
|
261
|
+
resizedSize: resizedSize
|
200
262
|
})
|
201
263
|
})]
|
202
264
|
})]
|
@@ -242,7 +304,8 @@ const TextFormat = props => {
|
|
242
304
|
rounded: true,
|
243
305
|
title: translation("textColor"),
|
244
306
|
id: "11_cc",
|
245
|
-
classes: classes
|
307
|
+
classes: classes,
|
308
|
+
type: "textColor"
|
246
309
|
}, "11_cc")
|
247
310
|
})]
|
248
311
|
}), /*#__PURE__*/_jsxs(Grid, {
|
@@ -268,7 +331,7 @@ const TextFormat = props => {
|
|
268
331
|
children: /*#__PURE__*/_jsx(Button, {
|
269
332
|
sx: classes.defaultBtn2,
|
270
333
|
startIcon: /*#__PURE__*/_jsx(ColorResetIcon, {
|
271
|
-
stroke:
|
334
|
+
stroke: appTheme?.palette?.type === "dark" ? "#505359" : "#A2B0B9"
|
272
335
|
}),
|
273
336
|
onClick: handleDefault({
|
274
337
|
format: "bgColor"
|
@@ -336,7 +399,8 @@ const TextFormat = props => {
|
|
336
399
|
return /*#__PURE__*/_jsx(Comp, {
|
337
400
|
editor: editor,
|
338
401
|
...m,
|
339
|
-
customProps: customProps
|
402
|
+
customProps: customProps,
|
403
|
+
commonProps: commonProps
|
340
404
|
}, `pptool_block_${i}_${m.id}`);
|
341
405
|
})
|
342
406
|
})]
|
@@ -358,12 +422,7 @@ const TextFormat = props => {
|
|
358
422
|
xs: 12,
|
359
423
|
className: "typo-icons",
|
360
424
|
sx: classes.evenSpace,
|
361
|
-
children: [
|
362
|
-
classes: classes,
|
363
|
-
editor: editor,
|
364
|
-
closeMainPopup: closeMainPopup || onClose,
|
365
|
-
customProps: customProps
|
366
|
-
}), fontStyle?.map((m, i) => {
|
425
|
+
children: [fontStyle?.map((m, i) => {
|
367
426
|
return /*#__PURE__*/_jsx(MarkButton, {
|
368
427
|
editor: editor,
|
369
428
|
...m,
|
@@ -402,7 +461,7 @@ const TextFormat = props => {
|
|
402
461
|
value: lineSpacingValue,
|
403
462
|
onChange: handleLineSpacing,
|
404
463
|
data: {
|
405
|
-
key:
|
464
|
+
key: "lineHeight"
|
406
465
|
}
|
407
466
|
})
|
408
467
|
})]
|