@flozy/editor 9.5.3 → 9.5.5

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 (254) hide show
  1. package/dist/Editor/ChatEditor.js +29 -20
  2. package/dist/Editor/CommonEditor.js +19 -130
  3. package/dist/Editor/DialogWrapper.js +25 -31
  4. package/dist/Editor/Editor.css +7 -11
  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 +3 -3
  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 +11 -16
  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/UserInputs.js +2 -4
  74. package/dist/Editor/Elements/Form/Workflow/index.js +9 -15
  75. package/dist/Editor/Elements/FreeGrid/FreeGrid.js +23 -67
  76. package/dist/Editor/Elements/FreeGrid/FreeGridBox.js +3 -21
  77. package/dist/Editor/Elements/FreeGrid/FreeGridButton.js +2 -6
  78. package/dist/Editor/Elements/FreeGrid/FreeGridItem.js +4 -34
  79. package/dist/Editor/Elements/FreeGrid/Options/AddElement.js +2 -3
  80. package/dist/Editor/Elements/FreeGrid/Options/More.js +4 -10
  81. package/dist/Editor/Elements/FreeGrid/styles.js +0 -3
  82. package/dist/Editor/Elements/Grid/Grid.js +10 -13
  83. package/dist/Editor/Elements/Grid/GridButton.js +5 -9
  84. package/dist/Editor/Elements/Grid/GridItem.js +8 -14
  85. package/dist/Editor/Elements/Grid/GridItemPopup.js +1 -4
  86. package/dist/Editor/Elements/Grid/GridPopup.js +1 -4
  87. package/dist/Editor/Elements/Grid/SectionPopup.js +1 -4
  88. package/dist/Editor/Elements/Link/Link.js +5 -8
  89. package/dist/Editor/Elements/Link/LinkButton.js +1 -4
  90. package/dist/Editor/Elements/List/CheckList.js +9 -14
  91. package/dist/Editor/Elements/NewLine/NewLineButton.js +2 -6
  92. package/dist/Editor/Elements/PageSettings/PageSettingsButton.js +1 -4
  93. package/dist/Editor/Elements/PageSettings/PageSettingsPopup.js +1 -4
  94. package/dist/Editor/Elements/Search/SearchButton.js +3 -6
  95. package/dist/Editor/Elements/Search/SearchList.js +6 -10
  96. package/dist/Editor/Elements/Signature/SignatureButton.js +2 -6
  97. package/dist/Editor/Elements/Signature/SignatureOptions/TypeSignature.js +2 -6
  98. package/dist/Editor/Elements/Signature/SignatureOptions/UploadSignature.js +1 -4
  99. package/dist/Editor/Elements/Signature/SignaturePopup.js +16 -17
  100. package/dist/Editor/Elements/SimpleText/index.js +4 -5
  101. package/dist/Editor/Elements/SimpleText/style.js +2 -2
  102. package/dist/Editor/Elements/Table/DragButton.js +2 -4
  103. package/dist/Editor/Elements/Table/Table.js +11 -23
  104. package/dist/Editor/Elements/Table/TableCell.js +2 -6
  105. package/dist/Editor/Elements/Table/TablePopup.js +1 -4
  106. package/dist/Editor/Elements/Table/TableSelector.js +6 -10
  107. package/dist/Editor/Elements/Table/TableTool.js +4 -8
  108. package/dist/Editor/Elements/Title/title.js +0 -10
  109. package/dist/Editor/Elements/TopBanner/TopBannerButton.js +1 -4
  110. package/dist/Editor/Elements/Variables/VariableButton.js +1 -10
  111. package/dist/Editor/MiniEditor.js +3 -10
  112. package/dist/Editor/Styles/EditorStyles.js +5 -5
  113. package/dist/Editor/Toolbar/Basic/index.js +1 -2
  114. package/dist/Editor/Toolbar/FormatTools/BlockButton.js +2 -6
  115. package/dist/Editor/Toolbar/FormatTools/Dropdown.js +3 -27
  116. package/dist/Editor/Toolbar/FormatTools/FontFamilyAutocomplete.js +3 -4
  117. package/dist/Editor/Toolbar/FormatTools/MarkButton.js +4 -8
  118. package/dist/Editor/Toolbar/FormatTools/TextSize.js +13 -10
  119. package/dist/Editor/Toolbar/Mini/MiniToolbar.js +3 -5
  120. package/dist/Editor/Toolbar/PopupTool/AddTemplates.js +5 -10
  121. package/dist/Editor/Toolbar/PopupTool/ButtonTemplatesCard.js +4 -10
  122. package/dist/Editor/Toolbar/PopupTool/FullViewCard.js +4 -10
  123. package/dist/Editor/Toolbar/PopupTool/MiniTextFormat/MiniColorPicker.js +3 -9
  124. package/dist/Editor/Toolbar/PopupTool/MiniTextFormat/SelectAlignment.js +35 -42
  125. package/dist/Editor/Toolbar/PopupTool/MiniTextFormat/SelectFontSize.js +13 -6
  126. package/dist/Editor/Toolbar/PopupTool/MiniTextFormat/SelectList.js +51 -58
  127. package/dist/Editor/Toolbar/PopupTool/MiniTextFormat/SelectSuperSubscript.js +22 -29
  128. package/dist/Editor/Toolbar/PopupTool/MiniTextFormat/SelectTypography.js +87 -226
  129. package/dist/Editor/Toolbar/PopupTool/MiniTextFormat/index.js +10 -20
  130. package/dist/Editor/Toolbar/PopupTool/PopperHeader.js +4 -8
  131. package/dist/Editor/Toolbar/PopupTool/PopupToolStyle.js +9 -16
  132. package/dist/Editor/Toolbar/PopupTool/TemplateCard.js +5 -11
  133. package/dist/Editor/Toolbar/PopupTool/TextFormat.js +42 -122
  134. package/dist/Editor/Toolbar/PopupTool/index.js +1 -17
  135. package/dist/Editor/Toolbar/Toolbar.js +10 -20
  136. package/dist/Editor/Toolbar/toolbarGroups.js +6 -48
  137. package/dist/Editor/common/ColorPickerButton.js +14 -39
  138. package/dist/Editor/common/CustomDialog/index.js +10 -8
  139. package/dist/Editor/common/DnD/DragHandleButton.js +1 -1
  140. package/dist/Editor/common/FontLoader/FontLoader.js +0 -3
  141. package/dist/Editor/common/Icon.js +1 -46
  142. package/dist/Editor/common/ImageSelector/ImageSelector.js +8 -10
  143. package/dist/Editor/common/ImageSelector/Options/AddLink.js +4 -6
  144. package/dist/Editor/common/ImageSelector/Styles.js +9 -3
  145. package/dist/Editor/common/LinkSettings/NavComponents.js +10 -14
  146. package/dist/Editor/common/LinkSettings/index.js +14 -20
  147. package/dist/Editor/common/LinkSettings/navOptions.js +1 -1
  148. package/dist/Editor/common/MentionsPopup/index.js +2 -6
  149. package/dist/Editor/common/RnD/ContextMenu/CMenus.js +22 -22
  150. package/dist/Editor/common/RnD/ContextMenu/index.js +2 -3
  151. package/dist/Editor/common/RnD/ElementOptions/index.js +2 -7
  152. package/dist/Editor/common/RnD/ElementSettings/OtherSettings/SaveAsTemplate.js +3 -8
  153. package/dist/Editor/common/RnD/ElementSettings/OtherSettings/Settings.js +3 -7
  154. package/dist/Editor/common/RnD/ElementSettings/Settings/AppHeaderSettings.js +2 -3
  155. package/dist/Editor/common/RnD/ElementSettings/Settings/BoxSettings.js +2 -3
  156. package/dist/Editor/common/RnD/ElementSettings/Settings/ButtonSettings.js +2 -3
  157. package/dist/Editor/common/RnD/ElementSettings/Settings/CodeSettings.js +2 -3
  158. package/dist/Editor/common/RnD/ElementSettings/Settings/FormSettings.js +4 -7
  159. package/dist/Editor/common/RnD/ElementSettings/Settings/ImageSettings.js +2 -3
  160. package/dist/Editor/common/RnD/ElementSettings/Settings/TableSettings.js +2 -3
  161. package/dist/Editor/common/RnD/ElementSettings/Settings/TextSettings.js +2 -6
  162. package/dist/Editor/common/RnD/ElementSettings/Settings/VideoSettings.js +2 -3
  163. package/dist/Editor/common/RnD/OptionsPopup/index.js +3 -4
  164. package/dist/Editor/common/RnD/SwitchViewport/SwitchViewport.js +4 -11
  165. package/dist/Editor/common/RnD/Theme/ViewportStimulator.js +3 -6
  166. package/dist/Editor/common/RnD/Utils/gridDropItem.js +7 -56
  167. package/dist/Editor/common/RnD/Utils/index.js +0 -3
  168. package/dist/Editor/common/RnD/VirtualElement/index.js +103 -187
  169. package/dist/Editor/common/RnD/VirtualElement/styles.js +7 -123
  170. package/dist/Editor/common/RnD/VirtualElement/updateAutoProps.js +3 -5
  171. package/dist/Editor/common/RnD/index.js +7 -59
  172. package/dist/Editor/common/Section/index.js +4 -7
  173. package/dist/Editor/common/Shorthands/elements.js +3 -74
  174. package/dist/Editor/common/StyleBuilder/appHeaderStyle.js +4 -4
  175. package/dist/Editor/common/StyleBuilder/boxStyle.js +2 -2
  176. package/dist/Editor/common/StyleBuilder/buttonStyle.js +4 -6
  177. package/dist/Editor/common/StyleBuilder/dividerStyles.js +2 -2
  178. package/dist/Editor/common/StyleBuilder/embedVideoStyle.js +6 -6
  179. package/dist/Editor/common/StyleBuilder/fieldStyle.js +2 -2
  180. package/dist/Editor/common/StyleBuilder/fieldTypes/alignment.js +9 -13
  181. package/dist/Editor/common/StyleBuilder/fieldTypes/backgroundImage.js +3 -11
  182. package/dist/Editor/common/StyleBuilder/fieldTypes/bannerSpacing.js +5 -19
  183. package/dist/Editor/common/StyleBuilder/fieldTypes/borderRadius.js +10 -22
  184. package/dist/Editor/common/StyleBuilder/fieldTypes/buttonLink.js +3 -6
  185. package/dist/Editor/common/StyleBuilder/fieldTypes/card.js +13 -27
  186. package/dist/Editor/common/StyleBuilder/fieldTypes/color.js +14 -43
  187. package/dist/Editor/common/StyleBuilder/fieldTypes/elementSize.js +6 -10
  188. package/dist/Editor/common/StyleBuilder/fieldTypes/fontSize.js +6 -19
  189. package/dist/Editor/common/StyleBuilder/fieldTypes/gridSize.js +2 -6
  190. package/dist/Editor/common/StyleBuilder/fieldTypes/icons.js +2 -5
  191. package/dist/Editor/common/StyleBuilder/fieldTypes/menusArray.js +6 -9
  192. package/dist/Editor/common/StyleBuilder/fieldTypes/metaDataMapping.js +2 -8
  193. package/dist/Editor/common/StyleBuilder/fieldTypes/saveAsTemplate.js +11 -12
  194. package/dist/Editor/common/StyleBuilder/fieldTypes/selectBox.js +2 -6
  195. package/dist/Editor/common/StyleBuilder/fieldTypes/text.js +4 -8
  196. package/dist/Editor/common/StyleBuilder/fieldTypes/textAlign.js +2 -6
  197. package/dist/Editor/common/StyleBuilder/fieldTypes/textOptions.js +12 -21
  198. package/dist/Editor/common/StyleBuilder/formStyle.js +7 -7
  199. package/dist/Editor/common/StyleBuilder/gridItemStyle.js +6 -6
  200. package/dist/Editor/common/StyleBuilder/gridStyle.js +5 -5
  201. package/dist/Editor/common/StyleBuilder/index.js +5 -8
  202. package/dist/Editor/common/StyleBuilder/pageSettingsStyle.js +7 -5
  203. package/dist/Editor/common/Uploader.js +5 -16
  204. package/dist/Editor/commonStyle.js +57 -68
  205. package/dist/Editor/helper/index.js +2 -2
  206. package/dist/Editor/helper/theme.js +2 -202
  207. package/dist/Editor/hooks/useMouseMove.js +3 -9
  208. package/dist/Editor/plugins/withEmbeds.js +1 -1
  209. package/dist/Editor/plugins/withHTML.js +7 -10
  210. package/dist/Editor/plugins/withLayout.js +2 -3
  211. package/dist/Editor/plugins/withTable.js +1 -1
  212. package/dist/Editor/theme/ThemeList.js +173 -50
  213. package/dist/Editor/utils/SlateUtilityFunctions.js +47 -164
  214. package/dist/Editor/utils/draftToSlate.js +2 -3
  215. package/dist/Editor/utils/embed.js +6 -8
  216. package/dist/Editor/utils/font.js +37 -40
  217. package/dist/Editor/utils/freegrid.js +2 -2
  218. package/dist/Editor/utils/helper.js +19 -90
  219. package/dist/Editor/utils/table.js +6 -9
  220. package/package.json +2 -2
  221. package/dist/Editor/Elements/DataView/Layouts/DataTypes/Components/MultiSelect.js +0 -425
  222. package/dist/Editor/Toolbar/PopupTool/ThemeTextFormat.js +0 -441
  223. package/dist/Editor/assets/svg/ClearAllRounded.js +0 -31
  224. package/dist/Editor/assets/svg/ThemeIcons.js +0 -291
  225. package/dist/Editor/common/CustomColorPicker/index.js +0 -131
  226. package/dist/Editor/common/CustomColorPicker/style.js +0 -53
  227. package/dist/Editor/common/CustomDialog2/index.js +0 -94
  228. package/dist/Editor/common/CustomDialog2/style.js +0 -67
  229. package/dist/Editor/common/CustomSelect.js +0 -33
  230. package/dist/Editor/common/RnD/Theme/MainThemeProvider.js +0 -17
  231. package/dist/Editor/common/RnD/VirtualElement/ForceAutoAlignment.js +0 -117
  232. package/dist/Editor/common/RnD/VirtualElement/VirtualTextElement.js +0 -134
  233. package/dist/Editor/common/RnD/VirtualElement/helper.js +0 -281
  234. package/dist/Editor/common/SnackBar/index.js +0 -43
  235. package/dist/Editor/helper/textIndeces.js +0 -58
  236. package/dist/Editor/hooks/useAutoScroll.js +0 -38
  237. package/dist/Editor/hooks/useEditorTheme.js +0 -153
  238. package/dist/Editor/hooks/useThemeValues.js +0 -63
  239. package/dist/Editor/theme/index.js +0 -147
  240. package/dist/Editor/themeSettings/ActiveTheme.js +0 -72
  241. package/dist/Editor/themeSettings/buttons/index.js +0 -285
  242. package/dist/Editor/themeSettings/buttons/style.js +0 -23
  243. package/dist/Editor/themeSettings/colorTheme/index.js +0 -305
  244. package/dist/Editor/themeSettings/colorTheme/style.js +0 -81
  245. package/dist/Editor/themeSettings/fonts/PreviewElement.js +0 -121
  246. package/dist/Editor/themeSettings/fonts/index.js +0 -222
  247. package/dist/Editor/themeSettings/fonts/style.js +0 -60
  248. package/dist/Editor/themeSettings/icons.js +0 -60
  249. package/dist/Editor/themeSettings/index.js +0 -331
  250. package/dist/Editor/themeSettings/style.js +0 -211
  251. package/dist/Editor/themeSettingsAI/icons.js +0 -96
  252. package/dist/Editor/themeSettingsAI/index.js +0 -355
  253. package/dist/Editor/themeSettingsAI/saveTheme.js +0 -205
  254. package/dist/Editor/themeSettingsAI/style.js +0 -259
