@flozy/editor 9.6.8 → 9.6.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (256) hide show
  1. package/dist/Editor/ChatEditor.js +26 -19
  2. package/dist/Editor/CommonEditor.js +139 -25
  3. package/dist/Editor/DialogWrapper.js +31 -25
  4. package/dist/Editor/Editor.css +13 -9
  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 +4 -2
  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 +425 -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 +14 -9
  58. package/dist/Editor/Elements/Embed/Video.js +9 -6
  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 +38 -5
  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 +14 -9
  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 +7 -3
  94. package/dist/Editor/Elements/Signature/SignatureButton.js +6 -2
  95. package/dist/Editor/Elements/Signature/SignatureOptions/TypeSignature.js +6 -2
  96. package/dist/Editor/Elements/Signature/SignatureOptions/UploadSignature.js +4 -1
  97. package/dist/Editor/Elements/Signature/SignaturePopup.js +17 -16
  98. package/dist/Editor/Elements/SimpleText/index.js +5 -4
  99. package/dist/Editor/Elements/SimpleText/style.js +2 -2
  100. package/dist/Editor/Elements/Table/DragButton.js +4 -2
  101. package/dist/Editor/Elements/Table/Table.js +24 -12
  102. package/dist/Editor/Elements/Table/TablePopup.js +4 -1
  103. package/dist/Editor/Elements/Table/TableSelector.js +10 -6
  104. package/dist/Editor/Elements/Table/TableTool.js +8 -4
  105. package/dist/Editor/Elements/Title/title.js +15 -2
  106. package/dist/Editor/Elements/TopBanner/TopBannerButton.js +4 -1
  107. package/dist/Editor/Elements/Variables/VariableButton.js +10 -1
  108. package/dist/Editor/MiniEditor.js +10 -3
  109. package/dist/Editor/Styles/EditorStyles.js +5 -5
  110. package/dist/Editor/Toolbar/Basic/index.js +2 -1
  111. package/dist/Editor/Toolbar/FormatTools/BlockButton.js +6 -2
  112. package/dist/Editor/Toolbar/FormatTools/Dropdown.js +27 -3
  113. package/dist/Editor/Toolbar/FormatTools/FontFamilyAutocomplete.js +4 -3
  114. package/dist/Editor/Toolbar/FormatTools/MarkButton.js +8 -4
  115. package/dist/Editor/Toolbar/FormatTools/TextSize.js +10 -13
  116. package/dist/Editor/Toolbar/Mini/MiniToolbar.js +17 -5
  117. package/dist/Editor/Toolbar/PopupTool/AddTemplates.js +10 -5
  118. package/dist/Editor/Toolbar/PopupTool/ButtonTemplatesCard.js +10 -4
  119. package/dist/Editor/Toolbar/PopupTool/FullViewCard.js +10 -4
  120. package/dist/Editor/Toolbar/PopupTool/MiniTextFormat/MiniColorPicker.js +9 -3
  121. package/dist/Editor/Toolbar/PopupTool/MiniTextFormat/SelectAlignment.js +42 -35
  122. package/dist/Editor/Toolbar/PopupTool/MiniTextFormat/SelectFontSize.js +6 -13
  123. package/dist/Editor/Toolbar/PopupTool/MiniTextFormat/SelectList.js +58 -51
  124. package/dist/Editor/Toolbar/PopupTool/MiniTextFormat/SelectSuperSubscript.js +29 -22
  125. package/dist/Editor/Toolbar/PopupTool/MiniTextFormat/SelectTypography.js +226 -87
  126. package/dist/Editor/Toolbar/PopupTool/MiniTextFormat/index.js +20 -10
  127. package/dist/Editor/Toolbar/PopupTool/PopperHeader.js +10 -5
  128. package/dist/Editor/Toolbar/PopupTool/PopupToolStyle.js +71 -11
  129. package/dist/Editor/Toolbar/PopupTool/TemplateCard.js +11 -5
  130. package/dist/Editor/Toolbar/PopupTool/TextFormat.js +128 -45
  131. package/dist/Editor/Toolbar/PopupTool/ThemeTextFormat.js +436 -0
  132. package/dist/Editor/Toolbar/PopupTool/index.js +20 -10
  133. package/dist/Editor/Toolbar/Toolbar.js +20 -10
  134. package/dist/Editor/Toolbar/toolbarGroups.js +48 -6
  135. package/dist/Editor/assets/svg/ClearAllRounded.js +31 -0
  136. package/dist/Editor/assets/svg/ThemeIcons.js +291 -0
  137. package/dist/Editor/common/ColorPickerButton.js +39 -14
  138. package/dist/Editor/common/CustomColorPicker/index.js +131 -0
  139. package/dist/Editor/common/CustomColorPicker/style.js +53 -0
  140. package/dist/Editor/common/CustomDialog/index.js +8 -10
  141. package/dist/Editor/common/CustomDialog2/index.js +94 -0
  142. package/dist/Editor/common/CustomDialog2/style.js +67 -0
  143. package/dist/Editor/common/CustomSelect.js +43 -0
  144. package/dist/Editor/common/DnD/DragHandleButton.js +1 -1
  145. package/dist/Editor/common/FontLoader/FontLoader.js +3 -0
  146. package/dist/Editor/common/Icon.js +28 -0
  147. package/dist/Editor/common/ImageSelector/ImageSelector.js +10 -8
  148. package/dist/Editor/common/ImageSelector/Options/AddLink.js +6 -4
  149. package/dist/Editor/common/ImageSelector/Options/Upload.js +1 -1
  150. package/dist/Editor/common/ImageSelector/Styles.js +3 -9
  151. package/dist/Editor/common/ImageSelector/UploadStyles.js +9 -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 +22 -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/ElementSettings/styles.js +0 -1
  172. package/dist/Editor/common/RnD/OptionsPopup/index.js +4 -3
  173. package/dist/Editor/common/RnD/ShadowElement.js +2 -1
  174. package/dist/Editor/common/RnD/SwitchViewport/SwitchViewport.js +11 -4
  175. package/dist/Editor/common/RnD/Theme/MainThemeProvider.js +17 -0
  176. package/dist/Editor/common/RnD/Theme/ViewportStimulator.js +6 -3
  177. package/dist/Editor/common/RnD/Utils/gridDropItem.js +55 -8
  178. package/dist/Editor/common/RnD/Utils/index.js +3 -0
  179. package/dist/Editor/common/RnD/VirtualElement/BoxHeaderAutoAlignment.js +43 -0
  180. package/dist/Editor/common/RnD/VirtualElement/ForceAutoAlignment.js +44 -0
  181. package/dist/Editor/common/RnD/VirtualElement/VirtualTextElement.js +134 -0
  182. package/dist/Editor/common/RnD/VirtualElement/helper.js +375 -0
  183. package/dist/Editor/common/RnD/VirtualElement/index.js +187 -103
  184. package/dist/Editor/common/RnD/VirtualElement/styles.js +151 -7
  185. package/dist/Editor/common/RnD/VirtualElement/updateAutoProps.js +5 -3
  186. package/dist/Editor/common/RnD/index.js +64 -13
  187. package/dist/Editor/common/Section/index.js +7 -4
  188. package/dist/Editor/common/Shorthands/elements.js +74 -3
  189. package/dist/Editor/common/SnackBar/index.js +43 -0
  190. package/dist/Editor/common/StyleBuilder/appHeaderStyle.js +4 -4
  191. package/dist/Editor/common/StyleBuilder/boxStyle.js +2 -2
  192. package/dist/Editor/common/StyleBuilder/buttonStyle.js +6 -4
  193. package/dist/Editor/common/StyleBuilder/dividerStyles.js +2 -2
  194. package/dist/Editor/common/StyleBuilder/embedVideoStyle.js +6 -6
  195. package/dist/Editor/common/StyleBuilder/fieldStyle.js +2 -2
  196. package/dist/Editor/common/StyleBuilder/fieldTypes/alignment.js +13 -9
  197. package/dist/Editor/common/StyleBuilder/fieldTypes/backgroundImage.js +11 -3
  198. package/dist/Editor/common/StyleBuilder/fieldTypes/bannerSpacing.js +19 -5
  199. package/dist/Editor/common/StyleBuilder/fieldTypes/borderRadius.js +22 -10
  200. package/dist/Editor/common/StyleBuilder/fieldTypes/buttonLink.js +6 -3
  201. package/dist/Editor/common/StyleBuilder/fieldTypes/card.js +27 -13
  202. package/dist/Editor/common/StyleBuilder/fieldTypes/color.js +43 -14
  203. package/dist/Editor/common/StyleBuilder/fieldTypes/elementSize.js +10 -6
  204. package/dist/Editor/common/StyleBuilder/fieldTypes/fontSize.js +19 -6
  205. package/dist/Editor/common/StyleBuilder/fieldTypes/gridSize.js +6 -2
  206. package/dist/Editor/common/StyleBuilder/fieldTypes/icons.js +5 -2
  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/Uploader.js +16 -5
  220. package/dist/Editor/commonStyle.js +23 -12
  221. package/dist/Editor/helper/index.js +27 -3
  222. package/dist/Editor/helper/textIndeces.js +58 -0
  223. package/dist/Editor/helper/theme.js +202 -2
  224. package/dist/Editor/hooks/useAutoScroll.js +38 -0
  225. package/dist/Editor/hooks/useDrag.js +1 -1
  226. package/dist/Editor/hooks/useEditorScroll.js +0 -1
  227. package/dist/Editor/hooks/useEditorTheme.js +153 -0
  228. package/dist/Editor/hooks/useMouseMove.js +9 -3
  229. package/dist/Editor/hooks/useThemeValues.js +63 -0
  230. package/dist/Editor/plugins/withEmbeds.js +1 -1
  231. package/dist/Editor/plugins/withHTML.js +11 -9
  232. package/dist/Editor/plugins/withLayout.js +3 -2
  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 +201 -60
  252. package/dist/Editor/utils/draftToSlate.js +3 -2
  253. package/dist/Editor/utils/font.js +40 -37
  254. package/dist/Editor/utils/freegrid.js +3 -3
  255. package/dist/Editor/utils/helper.js +92 -21
  256. package/package.json +3 -3
