@flozy/editor 9.5.9 → 9.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (259) hide show
  1. package/dist/Editor/ChatEditor.js +19 -26
  2. package/dist/Editor/CommonEditor.js +23 -139
  3. package/dist/Editor/DialogWrapper.js +25 -31
  4. package/dist/Editor/Editor.css +9 -13
  5. package/dist/Editor/Elements/AI/AIInput.js +3 -5
  6. package/dist/Editor/Elements/AI/CustomSelect.js +5 -9
  7. package/dist/Editor/Elements/AI/PopoverAIInput.js +2 -4
  8. package/dist/Editor/Elements/Accordion/Accordion.js +3 -4
  9. package/dist/Editor/Elements/Accordion/AccordionBtnPopup.js +1 -4
  10. package/dist/Editor/Elements/Accordion/AccordionButton.js +2 -6
  11. package/dist/Editor/Elements/Accordion/AccordionTitlePopup.js +1 -4
  12. package/dist/Editor/Elements/AppHeader/AppHeader.js +3 -3
  13. package/dist/Editor/Elements/AppHeader/AppHeaderButton.js +2 -6
  14. package/dist/Editor/Elements/AppHeader/AppHeaderPopup.js +1 -4
  15. package/dist/Editor/Elements/Attachments/AttachmentsButton.js +1 -4
  16. package/dist/Editor/Elements/Button/ButtonPopup.js +1 -4
  17. package/dist/Editor/Elements/Button/ButtonToolIcon.js +2 -6
  18. package/dist/Editor/Elements/Button/EditorButton.js +14 -31
  19. package/dist/Editor/Elements/Carousel/Carousel.js +4 -5
  20. package/dist/Editor/Elements/Carousel/CarouselButton.js +2 -6
  21. package/dist/Editor/Elements/Carousel/CarouselItem.js +2 -3
  22. package/dist/Editor/Elements/ChipText/ChipTextPopup.js +1 -4
  23. package/dist/Editor/Elements/CodeToText/CodeToText.js +4 -5
  24. package/dist/Editor/Elements/CodeToText/HtmlContextMenu.js +2 -6
  25. package/dist/Editor/Elements/Color Picker/ColorButtons.js +14 -60
  26. package/dist/Editor/Elements/Color Picker/ColorPicker.css +1 -25
  27. package/dist/Editor/Elements/Color Picker/ColorPicker.js +7 -10
  28. package/dist/Editor/Elements/Color Picker/Styles.js +13 -15
  29. package/dist/Editor/Elements/Colorbox/ColorboxButton.js +2 -6
  30. package/dist/Editor/Elements/DataView/DataView.js +2 -5
  31. package/dist/Editor/Elements/DataView/DataViewButton.js +2 -6
  32. package/dist/Editor/Elements/DataView/Layouts/ColumnView.js +2 -7
  33. package/dist/Editor/Elements/DataView/Layouts/DataTypes/Components/Select.js +3 -4
  34. package/dist/Editor/Elements/DataView/Layouts/DataTypes/MultiSelectType.js +5 -25
  35. package/dist/Editor/Elements/DataView/Layouts/DataTypes/TextType.js +2 -7
  36. package/dist/Editor/Elements/DataView/Layouts/FilterSort/SortOptions/ChooseSort.js +12 -13
  37. package/dist/Editor/Elements/DataView/Layouts/FilterSort/SortOptions/index.js +4 -7
  38. package/dist/Editor/Elements/DataView/Layouts/FilterSort/index.js +5 -7
  39. package/dist/Editor/Elements/DataView/Layouts/FilterView.js +7 -9
  40. package/dist/Editor/Elements/DataView/Layouts/Options/AddOptions.js +3 -8
  41. package/dist/Editor/Elements/DataView/Layouts/Options/AddProperty.js +3 -5
  42. package/dist/Editor/Elements/DataView/Layouts/Options/AllProperties.js +5 -6
  43. package/dist/Editor/Elements/DataView/Layouts/Options/ChangeProperty.js +3 -5
  44. package/dist/Editor/Elements/DataView/Layouts/Options/EditOption.js +7 -9
  45. package/dist/Editor/Elements/DataView/Layouts/Options/EditProperty.js +38 -64
  46. package/dist/Editor/Elements/DataView/Layouts/Options/FilterProperty.js +2 -3
  47. package/dist/Editor/Elements/DataView/Layouts/Options/PropertyList.js +2 -3
  48. package/dist/Editor/Elements/DataView/Layouts/Options/index.js +6 -23
  49. package/dist/Editor/Elements/DataView/Layouts/TableStyles.js +1 -4
  50. package/dist/Editor/Elements/DataView/Layouts/TableView.js +4 -6
  51. package/dist/Editor/Elements/DataView/Layouts/ViewData.js +4 -8
  52. package/dist/Editor/Elements/DataView/Layouts/index.js +1 -3
  53. package/dist/Editor/Elements/DataView/Providers/DataViewProvider.js +2 -5
  54. package/dist/Editor/Elements/DataView/styles.js +0 -13
  55. package/dist/Editor/Elements/Divider/Divider.js +3 -5
  56. package/dist/Editor/Elements/Divider/DividerButton.js +2 -6
  57. package/dist/Editor/Elements/Divider/DividerPopup.js +2 -3
  58. package/dist/Editor/Elements/Embed/Embed.js +1 -4
  59. package/dist/Editor/Elements/Embed/EmbedPopup.js +1 -4
  60. package/dist/Editor/Elements/Embed/Image.js +9 -14
  61. package/dist/Editor/Elements/Embed/Video.js +6 -9
  62. package/dist/Editor/Elements/EmbedScript/Code.js +4 -7
  63. package/dist/Editor/Elements/EmbedScript/EmbedScript.js +2 -6
  64. package/dist/Editor/Elements/EmbedScript/EmbedScriptPopup.js +5 -8
  65. package/dist/Editor/Elements/Emoji/EmojiButton.js +2 -6
  66. package/dist/Editor/Elements/Form/FieldPopup.js +1 -4
  67. package/dist/Editor/Elements/Form/Form.js +9 -12
  68. package/dist/Editor/Elements/Form/FormButton.js +2 -6
  69. package/dist/Editor/Elements/Form/FormPopup.js +2 -3
  70. package/dist/Editor/Elements/Form/Workflow/FormWorkflow.js +12 -18
  71. package/dist/Editor/Elements/Form/Workflow/ListWorkflow.js +8 -13
  72. package/dist/Editor/Elements/Form/Workflow/MoreOptions.js +2 -3
  73. package/dist/Editor/Elements/Form/Workflow/Styles.js +22 -24
  74. package/dist/Editor/Elements/Form/Workflow/UserInputs.js +2 -4
  75. package/dist/Editor/Elements/Form/Workflow/index.js +9 -15
  76. package/dist/Editor/Elements/FreeGrid/FreeGrid.js +23 -67
  77. package/dist/Editor/Elements/FreeGrid/FreeGridBox.js +4 -23
  78. package/dist/Editor/Elements/FreeGrid/FreeGridButton.js +2 -6
  79. package/dist/Editor/Elements/FreeGrid/FreeGridItem.js +5 -36
  80. package/dist/Editor/Elements/FreeGrid/Options/AddElement.js +2 -3
  81. package/dist/Editor/Elements/FreeGrid/Options/More.js +4 -10
  82. package/dist/Editor/Elements/FreeGrid/styles.js +0 -3
  83. package/dist/Editor/Elements/Grid/Grid.js +10 -13
  84. package/dist/Editor/Elements/Grid/GridButton.js +5 -9
  85. package/dist/Editor/Elements/Grid/GridItem.js +8 -14
  86. package/dist/Editor/Elements/Grid/GridItemPopup.js +1 -4
  87. package/dist/Editor/Elements/Grid/GridPopup.js +1 -4
  88. package/dist/Editor/Elements/Grid/SectionPopup.js +1 -4
  89. package/dist/Editor/Elements/Link/Link.js +5 -8
  90. package/dist/Editor/Elements/Link/LinkButton.js +1 -4
  91. package/dist/Editor/Elements/List/CheckList.js +9 -14
  92. package/dist/Editor/Elements/NewLine/NewLineButton.js +2 -6
  93. package/dist/Editor/Elements/PageSettings/PageSettingsButton.js +1 -4
  94. package/dist/Editor/Elements/PageSettings/PageSettingsPopup.js +1 -4
  95. package/dist/Editor/Elements/Search/SearchButton.js +3 -6
  96. package/dist/Editor/Elements/Search/SearchList.js +3 -7
  97. package/dist/Editor/Elements/Signature/SignatureButton.js +2 -6
  98. package/dist/Editor/Elements/Signature/SignatureOptions/TypeSignature.js +2 -6
  99. package/dist/Editor/Elements/Signature/SignatureOptions/UploadSignature.js +1 -4
  100. package/dist/Editor/Elements/Signature/SignaturePopup.js +16 -17
  101. package/dist/Editor/Elements/SimpleText/index.js +4 -5
  102. package/dist/Editor/Elements/SimpleText/style.js +2 -2
  103. package/dist/Editor/Elements/Table/DragButton.js +2 -4
  104. package/dist/Editor/Elements/Table/Table.js +11 -23
  105. package/dist/Editor/Elements/Table/TableCell.js +24 -2
  106. package/dist/Editor/Elements/Table/TablePopup.js +1 -4
  107. package/dist/Editor/Elements/Table/TableSelector.js +6 -10
  108. package/dist/Editor/Elements/Table/TableTool.js +4 -8
  109. package/dist/Editor/Elements/Title/title.js +0 -10
  110. package/dist/Editor/Elements/TopBanner/TopBannerButton.js +1 -4
  111. package/dist/Editor/Elements/Variables/VariableButton.js +1 -10
  112. package/dist/Editor/MiniEditor.js +3 -10
  113. package/dist/Editor/Styles/EditorStyles.js +5 -5
  114. package/dist/Editor/Toolbar/Basic/index.js +1 -2
  115. package/dist/Editor/Toolbar/FormatTools/BlockButton.js +2 -6
  116. package/dist/Editor/Toolbar/FormatTools/Dropdown.js +3 -27
  117. package/dist/Editor/Toolbar/FormatTools/FontFamilyAutocomplete.js +3 -4
  118. package/dist/Editor/Toolbar/FormatTools/MarkButton.js +4 -8
  119. package/dist/Editor/Toolbar/FormatTools/TextSize.js +13 -10
  120. package/dist/Editor/Toolbar/Mini/MiniToolbar.js +3 -5
  121. package/dist/Editor/Toolbar/PopupTool/AddTemplates.js +5 -10
  122. package/dist/Editor/Toolbar/PopupTool/ButtonTemplatesCard.js +4 -10
  123. package/dist/Editor/Toolbar/PopupTool/FullViewCard.js +4 -10
  124. package/dist/Editor/Toolbar/PopupTool/MiniTextFormat/MiniColorPicker.js +3 -9
  125. package/dist/Editor/Toolbar/PopupTool/MiniTextFormat/SelectAlignment.js +35 -42
  126. package/dist/Editor/Toolbar/PopupTool/MiniTextFormat/SelectFontSize.js +13 -6
  127. package/dist/Editor/Toolbar/PopupTool/MiniTextFormat/SelectList.js +51 -58
  128. package/dist/Editor/Toolbar/PopupTool/MiniTextFormat/SelectSuperSubscript.js +22 -29
  129. package/dist/Editor/Toolbar/PopupTool/MiniTextFormat/SelectTypography.js +87 -226
  130. package/dist/Editor/Toolbar/PopupTool/MiniTextFormat/index.js +10 -20
  131. package/dist/Editor/Toolbar/PopupTool/PopperHeader.js +5 -10
  132. package/dist/Editor/Toolbar/PopupTool/PopupToolStyle.js +11 -71
  133. package/dist/Editor/Toolbar/PopupTool/TemplateCard.js +5 -11
  134. package/dist/Editor/Toolbar/PopupTool/TextFormat.js +45 -128
  135. package/dist/Editor/Toolbar/PopupTool/index.js +17 -21
  136. package/dist/Editor/Toolbar/Toolbar.js +10 -20
  137. package/dist/Editor/Toolbar/toolbarGroups.js +6 -48
  138. package/dist/Editor/common/ColorPickerButton.js +14 -39
  139. package/dist/Editor/common/CustomDialog/index.js +10 -8
  140. package/dist/Editor/common/DnD/DragHandleButton.js +1 -1
  141. package/dist/Editor/common/FontLoader/FontLoader.js +0 -3
  142. package/dist/Editor/common/Icon.js +1 -46
  143. package/dist/Editor/common/ImageSelector/ImageSelector.js +8 -10
  144. package/dist/Editor/common/ImageSelector/Options/AddLink.js +4 -6
  145. package/dist/Editor/common/ImageSelector/Options/Upload.js +1 -1
  146. package/dist/Editor/common/ImageSelector/Styles.js +9 -3
  147. package/dist/Editor/common/ImageSelector/UploadStyles.js +9 -9
  148. package/dist/Editor/common/LinkSettings/NavComponents.js +10 -14
  149. package/dist/Editor/common/LinkSettings/index.js +14 -20
  150. package/dist/Editor/common/LinkSettings/navOptions.js +1 -1
  151. package/dist/Editor/common/MentionsPopup/index.js +2 -6
  152. package/dist/Editor/common/RnD/ContextMenu/CMenus.js +22 -22
  153. package/dist/Editor/common/RnD/ContextMenu/index.js +2 -3
  154. package/dist/Editor/common/RnD/ElementOptions/index.js +2 -7
  155. package/dist/Editor/common/RnD/ElementSettings/OtherSettings/SaveAsTemplate.js +3 -8
  156. package/dist/Editor/common/RnD/ElementSettings/OtherSettings/Settings.js +3 -7
  157. package/dist/Editor/common/RnD/ElementSettings/Settings/AppHeaderSettings.js +2 -3
  158. package/dist/Editor/common/RnD/ElementSettings/Settings/BoxSettings.js +2 -3
  159. package/dist/Editor/common/RnD/ElementSettings/Settings/ButtonSettings.js +2 -3
  160. package/dist/Editor/common/RnD/ElementSettings/Settings/CodeSettings.js +2 -3
  161. package/dist/Editor/common/RnD/ElementSettings/Settings/FormSettings.js +4 -7
  162. package/dist/Editor/common/RnD/ElementSettings/Settings/ImageSettings.js +2 -3
  163. package/dist/Editor/common/RnD/ElementSettings/Settings/TableSettings.js +2 -3
  164. package/dist/Editor/common/RnD/ElementSettings/Settings/TextSettings.js +2 -6
  165. package/dist/Editor/common/RnD/ElementSettings/Settings/VideoSettings.js +2 -3
  166. package/dist/Editor/common/RnD/ElementSettings/styles.js +1 -0
  167. package/dist/Editor/common/RnD/OptionsPopup/index.js +3 -4
  168. package/dist/Editor/common/RnD/SwitchViewport/SwitchViewport.js +4 -11
  169. package/dist/Editor/common/RnD/Theme/ViewportStimulator.js +8 -20
  170. package/dist/Editor/common/RnD/Utils/gridDropItem.js +7 -56
  171. package/dist/Editor/common/RnD/Utils/index.js +0 -3
  172. package/dist/Editor/common/RnD/VirtualElement/index.js +105 -188
  173. package/dist/Editor/common/RnD/VirtualElement/styles.js +7 -123
  174. package/dist/Editor/common/RnD/VirtualElement/updateAutoProps.js +3 -5
  175. package/dist/Editor/common/RnD/index.js +14 -59
  176. package/dist/Editor/common/Section/index.js +4 -7
  177. package/dist/Editor/common/Shorthands/elements.js +3 -74
  178. package/dist/Editor/common/StyleBuilder/appHeaderStyle.js +4 -4
  179. package/dist/Editor/common/StyleBuilder/boxStyle.js +2 -2
  180. package/dist/Editor/common/StyleBuilder/buttonStyle.js +4 -6
  181. package/dist/Editor/common/StyleBuilder/dividerStyles.js +2 -2
  182. package/dist/Editor/common/StyleBuilder/embedVideoStyle.js +6 -6
  183. package/dist/Editor/common/StyleBuilder/fieldStyle.js +2 -2
  184. package/dist/Editor/common/StyleBuilder/fieldTypes/alignment.js +9 -13
  185. package/dist/Editor/common/StyleBuilder/fieldTypes/backgroundImage.js +3 -11
  186. package/dist/Editor/common/StyleBuilder/fieldTypes/bannerSpacing.js +5 -19
  187. package/dist/Editor/common/StyleBuilder/fieldTypes/borderRadius.js +10 -22
  188. package/dist/Editor/common/StyleBuilder/fieldTypes/buttonLink.js +3 -6
  189. package/dist/Editor/common/StyleBuilder/fieldTypes/card.js +13 -27
  190. package/dist/Editor/common/StyleBuilder/fieldTypes/color.js +14 -43
  191. package/dist/Editor/common/StyleBuilder/fieldTypes/elementSize.js +6 -10
  192. package/dist/Editor/common/StyleBuilder/fieldTypes/fontSize.js +6 -19
  193. package/dist/Editor/common/StyleBuilder/fieldTypes/gridSize.js +2 -6
  194. package/dist/Editor/common/StyleBuilder/fieldTypes/icons.js +2 -5
  195. package/dist/Editor/common/StyleBuilder/fieldTypes/menusArray.js +6 -9
  196. package/dist/Editor/common/StyleBuilder/fieldTypes/metaDataMapping.js +2 -8
  197. package/dist/Editor/common/StyleBuilder/fieldTypes/saveAsTemplate.js +11 -12
  198. package/dist/Editor/common/StyleBuilder/fieldTypes/selectBox.js +2 -6
  199. package/dist/Editor/common/StyleBuilder/fieldTypes/text.js +4 -8
  200. package/dist/Editor/common/StyleBuilder/fieldTypes/textAlign.js +2 -6
  201. package/dist/Editor/common/StyleBuilder/fieldTypes/textOptions.js +12 -21
  202. package/dist/Editor/common/StyleBuilder/formStyle.js +7 -7
  203. package/dist/Editor/common/StyleBuilder/gridItemStyle.js +6 -6
  204. package/dist/Editor/common/StyleBuilder/gridStyle.js +5 -5
  205. package/dist/Editor/common/StyleBuilder/index.js +5 -8
  206. package/dist/Editor/common/StyleBuilder/pageSettingsStyle.js +7 -5
  207. package/dist/Editor/common/Uploader.js +5 -16
  208. package/dist/Editor/commonStyle.js +12 -23
  209. package/dist/Editor/helper/index.js +15 -35
  210. package/dist/Editor/helper/theme.js +2 -202
  211. package/dist/Editor/hooks/useDrag.js +11 -17
  212. package/dist/Editor/hooks/useEditorScroll.js +6 -10
  213. package/dist/Editor/hooks/useMouseMove.js +13 -25
  214. package/dist/Editor/hooks/useTable.js +1 -1
  215. package/dist/Editor/plugins/withEmbeds.js +1 -1
  216. package/dist/Editor/plugins/withHTML.js +9 -11
  217. package/dist/Editor/plugins/withLayout.js +2 -3
  218. package/dist/Editor/plugins/withTable.js +1 -1
  219. package/dist/Editor/theme/ThemeList.js +173 -50
  220. package/dist/Editor/utils/SlateUtilityFunctions.js +49 -168
  221. package/dist/Editor/utils/draftToSlate.js +2 -3
  222. package/dist/Editor/utils/font.js +37 -40
  223. package/dist/Editor/utils/freegrid.js +2 -2
  224. package/dist/Editor/utils/helper.js +19 -90
  225. package/package.json +3 -3
  226. package/dist/Editor/Elements/DataView/Layouts/DataTypes/Components/MultiSelect.js +0 -425
  227. package/dist/Editor/Toolbar/PopupTool/ThemeTextFormat.js +0 -436
  228. package/dist/Editor/assets/svg/ClearAllRounded.js +0 -31
  229. package/dist/Editor/assets/svg/ThemeIcons.js +0 -291
  230. package/dist/Editor/common/CustomColorPicker/index.js +0 -131
  231. package/dist/Editor/common/CustomColorPicker/style.js +0 -53
  232. package/dist/Editor/common/CustomDialog2/index.js +0 -94
  233. package/dist/Editor/common/CustomDialog2/style.js +0 -67
  234. package/dist/Editor/common/CustomSelect.js +0 -43
  235. package/dist/Editor/common/RnD/Theme/MainThemeProvider.js +0 -17
  236. package/dist/Editor/common/RnD/VirtualElement/ForceAutoAlignment.js +0 -117
  237. package/dist/Editor/common/RnD/VirtualElement/VirtualTextElement.js +0 -134
  238. package/dist/Editor/common/RnD/VirtualElement/helper.js +0 -281
  239. package/dist/Editor/common/SnackBar/index.js +0 -43
  240. package/dist/Editor/helper/textIndeces.js +0 -58
  241. package/dist/Editor/hooks/useAutoScroll.js +0 -38
  242. package/dist/Editor/hooks/useEditorTheme.js +0 -153
  243. package/dist/Editor/hooks/useThemeValues.js +0 -63
  244. package/dist/Editor/theme/index.js +0 -149
  245. package/dist/Editor/themeSettings/ActiveTheme.js +0 -72
  246. package/dist/Editor/themeSettings/buttons/index.js +0 -290
  247. package/dist/Editor/themeSettings/buttons/style.js +0 -23
  248. package/dist/Editor/themeSettings/colorTheme/index.js +0 -310
  249. package/dist/Editor/themeSettings/colorTheme/style.js +0 -81
  250. package/dist/Editor/themeSettings/fonts/PreviewElement.js +0 -121
  251. package/dist/Editor/themeSettings/fonts/index.js +0 -240
  252. package/dist/Editor/themeSettings/fonts/style.js +0 -61
  253. package/dist/Editor/themeSettings/icons.js +0 -60
  254. package/dist/Editor/themeSettings/index.js +0 -351
  255. package/dist/Editor/themeSettings/style.js +0 -220
  256. package/dist/Editor/themeSettingsAI/icons.js +0 -96
  257. package/dist/Editor/themeSettingsAI/index.js +0 -355
  258. package/dist/Editor/themeSettingsAI/saveTheme.js +0 -205
  259. package/dist/Editor/themeSettingsAI/style.js +0 -259
