@flozy/editor 5.4.0 → 5.4.1

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.
Files changed (192) hide show
  1. package/dist/Editor/ChatEditor.js +34 -25
  2. package/dist/Editor/CommonEditor.js +15 -29
  3. package/dist/Editor/Editor.css +18 -100
  4. package/dist/Editor/Elements/AI/AIInput.js +1 -0
  5. package/dist/Editor/Elements/AI/CustomSelect.js +11 -19
  6. package/dist/Editor/Elements/AI/PopoverAIInput.js +52 -58
  7. package/dist/Editor/Elements/AI/Styles.js +6 -24
  8. package/dist/Editor/Elements/Accordion/Accordion.js +1 -8
  9. package/dist/Editor/Elements/AppHeader/AppHeader.js +6 -6
  10. package/dist/Editor/Elements/Button/EditorButton.js +2 -9
  11. package/dist/Editor/Elements/Carousel/CarouselItem.js +3 -11
  12. package/dist/Editor/Elements/Color Picker/ColorButtons.js +5 -7
  13. package/dist/Editor/Elements/Color Picker/Styles.js +3 -7
  14. package/dist/Editor/Elements/Color Picker/defaultColors.js +2 -2
  15. package/dist/Editor/Elements/Divider/Divider.js +20 -36
  16. package/dist/Editor/Elements/Embed/Image.js +16 -51
  17. package/dist/Editor/Elements/Embed/Video.js +3 -26
  18. package/dist/Editor/Elements/Form/Form.js +2 -39
  19. package/dist/Editor/Elements/Form/FormElements/FormCheckbox.js +1 -7
  20. package/dist/Editor/Elements/Form/FormElements/FormDate.js +1 -7
  21. package/dist/Editor/Elements/Form/FormElements/FormEmail.js +1 -7
  22. package/dist/Editor/Elements/Form/FormElements/FormNumbers.js +1 -7
  23. package/dist/Editor/Elements/Form/FormElements/FormRadioButton.js +1 -7
  24. package/dist/Editor/Elements/Form/FormElements/FormText.js +1 -7
  25. package/dist/Editor/Elements/Form/FormElements/FormTextArea.js +1 -6
  26. package/dist/Editor/Elements/Form/FormPopup.js +9 -12
  27. package/dist/Editor/Elements/FreeGrid/FreeGrid.js +1 -1
  28. package/dist/Editor/Elements/FreeGrid/FreeGridItem.js +1 -20
  29. package/dist/Editor/Elements/FreeGrid/breakpointConstants.js +4 -4
  30. package/dist/Editor/Elements/FreeGrid/styles.js +1 -2
  31. package/dist/Editor/Elements/Grid/GridButton.js +2 -2
  32. package/dist/Editor/Elements/Grid/GridItem.js +36 -47
  33. package/dist/Editor/Elements/Grid/Styles.js +0 -50
  34. package/dist/Editor/Elements/Link/LinkButton.js +1 -1
  35. package/dist/Editor/Elements/List/CheckList.js +1 -2
  36. package/dist/Editor/Elements/Search/SearchAttachment.js +0 -1
  37. package/dist/Editor/Elements/Search/SearchButton.js +0 -1
  38. package/dist/Editor/Elements/Signature/Signature.css +1 -1
  39. package/dist/Editor/Elements/Signature/SignatureOptions/TypeSignature.js +2 -2
  40. package/dist/Editor/Elements/Signature/SignaturePopup.js +52 -17
  41. package/dist/Editor/Elements/SimpleText/index.js +1 -8
  42. package/dist/Editor/Elements/SimpleText/style.js +1 -20
  43. package/dist/Editor/Elements/Table/Styles.js +79 -82
  44. package/dist/Editor/Elements/Table/Table.js +140 -258
  45. package/dist/Editor/Elements/Table/TableCell.js +111 -365
  46. package/dist/Editor/Elements/Table/TablePopup.js +3 -9
  47. package/dist/Editor/Elements/Table/TableRow.js +2 -10
  48. package/dist/Editor/Elements/TopBanner/TopBanner.js +1 -2
  49. package/dist/Editor/MiniEditor.js +1 -15
  50. package/dist/Editor/Styles/EditorStyles.js +4 -13
  51. package/dist/Editor/Toolbar/FormatTools/BlockButton.js +0 -10
  52. package/dist/Editor/Toolbar/FormatTools/Dropdown.js +12 -7
  53. package/dist/Editor/Toolbar/FormatTools/FontFamilyAutocomplete.js +4 -26
  54. package/dist/Editor/Toolbar/FormatTools/MarkButton.js +0 -3
  55. package/dist/Editor/Toolbar/FormatTools/TextSize.js +5 -5
  56. package/dist/Editor/Toolbar/Mini/MiniToolbar.js +6 -3
  57. package/dist/Editor/Toolbar/Mini/Styles.js +1 -4
  58. package/dist/Editor/Toolbar/PopupTool/MiniTextFormat/InfinityAITool.js +3 -7
  59. package/dist/Editor/Toolbar/PopupTool/MiniTextFormat/index.js +4 -6
  60. package/dist/Editor/Toolbar/PopupTool/PopperHeader.js +15 -19
  61. package/dist/Editor/Toolbar/PopupTool/PopupToolStyle.js +57 -555
  62. package/dist/Editor/Toolbar/PopupTool/TextFormat.js +16 -73
  63. package/dist/Editor/Toolbar/PopupTool/index.js +5 -3
  64. package/dist/Editor/Toolbar/Toolbar.js +0 -6
  65. package/dist/Editor/Toolbar/toolbarGroups.js +0 -4
  66. package/dist/Editor/assets/svg/BrainIcon.js +2 -2
  67. package/dist/Editor/assets/svg/SettingsIcon.js +4 -4
  68. package/dist/Editor/common/ColorPickerButton.js +45 -85
  69. package/dist/Editor/common/DnD/Draggable.js +1 -2
  70. package/dist/Editor/common/FontLoader/FontLoader.js +4 -4
  71. package/dist/Editor/common/Icon.js +20 -23
  72. package/dist/Editor/common/ImageSelector/Options/Upload.js +1 -2
  73. package/dist/Editor/common/ImageSelector/Styles.js +6 -47
  74. package/dist/Editor/common/ImageSelector/UploadStyles.js +6 -18
  75. package/dist/Editor/common/LinkSettings/NavComponents.js +1 -2
  76. package/dist/Editor/common/LinkSettings/index.js +1 -2
  77. package/dist/Editor/common/MentionsPopup/Styles.js +8 -143
  78. package/dist/Editor/common/MentionsPopup/index.js +1 -1
  79. package/dist/Editor/common/RnD/ElementSettings/Settings/FormSettings.js +12 -108
  80. package/dist/Editor/common/RnD/GuideLines/styles.js +3 -3
  81. package/dist/Editor/common/RnD/ShadowElement.js +1 -1
  82. package/dist/Editor/common/RnD/SwitchViewport/SwitchViewport.js +2 -14
  83. package/dist/Editor/common/RnD/Utils/gridDropItem.js +6 -9
  84. package/dist/Editor/common/RnD/VirtualElement/index.js +1 -5
  85. package/dist/Editor/common/RnD/index.js +2 -3
  86. package/dist/Editor/common/Section/index.js +3 -3
  87. package/dist/Editor/common/Section/styles.js +1 -5
  88. package/dist/Editor/common/Shorthands/elements.js +1 -13
  89. package/dist/Editor/common/StyleBuilder/fieldStyle.js +1 -2
  90. package/dist/Editor/common/StyleBuilder/fieldTypes/backgroundImage.js +3 -9
  91. package/dist/Editor/common/StyleBuilder/fieldTypes/bannerSpacing.js +7 -35
  92. package/dist/Editor/common/StyleBuilder/fieldTypes/borderRadius.js +2 -15
  93. package/dist/Editor/common/StyleBuilder/fieldTypes/card.js +2 -10
  94. package/dist/Editor/common/StyleBuilder/fieldTypes/color.js +1 -2
  95. package/dist/Editor/common/StyleBuilder/fieldTypes/fontSize.js +1 -1
  96. package/dist/Editor/common/StyleBuilder/fieldTypes/icons.js +0 -2
  97. package/dist/Editor/common/StyleBuilder/fieldTypes/index.js +1 -3
  98. package/dist/Editor/common/StyleBuilder/fieldTypes/radiusStyle.js +11 -11
  99. package/dist/Editor/common/StyleBuilder/fieldTypes/saveAsTemplate.js +6 -22
  100. package/dist/Editor/common/StyleBuilder/fieldTypes/selectBox.js +2 -21
  101. package/dist/Editor/common/StyleBuilder/fieldTypes/text.js +4 -20
  102. package/dist/Editor/common/StyleBuilder/fieldTypes/textOptions.js +2 -12
  103. package/dist/Editor/common/StyleBuilder/formStyle.js +149 -268
  104. package/dist/Editor/common/StyleBuilder/index.js +20 -101
  105. package/dist/Editor/common/StyleBuilder/pageSettingsStyle.js +0 -4
  106. package/dist/Editor/common/StyleBuilder/tableStyle.js +25 -69
  107. package/dist/Editor/common/SwipeableDrawer/style.js +4 -15
  108. package/dist/Editor/common/ToolbarIcon.js +1 -1
  109. package/dist/Editor/common/Uploader.js +36 -46
  110. package/dist/Editor/common/iconListV2.js +60 -616
  111. package/dist/Editor/common/iconslist.js +17 -23
  112. package/dist/Editor/commonStyle.js +11 -417
  113. package/dist/Editor/helper/deserialize/index.js +1 -4
  114. package/dist/Editor/helper/index.js +4 -17
  115. package/dist/Editor/helper/theme.js +1 -24
  116. package/dist/Editor/hooks/useMouseMove.js +2 -5
  117. package/dist/Editor/plugins/withCustomDeleteBackward.js +4 -36
  118. package/dist/Editor/plugins/withEmbeds.js +26 -30
  119. package/dist/Editor/plugins/withHTML.js +10 -61
  120. package/dist/Editor/plugins/withLayout.js +0 -1
  121. package/dist/Editor/utils/SlateUtilityFunctions.js +12 -39
  122. package/dist/Editor/utils/brains.js +1 -1
  123. package/dist/Editor/utils/button.js +4 -4
  124. package/dist/Editor/utils/chatEditor/SlateUtilityFunctions.js +1 -26
  125. package/dist/Editor/utils/customHooks/useResize.js +4 -7
  126. package/dist/Editor/utils/customHooks/useTableResize.js +2 -6
  127. package/dist/Editor/utils/embed.js +1 -2
  128. package/dist/Editor/utils/events.js +1 -0
  129. package/dist/Editor/utils/font.js +4 -11
  130. package/dist/Editor/utils/formfield.js +4 -8
  131. package/dist/Editor/utils/helper.js +2 -103
  132. package/dist/Editor/utils/insertNewLine.js +1 -19
  133. package/dist/Editor/utils/pageSettings.js +2 -14
  134. package/dist/Editor/utils/serializeToText.js +0 -2
  135. package/dist/Editor/utils/table.js +24 -228
  136. package/package.json +2 -2
  137. package/dist/Editor/Elements/DataView/DataView.js +0 -124
  138. package/dist/Editor/Elements/DataView/DataViewButton.js +0 -23
  139. package/dist/Editor/Elements/DataView/Layouts/ColumnView.js +0 -67
  140. package/dist/Editor/Elements/DataView/Layouts/DataTypes/CheckType.js +0 -33
  141. package/dist/Editor/Elements/DataView/Layouts/DataTypes/Components/Select.js +0 -162
  142. package/dist/Editor/Elements/DataView/Layouts/DataTypes/Components/SimpleSelect.js +0 -40
  143. package/dist/Editor/Elements/DataView/Layouts/DataTypes/Components/styles.js +0 -67
  144. package/dist/Editor/Elements/DataView/Layouts/DataTypes/DateType.js +0 -35
  145. package/dist/Editor/Elements/DataView/Layouts/DataTypes/MultiSelectType.js +0 -39
  146. package/dist/Editor/Elements/DataView/Layouts/DataTypes/NumberType.js +0 -30
  147. package/dist/Editor/Elements/DataView/Layouts/DataTypes/PersonType.js +0 -30
  148. package/dist/Editor/Elements/DataView/Layouts/DataTypes/SelectType.js +0 -35
  149. package/dist/Editor/Elements/DataView/Layouts/DataTypes/TextType.js +0 -36
  150. package/dist/Editor/Elements/DataView/Layouts/DataTypes/index.js +0 -17
  151. package/dist/Editor/Elements/DataView/Layouts/FilterSort/SortOptions/ChooseField.js +0 -29
  152. package/dist/Editor/Elements/DataView/Layouts/FilterSort/SortOptions/ChooseSort.js +0 -38
  153. package/dist/Editor/Elements/DataView/Layouts/FilterSort/SortOptions/index.js +0 -74
  154. package/dist/Editor/Elements/DataView/Layouts/FilterSort/index.js +0 -64
  155. package/dist/Editor/Elements/DataView/Layouts/FilterSort/styles.js +0 -106
  156. package/dist/Editor/Elements/DataView/Layouts/FilterView.js +0 -174
  157. package/dist/Editor/Elements/DataView/Layouts/Formula.js +0 -29
  158. package/dist/Editor/Elements/DataView/Layouts/Options/AddOptions.js +0 -113
  159. package/dist/Editor/Elements/DataView/Layouts/Options/AddProperty.js +0 -37
  160. package/dist/Editor/Elements/DataView/Layouts/Options/AllProperties.js +0 -111
  161. package/dist/Editor/Elements/DataView/Layouts/Options/ChangeProperty.js +0 -60
  162. package/dist/Editor/Elements/DataView/Layouts/Options/ColumnsList.js +0 -36
  163. package/dist/Editor/Elements/DataView/Layouts/Options/Constants.js +0 -101
  164. package/dist/Editor/Elements/DataView/Layouts/Options/EditOption.js +0 -160
  165. package/dist/Editor/Elements/DataView/Layouts/Options/EditProperty.js +0 -190
  166. package/dist/Editor/Elements/DataView/Layouts/Options/FilterProperty.js +0 -42
  167. package/dist/Editor/Elements/DataView/Layouts/Options/PropertyList.js +0 -30
  168. package/dist/Editor/Elements/DataView/Layouts/Options/index.js +0 -110
  169. package/dist/Editor/Elements/DataView/Layouts/Options/styles.js +0 -179
  170. package/dist/Editor/Elements/DataView/Layouts/TableStyles.js +0 -112
  171. package/dist/Editor/Elements/DataView/Layouts/TableView.js +0 -227
  172. package/dist/Editor/Elements/DataView/Layouts/ViewData.js +0 -80
  173. package/dist/Editor/Elements/DataView/Layouts/colStyles.js +0 -10
  174. package/dist/Editor/Elements/DataView/Layouts/index.js +0 -25
  175. package/dist/Editor/Elements/DataView/Providers/DataViewProvider.js +0 -281
  176. package/dist/Editor/Elements/DataView/Utils/globalSearch.js +0 -15
  177. package/dist/Editor/Elements/DataView/Utils/multiSortRows.js +0 -74
  178. package/dist/Editor/Elements/DataView/styles.js +0 -154
  179. package/dist/Editor/Elements/Table/AddRowCol.js +0 -77
  180. package/dist/Editor/Elements/Table/DragButton.js +0 -142
  181. package/dist/Editor/Elements/Table/DragStyles.js +0 -70
  182. package/dist/Editor/Elements/Table/Draggable.js +0 -25
  183. package/dist/Editor/Elements/Table/Droppable.js +0 -53
  184. package/dist/Editor/Elements/Table/TableTool.js +0 -101
  185. package/dist/Editor/Elements/Table/tableHelper.js +0 -71
  186. package/dist/Editor/assets/svg/TableIcons.js +0 -220
  187. package/dist/Editor/common/Select/index.js +0 -20
  188. package/dist/Editor/common/Select/styles.js +0 -17
  189. package/dist/Editor/common/StyleBuilder/fieldTypes/lineSpacing.js +0 -79
  190. package/dist/Editor/helper/enforceDateFormat.js +0 -41
  191. package/dist/Editor/hooks/useTable.js +0 -210
  192. package/dist/Editor/utils/dataView.js +0 -43
