@flozy/editor 9.5.9 → 9.6.0

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 (259) hide show
  1. package/dist/Editor/ChatEditor.js +19 -26
  2. package/dist/Editor/CommonEditor.js +23 -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 +14 -31
  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 -7
  33. package/dist/Editor/Elements/DataView/Layouts/DataTypes/Components/Select.js +3 -4
  34. package/dist/Editor/Elements/DataView/Layouts/DataTypes/MultiSelectType.js +5 -25
  35. package/dist/Editor/Elements/DataView/Layouts/DataTypes/TextType.js +2 -7
  36. package/dist/Editor/Elements/DataView/Layouts/FilterSort/SortOptions/ChooseSort.js +12 -13
  37. package/dist/Editor/Elements/DataView/Layouts/FilterSort/SortOptions/index.js +4 -7
  38. package/dist/Editor/Elements/DataView/Layouts/FilterSort/index.js +5 -7
  39. package/dist/Editor/Elements/DataView/Layouts/FilterView.js +7 -9
  40. package/dist/Editor/Elements/DataView/Layouts/Options/AddOptions.js +3 -8
  41. package/dist/Editor/Elements/DataView/Layouts/Options/AddProperty.js +3 -5
  42. package/dist/Editor/Elements/DataView/Layouts/Options/AllProperties.js +5 -6
  43. package/dist/Editor/Elements/DataView/Layouts/Options/ChangeProperty.js +3 -5
  44. package/dist/Editor/Elements/DataView/Layouts/Options/EditOption.js +7 -9
  45. package/dist/Editor/Elements/DataView/Layouts/Options/EditProperty.js +38 -64
  46. package/dist/Editor/Elements/DataView/Layouts/Options/FilterProperty.js +2 -3
  47. package/dist/Editor/Elements/DataView/Layouts/Options/PropertyList.js +2 -3
  48. package/dist/Editor/Elements/DataView/Layouts/Options/index.js +6 -23
  49. package/dist/Editor/Elements/DataView/Layouts/TableStyles.js +1 -4
  50. package/dist/Editor/Elements/DataView/Layouts/TableView.js +4 -6
  51. package/dist/Editor/Elements/DataView/Layouts/ViewData.js +4 -8
  52. package/dist/Editor/Elements/DataView/Layouts/index.js +1 -3
  53. package/dist/Editor/Elements/DataView/Providers/DataViewProvider.js +2 -5
  54. package/dist/Editor/Elements/DataView/styles.js +0 -13
  55. package/dist/Editor/Elements/Divider/Divider.js +3 -5
  56. package/dist/Editor/Elements/Divider/DividerButton.js +2 -6
  57. package/dist/Editor/Elements/Divider/DividerPopup.js +2 -3
  58. package/dist/Editor/Elements/Embed/Embed.js +1 -4
  59. package/dist/Editor/Elements/Embed/EmbedPopup.js +1 -4
  60. package/dist/Editor/Elements/Embed/Image.js +9 -14
  61. package/dist/Editor/Elements/Embed/Video.js +6 -9
  62. package/dist/Editor/Elements/EmbedScript/Code.js +4 -7
  63. package/dist/Editor/Elements/EmbedScript/EmbedScript.js +2 -6
  64. package/dist/Editor/Elements/EmbedScript/EmbedScriptPopup.js +5 -8
  65. package/dist/Editor/Elements/Emoji/EmojiButton.js +2 -6
  66. package/dist/Editor/Elements/Form/FieldPopup.js +1 -4
  67. package/dist/Editor/Elements/Form/Form.js +9 -12
  68. package/dist/Editor/Elements/Form/FormButton.js +2 -6
  69. package/dist/Editor/Elements/Form/FormPopup.js +2 -3
  70. package/dist/Editor/Elements/Form/Workflow/FormWorkflow.js +12 -18
  71. package/dist/Editor/Elements/Form/Workflow/ListWorkflow.js +8 -13
  72. package/dist/Editor/Elements/Form/Workflow/MoreOptions.js +2 -3
  73. package/dist/Editor/Elements/Form/Workflow/Styles.js +22 -24
  74. package/dist/Editor/Elements/Form/Workflow/UserInputs.js +2 -4
  75. package/dist/Editor/Elements/Form/Workflow/index.js +9 -15
  76. package/dist/Editor/Elements/FreeGrid/FreeGrid.js +23 -67
  77. package/dist/Editor/Elements/FreeGrid/FreeGridBox.js +4 -23
  78. package/dist/Editor/Elements/FreeGrid/FreeGridButton.js +2 -6
  79. package/dist/Editor/Elements/FreeGrid/FreeGridItem.js +5 -36
  80. package/dist/Editor/Elements/FreeGrid/Options/AddElement.js +2 -3
  81. package/dist/Editor/Elements/FreeGrid/Options/More.js +4 -10
  82. package/dist/Editor/Elements/FreeGrid/styles.js +0 -3
  83. package/dist/Editor/Elements/Grid/Grid.js +10 -13
  84. package/dist/Editor/Elements/Grid/GridButton.js +5 -9
  85. package/dist/Editor/Elements/Grid/GridItem.js +8 -14
  86. package/dist/Editor/Elements/Grid/GridItemPopup.js +1 -4
  87. package/dist/Editor/Elements/Grid/GridPopup.js +1 -4
  88. package/dist/Editor/Elements/Grid/SectionPopup.js +1 -4
  89. package/dist/Editor/Elements/Link/Link.js +5 -8
  90. package/dist/Editor/Elements/Link/LinkButton.js +1 -4
  91. package/dist/Editor/Elements/List/CheckList.js +9 -14
  92. package/dist/Editor/Elements/NewLine/NewLineButton.js +2 -6
  93. package/dist/Editor/Elements/PageSettings/PageSettingsButton.js +1 -4
  94. package/dist/Editor/Elements/PageSettings/PageSettingsPopup.js +1 -4
  95. package/dist/Editor/Elements/Search/SearchButton.js +3 -6
  96. package/dist/Editor/Elements/Search/SearchList.js +3 -7
  97. package/dist/Editor/Elements/Signature/SignatureButton.js +2 -6
  98. package/dist/Editor/Elements/Signature/SignatureOptions/TypeSignature.js +2 -6
  99. package/dist/Editor/Elements/Signature/SignatureOptions/UploadSignature.js +1 -4
  100. package/dist/Editor/Elements/Signature/SignaturePopup.js +16 -17
  101. package/dist/Editor/Elements/SimpleText/index.js +4 -5
  102. package/dist/Editor/Elements/SimpleText/style.js +2 -2
  103. package/dist/Editor/Elements/Table/DragButton.js +2 -4
  104. package/dist/Editor/Elements/Table/Table.js +11 -23
  105. package/dist/Editor/Elements/Table/TableCell.js +24 -2
  106. package/dist/Editor/Elements/Table/TablePopup.js +1 -4
  107. package/dist/Editor/Elements/Table/TableSelector.js +6 -10
  108. package/dist/Editor/Elements/Table/TableTool.js +4 -8
  109. package/dist/Editor/Elements/Title/title.js +0 -10
  110. package/dist/Editor/Elements/TopBanner/TopBannerButton.js +1 -4
  111. package/dist/Editor/Elements/Variables/VariableButton.js +1 -10
  112. package/dist/Editor/MiniEditor.js +3 -10
  113. package/dist/Editor/Styles/EditorStyles.js +5 -5
  114. package/dist/Editor/Toolbar/Basic/index.js +1 -2
  115. package/dist/Editor/Toolbar/FormatTools/BlockButton.js +2 -6
  116. package/dist/Editor/Toolbar/FormatTools/Dropdown.js +3 -27
  117. package/dist/Editor/Toolbar/FormatTools/FontFamilyAutocomplete.js +3 -4
  118. package/dist/Editor/Toolbar/FormatTools/MarkButton.js +4 -8
  119. package/dist/Editor/Toolbar/FormatTools/TextSize.js +13 -10
  120. package/dist/Editor/Toolbar/Mini/MiniToolbar.js +3 -5
  121. package/dist/Editor/Toolbar/PopupTool/AddTemplates.js +5 -10
  122. package/dist/Editor/Toolbar/PopupTool/ButtonTemplatesCard.js +4 -10
  123. package/dist/Editor/Toolbar/PopupTool/FullViewCard.js +4 -10
  124. package/dist/Editor/Toolbar/PopupTool/MiniTextFormat/MiniColorPicker.js +3 -9
  125. package/dist/Editor/Toolbar/PopupTool/MiniTextFormat/SelectAlignment.js +35 -42
  126. package/dist/Editor/Toolbar/PopupTool/MiniTextFormat/SelectFontSize.js +13 -6
  127. package/dist/Editor/Toolbar/PopupTool/MiniTextFormat/SelectList.js +51 -58
  128. package/dist/Editor/Toolbar/PopupTool/MiniTextFormat/SelectSuperSubscript.js +22 -29
  129. package/dist/Editor/Toolbar/PopupTool/MiniTextFormat/SelectTypography.js +87 -226
  130. package/dist/Editor/Toolbar/PopupTool/MiniTextFormat/index.js +10 -20
  131. package/dist/Editor/Toolbar/PopupTool/PopperHeader.js +5 -10
  132. package/dist/Editor/Toolbar/PopupTool/PopupToolStyle.js +11 -71
  133. package/dist/Editor/Toolbar/PopupTool/TemplateCard.js +5 -11
  134. package/dist/Editor/Toolbar/PopupTool/TextFormat.js +45 -128
  135. package/dist/Editor/Toolbar/PopupTool/index.js +17 -21
  136. package/dist/Editor/Toolbar/Toolbar.js +10 -20
  137. package/dist/Editor/Toolbar/toolbarGroups.js +6 -48
  138. package/dist/Editor/common/ColorPickerButton.js +14 -39
  139. package/dist/Editor/common/CustomDialog/index.js +10 -8
  140. package/dist/Editor/common/DnD/DragHandleButton.js +1 -1
  141. package/dist/Editor/common/FontLoader/FontLoader.js +0 -3
  142. package/dist/Editor/common/Icon.js +1 -46
  143. package/dist/Editor/common/ImageSelector/ImageSelector.js +8 -10
  144. package/dist/Editor/common/ImageSelector/Options/AddLink.js +4 -6
  145. package/dist/Editor/common/ImageSelector/Options/Upload.js +1 -1
  146. package/dist/Editor/common/ImageSelector/Styles.js +9 -3
  147. package/dist/Editor/common/ImageSelector/UploadStyles.js +9 -9
  148. package/dist/Editor/common/LinkSettings/NavComponents.js +10 -14
  149. package/dist/Editor/common/LinkSettings/index.js +14 -20
  150. package/dist/Editor/common/LinkSettings/navOptions.js +1 -1
  151. package/dist/Editor/common/MentionsPopup/index.js +2 -6
  152. package/dist/Editor/common/RnD/ContextMenu/CMenus.js +22 -22
  153. package/dist/Editor/common/RnD/ContextMenu/index.js +2 -3
  154. package/dist/Editor/common/RnD/ElementOptions/index.js +2 -7
  155. package/dist/Editor/common/RnD/ElementSettings/OtherSettings/SaveAsTemplate.js +3 -8
  156. package/dist/Editor/common/RnD/ElementSettings/OtherSettings/Settings.js +3 -7
  157. package/dist/Editor/common/RnD/ElementSettings/Settings/AppHeaderSettings.js +2 -3
  158. package/dist/Editor/common/RnD/ElementSettings/Settings/BoxSettings.js +2 -3
  159. package/dist/Editor/common/RnD/ElementSettings/Settings/ButtonSettings.js +2 -3
  160. package/dist/Editor/common/RnD/ElementSettings/Settings/CodeSettings.js +2 -3
  161. package/dist/Editor/common/RnD/ElementSettings/Settings/FormSettings.js +4 -7
  162. package/dist/Editor/common/RnD/ElementSettings/Settings/ImageSettings.js +2 -3
  163. package/dist/Editor/common/RnD/ElementSettings/Settings/TableSettings.js +2 -3
  164. package/dist/Editor/common/RnD/ElementSettings/Settings/TextSettings.js +2 -6
  165. package/dist/Editor/common/RnD/ElementSettings/Settings/VideoSettings.js +2 -3
  166. package/dist/Editor/common/RnD/ElementSettings/styles.js +1 -0
  167. package/dist/Editor/common/RnD/OptionsPopup/index.js +3 -4
  168. package/dist/Editor/common/RnD/SwitchViewport/SwitchViewport.js +4 -11
  169. package/dist/Editor/common/RnD/Theme/ViewportStimulator.js +8 -20
  170. package/dist/Editor/common/RnD/Utils/gridDropItem.js +7 -56
  171. package/dist/Editor/common/RnD/Utils/index.js +0 -3
  172. package/dist/Editor/common/RnD/VirtualElement/index.js +105 -188
  173. package/dist/Editor/common/RnD/VirtualElement/styles.js +7 -123
  174. package/dist/Editor/common/RnD/VirtualElement/updateAutoProps.js +3 -5
  175. package/dist/Editor/common/RnD/index.js +14 -59
  176. package/dist/Editor/common/Section/index.js +4 -7
  177. package/dist/Editor/common/Shorthands/elements.js +3 -74
  178. package/dist/Editor/common/StyleBuilder/appHeaderStyle.js +4 -4
  179. package/dist/Editor/common/StyleBuilder/boxStyle.js +2 -2
  180. package/dist/Editor/common/StyleBuilder/buttonStyle.js +4 -6
  181. package/dist/Editor/common/StyleBuilder/dividerStyles.js +2 -2
  182. package/dist/Editor/common/StyleBuilder/embedVideoStyle.js +6 -6
  183. package/dist/Editor/common/StyleBuilder/fieldStyle.js +2 -2
  184. package/dist/Editor/common/StyleBuilder/fieldTypes/alignment.js +9 -13
  185. package/dist/Editor/common/StyleBuilder/fieldTypes/backgroundImage.js +3 -11
  186. package/dist/Editor/common/StyleBuilder/fieldTypes/bannerSpacing.js +5 -19
  187. package/dist/Editor/common/StyleBuilder/fieldTypes/borderRadius.js +10 -22
  188. package/dist/Editor/common/StyleBuilder/fieldTypes/buttonLink.js +3 -6
  189. package/dist/Editor/common/StyleBuilder/fieldTypes/card.js +13 -27
  190. package/dist/Editor/common/StyleBuilder/fieldTypes/color.js +14 -43
  191. package/dist/Editor/common/StyleBuilder/fieldTypes/elementSize.js +6 -10
  192. package/dist/Editor/common/StyleBuilder/fieldTypes/fontSize.js +6 -19
  193. package/dist/Editor/common/StyleBuilder/fieldTypes/gridSize.js +2 -6
  194. package/dist/Editor/common/StyleBuilder/fieldTypes/icons.js +2 -5
  195. package/dist/Editor/common/StyleBuilder/fieldTypes/menusArray.js +6 -9
  196. package/dist/Editor/common/StyleBuilder/fieldTypes/metaDataMapping.js +2 -8
  197. package/dist/Editor/common/StyleBuilder/fieldTypes/saveAsTemplate.js +11 -12
  198. package/dist/Editor/common/StyleBuilder/fieldTypes/selectBox.js +2 -6
  199. package/dist/Editor/common/StyleBuilder/fieldTypes/text.js +4 -8
  200. package/dist/Editor/common/StyleBuilder/fieldTypes/textAlign.js +2 -6
  201. package/dist/Editor/common/StyleBuilder/fieldTypes/textOptions.js +12 -21
  202. package/dist/Editor/common/StyleBuilder/formStyle.js +7 -7
  203. package/dist/Editor/common/StyleBuilder/gridItemStyle.js +6 -6
  204. package/dist/Editor/common/StyleBuilder/gridStyle.js +5 -5
  205. package/dist/Editor/common/StyleBuilder/index.js +5 -8
  206. package/dist/Editor/common/StyleBuilder/pageSettingsStyle.js +7 -5
  207. package/dist/Editor/common/Uploader.js +5 -16
  208. package/dist/Editor/commonStyle.js +12 -23
  209. package/dist/Editor/helper/index.js +15 -35
  210. package/dist/Editor/helper/theme.js +2 -202
  211. package/dist/Editor/hooks/useDrag.js +11 -17
  212. package/dist/Editor/hooks/useEditorScroll.js +6 -10
  213. package/dist/Editor/hooks/useMouseMove.js +13 -25
  214. package/dist/Editor/hooks/useTable.js +1 -1
  215. package/dist/Editor/plugins/withEmbeds.js +1 -1
  216. package/dist/Editor/plugins/withHTML.js +9 -11
  217. package/dist/Editor/plugins/withLayout.js +2 -3
  218. package/dist/Editor/plugins/withTable.js +1 -1
  219. package/dist/Editor/theme/ThemeList.js +173 -50
  220. package/dist/Editor/utils/SlateUtilityFunctions.js +49 -168
  221. package/dist/Editor/utils/draftToSlate.js +2 -3
  222. package/dist/Editor/utils/font.js +37 -40
  223. package/dist/Editor/utils/freegrid.js +2 -2
  224. package/dist/Editor/utils/helper.js +19 -90
  225. package/package.json +3 -3
  226. package/dist/Editor/Elements/DataView/Layouts/DataTypes/Components/MultiSelect.js +0 -425
  227. package/dist/Editor/Toolbar/PopupTool/ThemeTextFormat.js +0 -436
  228. package/dist/Editor/assets/svg/ClearAllRounded.js +0 -31
  229. package/dist/Editor/assets/svg/ThemeIcons.js +0 -291
  230. package/dist/Editor/common/CustomColorPicker/index.js +0 -131
  231. package/dist/Editor/common/CustomColorPicker/style.js +0 -53
  232. package/dist/Editor/common/CustomDialog2/index.js +0 -94
  233. package/dist/Editor/common/CustomDialog2/style.js +0 -67
  234. package/dist/Editor/common/CustomSelect.js +0 -43
  235. package/dist/Editor/common/RnD/Theme/MainThemeProvider.js +0 -17
  236. package/dist/Editor/common/RnD/VirtualElement/ForceAutoAlignment.js +0 -117
  237. package/dist/Editor/common/RnD/VirtualElement/VirtualTextElement.js +0 -134
  238. package/dist/Editor/common/RnD/VirtualElement/helper.js +0 -281
  239. package/dist/Editor/common/SnackBar/index.js +0 -43
  240. package/dist/Editor/helper/textIndeces.js +0 -58
  241. package/dist/Editor/hooks/useAutoScroll.js +0 -38
  242. package/dist/Editor/hooks/useEditorTheme.js +0 -153
  243. package/dist/Editor/hooks/useThemeValues.js +0 -63
  244. package/dist/Editor/theme/index.js +0 -149
  245. package/dist/Editor/themeSettings/ActiveTheme.js +0 -72
  246. package/dist/Editor/themeSettings/buttons/index.js +0 -290
  247. package/dist/Editor/themeSettings/buttons/style.js +0 -23
  248. package/dist/Editor/themeSettings/colorTheme/index.js +0 -310
  249. package/dist/Editor/themeSettings/colorTheme/style.js +0 -81
  250. package/dist/Editor/themeSettings/fonts/PreviewElement.js +0 -121
  251. package/dist/Editor/themeSettings/fonts/index.js +0 -240
  252. package/dist/Editor/themeSettings/fonts/style.js +0 -61
  253. package/dist/Editor/themeSettings/icons.js +0 -60
  254. package/dist/Editor/themeSettings/index.js +0 -351
  255. package/dist/Editor/themeSettings/style.js +0 -220
  256. package/dist/Editor/themeSettingsAI/icons.js +0 -96
  257. package/dist/Editor/themeSettingsAI/index.js +0 -355
  258. package/dist/Editor/themeSettingsAI/saveTheme.js +0 -205
  259. package/dist/Editor/themeSettingsAI/style.js +0 -259
