@flozy/editor 9.6.4 → 9.6.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 (253) 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 +18 -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 -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 +15 -24
  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 +10 -22
  72. package/dist/Editor/Elements/FreeGrid/FreeGrid.js +23 -67
  73. package/dist/Editor/Elements/FreeGrid/FreeGridBox.js +4 -23
  74. package/dist/Editor/Elements/FreeGrid/FreeGridButton.js +2 -6
  75. package/dist/Editor/Elements/FreeGrid/FreeGridItem.js +5 -36
  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/MentionsPopup/index.js +2 -6
  147. package/dist/Editor/common/RnD/ContextMenu/CMenus.js +22 -22
  148. package/dist/Editor/common/RnD/ContextMenu/index.js +2 -3
  149. package/dist/Editor/common/RnD/ElementOptions/index.js +2 -7
  150. package/dist/Editor/common/RnD/ElementSettings/OtherSettings/SaveAsTemplate.js +3 -8
  151. package/dist/Editor/common/RnD/ElementSettings/OtherSettings/Settings.js +3 -7
  152. package/dist/Editor/common/RnD/ElementSettings/Settings/AppHeaderSettings.js +2 -3
  153. package/dist/Editor/common/RnD/ElementSettings/Settings/BoxSettings.js +2 -3
  154. package/dist/Editor/common/RnD/ElementSettings/Settings/ButtonSettings.js +2 -3
  155. package/dist/Editor/common/RnD/ElementSettings/Settings/CodeSettings.js +2 -3
  156. package/dist/Editor/common/RnD/ElementSettings/Settings/FormSettings.js +4 -7
  157. package/dist/Editor/common/RnD/ElementSettings/Settings/ImageSettings.js +2 -3
  158. package/dist/Editor/common/RnD/ElementSettings/Settings/TableSettings.js +2 -3
  159. package/dist/Editor/common/RnD/ElementSettings/Settings/TextSettings.js +2 -6
  160. package/dist/Editor/common/RnD/ElementSettings/Settings/VideoSettings.js +2 -3
  161. package/dist/Editor/common/RnD/ElementSettings/styles.js +1 -0
  162. package/dist/Editor/common/RnD/OptionsPopup/index.js +3 -4
  163. package/dist/Editor/common/RnD/SwitchViewport/SwitchViewport.js +4 -11
  164. package/dist/Editor/common/RnD/Theme/ViewportStimulator.js +3 -6
  165. package/dist/Editor/common/RnD/Utils/gridDropItem.js +7 -56
  166. package/dist/Editor/common/RnD/Utils/index.js +0 -3
  167. package/dist/Editor/common/RnD/VirtualElement/index.js +103 -187
  168. package/dist/Editor/common/RnD/VirtualElement/styles.js +7 -123
  169. package/dist/Editor/common/RnD/VirtualElement/updateAutoProps.js +3 -5
  170. package/dist/Editor/common/RnD/index.js +14 -59
  171. package/dist/Editor/common/Section/index.js +4 -7
  172. package/dist/Editor/common/Shorthands/elements.js +3 -74
  173. package/dist/Editor/common/StyleBuilder/appHeaderStyle.js +4 -4
  174. package/dist/Editor/common/StyleBuilder/boxStyle.js +2 -2
  175. package/dist/Editor/common/StyleBuilder/buttonStyle.js +4 -6
  176. package/dist/Editor/common/StyleBuilder/dividerStyles.js +2 -2
  177. package/dist/Editor/common/StyleBuilder/embedVideoStyle.js +6 -6
  178. package/dist/Editor/common/StyleBuilder/fieldStyle.js +2 -2
  179. package/dist/Editor/common/StyleBuilder/fieldTypes/alignment.js +9 -13
  180. package/dist/Editor/common/StyleBuilder/fieldTypes/backgroundImage.js +3 -11
  181. package/dist/Editor/common/StyleBuilder/fieldTypes/bannerSpacing.js +5 -19
  182. package/dist/Editor/common/StyleBuilder/fieldTypes/borderRadius.js +10 -22
  183. package/dist/Editor/common/StyleBuilder/fieldTypes/buttonLink.js +3 -6
  184. package/dist/Editor/common/StyleBuilder/fieldTypes/card.js +13 -27
  185. package/dist/Editor/common/StyleBuilder/fieldTypes/color.js +14 -43
  186. package/dist/Editor/common/StyleBuilder/fieldTypes/elementSize.js +6 -10
  187. package/dist/Editor/common/StyleBuilder/fieldTypes/fontSize.js +6 -19
  188. package/dist/Editor/common/StyleBuilder/fieldTypes/gridSize.js +2 -6
  189. package/dist/Editor/common/StyleBuilder/fieldTypes/icons.js +2 -5
  190. package/dist/Editor/common/StyleBuilder/fieldTypes/menusArray.js +6 -9
  191. package/dist/Editor/common/StyleBuilder/fieldTypes/metaDataMapping.js +2 -8
  192. package/dist/Editor/common/StyleBuilder/fieldTypes/saveAsTemplate.js +11 -12
  193. package/dist/Editor/common/StyleBuilder/fieldTypes/selectBox.js +2 -6
  194. package/dist/Editor/common/StyleBuilder/fieldTypes/text.js +4 -8
  195. package/dist/Editor/common/StyleBuilder/fieldTypes/textAlign.js +2 -6
  196. package/dist/Editor/common/StyleBuilder/fieldTypes/textOptions.js +12 -21
  197. package/dist/Editor/common/StyleBuilder/formStyle.js +7 -7
  198. package/dist/Editor/common/StyleBuilder/gridItemStyle.js +6 -6
  199. package/dist/Editor/common/StyleBuilder/gridStyle.js +5 -5
  200. package/dist/Editor/common/StyleBuilder/index.js +5 -8
  201. package/dist/Editor/common/StyleBuilder/pageSettingsStyle.js +7 -5
  202. package/dist/Editor/common/Uploader.js +5 -16
  203. package/dist/Editor/commonStyle.js +12 -23
  204. package/dist/Editor/helper/index.js +3 -27
  205. package/dist/Editor/helper/theme.js +2 -202
  206. package/dist/Editor/hooks/useDrag.js +1 -1
  207. package/dist/Editor/hooks/useEditorScroll.js +1 -0
  208. package/dist/Editor/hooks/useMouseMove.js +3 -9
  209. package/dist/Editor/plugins/withEmbeds.js +13 -1
  210. package/dist/Editor/plugins/withHTML.js +9 -11
  211. package/dist/Editor/plugins/withLayout.js +2 -3
  212. package/dist/Editor/plugins/withTable.js +1 -1
  213. package/dist/Editor/theme/ThemeList.js +173 -50
  214. package/dist/Editor/utils/SlateUtilityFunctions.js +49 -168
  215. package/dist/Editor/utils/draftToSlate.js +2 -3
  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/package.json +3 -3
  220. package/dist/Editor/Elements/DataView/Layouts/DataTypes/Components/MultiSelect.js +0 -425
  221. package/dist/Editor/Toolbar/PopupTool/ThemeTextFormat.js +0 -436
  222. package/dist/Editor/assets/svg/ClearAllRounded.js +0 -31
  223. package/dist/Editor/assets/svg/ThemeIcons.js +0 -291
  224. package/dist/Editor/common/CustomColorPicker/index.js +0 -131
  225. package/dist/Editor/common/CustomColorPicker/style.js +0 -53
  226. package/dist/Editor/common/CustomDialog2/index.js +0 -94
  227. package/dist/Editor/common/CustomDialog2/style.js +0 -67
  228. package/dist/Editor/common/CustomSelect.js +0 -43
  229. package/dist/Editor/common/RnD/Theme/MainThemeProvider.js +0 -17
  230. package/dist/Editor/common/RnD/VirtualElement/ForceAutoAlignment.js +0 -117
  231. package/dist/Editor/common/RnD/VirtualElement/VirtualTextElement.js +0 -134
  232. package/dist/Editor/common/RnD/VirtualElement/helper.js +0 -281
  233. package/dist/Editor/common/SnackBar/index.js +0 -43
  234. package/dist/Editor/helper/textIndeces.js +0 -58
  235. package/dist/Editor/hooks/useAutoScroll.js +0 -38
  236. package/dist/Editor/hooks/useEditorTheme.js +0 -153
  237. package/dist/Editor/hooks/useThemeValues.js +0 -63
  238. package/dist/Editor/theme/index.js +0 -149
  239. package/dist/Editor/themeSettings/ActiveTheme.js +0 -72
  240. package/dist/Editor/themeSettings/buttons/index.js +0 -290
  241. package/dist/Editor/themeSettings/buttons/style.js +0 -23
  242. package/dist/Editor/themeSettings/colorTheme/index.js +0 -310
  243. package/dist/Editor/themeSettings/colorTheme/style.js +0 -81
  244. package/dist/Editor/themeSettings/fonts/PreviewElement.js +0 -121
  245. package/dist/Editor/themeSettings/fonts/index.js +0 -240
  246. package/dist/Editor/themeSettings/fonts/style.js +0 -61
  247. package/dist/Editor/themeSettings/icons.js +0 -60
  248. package/dist/Editor/themeSettings/index.js +0 -351
  249. package/dist/Editor/themeSettings/style.js +0 -220
  250. package/dist/Editor/themeSettingsAI/icons.js +0 -96
  251. package/dist/Editor/themeSettingsAI/index.js +0 -355
  252. package/dist/Editor/themeSettingsAI/saveTheme.js +0 -205
  253. 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,