@@ -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: "currentColor",
142
- stroke: "currentColor",
141
+ fill: "#64748B",
142
+ stroke: "#64748B",
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: "#64748B"
867
+ fill: "#292D32"
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: "#64748B"
871
+ fill: "#292D32"
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: "#64748B"
875
+ fill: "#292D32"
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: "#64748B"
879
+ fill: "#292D32"
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: "#64748B"
891
+ fill: "#292D32"
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: "#64748B"
895
+ fill: "#292D32"
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: "#64748B"
899
+ fill: "#292D32"
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: "#64748B"
903
+ fill: "#292D32"
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: "#64748B"
915
+ fill: "#292D32"
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: "#64748B"
919
+ fill: "#292D32"
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: "#64748B"
923
+ fill: "#292D32"
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: "#64748B"
927
+ fill: "#292D32"
928
928
  })]
929
929
  });
930
930
  export const JustifyStartIcon = props => /*#__PURE__*/_jsxs("svg", {
@@ -933,9 +933,6 @@ 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
- },
939
936
  children: [/*#__PURE__*/_jsx("path", {
940
937
  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",
941
938
  stroke: "#64748B",
@@ -1346,22 +1343,19 @@ export const GridAddSectionIcon = props => /*#__PURE__*/_jsxs("svg", {
1346
1343
  stroke: "#64748B",
1347
1344
  strokeWidth: "1.5",
1348
1345
  strokeLinecap: "round",
1349
- strokeLinejoin: "round",
1350
- className: "fillStroke"
1346
+ strokeLinejoin: "round"
1351
1347
  }), /*#__PURE__*/_jsx("path", {
1352
1348
  d: "M10.1733 6.125V14.875",
1353
1349
  stroke: "#64748B",
1354
1350
  strokeWidth: "1.5",
1355
1351
  strokeLinecap: "round",
1356
- strokeLinejoin: "round",
1357
- className: "fillStroke"
1352
+ strokeLinejoin: "round"
1358
1353
  }), /*#__PURE__*/_jsx("path", {
1359
1354
  d: "M5.79834 10.5H14.5483",
1360
1355
  stroke: "#64748B",
1361
1356
  strokeWidth: "1.5",
1362
1357
  strokeLinecap: "round",
1363
- strokeLinejoin: "round",
1364
- className: "fillStroke"
1358
+ strokeLinejoin: "round"
1365
1359
  })]
1366
1360
  });
1367
1361
  export const FormIcon = () => {
@@ -1,147 +1,7 @@
1
1
  const useCommonStyle = theme => ({
2
2
  sideBarDrawer: {
3
3
  "& .MuiPaper-root": {
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
- }
4
+ backgroundColor: theme?.palette?.editor?.background
145
5
  },
146
6
  "& .MuiTypography-root": {
147
7
  color: theme?.palette?.editor?.textColor
@@ -157,61 +17,19 @@ const useCommonStyle = theme => ({
157
17
  },
158
18
  "& .close-popupbtn": {
159
19
  color: theme?.palette?.editor?.textColor
160
- },
161
- "& .MuiSvgIcon-root": {
162
- color: theme?.palette?.editor?.textColor
163
20
  }
164
21
  },
165
22
  sapcingInput: {
166
23
  backgroundColor: theme?.palette?.editor?.background,
167
24
  color: theme?.palette?.editor?.textColor
168
25
  },
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
- },
205
26
  colorPickerPopup: {
206
27
  "& .MuiPaper-root": {
207
28
  overflow: "auto",
208
29
  backgroundColor: theme?.palette?.editor?.background
209
30
  },
210
31
  "& .popup_tabs": {
211
- backgroundColor: theme?.palette?.editor?.background,
212
- "@media only screen and (max-width: 899px)": {
213
- width: "100% !important"
214
- }
32
+ backgroundColor: theme?.palette?.editor?.background
215
33
  },
216
34
  "& .popup_tabs-header": {
217
35
  backgroundColor: theme?.palette?.editor?.background,
@@ -248,14 +66,11 @@ const useCommonStyle = theme => ({
248
66
  }
249
67
  }
250
68
  },
251
- colorPickerBtnBorder: {
252
- border: `2px solid ${theme?.palette?.editor?.buttonBorder2} !important`
253
- },
254
69
  signaturePopup: {
255
70
  "& .MuiPaper-root": {
256
- backgroundColor: theme?.palette?.editor?.miniToolBarBackground,
71
+ backgroundColor: theme?.palette?.editor?.background,
257
72
  "& .signature-canvas": {
258
- backgroundColor: `${theme?.palette?.editor?.inputFieldBgColor} !important`
73
+ backgroundColor: "#FFF"
259
74
  },
260
75
  "& label": {
261
76
  color: theme?.palette?.editor?.textColor
@@ -282,97 +97,26 @@ const useCommonStyle = theme => ({
282
97
  borderColor: theme?.palette?.editor?.textColor
283
98
  },
284
99
  "& .upload-wrapper-ui": {
285
- backgroundColor: theme?.palette?.type === "dark" ? "#2563EB0F" : "#F8F9FF",
100
+ backgroundColor: theme?.palette?.type === "dark" ? "transparent" : "#F8F9FF",
286
101
  "& .MuiTypography-root": {
287
102
  color: theme?.palette?.editor?.textColor
288
103
  }
289
104
  },
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
- },
312
105
  "& .typesignature-fontfamily": {
313
106
  "& button": {
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`
107
+ color: theme?.palette?.editor?.textColor
323
108
  }
324
109
  },
325
110
  "& .MuiTab-root": {
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
- }
111
+ color: theme?.palette?.editor?.textColor,
112
+ backgroundColor: theme?.palette?.editor?.background
344
113
  },
345
114
  "& .close-popupbtn": {
346
- color: theme?.palette?.editor?.closeButtonSvgStroke,
347
- background: `${theme?.palette?.editor?.closeButtonBgColor} !important`
115
+ color: theme?.palette?.editor?.textColor
348
116
  },
349
117
  "& .deleteBtn": {
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
- }
118
+ background: "transparent"
370
119
  }
371
- },
372
- "& .disabledSaveBtn": {
373
- background: "#2563EB33 !important",
374
- color: theme?.palette?.type === "dark" && "#FFFFFF33 !important",
375
- border: "1px solid #2563EB33 !important"
376
120
  }
377
121
  },
378
122
  popupTitle2: {
@@ -382,161 +126,11 @@ const useCommonStyle = theme => ({
382
126
  textOptions: {
383
127
  "& .MuiPopover-root": {
384
128
  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'
423
129
  }
424
130
  },
425
131
  datePicker: {
426
132
  "& .react-datepicker-wrapper": {
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
- }
133
+ width: "100%"
540
134
  }
541
135
  }
542
136
  });
@@ -14,10 +14,7 @@ const handleTableCell = (el, children) => {
14
14
  });
15
15
  return {
16
16
  type: "table-cell",
17
- overwriteChild: wrapChild,
18
- size: {
19
- width: 120
20
- }
17
+ overwriteChild: wrapChild
21
18
  };
22
19
  };
23
20
  const PARA_WRAP = ["A"];
@@ -308,13 +308,7 @@ export const getTextColor = (color = "") => {
308
308
  color: "transparent !important",
309
309
  caretColor: "black",
310
310
  "& span": {
311
- color: "transparent !important",
312
- "& ::selection": {
313
- color: "#000 !important"
314
- }
315
- },
316
- "& ::selection": {
317
- color: "#000 !important"
311
+ color: "transparent !important"
318
312
  }
319
313
  } : {
320
314
  color
@@ -337,14 +331,14 @@ export const isCarouselSelected = editor => {
337
331
  return false;
338
332
  }
339
333
  const [nodeEntry] = Editor.nodes(editor, {
340
- match: n => !Editor.isEditor(n) && Element.isElement(n) && n.type === "carousel"
334
+ match: n => !Editor.isEditor(n) && Element.isElement(n) && n.type === 'carousel'
341
335
  });
342
336
  if (!nodeEntry) {
343
337
  return false;
344
338
  }
345
339
  const [node] = nodeEntry;
346
340
  const carouselDom = ReactEditor.toDOMNode(editor, node);
347
- const isEdit = carouselDom.classList.contains("carousel_slider_edit");
341
+ const isEdit = carouselDom.classList.contains('carousel_slider_edit');
348
342
  return !isEdit;
349
343
  } catch (err) {
350
344
  console.log(err);
@@ -358,7 +352,7 @@ export const clearBrainText = editor => {
358
352
  } = editor;
359
353
  if (selection) {
360
354
  const [currentNode, currentPath] = Editor.node(editor, selection);
361
- const cleanedText = Node.string(currentNode).replace(/\/(?:b(?:rain|rai|ra|r)?)?/g, "").trim();
355
+ const cleanedText = Node.string(currentNode).replace(/\/b(?:rain|rai|ra|r)?/g, "").trim();
362
356
  Transforms.insertText(editor, cleanedText, {
363
357
  at: currentPath
364
358
  });
@@ -366,11 +360,4 @@ export const clearBrainText = editor => {
366
360
  } catch (err) {
367
361
  console.log(err);
368
362
  }
369
- };
370
- export const clearSelectionOnly = editor => {
371
- try {
372
- Transforms.deselect(editor);
373
- } catch (err) {
374
- console.log(err);
375
- }
376
363
  };