@@ -2,20 +2,16 @@ import React from "react";
2
2
  import { Grid, Typography } from "@mui/material";
3
3
  import FormStyles from "./Styles";
4
4
  import MoreOptions from "./MoreOptions";
5
- import { jsx as _jsx } from "react/jsx-runtime";
6
5
  import { jsxs as _jsxs } from "react/jsx-runtime";
6
+ import { jsx as _jsx } from "react/jsx-runtime";
7
7
  const ListWorkflow = props => {
8
8
  const {
9
9
  workflow,
10
10
  handleEditFormWorkflow,
11
- handleDeleteFormWorkflow,
12
- customProps
11
+ handleDeleteFormWorkflow
13
12
  } = props;
14
13
  const classes = FormStyles();
15
14
  const optionsList = ["Edit", "Delete"];
16
- const {
17
- translation
18
- } = customProps;
19
15
  const onMenuClick = (selectedMenu, selectedFlow) => () => {
20
16
  if (selectedMenu === "Edit") {
21
17
  handleEditFormWorkflow(selectedFlow);
@@ -36,12 +32,12 @@ const ListWorkflow = props => {
36
32
  children: [/*#__PURE__*/_jsx(Grid, {
37
33
  item: true,
38
34
  sx: classes.emailIndexCard,
39
- children: /*#__PURE__*/_jsx(Typography, {
35
+ children: /*#__PURE__*/_jsxs(Typography, {
40
36
  sx: {
41
37
  fontSize: "12px",
42
38
  fontWeight: 600
43
39
  },
44
- children: `${translation("Email")} ${index + 1}`
40
+ children: ["Email ", index + 1]
45
41
  })
46
42
  }), /*#__PURE__*/_jsx(Grid, {
47
43
  item: true,
@@ -67,7 +63,7 @@ const ListWorkflow = props => {
67
63
  item: true,
68
64
  children: /*#__PURE__*/_jsx(Typography, {
69
65
  sx: classes.listHeading,
70
- children: translation("subjectTextColon")
66
+ children: "Subject:"
71
67
  })
72
68
  }), /*#__PURE__*/_jsx(Grid, {
73
69
  item: true,
@@ -90,7 +86,7 @@ const ListWorkflow = props => {
90
86
  item: true,
91
87
  children: /*#__PURE__*/_jsx(Typography, {
92
88
  sx: classes.listHeading,
93
- children: translation("bodyTextColon")
89
+ children: "Body:"
94
90
  })
95
91
  }), /*#__PURE__*/_jsx(Grid, {
96
92
  item: true,
@@ -113,7 +109,7 @@ const ListWorkflow = props => {
113
109
  item: true,
114
110
  children: /*#__PURE__*/_jsx(Typography, {
115
111
  sx: classes.listHeading,
116
- children: translation("sheduleText")
112
+ children: "Scheduled:"
117
113
  })
118
114
  }), /*#__PURE__*/_jsx(Grid, {
119
115
  item: true,
@@ -150,8 +146,7 @@ const ListWorkflow = props => {
150
146
  classes: classes,
151
147
  menus: optionsList,
152
148
  selectedFlow: index,
153
- onMenuClick: onMenuClick,
154
- translation: translation
149
+ onMenuClick: onMenuClick
155
150
  })
156
151
  })]
157
152
  })
@@ -9,8 +9,7 @@ function MoreOptions(props) {
9
9
  classes,
10
10
  menus,
11
11
  onMenuClick,
12
- selectedFlow,
13
- translation
12
+ selectedFlow
14
13
  } = props;
15
14
 
16
15
  //state
@@ -53,7 +52,7 @@ function MoreOptions(props) {
53
52
  paddingRight: "100px"
54
53
  },
55
54
  onClick: onMenuClick(m, selectedFlow),
56
- children: translation(m)
55
+ children: m
57
56
  }, `menu_${i}_${m}`))
58
57
  })]
