@flozy/editor 5.4.1 → 5.4.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 +25 -34
- package/dist/Editor/CommonEditor.js +29 -15
- package/dist/Editor/Editor.css +100 -18
- package/dist/Editor/Elements/AI/AIInput.js +0 -1
- package/dist/Editor/Elements/AI/CustomSelect.js +19 -11
- package/dist/Editor/Elements/AI/PopoverAIInput.js +58 -52
- package/dist/Editor/Elements/AI/Styles.js +24 -6
- package/dist/Editor/Elements/Accordion/Accordion.js +8 -1
- package/dist/Editor/Elements/AppHeader/AppHeader.js +6 -6
- package/dist/Editor/Elements/Button/EditorButton.js +9 -2
- package/dist/Editor/Elements/Carousel/CarouselItem.js +11 -3
- package/dist/Editor/Elements/Color Picker/ColorButtons.js +7 -5
- package/dist/Editor/Elements/Color Picker/Styles.js +7 -3
- package/dist/Editor/Elements/Color Picker/defaultColors.js +2 -2
- package/dist/Editor/Elements/DataView/DataView.js +124 -0
- package/dist/Editor/Elements/DataView/DataViewButton.js +23 -0
- package/dist/Editor/Elements/DataView/Layouts/ColumnView.js +67 -0
- package/dist/Editor/Elements/DataView/Layouts/DataTypes/CheckType.js +33 -0
- package/dist/Editor/Elements/DataView/Layouts/DataTypes/Components/Select.js +162 -0
- package/dist/Editor/Elements/DataView/Layouts/DataTypes/Components/SimpleSelect.js +40 -0
- package/dist/Editor/Elements/DataView/Layouts/DataTypes/Components/styles.js +67 -0
- package/dist/Editor/Elements/DataView/Layouts/DataTypes/DateType.js +35 -0
- package/dist/Editor/Elements/DataView/Layouts/DataTypes/MultiSelectType.js +39 -0
- package/dist/Editor/Elements/DataView/Layouts/DataTypes/NumberType.js +30 -0
- package/dist/Editor/Elements/DataView/Layouts/DataTypes/PersonType.js +30 -0
- package/dist/Editor/Elements/DataView/Layouts/DataTypes/SelectType.js +35 -0
- package/dist/Editor/Elements/DataView/Layouts/DataTypes/TextType.js +36 -0
- package/dist/Editor/Elements/DataView/Layouts/DataTypes/index.js +17 -0
- package/dist/Editor/Elements/DataView/Layouts/FilterSort/SortOptions/ChooseField.js +29 -0
- package/dist/Editor/Elements/DataView/Layouts/FilterSort/SortOptions/ChooseSort.js +38 -0
- package/dist/Editor/Elements/DataView/Layouts/FilterSort/SortOptions/index.js +74 -0
- package/dist/Editor/Elements/DataView/Layouts/FilterSort/index.js +64 -0
- package/dist/Editor/Elements/DataView/Layouts/FilterSort/styles.js +106 -0
- package/dist/Editor/Elements/DataView/Layouts/FilterView.js +174 -0
- package/dist/Editor/Elements/DataView/Layouts/Formula.js +29 -0
- package/dist/Editor/Elements/DataView/Layouts/Options/AddOptions.js +113 -0
- package/dist/Editor/Elements/DataView/Layouts/Options/AddProperty.js +37 -0
- package/dist/Editor/Elements/DataView/Layouts/Options/AllProperties.js +111 -0
- package/dist/Editor/Elements/DataView/Layouts/Options/ChangeProperty.js +60 -0
- package/dist/Editor/Elements/DataView/Layouts/Options/ColumnsList.js +36 -0
- package/dist/Editor/Elements/DataView/Layouts/Options/Constants.js +101 -0
- package/dist/Editor/Elements/DataView/Layouts/Options/EditOption.js +160 -0
- package/dist/Editor/Elements/DataView/Layouts/Options/EditProperty.js +190 -0
- package/dist/Editor/Elements/DataView/Layouts/Options/FilterProperty.js +42 -0
- package/dist/Editor/Elements/DataView/Layouts/Options/PropertyList.js +30 -0
- package/dist/Editor/Elements/DataView/Layouts/Options/index.js +110 -0
- package/dist/Editor/Elements/DataView/Layouts/Options/styles.js +179 -0
- package/dist/Editor/Elements/DataView/Layouts/TableStyles.js +112 -0
- package/dist/Editor/Elements/DataView/Layouts/TableView.js +227 -0
- package/dist/Editor/Elements/DataView/Layouts/ViewData.js +80 -0
- package/dist/Editor/Elements/DataView/Layouts/colStyles.js +10 -0
- package/dist/Editor/Elements/DataView/Layouts/index.js +25 -0
- package/dist/Editor/Elements/DataView/Providers/DataViewProvider.js +281 -0
- package/dist/Editor/Elements/DataView/Utils/globalSearch.js +15 -0
- package/dist/Editor/Elements/DataView/Utils/multiSortRows.js +74 -0
- package/dist/Editor/Elements/DataView/styles.js +154 -0
- package/dist/Editor/Elements/Divider/Divider.js +36 -20
- package/dist/Editor/Elements/Embed/Image.js +51 -16
- package/dist/Editor/Elements/Embed/Video.js +26 -3
- package/dist/Editor/Elements/Form/Form.js +39 -2
- package/dist/Editor/Elements/Form/FormElements/FormCheckbox.js +7 -1
- package/dist/Editor/Elements/Form/FormElements/FormDate.js +7 -1
- package/dist/Editor/Elements/Form/FormElements/FormEmail.js +7 -1
- package/dist/Editor/Elements/Form/FormElements/FormNumbers.js +7 -1
- package/dist/Editor/Elements/Form/FormElements/FormRadioButton.js +7 -1
- package/dist/Editor/Elements/Form/FormElements/FormText.js +7 -1
- package/dist/Editor/Elements/Form/FormElements/FormTextArea.js +6 -1
- package/dist/Editor/Elements/Form/FormPopup.js +12 -9
- package/dist/Editor/Elements/FreeGrid/FreeGrid.js +1 -1
- package/dist/Editor/Elements/FreeGrid/FreeGridItem.js +20 -1
- package/dist/Editor/Elements/FreeGrid/breakpointConstants.js +4 -4
- package/dist/Editor/Elements/FreeGrid/styles.js +2 -1
- package/dist/Editor/Elements/Grid/GridButton.js +2 -2
- package/dist/Editor/Elements/Grid/GridItem.js +47 -36
- package/dist/Editor/Elements/Grid/Styles.js +50 -0
- package/dist/Editor/Elements/Link/LinkButton.js +1 -1
- package/dist/Editor/Elements/List/CheckList.js +2 -1
- package/dist/Editor/Elements/Search/SearchAttachment.js +1 -0
- package/dist/Editor/Elements/Search/SearchButton.js +1 -0
- package/dist/Editor/Elements/Signature/Signature.css +1 -1
- package/dist/Editor/Elements/Signature/SignatureOptions/TypeSignature.js +2 -2
- package/dist/Editor/Elements/Signature/SignaturePopup.js +17 -52
- package/dist/Editor/Elements/SimpleText/index.js +8 -1
- package/dist/Editor/Elements/SimpleText/style.js +20 -1
- package/dist/Editor/Elements/Table/AddRowCol.js +77 -0
- package/dist/Editor/Elements/Table/DragButton.js +142 -0
- package/dist/Editor/Elements/Table/DragStyles.js +70 -0
- package/dist/Editor/Elements/Table/Draggable.js +25 -0
- package/dist/Editor/Elements/Table/Droppable.js +53 -0
- package/dist/Editor/Elements/Table/Styles.js +82 -79
- package/dist/Editor/Elements/Table/Table.js +258 -140
- package/dist/Editor/Elements/Table/TableCell.js +365 -111
- package/dist/Editor/Elements/Table/TablePopup.js +9 -3
- package/dist/Editor/Elements/Table/TableRow.js +10 -2
- package/dist/Editor/Elements/Table/TableTool.js +101 -0
- package/dist/Editor/Elements/Table/tableHelper.js +71 -0
- package/dist/Editor/Elements/TopBanner/TopBanner.js +2 -1
- package/dist/Editor/MiniEditor.js +15 -1
- package/dist/Editor/Styles/EditorStyles.js +13 -4
- package/dist/Editor/Toolbar/FormatTools/BlockButton.js +10 -0
- package/dist/Editor/Toolbar/FormatTools/Dropdown.js +7 -12
- package/dist/Editor/Toolbar/FormatTools/FontFamilyAutocomplete.js +26 -4
- package/dist/Editor/Toolbar/FormatTools/MarkButton.js +3 -0
- package/dist/Editor/Toolbar/FormatTools/TextSize.js +5 -5
- package/dist/Editor/Toolbar/Mini/MiniToolbar.js +3 -6
- package/dist/Editor/Toolbar/Mini/Styles.js +4 -1
- package/dist/Editor/Toolbar/PopupTool/MiniTextFormat/InfinityAITool.js +7 -3
- package/dist/Editor/Toolbar/PopupTool/MiniTextFormat/index.js +6 -4
- package/dist/Editor/Toolbar/PopupTool/PopperHeader.js +19 -15
- package/dist/Editor/Toolbar/PopupTool/PopupToolStyle.js +555 -57
- package/dist/Editor/Toolbar/PopupTool/TextFormat.js +73 -16
- package/dist/Editor/Toolbar/PopupTool/index.js +3 -5
- package/dist/Editor/Toolbar/Toolbar.js +6 -0
- package/dist/Editor/Toolbar/toolbarGroups.js +4 -0
- package/dist/Editor/assets/svg/BrainIcon.js +2 -2
- package/dist/Editor/assets/svg/SettingsIcon.js +4 -4
- package/dist/Editor/assets/svg/TableIcons.js +220 -0
- package/dist/Editor/common/ColorPickerButton.js +85 -45
- package/dist/Editor/common/DnD/Draggable.js +2 -1
- package/dist/Editor/common/FontLoader/FontLoader.js +4 -4
- package/dist/Editor/common/Icon.js +23 -20
- package/dist/Editor/common/ImageSelector/Options/Upload.js +2 -1
- package/dist/Editor/common/ImageSelector/Styles.js +47 -6
- package/dist/Editor/common/ImageSelector/UploadStyles.js +18 -6
- package/dist/Editor/common/LinkSettings/NavComponents.js +2 -1
- package/dist/Editor/common/LinkSettings/index.js +2 -1
- package/dist/Editor/common/MentionsPopup/Styles.js +143 -8
- package/dist/Editor/common/MentionsPopup/index.js +1 -1
- package/dist/Editor/common/RnD/ElementSettings/Settings/FormSettings.js +108 -12
- package/dist/Editor/common/RnD/GuideLines/styles.js +3 -3
- package/dist/Editor/common/RnD/ShadowElement.js +1 -1
- package/dist/Editor/common/RnD/SwitchViewport/SwitchViewport.js +14 -2
- package/dist/Editor/common/RnD/Utils/gridDropItem.js +9 -6
- package/dist/Editor/common/RnD/VirtualElement/index.js +5 -1
- package/dist/Editor/common/RnD/index.js +3 -2
- package/dist/Editor/common/Section/index.js +3 -3
- package/dist/Editor/common/Section/styles.js +5 -1
- package/dist/Editor/common/Select/index.js +20 -0
- package/dist/Editor/common/Select/styles.js +17 -0
- package/dist/Editor/common/Shorthands/elements.js +13 -1
- package/dist/Editor/common/StyleBuilder/fieldStyle.js +2 -1
- package/dist/Editor/common/StyleBuilder/fieldTypes/backgroundImage.js +9 -3
- package/dist/Editor/common/StyleBuilder/fieldTypes/bannerSpacing.js +35 -7
- package/dist/Editor/common/StyleBuilder/fieldTypes/borderRadius.js +15 -2
- package/dist/Editor/common/StyleBuilder/fieldTypes/card.js +10 -2
- package/dist/Editor/common/StyleBuilder/fieldTypes/color.js +2 -1
- package/dist/Editor/common/StyleBuilder/fieldTypes/fontSize.js +1 -1
- package/dist/Editor/common/StyleBuilder/fieldTypes/icons.js +2 -0
- package/dist/Editor/common/StyleBuilder/fieldTypes/index.js +3 -1
- package/dist/Editor/common/StyleBuilder/fieldTypes/lineSpacing.js +79 -0
- package/dist/Editor/common/StyleBuilder/fieldTypes/radiusStyle.js +11 -11
- package/dist/Editor/common/StyleBuilder/fieldTypes/saveAsTemplate.js +22 -6
- package/dist/Editor/common/StyleBuilder/fieldTypes/selectBox.js +21 -2
- package/dist/Editor/common/StyleBuilder/fieldTypes/text.js +20 -4
- package/dist/Editor/common/StyleBuilder/fieldTypes/textOptions.js +12 -2
- package/dist/Editor/common/StyleBuilder/formStyle.js +268 -149
- package/dist/Editor/common/StyleBuilder/index.js +101 -20
- package/dist/Editor/common/StyleBuilder/pageSettingsStyle.js +4 -0
- package/dist/Editor/common/StyleBuilder/tableStyle.js +69 -25
- package/dist/Editor/common/SwipeableDrawer/style.js +15 -4
- package/dist/Editor/common/ToolbarIcon.js +1 -1
- package/dist/Editor/common/Uploader.js +46 -36
- package/dist/Editor/common/iconListV2.js +616 -60
- package/dist/Editor/common/iconslist.js +23 -17
- package/dist/Editor/commonStyle.js +417 -11
- package/dist/Editor/helper/deserialize/index.js +25 -13
- package/dist/Editor/helper/enforceDateFormat.js +41 -0
- package/dist/Editor/helper/index.js +17 -4
- package/dist/Editor/helper/theme.js +24 -1
- package/dist/Editor/hooks/useMouseMove.js +5 -2
- package/dist/Editor/hooks/useTable.js +210 -0
- package/dist/Editor/plugins/withCustomDeleteBackward.js +36 -4
- package/dist/Editor/plugins/withEmbeds.js +30 -26
- package/dist/Editor/plugins/withHTML.js +61 -10
- package/dist/Editor/plugins/withLayout.js +1 -0
- package/dist/Editor/utils/SlateUtilityFunctions.js +39 -12
- package/dist/Editor/utils/brains.js +1 -1
- package/dist/Editor/utils/button.js +4 -4
- package/dist/Editor/utils/chatEditor/SlateUtilityFunctions.js +26 -1
- package/dist/Editor/utils/customHooks/useResize.js +7 -4
- package/dist/Editor/utils/customHooks/useTableResize.js +6 -2
- package/dist/Editor/utils/dataView.js +43 -0
- package/dist/Editor/utils/embed.js +2 -1
- package/dist/Editor/utils/events.js +0 -1
- package/dist/Editor/utils/font.js +11 -4
- package/dist/Editor/utils/formfield.js +8 -4
- package/dist/Editor/utils/helper.js +103 -2
- package/dist/Editor/utils/insertNewLine.js +19 -1
- package/dist/Editor/utils/pageSettings.js +14 -2
- package/dist/Editor/utils/serializeToText.js +2 -0
- package/dist/Editor/utils/table.js +228 -24
- package/package.json +2 -2
@@ -138,8 +138,8 @@ export const StrikethroughIcon = props => /*#__PURE__*/_jsx("svg", {
|
|
138
138
|
children: /*#__PURE__*/_jsx("path", {
|
139
139
|
className: "strokeFillPath",
|
140
140
|
d: "M2.7607 11.125C2.7607 13.0718 4.33885 14.65 6.28568 14.65H8.21432C10.1611 14.65 11.7393 13.0718 11.7393 11.125V10.6429C11.7393 9.78254 11.4309 8.99403 10.9189 8.38214H13.5179C13.867 8.38214 14.15 8.0991 14.15 7.75C14.15 7.4009 13.867 7.11786 13.5179 7.11786H8.21597H8.21435H6.28579C5.03727 7.11786 4.02509 6.10568 4.02509 4.85714V4.375C4.02509 3.12647 5.03727 2.11429 6.28579 2.11429H8.21435C9.46288 2.11429 10.4751 3.12647 10.4751 4.375V4.84874C10.4751 5.19784 10.7581 5.48088 11.1072 5.48088C11.4563 5.48088 11.7393 5.19784 11.7393 4.84874V4.375C11.7393 2.42817 10.1612 0.85 8.21435 0.85H6.28579C4.33897 0.85 2.76081 2.42817 2.76081 4.375V4.85714C2.76081 5.71746 3.06916 6.50597 3.58108 7.11786H0.982141C0.633044 7.11786 0.35 7.4009 0.35 7.75C0.35 8.0991 0.633044 8.38214 0.982141 8.38214H8.21424L8.21556 8.38214C8.21559 8.38214 8.21562 8.38214 8.21564 8.38214C9.46353 8.38289 10.4749 9.39474 10.4749 10.6429V11.125C10.4749 12.3735 9.46276 13.3857 8.21424 13.3857H6.28568C5.03715 13.3857 4.02498 12.3735 4.02498 11.125V10.6429C4.02498 10.2938 3.74193 10.0107 3.39284 10.0107C3.04374 10.0107 2.7607 10.2938 2.7607 10.6429V11.125Z",
|
141
|
-
fill: "
|
142
|
-
stroke: "
|
141
|
+
fill: "currentColor",
|
142
|
+
stroke: "currentColor",
|
143
143
|
strokeWidth: "0.3"
|
144
144
|
})
|
145
145
|
});
|
@@ -864,19 +864,19 @@ export const TextLeftAlign = props => /*#__PURE__*/_jsxs("svg", {
|
|
864
864
|
children: [/*#__PURE__*/_jsx("path", {
|
865
865
|
className: "fillPath",
|
866
866
|
d: "M21 6.05566H3C2.59 6.05566 2.25 5.71566 2.25 5.30566C2.25 4.89566 2.59 4.55566 3 4.55566H21C21.41 4.55566 21.75 4.89566 21.75 5.30566C21.75 5.71566 21.41 6.05566 21 6.05566Z",
|
867
|
-
fill: "#
|
867
|
+
fill: "#64748B"
|
868
868
|
}), /*#__PURE__*/_jsx("path", {
|
869
869
|
className: "fillPath",
|
870
870
|
d: "M12.47 11.0557H3C2.59 11.0557 2.25 10.7157 2.25 10.3057C2.25 9.89566 2.59 9.55566 3 9.55566H12.47C12.88 9.55566 13.22 9.89566 13.22 10.3057C13.22 10.7157 12.89 11.0557 12.47 11.0557Z",
|
871
|
-
fill: "#
|
871
|
+
fill: "#64748B"
|
872
872
|
}), /*#__PURE__*/_jsx("path", {
|
873
873
|
className: "fillPath",
|
874
874
|
d: "M21 16.0557H3C2.59 16.0557 2.25 15.7157 2.25 15.3057C2.25 14.8957 2.59 14.5557 3 14.5557H21C21.41 14.5557 21.75 14.8957 21.75 15.3057C21.75 15.7157 21.41 16.0557 21 16.0557Z",
|
875
|
-
fill: "#
|
875
|
+
fill: "#64748B"
|
876
876
|
}), /*#__PURE__*/_jsx("path", {
|
877
877
|
className: "fillPath",
|
878
878
|
d: "M12.47 21.0557H3C2.59 21.0557 2.25 20.7157 2.25 20.3057C2.25 19.8957 2.59 19.5557 3 19.5557H12.47C12.88 19.5557 13.22 19.8957 13.22 20.3057C13.22 20.7157 12.89 21.0557 12.47 21.0557Z",
|
879
|
-
fill: "#
|
879
|
+
fill: "#64748B"
|
880
880
|
})]
|
881
881
|
});
|
882
882
|
export const TextCenterAlign = props => /*#__PURE__*/_jsxs("svg", {
|
@@ -888,19 +888,19 @@ export const TextCenterAlign = props => /*#__PURE__*/_jsxs("svg", {
|
|
888
888
|
children: [/*#__PURE__*/_jsx("path", {
|
889
889
|
className: "fillPath",
|
890
890
|
d: "M21 6.05566H3C2.59 6.05566 2.25 5.71566 2.25 5.30566C2.25 4.89566 2.59 4.55566 3 4.55566H21C21.41 4.55566 21.75 4.89566 21.75 5.30566C21.75 5.71566 21.41 6.05566 21 6.05566Z",
|
891
|
-
fill: "#
|
891
|
+
fill: "#64748B"
|
892
892
|
}), /*#__PURE__*/_jsx("path", {
|
893
893
|
className: "fillPath",
|
894
894
|
d: "M16.7417 11.0557H7.26172C6.85172 11.0557 6.51172 10.7157 6.51172 10.3057C6.51172 9.89566 6.85172 9.55566 7.26172 9.55566H16.7317C17.1417 9.55566 17.4817 9.89566 17.4817 10.3057C17.4817 10.7157 17.1517 11.0557 16.7417 11.0557Z",
|
895
|
-
fill: "#
|
895
|
+
fill: "#64748B"
|
896
896
|
}), /*#__PURE__*/_jsx("path", {
|
897
897
|
className: "fillPath",
|
898
898
|
d: "M21 16.0557H3C2.59 16.0557 2.25 15.7157 2.25 15.3057C2.25 14.8957 2.59 14.5557 3 14.5557H21C21.41 14.5557 21.75 14.8957 21.75 15.3057C21.75 15.7157 21.41 16.0557 21 16.0557Z",
|
899
|
-
fill: "#
|
899
|
+
fill: "#64748B"
|
900
900
|
}), /*#__PURE__*/_jsx("path", {
|
901
901
|
className: "fillPath",
|
902
902
|
d: "M16.7417 21.0557H7.26172C6.85172 21.0557 6.51172 20.7157 6.51172 20.3057C6.51172 19.8957 6.85172 19.5557 7.26172 19.5557H16.7317C17.1417 19.5557 17.4817 19.8957 17.4817 20.3057C17.4817 20.7157 17.1517 21.0557 16.7417 21.0557Z",
|
903
|
-
fill: "#
|
903
|
+
fill: "#64748B"
|
904
904
|
})]
|
905
905
|
});
|
906
906
|
export const TextRightAlign = props => /*#__PURE__*/_jsxs("svg", {
|
@@ -912,19 +912,19 @@ export const TextRightAlign = props => /*#__PURE__*/_jsxs("svg", {
|
|
912
912
|
children: [/*#__PURE__*/_jsx("path", {
|
913
913
|
className: "fillPath",
|
914
914
|
d: "M21 6.05566H3C2.59 6.05566 2.25 5.71566 2.25 5.30566C2.25 4.89566 2.59 4.55566 3 4.55566H21C21.41 4.55566 21.75 4.89566 21.75 5.30566C21.75 5.71566 21.41 6.05566 21 6.05566Z",
|
915
|
-
fill: "#
|
915
|
+
fill: "#64748B"
|
916
916
|
}), /*#__PURE__*/_jsx("path", {
|
917
917
|
className: "fillPath",
|
918
918
|
d: "M21.0013 11.0557H11.5312C11.1213 11.0557 10.7812 10.7157 10.7812 10.3057C10.7812 9.89566 11.1213 9.55566 11.5312 9.55566H21.0013C21.4113 9.55566 21.7513 9.89566 21.7513 10.3057C21.7513 10.7157 21.4113 11.0557 21.0013 11.0557Z",
|
919
|
-
fill: "#
|
919
|
+
fill: "#64748B"
|
920
920
|
}), /*#__PURE__*/_jsx("path", {
|
921
921
|
className: "fillPath",
|
922
922
|
d: "M21 16.0557H3C2.59 16.0557 2.25 15.7157 2.25 15.3057C2.25 14.8957 2.59 14.5557 3 14.5557H21C21.41 14.5557 21.75 14.8957 21.75 15.3057C21.75 15.7157 21.41 16.0557 21 16.0557Z",
|
923
|
-
fill: "#
|
923
|
+
fill: "#64748B"
|
924
924
|
}), /*#__PURE__*/_jsx("path", {
|
925
925
|
className: "fillPath",
|
926
926
|
d: "M21.0013 21.0557H11.5312C11.1213 21.0557 10.7812 20.7157 10.7812 20.3057C10.7812 19.8957 11.1213 19.5557 11.5312 19.5557H21.0013C21.4113 19.5557 21.7513 19.8957 21.7513 20.3057C21.7513 20.7157 21.4113 21.0557 21.0013 21.0557Z",
|
927
|
-
fill: "#
|
927
|
+
fill: "#64748B"
|
928
928
|
})]
|
929
929
|
});
|
930
930
|
export const JustifyStartIcon = props => /*#__PURE__*/_jsxs("svg", {
|
@@ -933,6 +933,9 @@ export const JustifyStartIcon = props => /*#__PURE__*/_jsxs("svg", {
|
|
933
933
|
height: "25",
|
934
934
|
viewBox: "0 0 24 25",
|
935
935
|
fill: "none",
|
936
|
+
style: {
|
937
|
+
color: "red"
|
938
|
+
},
|
936
939
|
children: [/*#__PURE__*/_jsx("path", {
|
937
940
|
d: "M5.10156 20.0557H16.9016C18.4016 20.0557 19.0016 19.4157 19.0016 17.8257V16.7857C19.0016 15.1957 18.4016 14.5557 16.9016 14.5557H5.10156",
|
938
941
|
stroke: "#64748B",
|
@@ -1343,19 +1346,22 @@ export const GridAddSectionIcon = props => /*#__PURE__*/_jsxs("svg", {
|
|
1343
1346
|
stroke: "#64748B",
|
1344
1347
|
strokeWidth: "1.5",
|
1345
1348
|
strokeLinecap: "round",
|
1346
|
-
strokeLinejoin: "round"
|
1349
|
+
strokeLinejoin: "round",
|
1350
|
+
className: "fillStroke"
|
1347
1351
|
}), /*#__PURE__*/_jsx("path", {
|
1348
1352
|
d: "M10.1733 6.125V14.875",
|
1349
1353
|
stroke: "#64748B",
|
1350
1354
|
strokeWidth: "1.5",
|
1351
1355
|
strokeLinecap: "round",
|
1352
|
-
strokeLinejoin: "round"
|
1356
|
+
strokeLinejoin: "round",
|
1357
|
+
className: "fillStroke"
|
1353
1358
|
}), /*#__PURE__*/_jsx("path", {
|
1354
1359
|
d: "M5.79834 10.5H14.5483",
|
1355
1360
|
stroke: "#64748B",
|
1356
1361
|
strokeWidth: "1.5",
|
1357
1362
|
strokeLinecap: "round",
|
1358
|
-
strokeLinejoin: "round"
|
1363
|
+
strokeLinejoin: "round",
|
1364
|
+
className: "fillStroke"
|
1359
1365
|
})]
|
1360
1366
|
});
|
1361
1367
|
export const FormIcon = () => {
|
@@ -1,7 +1,147 @@
|
|
1
1
|
const useCommonStyle = theme => ({
|
2
2
|
sideBarDrawer: {
|
3
3
|
"& .MuiPaper-root": {
|
4
|
-
backgroundColor: theme?.palette?.editor?.
|
4
|
+
backgroundColor: theme?.palette?.editor?.textFormatBgColor,
|
5
|
+
border: `1px solid ${theme?.palette?.editor?.miniToolBarBorder}`,
|
6
|
+
"@media only screen and (min-width: 899px)": {
|
7
|
+
borderRadius: "20px",
|
8
|
+
margin: "5px",
|
9
|
+
height: "calc(100% - 10px)",
|
10
|
+
overflow: "hidden"
|
11
|
+
},
|
12
|
+
"@media only screen and (max-width: 599px)": {
|
13
|
+
borderRadius: "20px 20px 0px 0px"
|
14
|
+
}
|
15
|
+
},
|
16
|
+
"& .optionePopupHeader": {
|
17
|
+
borderBottom: `1px solid ${theme?.palette?.editor?.deviderBgColor} !important`,
|
18
|
+
padding: "0px 0px 10px 0px",
|
19
|
+
margin: "0px 10px",
|
20
|
+
"& .MuiTypography-root": {
|
21
|
+
textTransform: "capitalize"
|
22
|
+
},
|
23
|
+
"& .close-popupbtn": {
|
24
|
+
background: theme?.palette?.editor?.closeButtonBgColor,
|
25
|
+
color: `${theme?.palette?.editor?.closeButtonSvgStroke} !important`,
|
26
|
+
"& svg": {
|
27
|
+
color: `${theme?.palette?.editor?.closeButtonSvgStroke} !important`
|
28
|
+
}
|
29
|
+
}
|
30
|
+
},
|
31
|
+
"& .MuiDialogActions-root": {
|
32
|
+
// paddingTop: "10px",
|
33
|
+
"& .primaryBtn, .deleteBtn": {
|
34
|
+
height: "32px !important",
|
35
|
+
fontSize: "14px !important",
|
36
|
+
fontWeight: "600 !important",
|
37
|
+
padding: "0px 20px !important"
|
38
|
+
},
|
39
|
+
"& .deleteBtn": {
|
40
|
+
background: `${theme?.palette?.type === "light" && "#FFF7F9"} !important`
|
41
|
+
}
|
42
|
+
},
|
43
|
+
"& .MuiDialogContent-root": {
|
44
|
+
padding: "0px 5px 0px 10px!important",
|
45
|
+
height: "100%",
|
46
|
+
fontFamily: "Inter, sans-serif",
|
47
|
+
"& .MuiTypography-root": {
|
48
|
+
fontSize: "14px",
|
49
|
+
fontWeight: "500",
|
50
|
+
fontFamily: "Inter, sans-serif"
|
51
|
+
},
|
52
|
+
"& p": {
|
53
|
+
marginBottom: "7px",
|
54
|
+
marginTop: "4px"
|
55
|
+
},
|
56
|
+
"& .muiIconsListParent": {
|
57
|
+
"& svg": {
|
58
|
+
color: `${theme?.palette?.editor?.svgTextAlignStrokeColor} !important`
|
59
|
+
},
|
60
|
+
"&::-webkit-scrollbar-thumb": {
|
61
|
+
background: `none !important`
|
62
|
+
},
|
63
|
+
"&::-webkit-scrollbar-track": {
|
64
|
+
visibility: "hidden"
|
65
|
+
},
|
66
|
+
"&::-webkit-scrollbar-thumb": {
|
67
|
+
background: `${theme?.palette?.editor?.brainPopupScroll} !important`
|
68
|
+
},
|
69
|
+
"&::-webkit-scrollbar-track": {
|
70
|
+
visibility: "hidden"
|
71
|
+
}
|
72
|
+
},
|
73
|
+
"& .MuiGrid-root>.MuiGrid-item": {
|
74
|
+
paddingRight: "0px !important",
|
75
|
+
fontFamily: "Inter, sans-serif",
|
76
|
+
height: 'fit-content'
|
77
|
+
},
|
78
|
+
"& .MuiInputBase-root": {
|
79
|
+
borderRadius: "10px",
|
80
|
+
background: theme?.palette?.editor?.inputFieldBgColor,
|
81
|
+
border: `none`,
|
82
|
+
height: "36px",
|
83
|
+
boxShadow: "0px 4px 16px 0px #0000000D",
|
84
|
+
fontFamily: "Inter, sans-serif",
|
85
|
+
"&:hover .MuiOutlinedInput-notchedOutline": {
|
86
|
+
border: `1px solid ${theme?.palette?.editor?.inputFieldBorder}`
|
87
|
+
},
|
88
|
+
"& input::placeholder": {
|
89
|
+
color: "#94A3B8 !important",
|
90
|
+
opacity: "unset",
|
91
|
+
fontFamily: "Inter, sans-serif"
|
92
|
+
},
|
93
|
+
"& .colorPickerButton": {
|
94
|
+
border: `2px solid ${theme?.palette?.editor?.buttonBorder2} !important`
|
95
|
+
}
|
96
|
+
},
|
97
|
+
"& .MuiInputBase-root:has(.colorPickerButton)": {
|
98
|
+
"& .MuiInputBase-input": {
|
99
|
+
padding: "8.5px 14px 8.5px 0px",
|
100
|
+
fontFamily: "Inter, sans-serif"
|
101
|
+
}
|
102
|
+
},
|
103
|
+
"& .MuiInputBase-input": {
|
104
|
+
color: theme?.palette?.editor?.deletePopUpButtonTextColor,
|
105
|
+
textTransform: "math-auto",
|
106
|
+
fontFamily: "Inter, sans-serif"
|
107
|
+
},
|
108
|
+
"& .MuiOutlinedInput-notchedOutline": {
|
109
|
+
border: `1px solid ${theme?.palette?.editor?.inputFieldBorder}`
|
110
|
+
},
|
111
|
+
"& fieldset": {
|
112
|
+
border: `1px solid transparent`,
|
113
|
+
borderRadius: "10px"
|
114
|
+
},
|
115
|
+
"&::-webkit-scrollbar-thumb, & .MuiPaper-root ::-webkit-scrollbar-thumb": {
|
116
|
+
background: `none !important`
|
117
|
+
},
|
118
|
+
"&::-webkit-scrollbar-track, & .MuiPaper-root ::-webkit-scrollbar-track": {
|
119
|
+
visibility: "hidden"
|
120
|
+
},
|
121
|
+
"&:hover": {
|
122
|
+
"&::-webkit-scrollbar-thumb, & .MuiPaper-root ::-webkit-scrollbar-thumb": {
|
123
|
+
background: `${theme?.palette?.editor?.brainPopupScroll} !important`
|
124
|
+
},
|
125
|
+
"&::-webkit-scrollbar-track, & .MuiPaper-root ::-webkit-scrollbar-track": {
|
126
|
+
visibility: "hidden"
|
127
|
+
}
|
128
|
+
},
|
129
|
+
"& .sld-wrpr": {
|
130
|
+
paddingLeft: "5px",
|
131
|
+
"& .sliderInput": {
|
132
|
+
background: theme?.palette?.editor?.inputFieldBgColor,
|
133
|
+
border: `1px solid ${theme?.palette?.editor?.inputFieldBorder}`,
|
134
|
+
borderRadius: "10px",
|
135
|
+
width: "46px !important",
|
136
|
+
marginLeft: "10px",
|
137
|
+
height: '36px !important'
|
138
|
+
}
|
139
|
+
},
|
140
|
+
'& .MuiFormHelperText-root': {
|
141
|
+
margin: '4px 0px 0px 0px',
|
142
|
+
color: theme?.palette?.editor?.closeButtonSvgStroke,
|
143
|
+
fontFamily: "Inter, sans-serif"
|
144
|
+
}
|
5
145
|
},
|
6
146
|
"& .MuiTypography-root": {
|
7
147
|
color: theme?.palette?.editor?.textColor
|
@@ -17,19 +157,61 @@ const useCommonStyle = theme => ({
|
|
17
157
|
},
|
18
158
|
"& .close-popupbtn": {
|
19
159
|
color: theme?.palette?.editor?.textColor
|
160
|
+
},
|
161
|
+
"& .MuiSvgIcon-root": {
|
162
|
+
color: theme?.palette?.editor?.textColor
|
20
163
|
}
|
21
164
|
},
|
22
165
|
sapcingInput: {
|
23
166
|
backgroundColor: theme?.palette?.editor?.background,
|
24
167
|
color: theme?.palette?.editor?.textColor
|
25
168
|
},
|
169
|
+
customCheckBox: {
|
170
|
+
padding: "0px",
|
171
|
+
"& .MuiCheckbox-root": {
|
172
|
+
padding: "8px 8px 8px 10px",
|
173
|
+
"&:hover": {
|
174
|
+
background: "unset !important"
|
175
|
+
}
|
176
|
+
},
|
177
|
+
"& button": {
|
178
|
+
width: "18px !important",
|
179
|
+
height: "18px !important",
|
180
|
+
borderRadius: "3px",
|
181
|
+
border: `1px solid ${theme?.palette?.editor?.buttonBorder3}`,
|
182
|
+
"& svg": {
|
183
|
+
width: "14px",
|
184
|
+
height: "14px"
|
185
|
+
}
|
186
|
+
},
|
187
|
+
"& .checkedIcon": {
|
188
|
+
background: "#2563EB",
|
189
|
+
borderColor: "#2563EB",
|
190
|
+
padding: "0px"
|
191
|
+
},
|
192
|
+
"& .unCheckedIcon": {
|
193
|
+
background: theme?.palette?.editor?.checkedIconBg
|
194
|
+
},
|
195
|
+
"& p": {
|
196
|
+
margin: "0px !important"
|
197
|
+
}
|
198
|
+
},
|
199
|
+
customPaddingInput: {
|
200
|
+
background: theme?.palette?.editor?.inputFieldBgColor,
|
201
|
+
border: `1px solid ${theme?.palette?.editor?.inputFieldBorder}`,
|
202
|
+
color: theme?.palette?.editor?.textColor,
|
203
|
+
borderRadius: "6px"
|
204
|
+
},
|
26
205
|
colorPickerPopup: {
|
27
206
|
"& .MuiPaper-root": {
|
28
207
|
overflow: "auto",
|
29
208
|
backgroundColor: theme?.palette?.editor?.background
|
30
209
|
},
|
31
210
|
"& .popup_tabs": {
|
32
|
-
backgroundColor: theme?.palette?.editor?.background
|
211
|
+
backgroundColor: theme?.palette?.editor?.background,
|
212
|
+
"@media only screen and (max-width: 899px)": {
|
213
|
+
width: "100% !important"
|
214
|
+
}
|
33
215
|
},
|
34
216
|
"& .popup_tabs-header": {
|
35
217
|
backgroundColor: theme?.palette?.editor?.background,
|
@@ -66,11 +248,14 @@ const useCommonStyle = theme => ({
|
|
66
248
|
}
|
67
249
|
}
|
68
250
|
},
|
251
|
+
colorPickerBtnBorder: {
|
252
|
+
border: `2px solid ${theme?.palette?.editor?.buttonBorder2} !important`
|
253
|
+
},
|
69
254
|
signaturePopup: {
|
70
255
|
"& .MuiPaper-root": {
|
71
|
-
backgroundColor: theme?.palette?.editor?.
|
256
|
+
backgroundColor: theme?.palette?.editor?.miniToolBarBackground,
|
72
257
|
"& .signature-canvas": {
|
73
|
-
backgroundColor:
|
258
|
+
backgroundColor: `${theme?.palette?.editor?.inputFieldBgColor} !important`
|
74
259
|
},
|
75
260
|
"& label": {
|
76
261
|
color: theme?.palette?.editor?.textColor
|
@@ -97,26 +282,97 @@ const useCommonStyle = theme => ({
|
|
97
282
|
borderColor: theme?.palette?.editor?.textColor
|
98
283
|
},
|
99
284
|
"& .upload-wrapper-ui": {
|
100
|
-
backgroundColor: theme?.palette?.type === "dark" ? "
|
285
|
+
backgroundColor: theme?.palette?.type === "dark" ? "#2563EB0F" : "#F8F9FF",
|
101
286
|
"& .MuiTypography-root": {
|
102
287
|
color: theme?.palette?.editor?.textColor
|
103
288
|
}
|
104
289
|
},
|
290
|
+
"& .typesignature-input-wrapper": {
|
291
|
+
"& .MuiInputBase-root": {
|
292
|
+
background: `${theme?.palette?.editor?.inputFieldBgColor} !important`,
|
293
|
+
borderRadius: "7px !important",
|
294
|
+
paddingRight: "6px !important"
|
295
|
+
},
|
296
|
+
"& .MuiInputBase-input": {
|
297
|
+
background: `${theme?.palette?.editor?.inputFieldBgColor} !important`
|
298
|
+
},
|
299
|
+
"& .MuiOutlinedInput-notchedOutline": {
|
300
|
+
border: `1px solid ${theme?.palette?.editor?.signaturePopUpInputFieldBorder}`
|
301
|
+
},
|
302
|
+
"& .Mui-focused": {
|
303
|
+
"& .MuiOutlinedInput-notchedOutline": {
|
304
|
+
border: `1px solid #2563EB !important`
|
305
|
+
}
|
306
|
+
},
|
307
|
+
"& button": {
|
308
|
+
background: `${theme?.palette?.editor?.closeButtonBgColor} !important`,
|
309
|
+
color: `${theme?.palette?.editor?.closeButtonSvgStroke} !important`
|
310
|
+
}
|
311
|
+
},
|
105
312
|
"& .typesignature-fontfamily": {
|
106
313
|
"& button": {
|
107
|
-
color: theme?.palette?.editor?.textColor
|
314
|
+
color: theme?.palette?.editor?.textColor,
|
315
|
+
background: `${theme?.palette?.editor?.signatureFontBtnBg} !important`,
|
316
|
+
border: `1px solid ${theme?.palette?.editor?.sectionSettingIconHover} !important`,
|
317
|
+
"& p": {
|
318
|
+
fontSize: "13px !important"
|
319
|
+
}
|
320
|
+
},
|
321
|
+
"& .active ": {
|
322
|
+
border: `1px solid #2563EB !important`
|
108
323
|
}
|
109
324
|
},
|
110
325
|
"& .MuiTab-root": {
|
111
|
-
color: theme?.palette?.editor?.
|
112
|
-
backgroundColor: theme?.palette?.editor?.
|
326
|
+
color: `${theme?.palette?.editor?.closeButtonSvgStroke} !important`,
|
327
|
+
backgroundColor: `${theme?.palette?.editor?.inputFieldBgColor} !important`,
|
328
|
+
opacity: "unset",
|
329
|
+
fontSize: "12px !important",
|
330
|
+
fontWeight: "500 !important",
|
331
|
+
border: `1px solid ${theme?.palette?.editor?.signaturePopUpTabButtonBorder} !important`
|
332
|
+
},
|
333
|
+
"& .Mui-selected": {
|
334
|
+
background: `${theme?.palette?.editor?.signaturePopUpTabButtonSelectedBg} !important`,
|
335
|
+
color: `${theme?.palette?.editor?.textColor} !important`,
|
336
|
+
border: `1px solid ${theme?.palette?.editor?.signaturePopUpTabButtonSelectedBorder} !important`,
|
337
|
+
"& .MuiGrid-root": {
|
338
|
+
"& svg": {
|
339
|
+
"& path": {
|
340
|
+
fill: `${theme?.palette?.editor?.signaturePopUpTabButtonSelectedSvg} !important`
|
341
|
+
}
|
342
|
+
}
|
343
|
+
}
|
113
344
|
},
|
114
345
|
"& .close-popupbtn": {
|
115
|
-
color: theme?.palette?.editor?.
|
346
|
+
color: theme?.palette?.editor?.closeButtonSvgStroke,
|
347
|
+
background: `${theme?.palette?.editor?.closeButtonBgColor} !important`
|
116
348
|
},
|
117
349
|
"& .deleteBtn": {
|
118
|
-
background: "transparent"
|
350
|
+
background: "transparent",
|
351
|
+
margin: "0px !important"
|
352
|
+
},
|
353
|
+
"& .MuiGrid-container": {
|
354
|
+
"& .workFlowButton": {
|
355
|
+
background: `${theme?.palette?.editor?.workFlowButtonBackground} !important`,
|
356
|
+
textTransform: "unset !important",
|
357
|
+
color: `${theme?.palette?.editor?.textColor} !important`,
|
358
|
+
fontSize: "14px !important",
|
359
|
+
fontWeight: "500 !important",
|
360
|
+
borderRadius: "25px",
|
361
|
+
padding: "5px 15px"
|
362
|
+
}
|
363
|
+
},
|
364
|
+
"& .MuiDialogActions-root": {
|
365
|
+
"& .deleteButtonSignature": {
|
366
|
+
background: `${theme?.palette?.editor?.closeButtonBackground} !important`,
|
367
|
+
color: `${theme?.palette?.editor?.deletePopUpButtonTextColor} !important`,
|
368
|
+
border: `1px solid ${theme?.palette?.editor?.closeButtonBorder} !important`
|
369
|
+
}
|
119
370
|
}
|
371
|
+
},
|
372
|
+
"& .disabledSaveBtn": {
|
373
|
+
background: "#2563EB33 !important",
|
374
|
+
color: theme?.palette?.type === "dark" && "#FFFFFF33 !important",
|
375
|
+
border: "1px solid #2563EB33 !important"
|
120
376
|
}
|
121
377
|
},
|
122
378
|
popupTitle2: {
|
@@ -126,11 +382,161 @@ const useCommonStyle = theme => ({
|
|
126
382
|
textOptions: {
|
127
383
|
"& .MuiPopover-root": {
|
128
384
|
backgroundColor: theme?.palette?.editor?.background
|
385
|
+
},
|
386
|
+
"& svg": {
|
387
|
+
width: "20px",
|
388
|
+
height: "24px",
|
389
|
+
color: `${theme?.palette?.editor?.svgTextAlignStrokeColor} !important`
|
390
|
+
}
|
391
|
+
},
|
392
|
+
textOptionsList: {
|
393
|
+
"& .MuiMenuItem-root": {
|
394
|
+
padding: "8px 12px",
|
395
|
+
fontSize: "12px",
|
396
|
+
color: theme?.palette?.editor?.menuOptionTextColor,
|
397
|
+
fontWeight: '500',
|
398
|
+
fontFamily: "Inter, sans-serif",
|
399
|
+
minHeight: '36px',
|
400
|
+
"&:hover": {
|
401
|
+
backgroundColor: theme?.palette?.editor?.menuOptionHoverBackground
|
402
|
+
}
|
403
|
+
},
|
404
|
+
'& .Mui-selected': {
|
405
|
+
background: `${theme?.palette?.editor?.menuOptionSelectedOption} !important`
|
406
|
+
},
|
407
|
+
"& .MuiListSubheader-root": {
|
408
|
+
color: "gray",
|
409
|
+
fontWeight: "bold",
|
410
|
+
fontSize: "12px"
|
411
|
+
},
|
412
|
+
"& .MuiPaper-root": {
|
413
|
+
borderRadius: '8px',
|
414
|
+
padding: '0px',
|
415
|
+
background: `${theme?.palette?.editor?.textWeightPopUpBackground} !important`
|
416
|
+
},
|
417
|
+
'& .MuiButtonBase-root': {
|
418
|
+
margin: '4px',
|
419
|
+
borderRadius: '6px'
|
420
|
+
},
|
421
|
+
'& .MuiList-root': {
|
422
|
+
padding: '0px'
|
129
423
|
}
|
130
424
|
},
|
131
425
|
datePicker: {
|
132
426
|
"& .react-datepicker-wrapper": {
|
133
|
-
width: "100%"
|
427
|
+
width: "100%",
|
428
|
+
"& .react-datepicker__input-container": {
|
429
|
+
"& .MuiInputBase-root": {
|
430
|
+
background: `${theme?.palette?.editor?.inputFieldBgColor} !important`,
|
431
|
+
"& .MuiInputBase-input": {
|
432
|
+
background: `${theme?.palette?.editor?.inputFieldBgColor} !important`,
|
433
|
+
color: `${theme?.palette?.editor?.textColor} !important`
|
434
|
+
},
|
435
|
+
"& .MuiOutlinedInput-notchedOutline": {
|
436
|
+
border: `1px solid ${theme?.palette?.editor?.signaturePopUpInputFieldBorder} !important`
|
437
|
+
}
|
438
|
+
}
|
439
|
+
}
|
440
|
+
}
|
441
|
+
},
|
442
|
+
signaturePopUpNameField: {
|
443
|
+
background: "transparent !important",
|
444
|
+
"& .MuiInputBase-root": {
|
445
|
+
borderRadius: "10px !important",
|
446
|
+
background: "transparent !important",
|
447
|
+
"& .MuiOutlinedInput-input": {
|
448
|
+
background: `${theme?.palette?.editor?.inputFieldBgColor} !important`,
|
449
|
+
borderRadius: "10px !important",
|
450
|
+
border: `1px solid ${theme?.palette?.editor?.signaturePopUpInputFieldBorder} !important`,
|
451
|
+
fontSize: "14px !important",
|
452
|
+
fontWeight: "500 !important"
|
453
|
+
},
|
454
|
+
"& .MuiOutlinedInput-notchedOutline": {
|
455
|
+
border: `1px solid transparent !important`
|
456
|
+
}
|
457
|
+
},
|
458
|
+
"& .Mui-focused": {
|
459
|
+
"& .MuiOutlinedInput-input": {
|
460
|
+
border: `1px solid #2563EB !important`
|
461
|
+
},
|
462
|
+
"& .MuiOutlinedInput-notchedOutline": {
|
463
|
+
border: `1px solid transparent !important`
|
464
|
+
}
|
465
|
+
}
|
466
|
+
},
|
467
|
+
buttonMoreOption: {
|
468
|
+
background: `${theme?.palette?.editor?.aiInputBackground} !important`,
|
469
|
+
border: `1px solid ${theme?.palette?.editor?.buttonBorder1} !important`,
|
470
|
+
padding: '4px !important',
|
471
|
+
'& svg': {
|
472
|
+
width: '18px !important',
|
473
|
+
height: '18px !important',
|
474
|
+
'& path': {
|
475
|
+
stroke: `${theme?.palette?.editor?.closeButtonSvgStroke} !important`
|
476
|
+
}
|
477
|
+
}
|
478
|
+
},
|
479
|
+
pageSettingPopUpRoot: {
|
480
|
+
padding: "16px 8px 16px 10px!important",
|
481
|
+
height: "100%"
|
482
|
+
},
|
483
|
+
buttonMoreOption2: {
|
484
|
+
background: `${theme?.palette?.editor?.aiInputBackground} !important`,
|
485
|
+
border: `1px solid ${theme?.palette?.editor?.buttonBorder1} !important`,
|
486
|
+
'& svg': {
|
487
|
+
'& path': {
|
488
|
+
fill: `${theme?.palette?.editor?.closeButtonSvgStroke} !important`
|
489
|
+
}
|
490
|
+
}
|
491
|
+
},
|
492
|
+
buttonMoreOption3: {
|
493
|
+
background: `${theme?.palette?.editor?.aiInputBackground} !important`,
|
494
|
+
border: `1px solid ${theme?.palette?.editor?.buttonBorder1} !important`,
|
495
|
+
padding: '5px !important',
|
496
|
+
'& svg': {
|
497
|
+
width: '16px !important',
|
498
|
+
height: '16px !important',
|
499
|
+
'& path': {
|
500
|
+
stroke: `${theme?.palette?.editor?.closeButtonSvgStroke} !important`
|
501
|
+
}
|
502
|
+
}
|
503
|
+
},
|
504
|
+
resizeButton: {
|
505
|
+
background: theme?.palette?.editor?.aiInputBackground,
|
506
|
+
border: `1px solid ${theme?.palette?.editor?.buttonBorder1}`,
|
507
|
+
padding: '5px !important',
|
508
|
+
borderRadius: '50% !important',
|
509
|
+
'& svg': {
|
510
|
+
width: '18px',
|
511
|
+
height: '18px',
|
512
|
+
'& path': {
|
513
|
+
fill: `${theme?.palette?.editor?.closeButtonSvgStroke}`
|
514
|
+
}
|
515
|
+
},
|
516
|
+
'&:hover': {
|
517
|
+
background: theme?.palette?.editor?.aiInputBackground
|
518
|
+
}
|
519
|
+
},
|
520
|
+
gradientFillBtn: {
|
521
|
+
background: `linear-gradient(112.61deg, #2C63ED 19.3%, #8360FD 88.14%) !important`,
|
522
|
+
textTransform: 'math-auto !important',
|
523
|
+
color: '#FFFFFF !important',
|
524
|
+
padding: '0px 12px !important',
|
525
|
+
height: '32px',
|
526
|
+
borderRadius: '8px',
|
527
|
+
fontWeight: '500',
|
528
|
+
fontSize: '14px'
|
529
|
+
},
|
530
|
+
emptyThumbBtn: {
|
531
|
+
background: `${theme?.palette?.editor?.sectionSettingIconHover} !important`,
|
532
|
+
color: `${theme?.palette?.editor?.textColor} !important`,
|
533
|
+
fontSize: '14px !important',
|
534
|
+
'& svg': {
|
535
|
+
width: '20px !important',
|
536
|
+
height: '20px !important',
|
537
|
+
'& path': {
|
538
|
+
stroke: `${theme?.palette?.editor?.closeButtonSvgStroke} !important`
|
539
|
+
}
|
134
540
|
}
|
135
541
|
}
|
136
542
|
});
|
@@ -14,15 +14,24 @@ const handleTableCell = (el, children) => {
|
|
14
14
|
});
|
15
15
|
return {
|
16
16
|
type: "table-cell",
|
17
|
-
overwriteChild: wrapChild
|
17
|
+
overwriteChild: wrapChild,
|
18
|
+
size: {
|
19
|
+
width: 120
|
20
|
+
}
|
18
21
|
};
|
19
22
|
};
|
20
|
-
const
|
23
|
+
const INLINE_TAGS = ["A", "ABBR", "B", "BDO", "CITE", "CODE", "DATA", "DEL", "DFN", "IMG", "INS", "KBD", "LABEL", "MARK", "Q", "SAMP", "SMALL", "SPAN", "SUB", "SUP", "TIME", "VAR"];
|
21
24
|
const paragraphType = el => {
|
22
25
|
const {
|
23
26
|
childNodes = []
|
24
27
|
} = el || {};
|
25
|
-
|
28
|
+
|
29
|
+
// if anyone of the child node is text node or wrapped with inline tags, it is considered to be an paragraph node
|
30
|
+
const isHavingText = childNodes?.length ? Array.from(childNodes)?.some(child => {
|
31
|
+
const isTextNode = child?.nodeType === 3;
|
32
|
+
const isHavingInlineTags = TEXT_TAGS[child?.nodeName] || INLINE_TAGS.includes(child.nodeName);
|
33
|
+
return isTextNode || isHavingInlineTags;
|
34
|
+
}) : null;
|
26
35
|
return isHavingText ? {
|
27
36
|
type: "paragraph"
|
28
37
|
} : {};
|
@@ -121,11 +130,10 @@ const TEXT_TAGS = {
|
|
121
130
|
}),
|
122
131
|
U: () => ({
|
123
132
|
underline: true
|
124
|
-
}),
|
125
|
-
B: () => ({
|
126
|
-
bold: true
|
127
133
|
})
|
134
|
+
// B: () => ({ bold: true }),
|
128
135
|
};
|
136
|
+
|
129
137
|
const deserialize = el => {
|
130
138
|
if (el.nodeType === 3) {
|
131
139
|
const match = /\r|\n/.exec(el.textContent);
|
@@ -145,12 +153,9 @@ const deserialize = el => {
|
|
145
153
|
}
|
146
154
|
let children = Array.from(parent.childNodes).map(deserialize).flat();
|
147
155
|
if (children.length === 0) {
|
148
|
-
children = {
|
149
|
-
|
150
|
-
|
151
|
-
text: ""
|
152
|
-
}]
|
153
|
-
};
|
156
|
+
children = [{
|
157
|
+
text: ""
|
158
|
+
}];
|
154
159
|
}
|
155
160
|
if (el.nodeName === "BODY") {
|
156
161
|
return jsx("fragment", {}, children);
|
@@ -166,7 +171,14 @@ const deserialize = el => {
|
|
166
171
|
}
|
167
172
|
if (TEXT_TAGS[nodeName]) {
|
168
173
|
const attrs = TEXT_TAGS[nodeName](el);
|
169
|
-
return children.map(child =>
|
174
|
+
return children.map(child => {
|
175
|
+
if (child?.type) {
|
176
|
+
// if any list elements (like ul, ol... tags) is wrapped inside the TEXT_TAGS, we will return child as it is, else return it as text node
|
177
|
+
return child;
|
178
|
+
} else {
|
179
|
+
return jsx("text", attrs, child);
|
180
|
+
}
|
181
|
+
});
|
170
182
|
}
|
171
183
|
return children;
|
172
184
|
};
|