@flozy/editor 9.8.3 → 9.8.4
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 +26 -19
- package/dist/Editor/CommonEditor.js +141 -26
- package/dist/Editor/DialogWrapper.js +31 -25
- package/dist/Editor/Editor.css +11 -7
- package/dist/Editor/Elements/AI/AIInput.js +5 -3
- package/dist/Editor/Elements/AI/CustomSelect.js +9 -5
- package/dist/Editor/Elements/AI/PopoverAIInput.js +15 -5
- package/dist/Editor/Elements/Accordion/Accordion.js +4 -3
- package/dist/Editor/Elements/Accordion/AccordionBtnPopup.js +4 -1
- package/dist/Editor/Elements/Accordion/AccordionButton.js +6 -2
- package/dist/Editor/Elements/Accordion/AccordionTitlePopup.js +4 -1
- package/dist/Editor/Elements/AppHeader/AppHeader.js +3 -3
- package/dist/Editor/Elements/AppHeader/AppHeaderButton.js +6 -2
- package/dist/Editor/Elements/AppHeader/AppHeaderPopup.js +4 -1
- package/dist/Editor/Elements/Attachments/AttachmentsButton.js +4 -1
- package/dist/Editor/Elements/Button/ButtonPopup.js +4 -1
- package/dist/Editor/Elements/Button/ButtonToolIcon.js +6 -2
- package/dist/Editor/Elements/Button/EditorButton.js +43 -30
- package/dist/Editor/Elements/Carousel/Carousel.js +5 -4
- package/dist/Editor/Elements/Carousel/CarouselButton.js +6 -2
- package/dist/Editor/Elements/Carousel/CarouselItem.js +3 -2
- package/dist/Editor/Elements/ChipText/ChipTextPopup.js +4 -1
- package/dist/Editor/Elements/CodeToText/CodeToText.js +5 -4
- package/dist/Editor/Elements/CodeToText/HtmlContextMenu.js +6 -2
- package/dist/Editor/Elements/Color Picker/ColorButtons.js +60 -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/Colorbox/ColorboxButton.js +6 -2
- package/dist/Editor/Elements/DataView/DataView.js +5 -2
- package/dist/Editor/Elements/DataView/DataViewButton.js +6 -2
- package/dist/Editor/Elements/DataView/Layouts/ColumnView.js +4 -2
- package/dist/Editor/Elements/DataView/Layouts/DataTypes/Components/MultiSelect.js +448 -0
- package/dist/Editor/Elements/DataView/Layouts/DataTypes/MultiSelectType.js +21 -6
- package/dist/Editor/Elements/DataView/Layouts/FilterSort/SortOptions/ChooseSort.js +13 -12
- package/dist/Editor/Elements/DataView/Layouts/FilterSort/SortOptions/index.js +7 -4
- package/dist/Editor/Elements/DataView/Layouts/FilterSort/index.js +7 -5
- package/dist/Editor/Elements/DataView/Layouts/FilterView.js +9 -7
- package/dist/Editor/Elements/DataView/Layouts/Options/AddOptions.js +8 -3
- package/dist/Editor/Elements/DataView/Layouts/Options/AddProperty.js +5 -3
- package/dist/Editor/Elements/DataView/Layouts/Options/AllProperties.js +6 -5
- package/dist/Editor/Elements/DataView/Layouts/Options/ChangeProperty.js +5 -3
- package/dist/Editor/Elements/DataView/Layouts/Options/EditOption.js +9 -7
- package/dist/Editor/Elements/DataView/Layouts/Options/EditProperty.js +15 -12
- package/dist/Editor/Elements/DataView/Layouts/Options/FilterProperty.js +3 -2
- package/dist/Editor/Elements/DataView/Layouts/Options/PropertyList.js +3 -2
- package/dist/Editor/Elements/DataView/Layouts/Options/index.js +23 -6
- package/dist/Editor/Elements/DataView/Layouts/TableView.js +6 -4
- package/dist/Editor/Elements/DataView/Layouts/ViewData.js +8 -4
- package/dist/Editor/Elements/DataView/Layouts/index.js +3 -1
- package/dist/Editor/Elements/DataView/Providers/DataViewProvider.js +5 -2
- package/dist/Editor/Elements/Divider/Divider.js +5 -3
- package/dist/Editor/Elements/Divider/DividerButton.js +6 -2
- package/dist/Editor/Elements/Divider/DividerPopup.js +3 -2
- package/dist/Editor/Elements/Embed/Embed.js +4 -1
- package/dist/Editor/Elements/Embed/EmbedPopup.js +4 -1
- package/dist/Editor/Elements/Embed/Image.js +16 -11
- package/dist/Editor/Elements/Embed/Video.js +10 -7
- package/dist/Editor/Elements/EmbedScript/Code.js +7 -4
- package/dist/Editor/Elements/EmbedScript/EmbedScript.js +6 -2
- package/dist/Editor/Elements/EmbedScript/EmbedScriptPopup.js +8 -5
- package/dist/Editor/Elements/Emoji/EmojiButton.js +6 -2
- package/dist/Editor/Elements/Form/FieldPopup.js +4 -1
- package/dist/Editor/Elements/Form/Form.js +12 -9
- package/dist/Editor/Elements/Form/FormButton.js +6 -2
- package/dist/Editor/Elements/Form/FormPopup.js +3 -2
- package/dist/Editor/Elements/Form/Workflow/FormWorkflow.js +18 -12
- package/dist/Editor/Elements/Form/Workflow/ListWorkflow.js +13 -8
- package/dist/Editor/Elements/Form/Workflow/MoreOptions.js +3 -2
- package/dist/Editor/Elements/Form/Workflow/Styles.js +24 -22
- package/dist/Editor/Elements/Form/Workflow/UserInputs.js +4 -2
- package/dist/Editor/Elements/Form/Workflow/index.js +15 -9
- package/dist/Editor/Elements/FreeGrid/FreeGrid.js +67 -23
- package/dist/Editor/Elements/FreeGrid/FreeGridBox.js +31 -6
- package/dist/Editor/Elements/FreeGrid/FreeGridButton.js +6 -2
- package/dist/Editor/Elements/FreeGrid/FreeGridItem.js +54 -6
- package/dist/Editor/Elements/FreeGrid/Options/AddElement.js +3 -2
- package/dist/Editor/Elements/FreeGrid/Options/More.js +10 -4
- package/dist/Editor/Elements/FreeGrid/styles.js +3 -0
- package/dist/Editor/Elements/Grid/Grid.js +13 -10
- package/dist/Editor/Elements/Grid/GridButton.js +9 -5
- package/dist/Editor/Elements/Grid/GridItem.js +14 -8
- package/dist/Editor/Elements/Grid/GridItemPopup.js +4 -1
- package/dist/Editor/Elements/Grid/GridPopup.js +4 -1
- package/dist/Editor/Elements/Grid/SectionPopup.js +4 -1
- package/dist/Editor/Elements/Link/Link.js +8 -5
- package/dist/Editor/Elements/Link/LinkButton.js +4 -1
- package/dist/Editor/Elements/List/CheckList.js +18 -10
- package/dist/Editor/Elements/NewLine/NewLineButton.js +6 -2
- package/dist/Editor/Elements/PageSettings/PageSettingsButton.js +4 -1
- package/dist/Editor/Elements/PageSettings/PageSettingsPopup.js +4 -1
- package/dist/Editor/Elements/Search/SearchButton.js +7 -4
- package/dist/Editor/Elements/Search/SearchList.js +10 -5
- package/dist/Editor/Elements/Signature/SignatureButton.js +6 -2
- package/dist/Editor/Elements/Signature/SignatureOptions/DrawSignature.js +2 -8
- package/dist/Editor/Elements/Signature/SignatureOptions/TypeSignature.js +6 -2
- package/dist/Editor/Elements/Signature/SignatureOptions/UploadSignature.js +4 -1
- package/dist/Editor/Elements/Signature/SignaturePopup.js +17 -16
- package/dist/Editor/Elements/SimpleText/index.js +14 -5
- package/dist/Editor/Elements/SimpleText/style.js +2 -2
- package/dist/Editor/Elements/Table/DragButton.js +4 -2
- package/dist/Editor/Elements/Table/Table.js +23 -11
- package/dist/Editor/Elements/Table/TablePopup.js +4 -1
- package/dist/Editor/Elements/Table/TableSelector.js +10 -6
- package/dist/Editor/Elements/Table/TableTool.js +8 -4
- package/dist/Editor/Elements/Title/title.js +9 -8
- package/dist/Editor/Elements/TopBanner/TopBannerButton.js +4 -1
- package/dist/Editor/Elements/Variables/VariableButton.js +10 -1
- package/dist/Editor/MiniEditor.js +10 -3
- package/dist/Editor/Styles/EditorStyles.js +5 -5
- package/dist/Editor/Toolbar/Basic/index.js +2 -1
- package/dist/Editor/Toolbar/FormatTools/BlockButton.js +6 -2
- 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 +8 -4
- package/dist/Editor/Toolbar/FormatTools/TextSize.js +10 -13
- package/dist/Editor/Toolbar/Mini/MiniToolbar.js +17 -5
- package/dist/Editor/Toolbar/PopupTool/AddTemplates.js +10 -5
- package/dist/Editor/Toolbar/PopupTool/ButtonTemplatesCard.js +10 -4
- package/dist/Editor/Toolbar/PopupTool/FullViewCard.js +10 -4
- package/dist/Editor/Toolbar/PopupTool/MiniTextFormat/MiniColorPicker.js +9 -3
- package/dist/Editor/Toolbar/PopupTool/MiniTextFormat/SelectAlignment.js +42 -35
- package/dist/Editor/Toolbar/PopupTool/MiniTextFormat/SelectFontSize.js +6 -13
- package/dist/Editor/Toolbar/PopupTool/MiniTextFormat/SelectList.js +58 -51
- package/dist/Editor/Toolbar/PopupTool/MiniTextFormat/SelectSuperSubscript.js +29 -22
- package/dist/Editor/Toolbar/PopupTool/MiniTextFormat/SelectTypography.js +226 -87
- package/dist/Editor/Toolbar/PopupTool/MiniTextFormat/index.js +20 -10
- package/dist/Editor/Toolbar/PopupTool/PopperHeader.js +10 -5
- package/dist/Editor/Toolbar/PopupTool/PopupToolStyle.js +71 -11
- package/dist/Editor/Toolbar/PopupTool/TemplateCard.js +11 -5
- package/dist/Editor/Toolbar/PopupTool/TextFormat.js +122 -42
- package/dist/Editor/Toolbar/PopupTool/ThemeTextFormat.js +436 -0
- package/dist/Editor/Toolbar/PopupTool/index.js +18 -2
- package/dist/Editor/Toolbar/Toolbar.js +20 -10
- package/dist/Editor/Toolbar/toolbarGroups.js +48 -6
- package/dist/Editor/assets/svg/ClearAllRounded.js +31 -0
- package/dist/Editor/assets/svg/ResetIconNew.js +23 -0
- package/dist/Editor/assets/svg/ThemeIcons.js +291 -0
- package/dist/Editor/common/ColorPickerButton.js +39 -14
- package/dist/Editor/common/CustomColorPicker/index.js +131 -0
- package/dist/Editor/common/CustomColorPicker/style.js +53 -0
- package/dist/Editor/common/CustomDialog/index.js +8 -10
- 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 +3 -0
- package/dist/Editor/common/Icon.js +31 -1
- package/dist/Editor/common/ImageSelector/ImageSelector.js +10 -8
- package/dist/Editor/common/ImageSelector/Options/AddLink.js +6 -4
- package/dist/Editor/common/ImageSelector/Styles.js +3 -9
- package/dist/Editor/common/LinkSettings/NavComponents.js +14 -10
- package/dist/Editor/common/LinkSettings/index.js +20 -14
- package/dist/Editor/common/LinkSettings/navOptions.js +1 -1
- package/dist/Editor/common/MUIIcon/index.js +0 -3
- package/dist/Editor/common/MentionsPopup/index.js +6 -2
- package/dist/Editor/common/RnD/ContextMenu/CMenus.js +46 -22
- package/dist/Editor/common/RnD/ContextMenu/index.js +3 -2
- package/dist/Editor/common/RnD/ElementOptions/index.js +7 -2
- package/dist/Editor/common/RnD/ElementSettings/OtherSettings/SaveAsTemplate.js +8 -3
- package/dist/Editor/common/RnD/ElementSettings/OtherSettings/Settings.js +7 -3
- 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 +7 -4
- package/dist/Editor/common/RnD/ElementSettings/Settings/ImageSettings.js +3 -2
- package/dist/Editor/common/RnD/ElementSettings/Settings/TableSettings.js +3 -2
- package/dist/Editor/common/RnD/ElementSettings/Settings/TextSettings.js +6 -2
- package/dist/Editor/common/RnD/ElementSettings/Settings/VideoSettings.js +3 -2
- package/dist/Editor/common/RnD/OptionsPopup/index.js +4 -3
- package/dist/Editor/common/RnD/ShadowElement.js +2 -1
- package/dist/Editor/common/RnD/SwitchViewport/SwitchViewport.js +11 -4
- 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 +73 -9
- package/dist/Editor/common/RnD/Utils/index.js +3 -0
- package/dist/Editor/common/RnD/VirtualElement/BoxHeaderAutoAlignment.js +43 -0
- package/dist/Editor/common/RnD/VirtualElement/ForceAutoAlignment.js +44 -0
- package/dist/Editor/common/RnD/VirtualElement/VirtualTextElement.js +134 -0
- package/dist/Editor/common/RnD/VirtualElement/helper.js +382 -0
- package/dist/Editor/common/RnD/VirtualElement/index.js +187 -103
- package/dist/Editor/common/RnD/VirtualElement/styles.js +155 -7
- package/dist/Editor/common/RnD/VirtualElement/updateAutoProps.js +5 -3
- package/dist/Editor/common/RnD/index.js +69 -13
- package/dist/Editor/common/Section/index.js +7 -4
- package/dist/Editor/common/Shorthands/elements.js +72 -3
- package/dist/Editor/common/SnackBar/index.js +43 -0
- package/dist/Editor/common/StyleBuilder/appHeaderStyle.js +4 -4
- package/dist/Editor/common/StyleBuilder/boxStyle.js +2 -2
- package/dist/Editor/common/StyleBuilder/buttonStyle.js +6 -4
- package/dist/Editor/common/StyleBuilder/dividerStyles.js +2 -2
- package/dist/Editor/common/StyleBuilder/embedVideoStyle.js +6 -6
- package/dist/Editor/common/StyleBuilder/fieldStyle.js +2 -2
- package/dist/Editor/common/StyleBuilder/fieldTypes/alignment.js +13 -9
- package/dist/Editor/common/StyleBuilder/fieldTypes/backgroundImage.js +11 -3
- package/dist/Editor/common/StyleBuilder/fieldTypes/bannerSpacing.js +19 -5
- package/dist/Editor/common/StyleBuilder/fieldTypes/borderRadius.js +22 -10
- package/dist/Editor/common/StyleBuilder/fieldTypes/buttonLink.js +6 -3
- package/dist/Editor/common/StyleBuilder/fieldTypes/card.js +27 -13
- package/dist/Editor/common/StyleBuilder/fieldTypes/color.js +43 -14
- package/dist/Editor/common/StyleBuilder/fieldTypes/elementSize.js +10 -6
- package/dist/Editor/common/StyleBuilder/fieldTypes/fontSize.js +19 -6
- package/dist/Editor/common/StyleBuilder/fieldTypes/gridSize.js +6 -2
- package/dist/Editor/common/StyleBuilder/fieldTypes/icons.js +5 -2
- package/dist/Editor/common/StyleBuilder/fieldTypes/lineSpacing.js +7 -6
- package/dist/Editor/common/StyleBuilder/fieldTypes/menusArray.js +9 -6
- package/dist/Editor/common/StyleBuilder/fieldTypes/metaDataMapping.js +8 -2
- package/dist/Editor/common/StyleBuilder/fieldTypes/saveAsTemplate.js +12 -11
- package/dist/Editor/common/StyleBuilder/fieldTypes/selectBox.js +6 -2
- package/dist/Editor/common/StyleBuilder/fieldTypes/text.js +8 -4
- package/dist/Editor/common/StyleBuilder/fieldTypes/textAlign.js +6 -2
- package/dist/Editor/common/StyleBuilder/fieldTypes/textOptions.js +21 -12
- package/dist/Editor/common/StyleBuilder/formStyle.js +7 -7
- package/dist/Editor/common/StyleBuilder/gridItemStyle.js +6 -6
- package/dist/Editor/common/StyleBuilder/gridStyle.js +5 -5
- package/dist/Editor/common/StyleBuilder/index.js +8 -5
- package/dist/Editor/common/StyleBuilder/pageSettingsStyle.js +5 -7
- package/dist/Editor/common/SwipeableDrawer/index.js +1 -1
- package/dist/Editor/common/Uploader.js +16 -5
- package/dist/Editor/commonStyle.js +68 -57
- package/dist/Editor/helper/index.js +27 -3
- package/dist/Editor/helper/textIndeces.js +58 -0
- package/dist/Editor/helper/theme.js +202 -2
- package/dist/Editor/hooks/useAutoScroll.js +38 -0
- package/dist/Editor/hooks/useEditorTheme.js +153 -0
- package/dist/Editor/hooks/useMouseMove.js +9 -3
- package/dist/Editor/hooks/useThemeValues.js +63 -0
- package/dist/Editor/plugins/withEmbeds.js +1 -1
- package/dist/Editor/plugins/withHTML.js +11 -9
- package/dist/Editor/plugins/withLayout.js +3 -2
- package/dist/Editor/plugins/withLinks.js +10 -0
- package/dist/Editor/plugins/withTable.js +1 -1
- package/dist/Editor/theme/ThemeList.js +50 -173
- package/dist/Editor/theme/index.js +149 -0
- package/dist/Editor/themeSettings/ActiveTheme.js +72 -0
- package/dist/Editor/themeSettings/buttons/index.js +290 -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 +61 -0
- package/dist/Editor/themeSettings/icons.js +60 -0
- package/dist/Editor/themeSettings/index.js +351 -0
- package/dist/Editor/themeSettings/style.js +220 -0
- package/dist/Editor/themeSettingsAI/icons.js +96 -0
- package/dist/Editor/themeSettingsAI/index.js +355 -0
- package/dist/Editor/themeSettingsAI/saveTheme.js +205 -0
- package/dist/Editor/themeSettingsAI/style.js +259 -0
- package/dist/Editor/utils/SlateUtilityFunctions.js +186 -54
- package/dist/Editor/utils/brains.js +1 -2
- package/dist/Editor/utils/draftToSlate.js +3 -2
- package/dist/Editor/utils/font.js +40 -37
- package/dist/Editor/utils/freegrid.js +3 -3
- package/dist/Editor/utils/helper.js +92 -21
- package/package.json +4 -4
@@ -0,0 +1,94 @@
|
|
1
|
+
import Dialog from "@mui/material/Dialog";
|
2
|
+
import DialogTitle from "@mui/material/DialogTitle";
|
3
|
+
import DialogContent from "@mui/material/DialogContent";
|
4
|
+
import DialogActions from "@mui/material/DialogActions";
|
5
|
+
import IconButton from "@mui/material/IconButton";
|
6
|
+
import CloseIcon from "@mui/icons-material/Close";
|
7
|
+
import { Box, Typography, Button } from "@mui/material";
|
8
|
+
import SwipeableDrawer from "../SwipeableDrawer";
|
9
|
+
import customDialogStyles from "./style";
|
10
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
11
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
12
|
+
import { Fragment as _Fragment } from "react/jsx-runtime";
|
13
|
+
function CustomDialog(props) {
|
14
|
+
const {
|
15
|
+
handleClose,
|
16
|
+
customProps,
|
17
|
+
children,
|
18
|
+
onSubmit
|
19
|
+
} = props;
|
20
|
+
const {
|
21
|
+
isMobile
|
22
|
+
} = customProps;
|
23
|
+
const classes = customDialogStyles();
|
24
|
+
if (isMobile) {
|
25
|
+
return /*#__PURE__*/_jsx(Box, {
|
26
|
+
sx: classes.dialogContainer,
|
27
|
+
children: /*#__PURE__*/_jsxs(SwipeableDrawer, {
|
28
|
+
onClose: handleClose,
|
29
|
+
children: [/*#__PURE__*/_jsx(Typography, {
|
30
|
+
variant: "subtitle1",
|
31
|
+
gutterBottom: true,
|
32
|
+
sx: {
|
33
|
+
fontWeight: 600
|
34
|
+
},
|
35
|
+
children: "What do you want to link to?"
|
36
|
+
}), /*#__PURE__*/_jsx(Box, {
|
37
|
+
sx: classes.mobileDialogContent,
|
38
|
+
children: children
|
39
|
+
}), /*#__PURE__*/_jsx(Box, {
|
40
|
+
component: "div",
|
41
|
+
sx: classes.mobileActionBtns,
|
42
|
+
children: /*#__PURE__*/_jsx(ActionsButtons, {
|
43
|
+
classes: classes,
|
44
|
+
onCancel: handleClose,
|
45
|
+
onSave: onSubmit
|
46
|
+
})
|
47
|
+
})]
|
48
|
+
})
|
49
|
+
});
|
50
|
+
} else {
|
51
|
+
return /*#__PURE__*/_jsxs(Dialog, {
|
52
|
+
onClose: handleClose,
|
53
|
+
open: true,
|
54
|
+
sx: classes.dialogContainer,
|
55
|
+
fullWidth: true,
|
56
|
+
maxWidth: "sm",
|
57
|
+
children: [/*#__PURE__*/_jsx(DialogTitle, {
|
58
|
+
children: "What do you want to link to?"
|
59
|
+
}), /*#__PURE__*/_jsx(IconButton, {
|
60
|
+
"aria-label": "close",
|
61
|
+
onClick: handleClose,
|
62
|
+
sx: classes.closeIcon,
|
63
|
+
children: /*#__PURE__*/_jsx(CloseIcon, {})
|
64
|
+
}), /*#__PURE__*/_jsx(DialogContent, {
|
65
|
+
dividers: true,
|
66
|
+
children: children
|
67
|
+
}), /*#__PURE__*/_jsx(DialogActions, {
|
68
|
+
children: /*#__PURE__*/_jsx(ActionsButtons, {
|
69
|
+
classes: classes,
|
70
|
+
onCancel: handleClose,
|
71
|
+
onSave: onSubmit
|
72
|
+
})
|
73
|
+
})]
|
74
|
+
});
|
75
|
+
}
|
76
|
+
}
|
77
|
+
export default CustomDialog;
|
78
|
+
function ActionsButtons({
|
79
|
+
classes,
|
80
|
+
onCancel,
|
81
|
+
onSave
|
82
|
+
}) {
|
83
|
+
return /*#__PURE__*/_jsxs(_Fragment, {
|
84
|
+
children: [/*#__PURE__*/_jsx(Button, {
|
85
|
+
onClick: onCancel,
|
86
|
+
sx: classes.closeBtn,
|
87
|
+
children: "Cancel"
|
88
|
+
}), /*#__PURE__*/_jsx(Button, {
|
89
|
+
onClick: onSave,
|
90
|
+
sx: classes.saveBtn,
|
91
|
+
children: "Save"
|
92
|
+
})]
|
93
|
+
});
|
94
|
+
}
|
@@ -0,0 +1,67 @@
|
|
1
|
+
const styles = () => ({
|
2
|
+
dialogContainer: {
|
3
|
+
"& .MuiDialogContent-root": {
|
4
|
+
padding: "0px 20px"
|
5
|
+
},
|
6
|
+
"& .MuiDialogActions-root": {
|
7
|
+
padding: "10px"
|
8
|
+
},
|
9
|
+
"& .MuiTypography-h6": {
|
10
|
+
fontWeight: 600,
|
11
|
+
fontSize: "16px",
|
12
|
+
paddingRight: "20px"
|
13
|
+
},
|
14
|
+
"& .MuiGrid-container": {
|
15
|
+
marginTop: "0px"
|
16
|
+
},
|
17
|
+
"& .MuiGrid-item": {
|
18
|
+
padding: "14px"
|
19
|
+
}
|
20
|
+
},
|
21
|
+
saveBtn: {
|
22
|
+
color: "#fff",
|
23
|
+
background: "#2563EB",
|
24
|
+
fontSize: "14px",
|
25
|
+
fontWeight: 500,
|
26
|
+
padding: "4px 24px",
|
27
|
+
textTransform: "none",
|
28
|
+
"&:hover": {
|
29
|
+
color: "#fff",
|
30
|
+
background: "#2563EB"
|
31
|
+
}
|
32
|
+
},
|
33
|
+
closeBtn: {
|
34
|
+
backgroundColor: "#F4F6F9",
|
35
|
+
color: "#64748B",
|
36
|
+
fontSize: "14px",
|
37
|
+
fontWeight: 500,
|
38
|
+
padding: "4px 22px",
|
39
|
+
textTransform: "none",
|
40
|
+
border: "1px solid #D8DDE1",
|
41
|
+
"&:hover": {
|
42
|
+
border: "1px solid #64748B"
|
43
|
+
}
|
44
|
+
},
|
45
|
+
closeIcon: {
|
46
|
+
position: "absolute",
|
47
|
+
right: 8,
|
48
|
+
top: 8,
|
49
|
+
color: theme => theme.palette.grey[500]
|
50
|
+
},
|
51
|
+
gridDivider: {
|
52
|
+
borderRight: "1px solid rgba(0, 0, 0, 0.12)"
|
53
|
+
},
|
54
|
+
mobileActionBtns: {
|
55
|
+
display: "flex",
|
56
|
+
justifyContent: "flex-end",
|
57
|
+
gap: "8px",
|
58
|
+
paddingTop: "14px",
|
59
|
+
marginTop: "14px",
|
60
|
+
borderTop: theme => `1px solid ${theme.palette.grey[300]}`
|
61
|
+
},
|
62
|
+
mobileDialogContent: {
|
63
|
+
borderTop: theme => `1px solid ${theme.palette.grey[300]}`,
|
64
|
+
paddingTop: "14px"
|
65
|
+
}
|
66
|
+
});
|
67
|
+
export default styles;
|
@@ -0,0 +1,43 @@
|
|
1
|
+
import { MenuItem, Select } from "@mui/material";
|
2
|
+
import { fontFamilyMap } from "../utils/font";
|
3
|
+
import KeyboardArrowDownRoundedIcon from "@mui/icons-material/KeyboardArrowDownRounded";
|
4
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
5
|
+
function CustomSelect(props) {
|
6
|
+
const {
|
7
|
+
classes,
|
8
|
+
onChange,
|
9
|
+
options = [],
|
10
|
+
value
|
11
|
+
} = props;
|
12
|
+
return /*#__PURE__*/_jsx(Select, {
|
13
|
+
fullWidth: true,
|
14
|
+
value: value,
|
15
|
+
onChange: onChange,
|
16
|
+
className: "editor-dd",
|
17
|
+
style: {
|
18
|
+
fontFamily: fontFamilyMap[value],
|
19
|
+
width: "100%",
|
20
|
+
height: "36px",
|
21
|
+
borderRadius: "10px",
|
22
|
+
fontSize: "14px"
|
23
|
+
},
|
24
|
+
MenuProps: {
|
25
|
+
PaperProps: {
|
26
|
+
sx: classes?.textOptions
|
27
|
+
}
|
28
|
+
},
|
29
|
+
sx: classes.textFormatSelect,
|
30
|
+
IconComponent: KeyboardArrowDownRoundedIcon,
|
31
|
+
children: options.map((option, i) => {
|
32
|
+
return /*#__PURE__*/_jsx(MenuItem, {
|
33
|
+
value: option.value,
|
34
|
+
style: {
|
35
|
+
fontFamily: option.text || "inherit"
|
36
|
+
},
|
37
|
+
sx: classes.textFormatSelectOptions,
|
38
|
+
children: option?.label || option?.text
|
39
|
+
}, i);
|
40
|
+
})
|
41
|
+
});
|
42
|
+
}
|
43
|
+
export default CustomSelect;
|
@@ -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", "grid"];
|
10
|
+
const DRAGGABLE_TYPES = ["paragraph", "headingOne", "headingTwo", "headingThree", "headingFour", "headingFive", "headingSix", "paragraphOne", "paragraphTwo", "paragraphThree", "grid"];
|
11
11
|
const DragHandleStyle = fromPopper => {
|
12
12
|
const handleDragStyle = fromPopper ? {
|
13
13
|
position: "absolute",
|
@@ -18,6 +18,8 @@ const FontLoader = props => {
|
|
18
18
|
const loadFontsInBatches = (families, batchSize = 5, maxRetries = 3) => {
|
19
19
|
let currentIndex = 0;
|
20
20
|
let retryCount = 0;
|
21
|
+
// let hideLoaderOn = 30;
|
22
|
+
|
21
23
|
const loadNextBatch = () => {
|
22
24
|
try {
|
23
25
|
if (currentIndex >= families?.length) {
|
@@ -78,6 +80,7 @@ const FontLoader = props => {
|
|
78
80
|
// console.log(err);
|
79
81
|
setLoading(false);
|
80
82
|
});
|
83
|
+
// setLoading(true);
|
81
84
|
} else {
|
82
85
|
function correctFontArray(fontString) {
|
83
86
|
let fontsArray = fontString?.split(",");
|
@@ -45,8 +45,19 @@ import TrashIcon from "../assets/svg/TrashCanIcon";
|
|
45
45
|
import DataTableIcon from "../assets/svg/DataTableIcon";
|
46
46
|
import ChervDown from "../assets/svg/ChervDown";
|
47
47
|
import ChervUp from "../assets/svg/ChervUp";
|
48
|
+
import ResetIconNew from "../assets/svg/ResetIconNew";
|
48
49
|
import { jsx as _jsx } from "react/jsx-runtime";
|
49
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
|
+
};
|
50
61
|
const iconList = {
|
51
62
|
fontFamily: /*#__PURE__*/_jsx(FontFamilyIcon, {
|
52
63
|
size: 20
|
@@ -79,6 +90,24 @@ const iconList = {
|
|
79
90
|
size: 18,
|
80
91
|
fill: "#64748B"
|
81
92
|
}),
|
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
|
+
}),
|
82
111
|
blockquote: /*#__PURE__*/_jsx(MdFormatQuote, {
|
83
112
|
size: 20,
|
84
113
|
fill: "#64748B",
|
@@ -329,7 +358,8 @@ const iconList = {
|
|
329
358
|
stroke: "#64748B",
|
330
359
|
color: "#64748B"
|
331
360
|
}
|
332
|
-
})
|
361
|
+
}),
|
362
|
+
resetIconNew: /*#__PURE__*/_jsx(ResetIconNew, {})
|
333
363
|
};
|
334
364
|
export const icons = {
|
335
365
|
...iconList
|
@@ -31,8 +31,10 @@ const ImageSelector = props => {
|
|
31
31
|
onClose,
|
32
32
|
open,
|
33
33
|
onSelectImage,
|
34
|
-
title
|
34
|
+
title,
|
35
|
+
customProps
|
35
36
|
} = props;
|
37
|
+
const translation = customProps?.translation;
|
36
38
|
const [tabValue, setTabValue] = useState(title === "Image" ? "choose" : "addLink");
|
37
39
|
const [image, setImage] = useState(value || "");
|
38
40
|
const handleTabChange = (e, newValue) => {
|
@@ -59,9 +61,9 @@ const ImageSelector = props => {
|
|
59
61
|
justifyContent: "space-between",
|
60
62
|
alignItems: "center"
|
61
63
|
},
|
62
|
-
children: [/*#__PURE__*/
|
64
|
+
children: [/*#__PURE__*/_jsx(Typography, {
|
63
65
|
sx: classes.titleTypo,
|
64
|
-
children:
|
66
|
+
children: `${translation("addText")} ${translation(title)}`
|
65
67
|
}), /*#__PURE__*/_jsx(IconButton, {
|
66
68
|
sx: {
|
67
69
|
padding: "0px"
|
@@ -98,14 +100,14 @@ const ImageSelector = props => {
|
|
98
100
|
}),
|
99
101
|
iconPosition: "start",
|
100
102
|
value: "upload",
|
101
|
-
label:
|
103
|
+
label: `${translation("Upload")} ${translation(title)}`
|
102
104
|
}), /*#__PURE__*/_jsx(Tab, {
|
103
105
|
className: `${isActive("choose")} ${TAB_SHOW[title].indexOf("choose") === -1 ? "hidden" : ""}`,
|
104
106
|
sx: classes.tab,
|
105
107
|
icon: /*#__PURE__*/_jsx(ImageElementIcon, {}),
|
106
108
|
iconPosition: "start",
|
107
109
|
value: "choose",
|
108
|
-
label:
|
110
|
+
label: `${translation("Choose")} ${translation(title)}`
|
109
111
|
}), /*#__PURE__*/_jsx(Tab, {
|
110
112
|
className: `${isActive("addLink")} ${TAB_SHOW[title].indexOf("addLink") === -1 ? "hidden" : ""}`,
|
111
113
|
sx: classes.tab,
|
@@ -117,7 +119,7 @@ const ImageSelector = props => {
|
|
117
119
|
}),
|
118
120
|
iconPosition: "start",
|
119
121
|
value: "addLink",
|
120
|
-
label:
|
122
|
+
label: `${translation("addText")} ${translation(title)} ${translation("Link")}`
|
121
123
|
})]
|
122
124
|
})
|
123
125
|
}), /*#__PURE__*/_jsx(Grid, {
|
@@ -144,13 +146,13 @@ const ImageSelector = props => {
|
|
144
146
|
onClick: onClose,
|
145
147
|
className: "secondaryBtn",
|
146
148
|
sx: classes.closeBtn,
|
147
|
-
children: "Cancel"
|
149
|
+
children: translation("Cancel")
|
148
150
|
}), /*#__PURE__*/_jsx(Button, {
|
149
151
|
disabled: !image,
|
150
152
|
onClick: onSave,
|
151
153
|
className: `primaryBtn ${!image ? "disabled" : ""}`,
|
152
154
|
sx: classes.saveBtn,
|
153
|
-
children: "Save"
|
155
|
+
children: translation("Save")
|
154
156
|
})]
|
155
157
|
})]
|
156
158
|
}) : null;
|
@@ -6,8 +6,10 @@ const AddLink = props => {
|
|
6
6
|
const {
|
7
7
|
classes,
|
8
8
|
onUploaded,
|
9
|
-
title
|
9
|
+
title,
|
10
|
+
customProps
|
10
11
|
} = props;
|
12
|
+
const translation = customProps?.translation;
|
11
13
|
const [url, setUrl] = useState("");
|
12
14
|
const handleChange = e => {
|
13
15
|
setUrl(e.target.value);
|
@@ -23,16 +25,16 @@ const AddLink = props => {
|
|
23
25
|
paddingTop: "8px"
|
24
26
|
},
|
25
27
|
children: /*#__PURE__*/_jsx(TextField, {
|
26
|
-
placeholder:
|
28
|
+
placeholder: `${translation("Add")} ${translation(title)} ${translation("URL")}`,
|
27
29
|
fullWidth: true,
|
28
30
|
size: "small",
|
29
31
|
value: url,
|
30
32
|
onChange: handleChange,
|
31
|
-
helperText: "
|
33
|
+
helperText: translation("addLinkHelperText"),
|
32
34
|
sx: classes.addLinkField,
|
33
35
|
InputProps: {
|
34
36
|
endAdornment: /*#__PURE__*/_jsx(Tooltip, {
|
35
|
-
title:
|
37
|
+
title: `${translation("Add")} ${translation(title)} ${translation("URL")}`,
|
36
38
|
arrow: true,
|
37
39
|
children: /*#__PURE__*/_jsx(IconButton, {
|
38
40
|
sx: classes.addLinkBtn,
|
@@ -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,12 +104,6 @@ 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
|
-
},
|
113
107
|
"&::-webkit-scrollbar-thumb": {
|
114
108
|
background: `${theme?.palette?.editor?.brainPopupScroll} !important`
|
115
109
|
},
|
@@ -118,10 +112,10 @@ const ImageSelectorStyles = theme => ({
|
|
118
112
|
}
|
119
113
|
},
|
120
114
|
"& .MuiImageList-root": {
|
121
|
-
margin:
|
115
|
+
margin: "0px"
|
122
116
|
},
|
123
117
|
"& .MuiDialogContent-root": {
|
124
|
-
padding:
|
118
|
+
padding: "20px 24px 5px 24px"
|
125
119
|
}
|
126
120
|
},
|
127
121
|
titleTypo: {
|
@@ -24,7 +24,8 @@ const OpenInNewTab = props => {
|
|
24
24
|
const {
|
25
25
|
nav,
|
26
26
|
openInNewTab,
|
27
|
-
onNewTabChange
|
27
|
+
onNewTabChange,
|
28
|
+
translation
|
28
29
|
} = props;
|
29
30
|
return nav?.showOpenInNewTab ? /*#__PURE__*/_jsx(FormControlLabel, {
|
30
31
|
className: "ccheckbox-primary",
|
@@ -34,7 +35,7 @@ const OpenInNewTab = props => {
|
|
34
35
|
}),
|
35
36
|
label: /*#__PURE__*/_jsx(Typography, {
|
36
37
|
variant: "body2",
|
37
|
-
children: "Open in new tab"
|
38
|
+
children: translation("Open in new tab")
|
38
39
|
})
|
39
40
|
}) : null;
|
40
41
|
};
|
@@ -56,7 +57,8 @@ export const SelectPage = props => {
|
|
56
57
|
const {
|
57
58
|
value,
|
58
59
|
onChange,
|
59
|
-
services
|
60
|
+
services,
|
61
|
+
translation
|
60
62
|
} = props;
|
61
63
|
const [pages, setPages] = useState([]);
|
62
64
|
const editor = useSlate();
|
@@ -112,7 +114,7 @@ export const SelectPage = props => {
|
|
112
114
|
children: [/*#__PURE__*/_jsx(FreeSoloCreateOption, {
|
113
115
|
label: page?.label,
|
114
116
|
setValue: val => onChange(val?.value || ""),
|
115
|
-
placeholder: "Select Page",
|
117
|
+
placeholder: translation("Select Page"),
|
116
118
|
options: pages,
|
117
119
|
disabled: isCurrentPage
|
118
120
|
}), /*#__PURE__*/_jsx(FreeSoloCreateOption, {
|
@@ -124,7 +126,7 @@ export const SelectPage = props => {
|
|
124
126
|
}
|
125
127
|
onChange(url);
|
126
128
|
},
|
127
|
-
placeholder: "Select Section or anchor",
|
129
|
+
placeholder: translation("Select Section or anchor"),
|
128
130
|
options: page?.sections?.map(p => ({
|
129
131
|
label: p,
|
130
132
|
value: p
|
@@ -136,12 +138,13 @@ export const SelectPage = props => {
|
|
136
138
|
};
|
137
139
|
export const Trigger = props => {
|
138
140
|
const {
|
139
|
-
nav
|
141
|
+
nav,
|
142
|
+
translation
|
140
143
|
} = props;
|
141
|
-
return /*#__PURE__*/
|
144
|
+
return /*#__PURE__*/_jsx(Typography, {
|
142
145
|
variant: "subtitle1",
|
143
146
|
gutterBottom: true,
|
144
|
-
children:
|
147
|
+
children: `${translation("Choosing this will trigger the")} ${translation(nav.type)} ${translation("step")}`
|
145
148
|
});
|
146
149
|
};
|
147
150
|
const scrollToOptions = [{
|
@@ -155,6 +158,7 @@ export const ScrollTopBottom = props => {
|
|
155
158
|
const {
|
156
159
|
value,
|
157
160
|
onChange,
|
161
|
+
translation,
|
158
162
|
classes
|
159
163
|
} = props;
|
160
164
|
return /*#__PURE__*/_jsxs(_Fragment, {
|
@@ -163,7 +167,7 @@ export const ScrollTopBottom = props => {
|
|
163
167
|
sx: {
|
164
168
|
paddingBottom: "4px"
|
165
169
|
},
|
166
|
-
children: "Choose Top/Bottom of page"
|
170
|
+
children: translation("Choose Top/Bottom of page")
|
167
171
|
}), /*#__PURE__*/_jsx(Select, {
|
168
172
|
size: "small",
|
169
173
|
fullWidth: true,
|
@@ -177,7 +181,7 @@ export const ScrollTopBottom = props => {
|
|
177
181
|
value: option.value,
|
178
182
|
children: /*#__PURE__*/_jsx(Typography, {
|
179
183
|
variant: "body2",
|
180
|
-
children: option.label
|
184
|
+
children: translation(option.label)
|
181
185
|
})
|
182
186
|
}, i);
|
183
187
|
})
|
@@ -44,7 +44,8 @@ export default function LinkSettings(props) {
|
|
44
44
|
} = props;
|
45
45
|
const {
|
46
46
|
isMobile,
|
47
|
-
tagName
|
47
|
+
tagName,
|
48
|
+
translation
|
48
49
|
} = customProps;
|
49
50
|
const navOptions = getNavOptions(customProps.hideTools, tagName, allowTrigger);
|
50
51
|
const classes = LinkSettingsStyles(theme);
|
@@ -72,7 +73,7 @@ export default function LinkSettings(props) {
|
|
72
73
|
sx: {
|
73
74
|
fontWeight: 600
|
74
75
|
},
|
75
|
-
children: "
|
76
|
+
children: translation("dialogueTitle")
|
76
77
|
}), /*#__PURE__*/_jsx(Select, {
|
77
78
|
size: "small",
|
78
79
|
fullWidth: true,
|
@@ -94,7 +95,7 @@ export default function LinkSettings(props) {
|
|
94
95
|
value: navOption.value,
|
95
96
|
children: /*#__PURE__*/_jsx(Typography, {
|
96
97
|
variant: "body2",
|
97
|
-
children: navOption.label
|
98
|
+
children: translation(navOption.label)
|
98
99
|
})
|
99
100
|
}, i);
|
100
101
|
})
|
@@ -103,14 +104,15 @@ export default function LinkSettings(props) {
|
|
103
104
|
paddingTop: "14px"
|
104
105
|
},
|
105
106
|
children: NavSettings && /*#__PURE__*/_jsx(NavSettings, {
|
106
|
-
placeholder: nav?.placeholder,
|
107
|
+
placeholder: translation(nav?.placeholder),
|
107
108
|
nav: nav,
|
108
109
|
onChange: onChange,
|
109
110
|
value: navValue,
|
110
111
|
openInNewTab: openInNewTab,
|
111
112
|
onNewTabChange: () => setOpenInNewTab(prev => !prev),
|
112
113
|
services: customProps.services,
|
113
|
-
classes: classes
|
114
|
+
classes: classes,
|
115
|
+
translation: translation
|
114
116
|
})
|
115
117
|
}), /*#__PURE__*/_jsx(Box, {
|
116
118
|
component: "div",
|
@@ -118,7 +120,8 @@ export default function LinkSettings(props) {
|
|
118
120
|
children: /*#__PURE__*/_jsx(ActionsButtons, {
|
119
121
|
classes: classes,
|
120
122
|
onCancel: handleClose,
|
121
|
-
onSave: onSubmit
|
123
|
+
onSave: onSubmit,
|
124
|
+
translation: translation
|
122
125
|
})
|
123
126
|
})]
|
124
127
|
});
|
@@ -130,7 +133,7 @@ export default function LinkSettings(props) {
|
|
130
133
|
fullWidth: true,
|
131
134
|
maxWidth: "sm",
|
132
135
|
children: [/*#__PURE__*/_jsx(DialogTitle, {
|
133
|
-
children: "
|
136
|
+
children: translation("dialogueTitle")
|
134
137
|
}), /*#__PURE__*/_jsx(IconButton, {
|
135
138
|
"aria-label": "close",
|
136
139
|
onClick: handleClose,
|
@@ -152,7 +155,7 @@ export default function LinkSettings(props) {
|
|
152
155
|
return /*#__PURE__*/_jsx(FormControlLabel, {
|
153
156
|
value: navOption.value,
|
154
157
|
control: /*#__PURE__*/_jsx(Radio, {}),
|
155
|
-
label: navOption.label,
|
158
|
+
label: translation(navOption.label),
|
156
159
|
onChange: () => {
|
157
160
|
setNav(navOption);
|
158
161
|
setNavValue("");
|
@@ -165,14 +168,15 @@ export default function LinkSettings(props) {
|
|
165
168
|
item: true,
|
166
169
|
xs: 6,
|
167
170
|
children: NavSettings && /*#__PURE__*/_jsx(NavSettings, {
|
168
|
-
placeholder: nav?.placeholder,
|
171
|
+
placeholder: translation(nav?.placeholder),
|
169
172
|
nav: nav,
|
170
173
|
onChange: onChange,
|
171
174
|
value: navValue,
|
172
175
|
openInNewTab: openInNewTab,
|
173
176
|
onNewTabChange: () => setOpenInNewTab(prev => !prev),
|
174
177
|
services: customProps.services,
|
175
|
-
classes: classes
|
178
|
+
classes: classes,
|
179
|
+
translation: translation
|
176
180
|
})
|
177
181
|
})]
|
178
182
|
})
|
@@ -180,7 +184,8 @@ export default function LinkSettings(props) {
|
|
180
184
|
children: /*#__PURE__*/_jsx(ActionsButtons, {
|
181
185
|
classes: classes,
|
182
186
|
onCancel: handleClose,
|
183
|
-
onSave: onSubmit
|
187
|
+
onSave: onSubmit,
|
188
|
+
translation: translation
|
184
189
|
})
|
185
190
|
})]
|
186
191
|
});
|
@@ -189,17 +194,18 @@ export default function LinkSettings(props) {
|
|
189
194
|
function ActionsButtons({
|
190
195
|
classes,
|
191
196
|
onCancel,
|
192
|
-
onSave
|
197
|
+
onSave,
|
198
|
+
translation
|
193
199
|
}) {
|
194
200
|
return /*#__PURE__*/_jsxs(_Fragment, {
|
195
201
|
children: [/*#__PURE__*/_jsx(Button, {
|
196
202
|
onClick: onCancel,
|
197
203
|
sx: classes.closeBtn,
|
198
|
-
children: "Cancel"
|
204
|
+
children: translation("Cancel")
|
199
205
|
}), /*#__PURE__*/_jsx(Button, {
|
200
206
|
onClick: onSave,
|
201
207
|
sx: classes.saveBtn,
|
202
|
-
children: "Save"
|
208
|
+
children: translation("Save")
|
203
209
|
})]
|
204
210
|
});
|
205
211
|
}
|
@@ -13,7 +13,7 @@ export const getNavOptions = (hideTools = [], tagName = "", allowTrigger) => {
|
|
13
13
|
}, {
|
14
14
|
label: "Web Address",
|
15
15
|
value: "webAddress",
|
16
|
-
placeholder: "
|
16
|
+
placeholder: "httpsText",
|
17
17
|
showOpenInNewTab: true
|
18
18
|
}, {
|
19
19
|
label: "Select Page and Section",
|
@@ -24,8 +24,12 @@ const MentionsPopup = /*#__PURE__*/forwardRef((props, ref) => {
|
|
24
24
|
mentions,
|
25
25
|
setMentions,
|
26
26
|
type,
|
27
|
-
otherProps
|
27
|
+
otherProps,
|
28
|
+
customProps
|
28
29
|
} = props;
|
30
|
+
const {
|
31
|
+
translation
|
32
|
+
} = customProps;
|
29
33
|
const classes = usePopupStyle(theme);
|
30
34
|
const papperRef = useRef(null);
|
31
35
|
const buttonRef = useRef(null);
|
@@ -94,7 +98,7 @@ const MentionsPopup = /*#__PURE__*/forwardRef((props, ref) => {
|
|
94
98
|
sx: classes.groupHeader,
|
95
99
|
component: "div",
|
96
100
|
variant: "h6",
|
97
|
-
children: prevGroup
|
101
|
+
children: translation(prevGroup)
|
98
102
|
});
|
99
103
|
} else {
|
100
104
|
return null;
|