@@ -2,7 +2,6 @@ import React, { useState } from "react";
2
2
  import { Grid, Radio, RadioGroup, Typography, FormControlLabel, Select, MenuItem, FormControl, TextField, Button, Menu } from "@mui/material";
3
3
  import KeyboardArrowDownIcon from "@mui/icons-material/KeyboardArrowDown";
4
4
  import UserInputs from "./UserInputs";
5
- import { minutes, hours, days } from "./constant";
6
5
  import { jsx as _jsx } from "react/jsx-runtime";
7
6
  import { jsxs as _jsxs } from "react/jsx-runtime";
8
7
  import { Fragment as _Fragment } from "react/jsx-runtime";
@@ -22,12 +21,8 @@ const FormWorkflow = props => {
22
21
  setBodyData,
23
22
  handleSelectedVariables,
24
23
  handleInputReset,
25
- classes,
26
- customProps
24
+ classes
27
25
  } = props;
28
- const {
29
- translation
30
- } = customProps;
31
26
  const [anchorEl, setAnchorEl] = useState(null);
32
27
  const variables = element?.children;
33
28
  const type = 1;
@@ -39,9 +34,7 @@ const FormWorkflow = props => {
39
34
  setBodyData(bodyData);
40
35
  };
41
36
  const handleScheduleInstant = event => {
42
- const scheduleOn = event.target.value === "minutes" ? minutes[0] : event.target.value === "hours" ? hours[0] : days[0];
43
37
  setScheduleEvery(event.target.value);
44
- setScheduleOn(scheduleOn);
45
38
  };
