@flozy/editor 9.8.3 → 9.8.4

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