@@ -77,7 +77,6 @@ const VideoPlaceholder = props => {
77
77
  readOnly,
78
78
  onSettings,
79
79
  classes,
80
- translation,
81
80
  type
82
81
  } = props;
83
82
  return !url ? !readOnly ? /*#__PURE__*/_jsxs(Box, {
@@ -89,7 +88,7 @@ const VideoPlaceholder = props => {
89
88
  },
90
89
  children: [/*#__PURE__*/_jsx(Icon, {
91
90
  icon: "video"
92
- }), translation(TYPE_LABELS[type] || "Embed Video or Other")]
91
+ }), TYPE_LABELS[type] || "Embed Video or Other"]
93
92
  }) : /*#__PURE__*/_jsxs(Box, {
94
93
  sx: {
95
94
  color: "#64748B !important",
@@ -101,7 +100,7 @@ const VideoPlaceholder = props => {
101
100
  className: "element-empty-btn",
102
101
  children: [/*#__PURE__*/_jsx(Icon, {
103
102
  icon: "shieldNoAccess"
104
- }), translation("contentNotAvilable")]
103
+ }), "The Content is no longer available."]
105
104
  }) : /*#__PURE__*/_jsx(VideoContent, {
106
105
  ...props
107
106
  });
@@ -126,8 +125,7 @@ const Video = ({
126
125
  const [openSetttings, setOpenSettings] = useState(false);
127
126
  const [parentDOM, setParentDOM] = useState(null);
128
127
  const {
129
- readOnly,
130
- translation
128
+ readOnly
131
129
  } = customProps;
132
130
  const {
133
131
  vertical,
@@ -173,14 +171,14 @@ const Video = ({
173
171
  className: "element-toolbar visible-on-hover",
174
172
  contentEditable: false,
175
173
  children: [/*#__PURE__*/_jsx(Tooltip, {
176
- title: translation("Video Settings"),
174
+ title: "Video Settings",
177
175
  arrow: true,
178
176
  children: /*#__PURE__*/_jsx(IconButton, {
179
177
  onClick: onSettings,
180
178
  children: /*#__PURE__*/_jsx(GridSettingsIcon, {})
181
179
  })
182
180
  }), /*#__PURE__*/_jsx(Tooltip, {
183
- title: translation("Delete Video"),
181
+ title: "Delete Video",
184
182
  arrow: true,
185
183
  children: /*#__PURE__*/_jsx(IconButton, {
186
184
  onClick: onDelete,
@@ -286,8 +284,7 @@ const Video = ({
286
284
  url: url,
287
285
  readOnly: readOnly,
288
286
  resizing: resizing,
289
- classes: classes,
290
- translation: translation
287
+ classes: classes
291
288
  }), !readOnly && url ? /*#__PURE__*/_jsx(IconButton, {
292
289
  onPointerDown: onMouseDown,
293
290
  style: {
@@ -26,14 +26,13 @@ const getCode = (embedData, isEncoded) => {
26
26
  return embedData;
27
27
  };
28
28
  const ToolBar = ({
29
- onDelete,
30
- translation
29
+ onDelete
31
30
  }) => {
32
31
  return /*#__PURE__*/_jsx("div", {
33
32
  className: "element-toolbar visible-on-hover",
34
33
  contentEditable: false,
35
34
  children: /*#__PURE__*/_jsx(Tooltip, {
36
- title: translation("Delete"),
35
+ title: "Delete",
37
36
  arrow: true,
38
37
  children: /*#__PURE__*/_jsx(IconButton, {
39
38
  onClick: onDelete,
@@ -56,8 +55,7 @@ const Code = props => {
56
55
  isSanitized
57
56
  } = element;
58
57
  const {
59
- readOnly,
60
- translation
58
+ readOnly
61
59
  } = customProps;
62
60
  const editor = useSlateStatic();
63
61
  const path = ReactEditor.findPath(editor, element);
@@ -92,8 +90,7 @@ const Code = props => {
92
90
  }, /*#__PURE__*/_jsx("div", {
93
91
  ref: codeRef
94
92
  }), children, !readOnly && /*#__PURE__*/_jsx(ToolBar, {
95
- onDelete: onDelete,
96
- translation: translation
93
+ onDelete: onDelete
97
94
  }));
98
95
  };
99
96
  export default Code;
@@ -7,19 +7,15 @@ import { Fragment as _Fragment } from "react/jsx-runtime";
7
7
  import { jsxs as _jsxs } from "react/jsx-runtime";
8
8
  const EmbedScript = props => {
9
9
  const {
10
- icoBtnType,
11
- customProps
10
+ icoBtnType
12
11
  } = props;
13
12
  const [open, setOpen] = useState(false);
14
- const {
15
- translation
16
- } = customProps;
17
13
  const handleClick = () => {
18
14
  setOpen(true);
19
15
  };
20
16
  return /*#__PURE__*/_jsxs(_Fragment, {
21
17
  children: [/*#__PURE__*/_jsx(ToolbarIcon, {
22
- title: translation("Code"),
18
+ title: "Code",
23
19
  onClick: handleClick,
24
20
  icon: /*#__PURE__*/_jsx(Icon, {
25
21
  icon: "embedScript"
@@ -24,9 +24,6 @@ const EmbedScriptPopup = props => {
24
24
  loading,
25
25
  error
26
26
  } = apiStatus;
27
- const {
28
- translation
29
- } = customProps;
30
27
  useEffect(() => {
31
28
  if (customProps?.services) {
32
29
  customProps.services("allowedDomains", {}).then(data => {
@@ -81,7 +78,7 @@ const EmbedScriptPopup = props => {
81
78
  alignItems: "center",
82
79
  gap: "6px"
83
80
  },
84
- children: [translation("Embed Code"), allowedDomains?.length ? /*#__PURE__*/_jsx(Tooltip, {
81
+ children: ["Embed Code", allowedDomains?.length ? /*#__PURE__*/_jsx(Tooltip, {
85
82
  title: /*#__PURE__*/_jsxs(Box, {
86
83
  sx: {
87
84
  textTransform: "none"
@@ -90,7 +87,7 @@ const EmbedScriptPopup = props => {
90
87
  style: {
91
88
  fontWeight: "bold"
92
89
  },
93
- children: translation("Allowed Domains")
90
+ children: "Allowed Domains"
94
91
  }), /*#__PURE__*/_jsx("br", {}), allowedDomains.join(", ")]
95
92
  }),
96
93
  children: /*#__PURE__*/_jsx(InfoOutlinedIcon, {
@@ -117,16 +114,16 @@ const EmbedScriptPopup = props => {
117
114
  }), /*#__PURE__*/_jsx(Box, {
118
115
  component: "div",
119
116
  color: "red",
120
- children: error ? translation("errorOnCode") : ""
117
+ children: error ? "There was some error on this code." : ""
121
118
  })]
122
119
  }), /*#__PURE__*/_jsxs(DialogActions, {
123
120
  children: [/*#__PURE__*/_jsx(Button, {
124
121
  onClick: onSubmit,
125
122
  disabled: loading,
126
- children: loading ? translation("Validating") : translation("Save")
123
+ children: loading ? "Validating" : "Save"
127
124
  }), /*#__PURE__*/_jsx(Button, {
128
125
  onClick: onClose,
129
- children: translation("Cancel")
126
+ children: "Cancel"
130
127
  })]
131
128
  })]
132
129
  })
@@ -14,17 +14,13 @@ const EmojiButton = /*#__PURE__*/forwardRef((props, ref) => {
14
14
  const {
15
15
  icoBtnType,
16
16
  selectionTarget,
17
- theme = 'light',
18
- customProps
17
+ theme = 'light'
19
18
  } = props;
20
19
  const editor = useSlateStatic();
21
20
  const [anchorEl, setAnchorEl] = useState(null);
22
21
  const [target, setTarget] = useState(selectionTarget);
23
22
  const open = Boolean(anchorEl);
24
23
  const isMobile = window.matchMedia("(max-width: 899px)")?.matches || false;
25
- const {
26
- translation
27
- } = customProps;
28
24
  useImperativeHandle(ref, () => ({
29
25
  triggerClick: target => {
30
26
  setTarget(target);
@@ -54,7 +50,7 @@ const EmojiButton = /*#__PURE__*/forwardRef((props, ref) => {
54
50
  };
55
51
  return /*#__PURE__*/_jsxs(_Fragment, {
56
52
  children: [/*#__PURE__*/_jsx(ToolbarIcon, {
57
- title: translation("Emoji"),
53
+ title: "Emoji",
58
54
  onClick: onClick,
59
55
  icon: /*#__PURE__*/_jsx(Icon, {
60
56
  icon: "emoji"
@@ -9,11 +9,8 @@ const FieldPopup = 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("Form Field"),
13
+ title: "Form Field",
17
14
  type: "fieldStyle",
18
15
  element: element,
19
16
  onSave: onSave,
@@ -32,8 +32,7 @@ const Form = props => {
32
32
  page_id,
33
33
  onFormSubmit = () => {},
34
34
  tagName = "Pages",
35
- isIframe = false,
36
- translation
35
+ isIframe = false
37
36
  } = customProps;
38
37
  const {
39
38
  buttonProps,
@@ -314,7 +313,7 @@ const Form = props => {
314
313
  textAlign: "left"
315
314
  },
316
315
  children: [/*#__PURE__*/_jsx(Tooltip, {
317
- title: translation("Form Settings"),
316
+ title: "Form Settings",
318
317
  arrow: true,
319
318
  children: /*#__PURE__*/_jsx(IconButton, {
320
319
  onClick: onSettings,
@@ -322,7 +321,7 @@ const Form = props => {
322
321
  children: /*#__PURE__*/_jsx(GridSettingsIcon, {})
323
322
  })
324
323
  }), /*#__PURE__*/_jsx(Tooltip, {
325
- title: translation("Add Form Field"),
324
+ title: "Add Form Field",
326
325
  arrow: true,
327
326
  children: /*#__PURE__*/_jsx(IconButton, {
328
327
  onClick: onAddFormField,
@@ -330,7 +329,7 @@ const Form = props => {
330
329
  children: /*#__PURE__*/_jsx(GridAddSectionIcon, {})
331
330
  })
332
331
  }), /*#__PURE__*/_jsx(Tooltip, {
333
- title: translation("Delete Form"),
332
+ title: "Delete Form",
334
333
  arrow: true,
335
334
  children: /*#__PURE__*/_jsx(IconButton, {
336
335
  onClick: onDelete,
@@ -338,7 +337,7 @@ const Form = props => {
338
337
  children: /*#__PURE__*/_jsx(DeleteIcon, {})
339
338
  })
340
339
  }), /*#__PURE__*/_jsx(Tooltip, {
341
- title: translation("Workflow"),
340
+ title: "Workflow",
342
341
  arrow: true,
343
342
  children: /*#__PURE__*/_jsx(IconButton, {
344
343
  className: "svg-big-btn",
@@ -522,14 +521,12 @@ const Form = props => {
522
521
  element: element,
523
522
  onSave: onSave,
524
523
  onClose: onClose,
525
- customProps: customProps,
526
- translation: translation
524
+ customProps: customProps
527
525
  }) : null, /*#__PURE__*/_jsx(Workflow, {
528
526
  openWorkflow: openWorkflow,
529
527
  element: element,
530
528
  closeWorkflow: closeWorkflow,
531
- onSave: onSave,
532
- customProps: customProps
529
+ onSave: onSave
533
530
  }), !readOnly && !isIframe ? /*#__PURE__*/_jsxs(Menu, {
534
531
  className: "editor-btn-options",
535
532
  open: anchorEl !== null,
@@ -539,7 +536,7 @@ const Form = props => {
539
536
  children: [/*#__PURE__*/_jsx(MenuItem, {
540
537
  onClick: onMenuClick("edit"),
541
538
  children: /*#__PURE__*/_jsx(Tooltip, {
542
- title: translation("Button Settings"),
539
+ title: "Button Settings",
543
540
  arrow: true,
544
541
  children: /*#__PURE__*/_jsx(IconButton, {
545
542
  children: /*#__PURE__*/_jsx(GridSettingsIcon, {})
@@ -548,7 +545,7 @@ const Form = props => {
548
545
  }), /*#__PURE__*/_jsx(MenuItem, {
549
546
  onClick: onMenuClick("test"),
550
547
  children: /*#__PURE__*/_jsx(Tooltip, {
551
- title: translation("Test Submit"),
548
+ title: "Test Submit",
552
549
  arrow: true,
553
550
  children: /*#__PURE__*/_jsx(IconButton, {
554
551
  children: /*#__PURE__*/_jsx(BackupIcon, {})
@@ -5,18 +5,14 @@ import ToolbarIcon from "../../common/ToolbarIcon";
5
5
  import Icon from "../../common/Icon";
6
6
  import { jsx as _jsx } from "react/jsx-runtime";
7
7
  const FormButton = ({
8
- icoBtnType,
9
- customProps
8
+ icoBtnType
10
9
  }) => {
11
- const {
12
- translation
13
- } = customProps;
14
10
  const editor = useSlateStatic();
15
11
  const onClick = () => {
16
12
  insertForm(editor);
17
13
  };
18
14
  return /*#__PURE__*/_jsx(ToolbarIcon, {
19
- title: translation("Form"),
15
+ title: "Form",
20
16
  onClick: onClick,
21
17
  icon: /*#__PURE__*/_jsx(Icon, {
22
18
  icon: "form"
@@ -8,12 +8,11 @@ const FormPopup = props => {
8
8
  element,
9
9
  onSave,
10
10
  onClose,
11
- customProps,
12
- translation
11
+ customProps
13
12
  } = props;
14
13
  return /*#__PURE__*/_jsx(_Fragment, {
15
14
  children: /*#__PURE__*/_jsx(StyleBuilder, {
16
- title: translation("Form"),
15
+ title: "Form",
17
16
  type: "formStyle",
18
17
  element: element,
19
18
  onSave: onSave,
@@ -21,12 +21,8 @@ const FormWorkflow = props => {
21
21
  setBodyData,
22
22
  handleSelectedVariables,
23
23
  handleInputReset,
24
- classes,
25
- customProps
24
+ classes
26
25
  } = props;
27
- const {
28
- translation
29
- } = customProps;
30
26
  const [anchorEl, setAnchorEl] = useState(null);
31
27
  const variables = element?.children;
32
28
  const type = 1;
@@ -61,10 +57,10 @@ const FormWorkflow = props => {
61
57
  xs: 12,
62
58
  children: [/*#__PURE__*/_jsx(Typography, {
63
59
  sx: classes.subHeadings,
64
- children: translation("setTimingText")
60
+ children: "Set Timings *"
65
61
  }), /*#__PURE__*/_jsx(Typography, {
66
62
  sx: classes.infoText,
67
- children: translation("setTimingHelperText")
63
+ children: "Invitees will receive reminder emails at specified times before scheduled events"
68
64
  })]
69
65
  }), /*#__PURE__*/_jsx(Grid, {
70
66
  item: true,
@@ -81,7 +77,7 @@ const FormWorkflow = props => {
81
77
  defaultValue: 1,
82
78
  children: [/*#__PURE__*/_jsx(FormControlLabel, {
83
79
  value: "immediately",
84
- label: translation("Immediately"),
80
+ label: "Immediately",
85
81
  onChange: () => {
86
82
  setSchedule("immediately");
87
83
  },
@@ -90,7 +86,7 @@ const FormWorkflow = props => {
90
86
  })
91
87
  }), /*#__PURE__*/_jsx(FormControlLabel, {
92
88
  value: "after",
93
- label: translation("After"),
89
+ label: "After",
94
90
  onChange: () => {
95
91
  setSchedule("after");
96
92
  },
@@ -137,15 +133,15 @@ const FormWorkflow = props => {
137
133
  children: [/*#__PURE__*/_jsx(MenuItem, {
138
134
  sx: classes.selectList,
139
135
  value: "minutes",
140
- children: translation("Minutes")
136
+ children: "Minutes"
141
137
  }), /*#__PURE__*/_jsx(MenuItem, {
142
138
  sx: classes.selectList,
143
139
  value: "hours",
144
- children: translation("Hours")
140
+ children: "Hours"
145
141
  }), /*#__PURE__*/_jsx(MenuItem, {
146
142
  sx: classes.selectList,
147
143
  value: "days",
148
- children: translation("Day")
144
+ children: "Day"
149
145
  })]
150
146
  })
151
147
  })
@@ -158,7 +154,7 @@ const FormWorkflow = props => {
158
154
  xs: 12,
159
155
  children: [/*#__PURE__*/_jsx(Typography, {
160
156
  sx: classes.formHeadings,
161
- children: translation("subjectText")
157
+ children: "Subject *"
162
158
  }), /*#__PURE__*/_jsx(TextField, {
163
159
  multiline: true,
164
160
  margin: "none",
@@ -193,7 +189,7 @@ const FormWorkflow = props => {
193
189
  sx: classes.variableBtn,
194
190
  onClick: handleVariables,
195
191
  endIcon: /*#__PURE__*/_jsx(KeyboardArrowDownIcon, {}),
196
- children: translation("Variables")
192
+ children: "Variables"
197
193
  }), /*#__PURE__*/_jsx(Menu, {
198
194
  id: "basic-menu",
199
195
  open: Boolean(anchorEl),
@@ -223,7 +219,7 @@ const FormWorkflow = props => {
223
219
  xs: 12,
224
220
  children: [/*#__PURE__*/_jsx(Typography, {
225
221
  sx: classes.formHeadings,
226
- children: translation("bodyText")
222
+ children: "Body *"
227
223
  }), /*#__PURE__*/_jsx(UserInputs, {
228
224
  element: element,
229
225
  type: 2,
@@ -231,9 +227,7 @@ const FormWorkflow = props => {
231
227
  handleField: handleBodyField,
232
228
  onSave: onSaveBodyField,
233
229
  handleSelectedVariables: handleSelectedVariables,
234
- handleInputReset: handleInputReset,
235
- customProps: customProps,
236
- translation: translation
230
+ handleInputReset: handleInputReset
237
231
  })]
238
232
  })]
239
233
  });
@@ -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
  });
@@ -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
  });