@@ -316,9 +316,6 @@ const useFreeGridStyles = ({
316
316
  "& .fgi_type_text": {
317
317
  "& .edt-headings": {
318
318
  margin: "0px"
319
- },
320
- "& .edt-paragraphs": {
321
- margin: "0px"
322
319
  }
323
320
  },
324
321
  /** element toolbar hide */
@@ -32,8 +32,7 @@ const GridToolBar = ({
32
32
  onAddSection,
33
33
  onMoveSection,
34
34
  path,
35
- isSectionFullWidth,
36
- translation
35
+ isSectionFullWidth
37
36
  }) => {
38
37
  return selected && !showTool ? /*#__PURE__*/_jsxs("div", {
39
38
  className: "grid-container-toolbar",
@@ -43,21 +42,21 @@ const GridToolBar = ({
43
42
  top: "4px"
44
43
  } : {},
45
44
  children: [/*#__PURE__*/_jsx(Tooltip, {
46
- title: translation("Grid Settings"),
45
+ title: "Grid Settings",
47
46
  arrow: true,
48
47
  children: /*#__PURE__*/_jsx(IconButton, {
49
48
  onClick: onSettings,
50
49
  children: /*#__PURE__*/_jsx(GridSettingsIcon, {})
51
50
  })
52
51
  }), /*#__PURE__*/_jsx(Tooltip, {
53
- title: translation("Add Grid Item"),
52
+ title: "Add Grid Item",
54
53
  arrow: true,
55
54
  children: /*#__PURE__*/_jsx(IconButton, {
56
55
  onClick: onAddGridItem,
57
56
  children: /*#__PURE__*/_jsx(GridAddGridIcon, {})
58
57
  })
59
58
  }), /*#__PURE__*/_jsx(Tooltip, {
60
- title: translation("Duplicate"),
59
+ title: "Duplicate",
61
60
  arrow: true,
62
61
  children: /*#__PURE__*/_jsx(IconButton, {
63
62
  onClick: onAddSection(),
@@ -65,14 +64,14 @@ const GridToolBar = ({
65
64
  })
66
65
  }), path.length === 2 ? /*#__PURE__*/_jsxs(_Fragment, {
67
66
  children: [/*#__PURE__*/_jsx(Tooltip, {
68
- title: translation("Move Up"),
67
+ title: "Move Up",
69
68
  arrow: true,
70
69
  children: /*#__PURE__*/_jsx(IconButton, {
71
70
  onClick: onMoveSection("up"),
72
71
  children: /*#__PURE__*/_jsx(ArrowUpwardIcon, {})
73
72
  })
74
73
  }), /*#__PURE__*/_jsx(Tooltip, {
75
- title: translation("Move Down"),
74
+ title: "Move Down",
76
75
  arrow: true,
77
76
  children: /*#__PURE__*/_jsx(IconButton, {
78
77
  onClick: onMoveSection("down"),
@@ -103,8 +102,7 @@ const Grid = props => {
103
102
  customProps
104
103
  } = props;
105
104
  const {
106
- readOnly,
107
- translation
105
+ readOnly
108
106
  } = customProps;
109
107
  const [openSetttings, setOpenSettings] = useState(false);
110
108
  const {
@@ -270,7 +268,7 @@ const Grid = props => {
270
268
  contentEditable: false,
271
269
  className: "element-selector-ctrl tc",
272
270
  children: /*#__PURE__*/_jsx(Tooltip, {
273
- title: translation("Add Space above"),
271
+ title: "Add Space above",
274
272
  arrow: true,
275
273
  children: /*#__PURE__*/_jsx(IconButton, {
276
274
  onClick: onNewLine("up"),
@@ -281,7 +279,7 @@ const Grid = props => {
281
279
  contentEditable: false,
282
280
  className: "element-selector-ctrl bc",
283
281
  children: /*#__PURE__*/_jsx(Tooltip, {
284
- title: translation("Add Space below"),
282
+ title: "Add Space below",
285
283
  arrow: true,
286
284
  children: /*#__PURE__*/_jsx(IconButton, {
287
285
  onClick: onNewLine("down"),
@@ -366,8 +364,7 @@ const Grid = props => {
366
364
  onAddSection: onAddSection,
367
365
  onMoveSection: onMoveSection,
368
366
  path: path,
369
- isSectionFullWidth: isSectionFullWidth,
370
- translation: translation
367
+ isSectionFullWidth: isSectionFullWidth
371
368
  })]
372
369
  }), openSetttings ? /*#__PURE__*/_jsx(PoupComp, {
373
370
  element: element,
@@ -11,13 +11,9 @@ const GridButton = props => {
11
11
  const classes = GridStyles();
12
12
  const {
13
13
  editor,
14
- icoBtnType,
15
- customProps
14
+ icoBtnType
16
15
  } = props;
17
16
  const [open, setOpen] = useState(false);
18
- const {
19
- translation
20
- } = customProps;
21
17
  const onButtonClick = async () => {
22
18
  insertGrid(editor, insertPlainGrid(2));
23
19
  handleClose();
@@ -48,7 +44,7 @@ const GridButton = props => {
48
44
 
49
45
  return /*#__PURE__*/_jsxs(_Fragment, {
50
46
  children: [/*#__PURE__*/_jsx(ToolbarIcon, {
51
- title: translation("Column"),
47
+ title: "Column",
52
48
  onClick: onButtonClick,
53
49
  icon: /*#__PURE__*/_jsx(GridElement, {}),
54
50
  icoBtnType: icoBtnType
@@ -62,14 +58,14 @@ const GridButton = props => {
62
58
  children: [/*#__PURE__*/_jsx(Grid, {
63
59
  item: true,
64
60
  xs: 6,
65
- children: translation("Grid")
61
+ children: "Grid"
66
62
  }), /*#__PURE__*/_jsx(Grid, {
67
63
  item: true,
68
64
  xs: 6,
69
65
  textAlign: "right",
70
66
  children: /*#__PURE__*/_jsx(Button, {
71
67
  onClick: handleInsertGrid(null),
72
- children: translation("insertDefaultTemplate")
68
+ children: "Insert Default Template"
73
69
  })
74
70
  })]
75
71
  })
@@ -94,7 +90,7 @@ const GridButton = props => {
94
90
  display: "flex"
95
91
  },
96
92
  children: /*#__PURE__*/_jsx(Tooltip, {
97
- title: `${translation("Insert")} ${m} ${translation("Column Grid")}`,
93
+ title: `Insert ${m} Column Grid`,
98
94
  arrow: true,
99
95
  children: /*#__PURE__*/_jsx(Button, {
100
96
  sx: classes.gridButton,
@@ -43,12 +43,8 @@ const GridItemToolbar = props => {
43
43
  showTool,
44
44
  onSettings,
45
45
  onAddColumn,
46
- columnRef,
47
- customProps
46
+ columnRef
48
47
  } = props;
49
- const {
50
- translation
51
- } = customProps;
52
48
  return selected && !showTool ? /*#__PURE__*/_jsx(Popper, {
53
49
  anchorEl: columnRef?.current,
54
50
  open: true,
@@ -59,7 +55,7 @@ const GridItemToolbar = props => {
59
55
  children: /*#__PURE__*/_jsxs(Box, {
60
56
  className: "ico-grp-ss",
61
57
  children: [/*#__PURE__*/_jsx(Tooltip, {
62
- title: translation("Column Settings"),
58
+ title: "Column Settings",
63
59
  arrow: true,
64
60
  children: /*#__PURE__*/_jsx(IconButton, {
65
61
  size: "small",
@@ -68,7 +64,7 @@ const GridItemToolbar = props => {
68
64
  children: /*#__PURE__*/_jsx(GridSettingsIcon, {})
69
65
  })
70
66
  }), /*#__PURE__*/_jsx(Tooltip, {
71
- title: translation("Add Column"),
67
+ title: "Add Column",
72
68
  arrow: true,
73
69
  children: /*#__PURE__*/_jsx(IconButton, {
74
70
  size: "small",
@@ -102,8 +98,7 @@ const GridItem = props => {
102
98
  customProps
103
99
  } = props;
104
100
  const {
105
- readOnly,
106
- translation
101
+ readOnly
107
102
  } = customProps;
108
103
  const [openSetttings, setOpenSettings] = useState(false);
109
104
  const {
@@ -292,7 +287,7 @@ const GridItem = props => {
292
287
  ...getBRProps,
293
288
  display: "flex",
294
289
  flexDirection: flexDirection || "column",
295
- background: bgColor,
290
+ background: bgColor || "transparent",
296
291
  borderColor: getBorderColor(),
297
292
  borderWidth: borderWidth || "1px",
298
293
  borderStyle: borderStyle || "solid",
@@ -330,8 +325,7 @@ const GridItem = props => {
330
325
  showTool: showTool,
331
326
  onSettings: onSettings,
332
327
  onAddColumn: onAddColumn,
333
- columnRef: columnRef,
334
- customProps: customProps
328
+ columnRef: columnRef
335
329
  })]
336
330
  }), /*#__PURE__*/_jsx(Box, {
337
331
  ref: columnRef,
@@ -350,7 +344,7 @@ const GridItem = props => {
350
344
  borderColor: borderColorHover || borderColor || "transparent"
351
345
  }
352
346
  },
353
- placeholder: translation("Column"),
347
+ placeholder: "Column",
354
348
  "data-info": "handle-outside-editor-click",
355
349
  children: children
356
350
  }), openSetttings ? /*#__PURE__*/_jsx(GridItemPopup, {
@@ -374,7 +368,7 @@ const GridItem = props => {
374
368
  children: /*#__PURE__*/_jsx(Button, {
375
369
  variant: "contained",
376
370
  onClick: handleClose,
377
- children: translation("Close")
371
+ children: "Close"
378
372
  })
379
373
  })]
380
374
  })]
@@ -10,11 +10,8 @@ const GridItemPopup = props => {
10
10
  onDelete,
11
11
  customProps
12
12
  } = props;
13
- const {
14
- translation
15
- } = customProps;
16
13
  return /*#__PURE__*/_jsx(StyleBuilder, {
17
- title: translation("Grid Item"),
14
+ title: "Grid Item",
18
15
  type: "gridItemStyle",
19
16
  element: element,
20
17
  onSave: onSave,
@@ -10,11 +10,8 @@ const GridPopup = props => {
10
10
  onDelete,
11
11
  customProps
12
12
  } = props;
13
- const {
14
- translation
15
- } = customProps;
16
13
  return /*#__PURE__*/_jsx(StyleBuilder, {
17
- title: translation("Grid"),
14
+ title: "Grid",
18
15
  type: "gridStyle",
19
16
  element: element,
20
17
  onSave: onSave,
@@ -10,11 +10,8 @@ const SectionPopup = props => {
10
10
  onDelete,
11
11
  customProps
12
12
  } = props;
13
- const {
14
- translation
15
- } = customProps;
16
13
  return /*#__PURE__*/_jsx(StyleBuilder, {
17
- title: translation("Section"),
14
+ title: "Section",
18
15
  type: "sectionStyle",
19
16
  element: element,
20
17
  onSave: onSave,
@@ -19,8 +19,7 @@ const Toolbar = props => {
19
19
  selected,
20
20
  linkRef,
21
21
  onEditLink,
22
- editor,
23
- translation
22
+ editor
24
23
  } = props;
25
24
  const btnProps = handleLinkType(urlPath, linkType, true, showInNewTab === "_blank");
26
25
  const navType = getLinkType(linkType, urlPath);
@@ -57,13 +56,13 @@ const Toolbar = props => {
57
56
  children: /*#__PURE__*/_jsx(OpenInNewIcon, {})
58
57
  })
59
58
  }), /*#__PURE__*/_jsx(Tooltip, {
60
- title: translation("Edit"),
59
+ title: "Edit",
61
60
  children: /*#__PURE__*/_jsx(IconButton, {
62
61
  onClick: onEditLink,
63
62
  children: /*#__PURE__*/_jsx(EditIcon, {})
64
63
  })
65
64
  }), /*#__PURE__*/_jsx(Tooltip, {
66
- title: translation("Remove"),
65
+ title: "Remove",
67
66
  children: /*#__PURE__*/_jsx(IconButton, {
68
67
  onClick: () => removeLink(editor),
69
68
  children: /*#__PURE__*/_jsx(LinkOffIcon, {})
@@ -97,8 +96,7 @@ const Link = props => {
97
96
  customProps
98
97
  } = props;
99
98
  const {
100
- readOnly,
101
- translation
99
+ readOnly
102
100
  } = customProps;
103
101
  const editor = useSlateStatic();
104
102
  const selected = useSelected();
@@ -156,8 +154,7 @@ const Link = props => {
156
154
  selected: selected,
157
155
  linkRef: linkRef,
158
156
  onEditLink: onEditLink,
159
- editor: editor,
160
- translation: translation
157
+ editor: editor
161
158
  }), showInput ? /*#__PURE__*/_jsx(LinkSettings, {
162
159
  handleClose: handleClose,
163
160
  onSave: ({
@@ -26,9 +26,6 @@ const LinkButton = props => {
26
26
  isActive,
27
27
  props: blockProps
28
28
  } = getBlockActive(editor, "link");
29
- const {
30
- translation
31
- } = customProps;
32
29
  const urlPath = blockProps?.url || blockProps?.href;
33
30
  const showInNewTab = blockProps?.showInNewTab || blockProps?.target;
34
31
  const {
@@ -64,7 +61,7 @@ const LinkButton = props => {
64
61
  ref: linkInputRef,
65
62
  className: "popup-wrapper1",
66
63
  children: [/*#__PURE__*/_jsx(Tooltip, {
67
- title: translation("Link"),
64
+ title: "Link",
68
65
  arrow: true,
69
66
  children: /*#__PURE__*/_jsx(IconButton, {
70
67
  className: `${showInput ? "clicked btnActive" : ""} ${isActive ? "btnActive" : ""}`,
@@ -7,19 +7,14 @@ 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 = 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;
10
+ const CheckList = ({
11
+ attributes,
12
+ children,
13
+ element,
14
+ isEmpty,
15
+ className,
16
+ style
17
+ }) => {
23
18
  const editor = useSlateStatic();
24
19
  const readOnly = useReadOnly();
25
20
  const classes = CheckListStyle();
@@ -78,7 +73,7 @@ const CheckList = props => {
78
73
  width: '90%'
79
74
  },
80
75
  className: `checkbox-list content-editable ${isEmpty ? "empty" : ""}`,
81
- placeholder: nestedCheckList ? "" : translation("Todo List"),
76
+ placeholder: nestedCheckList ? "" : "Todo List",
82
77
  children: children
83
78
  })]
84
79
  })
@@ -5,13 +5,9 @@ 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,
9
- customProps
8
+ icoBtnType
10
9
  }) => {
11
10
  const editor = useSlateStatic();
12
- const {
13
- translation
14
- } = customProps;
15
11
  const onAddNewLine = () => {
16
12
  Transforms.insertNodes(editor, [{
17
13
  type: "paragraph",
@@ -25,7 +21,7 @@ const NewLineButton = ({
25
21
  ReactEditor.focus(editor);
26
22
  };
27
23
  return /*#__PURE__*/_jsx(ToolbarIcon, {
28
- title: translation("New Line"),
24
+ title: "New Line",
29
25
  onClick: onAddNewLine,
30
26
  icon: /*#__PURE__*/_jsx(NewLineElementIcon, {
31
27
  sx: {
@@ -21,9 +21,6 @@ const PageSettingsButton = props => {
21
21
  } = props;
22
22
  const [openSetttings, setOpenSettings] = useState(false);
23
23
  const editor = useSlateStatic();
24
- const {
25
- translation
26
- } = customProps;
27
24
  const {
28
25
  theme
29
26
  } = useEditorContext();
@@ -68,7 +65,7 @@ const PageSettingsButton = props => {
68
65
  className: "removeDefaultSvgCls"
69
66
  })
70
67
  }) : /*#__PURE__*/_jsx(ToolbarIcon, {
71
- title: translation("Page Settings"),
68
+ title: "Page Settings",
72
69
  onClick: onSettings,
73
70
  icon: /*#__PURE__*/_jsx(SettingsIcon, {}),
74
71
  icoBtnType: icoBtnType
@@ -9,11 +9,8 @@ const PageSettingsPopup = 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("Page Settings"),
13
+ title: "Page Settings",
17
14
  type: "pageSettingsStyle",
18
15
  element: element,
19
16
  onSave: onSave,
@@ -17,8 +17,7 @@ const SearchButton = /*#__PURE__*/forwardRef((props, ref) => {
17
17
  icoBtnType,
18
18
  selectionTarget,
19
19
  theme = 'light',
20
- otherProps,
21
- customProps
20
+ otherProps
22
21
  } = props;
23
22
  const editor = useSlateStatic();
24
23
  const [anchorEl, setAnchorEl] = useState(null);
@@ -127,8 +126,7 @@ const SearchButton = /*#__PURE__*/forwardRef((props, ref) => {
127
126
  onSearchChange: onSearchChange,
128
127
  handleClick: handleClick,
129
128
  theme: theme,
130
- handleClose: handleClose,
131
- customProps: customProps
129
+ handleClose: handleClose
132
130
  })
133
131
  })
134
132
  }) : /*#__PURE__*/_jsx(Popover, {
@@ -171,8 +169,7 @@ const SearchButton = /*#__PURE__*/forwardRef((props, ref) => {
171
169
  onSearchChange: onSearchChange,
172
170
  handleClick: handleClick,
173
171
  theme: theme,
174
- handleClose: handleClose,
175
- customProps: customProps
172
+ handleClose: handleClose
176
173
  })
177
174
  })
178
175
  })]
@@ -11,12 +11,8 @@ const SearchAndDocList = ({
11
11
  onSearchChange,
12
12
  handleClick,
13
13
  theme,
14
- handleClose,
15
- customProps
14
+ handleClose
16
15
  }) => {
17
- const {
18
- translation
19
- } = customProps;
20
16
  const isMobile = window.matchMedia("(max-width: 899px)")?.matches || false;
21
17
  return /*#__PURE__*/_jsxs(_Fragment, {
22
18
  children: [/*#__PURE__*/_jsxs(Box, {
@@ -32,7 +28,7 @@ const SearchAndDocList = ({
32
28
  fontWeight: 600,
33
29
  color: theme?.palette?.primary?.main
34
30
  },
35
- children: translation("Brains")
31
+ children: "Brains"
36
32
  }), !isMobile ? /*#__PURE__*/_jsx(IconButton, {
37
33
  onClick: e => {
38
34
  e.stopPropagation();
@@ -72,7 +68,7 @@ const SearchAndDocList = ({
72
68
  children: /*#__PURE__*/_jsx(TextField, {
73
69
  fullWidth: true,
74
70
  variant: "outlined",
75
- placeholder: translation("placeHolderSearch"),
71
+ placeholder: "Search here...",
76
72
  size: "small",
77
73
  onChange: e => onSearchChange(e.target.value),
78
74
  InputProps: {
@@ -6,17 +6,13 @@ import { jsx as _jsx } from "react/jsx-runtime";
6
6
  const SignatureButton = props => {
7
7
  const {
8
8
  editor,
9
- icoBtnType,
10
- customProps
9
+ icoBtnType
11
10
  } = props;
12
- const {
13
- translation
14
- } = customProps;
15
11
  const handleInsertSignature = () => {
16
12
  insertSignature(editor);
17
13
  };
18
14
  return /*#__PURE__*/_jsx(ToolbarIcon, {
19
- title: translation("Signature"),
15
+ title: "Signature",
20
16
  onClick: handleInsertSignature,
21
17
  icon: /*#__PURE__*/_jsx(Icon, {
22
18
  icon: "signature"
@@ -6,12 +6,8 @@ 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,
10
- customProps
9
+ onDataChange
11
10
  } = props;
12
- const {
13
- translation
14
- } = customProps;
15
11
  const [name, setName] = useState("");
16
12
  const [fontFamily, setFontFamily] = useState("");
17
13
  const onChange = e => {
@@ -48,7 +44,7 @@ const TypeSignature = props => {
48
44
  warp: "noWarp",
49
45
  maxWidth: "120px"
50
46
  },
51
- children: name || translation("Signature")
47
+ children: name || "Signature"
52
48
  })
53
49
  })
54
50
  }, `typesign-ff-${m.value}`);
@@ -9,9 +9,6 @@ const UploadSignature = props => {
9
9
  customProps,
10
10
  onUploadDone
11
11
  } = props;
12
- const {
13
- translation
14
- } = customProps;
15
12
  const [base64, setBase64] = useState(null);
16
13
  const [uploading, setUploading] = useState(false);
17
14
  const onChange = async e => {
@@ -57,7 +54,7 @@ const UploadSignature = props => {
57
54
  sx: {
58
55
  ml: 1
59
56
  },
60
- children: translation("Upload your signature")
57
+ children: "Upload your signature"
61
58
  })]
62
59
  })
63
60
  })]