@flozy/editor 10.0.1 → 10.0.3
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 +20 -28
- package/dist/Editor/CommonEditor.js +25 -142
- package/dist/Editor/DialogWrapper.js +25 -31
- package/dist/Editor/Editor.css +9 -17
- 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 +5 -15
- 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 +14 -61
- package/dist/Editor/Elements/Color Picker/ColorPicker.css +1 -25
- package/dist/Editor/Elements/Color Picker/ColorPicker.js +7 -10
- package/dist/Editor/Elements/Color Picker/Styles.js +13 -15
- package/dist/Editor/Elements/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/ColumnView.js +2 -4
- package/dist/Editor/Elements/DataView/Layouts/DataTypes/MultiSelectType.js +6 -21
- 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 +3 -8
- 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 +7 -9
- 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 -23
- package/dist/Editor/Elements/DataView/Layouts/TableView.js +4 -6
- package/dist/Editor/Elements/DataView/Layouts/ViewData.js +4 -8
- 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 +6 -21
- package/dist/Editor/Elements/EmbedScript/EmbedScript.js +2 -6
- package/dist/Editor/Elements/EmbedScript/EmbedScriptPopup.js +30 -62
- 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 +171 -185
- package/dist/Editor/Elements/Form/FormButton.js +2 -6
- package/dist/Editor/Elements/Form/FormField.js +4 -10
- 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/Styles.js +22 -24
- 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 +112 -173
- package/dist/Editor/Elements/FreeGrid/FreeGridBox.js +6 -31
- package/dist/Editor/Elements/FreeGrid/FreeGridButton.js +2 -6
- package/dist/Editor/Elements/FreeGrid/FreeGridItem.js +6 -54
- package/dist/Editor/Elements/FreeGrid/Options/AddElement.js +2 -3
- package/dist/Editor/Elements/FreeGrid/Options/More.js +5 -11
- package/dist/Editor/Elements/FreeGrid/styles.js +7 -64
- 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 +5 -8
- package/dist/Editor/Elements/Link/LinkButton.js +1 -4
- package/dist/Editor/Elements/List/CheckList.js +10 -18
- package/dist/Editor/Elements/NewLine/NewLineButton.js +2 -6
- package/dist/Editor/Elements/PageSettings/PageSettingsButton.js +1 -4
- package/dist/Editor/Elements/PageSettings/PageSettingsPopup.js +1 -4
- package/dist/Editor/Elements/Search/SearchAttachment.js +9 -40
- package/dist/Editor/Elements/Search/SearchButton.js +11 -15
- package/dist/Editor/Elements/Search/SearchList.js +10 -16
- 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 +5 -11
- 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 +11 -23
- 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 +6 -6
- package/dist/Editor/Elements/TopBanner/TopBannerButton.js +1 -4
- package/dist/Editor/Elements/Variables/VariableButton.js +1 -10
- package/dist/Editor/MiniEditor.js +3 -10
- 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 -10
- package/dist/Editor/Toolbar/Mini/MiniToolbar.js +6 -19
- 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 +3 -9
- 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 +10 -20
- package/dist/Editor/Toolbar/PopupTool/PopperHeader.js +5 -10
- package/dist/Editor/Toolbar/PopupTool/PopupToolStyle.js +12 -72
- package/dist/Editor/Toolbar/PopupTool/TemplateCard.js +5 -11
- package/dist/Editor/Toolbar/PopupTool/TextFormat.js +45 -123
- package/dist/Editor/Toolbar/PopupTool/index.js +2 -18
- package/dist/Editor/Toolbar/Toolbar.js +10 -20
- package/dist/Editor/Toolbar/toolbarGroups.js +6 -48
- package/dist/Editor/assets/svg/SettingsIcon.js +0 -1
- package/dist/Editor/common/ColorPickerButton.js +16 -38
- 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 +1 -31
- 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 +15 -45
- package/dist/Editor/common/LinkSettings/index.js +74 -96
- package/dist/Editor/common/LinkSettings/navOptions.js +1 -1
- package/dist/Editor/common/LinkSettings/style.js +30 -245
- package/dist/Editor/common/MentionsPopup/index.js +2 -6
- package/dist/Editor/common/RnD/ContextMenu/CMenus.js +22 -46
- package/dist/Editor/common/RnD/ContextMenu/index.js +2 -3
- package/dist/Editor/common/RnD/ElementOptions/Actions.js +14 -13
- package/dist/Editor/common/RnD/ElementOptions/Icons/LinkIcon.js +0 -1
- package/dist/Editor/common/RnD/ElementOptions/index.js +4 -9
- package/dist/Editor/common/RnD/ElementOptions/styles.js +1 -28
- package/dist/Editor/common/RnD/ElementSettings/OtherSettings/SaveAsTemplate.js +3 -8
- package/dist/Editor/common/RnD/ElementSettings/OtherSettings/Settings.js +7 -11
- 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 -6
- package/dist/Editor/common/RnD/ElementSettings/Settings/VideoSettings.js +2 -3
- package/dist/Editor/common/RnD/ElementSettings/styles.js +12 -147
- package/dist/Editor/common/RnD/OptionsPopup/index.js +8 -12
- package/dist/Editor/common/RnD/OptionsPopup/style.js +19 -121
- package/dist/Editor/common/RnD/ShadowElement.js +1 -2
- package/dist/Editor/common/RnD/SwitchViewport/SwitchViewport.js +7 -11
- package/dist/Editor/common/RnD/Theme/ViewportStimulator.js +3 -6
- package/dist/Editor/common/RnD/Utils/gridDropItem.js +9 -73
- package/dist/Editor/common/RnD/Utils/index.js +0 -3
- package/dist/Editor/common/RnD/VirtualElement/index.js +103 -187
- package/dist/Editor/common/RnD/VirtualElement/styles.js +7 -157
- package/dist/Editor/common/RnD/VirtualElement/updateAutoProps.js +3 -5
- package/dist/Editor/common/RnD/index.js +8 -76
- package/dist/Editor/common/Section/index.js +4 -7
- package/dist/Editor/common/Select/index.js +0 -2
- package/dist/Editor/common/Shorthands/elements.js +3 -72
- 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 -44
- 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/lineSpacing.js +6 -7
- package/dist/Editor/common/StyleBuilder/fieldTypes/menusArray.js +12 -22
- 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/common/iconListV2.js +6 -101
- package/dist/Editor/common/iconslist.js +0 -24
- package/dist/Editor/commonStyle.js +61 -174
- package/dist/Editor/helper/index.js +3 -27
- package/dist/Editor/helper/theme.js +2 -203
- package/dist/Editor/hooks/useMouseMove.js +5 -8
- package/dist/Editor/plugins/withEmbeds.js +1 -1
- package/dist/Editor/plugins/withHTML.js +7 -10
- package/dist/Editor/plugins/withLayout.js +2 -3
- package/dist/Editor/plugins/withLinks.js +0 -9
- package/dist/Editor/plugins/withTable.js +1 -1
- package/dist/Editor/theme/ThemeList.js +173 -50
- package/dist/Editor/utils/SlateUtilityFunctions.js +54 -186
- package/dist/Editor/utils/brains.js +2 -1
- package/dist/Editor/utils/button.js +17 -1
- package/dist/Editor/utils/draftToSlate.js +2 -3
- package/dist/Editor/utils/font.js +37 -40
- package/dist/Editor/utils/freegrid.js +4 -3
- package/dist/Editor/utils/helper.js +21 -92
- package/package.json +4 -4
- package/dist/Editor/Elements/DataView/Layouts/DataTypes/Components/MultiSelect.js +0 -454
- package/dist/Editor/Elements/EmbedScript/styles.js +0 -89
- package/dist/Editor/Toolbar/PopupTool/ThemeTextFormat.js +0 -439
- package/dist/Editor/assets/svg/BackIcon.js +0 -18
- package/dist/Editor/assets/svg/ClearAllRounded.js +0 -31
- package/dist/Editor/assets/svg/ResetIconNew.js +0 -23
- package/dist/Editor/assets/svg/ThemeIcons.js +0 -293
- package/dist/Editor/common/CustomColorPicker/index.js +0 -131
- package/dist/Editor/common/CustomColorPicker/style.js +0 -53
- package/dist/Editor/common/CustomDialog2/index.js +0 -94
- package/dist/Editor/common/CustomDialog2/style.js +0 -67
- package/dist/Editor/common/CustomSelect.js +0 -43
- package/dist/Editor/common/RnD/Theme/MainThemeProvider.js +0 -17
- package/dist/Editor/common/RnD/VirtualElement/BoxHeaderAutoAlignment.js +0 -43
- package/dist/Editor/common/RnD/VirtualElement/ForceAutoAlignment.js +0 -44
- package/dist/Editor/common/RnD/VirtualElement/VirtualTextElement.js +0 -134
- package/dist/Editor/common/RnD/VirtualElement/helper.js +0 -382
- package/dist/Editor/common/SnackBar/index.js +0 -43
- package/dist/Editor/helper/textIndeces.js +0 -58
- package/dist/Editor/hooks/useAutoScroll.js +0 -38
- package/dist/Editor/hooks/useEditorTheme.js +0 -153
- package/dist/Editor/hooks/useThemeValues.js +0 -63
- package/dist/Editor/theme/index.js +0 -149
- package/dist/Editor/themeSettings/ActiveTheme.js +0 -72
- package/dist/Editor/themeSettings/buttons/index.js +0 -290
- package/dist/Editor/themeSettings/buttons/style.js +0 -23
- package/dist/Editor/themeSettings/colorTheme/index.js +0 -309
- package/dist/Editor/themeSettings/colorTheme/style.js +0 -81
- package/dist/Editor/themeSettings/fonts/PreviewElement.js +0 -121
- package/dist/Editor/themeSettings/fonts/index.js +0 -240
- package/dist/Editor/themeSettings/fonts/style.js +0 -62
- package/dist/Editor/themeSettings/icons.js +0 -60
- package/dist/Editor/themeSettings/index.js +0 -361
- package/dist/Editor/themeSettings/style.js +0 -292
- package/dist/Editor/themeSettingsAI/icons.js +0 -96
- package/dist/Editor/themeSettingsAI/index.js +0 -355
- package/dist/Editor/themeSettingsAI/saveTheme.js +0 -202
- package/dist/Editor/themeSettingsAI/style.js +0 -324
@@ -1,9 +1,8 @@
|
|
1
1
|
const useElementSettingsStyle = theme => ({
|
2
2
|
root: {
|
3
3
|
zIndex: 1200,
|
4
|
-
background: theme?.palette?.editor?.
|
5
|
-
|
6
|
-
borderRadius: "20px",
|
4
|
+
background: theme?.palette?.editor?.background,
|
5
|
+
borderRadius: "10px",
|
7
6
|
overflow: "hidden",
|
8
7
|
boxShadow: "0px 0px 12px 4px #00000014",
|
9
8
|
padding: "10px 16px",
|
@@ -59,34 +58,28 @@ const useElementSettingsStyle = theme => ({
|
|
59
58
|
maxHeight: "500px",
|
60
59
|
overflowX: "hidden",
|
61
60
|
overflowY: "auto",
|
62
|
-
background: theme?.palette?.editor?.
|
63
|
-
paddingLeft: "
|
64
|
-
paddingRight: "6px",
|
65
|
-
overflow: "hidden",
|
66
|
-
"&:hover": {
|
67
|
-
overflowY: "auto",
|
68
|
-
"&::-webkit-scrollbar-thumb, ::-webkit-scrollbar-thumb": {
|
69
|
-
background: `${theme?.palette?.editor?.brainPopupScroll} !important`
|
70
|
-
},
|
71
|
-
"&::-webkit-scrollbar-track, ::-webkit-scrollbar-track": {
|
72
|
-
visibility: "hidden"
|
73
|
-
}
|
74
|
-
},
|
61
|
+
background: theme?.palette?.editor?.background,
|
62
|
+
paddingLeft: "4px",
|
75
63
|
"& .MuiTypography-root, .MuiInputBase-root, input": {
|
76
64
|
color: theme?.palette?.editor?.textColor
|
77
65
|
},
|
66
|
+
"& .MuiInputBase-root, input": {
|
67
|
+
border: `1px solid ${theme?.palette?.editor?.borderColor}`
|
68
|
+
},
|
78
69
|
"& .borderInput": {
|
79
70
|
background: theme?.palette?.editor?.background,
|
80
71
|
color: theme?.palette?.editor?.textColor
|
81
72
|
},
|
73
|
+
"& .MuiCheckbox-root": {
|
74
|
+
"& svg": {
|
75
|
+
fill: theme?.palette?.editor?.textColor
|
76
|
+
}
|
77
|
+
},
|
82
78
|
"& .fillPath": {
|
83
79
|
fill: theme?.palette?.editor?.textColor
|
84
80
|
},
|
85
81
|
"& .MuiIconButton-root": {
|
86
82
|
color: theme?.palette?.editor?.textColor
|
87
|
-
},
|
88
|
-
"& .MuiFormHelperText-root": {
|
89
|
-
color: theme?.palette?.editor?.textColor
|
90
83
|
}
|
91
84
|
},
|
92
85
|
"& .item-wrapper": {
|
@@ -111,134 +104,6 @@ const useElementSettingsStyle = theme => ({
|
|
111
104
|
}
|
112
105
|
}
|
113
106
|
}
|
114
|
-
},
|
115
|
-
"& .settingsPopUp": {
|
116
|
-
background: theme?.palette?.editor?.miniToolBarBackground,
|
117
|
-
"& .text-formatter-popup": {
|
118
|
-
paddingRight: "10px",
|
119
|
-
overflow: "hidden",
|
120
|
-
"&:hover": {
|
121
|
-
overflow: "auto",
|
122
|
-
"&::-webkit-scrollbar-thumb, ::-webkit-scrollbar-thumb": {
|
123
|
-
background: `${theme?.palette?.editor?.brainPopupScroll} !important`
|
124
|
-
},
|
125
|
-
"&::-webkit-scrollbar-track, ::-webkit-scrollbar-track": {
|
126
|
-
visibility: "hidden"
|
127
|
-
}
|
128
|
-
},
|
129
|
-
"& .more-btn-cbs": {
|
130
|
-
color: `${theme?.palette?.editor?.closeButtonSvgStroke}`,
|
131
|
-
border: `1px solid ${theme?.palette?.editor?.closeButtonSvgStroke}`,
|
132
|
-
paddingTop: "10px",
|
133
|
-
"& svg": {
|
134
|
-
width: "20px",
|
135
|
-
height: "24px"
|
136
|
-
}
|
137
|
-
},
|
138
|
-
"& .MuiInputBase-root": {
|
139
|
-
height: "36px"
|
140
|
-
}
|
141
|
-
},
|
142
|
-
"& .popUpHeader": {
|
143
|
-
fontSize: "16px",
|
144
|
-
fontFamily: "'Inter',sans-serif",
|
145
|
-
fontWeight: "700",
|
146
|
-
fontSize: "16px",
|
147
|
-
lineHeight: "25px",
|
148
|
-
"& button": {
|
149
|
-
background: theme?.palette?.editor?.closeButtonBackground,
|
150
|
-
borderRadius: "8px",
|
151
|
-
"& svg": {
|
152
|
-
fill: theme?.palette?.editor?.closeButtonSvgStroke
|
153
|
-
}
|
154
|
-
}
|
155
|
-
},
|
156
|
-
"& .MuiTypography-root": {
|
157
|
-
color: `${theme?.palette?.editor?.textColor} !important`
|
158
|
-
},
|
159
|
-
"& .MuiInputBase-root": {
|
160
|
-
background: theme?.palette?.editor?.inputFieldBgColor,
|
161
|
-
borderRadius: "8px",
|
162
|
-
fontSize: "12px",
|
163
|
-
height: "36px",
|
164
|
-
border: `1px solid ${theme?.palette?.editor?.inputFieldBorder}`,
|
165
|
-
"& fieldset": {
|
166
|
-
border: `1px solid transparent !important`,
|
167
|
-
background: "transparent",
|
168
|
-
borderRadius: "8px"
|
169
|
-
// fontSize: "12px",
|
170
|
-
},
|
171
|
-
|
172
|
-
"& input": {
|
173
|
-
// border: `1px solid transparent`,
|
174
|
-
// background: theme?.palette?.editor?.inputFieldBgColor,
|
175
|
-
borderRadius: "8px"
|
176
|
-
// fontSize: "12px",
|
177
|
-
}
|
178
|
-
},
|
179
|
-
|
180
|
-
"& .editor-dd": {
|
181
|
-
"& .MuiOutlinedInput-notchedOutline": {
|
182
|
-
border: `1px solid transparent !important`
|
183
|
-
}
|
184
|
-
},
|
185
|
-
"& .MuiAutocomplete-root": {
|
186
|
-
"& fieldset": {
|
187
|
-
border: `1px solid transparent !important`
|
188
|
-
}
|
189
|
-
},
|
190
|
-
"& .sliderInput": {
|
191
|
-
border: `1px solid ${theme?.palette?.editor?.inputFieldBorder}`,
|
192
|
-
background: theme?.palette?.editor?.inputFieldBgColor,
|
193
|
-
borderRadius: "10px",
|
194
|
-
paddingLeft: "10px",
|
195
|
-
width: "50px !important"
|
196
|
-
},
|
197
|
-
"& .selctedBtnIcon": {
|
198
|
-
border: `1px solid ${theme?.palette?.editor?.inputFieldBorder}`,
|
199
|
-
background: theme?.palette?.editor?.inputFieldBgColor,
|
200
|
-
borderRadius: "10px",
|
201
|
-
height: "36px",
|
202
|
-
"& svg": {
|
203
|
-
color: `${theme?.palette?.editor?.svgTextAlignStrokeColor} !important`
|
204
|
-
}
|
205
|
-
},
|
206
|
-
"& .muiIconsListParent": {
|
207
|
-
"& svg": {
|
208
|
-
color: `${theme?.palette?.editor?.svgTextAlignStrokeColor} !important`
|
209
|
-
},
|
210
|
-
"&::-webkit-scrollbar-thumb": {
|
211
|
-
background: `${theme?.palette?.editor?.brainPopupScroll} !important`
|
212
|
-
},
|
213
|
-
"&::-webkit-scrollbar-track": {
|
214
|
-
visibility: "hidden"
|
215
|
-
}
|
216
|
-
},
|
217
|
-
"& .menu-item-app-header": {
|
218
|
-
paddingBottom: "5px",
|
219
|
-
"& .text-field1": {
|
220
|
-
marginRight: "5px"
|
221
|
-
},
|
222
|
-
"& .settingsIcon, .deleteIcon": {
|
223
|
-
width: "20px",
|
224
|
-
height: "20px",
|
225
|
-
"& path": {
|
226
|
-
stroke: theme?.palette?.editor?.closeButtonSvgStroke
|
227
|
-
}
|
228
|
-
}
|
229
|
-
},
|
230
|
-
"& .MuiPaper-root": {
|
231
|
-
background: theme?.palette?.editor?.miniToolBarBackground
|
232
|
-
},
|
233
|
-
"& .iconRadioButton": {
|
234
|
-
"& svg": {
|
235
|
-
height: "24px",
|
236
|
-
width: "24px"
|
237
|
-
},
|
238
|
-
"& .MuiRadio-root": {
|
239
|
-
paddingLeft: "0px"
|
240
|
-
}
|
241
|
-
}
|
242
107
|
}
|
243
108
|
},
|
244
109
|
dialog: {
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import React from "react";
|
2
|
-
import { Box, Paper, Popper, Typography, Tooltip, IconButton
|
3
|
-
import
|
2
|
+
import { Box, Paper, Popper, Typography, Tooltip, IconButton } from "@mui/material";
|
3
|
+
import CloseIcon from "@mui/icons-material/Close";
|
4
4
|
import useOptionsPopupStyle from "./style";
|
5
5
|
import { jsx as _jsx } from "react/jsx-runtime";
|
6
6
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
@@ -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,
|
@@ -30,22 +29,19 @@ const OptionsPopup = props => {
|
|
30
29
|
className: "papper-root",
|
31
30
|
children: [/*#__PURE__*/_jsxs(Typography, {
|
32
31
|
variant: "div",
|
33
|
-
className: "item-wrapper title
|
34
|
-
children: [
|
32
|
+
className: "item-wrapper title",
|
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,
|
41
|
-
children: /*#__PURE__*/_jsx(
|
40
|
+
children: /*#__PURE__*/_jsx(CloseIcon, {})
|
42
41
|
})
|
43
42
|
})
|
44
43
|
})]
|
45
|
-
}),
|
46
|
-
className: "sectionOptionChild",
|
47
|
-
children: children
|
48
|
-
})]
|
44
|
+
}), children]
|
49
45
|
})
|
50
46
|
}) : null;
|
51
47
|
};
|
@@ -3,139 +3,31 @@ const useOptionsPopupStyle = ({
|
|
3
3
|
}) => ({
|
4
4
|
root: {
|
5
5
|
zIndex: 1200,
|
6
|
-
background: theme?.palette?.editor?.
|
7
|
-
|
8
|
-
borderRadius: "20px",
|
6
|
+
background: theme?.palette?.editor?.background,
|
7
|
+
borderRadius: "7px",
|
9
8
|
overflow: "hidden",
|
10
|
-
boxShadow: "
|
9
|
+
boxShadow: "1px 1px 3px rgba(0,0,0,0.3)",
|
11
10
|
marginRight: "4px !important",
|
12
|
-
padding: "0px 5px",
|
13
|
-
fontFamily: "'Inter',sans-serif",
|
14
|
-
"& .MuiPaper-root": {
|
15
|
-
background: theme?.palette?.editor?.miniToolBarBackground
|
16
|
-
},
|
17
|
-
"& .sectionOptionTitle": {
|
18
|
-
fontSize: "16px",
|
19
|
-
fontFamily: "'Inter',sans-serif",
|
20
|
-
fontWeight: "700",
|
21
|
-
fontSize: "16px",
|
22
|
-
lineHeight: "25px",
|
23
|
-
background: theme?.palette?.editor?.miniToolBarBackground,
|
24
|
-
"& button": {
|
25
|
-
background: theme?.palette?.editor?.closeButtonBackground,
|
26
|
-
borderRadius: "8px",
|
27
|
-
"& svg": {
|
28
|
-
fill: theme?.palette?.editor?.closeButtonSvgStroke
|
29
|
-
}
|
30
|
-
}
|
31
|
-
},
|
32
|
-
"& .sectionOptionChild": {
|
33
|
-
background: theme?.palette?.editor?.miniToolBarBackground,
|
34
|
-
"& .MuiBox-root": {
|
35
|
-
maxHeight: "unset"
|
36
|
-
},
|
37
|
-
"& .MuiInputBase-root, fieldset": {
|
38
|
-
background: theme?.palette?.editor?.inputFieldBgColor,
|
39
|
-
borderRadius: "8px",
|
40
|
-
"& fieldset": {
|
41
|
-
border: `1px solid ${theme?.palette?.editor?.inputFieldBorder}`,
|
42
|
-
background: "transparent",
|
43
|
-
borderRadius: "8px"
|
44
|
-
},
|
45
|
-
"& input": {
|
46
|
-
border: `1px solid transparent`,
|
47
|
-
background: theme?.palette?.editor?.inputFieldBgColor,
|
48
|
-
borderRadius: "8px",
|
49
|
-
fontSize: "12px",
|
50
|
-
color: theme?.palette?.editor?.textColor
|
51
|
-
}
|
52
|
-
},
|
53
|
-
"& p": {
|
54
|
-
color: theme?.palette?.editor?.textColor
|
55
|
-
},
|
56
|
-
"& .sliderInput": {
|
57
|
-
border: `1px solid ${theme?.palette?.editor?.inputFieldBorder}`,
|
58
|
-
background: theme?.palette?.editor?.inputFieldBgColor,
|
59
|
-
borderRadius: "10px"
|
60
|
-
},
|
61
|
-
"& .style-settings-wrpr": {
|
62
|
-
overflow: "hidden",
|
63
|
-
"&:hover": {
|
64
|
-
overflowY: "auto",
|
65
|
-
"&::-webkit-scrollbar-thumb, ::-webkit-scrollbar-thumb": {
|
66
|
-
background: `${theme?.palette?.editor?.brainPopupScroll} !important`
|
67
|
-
},
|
68
|
-
"&::-webkit-scrollbar-track, ::-webkit-scrollbar-track": {
|
69
|
-
visibility: "hidden"
|
70
|
-
}
|
71
|
-
}
|
72
|
-
},
|
73
|
-
"& svg": {
|
74
|
-
width: "17.5px",
|
75
|
-
height: "17.5px"
|
76
|
-
}
|
77
|
-
},
|
78
|
-
"& .MuiList-root": {
|
79
|
-
"& .MuiButtonBase-root": {
|
80
|
-
padding: "8px 12px",
|
81
|
-
"& .MuiTypography-root": {
|
82
|
-
color: `${theme?.palette?.editor?.textColor} !important`,
|
83
|
-
fontSize: "14px",
|
84
|
-
fontWeight: "500",
|
85
|
-
fontFamily: "'Inter',sans-serif"
|
86
|
-
},
|
87
|
-
"&:hover": {
|
88
|
-
background: `${theme?.palette?.editor?.menuOptionHoverBackground} !important`,
|
89
|
-
"& .MuiTypography-root": {
|
90
|
-
color: `${theme?.palette?.editor?.textColor} !important`
|
91
|
-
},
|
92
|
-
"& .MuiListItemIcon-root": {
|
93
|
-
"& .signatureElementIcon, & .newLineElementIcon": {
|
94
|
-
"& path": {
|
95
|
-
fill: `${theme?.palette?.editor?.textColor}`
|
96
|
-
}
|
97
|
-
},
|
98
|
-
"& .commonSvgStyle, & .commonSvgStyle2": {
|
99
|
-
"& path": {
|
100
|
-
stroke: `${theme?.palette?.editor?.textColor}`
|
101
|
-
}
|
102
|
-
},
|
103
|
-
"& .colorBoxElementIcon": {
|
104
|
-
"& path": {
|
105
|
-
stroke: `${theme?.palette?.editor?.textColor}`,
|
106
|
-
fill: "none"
|
107
|
-
}
|
108
|
-
},
|
109
|
-
"& .gridElementIcon": {
|
110
|
-
"& path": {
|
111
|
-
stroke: `${theme?.palette?.editor?.textColor}`,
|
112
|
-
fill: `${theme?.palette?.editor?.textColor}`
|
113
|
-
}
|
114
|
-
}
|
115
|
-
}
|
116
|
-
}
|
117
|
-
}
|
118
|
-
},
|
119
|
-
"& .sectionMoreOption": {
|
120
|
-
"& .MuiButtonBase-root": {
|
121
|
-
padding: "12px 12px",
|
122
|
-
color: `${theme?.palette?.editor?.textColor} !important`,
|
123
|
-
fontSize: "14px",
|
124
|
-
fontWeight: "500",
|
125
|
-
fontFamily: "'Inter',sans-serif"
|
126
|
-
}
|
127
|
-
},
|
128
11
|
"& .papper-root": {
|
129
12
|
width: "344px",
|
130
13
|
boxShadow: "none",
|
14
|
+
border: `1px solid ${theme?.palette?.editor?.borderColor}`,
|
131
15
|
borderRadius: "7px",
|
132
16
|
background: theme?.palette?.editor?.background,
|
133
17
|
"& .MuiTypography-root, .MuiInputBase-root, input": {
|
134
18
|
color: theme?.palette?.editor?.textColor
|
135
19
|
},
|
20
|
+
"& .MuiInputBase-root, input": {
|
21
|
+
border: `1px solid ${theme?.palette?.editor?.borderColor}`
|
22
|
+
},
|
136
23
|
"& .borderInput": {
|
137
24
|
background: theme?.palette?.editor?.background,
|
138
25
|
color: theme?.palette?.editor?.textColor
|
26
|
+
},
|
27
|
+
"& .MuiCheckbox-root": {
|
28
|
+
"& svg": {
|
29
|
+
fill: theme?.palette?.editor?.textColor
|
30
|
+
}
|
139
31
|
}
|
140
32
|
},
|
141
33
|
"& .item-list-wrpr": {
|
@@ -145,7 +37,13 @@ const useOptionsPopupStyle = ({
|
|
145
37
|
"& .MuiListItemButton-root": {
|
146
38
|
borderRadius: "7px",
|
147
39
|
color: theme?.palette?.editor?.textColor,
|
148
|
-
|
40
|
+
"&:hover": {
|
41
|
+
color: theme?.palette?.editor?.activeColor,
|
42
|
+
background: "rgba(233, 243, 254, 1)",
|
43
|
+
"& .MuiTypography-root": {
|
44
|
+
color: theme?.palette?.editor?.activeColor
|
45
|
+
}
|
46
|
+
}
|
149
47
|
}
|
150
48
|
},
|
151
49
|
"& .item-wrapper": {
|
@@ -9,37 +9,33 @@ 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
|
-
|
16
|
+
setActiveBreakPoint
|
19
17
|
} = useEditorContext();
|
20
18
|
useEffect(() => {
|
21
|
-
|
22
|
-
setSelectedElement({});
|
19
|
+
console.log(breakpoint);
|
23
20
|
}, [breakpoint]);
|
24
21
|
return /*#__PURE__*/_jsxs(Box, {
|
25
22
|
sx: classes.root,
|
26
|
-
style: {
|
27
|
-
display: show ? "block" : "none"
|
28
|
-
},
|
29
23
|
children: [/*#__PURE__*/_jsx(Tooltip, {
|
30
|
-
title:
|
24
|
+
title: "Desktop View",
|
31
25
|
children: /*#__PURE__*/_jsx(IconButton, {
|
32
26
|
className: `${!breakpoint || breakpoint === "lg" ? "active" : ""}`,
|
33
27
|
onClick: () => {
|
28
|
+
setActiveBreakPoint("");
|
34
29
|
onChange("");
|
35
30
|
},
|
36
31
|
children: /*#__PURE__*/_jsx(PersonalVideoIcon, {})
|
37
32
|
})
|
38
33
|
}), /*#__PURE__*/_jsx(Tooltip, {
|
39
|
-
title:
|
34
|
+
title: "Mobile View",
|
40
35
|
children: /*#__PURE__*/_jsx(IconButton, {
|
41
36
|
className: `${breakpoint === "xs" ? "active" : ""}`,
|
42
37
|
onClick: () => {
|
38
|
+
setActiveBreakPoint("xs");
|
43
39
|
onChange("xs");
|
44
40
|
},
|
45
41
|
children: /*#__PURE__*/_jsx(PhoneIphoneIcon, {})
|
@@ -1,7 +1,6 @@
|
|
1
1
|
import React from "react";
|
2
|
-
import { useTheme, createTheme, useMediaQuery } from "@mui/material";
|
2
|
+
import { useTheme, ThemeProvider, createTheme, useMediaQuery } from "@mui/material";
|
3
3
|
import { isStimulator, STIMULATOR_MOCK } from "../../../hooks/useBreakpoints";
|
4
|
-
import MainThemeProvider from "./MainThemeProvider";
|
5
4
|
|
6
5
|
// Custom breakpoints functions
|
7
6
|
import { jsx as _jsx } from "react/jsx-runtime";
|
@@ -60,15 +59,13 @@ const extendedTheme = (prevTheme, isPrintMode) => createTheme({
|
|
60
59
|
} : getBreakPoints(prevTheme)
|
61
60
|
});
|
62
61
|
const ViewportStimulator = ({
|
63
|
-
children
|
64
|
-
selectedTheme
|
62
|
+
children
|
65
63
|
}) => {
|
66
64
|
const theme = useTheme();
|
67
65
|
const isPrintMode = useMediaQuery("print");
|
68
66
|
const viewportTheme = extendedTheme(theme, isPrintMode);
|
69
|
-
return /*#__PURE__*/_jsx(
|
67
|
+
return /*#__PURE__*/_jsx(ThemeProvider, {
|
70
68
|
theme: viewportTheme,
|
71
|
-
userSelectedTheme: selectedTheme,
|
72
69
|
children: children
|
73
70
|
});
|
74
71
|
};
|
@@ -1,7 +1,6 @@
|
|
1
|
-
import { Transforms, Node, Path
|
1
|
+
import { Transforms, Node, Path } from "slate";
|
2
2
|
import { ReactEditor } from "slate-react";
|
3
|
-
import {
|
4
|
-
import { handleBoxAlignment } from "../VirtualElement/helper";
|
3
|
+
import { handleNegativeInteger } from "../../../utils/helper";
|
5
4
|
export const ROW_HEIGHT = 50;
|
6
5
|
|
7
6
|
// const MARGIN_OF = {
|
@@ -22,18 +21,9 @@ export function updateRows() {}
|
|
22
21
|
export function updateCols() {}
|
23
22
|
const handleMoveNode = (editor, path, newPath, {
|
24
23
|
isEmpty
|
25
|
-
}
|
24
|
+
}) => {
|
26
25
|
try {
|
27
|
-
|
28
|
-
if (autoAlign) {
|
29
|
-
// reset node for auto alignment in mobile
|
30
|
-
replaceNode = {
|
31
|
-
...replaceNode,
|
32
|
-
gridArea_xs: null,
|
33
|
-
xs_updatedOn: null,
|
34
|
-
marginTop_xs: null
|
35
|
-
};
|
36
|
-
}
|
26
|
+
const replaceNode = Node.get(editor, path);
|
37
27
|
if (isEmpty) {
|
38
28
|
const toPath = [...newPath, 0];
|
39
29
|
Transforms.insertNodes(editor, [{
|
@@ -67,10 +57,9 @@ const handleMoveNode = (editor, path, newPath, {
|
|
67
57
|
* This method will update prop in child node so it will re-render and update the path
|
68
58
|
* @param {*} path - contains the parent section path
|
69
59
|
*/
|
70
|
-
|
60
|
+
const reRenderChildNodes = (editor, path) => {
|
71
61
|
try {
|
72
62
|
const sectionNode = Node.get(editor, path);
|
73
|
-
|
74
63
|
// parent node
|
75
64
|
Transforms.setNodes(editor, {
|
76
65
|
updated_at: new Date().getTime()
|
@@ -88,23 +77,6 @@ export const reRenderChildNodes = (editor, path) => {
|
|
88
77
|
console.log(err);
|
89
78
|
}
|
90
79
|
};
|
91
|
-
function getLeft(editor, moveToNode, moveTopath, appenBp) {
|
92
|
-
let topBoxNode = moveToNode;
|
93
|
-
let left = topBoxNode[`left${appenBp}`];
|
94
|
-
if (moveToNode?.type === "freegridBox") {
|
95
|
-
const [firstNode] = Array.from([...Editor.nodes(editor, {
|
96
|
-
at: moveTopath,
|
97
|
-
match: n => n.type === "freegridBox",
|
98
|
-
reverse: true
|
99
|
-
})]);
|
100
|
-
if (firstNode?.length && firstNode[1].toString() !== moveTopath?.toString()) {
|
101
|
-
const parentBoxNode = firstNode[0];
|
102
|
-
const parentLeft = parentBoxNode[`left${appenBp}`];
|
103
|
-
left += parentLeft;
|
104
|
-
}
|
105
|
-
}
|
106
|
-
return left;
|
107
|
-
}
|
108
80
|
function isContainerElement(editor, moveTopath, props, appenBp) {
|
109
81
|
try {
|
110
82
|
const {
|
@@ -121,7 +93,7 @@ function isContainerElement(editor, moveTopath, props, appenBp) {
|
|
121
93
|
parentNode = Node.get(editor, Path.parent(dragItemPath));
|
122
94
|
}
|
123
95
|
const moveToNode = Node.get(editor, moveTopath);
|
124
|
-
const leftOfMoveToNode =
|
96
|
+
const leftOfMoveToNode = moveToNode[`left${appenBp}`];
|
125
97
|
if (moveToNode.type === "freegridBox") {
|
126
98
|
if (parentNode.type === "freegridBox") {
|
127
99
|
// same box
|
@@ -155,9 +127,6 @@ function isContainerElement(editor, moveTopath, props, appenBp) {
|
|
155
127
|
console.log(err);
|
156
128
|
}
|
157
129
|
}
|
158
|
-
const isInsidePath = (from, moveTo) => {
|
159
|
-
return Path.isAncestor(from, moveTo);
|
160
|
-
};
|
161
130
|
export function onDropItem(props, parentClass) {
|
162
131
|
try {
|
163
132
|
const {
|
@@ -205,17 +174,7 @@ export function onDropItem(props, parentClass) {
|
|
205
174
|
}, {
|
206
175
|
at: path
|
207
176
|
});
|
208
|
-
|
209
|
-
const [sectionData] = Editor.nodes(editor, {
|
210
|
-
at: moveTo,
|
211
|
-
match: n => n.type === "freegrid"
|
212
|
-
});
|
213
|
-
const [sectionNode, sectionPath] = sectionData || [];
|
214
|
-
if (needMove && isInsidePath(from, moveTo)) {
|
215
|
-
reRenderSectionPath = sectionPath;
|
216
|
-
} else {
|
217
|
-
reRenderChildNodes(editor, from);
|
218
|
-
}
|
177
|
+
reRenderChildNodes(editor, from);
|
219
178
|
|
220
179
|
// move the node if section parent changed
|
221
180
|
if (needMove) {
|
@@ -224,33 +183,10 @@ export function onDropItem(props, parentClass) {
|
|
224
183
|
if (!isEmpty) {
|
225
184
|
newPath = [...newPath, toSectionNode?.children?.length];
|
226
185
|
}
|
227
|
-
const autoAlign = breakpoint === "lg";
|
228
|
-
const currentNode = getNode(editor, path);
|
229
|
-
const isBoxHeader = currentNode?.childType === "appHeader" && moveTo?.length > 2;
|
230
|
-
if (isBoxHeader) {
|
231
|
-
// will handle on <BoxHeaderAutoAlignment />
|
232
|
-
} else if (moveTo?.length === 2 && autoAlign) {
|
233
|
-
// auto align in mobile
|
234
|
-
Transforms.setNodes(editor, {
|
235
|
-
xs_updatedOn: null
|
236
|
-
}, {
|
237
|
-
at: moveTo
|
238
|
-
});
|
239
|
-
} else if (autoAlign) {
|
240
|
-
Transforms.setNodes(editor, {
|
241
|
-
autoAlign: true,
|
242
|
-
xs_updatedOn: new Date().getTime()
|
243
|
-
}, {
|
244
|
-
at: moveTo
|
245
|
-
});
|
246
|
-
}
|
247
186
|
const rPath = handleMoveNode(editor, path, newPath, {
|
248
187
|
isEmpty
|
249
|
-
}
|
250
|
-
reRenderChildNodes(editor,
|
251
|
-
if (autoAlign && !isBoxHeader) {
|
252
|
-
handleBoxAlignment(editor, sectionNode, sectionPath);
|
253
|
-
}
|
188
|
+
});
|
189
|
+
reRenderChildNodes(editor, moveTo);
|
254
190
|
return {
|
255
191
|
updated_at: rPath
|
256
192
|
};
|