@flozy/editor 9.3.0 → 9.3.2
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 +10 -45
- package/dist/Editor/CommonEditor.js +20 -126
- package/dist/Editor/DialogWrapper.js +25 -31
- package/dist/Editor/Editor.css +7 -11
- package/dist/Editor/Elements/AI/AIInput.js +3 -5
- package/dist/Editor/Elements/AI/CustomSelect.js +5 -9
- package/dist/Editor/Elements/AI/PopoverAIInput.js +2 -4
- package/dist/Editor/Elements/Accordion/Accordion.js +3 -4
- package/dist/Editor/Elements/Accordion/AccordionBtnPopup.js +1 -4
- package/dist/Editor/Elements/Accordion/AccordionButton.js +2 -6
- package/dist/Editor/Elements/Accordion/AccordionTitlePopup.js +1 -4
- package/dist/Editor/Elements/AppHeader/AppHeader.js +3 -3
- package/dist/Editor/Elements/AppHeader/AppHeaderButton.js +2 -6
- package/dist/Editor/Elements/AppHeader/AppHeaderPopup.js +1 -4
- package/dist/Editor/Elements/Attachments/AttachmentsButton.js +1 -4
- package/dist/Editor/Elements/Button/ButtonPopup.js +1 -4
- package/dist/Editor/Elements/Button/ButtonToolIcon.js +2 -6
- package/dist/Editor/Elements/Button/EditorButton.js +14 -31
- package/dist/Editor/Elements/Carousel/Carousel.js +4 -5
- package/dist/Editor/Elements/Carousel/CarouselButton.js +2 -6
- package/dist/Editor/Elements/Carousel/CarouselItem.js +2 -3
- package/dist/Editor/Elements/ChipText/ChipTextPopup.js +1 -4
- package/dist/Editor/Elements/CodeToText/CodeToText.js +4 -5
- package/dist/Editor/Elements/CodeToText/HtmlContextMenu.js +2 -6
- package/dist/Editor/Elements/Color Picker/ColorButtons.js +12 -57
- package/dist/Editor/Elements/Color Picker/ColorPicker.css +1 -25
- package/dist/Editor/Elements/Color Picker/ColorPicker.js +4 -5
- package/dist/Editor/Elements/Color Picker/Styles.js +1 -1
- package/dist/Editor/Elements/Colorbox/ColorboxButton.js +2 -6
- package/dist/Editor/Elements/DataView/DataView.js +2 -5
- package/dist/Editor/Elements/DataView/DataViewButton.js +2 -6
- package/dist/Editor/Elements/DataView/Layouts/FilterSort/SortOptions/ChooseSort.js +12 -13
- package/dist/Editor/Elements/DataView/Layouts/FilterSort/SortOptions/index.js +4 -7
- package/dist/Editor/Elements/DataView/Layouts/FilterSort/index.js +5 -7
- package/dist/Editor/Elements/DataView/Layouts/FilterView.js +7 -9
- package/dist/Editor/Elements/DataView/Layouts/Options/AddOptions.js +2 -3
- package/dist/Editor/Elements/DataView/Layouts/Options/AddProperty.js +3 -5
- package/dist/Editor/Elements/DataView/Layouts/Options/AllProperties.js +5 -6
- package/dist/Editor/Elements/DataView/Layouts/Options/ChangeProperty.js +3 -5
- package/dist/Editor/Elements/DataView/Layouts/Options/EditOption.js +6 -7
- package/dist/Editor/Elements/DataView/Layouts/Options/EditProperty.js +12 -15
- package/dist/Editor/Elements/DataView/Layouts/Options/FilterProperty.js +2 -3
- package/dist/Editor/Elements/DataView/Layouts/Options/PropertyList.js +2 -3
- package/dist/Editor/Elements/DataView/Layouts/Options/index.js +6 -12
- package/dist/Editor/Elements/DataView/Layouts/TableView.js +4 -6
- package/dist/Editor/Elements/DataView/Layouts/index.js +1 -3
- package/dist/Editor/Elements/DataView/Providers/DataViewProvider.js +2 -5
- package/dist/Editor/Elements/Divider/Divider.js +3 -5
- package/dist/Editor/Elements/Divider/DividerButton.js +2 -6
- package/dist/Editor/Elements/Divider/DividerPopup.js +2 -3
- package/dist/Editor/Elements/Embed/Embed.js +1 -4
- package/dist/Editor/Elements/Embed/EmbedPopup.js +1 -4
- package/dist/Editor/Elements/Embed/Image.js +11 -16
- package/dist/Editor/Elements/Embed/Video.js +7 -10
- package/dist/Editor/Elements/EmbedScript/Code.js +4 -7
- package/dist/Editor/Elements/EmbedScript/EmbedScript.js +2 -6
- package/dist/Editor/Elements/EmbedScript/EmbedScriptPopup.js +5 -8
- package/dist/Editor/Elements/Emoji/EmojiButton.js +2 -6
- package/dist/Editor/Elements/Form/FieldPopup.js +1 -4
- package/dist/Editor/Elements/Form/Form.js +9 -12
- package/dist/Editor/Elements/Form/FormButton.js +2 -6
- package/dist/Editor/Elements/Form/FormPopup.js +2 -3
- package/dist/Editor/Elements/Form/Workflow/FormWorkflow.js +12 -18
- package/dist/Editor/Elements/Form/Workflow/ListWorkflow.js +8 -13
- package/dist/Editor/Elements/Form/Workflow/MoreOptions.js +2 -3
- package/dist/Editor/Elements/Form/Workflow/UserInputs.js +2 -4
- package/dist/Editor/Elements/Form/Workflow/index.js +9 -15
- package/dist/Editor/Elements/FreeGrid/FreeGrid.js +18 -21
- package/dist/Editor/Elements/FreeGrid/FreeGridBox.js +2 -6
- package/dist/Editor/Elements/FreeGrid/FreeGridButton.js +2 -6
- package/dist/Editor/Elements/FreeGrid/FreeGridItem.js +3 -8
- package/dist/Editor/Elements/FreeGrid/Options/AddElement.js +2 -3
- package/dist/Editor/Elements/FreeGrid/Options/More.js +3 -4
- package/dist/Editor/Elements/FreeGrid/styles.js +0 -3
- package/dist/Editor/Elements/Grid/Grid.js +10 -13
- package/dist/Editor/Elements/Grid/GridButton.js +5 -9
- package/dist/Editor/Elements/Grid/GridItem.js +8 -14
- package/dist/Editor/Elements/Grid/GridItemPopup.js +1 -4
- package/dist/Editor/Elements/Grid/GridPopup.js +1 -4
- package/dist/Editor/Elements/Grid/SectionPopup.js +1 -4
- package/dist/Editor/Elements/Link/Link.js +7 -14
- package/dist/Editor/Elements/Link/LinkButton.js +1 -4
- package/dist/Editor/Elements/List/CheckList.js +9 -14
- package/dist/Editor/Elements/NewLine/NewLineButton.js +2 -6
- package/dist/Editor/Elements/PageSettings/PageSettingsButton.js +5 -16
- package/dist/Editor/Elements/PageSettings/PageSettingsPopup.js +1 -4
- package/dist/Editor/Elements/Search/SearchButton.js +3 -6
- package/dist/Editor/Elements/Search/SearchList.js +3 -7
- package/dist/Editor/Elements/Signature/SignatureButton.js +2 -6
- package/dist/Editor/Elements/Signature/SignatureOptions/TypeSignature.js +2 -6
- package/dist/Editor/Elements/Signature/SignatureOptions/UploadSignature.js +1 -4
- package/dist/Editor/Elements/Signature/SignaturePopup.js +16 -17
- package/dist/Editor/Elements/SimpleText/index.js +4 -5
- package/dist/Editor/Elements/SimpleText/style.js +2 -2
- package/dist/Editor/Elements/Table/DragButton.js +2 -4
- package/dist/Editor/Elements/Table/Table.js +25 -48
- package/dist/Editor/Elements/Table/TableCell.js +27 -6
- package/dist/Editor/Elements/Table/TablePopup.js +1 -4
- package/dist/Editor/Elements/Table/TableSelector.js +6 -10
- package/dist/Editor/Elements/Table/TableTool.js +4 -8
- package/dist/Editor/Elements/Title/title.js +0 -10
- package/dist/Editor/Elements/TopBanner/TopBannerButton.js +1 -4
- package/dist/Editor/Elements/Variables/VariableButton.js +1 -10
- package/dist/Editor/MiniEditor.js +3 -9
- package/dist/Editor/Styles/EditorStyles.js +5 -5
- package/dist/Editor/Toolbar/Basic/index.js +1 -2
- package/dist/Editor/Toolbar/FormatTools/BlockButton.js +2 -6
- 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 +4 -8
- package/dist/Editor/Toolbar/FormatTools/TextSize.js +13 -7
- package/dist/Editor/Toolbar/Mini/MiniToolbar.js +15 -20
- package/dist/Editor/Toolbar/PopupTool/AddTemplates.js +5 -10
- package/dist/Editor/Toolbar/PopupTool/ButtonTemplatesCard.js +4 -10
- package/dist/Editor/Toolbar/PopupTool/FullViewCard.js +4 -10
- package/dist/Editor/Toolbar/PopupTool/MiniTextFormat/MiniColorPicker.js +2 -6
- package/dist/Editor/Toolbar/PopupTool/MiniTextFormat/SelectAlignment.js +35 -42
- package/dist/Editor/Toolbar/PopupTool/MiniTextFormat/SelectFontSize.js +13 -6
- package/dist/Editor/Toolbar/PopupTool/MiniTextFormat/SelectList.js +51 -58
- package/dist/Editor/Toolbar/PopupTool/MiniTextFormat/SelectSuperSubscript.js +22 -29
- package/dist/Editor/Toolbar/PopupTool/MiniTextFormat/SelectTypography.js +87 -226
- package/dist/Editor/Toolbar/PopupTool/MiniTextFormat/index.js +7 -15
- package/dist/Editor/Toolbar/PopupTool/PopperHeader.js +4 -8
- package/dist/Editor/Toolbar/PopupTool/PopupToolStyle.js +9 -16
- package/dist/Editor/Toolbar/PopupTool/TemplateCard.js +5 -11
- package/dist/Editor/Toolbar/PopupTool/TextFormat.js +41 -120
- package/dist/Editor/Toolbar/PopupTool/index.js +8 -3
- package/dist/Editor/Toolbar/Toolbar.js +10 -20
- package/dist/Editor/Toolbar/toolbarGroups.js +6 -48
- package/dist/Editor/assets/svg/CalenderIconTick.js +0 -1
- package/dist/Editor/common/ColorPickerButton.js +9 -35
- package/dist/Editor/common/CustomDialog/index.js +10 -8
- 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 +8 -10
- package/dist/Editor/common/ImageSelector/Options/AddLink.js +4 -6
- package/dist/Editor/common/ImageSelector/Styles.js +9 -3
- package/dist/Editor/common/LinkSettings/NavComponents.js +10 -14
- package/dist/Editor/common/LinkSettings/index.js +14 -20
- package/dist/Editor/common/LinkSettings/navOptions.js +1 -1
- package/dist/Editor/common/MentionsPopup/Styles.js +68 -106
- package/dist/Editor/common/MentionsPopup/index.js +4 -8
- package/dist/Editor/common/RnD/ContextMenu/CMenus.js +22 -22
- package/dist/Editor/common/RnD/ContextMenu/index.js +2 -3
- package/dist/Editor/common/RnD/ElementOptions/index.js +2 -7
- package/dist/Editor/common/RnD/ElementSettings/OtherSettings/SaveAsTemplate.js +3 -8
- package/dist/Editor/common/RnD/ElementSettings/OtherSettings/Settings.js +3 -7
- 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 +4 -7
- 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 +2 -4
- package/dist/Editor/common/RnD/ElementSettings/Settings/VideoSettings.js +2 -3
- package/dist/Editor/common/RnD/OptionsPopup/index.js +3 -4
- package/dist/Editor/common/RnD/SwitchViewport/SwitchViewport.js +4 -11
- package/dist/Editor/common/RnD/Theme/ViewportStimulator.js +8 -20
- package/dist/Editor/common/RnD/Utils/index.js +0 -45
- package/dist/Editor/common/RnD/VirtualElement/index.js +2 -1
- package/dist/Editor/common/RnD/index.js +7 -34
- package/dist/Editor/common/Section/index.js +4 -7
- package/dist/Editor/common/Shorthands/elements.js +10 -93
- 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 +4 -6
- 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 +9 -13
- package/dist/Editor/common/StyleBuilder/fieldTypes/backgroundImage.js +3 -11
- package/dist/Editor/common/StyleBuilder/fieldTypes/bannerSpacing.js +5 -19
- package/dist/Editor/common/StyleBuilder/fieldTypes/borderRadius.js +10 -22
- package/dist/Editor/common/StyleBuilder/fieldTypes/buttonLink.js +3 -6
- package/dist/Editor/common/StyleBuilder/fieldTypes/card.js +13 -27
- package/dist/Editor/common/StyleBuilder/fieldTypes/color.js +14 -41
- package/dist/Editor/common/StyleBuilder/fieldTypes/elementSize.js +6 -10
- package/dist/Editor/common/StyleBuilder/fieldTypes/fontSize.js +6 -19
- package/dist/Editor/common/StyleBuilder/fieldTypes/gridSize.js +2 -6
- package/dist/Editor/common/StyleBuilder/fieldTypes/icons.js +2 -5
- package/dist/Editor/common/StyleBuilder/fieldTypes/menusArray.js +6 -9
- package/dist/Editor/common/StyleBuilder/fieldTypes/metaDataMapping.js +2 -8
- package/dist/Editor/common/StyleBuilder/fieldTypes/saveAsTemplate.js +11 -12
- package/dist/Editor/common/StyleBuilder/fieldTypes/selectBox.js +2 -6
- package/dist/Editor/common/StyleBuilder/fieldTypes/text.js +4 -8
- package/dist/Editor/common/StyleBuilder/fieldTypes/textAlign.js +2 -6
- package/dist/Editor/common/StyleBuilder/fieldTypes/textOptions.js +12 -21
- 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 +5 -8
- package/dist/Editor/common/StyleBuilder/pageSettingsStyle.js +7 -5
- package/dist/Editor/common/Uploader.js +5 -16
- package/dist/Editor/commonStyle.js +65 -55
- package/dist/Editor/helper/index.js +12 -8
- package/dist/Editor/helper/theme.js +2 -200
- package/dist/Editor/hooks/useDrag.js +10 -16
- package/dist/Editor/hooks/useEditorScroll.js +5 -10
- package/dist/Editor/hooks/useMouseMove.js +13 -25
- package/dist/Editor/hooks/useTable.js +1 -1
- package/dist/Editor/plugins/withEmbeds.js +1 -1
- package/dist/Editor/plugins/withHTML.js +13 -18
- package/dist/Editor/plugins/withLayout.js +2 -3
- package/dist/Editor/plugins/withTable.js +1 -1
- package/dist/Editor/theme/ThemeList.js +173 -50
- package/dist/Editor/utils/SlateUtilityFunctions.js +45 -162
- package/dist/Editor/utils/button.js +14 -0
- package/dist/Editor/utils/chatEditor/SlateUtilityFunctions.js +0 -23
- package/dist/Editor/utils/divider.js +0 -8
- package/dist/Editor/utils/draftToSlate.js +2 -3
- package/dist/Editor/utils/embed.js +4 -9
- package/dist/Editor/utils/font.js +37 -40
- package/dist/Editor/utils/helper.js +19 -65
- package/dist/Editor/utils/table.js +0 -8
- package/package.json +1 -1
- package/dist/Editor/Toolbar/PopupTool/ThemeTextFormat.js +0 -438
- package/dist/Editor/assets/svg/ThemeIcons.js +0 -291
- package/dist/Editor/common/CustomColorPicker/index.js +0 -106
- 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 -33
- package/dist/Editor/common/RnD/Theme/MainThemeProvider.js +0 -17
- package/dist/Editor/helper/textIndeces.js +0 -58
- package/dist/Editor/hooks/useEditorTheme.js +0 -153
- package/dist/Editor/theme/index.js +0 -144
- package/dist/Editor/themeSettings/ActiveTheme.js +0 -72
- package/dist/Editor/themeSettings/buttons/index.js +0 -283
- package/dist/Editor/themeSettings/buttons/style.js +0 -21
- package/dist/Editor/themeSettings/colorTheme/index.js +0 -292
- package/dist/Editor/themeSettings/colorTheme/style.js +0 -77
- package/dist/Editor/themeSettings/fonts/PreviewElement.js +0 -121
- package/dist/Editor/themeSettings/fonts/index.js +0 -220
- package/dist/Editor/themeSettings/fonts/style.js +0 -44
- package/dist/Editor/themeSettings/icons.js +0 -60
- package/dist/Editor/themeSettings/index.js +0 -320
- package/dist/Editor/themeSettings/style.js +0 -152
- package/dist/Editor/themeSettingsAI/icons.js +0 -96
- package/dist/Editor/themeSettingsAI/index.js +0 -356
- package/dist/Editor/themeSettingsAI/saveTheme.js +0 -197
- package/dist/Editor/themeSettingsAI/style.js +0 -250
@@ -8,8 +8,7 @@ const TextSettings = props => {
|
|
8
8
|
const {
|
9
9
|
editor,
|
10
10
|
path,
|
11
|
-
theme
|
12
|
-
customProps
|
11
|
+
theme
|
13
12
|
} = props;
|
14
13
|
const item_path = path.split("|").map(m => parseInt(m));
|
15
14
|
const element_path = [...item_path, 0];
|
@@ -26,8 +25,7 @@ const TextSettings = props => {
|
|
26
25
|
}, []);
|
27
26
|
return /*#__PURE__*/_jsx(TextFormat, {
|
28
27
|
classes: classes,
|
29
|
-
editor: editor
|
30
|
-
customProps: customProps
|
28
|
+
editor: editor
|
31
29
|
});
|
32
30
|
};
|
33
31
|
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",
|
@@ -17,8 +17,7 @@ const OptionsPopup = props => {
|
|
17
17
|
open,
|
18
18
|
anchorEl,
|
19
19
|
placement,
|
20
|
-
handleClose
|
21
|
-
translation
|
20
|
+
handleClose
|
22
21
|
} = props;
|
23
22
|
return anchorEl ? /*#__PURE__*/_jsx(Popper, {
|
24
23
|
sx: classes.root,
|
@@ -31,10 +30,10 @@ const OptionsPopup = props => {
|
|
31
30
|
children: [/*#__PURE__*/_jsxs(Typography, {
|
32
31
|
variant: "div",
|
33
32
|
className: "item-wrapper title",
|
34
|
-
children: [
|
33
|
+
children: [title, /*#__PURE__*/_jsx(Box, {
|
35
34
|
component: "div",
|
36
35
|
children: /*#__PURE__*/_jsx(Tooltip, {
|
37
|
-
title:
|
36
|
+
title: "Close",
|
38
37
|
arrow: true,
|
39
38
|
children: /*#__PURE__*/_jsx(IconButton, {
|
40
39
|
onClick: handleClose,
|
@@ -9,26 +9,19 @@ import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
9
9
|
const SwitchViewport = props => {
|
10
10
|
const {
|
11
11
|
breakpoint,
|
12
|
-
onChange
|
13
|
-
translation,
|
14
|
-
show
|
12
|
+
onChange
|
15
13
|
} = props;
|
16
14
|
const classes = useSwitchViewport();
|
17
15
|
const {
|
18
|
-
setSelectedElement,
|
19
16
|
setActiveBreakPoint
|
20
17
|
} = useEditorContext();
|
21
18
|
useEffect(() => {
|
22
|
-
|
23
|
-
setSelectedElement({});
|
19
|
+
console.log(breakpoint);
|
24
20
|
}, [breakpoint]);
|
25
21
|
return /*#__PURE__*/_jsxs(Box, {
|
26
22
|
sx: classes.root,
|
27
|
-
style: {
|
28
|
-
display: show ? "block" : "none"
|
29
|
-
},
|
30
23
|
children: [/*#__PURE__*/_jsx(Tooltip, {
|
31
|
-
title:
|
24
|
+
title: "Desktop View",
|
32
25
|
children: /*#__PURE__*/_jsx(IconButton, {
|
33
26
|
className: `${!breakpoint || breakpoint === "lg" ? "active" : ""}`,
|
34
27
|
onClick: () => {
|
@@ -38,7 +31,7 @@ const SwitchViewport = props => {
|
|
38
31
|
children: /*#__PURE__*/_jsx(PersonalVideoIcon, {})
|
39
32
|
})
|
40
33
|
}), /*#__PURE__*/_jsx(Tooltip, {
|
41
|
-
title:
|
34
|
+
title: "Mobile View",
|
42
35
|
children: /*#__PURE__*/_jsx(IconButton, {
|
43
36
|
className: `${breakpoint === "xs" ? "active" : ""}`,
|
44
37
|
onClick: () => {
|
@@ -1,20 +1,9 @@
|
|
1
1
|
import React from "react";
|
2
|
-
import { useTheme, createTheme } 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
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
6
|
-
const isPdf = () => {
|
7
|
-
try {
|
8
|
-
const hash = window.location.hash;
|
9
|
-
const queryString = hash.split("?")[1]; // Get part after "?"
|
10
|
-
const params = new URLSearchParams(queryString);
|
11
|
-
return params.get("isPdf");
|
12
|
-
} catch (err) {
|
13
|
-
console.log(err);
|
14
|
-
}
|
15
|
-
};
|
16
4
|
|
17
5
|
// Custom breakpoints functions
|
6
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
18
7
|
const customUp = (key, breakpoints) => {
|
19
8
|
const MOCK_BREAKPOINT = isStimulator();
|
20
9
|
if (key === "xs") {
|
@@ -60,9 +49,9 @@ const getBreakPoints = prevTheme => {
|
|
60
49
|
};
|
61
50
|
|
62
51
|
// Extend the existing theme with custom breakpoint functions
|
63
|
-
const extendedTheme = prevTheme => createTheme({
|
52
|
+
const extendedTheme = (prevTheme, isPrintMode) => createTheme({
|
64
53
|
...prevTheme,
|
65
|
-
breakpoints:
|
54
|
+
breakpoints: isPrintMode ? {
|
66
55
|
values: {
|
67
56
|
...prevTheme.breakpoints.values,
|
68
57
|
md: 400 // To resolve, while taking pdf on A4 size, it is getting mobile view because of breakpoint
|
@@ -70,14 +59,13 @@ const extendedTheme = prevTheme => createTheme({
|
|
70
59
|
} : getBreakPoints(prevTheme)
|
71
60
|
});
|
72
61
|
const ViewportStimulator = ({
|
73
|
-
children
|
74
|
-
selectedTheme
|
62
|
+
children
|
75
63
|
}) => {
|
76
64
|
const theme = useTheme();
|
77
|
-
const
|
78
|
-
|
65
|
+
const isPrintMode = useMediaQuery("print");
|
66
|
+
const viewportTheme = extendedTheme(theme, isPrintMode);
|
67
|
+
return /*#__PURE__*/_jsx(ThemeProvider, {
|
79
68
|
theme: viewportTheme,
|
80
|
-
userSelectedTheme: selectedTheme,
|
81
69
|
children: children
|
82
70
|
});
|
83
71
|
};
|
@@ -1,9 +1,6 @@
|
|
1
1
|
import { Transforms, Node } from "slate";
|
2
2
|
import { ReactEditor } from "slate-react";
|
3
3
|
import { getNearestItem } from "./calculateDropItem";
|
4
|
-
import { ROW_HEIGHT, getBorderWidth } from "./gridDropItem";
|
5
|
-
import { handleNegativeInteger } from "../../../utils/helper";
|
6
|
-
import { getDevice } from "../../../helper/theme";
|
7
4
|
const GUIDE_LINE_THRESHOLD = 5;
|
8
5
|
const GUIDE_LINE_OVERLAP_THRESHOLD = 5;
|
9
6
|
const handleMoveNode = (editor, path, newPath, {
|
@@ -251,46 +248,4 @@ export function getParentSectionPath(props, closestClass) {
|
|
251
248
|
} catch (err) {
|
252
249
|
console.log(err);
|
253
250
|
}
|
254
|
-
}
|
255
|
-
export function getAbsolutePositionX(currentEle) {
|
256
|
-
const isMobile = getDevice(window.innerWidth) === "xs";
|
257
|
-
const {
|
258
|
-
left: currElementLeft
|
259
|
-
} = currentEle?.getBoundingClientRect() || {};
|
260
|
-
let parentBoxDom = currentEle?.closest(".fgi_type_box");
|
261
|
-
if (isMobile && !parentBoxDom) {
|
262
|
-
parentBoxDom = currentEle?.closest(".freegrid-section");
|
263
|
-
}
|
264
|
-
const relativeElementX = parentBoxDom || document.querySelector(".rnd-guideline-lv");
|
265
|
-
const {
|
266
|
-
left
|
267
|
-
} = relativeElementX?.getBoundingClientRect() || {};
|
268
|
-
const borderLeftWidth = getBorderWidth(relativeElementX, "borderLeftWidth");
|
269
|
-
const absolutePositionX = parseInt(currElementLeft - left - borderLeftWidth);
|
270
|
-
return {
|
271
|
-
absolutePositionX
|
272
|
-
};
|
273
|
-
}
|
274
|
-
export function getAbsolutePositionY(currentEle) {
|
275
|
-
const {
|
276
|
-
top: currElementTop
|
277
|
-
} = currentEle?.getBoundingClientRect() || {};
|
278
|
-
const relativeElementY = currentEle?.closest(".freegrid-container-parent");
|
279
|
-
const borderTopWidth = getBorderWidth(relativeElementY, "borderTopWidth");
|
280
|
-
const rect = relativeElementY.getBoundingClientRect();
|
281
|
-
const absolutePositionY = handleNegativeInteger(currElementTop - rect.top - borderTopWidth);
|
282
|
-
|
283
|
-
// Calculate grid position
|
284
|
-
const row = Math.floor(absolutePositionY / ROW_HEIGHT) + 1;
|
285
|
-
|
286
|
-
// Update grid area
|
287
|
-
const gridArea = `${row} / 1 / ${row + 1} / 2`;
|
288
|
-
|
289
|
-
// to calculate difference inside the grid
|
290
|
-
const marginTop = Math.abs((row - 1) * ROW_HEIGHT - absolutePositionY);
|
291
|
-
return {
|
292
|
-
absolutePositionY,
|
293
|
-
gridArea,
|
294
|
-
marginTop
|
295
|
-
};
|
296
251
|
}
|
@@ -75,12 +75,13 @@ const VirtualElement = props => {
|
|
75
75
|
const virtualRef = useRef();
|
76
76
|
useEffect(() => {
|
77
77
|
if (virtualRef?.current) {
|
78
|
-
setTimeout(() => {
|
78
|
+
const timeoutId = setTimeout(() => {
|
79
79
|
const allData = calculateProps(path, virtualRef?.current, ROOT_ITEM_CLASS, []);
|
80
80
|
const groupData = groupByPathAndCalculateHeight(allData);
|
81
81
|
// it should trigger by auto alignment or on clicking mobile view change
|
82
82
|
updateAutoProps(editor, allData, "xs", groupData);
|
83
83
|
}, 100);
|
84
|
+
return () => clearTimeout(timeoutId);
|
84
85
|
}
|
85
86
|
}, [updated_at, virtualRef?.current]);
|
86
87
|
const calculateProps = (curPath, dom, domClass, allData) => {
|
@@ -6,7 +6,7 @@ import Handles from "./TransformHandles";
|
|
6
6
|
import { useEditorContext } from "../../hooks/useMouseMove";
|
7
7
|
import ElementOptions from "./ElementOptions";
|
8
8
|
import ElementSettings from "./ElementSettings";
|
9
|
-
import {
|
9
|
+
import { getClosestDraggable, getParentSectionPath } from "./Utils";
|
10
10
|
import DragInfo from "./DragInfo";
|
11
11
|
import GuideLines from "./GuideLines";
|
12
12
|
import ShadowElement from "./ShadowElement";
|
@@ -64,8 +64,7 @@ const RnD = props => {
|
|
64
64
|
editor,
|
65
65
|
breakpoint = "",
|
66
66
|
handleContextMenuClick = () => {},
|
67
|
-
itemData = {}
|
68
|
-
customProps
|
67
|
+
itemData = {}
|
69
68
|
} = props;
|
70
69
|
const {
|
71
70
|
isSelectedElement,
|
@@ -107,9 +106,6 @@ const RnD = props => {
|
|
107
106
|
y: 0
|
108
107
|
});
|
109
108
|
const parentSectionPath = str_path?.split("|").slice(0, 2).join("_");
|
110
|
-
const {
|
111
|
-
translation
|
112
|
-
} = customProps;
|
113
109
|
useEffect(() => {
|
114
110
|
if (ITEM_TYPES.includes(type)) {
|
115
111
|
if (enable === 1) {
|
@@ -429,26 +425,9 @@ const RnD = props => {
|
|
429
425
|
};
|
430
426
|
const onResizeStop = (e, direction, ref, d, position) => {
|
431
427
|
e.preventDefault();
|
432
|
-
let updatedPosition = {};
|
433
|
-
if (type !== "parent") {
|
434
|
-
// update element position while resizing, (for free grid box and item)
|
435
|
-
const {
|
436
|
-
absolutePositionX
|
437
|
-
} = getAbsolutePositionX(ref);
|
438
|
-
const {
|
439
|
-
gridArea,
|
440
|
-
marginTop
|
441
|
-
} = getAbsolutePositionY(ref);
|
442
|
-
updatedPosition = {
|
443
|
-
left: absolutePositionX,
|
444
|
-
gridArea: gridArea,
|
445
|
-
marginTop: marginTop
|
446
|
-
};
|
447
|
-
}
|
448
428
|
const updatedSize = {
|
449
429
|
width: delta?.width + d.width,
|
450
|
-
height: delta?.height + d.height
|
451
|
-
...updatedPosition
|
430
|
+
height: delta?.height + d.height
|
452
431
|
};
|
453
432
|
onChange({
|
454
433
|
...updatedSize
|
@@ -521,15 +500,12 @@ const RnD = props => {
|
|
521
500
|
return /*#__PURE__*/_jsxs(_Fragment, {
|
522
501
|
children: [/*#__PURE__*/_jsxs(Box, {
|
523
502
|
component: Rnd,
|
524
|
-
placeholder:
|
503
|
+
placeholder: ItemTypes[childType] || "Item",
|
525
504
|
id: eId || "",
|
526
505
|
ref: c => {
|
527
506
|
positionRef.current = c;
|
528
507
|
},
|
529
|
-
className: `${className || ""} ${dragInfoOpen ? "active-drag" : "inactive-drag"} enable-${enable} type_${childType} section_type_${type || "parent"}
|
530
|
-
// Fix rerender issue (remove-resize-styles): After resizing, click close button on a free grid-selected element
|
531
|
-
// doesn't remove the default `transform` style from react-rnd. Removing it manually.
|
532
|
-
}`,
|
508
|
+
className: `${className || ""} ${dragInfoOpen ? "active-drag" : "inactive-drag"} enable-${enable} type_${childType} section_type_${type || "parent"}`,
|
533
509
|
"data-path": str_path,
|
534
510
|
style: {
|
535
511
|
position: "relative",
|
@@ -588,9 +564,7 @@ const RnD = props => {
|
|
588
564
|
optionsProps: optionsProps,
|
589
565
|
selectedAction: currentAction,
|
590
566
|
path: str_path,
|
591
|
-
theme: theme
|
592
|
-
translation: translation,
|
593
|
-
customProps: customProps
|
567
|
+
theme: theme
|
594
568
|
}) : null, /*#__PURE__*/_jsx(ElementSettings, {
|
595
569
|
open: Boolean(currentAction),
|
596
570
|
currentAction: currentAction,
|
@@ -624,8 +598,7 @@ const RnD = props => {
|
|
624
598
|
open: openContextMenu,
|
625
599
|
contextMenu: contextMenu,
|
626
600
|
handleClose: handleClose,
|
627
|
-
theme: theme
|
628
|
-
translation: translation
|
601
|
+
theme: theme
|
629
602
|
}), type === "parent" && breakpoint === "lg" && !readOnly ? /*#__PURE__*/_jsx(VirtualElement, {
|
630
603
|
parentEle: positionRef?.current?.resizableElement?.current,
|
631
604
|
updated_at: updated_at,
|
@@ -18,8 +18,7 @@ const Toolbar = ({
|
|
18
18
|
readOnly,
|
19
19
|
showTool,
|
20
20
|
onSettings,
|
21
|
-
isSectionFullWidth
|
22
|
-
translation
|
21
|
+
isSectionFullWidth
|
23
22
|
}) => {
|
24
23
|
return !readOnly && !showTool ? /*#__PURE__*/_jsx(Box, {
|
25
24
|
component: "div",
|
@@ -33,7 +32,7 @@ const Toolbar = ({
|
|
33
32
|
}
|
34
33
|
},
|
35
34
|
children: /*#__PURE__*/_jsx(Tooltip, {
|
36
|
-
title:
|
35
|
+
title: "Section Settings",
|
37
36
|
children: /*#__PURE__*/_jsx(IconButton, {
|
38
37
|
onClick: onSettings,
|
39
38
|
children: /*#__PURE__*/_jsx(SectionSettingIcon, {})
|
@@ -51,8 +50,7 @@ const Section = props => {
|
|
51
50
|
customProps
|
52
51
|
} = props;
|
53
52
|
const {
|
54
|
-
readOnly
|
55
|
-
translation
|
53
|
+
readOnly
|
56
54
|
} = customProps;
|
57
55
|
const editor = useSlateStatic();
|
58
56
|
// const [isHovering, setIsHovering] = useState(false);
|
@@ -162,8 +160,7 @@ const Section = props => {
|
|
162
160
|
isSectionFullWidth: isSectionFullWidth,
|
163
161
|
readOnly: readOnly,
|
164
162
|
showTool: false,
|
165
|
-
onSettings: onSettings
|
166
|
-
translation: translation
|
163
|
+
onSettings: onSettings
|
167
164
|
}), children]
|
168
165
|
}), openSetttings ? /*#__PURE__*/_jsx(SectionPopup, {
|
169
166
|
element: {
|
@@ -43,60 +43,6 @@ const ELEMENTS_LIST = [{
|
|
43
43
|
icon: "headingThree"
|
44
44
|
}),
|
45
45
|
onInsert: editor => toggleBlock(editor, "headingThree", false)
|
46
|
-
}, {
|
47
|
-
name: "Heading 4",
|
48
|
-
desc: "",
|
49
|
-
group: "Text",
|
50
|
-
type: "headingFour",
|
51
|
-
icon: /*#__PURE__*/_jsx(Icon, {
|
52
|
-
icon: "headingFour"
|
53
|
-
}),
|
54
|
-
onInsert: editor => toggleBlock(editor, "headingFour", false)
|
55
|
-
}, {
|
56
|
-
name: "Heading 5",
|
57
|
-
desc: "",
|
58
|
-
group: "Text",
|
59
|
-
type: "headingFive",
|
60
|
-
icon: /*#__PURE__*/_jsx(Icon, {
|
61
|
-
icon: "headingFive"
|
62
|
-
}),
|
63
|
-
onInsert: editor => toggleBlock(editor, "headingFive", false)
|
64
|
-
}, {
|
65
|
-
name: "Heading 6",
|
66
|
-
desc: "",
|
67
|
-
group: "Text",
|
68
|
-
type: "headingSix",
|
69
|
-
icon: /*#__PURE__*/_jsx(Icon, {
|
70
|
-
icon: "headingSix"
|
71
|
-
}),
|
72
|
-
onInsert: editor => toggleBlock(editor, "headingSix", false)
|
73
|
-
}, {
|
74
|
-
name: "Paragraph 1",
|
75
|
-
desc: "",
|
76
|
-
group: "Text",
|
77
|
-
type: "paragraphOne",
|
78
|
-
icon: /*#__PURE__*/_jsx(Icon, {
|
79
|
-
icon: "paragraphOne"
|
80
|
-
}),
|
81
|
-
onInsert: editor => toggleBlock(editor, "paragraphOne", false)
|
82
|
-
}, {
|
83
|
-
name: "Paragraph 2",
|
84
|
-
desc: "",
|
85
|
-
group: "Text",
|
86
|
-
type: "paragraphTwo",
|
87
|
-
icon: /*#__PURE__*/_jsx(Icon, {
|
88
|
-
icon: "paragraphTwo"
|
89
|
-
}),
|
90
|
-
onInsert: editor => toggleBlock(editor, "paragraphTwo", false)
|
91
|
-
}, {
|
92
|
-
name: "Paragraph 3",
|
93
|
-
desc: "",
|
94
|
-
group: "Text",
|
95
|
-
type: "paragraphThree",
|
96
|
-
icon: /*#__PURE__*/_jsx(Icon, {
|
97
|
-
icon: "paragraphThree"
|
98
|
-
}),
|
99
|
-
onInsert: editor => toggleBlock(editor, "paragraphThree", false)
|
100
46
|
}, {
|
101
47
|
name: "Quote",
|
102
48
|
desc: "",
|
@@ -154,10 +100,7 @@ const ELEMENTS_LIST = [{
|
|
154
100
|
icon: /*#__PURE__*/_jsx(Icon, {
|
155
101
|
icon: "image"
|
156
102
|
}),
|
157
|
-
onInsert: editor =>
|
158
|
-
Transforms.delete(editor, editor.selection);
|
159
|
-
insertDefaultEmbed(editor, "image");
|
160
|
-
}
|
103
|
+
onInsert: editor => insertDefaultEmbed(editor, "image")
|
161
104
|
}, {
|
162
105
|
name: "Video",
|
163
106
|
desc: "",
|
@@ -166,12 +109,9 @@ const ELEMENTS_LIST = [{
|
|
166
109
|
icon: /*#__PURE__*/_jsx(Icon, {
|
167
110
|
icon: "video"
|
168
111
|
}),
|
169
|
-
onInsert: editor => {
|
170
|
-
|
171
|
-
|
172
|
-
aspectRatio: "16 / 9"
|
173
|
-
});
|
174
|
-
}
|
112
|
+
onInsert: editor => insertDefaultEmbed(editor, "video", "", {
|
113
|
+
aspectRatio: "16 / 9"
|
114
|
+
})
|
175
115
|
}, {
|
176
116
|
name: "Embed",
|
177
117
|
desc: "",
|
@@ -180,10 +120,7 @@ const ELEMENTS_LIST = [{
|
|
180
120
|
icon: /*#__PURE__*/_jsx(Icon, {
|
181
121
|
icon: "embed"
|
182
122
|
}),
|
183
|
-
onInsert: editor =>
|
184
|
-
Transforms.delete(editor, editor.selection);
|
185
|
-
insertDefaultEmbed(editor, "embed", "");
|
186
|
-
}
|
123
|
+
onInsert: editor => insertDefaultEmbed(editor, "embed", "")
|
187
124
|
}, {
|
188
125
|
name: "Calendly",
|
189
126
|
desc: "",
|
@@ -192,10 +129,7 @@ const ELEMENTS_LIST = [{
|
|
192
129
|
icon: /*#__PURE__*/_jsx(Icon, {
|
193
130
|
icon: "calenderNewIcon"
|
194
131
|
}),
|
195
|
-
onInsert: editor =>
|
196
|
-
Transforms.delete(editor, editor.selection);
|
197
|
-
insertDefaultEmbed(editor, "calendly", "");
|
198
|
-
}
|
132
|
+
onInsert: editor => insertDefaultEmbed(editor, "calendly", "")
|
199
133
|
}, {
|
200
134
|
name: "Table",
|
201
135
|
group: "Elements",
|
@@ -215,10 +149,7 @@ const ELEMENTS_LIST = [{
|
|
215
149
|
type: "emoji",
|
216
150
|
renderComponent: rest => /*#__PURE__*/_jsx(EmojiButton, {
|
217
151
|
...rest,
|
218
|
-
icoBtnType: "cmd"
|
219
|
-
customProps: {
|
220
|
-
...rest
|
221
|
-
}
|
152
|
+
icoBtnType: "cmd"
|
222
153
|
})
|
223
154
|
}, {
|
224
155
|
name: "Brain",
|
@@ -230,10 +161,7 @@ const ELEMENTS_LIST = [{
|
|
230
161
|
element: {
|
231
162
|
name: "Brain"
|
232
163
|
},
|
233
|
-
icoBtnType: "cmd"
|
234
|
-
customProps: {
|
235
|
-
...rest
|
236
|
-
}
|
164
|
+
icoBtnType: "cmd"
|
237
165
|
})
|
238
166
|
}, {
|
239
167
|
name: "Divider",
|
@@ -350,20 +278,9 @@ const ELEMENTS_LIST = [{
|
|
350
278
|
const elements = props => {
|
351
279
|
const {
|
352
280
|
search,
|
353
|
-
hideTools
|
354
|
-
translation
|
281
|
+
hideTools
|
355
282
|
} = props;
|
356
|
-
const
|
357
|
-
...element,
|
358
|
-
name: translation(element.name),
|
359
|
-
renderComponent: element.renderComponent ? rest => {
|
360
|
-
return element.renderComponent({
|
361
|
-
...rest,
|
362
|
-
translation
|
363
|
-
});
|
364
|
-
} : undefined
|
365
|
-
}));
|
366
|
-
const filteredElements = translatedElements.filter(f => (hideTools || []).indexOf(f.type) === -1);
|
283
|
+
const filteredElements = ELEMENTS_LIST.filter(f => (hideTools || []).indexOf(f.type) === -1);
|
367
284
|
return filteredElements.filter(c => c.name.toLowerCase().includes(search?.toLowerCase()));
|
368
285
|
};
|
369
286
|
export default elements;
|
@@ -15,12 +15,12 @@ const appHeaderStyle = [{
|
|
15
15
|
options: fontOptions,
|
16
16
|
webFont: true,
|
17
17
|
width: 7,
|
18
|
-
renderOption:
|
18
|
+
renderOption: option => {
|
19
19
|
return /*#__PURE__*/_jsx("span", {
|
20
20
|
style: {
|
21
21
|
fontFamily: option.value
|
22
22
|
},
|
23
|
-
children:
|
23
|
+
children: "LOGO"
|
24
24
|
});
|
25
25
|
}
|
26
26
|
}, {
|
@@ -58,12 +58,12 @@ const appHeaderStyle = [{
|
|
58
58
|
webFont: true,
|
59
59
|
width: 7,
|
60
60
|
options: fontOptions,
|
61
|
-
renderOption:
|
61
|
+
renderOption: option => {
|
62
62
|
return /*#__PURE__*/_jsx("span", {
|
63
63
|
style: {
|
64
64
|
fontFamily: option.value
|
65
65
|
},
|
66
|
-
children:
|
66
|
+
children: "Home"
|
67
67
|
});
|
68
68
|
}
|
69
69
|
}, {
|
@@ -51,9 +51,9 @@ const boxStyle = [{
|
|
51
51
|
text: "Dashed",
|
52
52
|
value: "dashed"
|
53
53
|
}],
|
54
|
-
renderOption:
|
54
|
+
renderOption: option => {
|
55
55
|
return /*#__PURE__*/_jsx("span", {
|
56
|
-
children:
|
56
|
+
children: option.text
|
57
57
|
});
|
58
58
|
}
|
59
59
|
}]
|
@@ -21,8 +21,7 @@ const buttonStyle = [{
|
|
21
21
|
},
|
22
22
|
children: option.text
|
23
23
|
});
|
24
|
-
}
|
25
|
-
themeEnabled: true
|
24
|
+
}
|
26
25
|
}, {
|
27
26
|
label: "Font Size",
|
28
27
|
key: "textSize",
|
@@ -46,8 +45,7 @@ const buttonStyle = [{
|
|
46
45
|
}, {
|
47
46
|
label: "Button Color",
|
48
47
|
key: "bgColor",
|
49
|
-
type: "color"
|
50
|
-
themeEnabled: true
|
48
|
+
type: "color"
|
51
49
|
}, {
|
52
50
|
label: "Border Color",
|
53
51
|
key: "borderColor",
|
@@ -106,9 +104,9 @@ const buttonStyle = [{
|
|
106
104
|
text: "Dashed",
|
107
105
|
value: "dashed"
|
108
106
|
}],
|
109
|
-
renderOption:
|
107
|
+
renderOption: option => {
|
110
108
|
return /*#__PURE__*/_jsx("span", {
|
111
|
-
children:
|
109
|
+
children: option.text
|
112
110
|
});
|
113
111
|
}
|
114
112
|
}]
|
@@ -46,9 +46,9 @@ const dividerStyle = [{
|
|
46
46
|
text: "Outset",
|
47
47
|
value: "outset"
|
48
48
|
}],
|
49
|
-
renderOption:
|
49
|
+
renderOption: option => {
|
50
50
|
return /*#__PURE__*/_jsx("span", {
|
51
|
-
children:
|
51
|
+
children: option.text
|
52
52
|
});
|
53
53
|
}
|
54
54
|
}]
|
@@ -16,18 +16,18 @@ const embedVideoStyle = [{
|
|
16
16
|
key: "aspectRatio",
|
17
17
|
type: "textOptions",
|
18
18
|
options: [{
|
19
|
-
text: "
|
19
|
+
text: "16:9 (Default)",
|
20
20
|
value: "16 / 9"
|
21
21
|
}, {
|
22
|
-
text: "
|
22
|
+
text: "9:16",
|
23
23
|
value: "9 / 16"
|
24
24
|
}, {
|
25
25
|
text: "Custom",
|
26
26
|
value: "custom"
|
27
27
|
}],
|
28
|
-
renderOption:
|
28
|
+
renderOption: option => {
|
29
29
|
return /*#__PURE__*/_jsx("span", {
|
30
|
-
children:
|
30
|
+
children: option.text
|
31
31
|
});
|
32
32
|
}
|
33
33
|
}]
|
@@ -78,9 +78,9 @@ const embedVideoStyle = [{
|
|
78
78
|
text: "Dashed",
|
79
79
|
value: "dashed"
|
80
80
|
}],
|
81
|
-
renderOption:
|
81
|
+
renderOption: option => {
|
82
82
|
return /*#__PURE__*/_jsx("span", {
|
83
|
-
children:
|
83
|
+
children: option.text
|
84
84
|
});
|
85
85
|
}
|
86
86
|
}]
|
@@ -57,9 +57,9 @@ const fieldStyle = [{
|
|
57
57
|
text: "Dashed",
|
58
58
|
value: "dashed"
|
59
59
|
}],
|
60
|
-
renderOption:
|
60
|
+
renderOption: option => {
|
61
61
|
return /*#__PURE__*/_jsx("span", {
|
62
|
-
children:
|
62
|
+
children: option.text
|
63
63
|
});
|
64
64
|
}
|
65
65
|
}]
|