@@ -43,8 +43,12 @@ const GridItemToolbar = props => {
43
43
  showTool,
44
44
  onSettings,
45
45
  onAddColumn,
46
- columnRef
46
+ columnRef,
47
+ customProps
47
48
  } = props;
49
+ const {
50
+ translation
51
+ } = customProps;
48
52
  return selected && !showTool ? /*#__PURE__*/_jsx(Popper, {
49
53
  anchorEl: columnRef?.current,
50
54
  open: true,
@@ -55,7 +59,7 @@ const GridItemToolbar = props => {
55
59
  children: /*#__PURE__*/_jsxs(Box, {
56
60
  className: "ico-grp-ss",
57
61
  children: [/*#__PURE__*/_jsx(Tooltip, {
58
- title: "Column Settings",
62
+ title: translation("Column Settings"),
59
63
  arrow: true,
60
64
  children: /*#__PURE__*/_jsx(IconButton, {
61
65
  size: "small",
@@ -64,7 +68,7 @@ const GridItemToolbar = props => {
64
68
  children: /*#__PURE__*/_jsx(GridSettingsIcon, {})
65
69
  })
66
70
  }), /*#__PURE__*/_jsx(Tooltip, {
67
- title: "Add Column",
71
+ title: translation("Add Column"),
68
72
  arrow: true,
69
73
  children: /*#__PURE__*/_jsx(IconButton, {
70
74
  size: "small",
@@ -98,7 +102,8 @@ const GridItem = props => {
98
102
  customProps
99
103
  } = props;
100
104
  const {
101
- readOnly
105
+ readOnly,
106
+ translation
102
107
  } = customProps;
103
108
  const [openSetttings, setOpenSettings] = useState(false);
104
109
  const {
@@ -287,7 +292,7 @@ const GridItem = props => {
287
292
  ...getBRProps,
288
293
  display: "flex",
289
294
  flexDirection: flexDirection || "column",
290
- background: bgColor || "transparent",
295
+ background: bgColor,
291
296
  borderColor: getBorderColor(),
292
297
  borderWidth: borderWidth || "1px",
293
298
  borderStyle: borderStyle || "solid",
@@ -325,7 +330,8 @@ const GridItem = props => {
325
330
  showTool: showTool,
326
331
  onSettings: onSettings,
327
332
  onAddColumn: onAddColumn,
328
- columnRef: columnRef
333
+ columnRef: columnRef,
334
+ customProps: customProps
329
335
  })]
330
336
  }), /*#__PURE__*/_jsx(Box, {
331
337
  ref: columnRef,
@@ -344,7 +350,7 @@ const GridItem = props => {
344
350
  borderColor: borderColorHover || borderColor || "transparent"
345
351
  }
346
352
  },
347
- placeholder: "Column",
353
+ placeholder: translation("Column"),
348
354
  "data-info": "handle-outside-editor-click",
349
355
  children: children
350
356
  }), openSetttings ? /*#__PURE__*/_jsx(GridItemPopup, {
@@ -368,7 +374,7 @@ const GridItem = props => {
368
374
  children: /*#__PURE__*/_jsx(Button, {
369
375
  variant: "contained",
370
376
  onClick: handleClose,
371
- children: "Close"
377
+ children: translation("Close")
372
378
  })
373
379
  })]
374
380
  })]
@@ -10,8 +10,11 @@ const GridItemPopup = props => {
10
10
  onDelete,
11
11
  customProps
12
12
  } = props;
13
+ const {
14
+ translation
15
+ } = customProps;
13
16
  return /*#__PURE__*/_jsx(StyleBuilder, {
14
- title: "Grid Item",
17
+ title: translation("Grid Item"),
15
18
  type: "gridItemStyle",
16
19
  element: element,
17
20
  onSave: onSave,
@@ -10,8 +10,11 @@ const GridPopup = props => {
10
10
  onDelete,
11
11
  customProps
12
12
  } = props;
13
+ const {
14
+ translation
15
+ } = customProps;
13
16
  return /*#__PURE__*/_jsx(StyleBuilder, {
14
- title: "Grid",
17
+ title: translation("Grid"),
15
18
  type: "gridStyle",
16
19
  element: element,
17
20
  onSave: onSave,
@@ -10,8 +10,11 @@ const SectionPopup = props => {
10
10
  onDelete,
11
11
  customProps
12
12
  } = props;
13
+ const {
14
+ translation
15
+ } = customProps;
13
16
  return /*#__PURE__*/_jsx(StyleBuilder, {
14
- title: "Section",
17
+ title: translation("Section"),
15
18
  type: "sectionStyle",
16
19
  element: element,
17
20
  onSave: onSave,
@@ -19,7 +19,8 @@ const Toolbar = props => {
19
19
  selected,
20
20
  linkRef,
21
21
  onEditLink,
22
- editor
22
+ editor,
23
+ translation
23
24
  } = props;
24
25
  const btnProps = handleLinkType(urlPath, linkType, true, showInNewTab === "_blank");
25
26
  const navType = getLinkType(linkType, urlPath);
@@ -56,13 +57,13 @@ const Toolbar = props => {
56
57
  children: /*#__PURE__*/_jsx(OpenInNewIcon, {})
57
58
  })
58
59
  }), /*#__PURE__*/_jsx(Tooltip, {
59
- title: "Edit",
60
+ title: translation("Edit"),
60
61
  children: /*#__PURE__*/_jsx(IconButton, {
61
62
  onClick: onEditLink,
62
63
  children: /*#__PURE__*/_jsx(EditIcon, {})
63
64
  })
64
65
  }), /*#__PURE__*/_jsx(Tooltip, {
65
- title: "Remove",
66
+ title: translation("Remove"),
66
67
  children: /*#__PURE__*/_jsx(IconButton, {
67
68
  onClick: () => removeLink(editor),
68
69
  children: /*#__PURE__*/_jsx(LinkOffIcon, {})
@@ -96,7 +97,8 @@ const Link = props => {
96
97
  customProps
97
98
  } = props;
98
99
  const {
99
- readOnly
100
+ readOnly,
101
+ translation
100
102
  } = customProps;
101
103
  const editor = useSlateStatic();
102
104
  const selected = useSelected();
@@ -154,7 +156,8 @@ const Link = props => {
154
156
  selected: selected,
155
157
  linkRef: linkRef,
156
158
  onEditLink: onEditLink,
157
- editor: editor
159
+ editor: editor,
160
+ translation: translation
158
161
  }), showInput ? /*#__PURE__*/_jsx(LinkSettings, {
159
162
  handleClose: handleClose,
160
163
  onSave: ({
@@ -26,6 +26,9 @@ const LinkButton = props => {
26
26
  isActive,
27
27
  props: blockProps
28
28
  } = getBlockActive(editor, "link");
29
+ const {
30
+ translation
31
+ } = customProps;
29
32
  const urlPath = blockProps?.url || blockProps?.href;
30
33
  const showInNewTab = blockProps?.showInNewTab || blockProps?.target;
31
34
  const {
@@ -61,7 +64,7 @@ const LinkButton = props => {
61
64
  ref: linkInputRef,
62
65
  className: "popup-wrapper1",
63
66
  children: [/*#__PURE__*/_jsx(Tooltip, {
64
- title: "Link",
67
+ title: translation("Link"),
65
68
  arrow: true,
66
69
  children: /*#__PURE__*/_jsx(IconButton, {
67
70
  className: `${showInput ? "clicked btnActive" : ""} ${isActive ? "btnActive" : ""}`,
@@ -7,14 +7,19 @@ import CheckListStyle from "./CheckListStyles";
7
7
  import { jsx as _jsx } from "react/jsx-runtime";
8
8
  import { jsxs as _jsxs } from "react/jsx-runtime";
9
9
  import { Fragment as _Fragment } from "react/jsx-runtime";
10
- const CheckList = ({
11
- attributes,
12
- children,
13
- element,
14
- isEmpty,
15
- className,
16
- style
17
- }) => {
10
+ const CheckList = props => {
11
+ const {
12
+ attributes,
13
+ children,
14
+ element,
15
+ isEmpty,
16
+ className,
17
+ style,
18
+ customProps
19
+ } = props;
20
+ const {
21
+ translation
22
+ } = customProps;
18
23
  const editor = useSlateStatic();
19
24
  const readOnly = useReadOnly();
20
25
  const classes = CheckListStyle();
@@ -73,7 +78,7 @@ const CheckList = ({
73
78
  width: '90%'
74
79
  },
75
80
  className: `checkbox-list content-editable ${isEmpty ? "empty" : ""}`,
76
- placeholder: nestedCheckList ? "" : "Todo List",
81
+ placeholder: nestedCheckList ? "" : translation("Todo List"),
77
82
  children: children
78
83
  })]
79
84
  })
@@ -5,9 +5,13 @@ import ToolbarIcon from "../../common/ToolbarIcon";
5
5
  import { NewLineElementIcon } from "../../common/iconListV2";
6
6
  import { jsx as _jsx } from "react/jsx-runtime";
7
7
  const NewLineButton = ({
8
- icoBtnType
8
+ icoBtnType,
9
+ customProps
9
10
  }) => {
10
11
  const editor = useSlateStatic();
12
+ const {
13
+ translation
14
+ } = customProps;
11
15
  const onAddNewLine = () => {
12
16
  Transforms.insertNodes(editor, [{
13
17
  type: "paragraph",
@@ -21,7 +25,7 @@ const NewLineButton = ({
21
25
  ReactEditor.focus(editor);
22
26
  };
23
27
  return /*#__PURE__*/_jsx(ToolbarIcon, {
24
- title: "New Line",
28
+ title: translation("New Line"),
25
29
  onClick: onAddNewLine,
26
30
  icon: /*#__PURE__*/_jsx(NewLineElementIcon, {
27
31
  sx: {
@@ -21,6 +21,9 @@ const PageSettingsButton = props => {
21
21
  } = props;
22
22
  const [openSetttings, setOpenSettings] = useState(false);
23
23
  const editor = useSlateStatic();
24
+ const {
25
+ translation
26
+ } = customProps;
24
27
  const {
25
28
  theme
26
29
  } = useEditorContext();
@@ -65,7 +68,7 @@ const PageSettingsButton = props => {
65
68
  className: "removeDefaultSvgCls"
66
69
  })
67
70
  }) : /*#__PURE__*/_jsx(ToolbarIcon, {
68
- title: "Page Settings",
71
+ title: translation("Page Settings"),
69
72
  onClick: onSettings,
70
73
  icon: /*#__PURE__*/_jsx(SettingsIcon, {}),
71
74
  icoBtnType: icoBtnType
@@ -9,8 +9,11 @@ const PageSettingsPopup = props => {
9
9
  onClose,
10
10
  customProps
11
11
  } = props;
12
+ const {
13
+ translation
14
+ } = customProps;
12
15
  return /*#__PURE__*/_jsx(StyleBuilder, {
13
- title: "Page Settings",
16
+ title: translation("Page Settings"),
14
17
  type: "pageSettingsStyle",
15
18
  element: element,
16
19
  onSave: onSave,
@@ -17,7 +17,8 @@ const SearchButton = /*#__PURE__*/forwardRef((props, ref) => {
17
17
  icoBtnType,
18
18
  selectionTarget,
19
19
  theme = 'light',
20
- otherProps
20
+ otherProps,
21
+ customProps
21
22
  } = props;
22
23
  const editor = useSlateStatic();
23
24
  const [anchorEl, setAnchorEl] = useState(null);
@@ -112,7 +113,7 @@ const SearchButton = /*#__PURE__*/forwardRef((props, ref) => {
112
113
  open: open,
113
114
  onClose: handleClose,
114
115
  customClass: "emojiDrawer",
115
- swipeableDrawer: true,
116
+ swipeableDrawer: false,
116
117
  children: /*#__PURE__*/_jsx(Paper, {
117
118
  sx: {
118
119
  width: '100%',
@@ -126,7 +127,8 @@ const SearchButton = /*#__PURE__*/forwardRef((props, ref) => {
126
127
  onSearchChange: onSearchChange,
127
128
  handleClick: handleClick,
128
129
  theme: theme,
129
- handleClose: handleClose
130
+ handleClose: handleClose,
131
+ customProps: customProps
130
132
  })
131
133
  })
132
134
  }) : /*#__PURE__*/_jsx(Popover, {
@@ -169,7 +171,8 @@ const SearchButton = /*#__PURE__*/forwardRef((props, ref) => {
169
171
  onSearchChange: onSearchChange,
170
172
  handleClick: handleClick,
171
173
  theme: theme,
172
- handleClose: handleClose
174
+ handleClose: handleClose,
175
+ customProps: customProps
173
176
  })
174
177
  })
175
178
  })]
@@ -11,8 +11,12 @@ const SearchAndDocList = ({
11
11
  onSearchChange,
12
12
  handleClick,
13
13
  theme,
14
- handleClose
14
+ handleClose,
15
+ customProps
15
16
  }) => {
17
+ const {
18
+ translation
19
+ } = customProps;
16
20
  const isMobile = window.matchMedia("(max-width: 899px)")?.matches || false;
17
21
  return /*#__PURE__*/_jsxs(_Fragment, {
18
22
  children: [/*#__PURE__*/_jsxs(Box, {
@@ -28,7 +32,7 @@ const SearchAndDocList = ({
28
32
  fontWeight: 600,
29
33
  color: theme?.palette?.primary?.main
30
34
  },
31
- children: "Brains"
35
+ children: translation("Brains")
32
36
  }), !isMobile ? /*#__PURE__*/_jsx(IconButton, {
33
37
  onClick: e => {
34
38
  e.stopPropagation();
@@ -68,7 +72,7 @@ const SearchAndDocList = ({
68
72
  children: /*#__PURE__*/_jsx(TextField, {
69
73
  fullWidth: true,
70
74
  variant: "outlined",
71
- placeholder: "Search here...",
75
+ placeholder: translation("placeHolderSearch"),
72
76
  size: "small",
73
77
  onChange: e => onSearchChange(e.target.value),
74
78
  InputProps: {
@@ -6,13 +6,17 @@ import { jsx as _jsx } from "react/jsx-runtime";
6
6
  const SignatureButton = props => {
7
7
  const {
8
8
  editor,
9
- icoBtnType
9
+ icoBtnType,
10
+ customProps
10
11
  } = props;
12
+ const {
13
+ translation
14
+ } = customProps;
11
15
  const handleInsertSignature = () => {
12
16
  insertSignature(editor);
13
17
  };
14
18
  return /*#__PURE__*/_jsx(ToolbarIcon, {
15
- title: "Signature",
19
+ title: translation("Signature"),
16
20
  onClick: handleInsertSignature,
17
21
  icon: /*#__PURE__*/_jsx(Icon, {
18
22
  icon: "signature"
@@ -6,8 +6,12 @@ import { jsx as _jsx } from "react/jsx-runtime";
6
6
  import { jsxs as _jsxs } from "react/jsx-runtime";
7
7
  const TypeSignature = props => {
8
8
  const {
9
- onDataChange
9
+ onDataChange,
10
+ customProps
10
11
  } = props;
12
+ const {
13
+ translation
14
+ } = customProps;
11
15
  const [name, setName] = useState("");
12
16
  const [fontFamily, setFontFamily] = useState("");
13
17
  const onChange = e => {
@@ -44,7 +48,7 @@ const TypeSignature = props => {
44
48
  warp: "noWarp",
45
49
  maxWidth: "120px"
46
50
  },
47
- children: name || "Signature"
51
+ children: name || translation("Signature")
48
52
  })
49
53
  })
50
54
  }, `typesign-ff-${m.value}`);
@@ -9,6 +9,9 @@ const UploadSignature = props => {
9
9
  customProps,
10
10
  onUploadDone
11
11
  } = props;
12
+ const {
13
+ translation
14
+ } = customProps;
12
15
  const [base64, setBase64] = useState(null);
13
16
  const [uploading, setUploading] = useState(false);
14
17
  const onChange = async e => {
@@ -54,7 +57,7 @@ const UploadSignature = props => {
54
57
  sx: {
55
58
  ml: 1
56
59
  },
57
- children: "Upload your signature"
60
+ children: translation("Upload your signature")
58
61
  })]
59
62
  })
60
63
  })]
@@ -31,7 +31,8 @@ const SignaturePopup = props => {
31
31
  const {
32
32
  readOnly,
33
33
  metadata,
34
- isSignerDetailsRequired = false
34
+ isSignerDetailsRequired = false,
35
+ translation
35
36
  } = customProps;
36
37
  const [open, setOpen] = useState(false);
37
38
  const [tab, setTab] = useState(0);
@@ -67,7 +68,7 @@ const SignaturePopup = props => {
67
68
  isValidEmail = validationMethods?.isEmail(signedData?.signedByEmail);
68
69
  }
69
70
  if (isValidEmail === "Enter valid email address") {
70
- alert(isValidEmail);
71
+ alert(translation(isValidEmail));
71
72
  } else {
72
73
  onSave(signedData);
73
74
  // manual delay
@@ -140,14 +141,14 @@ const SignaturePopup = props => {
140
141
  style: {
141
142
  color: "#A2B0B9"
142
143
  },
143
- children: "Your sign will be placed here"
144
+ children: translation("Your sign will be placed here")
144
145
  })]
145
146
  }), /*#__PURE__*/_jsx(Button, {
146
147
  onClick: handleOpen,
147
148
  style: {
148
149
  width: "fit-content"
149
150
  },
150
- children: "Sign here"
151
+ children: translation("Sign here")
151
152
  })]
152
153
  }), /*#__PURE__*/_jsx(Dialog, {
153
154
  className: `${className} dialogComp`,
@@ -184,7 +185,7 @@ const SignaturePopup = props => {
184
185
  variant: "h6",
185
186
  color: "primary",
186
187
  sx: classes.popupTitle2,
187
- children: "Signature"
188
+ children: translation("Signature")
188
189
  })
189
190
  }), /*#__PURE__*/_jsx(Grid, {
190
191
  item: true,
@@ -231,7 +232,7 @@ const SignaturePopup = props => {
231
232
  style: {
232
233
  textTransform: "none"
233
234
  },
234
- children: "Draw Signature"
235
+ children: translation("Draw Signature")
235
236
  })]
236
237
  })
237
238
  }), /*#__PURE__*/_jsx(Tab, {
@@ -244,7 +245,7 @@ const SignaturePopup = props => {
244
245
  style: {
245
246
  textTransform: "none"
246
247
  },
247
- children: "Type Signature"
248
+ children: translation("Type Signature")
248
249
  })]
249
250
  })
250
251
  }), /*#__PURE__*/_jsx(Tab, {
@@ -257,7 +258,7 @@ const SignaturePopup = props => {
257
258
  style: {
258
259
  textTransform: "none"
259
260
  },
260
- children: "Upload Signature"
261
+ children: translation("Upload Signature")
261
262
  })]
262
263
  })
263
264
  })]
@@ -303,7 +304,7 @@ const SignaturePopup = props => {
303
304
  fontWeight: 500,
304
305
  fontSize: "14px"
305
306
  },
306
- children: "Name:"
307
+ children: translation("nameField")
307
308
  })
308
309
  }), /*#__PURE__*/_jsx(Grid, {
309
310
  item: true,
@@ -312,7 +313,7 @@ const SignaturePopup = props => {
312
313
  fullWidth: true,
313
314
  id: "signedBy",
314
315
  name: "signedBy",
315
- placeholder: "Enter Name",
316
+ placeholder: translation("Enter Name"),
316
317
  value: signedData.signedBy || ""
317
318
  // defaultValue={defaultName || ""}
318
319
  ,
@@ -340,7 +341,7 @@ const SignaturePopup = props => {
340
341
  fontWeight: 500,
341
342
  fontSize: "14px"
342
343
  },
343
- children: "Date:"
344
+ children: translation("dateField")
344
345
  })
345
346
  }), /*#__PURE__*/_jsx(Grid, {
346
347
  item: true,
@@ -361,7 +362,7 @@ const SignaturePopup = props => {
361
362
  customInput: /*#__PURE__*/_jsx(TextField, {
362
363
  fullWidth: true,
363
364
  name: "signedOn",
364
- placeholder: "Select Date",
365
+ placeholder: translation("Select Date"),
365
366
  size: "small",
366
367
  InputProps: {
367
368
  startAdornment: /*#__PURE__*/_jsx(InputAdornment, {
@@ -431,7 +432,7 @@ const SignaturePopup = props => {
431
432
  fontWeight: 500,
432
433
  fontSize: "14px"
433
434
  },
434
- children: "Email:"
435
+ children: translation("emailField")
435
436
  })
436
437
  }), /*#__PURE__*/_jsx(Grid, {
437
438
  container: true,
@@ -440,7 +441,7 @@ const SignaturePopup = props => {
440
441
  fullWidth: true,
441
442
  id: "signedByEmail",
442
443
  name: "signedByEmail",
443
- placeholder: "Enter Email",
444
+ placeholder: translation("Enter Email"),
444
445
  size: "small",
445
446
  onChange: onChange,
446
447
  sx: classes.signaturePopUpNameField,
@@ -518,12 +519,12 @@ const SignaturePopup = props => {
518
519
  children: [!readOnly ? /*#__PURE__*/_jsx(Button, {
519
520
  onClick: handleClear,
520
521
  className: `secondaryBtn actionBtn deleteBtn deleteButtonSignature`,
521
- children: "Delete"
522
+ children: translation("Delete")
522
523
  }) : null, /*#__PURE__*/_jsx(Button, {
523
524
  onClick: handleSave,
524
525
  className: `primaryBtn actionBtn ${isEmpty ? "disabled disabledSaveBtn" : ""}`,
525
526
  disabled: isEmpty,
526
- children: "Save"
527
+ children: translation("Save")
527
528
  })]
528
529
  })]
529
530
  })]
@@ -24,7 +24,8 @@ const SimpleText = props => {
24
24
  } = props;
25
25
  const {
26
26
  readOnly,
27
- editorPlaceholder
27
+ editorPlaceholder,
28
+ translation
28
29
  } = customProps;
29
30
  // const { element: pageSt } = getPageSettings(editor) || {};
30
31
  // const { pageColor } = pageSt?.pageProps || {};
@@ -46,15 +47,15 @@ const SimpleText = props => {
46
47
  }, children, openAI ? null : /*#__PURE__*/_jsx("span", {
47
48
  contentEditable: false,
48
49
  className: "placeholder-simple-text",
49
- children: isEmptyEditor ? editorPlaceholder || "Write Something..." : showPlaceHolder ? opacity && selected ? /*#__PURE__*/_jsxs(_Fragment, {
50
- children: ["Type", " ", /*#__PURE__*/_jsx("span", {
50
+ children: isEmptyEditor ? editorPlaceholder || translation("writeSomethingPlaceHolder") : showPlaceHolder ? opacity && selected ? /*#__PURE__*/_jsxs(_Fragment, {
51
+ children: [translation("Type"), " ", /*#__PURE__*/_jsx("span", {
51
52
  style: {
52
53
  backgroundColor: "#F2F6FA",
53
54
  padding: "0px 2px",
54
55
  borderRadius: "2px"
55
56
  },
56
57
  children: "/"
57
- }), " ", "to browse elements"]
58
+ }), " ", translation("browseElementText")]
58
59
  }) : "" : ""
59
60
  }));
60
61
  };
@@ -35,8 +35,8 @@ const SimpleTextStyle = ({
35
35
  height: "24px",
36
36
  overflow: "hidden",
37
37
  fontSize: "14px",
38
- display: 'inline-flex',
39
- alignItems: 'center',
38
+ display: "inline-flex",
39
+ alignItems: "center",
40
40
  "& .bg-pad-sl": {
41
41
  padding: "2px 4px 2px 4px",
42
42
  background: "transparent",
@@ -29,7 +29,8 @@ function DragButton({
29
29
  const dragElement = useRef(null);
30
30
  const [showTool, setShowTool] = useState(false);
31
31
  const {
32
- isMobile
32
+ isMobile,
33
+ translation
33
34
  } = customProps || {};
34
35
  const onDragClick = () => {
35
36
  onDrag();
@@ -62,7 +63,8 @@ function DragButton({
62
63
  hideDelete,
63
64
  handleToolAction: (value, option, dragType) => {
64
65
  handleAction(value, option, dragType);
65
- }
66
+ },
67
+ translation
66
68
  };
67
69
  return /*#__PURE__*/_jsx(_Fragment, {
68
70
  children: show || showTool ? /*#__PURE__*/_jsxs(_Fragment, {