@flozy/editor 9.6.6 → 9.6.8

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 (256) hide show
  1. package/dist/Editor/ChatEditor.js +19 -26
  2. package/dist/Editor/CommonEditor.js +25 -139
  3. package/dist/Editor/DialogWrapper.js +25 -31
  4. package/dist/Editor/Editor.css +9 -13
  5. package/dist/Editor/Elements/AI/AIInput.js +3 -5
  6. package/dist/Editor/Elements/AI/CustomSelect.js +5 -9
  7. package/dist/Editor/Elements/AI/PopoverAIInput.js +2 -4
  8. package/dist/Editor/Elements/Accordion/Accordion.js +3 -4
  9. package/dist/Editor/Elements/Accordion/AccordionBtnPopup.js +1 -4
  10. package/dist/Editor/Elements/Accordion/AccordionButton.js +2 -6
  11. package/dist/Editor/Elements/Accordion/AccordionTitlePopup.js +1 -4
  12. package/dist/Editor/Elements/AppHeader/AppHeader.js +3 -3
  13. package/dist/Editor/Elements/AppHeader/AppHeaderButton.js +2 -6
  14. package/dist/Editor/Elements/AppHeader/AppHeaderPopup.js +1 -4
  15. package/dist/Editor/Elements/Attachments/AttachmentsButton.js +1 -4
  16. package/dist/Editor/Elements/Button/ButtonPopup.js +1 -4
  17. package/dist/Editor/Elements/Button/ButtonToolIcon.js +2 -6
  18. package/dist/Editor/Elements/Button/EditorButton.js +30 -43
  19. package/dist/Editor/Elements/Carousel/Carousel.js +4 -5
  20. package/dist/Editor/Elements/Carousel/CarouselButton.js +2 -6
  21. package/dist/Editor/Elements/Carousel/CarouselItem.js +2 -3
  22. package/dist/Editor/Elements/ChipText/ChipTextPopup.js +1 -4
  23. package/dist/Editor/Elements/CodeToText/CodeToText.js +4 -5
  24. package/dist/Editor/Elements/CodeToText/HtmlContextMenu.js +2 -6
  25. package/dist/Editor/Elements/Color Picker/ColorButtons.js +14 -60
  26. package/dist/Editor/Elements/Color Picker/ColorPicker.css +1 -25
  27. package/dist/Editor/Elements/Color Picker/ColorPicker.js +7 -10
  28. package/dist/Editor/Elements/Color Picker/Styles.js +13 -15
  29. package/dist/Editor/Elements/Colorbox/ColorboxButton.js +2 -6
  30. package/dist/Editor/Elements/DataView/DataView.js +2 -5
  31. package/dist/Editor/Elements/DataView/DataViewButton.js +2 -6
  32. package/dist/Editor/Elements/DataView/Layouts/ColumnView.js +2 -4
  33. package/dist/Editor/Elements/DataView/Layouts/DataTypes/MultiSelectType.js +6 -21
  34. package/dist/Editor/Elements/DataView/Layouts/FilterSort/SortOptions/ChooseSort.js +12 -13
  35. package/dist/Editor/Elements/DataView/Layouts/FilterSort/SortOptions/index.js +4 -7
  36. package/dist/Editor/Elements/DataView/Layouts/FilterSort/index.js +5 -7
  37. package/dist/Editor/Elements/DataView/Layouts/FilterView.js +7 -9
  38. package/dist/Editor/Elements/DataView/Layouts/Options/AddOptions.js +3 -8
  39. package/dist/Editor/Elements/DataView/Layouts/Options/AddProperty.js +3 -5
  40. package/dist/Editor/Elements/DataView/Layouts/Options/AllProperties.js +5 -6
  41. package/dist/Editor/Elements/DataView/Layouts/Options/ChangeProperty.js +3 -5
  42. package/dist/Editor/Elements/DataView/Layouts/Options/EditOption.js +7 -9
  43. package/dist/Editor/Elements/DataView/Layouts/Options/EditProperty.js +12 -15
  44. package/dist/Editor/Elements/DataView/Layouts/Options/FilterProperty.js +2 -3
  45. package/dist/Editor/Elements/DataView/Layouts/Options/PropertyList.js +2 -3
  46. package/dist/Editor/Elements/DataView/Layouts/Options/index.js +6 -23
  47. package/dist/Editor/Elements/DataView/Layouts/TableView.js +4 -6
  48. package/dist/Editor/Elements/DataView/Layouts/ViewData.js +4 -8
  49. package/dist/Editor/Elements/DataView/Layouts/index.js +1 -3
  50. package/dist/Editor/Elements/DataView/Providers/DataViewProvider.js +2 -5
  51. package/dist/Editor/Elements/Divider/Divider.js +3 -5
  52. package/dist/Editor/Elements/Divider/DividerButton.js +2 -6
  53. package/dist/Editor/Elements/Divider/DividerPopup.js +2 -3
  54. package/dist/Editor/Elements/Embed/Embed.js +1 -4
  55. package/dist/Editor/Elements/Embed/EmbedPopup.js +1 -4
  56. package/dist/Editor/Elements/Embed/Image.js +9 -14
  57. package/dist/Editor/Elements/Embed/Video.js +6 -9
  58. package/dist/Editor/Elements/EmbedScript/Code.js +4 -7
  59. package/dist/Editor/Elements/EmbedScript/EmbedScript.js +2 -6
  60. package/dist/Editor/Elements/EmbedScript/EmbedScriptPopup.js +5 -8
  61. package/dist/Editor/Elements/Emoji/EmojiButton.js +2 -6
  62. package/dist/Editor/Elements/Form/FieldPopup.js +1 -4
  63. package/dist/Editor/Elements/Form/Form.js +9 -12
  64. package/dist/Editor/Elements/Form/FormButton.js +2 -6
  65. package/dist/Editor/Elements/Form/FormPopup.js +2 -3
  66. package/dist/Editor/Elements/Form/Workflow/FormWorkflow.js +12 -18
  67. package/dist/Editor/Elements/Form/Workflow/ListWorkflow.js +8 -13
  68. package/dist/Editor/Elements/Form/Workflow/MoreOptions.js +2 -3
  69. package/dist/Editor/Elements/Form/Workflow/Styles.js +22 -24
  70. package/dist/Editor/Elements/Form/Workflow/UserInputs.js +2 -4
  71. package/dist/Editor/Elements/Form/Workflow/index.js +9 -15
  72. package/dist/Editor/Elements/FreeGrid/FreeGrid.js +23 -67
  73. package/dist/Editor/Elements/FreeGrid/FreeGridBox.js +6 -31
  74. package/dist/Editor/Elements/FreeGrid/FreeGridButton.js +2 -6
  75. package/dist/Editor/Elements/FreeGrid/FreeGridItem.js +5 -38
  76. package/dist/Editor/Elements/FreeGrid/Options/AddElement.js +2 -3
  77. package/dist/Editor/Elements/FreeGrid/Options/More.js +4 -10
  78. package/dist/Editor/Elements/FreeGrid/styles.js +0 -3
  79. package/dist/Editor/Elements/Grid/Grid.js +10 -13
  80. package/dist/Editor/Elements/Grid/GridButton.js +5 -9
  81. package/dist/Editor/Elements/Grid/GridItem.js +8 -14
  82. package/dist/Editor/Elements/Grid/GridItemPopup.js +1 -4
  83. package/dist/Editor/Elements/Grid/GridPopup.js +1 -4
  84. package/dist/Editor/Elements/Grid/SectionPopup.js +1 -4
  85. package/dist/Editor/Elements/Link/Link.js +5 -8
  86. package/dist/Editor/Elements/Link/LinkButton.js +1 -4
  87. package/dist/Editor/Elements/List/CheckList.js +9 -14
  88. package/dist/Editor/Elements/NewLine/NewLineButton.js +2 -6
  89. package/dist/Editor/Elements/PageSettings/PageSettingsButton.js +1 -4
  90. package/dist/Editor/Elements/PageSettings/PageSettingsPopup.js +1 -4
  91. package/dist/Editor/Elements/Search/SearchButton.js +4 -7
  92. package/dist/Editor/Elements/Search/SearchList.js +3 -7
  93. package/dist/Editor/Elements/Signature/SignatureButton.js +2 -6
  94. package/dist/Editor/Elements/Signature/SignatureOptions/TypeSignature.js +2 -6
  95. package/dist/Editor/Elements/Signature/SignatureOptions/UploadSignature.js +1 -4
  96. package/dist/Editor/Elements/Signature/SignaturePopup.js +16 -17
  97. package/dist/Editor/Elements/SimpleText/index.js +4 -5
  98. package/dist/Editor/Elements/SimpleText/style.js +2 -2
  99. package/dist/Editor/Elements/Table/DragButton.js +2 -4
  100. package/dist/Editor/Elements/Table/Table.js +12 -24
  101. package/dist/Editor/Elements/Table/TablePopup.js +1 -4
  102. package/dist/Editor/Elements/Table/TableSelector.js +6 -10
  103. package/dist/Editor/Elements/Table/TableTool.js +4 -8
  104. package/dist/Editor/Elements/Title/title.js +0 -10
  105. package/dist/Editor/Elements/TopBanner/TopBannerButton.js +1 -4
  106. package/dist/Editor/Elements/Variables/VariableButton.js +1 -10
  107. package/dist/Editor/MiniEditor.js +3 -10
  108. package/dist/Editor/Styles/EditorStyles.js +5 -5
  109. package/dist/Editor/Toolbar/Basic/index.js +1 -2
  110. package/dist/Editor/Toolbar/FormatTools/BlockButton.js +2 -6
  111. package/dist/Editor/Toolbar/FormatTools/Dropdown.js +3 -27
  112. package/dist/Editor/Toolbar/FormatTools/FontFamilyAutocomplete.js +3 -4
  113. package/dist/Editor/Toolbar/FormatTools/MarkButton.js +4 -8
  114. package/dist/Editor/Toolbar/FormatTools/TextSize.js +13 -10
  115. package/dist/Editor/Toolbar/Mini/MiniToolbar.js +5 -12
  116. package/dist/Editor/Toolbar/PopupTool/AddTemplates.js +5 -10
  117. package/dist/Editor/Toolbar/PopupTool/ButtonTemplatesCard.js +4 -10
  118. package/dist/Editor/Toolbar/PopupTool/FullViewCard.js +4 -10
  119. package/dist/Editor/Toolbar/PopupTool/MiniTextFormat/MiniColorPicker.js +3 -9
  120. package/dist/Editor/Toolbar/PopupTool/MiniTextFormat/SelectAlignment.js +35 -42
  121. package/dist/Editor/Toolbar/PopupTool/MiniTextFormat/SelectFontSize.js +13 -6
  122. package/dist/Editor/Toolbar/PopupTool/MiniTextFormat/SelectList.js +51 -58
  123. package/dist/Editor/Toolbar/PopupTool/MiniTextFormat/SelectSuperSubscript.js +22 -29
  124. package/dist/Editor/Toolbar/PopupTool/MiniTextFormat/SelectTypography.js +87 -226
  125. package/dist/Editor/Toolbar/PopupTool/MiniTextFormat/index.js +10 -20
  126. package/dist/Editor/Toolbar/PopupTool/PopperHeader.js +5 -10
  127. package/dist/Editor/Toolbar/PopupTool/PopupToolStyle.js +11 -71
  128. package/dist/Editor/Toolbar/PopupTool/TemplateCard.js +5 -11
  129. package/dist/Editor/Toolbar/PopupTool/TextFormat.js +45 -128
  130. package/dist/Editor/Toolbar/PopupTool/index.js +10 -20
  131. package/dist/Editor/Toolbar/Toolbar.js +10 -20
  132. package/dist/Editor/Toolbar/toolbarGroups.js +6 -48
  133. package/dist/Editor/common/ColorPickerButton.js +14 -39
  134. package/dist/Editor/common/CustomDialog/index.js +10 -8
  135. package/dist/Editor/common/DnD/DragHandleButton.js +1 -1
  136. package/dist/Editor/common/FontLoader/FontLoader.js +0 -3
  137. package/dist/Editor/common/Icon.js +0 -28
  138. package/dist/Editor/common/ImageSelector/ImageSelector.js +8 -10
  139. package/dist/Editor/common/ImageSelector/Options/AddLink.js +4 -6
  140. package/dist/Editor/common/ImageSelector/Options/Upload.js +1 -1
  141. package/dist/Editor/common/ImageSelector/Styles.js +9 -3
  142. package/dist/Editor/common/ImageSelector/UploadStyles.js +9 -9
  143. package/dist/Editor/common/LinkSettings/NavComponents.js +10 -14
  144. package/dist/Editor/common/LinkSettings/index.js +14 -20
  145. package/dist/Editor/common/LinkSettings/navOptions.js +1 -1
  146. package/dist/Editor/common/MUIIcon/index.js +3 -0
  147. package/dist/Editor/common/MentionsPopup/index.js +2 -6
  148. package/dist/Editor/common/RnD/ContextMenu/CMenus.js +22 -22
  149. package/dist/Editor/common/RnD/ContextMenu/index.js +2 -3
  150. package/dist/Editor/common/RnD/ElementOptions/index.js +2 -7
  151. package/dist/Editor/common/RnD/ElementSettings/OtherSettings/SaveAsTemplate.js +3 -8
  152. package/dist/Editor/common/RnD/ElementSettings/OtherSettings/Settings.js +3 -7
  153. package/dist/Editor/common/RnD/ElementSettings/Settings/AppHeaderSettings.js +2 -3
  154. package/dist/Editor/common/RnD/ElementSettings/Settings/BoxSettings.js +2 -3
  155. package/dist/Editor/common/RnD/ElementSettings/Settings/ButtonSettings.js +2 -3
  156. package/dist/Editor/common/RnD/ElementSettings/Settings/CodeSettings.js +2 -3
  157. package/dist/Editor/common/RnD/ElementSettings/Settings/FormSettings.js +4 -7
  158. package/dist/Editor/common/RnD/ElementSettings/Settings/ImageSettings.js +2 -3
  159. package/dist/Editor/common/RnD/ElementSettings/Settings/TableSettings.js +2 -3
  160. package/dist/Editor/common/RnD/ElementSettings/Settings/TextSettings.js +2 -6
  161. package/dist/Editor/common/RnD/ElementSettings/Settings/VideoSettings.js +2 -3
  162. package/dist/Editor/common/RnD/ElementSettings/styles.js +1 -0
  163. package/dist/Editor/common/RnD/OptionsPopup/index.js +3 -4
  164. package/dist/Editor/common/RnD/ShadowElement.js +1 -2
  165. package/dist/Editor/common/RnD/SwitchViewport/SwitchViewport.js +4 -11
  166. package/dist/Editor/common/RnD/Theme/ViewportStimulator.js +3 -6
  167. package/dist/Editor/common/RnD/Utils/gridDropItem.js +8 -55
  168. package/dist/Editor/common/RnD/Utils/index.js +0 -3
  169. package/dist/Editor/common/RnD/VirtualElement/index.js +103 -187
  170. package/dist/Editor/common/RnD/VirtualElement/styles.js +7 -151
  171. package/dist/Editor/common/RnD/VirtualElement/updateAutoProps.js +3 -5
  172. package/dist/Editor/common/RnD/index.js +13 -64
  173. package/dist/Editor/common/Section/index.js +4 -7
  174. package/dist/Editor/common/Shorthands/elements.js +3 -74
  175. package/dist/Editor/common/StyleBuilder/appHeaderStyle.js +4 -4
  176. package/dist/Editor/common/StyleBuilder/boxStyle.js +2 -2
  177. package/dist/Editor/common/StyleBuilder/buttonStyle.js +4 -6
  178. package/dist/Editor/common/StyleBuilder/dividerStyles.js +2 -2
  179. package/dist/Editor/common/StyleBuilder/embedVideoStyle.js +6 -6
  180. package/dist/Editor/common/StyleBuilder/fieldStyle.js +2 -2
  181. package/dist/Editor/common/StyleBuilder/fieldTypes/alignment.js +9 -13
  182. package/dist/Editor/common/StyleBuilder/fieldTypes/backgroundImage.js +3 -11
  183. package/dist/Editor/common/StyleBuilder/fieldTypes/bannerSpacing.js +5 -19
  184. package/dist/Editor/common/StyleBuilder/fieldTypes/borderRadius.js +10 -22
  185. package/dist/Editor/common/StyleBuilder/fieldTypes/buttonLink.js +3 -6
  186. package/dist/Editor/common/StyleBuilder/fieldTypes/card.js +13 -27
  187. package/dist/Editor/common/StyleBuilder/fieldTypes/color.js +14 -43
  188. package/dist/Editor/common/StyleBuilder/fieldTypes/elementSize.js +6 -10
  189. package/dist/Editor/common/StyleBuilder/fieldTypes/fontSize.js +6 -19
  190. package/dist/Editor/common/StyleBuilder/fieldTypes/gridSize.js +2 -6
  191. package/dist/Editor/common/StyleBuilder/fieldTypes/icons.js +2 -5
  192. package/dist/Editor/common/StyleBuilder/fieldTypes/menusArray.js +6 -9
  193. package/dist/Editor/common/StyleBuilder/fieldTypes/metaDataMapping.js +2 -8
  194. package/dist/Editor/common/StyleBuilder/fieldTypes/saveAsTemplate.js +11 -12
  195. package/dist/Editor/common/StyleBuilder/fieldTypes/selectBox.js +2 -6
  196. package/dist/Editor/common/StyleBuilder/fieldTypes/text.js +4 -8
  197. package/dist/Editor/common/StyleBuilder/fieldTypes/textAlign.js +2 -6
  198. package/dist/Editor/common/StyleBuilder/fieldTypes/textOptions.js +12 -21
  199. package/dist/Editor/common/StyleBuilder/formStyle.js +7 -7
  200. package/dist/Editor/common/StyleBuilder/gridItemStyle.js +6 -6
  201. package/dist/Editor/common/StyleBuilder/gridStyle.js +5 -5
  202. package/dist/Editor/common/StyleBuilder/index.js +5 -8
  203. package/dist/Editor/common/StyleBuilder/pageSettingsStyle.js +7 -5
  204. package/dist/Editor/common/Uploader.js +5 -16
  205. package/dist/Editor/commonStyle.js +12 -23
  206. package/dist/Editor/helper/index.js +3 -27
  207. package/dist/Editor/helper/theme.js +2 -202
  208. package/dist/Editor/hooks/useDrag.js +1 -1
  209. package/dist/Editor/hooks/useEditorScroll.js +1 -0
  210. package/dist/Editor/hooks/useMouseMove.js +3 -9
  211. package/dist/Editor/plugins/withEmbeds.js +1 -1
  212. package/dist/Editor/plugins/withHTML.js +9 -11
  213. package/dist/Editor/plugins/withLayout.js +2 -3
  214. package/dist/Editor/plugins/withTable.js +1 -1
  215. package/dist/Editor/theme/ThemeList.js +173 -50
  216. package/dist/Editor/utils/SlateUtilityFunctions.js +60 -201
  217. package/dist/Editor/utils/draftToSlate.js +2 -3
  218. package/dist/Editor/utils/font.js +37 -40
  219. package/dist/Editor/utils/freegrid.js +2 -2
  220. package/dist/Editor/utils/helper.js +19 -90
  221. package/package.json +3 -3
  222. package/dist/Editor/Elements/DataView/Layouts/DataTypes/Components/MultiSelect.js +0 -425
  223. package/dist/Editor/Toolbar/PopupTool/ThemeTextFormat.js +0 -436
  224. package/dist/Editor/assets/svg/ClearAllRounded.js +0 -31
  225. package/dist/Editor/assets/svg/ThemeIcons.js +0 -291
  226. package/dist/Editor/common/CustomColorPicker/index.js +0 -131
  227. package/dist/Editor/common/CustomColorPicker/style.js +0 -53
  228. package/dist/Editor/common/CustomDialog2/index.js +0 -94
  229. package/dist/Editor/common/CustomDialog2/style.js +0 -67
  230. package/dist/Editor/common/CustomSelect.js +0 -43
  231. package/dist/Editor/common/RnD/Theme/MainThemeProvider.js +0 -17
  232. package/dist/Editor/common/RnD/VirtualElement/BoxHeaderAutoAlignment.js +0 -43
  233. package/dist/Editor/common/RnD/VirtualElement/ForceAutoAlignment.js +0 -44
  234. package/dist/Editor/common/RnD/VirtualElement/VirtualTextElement.js +0 -134
  235. package/dist/Editor/common/RnD/VirtualElement/helper.js +0 -375
  236. package/dist/Editor/common/SnackBar/index.js +0 -43
  237. package/dist/Editor/helper/textIndeces.js +0 -58
  238. package/dist/Editor/hooks/useAutoScroll.js +0 -38
  239. package/dist/Editor/hooks/useEditorTheme.js +0 -153
  240. package/dist/Editor/hooks/useThemeValues.js +0 -63
  241. package/dist/Editor/theme/index.js +0 -149
  242. package/dist/Editor/themeSettings/ActiveTheme.js +0 -72
  243. package/dist/Editor/themeSettings/buttons/index.js +0 -290
  244. package/dist/Editor/themeSettings/buttons/style.js +0 -23
  245. package/dist/Editor/themeSettings/colorTheme/index.js +0 -310
  246. package/dist/Editor/themeSettings/colorTheme/style.js +0 -81
  247. package/dist/Editor/themeSettings/fonts/PreviewElement.js +0 -121
  248. package/dist/Editor/themeSettings/fonts/index.js +0 -240
  249. package/dist/Editor/themeSettings/fonts/style.js +0 -61
  250. package/dist/Editor/themeSettings/icons.js +0 -60
  251. package/dist/Editor/themeSettings/index.js +0 -351
  252. package/dist/Editor/themeSettings/style.js +0 -220
  253. package/dist/Editor/themeSettingsAI/icons.js +0 -96
  254. package/dist/Editor/themeSettingsAI/index.js +0 -355
  255. package/dist/Editor/themeSettingsAI/saveTheme.js +0 -205
  256. package/dist/Editor/themeSettingsAI/style.js +0 -259