46
39
  const onHandleChange = event => {
47
40
  setScheduleOn(event.target.value);
@@ -64,10 +57,10 @@ const FormWorkflow = props => {
64
57
  xs: 12,
65
58
  children: [/*#__PURE__*/_jsx(Typography, {
66
59
  sx: classes.subHeadings,
67
- children: translation("setTimingText")
60
+ children: "Set Timings *"
68
61
  }), /*#__PURE__*/_jsx(Typography, {
69
62
  sx: classes.infoText,
70
- children: translation("setTimingHelperText")
63
+ children: "Invitees will receive reminder emails at specified times before scheduled events"
71
64
  })]
72
65
  }), /*#__PURE__*/_jsx(Grid, {
73
66
  item: true,
@@ -84,7 +77,7 @@ const FormWorkflow = props => {
84
77
  defaultValue: 1,
85
78
  children: [/*#__PURE__*/_jsx(FormControlLabel, {
86
79
  value: "immediately",
87
- label: translation("Immediately"),
80
+ label: "Immediately",
88
81
  onChange: () => {
89
82
  setSchedule("immediately");
90
83
  },
@@ -93,7 +86,7 @@ const FormWorkflow = props => {
93
86
  })
94
87
  }), /*#__PURE__*/_jsx(FormControlLabel, {
95
88
  value: "after",
96
- label: translation("After"),
89
+ label: "After",
97
90
  onChange: () => {
98
91
  setSchedule("after");
99
92
  },
@@ -113,14 +106,14 @@ const FormWorkflow = props => {
113
106
  fullWidth: true,
114
107
  size: "small",
115
108
  children: /*#__PURE__*/_jsx(Select, {
116
- value: `${scheduleOn}`,
109
+ value: scheduleOn,
117
110
  onChange: onHandleChange,
118
111
  sx: classes.select,
119
112
  IconComponent: KeyboardArrowDownIcon,
120
113
  children: currentInstant.map((ele, index) => /*#__PURE__*/_jsx(MenuItem, {
121
114
  sx: classes.selectList,
122
- value: `${ele}`,
123
- children: `${ele}`
115
+ value: ele,
116
+ children: ele
124
117
  }, `${ele}_${index}`))
125
118
  })
126
119
  })
@@ -140,15 +133,15 @@ const FormWorkflow = props => {
140
133
  children: [/*#__PURE__*/_jsx(MenuItem, {
141
134
  sx: classes.selectList,
142
135
  value: "minutes",
143
- children: translation("Minutes")
136
+ children: "Minutes"
144
137
  }), /*#__PURE__*/_jsx(MenuItem, {
145
138
  sx: classes.selectList,
146
139
  value: "hours",
147
- children: translation("Hours")
140
+ children: "Hours"
148
141
  }), /*#__PURE__*/_jsx(MenuItem, {
149
142
  sx: classes.selectList,
150
143
  value: "days",
151
- children: translation("Day")
144
+ children: "Day"
152
145
  })]
153
146
  })
154
147
  })
@@ -161,7 +154,7 @@ const FormWorkflow = props => {
161
154
  xs: 12,
162
155
  children: [/*#__PURE__*/_jsx(Typography, {
163
156
  sx: classes.formHeadings,
164
- children: translation("subjectText")
157
+ children: "Subject *"
165
158
  }), /*#__PURE__*/_jsx(TextField, {
166
159
  multiline: true,
167
160
  margin: "none",
@@ -196,7 +189,7 @@ const FormWorkflow = props => {
196
189
  sx: classes.variableBtn,
197
190
  onClick: handleVariables,
198
191
  endIcon: /*#__PURE__*/_jsx(KeyboardArrowDownIcon, {}),
199
- children: translation("Variables")
192
+ children: "Variables"
200
193
  }), /*#__PURE__*/_jsx(Menu, {
201
194
  id: "basic-menu",
202
195
  open: Boolean(anchorEl),
@@ -226,7 +219,7 @@ const FormWorkflow = props => {
226
219
  xs: 12,
227
220
  children: [/*#__PURE__*/_jsx(Typography, {
228
221
  sx: classes.formHeadings,
229
- children: translation("bodyText")
222
+ children: "Body *"
230
223
  }), /*#__PURE__*/_jsx(UserInputs, {
231
224
  element: element,
232
225
  type: 2,
@@ -234,9 +227,7 @@ const FormWorkflow = props => {
234
227
  handleField: handleBodyField,
235
228
  onSave: onSaveBodyField,
236
229
  handleSelectedVariables: handleSelectedVariables,
237
- handleInputReset: handleInputReset,
238
- customProps: customProps,
239
- translation: translation
230
+ handleInputReset: handleInputReset
240
231
  })]
241
232
  })]
242
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
  });
@@ -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
  });