59
58
  });
@@ -9,20 +9,20 @@ const FormStyles = theme => ({
9
9
  color: "#94A3B8"
10
10
  },
11
11
  bodyTextArea: {
12
- "& .mini-editor-cls": {
13
- padding: "12px",
14
- "&:focus-visible": {
15
- outline: "none",
16
- border: "none"
12
+ '& .mini-editor-cls': {
13
+ padding: '12px',
14
+ '&:focus-visible': {
15
+ outline: 'none',
16
+ border: 'none'
17
17
  }
18
18
  },
19
19
  "& .editorWorkflow": {
20
- minHeight: "130px",
21
- padding: "12px",
20
+ minHeight: '130px',
21
+ padding: '12px',
22
22
  paddingBottom: 0,
23
- "&:focus-visible": {
24
- outline: "none",
25
- border: "none"
23
+ '&:focus-visible': {
24
+ outline: 'none',
25
+ border: 'none'
26
26
  }
27
27
  }
28
28
  },
@@ -105,7 +105,7 @@ const FormStyles = theme => ({
105
105
  padding: "4px 22px",
106
106
  textTransform: "none",
107
107
  border: "1px solid #D8DDE1",
108
- minWidth: "126px",
108
+ minWidth: '126px',
109
109
  "& svg": {
110
110
  "& path": {
111
111
  stroke: "#64748B"
@@ -169,19 +169,17 @@ const FormStyles = theme => ({
169
169
  }
170
170
  },
171
171
  colorButtonSingle: {
172
- border: "1.5px solid #DCE4EC !important",
173
172
  "&.active": {
174
- // "&:before": {
175
- // content: '" "',
176
- // position: "absolute",
177
- // top: "-5px",
178
- // left: "-5px",
179
- // width: "calc(100% + 4px)",
180
- // height: "calc(100% + 4px)",
181
- // border: "3px solid blue",
182
- // borderRadius: "50%",
183
- // },
184
- outline: "2px solid #2563EB"
173
+ "&:before": {
174
+ content: '" "',
175
+ position: "absolute",
176
+ top: "-5px",
177
+ left: "-5px",
178
+ width: "calc(100% + 4px)",
179
+ height: "calc(100% + 4px)",
180
+ border: "3px solid blue",
181
+ borderRadius: "50%"
182
+ }
185
183
  }
186
184
  },
187
185
  colorButtonsInner: {
@@ -251,7 +249,7 @@ const FormStyles = theme => ({
251
249
  }
252
250
  },
253
251
  root: {
254
- padding: "10px"
252
+ padding: '10px'
255
253
  }
256
254
  });
257
255
  export default FormStyles;
@@ -10,8 +10,7 @@ const UserInputs = props => {
10
10
  type,
11
11
  subject,
12
12
  handleField,
13
- onSave,
14
- translation
13
+ onSave
15
14
  } = props;
16
15
  const editorRef = useRef();
17
16
  const variables = element?.children;
@@ -40,8 +39,7 @@ const UserInputs = props => {
40
39
  fontStyleOptions: ['underline'],
41
40
  hideLink: true,
42
41
  hideTextColor: true
43
- },
44
- translation: translation
42
+ }
45
43
  })
46
44
  })
47
45
  });