@@ -9,8 +9,7 @@ function CustomSelect({
9
9
  options,
10
10
  onSend,
11
11
  show,
12
- btnProps = {},
13
- translation
12
+ btnProps = {}
14
13
  }) {
15
14
  if (show) {
16
15
  return /*#__PURE__*/_jsx(Box, {
@@ -32,8 +31,7 @@ function CustomSelect({
32
31
  option: option,
33
32
  classes: classes,
34
33
  onSend: onSend,
35
- btnProps: btnProps,
36
- translation: translation
34
+ btnProps: btnProps
37
35
  }, i);
38
36
  })]
39
37
  }, index);
@@ -48,8 +46,7 @@ function DisplayOption({
48
46
  option,
49
47
  classes,
50
48
  onSend,
51
- btnProps = {},
52
- translation
49
+ btnProps = {}
53
50
  }) {
54
51
  const {
55
52
  Icon,
@@ -88,7 +85,7 @@ function DisplayOption({
88
85
  children: [/*#__PURE__*/_jsxs("div", {
89
86
  className: "option-label",
90
87
  id: "infinity-select-popover",
91
- children: [Icon && /*#__PURE__*/_jsx(Icon, {}), translation(option.label)]
88
+ children: [Icon && /*#__PURE__*/_jsx(Icon, {}), option.label]
92
89
  }), showChild ? /*#__PURE__*/_jsx(IconButton, {
93
90
  children: /*#__PURE__*/_jsx(FaChevronRight, {
94
91
  color: "#94A3B8",
@@ -111,8 +108,7 @@ function DisplayOption({
111
108
  options: option.options,
112
109
  onSend: onSend,
113
110
  classes: classes,
114
- show: open,
115
- translation: translation
111
+ show: open
116
112
  })
117
113
  })
118
114
  })]
@@ -151,8 +151,7 @@ function PopoverAIInput({
151
151
  otherProps,
152
152
  editorWrapper = {
153
153
  current: null
154
- },
155
- translation
154
+ }
156
155
  }) {
157
156
  const {
158
157
  services
@@ -321,8 +320,7 @@ function PopoverAIInput({
321
320
  inputValue: inputValue,
322
321
  onInputChange: onInputChange,
323
322
  onClickOutside: onClickOutside,
324
- isMobile: otherProps?.isMobile,
325
- translation: translation
323
+ isMobile: otherProps?.isMobile
326
324
  })
327
325
  })
328
326
  })
@@ -67,8 +67,7 @@ const Accordion = props => {
67
67
  customProps
68
68
  } = props;
69
69
  const {
70
- readOnly,
71
- translation
70
+ readOnly
72
71
  } = customProps;
73
72
  const [toggle, setToggle] = useState(false);
74
73
  const [openSetttings, setOpenSettings] = useState(false);
@@ -98,7 +97,7 @@ const Accordion = props => {
98
97
  width: "fit-content"
99
98
  },
100
99
  children: [/*#__PURE__*/_jsx(Tooltip, {
101
- title: translation("accordianSettings"),
100
+ title: "Settings",
102
101
  arrow: true,
103
102
  children: /*#__PURE__*/_jsx(IconButton, {
104
103
  size: "small",
@@ -107,7 +106,7 @@ const Accordion = props => {
107
106
  children: /*#__PURE__*/_jsx(GridSettingsIcon, {})
108
107
  })
109
108
  }), /*#__PURE__*/_jsx(Tooltip, {
110
- title: translation("Delete"),
109
+ title: "Delete",
111
110
  arrow: true,
112
111
  children: /*#__PURE__*/_jsx(IconButton, {
113
112
  size: "small",
@@ -10,11 +10,8 @@ const AccordionBtnPopup = props => {
10
10
  onClose,
11
11
  customProps
12
12
  } = props;
13
- const {
14
- translation
15
- } = customProps;
16
13
  return /*#__PURE__*/_jsx(StyleBuilder, {
17
- title: translation("Accordion Settings"),
14
+ title: "Accordion Settings",
18
15
  type: "accordionTitleBtnStyle",
19
16
  element: element,
20
17
  onSave: onSave,
@@ -6,12 +6,8 @@ import { jsx as _jsx } from "react/jsx-runtime";
6
6
  const AccordionButton = props => {
7
7
  const {
8
8
  editor,
9
- icoBtnType,
10
- customProps
9
+ icoBtnType
11
10
  } = props;
12
- const {
13
- translation
14
- } = customProps;
15
11
  const handleInsertAccordion = () => {
16
12
  insertAccordion(editor);
17
13
  };
@@ -19,7 +15,7 @@ const AccordionButton = props => {
19
15
  icon: /*#__PURE__*/_jsx(Icon, {
20
16
  icon: "accordion"
21
17
  }),
22
- title: translation("Accordion"),
18
+ title: "Accordion",
23
19
  onClick: handleInsertAccordion,
24
20
  style: {
25
21
  marginLeft: "0px"
@@ -9,11 +9,8 @@ const AccordionTitlePopup = props => {
9
9
  onClose,
10
10
  customProps
11
11
  } = props;
12
- const {
13
- translation
14
- } = customProps;
15
12
  return /*#__PURE__*/_jsx(StyleBuilder, {
16
- title: translation("Accordion Title"),
13
+ title: "Accordion Title",
17
14
  type: "accordionTitleStyle",
18
15
  element: element,
19
16
  onSave: onSave,
@@ -265,7 +265,7 @@ function AppHeader(props) {
265
265
  style: {
266
266
  display: "inline-flex",
267
267
  alignItems: "center",
268
- color: textColor || "#000000",
268
+ color: textColor,
269
269
  fontSize: logoFontSize,
270
270
  fontFamily: titleFontFamily,
271
271
  justifyContent: isLogoRight ? "end" : "start"
@@ -320,7 +320,7 @@ function AppHeader(props) {
320
320
  fontFamily: fontFamily,
321
321
  textTransform: "none",
322
322
  fontSize: fontSize || "16px",
323
- color: textColor || "#000",
323
+ color: textColor || "#FFF",
324
324
  background: bgColor || "none",
325
325
  "& .m-settings": {
326
326
  display: "none",
@@ -335,7 +335,7 @@ function AppHeader(props) {
335
335
  background: "#FFF"
336
336
  },
337
337
  "&:hover": {
338
- color: textColorHover || textColor || "#000",
338
+ color: textColorHover || textColor || "#FFF",
339
339
  background: bgColorHover || bgColor || "none",
340
340
  "& .m-settings": {
341
341
  display: "block"
@@ -7,18 +7,14 @@ import { jsx as _jsx } from "react/jsx-runtime";
7
7
  const AppHeaderButton = props => {
8
8
  const {
9
9
  editor,
10
- icoBtnType,
11
- customProps
10
+ icoBtnType
12
11
  } = props;
13
- const {
14
- translation
15
- } = customProps;
16
12
  const handleClick = () => {
17
13
  insertAppHeader(editor, {});
18
14
  insertNewLine(editor);
19
15
  };
20
16
  return /*#__PURE__*/_jsx(ToolbarIcon, {
21
- title: translation("appHeaderButton"),
17
+ title: "App Header",
22
18
  onClick: handleClick,
23
19
  icon: /*#__PURE__*/_jsx(Icon, {
24
20
  icon: "appHeader"
@@ -10,11 +10,8 @@ const AppHeaderPopup = props => {
10
10
  onDelete,
11
11
  customProps
12
12
  } = props;
13
- const {
14
- translation
15
- } = customProps;
16
13
  return /*#__PURE__*/_jsx(StyleBuilder, {
17
- title: translation("appHeaderButton"),
14
+ title: "App Header",
18
15
  type: "gridItemStyle",
19
16
  element: element,
20
17
  onSave: onSave,
@@ -14,9 +14,6 @@ const AttachmentsButton = props => {
14
14
  icoBtnType
15
15
  } = props;
16
16
  const [open, SetOpen] = useState(false);
17
- const {
18
- translation
19
- } = customProps;
20
17
  const handleClick = () => {
21
18
  SetOpen(true);
22
19
  };
@@ -31,7 +28,7 @@ const AttachmentsButton = props => {
31
28
  };
32
29
  return /*#__PURE__*/_jsxs(_Fragment, {
33
30
  children: [/*#__PURE__*/_jsx(ToolbarIcon, {
34
- title: translation("Doc Upload"),
31
+ title: "Doc Upload",
35
32
  onClick: handleClick,
36
33
  icon: /*#__PURE__*/_jsx(Icon, {
37
34
  icon: "docsUpload"
@@ -12,11 +12,8 @@ const ButtonPopup = props => {
12
12
  styleName,
13
13
  onDelete
14
14
  } = props;
15
- const {
16
- translation
17
- } = customProps;
18
15
  return /*#__PURE__*/_jsx(StyleBuilder, {
19
- title: translation("Button"),
16
+ title: "Button",
20
17
  type: styleName ? "" : "buttonStyle",
21
18
  element: element,
22
19
  onSave: onSave,
@@ -6,17 +6,13 @@ import { jsx as _jsx } from "react/jsx-runtime";
6
6
  const ButtonToolIcon = props => {
7
7
  const {
8
8
  editor,
9
- icoBtnType,
10
- customProps
9
+ icoBtnType
11
10
  } = props;
12
- const {
13
- translation
14
- } = customProps;
15
11
  const handleInsertButton = () => {
16
12
  insertButton(editor);
17
13
  };
18
14
  return /*#__PURE__*/_jsx(ToolbarIcon, {
19
- title: translation("Button"),
15
+ title: "Button",
20
16
  onClick: handleInsertButton,
21
17
  icon: /*#__PURE__*/_jsx(Icon, {
22
18
  icon: "button"
@@ -9,8 +9,6 @@ import { WorkflowIcon } from "../../common/iconslist";
9
9
  import { getTRBLBreakPoints, getBreakPointsValue, groupByBreakpoint } from "../../helper/theme";
10
10
  import { handleLinkType, windowVar } from "../../utils/helper";
11
11
  import LinkSettings from "../../common/LinkSettings";
12
- import { useEditorTheme } from "../../hooks/useEditorTheme";
13
- import { getTheme } from "../../theme";
14
12
  import Icon from "../../common/Icon";
15
13
  import { useEditorContext } from "../../hooks/useMouseMove";
16
14
  import useCommonStyle from "../../commonStyle";
@@ -32,21 +30,15 @@ const EditorButton = props => {
32
30
  const {
33
31
  readOnly,
34
32
  metadata,
35
- isMobile,
36
- translation
33
+ isMobile
37
34
  } = customProps;
38
35
  const editor = useSlateStatic();
39
36
  const path = ReactEditor.findPath(editor, element);
40
37
  const [edit, setEdit] = useState(false);
41
38
  const [openNav, setOpenNav] = useState(false);
42
39
  const [openMoreOptions, setOpenMoreOptions] = useState(false);
40
+ const [, setIconLoaded] = useState(false);
43
41
  const classes = useCommonStyle(appTheme);
44
- const {
45
- theme: selectedTheme
46
- } = useEditorTheme();
47
- const {
48
- buttonTheme
49
- } = getTheme(selectedTheme);
50
42
  const {
51
43
  label,
52
44
  bgColor,
@@ -60,7 +52,7 @@ const EditorButton = props => {
60
52
  fontFamily,
61
53
  textColorHover,
62
54
  bgColorHover,
63
- // buttonIcon,
55
+ buttonIcon,
64
56
  iconPosition = "start",
65
57
  borderStyle,
66
58
  borderWidth,
@@ -81,7 +73,6 @@ const EditorButton = props => {
81
73
  };
82
74
  const isTrigger = linkType === "nextTrigger" || linkType === "prevTrigger";
83
75
  const refURl = isTrigger ? buttonLink?.url : url;
84
- const buttonIcon = element?.buttonIcon || buttonTheme?.buttonIcon;
85
76
  const BtnIcon = buttonIcon ? buttonIcon : null;
86
77
  windowVar.lastButtonProps = element;
87
78
  const handleTrigger = async () => {
@@ -144,7 +135,7 @@ const EditorButton = props => {
144
135
  justifyContent: "center"
145
136
  },
146
137
  children: [/*#__PURE__*/_jsx(Tooltip, {
147
- title: translation("Settings"),
138
+ title: "Settings",
148
139
  arrow: true,
149
140
  children: /*#__PURE__*/_jsx(IconButton, {
150
141
  onClick: onMenuClick("edit"),
@@ -154,7 +145,7 @@ const EditorButton = props => {
154
145
  })
155
146
  })
156
147
  }), /*#__PURE__*/_jsx(Tooltip, {
157
- title: translation("Nav Settings"),
148
+ title: "Nav Settings",
158
149
  arrow: true,
159
150
  children: /*#__PURE__*/_jsx(IconButton, {
160
151
  onClick: onMenuClick("nav"),
@@ -165,14 +156,13 @@ const EditorButton = props => {
165
156
  })
166
157
  }), hideOpenLink ? null : /*#__PURE__*/_jsx(_Fragment, {
167
158
  children: /*#__PURE__*/_jsx(Tooltip, {
168
- title: translation("Open Link"),
159
+ title: "Open Link",
169
160
  arrow: true,
170
161
  children: /*#__PURE__*/_jsx(Box, {
171
162
  sx: {
172
163
  display: "inline-flex",
173
164
  color: "rgba(0, 0, 0, 0.54)",
174
165
  marginBottom: "0px !important",
175
- ...classes.buttonMoreOption,
176
166
  ...classes.buttonMoreOption3
177
167
  },
178
168
  ...btnProps,
@@ -220,6 +210,15 @@ const EditorButton = props => {
220
210
  e.stopPropagation();
221
211
  setOpenMoreOptions(!openMoreOptions);
222
212
  };
213
+ const muiIconProps = {
214
+ iconName: buttonIcon,
215
+ style: {
216
+ paddingLeft: "4px",
217
+ paddingRight: "4px"
218
+ },
219
+ props: customProps,
220
+ onIconLoad: () => setIconLoaded(true)
221
+ };
223
222
  return /*#__PURE__*/_jsxs("div", {
224
223
  className: `editor-btn-wrapper`,
225
224
  ...attributes,
@@ -264,14 +263,19 @@ const EditorButton = props => {
264
263
  display: "inline-block"
265
264
  },
266
265
  children: [/*#__PURE__*/_jsxs(Box, {
267
- className: `btn textAlign-${tAlign} button theme-element`,
268
266
  ref: buttonRef,
267
+ className: `btn textAlign-${tAlign}`,
269
268
  sx: {
270
269
  textDecoration: "none",
270
+ background: bgColor || "rgb(30, 75, 122)",
271
271
  borderBlockStyle: "solid",
272
+ borderColor: borderColor || "transparent",
272
273
  borderWidth: borderWidth !== undefined ? borderWidth : borderColor ? "1px" : "0px",
273
274
  ...btnSp,
274
275
  borderStyle: borderStyle || "solid",
276
+ color: `${textColor || "#FFFFFF"}`,
277
+ fontSize: textSize || "inherit",
278
+ fontFamily: fontFamily || "PoppinsRegular",
275
279
  display: "inline-flex",
276
280
  alignItems: "center",
277
281
  position: "relative",
@@ -280,45 +284,28 @@ const EditorButton = props => {
280
284
  display: "none"
281
285
  },
282
286
  "&:hover": {
283
- color: `${textColorHover || textColor}`,
284
- background: bgColorHover || bgColor,
287
+ color: `${textColorHover || textColor || "#FFFFFF"}`,
288
+ background: bgColorHover || bgColor || "rgb(30, 75, 122)",
285
289
  "& .element-toolbar": {
286
290
  display: "flex"
287
291
  }
288
- },
289
- color: textColor ? `${textColor} !important` : "#FFFFFF",
290
- fontSize: textSize ? `${textSize}px !important` : "inherit",
291
- fontFamily: fontFamily ? `${fontFamily} !important` : "PoppinsRegular",
292
- background: `${bgColor} !important`,
293
- borderColor: `${borderColor} !important`,
294
- borderRadius: {
295
- ...getBreakPointsValue(borderRadius || buttonTheme?.borderRadius || {}, null, "overrideBorderRadius", true)
296
- },
297
- padding: {
298
- ...getTRBLBreakPoints(bannerSpacing || buttonTheme?.bannerSpacing || {})
299
292
  }
300
293
  },
301
294
  ...buttonProps,
302
295
  children: [BtnIcon && iconPosition === "start" && /*#__PURE__*/_jsx(MUIIcon, {
303
- iconName: buttonIcon,
304
- style: {
305
- paddingLeft: "4px",
306
- paddingRight: "4px"
307
- },
308
- props: customProps
309
- }), label || translation("My Button"), BtnIcon && iconPosition === "end" && /*#__PURE__*/_jsx(MUIIcon, {
310
- iconName: buttonIcon,
311
- style: {
312
- paddingLeft: "4px",
313
- paddingRight: "4px"
314
- },
315
- props: customProps
296
+ ...muiIconProps
297
+ }), label || "My Button", BtnIcon && iconPosition === "end" && /*#__PURE__*/_jsx(MUIIcon, {
298
+ ...muiIconProps
316
299
  })]
317
300
  }), !readOnly && buttonRef?.current && /*#__PURE__*/_jsx(Popper, {
318
301
  anchorEl: buttonRef?.current,
319
302
  open: true,
320
303
  placement: "right",
321
304
  container: buttonRef?.current,
305
+ modifiers: [{
306
+ name: "preventOverflow",
307
+ enabled: false
308
+ }],
322
309
  children: /*#__PURE__*/_jsx(IconButton, {
323
310
  className: `moreBtnShow ${isMobile || openMoreOptions ? "activeBtnShow" : ""}`,
324
311
  sx: {
@@ -29,8 +29,7 @@ const Carousel = props => {
29
29
  customProps
30
30
  } = props;
31
31
  const {
32
- readOnly,
33
- translation
32
+ readOnly
34
33
  } = customProps;
35
34
  const editor = useSlateStatic();
36
35
  const [showOptions, setShowOptions] = useState(false);
@@ -97,21 +96,21 @@ const Carousel = props => {
97
96
  left: "0px"
98
97
  },
99
98
  children: [/*#__PURE__*/_jsx(Tooltip, {
100
- title: edit ? translation("Save Carousel") : translation("Edit Carousel"),
99
+ title: edit ? "Save Carousel" : "Edit Carousel",
101
100
  arrow: true,
102
101
  children: /*#__PURE__*/_jsx(IconButton, {
103
102
  onClick: onEdit,
104
103
  children: !edit ? /*#__PURE__*/_jsx(EditIcon, {}) : /*#__PURE__*/_jsx(CheckCircleIcon, {})
105
104
  })
106
105
  }), /*#__PURE__*/_jsx(Tooltip, {
107
- title: translation("Add Slide"),
106
+ title: "Add Slide",
108
107
  arrow: true,
109
108
  children: /*#__PURE__*/_jsx(IconButton, {
110
109
  onClick: onAddSlide,
111
110
  children: /*#__PURE__*/_jsx(GridAddSectionIcon, {})
112
111
  })
113
112
  }), /*#__PURE__*/_jsx(Tooltip, {
114
- title: translation("Delete Carousel"),
113
+ title: "Delete Carousel",
115
114
  arrow: true,
116
115
  children: /*#__PURE__*/_jsx(IconButton, {
117
116
  onClick: onDelete,
@@ -6,17 +6,13 @@ import { jsx as _jsx } from "react/jsx-runtime";
6
6
  const CarouselButton = props => {
7
7
  const {
8
8
  editor,
9
- icoBtnType,
10
- customProps
9
+ icoBtnType
11
10
  } = props;
12
- const {
13
- translation
14
- } = customProps;
15
11
  const handleClick = () => {
16
12
  insertCarousel(editor);
17
13
  };
18
14
  return /*#__PURE__*/_jsx(ToolbarIcon, {
19
- title: translation("Carousel"),
15
+ title: "Carousel",
20
16
  onClick: handleClick,
21
17
  icon: /*#__PURE__*/_jsx(CarouselElementIcon, {}),
22
18
  icoBtnType: icoBtnType
@@ -13,8 +13,7 @@ const CarouselItem = props => {
13
13
  customProps
14
14
  } = props;
15
15
  const {
16
- readOnly,
17
- translation
16
+ readOnly
18
17
  } = customProps;
19
18
  const editor = useSlateStatic();
20
19
  const onMenuClick = val => () => {
@@ -42,7 +41,7 @@ const CarouselItem = props => {
42
41
  },
43
42
  contentEditable: false,
44
43
  children: /*#__PURE__*/_jsx(Tooltip, {
45
- title: translation("Delete Slide"),
44
+ title: "Delete Slide",
46
45
  arrow: true,
47
46
  children: /*#__PURE__*/_jsx(IconButton, {
48
47
  onClick: onMenuClick("delete"),
@@ -10,11 +10,8 @@ const ChipTextPopup = props => {
10
10
  onDelete,
11
11
  customProps
12
12
  } = props;
13
- const {
14
- translation
15
- } = customProps;
16
13
  return /*#__PURE__*/_jsx(StyleBuilder, {
17
- title: translation("Chip Text"),
14
+ title: "Chip Text",
18
15
  type: "ChipTextPopup",
19
16
  element: element,
20
17
  onSave: onSave,
@@ -11,8 +11,7 @@ const CodeToText = props => {
11
11
  html,
12
12
  action,
13
13
  location,
14
- handleCodeToText,
15
- translation
14
+ handleCodeToText
16
15
  } = props;
17
16
  const codeToTextRef = useRef();
18
17
  const wrapperRef = useRef();
@@ -90,7 +89,7 @@ const CodeToText = props => {
90
89
  id: "",
91
90
  value: html,
92
91
  onChange: codeOnChange,
93
- placeholder: translation("writeHTMLText")
92
+ placeholder: "Write html here..."
94
93
  }), /*#__PURE__*/_jsx("div", {
95
94
  style: {
96
95
  display: "flex",
@@ -111,11 +110,11 @@ const CodeToText = props => {
111
110
  children: [/*#__PURE__*/_jsx("button", {
112
111
  onClick: addHtml,
113
112
  className: "done",
114
- children: translation("Done")
113
+ children: "Done"
115
114
  }), /*#__PURE__*/_jsx("button", {
116
115
  className: "clear",
117
116
  onClick: clearHtml,
118
- children: translation("Clear")
117
+ children: "Clear"
119
118
  })]
120
119
  })]
121
120
  })
@@ -7,17 +7,13 @@ import { jsxs as _jsxs } from "react/jsx-runtime";
7
7
  const HtmlContextMenu = props => {
8
8
  const {
9
9
  editor,
10
- handleCodeToText,
11
- customProps
10
+ handleCodeToText
12
11
  } = props;
13
12
  const [selection, setSelection] = useState();
14
13
  const [showMenu, {
15
14
  top,
16
15
  left
17
16
  }] = useContextMenu(editor, "htmlCode", setSelection);
18
- const {
19
- translation
20
- } = customProps;
21
17
  const handleEditHtml = () => {
22
18
  Transforms.select(editor, selection);
23
19
  const parentPath = Path.parent(selection.focus.path);
@@ -41,7 +37,7 @@ const HtmlContextMenu = props => {
41
37
  children: [/*#__PURE__*/_jsx(Icon, {
42
38
  icon: "pen"
43
39
  }), /*#__PURE__*/_jsx("span", {
44
- children: translation("Edit HTML")
40
+ children: "Edit HTML"
45
41
  })]
46
42
  })
47
43
  });