@@ -17,12 +17,8 @@ const Workflow = props => {
17
17
  element: propElement,
18
18
  closeWorkflow,
19
19
  onSave,
20
- customWorkflowElement = null,
21
- customProps
20
+ customWorkflowElement = null
22
21
  } = props;
23
- const {
24
- translation
25
- } = customProps;
26
22
  // replacing element for forms in DND
27
23
  const element = customWorkflowElement ? customWorkflowElement : propElement;
28
24
  const {
@@ -38,11 +34,11 @@ const Workflow = props => {
38
34
  const [scheduleEvery, setScheduleEvery] = useState("minutes");
39
35
  const currentInstant = scheduleEvery === "minutes" ? minutes : scheduleEvery === "hours" ? hours : scheduleEvery === "days" ? days : [];
40
36
  const [scheduleOn, setScheduleOn] = useState(currentInstant[0]);
41
- const [subject, setSubject] = useState(translation("welcomFlozt"));
37
+ const [subject, setSubject] = useState("Welcome to Flozy!");
42
38
  const [bodyData, setBodyData] = useState([{
43
39
  type: "paragraph",
44
40
  children: [{
45
- text: translation("writeSometing")
41
+ text: "Write Something"
46
42
  }]
47
43
  }]);
48
44
  const [flowEdited, setFlowEdited] = useState({
@@ -154,7 +150,7 @@ const Workflow = props => {
154
150
  children: [formData && /*#__PURE__*/_jsx(IconButton, {
155
151
  onClick: onFormBack,
156
152
  children: /*#__PURE__*/_jsx(ArrowBackIcon, {})
157
- }), translation("flowUpEmail"), !formData && workflowList?.length > 0 && /*#__PURE__*/_jsxs(Button, {
153
+ }), "Follow-Up Email", !formData && workflowList?.length > 0 && /*#__PURE__*/_jsxs(Button, {
158
154
  variant: "outlined",
159
155
  sx: {
160
156
  textTransform: "none",
@@ -164,14 +160,13 @@ const Workflow = props => {
164
160
  onClick: handleAddFormWorkflow,
165
161
  size: "small",
166
162
  startIcon: /*#__PURE__*/_jsx(PlusIcon, {}),
167
- children: [" ", translation("newEmail")]
163
+ children: [" ", "New Email"]
168
164
  })]
169
165
  }), /*#__PURE__*/_jsxs(DialogContent, {
170
166
  children: [!formData && workflowList?.length > 0 && /*#__PURE__*/_jsx(ListWorkflow, {
171
167
  workflow: workflowList,
172
168
  handleEditFormWorkflow: handleEditFormWorkflow,
173
- handleDeleteFormWorkflow: handleDeleteFormWorkflow,
174
- customProps: customProps
169
+ handleDeleteFormWorkflow: handleDeleteFormWorkflow
175
170
  }), (formData || workflowList?.length === 0) && /*#__PURE__*/_jsx(FormWorkflow, {
176
171
  subject: subject,
177
172
  schedule: schedule,
@@ -188,8 +183,7 @@ const Workflow = props => {
188
183
  setScheduleOn: setScheduleOn,
189
184
  handleSelectedVariables: handleSelectedVariables,
190
185
  handleInputReset: handleInputReset,
191
- classes: classes,
192
- customProps: customProps
186
+ classes: classes
193
187
  })]
194
188
  }), /*#__PURE__*/_jsxs(DialogActions, {
195
189
  sx: classes.dialogFooter,
@@ -198,13 +192,13 @@ const Workflow = props => {
198
192
  sx: classes.closeBtn,
199
193
  onClick: closeWorkflow,
200
194
  size: "small",
201
- children: translation("Close")
195
+ children: "Close"
202
196
  }), (formData || workflowList?.length === 0) && /*#__PURE__*/_jsx(Button, {
203
197
  className: "primaryBtn",
204
198
  sx: classes.saveBtn,
205
199
  onClick: saveFormWorkflow,
206
200
  size: "small",
207
- children: translation("Save")
201
+ children: "Save"
208
202
  })]
209
203
  })]
210
204
  });
@@ -1,4 +1,4 @@
1
- import React, { useEffect, useRef, useState } from "react";
1
+ import React from "react";
2
2
  import { Path, Transforms, Node } from "slate";
3
3
  import { ReactEditor, useSlateStatic } from "slate-react";
4
4
  import { Box, useTheme } from "@mui/material";
@@ -43,14 +43,12 @@ const FreeGrid = props => {
43
43
  } = props;
44
44
  const {
45
45
  sectionName,
46
- sectionBorderRadius,
47
- height_xs
46
+ sectionBorderRadius
48
47
  } = element;
49
48
  const {
50
49
  readOnly,
51
50
  customSX,
52
- hideTools,
53
- translation
51
+ hideTools
54
52
  } = customProps;
55
53
  const {
56
54
  updated_at,
@@ -65,14 +63,11 @@ const FreeGrid = props => {
65
63
  const {
66
64
  setSelectedElement
67
65
  } = useEditorContext();
68
- const [autoAlign, setAutoAlign] = useState(false);
69
- const count = useRef(2);
70
- const childrenCountRef = useRef(element?.children?.length);
71
66
  const onChange = data => {
72
67
  const append = breakpoint === "lg" ? "" : `_${breakpoint}`;
73
68
  const updateData = {
74
69
  ...data,
75
- [`height${append}`]: data.height
70
+ [`height${append}`]: height + data.height
76
71
  };
77
72
  if (append !== "") {
78
73
  delete updateData.height;
@@ -134,10 +129,6 @@ const FreeGrid = props => {
134
129
  setSelectedElement
135
130
  });
136
131
  break;
137
- case "forceAutoAlignment":
138
- setAutoAlign(true);
139
- setSelectedElement({});
140
- break;
141
132
  case "deleteSection":
142
133
  if (Node.has(editor, cur_root_path)) {
143
134
  Transforms.removeNodes(editor, {
@@ -159,12 +150,9 @@ const FreeGrid = props => {
159
150
  console.log(err);
160
151
  }
161
152
  };
162
- useEffect(() => {
163
- childrenCountRef.current = element?.children?.length;
164
- }, [element?.children?.length]);
165
153
  const handleAddElementClick = type => () => {
166
154
  const isEmpty = isEmptySection();
167
- const insertAt = isEmpty ? [...path, 0] : [...path, childrenCountRef.current];
155
+ const insertAt = isEmpty ? [...path, 0] : [...path, element?.children?.length];
168
156
  switch (type) {
169
157
  case "addText":
170
158
  Transforms.insertNodes(editor, [{
@@ -199,6 +187,20 @@ const FreeGrid = props => {
199
187
  linkType: "webAddress"
200
188
  },
201
189
  iconPosition: "start",
190
+ bgColor: "#2563EB",
191
+ textColor: "#FFF",
192
+ borderRadius: {
193
+ topLeft: 30,
194
+ topRight: 30,
195
+ bottomLeft: 30,
196
+ bottomRight: 30
197
+ },
198
+ bannerSpacing: {
199
+ left: 12,
200
+ top: 12,
201
+ right: 12,
202
+ bottom: 12
203
+ },
202
204
  textAlign: "center",
203
205
  label: "Get Started"
204
206
  }],
@@ -371,19 +373,6 @@ const FreeGrid = props => {
371
373
  break;
372
374
  default:
373
375
  }
374
- if (breakpoint === "lg") {
375
- setSelectedElement({});
376
-
377
- // auto align in mobile
378
- Transforms.setNodes(editor, {
379
- xs_updatedOn: null,
380
- updated_at: new Date().getTime()
381
- }, {
382
- at: path
383
- });
384
- }
385
- count.current = count.current + 1;
386
-
387
376
  // focus on newly added element
388
377
  focusOnNewItem(editor, insertAt, {
389
378
  setSelectedElement
@@ -455,17 +444,6 @@ const FreeGrid = props => {
455
444
  }
456
445
  }, theme);
457
446
  const sectionTypeOptions = (itemOptions?.section || []).filter(f => (hideTools || []).indexOf(f) === -1);
458
-
459
- // const id = useMemo(() => {
460
- // let eleId = `freegrid_container_${path.join("|")}_${breakpoint}`;
461
-
462
- // if (autoAlign) {
463
- // eleId += `_${updated_at}`; // re-render component on force auto align
464
- // }
465
-
466
- // return eleId;
467
- // }, [autoAlign, updated_at, breakpoint, path]);
468
-
469
447
  return /*#__PURE__*/_jsx(RnD, {
470
448
  id: `freegrid_container_${path.join("|")}_${updated_at}_${breakpoint}`,
471
449
  className: `
@@ -479,9 +457,6 @@ const FreeGrid = props => {
479
457
  position: "relative",
480
458
  "--height": `${height}px`
481
459
  },
482
- dataSets: {
483
- "data-height-xs": height_xs
484
- },
485
460
  defaultStyle: {
486
461
  width: "100%",
487
462
  height: height ? `${height}px` : "auto"
@@ -518,13 +493,7 @@ const FreeGrid = props => {
518
493
  title: "Add Element",
519
494
  props: {
520
495
  handleClick: handleAddElementClick,
521
- hideTools: hideTools || [],
522
- translation: {
523
- translation
524
- },
525
- customProps: {
526
- customProps
527
- }
496
+ hideTools: hideTools || []
528
497
  }
529
498
  },
530
499
  more: {
@@ -532,14 +501,7 @@ const FreeGrid = props => {
532
501
  placement: "left",
533
502
  title: "More Options",
534
503
  props: {
535
- handleClick: handleMoreClick,
536
- translation: {
537
- translation
538
- },
539
- customProps: {
540
- customProps
541
- },
542
- breakpoint
504
+ handleClick: handleMoreClick
543
505
  }
544
506
  },
545
507
  settings: {
@@ -550,8 +512,7 @@ const FreeGrid = props => {
550
512
  editor,
551
513
  path,
552
514
  classes,
553
- customProps,
554
- translation
515
+ customProps
555
516
  }
556
517
  }
557
518
  },
@@ -559,11 +520,6 @@ const FreeGrid = props => {
559
520
  updated_at: updated_at,
560
521
  breakpoint: breakpoint,
561
522
  handleContextMenuClick: handleContextMenuClick,
562
- translation: translation,
563
- customProps: customProps,
564
- sectionElement: element,
565
- autoAlign: autoAlign,
566
- setAutoAlign: setAutoAlign,
567
523
  children: /*#__PURE__*/_jsxs(Box, {
568
524
  ...attributes,
569
525
  id: sectionName,
@@ -584,7 +540,7 @@ const FreeGrid = props => {
584
540
  "--rows": `repeat(${repeatTimes}, ${ROW_HEIGHT}px)`
585
541
  },
586
542
  children: [children, !readOnly ? /*#__PURE__*/_jsx("span", {
587
- placeholder: `${translation("Section")} (${sectionName || "Welcome"})`,
543
+ placeholder: `Section (${sectionName || "Welcome"})`,
588
544
  className: "freegrid-section-infos",
589
545
  contentEditable: false
590
546
  }) : null]
@@ -26,8 +26,7 @@ const FreeGridBox = props => {
26
26
  const path = ReactEditor.findPath(editor, element);
27
27
  const {
28
28
  readOnly,
29
- hideTools,
30
- translation
29
+ hideTools
31
30
  } = customProps;
32
31
  const {
33
32
  updated_at,
@@ -37,11 +36,7 @@ const FreeGridBox = props => {
37
36
  sectionBorderRadius,
38
37
  borderWidth,
39
38
  borderColor,
40
- borderStyle,
41
- height_xs,
42
- marginTop_xs,
43
- gridArea_xs,
44
- width_xs
39
+ borderStyle
45
40
  } = element;
46
41
  // get values based on breakpoint size
47
42
  const {
@@ -55,8 +50,7 @@ const FreeGridBox = props => {
55
50
  const {
56
51
  setSelectedElement
57
52
  } = useEditorContext();
58
- let arrangeIndex = zIndex === undefined ? path[path.length - 1] : zIndex;
59
- arrangeIndex = Math.max(1, arrangeIndex);
53
+ const arrangeIndex = zIndex === undefined ? path[path.length - 1] : zIndex;
60
54
  const onChangeSettings = () => {};
61
55
  const onChange = data => {
62
56
  let updateData = {
@@ -173,22 +167,12 @@ const FreeGridBox = props => {
173
167
  "--gridArea": `${gridArea}`,
174
168
  "--width": `${width}px`,
175
169
  "--height": `${height}px`,
176
- "--zIndex": 100 + arrangeIndex,
177
- "--height_xs": height_xs ? `${height_xs}px` : "auto",
178
- "--marginTop_xs": marginTop_xs ? `${marginTop_xs}px` : "24px"
179
- // "--gridArea_xs": gridArea_xs ? gridArea_xs : "unset",
170
+ "--zIndex": 100 + arrangeIndex
180
171
  },
181
-
182
172
  defaultStyle: {
183
173
  height: `${height}px`,
184
174
  width: `${width}px`
185
175
  },
186
- dataSets: {
187
- "data-grid-area-xs": gridArea_xs,
188
- "data-margin-top-xs": marginTop_xs,
189
- "data-height-xs": height_xs,
190
- "data-width-xs": width_xs
191
- },
192
176
  gridArea: gridArea,
193
177
  onChange: onChange,
194
178
  delta: {
@@ -204,9 +188,6 @@ const FreeGridBox = props => {
204
188
  left: left || 0
205
189
  },
206
190
  type: "parent-container",
207
- customProps: customProps,
208
- translation: translation,
209
- breakpoint: breakpoint,
210
191
  children: /*#__PURE__*/_jsx(Box, {
211
192
  component: "div",
212
193
  ...attributes,
@@ -6,17 +6,13 @@ import { jsx as _jsx } from "react/jsx-runtime";
6
6
  const FreeGridButton = 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 onButtonClick = () => {
16
12
  insertFreeGrid(editor);
17
13
  };
18
14
  return /*#__PURE__*/_jsx(ToolbarIcon, {
19
- title: translation("Free Grid"),
15
+ title: "Free Grid",
20
16
  onClick: onButtonClick,
21
17
  icon: /*#__PURE__*/_jsx(Icon, {
22
18
  icon: "freegrid"
@@ -29,17 +29,12 @@ const FreeGridItem = props => {
29
29
  const path = ReactEditor.findPath(editor, element);
30
30
  const {
31
31
  readOnly,
32
- hideTools,
33
- translation
32
+ hideTools
34
33
  } = customProps;
35
34
  const {
36
35
  updated_at,
37
36
  childType,
38
- zIndex,
39
- height_xs,
40
- width_xs,
41
- marginTop_xs,
42
- gridArea_xs
37
+ zIndex
43
38
  } = element;
44
39
  // get values based on breakpoint size
45
40
  const {
@@ -54,13 +49,9 @@ const FreeGridItem = props => {
54
49
  setSelectedElement,
55
50
  selectedElement
56
51
  } = useEditorContext();
57
- let arrangeIndex = zIndex === undefined ? path[path.length - 1] : zIndex;
58
- arrangeIndex = Math.max(1, arrangeIndex);
52
+ const arrangeIndex = zIndex === undefined ? path[path.length - 1] : zIndex;
59
53
  const [popup, setPopup] = useState(null);
60
54
  const onChangeSettings = () => {};
61
- // const refInput = useRef();
62
- // const [virtualHeight, setVirtualHeight] = useState(height || 0);
63
-
64
55
  const onChange = data => {
65
56
  let updateData = {
66
57
  ...data
@@ -116,13 +107,6 @@ const FreeGridItem = props => {
116
107
  Transforms.removeNodes(editor, {
117
108
  at: path
118
109
  });
119
- const parentPath = Path.parent(path);
120
- Transforms.setNodes(editor, {
121
- xs_updatedOn: null,
122
- updated_at: new Date().getTime()
123
- }, {
124
- at: parentPath
125
- });
126
110
  } catch (err) {
127
111
  console.log(err);
128
112
  }
@@ -268,18 +252,7 @@ const FreeGridItem = props => {
268
252
  "--gridArea": `${gridArea}`,
269
253
  "--width": `${width}px`,
270
254
  "--height": `${height}px`,
271
- "--zIndex": 100 + arrangeIndex,
272
- "--height_xs": height_xs ? `${height_xs}px` : "auto",
273
- "--width_xs": width_xs ? `${width_xs}px` : "auto",
274
- "--marginTop_xs": marginTop_xs ? `${marginTop_xs}px` : "0px"
275
- // "--gridArea_xs": gridArea_xs ? gridArea_xs : "unset",
276
- },
277
-
278
- dataSets: {
279
- "data-grid-area-xs": gridArea_xs,
280
- "data-margin-top-xs": marginTop_xs,
281
- "data-height-xs": height_xs,
282
- "data-width-xs": width_xs
255
+ "--zIndex": 100 + arrangeIndex
283
256
  },
284
257
  defaultStyle: {
285
258
  height: `${height}px`,
@@ -300,9 +273,6 @@ const FreeGridItem = props => {
300
273
  itemData: {
301
274
  left: left || 0
302
275
  },
303
- customProps: customProps,
304
- translation: translation,
305
- breakpoint: breakpoint,
306
276
  children: /*#__PURE__*/_jsxs(Box, {
307
277
  component: "div",
308
278
  ...attributes,
@@ -312,8 +282,7 @@ const FreeGridItem = props => {
312
282
  element: element,
313
283
  customWorkflowElement: element?.children?.[0] || null,
314
284
  closeWorkflow: onClose,
315
- onSave: onWorkflowSave,
316
- customProps: customProps
285
+ onSave: onWorkflowSave
317
286
  }) : null, popup === "embedScript" ? /*#__PURE__*/_jsx(EmbedScriptPopup, {
318
287
  open: popup === "embedScript",
319
288
  customProps: customProps,
@@ -51,8 +51,7 @@ const FREE_GRID_ELEMENTS = [{
51
51
  const AddElement = props => {
52
52
  const {
53
53
  handleClick,
54
- hideTools,
55
- translation
54
+ hideTools
56
55
  } = props;
57
56
  const ADD_ELEMENTS = FREE_GRID_ELEMENTS.filter(f => (hideTools || []).indexOf(f.actionType) === -1);
58
57
  return /*#__PURE__*/_jsx(Box, {
@@ -71,7 +70,7 @@ const AddElement = props => {
71
70
  icon: m.icon
72
71
  })
73
72
  }), /*#__PURE__*/_jsx(ListItemText, {
74
- children: translation?.translation(m.label)
73
+ children: m.label
75
74
  })]
76
75
  }, m.actionType);
77
76
  })
@@ -4,9 +4,7 @@ import { jsx as _jsx } from "react/jsx-runtime";
4
4
  import { jsxs as _jsxs } from "react/jsx-runtime";
5
5
  const More = props => {
6
6
  const {
7
- handleClick,
8
- translation,
9
- breakpoint
7
+ handleClick
10
8
  } = props;
11
9
  return /*#__PURE__*/_jsx(Box, {
12
10
  children: /*#__PURE__*/_jsxs(List, {
@@ -14,16 +12,12 @@ const More = props => {
14
12
  children: [/*#__PURE__*/_jsx(ListItemButton, {
15
13
  className: "item-wrapper",
16
14
  onClick: handleClick("addSection"),
17
- children: translation?.translation("Add Section")
15
+ children: "Add Section"
18
16
  }), /*#__PURE__*/_jsx(ListItemButton, {
19
17
  className: "item-wrapper",
20
18
  onClick: handleClick("duplicateSection"),
21
- children: translation?.translation("Duplicate Section")
22
- }), breakpoint === "xs" ? /*#__PURE__*/_jsx(ListItemButton, {
23
- className: "item-wrapper",
24
- onClick: handleClick("forceAutoAlignment"),
25
- children: "Force Auto Alignment"
26
- }) : null, /*#__PURE__*/_jsx(ListItemButton, {
19
+ children: "Duplicate Section"
20
+ }), /*#__PURE__*/_jsx(ListItemButton, {
27
21
  className: "item-wrapper",
28
22
  onClick: handleClick("deleteSection"),
29
23
  children: "Delete Section"