@flozy/editor 9.3.6 → 9.3.7

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 (265) hide show
  1. package/dist/Editor/ChatEditor.js +16 -52
  2. package/dist/Editor/CommonEditor.js +23 -133
  3. package/dist/Editor/DialogWrapper.js +25 -31
  4. package/dist/Editor/Editor.css +9 -19
  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 +4 -4
  28. package/dist/Editor/Elements/Color Picker/Styles.js +3 -3
  29. package/dist/Editor/Elements/Colorbox/ColorboxButton.js +2 -6
  30. package/dist/Editor/Elements/DataView/DataView.js +2 -5
  31. package/dist/Editor/Elements/DataView/DataViewButton.js +2 -6
  32. package/dist/Editor/Elements/DataView/Layouts/ColumnView.js +1 -4
  33. package/dist/Editor/Elements/DataView/Layouts/DataTypes/Components/Select.js +3 -4
  34. package/dist/Editor/Elements/DataView/Layouts/DataTypes/MultiSelectType.js +5 -23
  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/index.js +1 -3
  52. package/dist/Editor/Elements/DataView/Providers/DataViewProvider.js +2 -5
  53. package/dist/Editor/Elements/Divider/Divider.js +3 -5
  54. package/dist/Editor/Elements/Divider/DividerButton.js +2 -6
  55. package/dist/Editor/Elements/Divider/DividerPopup.js +2 -3
  56. package/dist/Editor/Elements/Embed/Embed.js +1 -4
  57. package/dist/Editor/Elements/Embed/EmbedPopup.js +1 -4
  58. package/dist/Editor/Elements/Embed/Image.js +12 -18
  59. package/dist/Editor/Elements/Embed/Video.js +7 -10
  60. package/dist/Editor/Elements/EmbedScript/Code.js +4 -7
  61. package/dist/Editor/Elements/EmbedScript/EmbedScript.js +2 -6
  62. package/dist/Editor/Elements/EmbedScript/EmbedScriptPopup.js +5 -8
  63. package/dist/Editor/Elements/Emoji/EmojiButton.js +2 -6
  64. package/dist/Editor/Elements/Form/FieldPopup.js +1 -4
  65. package/dist/Editor/Elements/Form/Form.js +9 -12
  66. package/dist/Editor/Elements/Form/FormButton.js +2 -6
  67. package/dist/Editor/Elements/Form/FormPopup.js +2 -3
  68. package/dist/Editor/Elements/Form/Workflow/FormWorkflow.js +12 -18
  69. package/dist/Editor/Elements/Form/Workflow/ListWorkflow.js +8 -13
  70. package/dist/Editor/Elements/Form/Workflow/MoreOptions.js +2 -3
  71. package/dist/Editor/Elements/Form/Workflow/UserInputs.js +2 -4
  72. package/dist/Editor/Elements/Form/Workflow/index.js +9 -15
  73. package/dist/Editor/Elements/FreeGrid/FreeGrid.js +25 -63
  74. package/dist/Editor/Elements/FreeGrid/FreeGridBox.js +4 -22
  75. package/dist/Editor/Elements/FreeGrid/FreeGridButton.js +2 -6
  76. package/dist/Editor/Elements/FreeGrid/FreeGridItem.js +5 -34
  77. package/dist/Editor/Elements/FreeGrid/Options/AddElement.js +2 -3
  78. package/dist/Editor/Elements/FreeGrid/Options/More.js +4 -10
  79. package/dist/Editor/Elements/FreeGrid/styles.js +0 -3
  80. package/dist/Editor/Elements/Grid/Grid.js +10 -13
  81. package/dist/Editor/Elements/Grid/GridButton.js +5 -9
  82. package/dist/Editor/Elements/Grid/GridItem.js +8 -14
  83. package/dist/Editor/Elements/Grid/GridItemPopup.js +1 -4
  84. package/dist/Editor/Elements/Grid/GridPopup.js +1 -4
  85. package/dist/Editor/Elements/Grid/SectionPopup.js +1 -4
  86. package/dist/Editor/Elements/Link/Link.js +7 -14
  87. package/dist/Editor/Elements/Link/LinkButton.js +1 -4
  88. package/dist/Editor/Elements/List/CheckList.js +9 -14
  89. package/dist/Editor/Elements/NewLine/NewLineButton.js +2 -6
  90. package/dist/Editor/Elements/PageSettings/PageSettingsButton.js +5 -16
  91. package/dist/Editor/Elements/PageSettings/PageSettingsPopup.js +1 -4
  92. package/dist/Editor/Elements/Search/SearchButton.js +3 -6
  93. package/dist/Editor/Elements/Search/SearchList.js +3 -7
  94. package/dist/Editor/Elements/Signature/SignatureButton.js +2 -6
  95. package/dist/Editor/Elements/Signature/SignatureOptions/TypeSignature.js +2 -6
  96. package/dist/Editor/Elements/Signature/SignatureOptions/UploadSignature.js +1 -4
  97. package/dist/Editor/Elements/Signature/SignaturePopup.js +16 -17
  98. package/dist/Editor/Elements/SimpleText/index.js +4 -5
  99. package/dist/Editor/Elements/SimpleText/style.js +2 -2
  100. package/dist/Editor/Elements/Table/DragButton.js +2 -4
  101. package/dist/Editor/Elements/Table/Table.js +25 -48
  102. package/dist/Editor/Elements/Table/TableCell.js +27 -10
  103. package/dist/Editor/Elements/Table/TablePopup.js +1 -4
  104. package/dist/Editor/Elements/Table/TableSelector.js +6 -10
  105. package/dist/Editor/Elements/Table/TableTool.js +4 -8
  106. package/dist/Editor/Elements/Title/title.js +0 -10
  107. package/dist/Editor/Elements/TopBanner/TopBannerButton.js +1 -4
  108. package/dist/Editor/Elements/Variables/VariableButton.js +1 -10
  109. package/dist/Editor/MiniEditor.js +3 -10
  110. package/dist/Editor/Styles/EditorStyles.js +5 -5
  111. package/dist/Editor/Toolbar/Basic/index.js +1 -2
  112. package/dist/Editor/Toolbar/FormatTools/BlockButton.js +2 -6
  113. package/dist/Editor/Toolbar/FormatTools/Dropdown.js +3 -27
  114. package/dist/Editor/Toolbar/FormatTools/FontFamilyAutocomplete.js +3 -4
  115. package/dist/Editor/Toolbar/FormatTools/MarkButton.js +4 -8
  116. package/dist/Editor/Toolbar/FormatTools/TextSize.js +13 -7
  117. package/dist/Editor/Toolbar/Mini/MiniToolbar.js +15 -20
  118. package/dist/Editor/Toolbar/PopupTool/AddTemplates.js +5 -10
  119. package/dist/Editor/Toolbar/PopupTool/ButtonTemplatesCard.js +4 -10
  120. package/dist/Editor/Toolbar/PopupTool/FullViewCard.js +4 -10
  121. package/dist/Editor/Toolbar/PopupTool/MiniTextFormat/MiniColorPicker.js +2 -6
  122. package/dist/Editor/Toolbar/PopupTool/MiniTextFormat/SelectAlignment.js +35 -42
  123. package/dist/Editor/Toolbar/PopupTool/MiniTextFormat/SelectFontSize.js +13 -6
  124. package/dist/Editor/Toolbar/PopupTool/MiniTextFormat/SelectList.js +51 -58
  125. package/dist/Editor/Toolbar/PopupTool/MiniTextFormat/SelectSuperSubscript.js +22 -29
  126. package/dist/Editor/Toolbar/PopupTool/MiniTextFormat/SelectTypography.js +87 -226
  127. package/dist/Editor/Toolbar/PopupTool/MiniTextFormat/index.js +7 -15
  128. package/dist/Editor/Toolbar/PopupTool/PopperHeader.js +4 -8
  129. package/dist/Editor/Toolbar/PopupTool/PopupToolStyle.js +9 -16
  130. package/dist/Editor/Toolbar/PopupTool/TemplateCard.js +5 -11
  131. package/dist/Editor/Toolbar/PopupTool/TextFormat.js +44 -126
  132. package/dist/Editor/Toolbar/PopupTool/index.js +17 -6
  133. package/dist/Editor/Toolbar/Toolbar.js +10 -20
  134. package/dist/Editor/Toolbar/toolbarGroups.js +6 -48
  135. package/dist/Editor/assets/svg/CalenderIconTick.js +0 -1
  136. package/dist/Editor/common/ColorPickerButton.js +10 -45
  137. package/dist/Editor/common/CustomDialog/index.js +10 -8
  138. package/dist/Editor/common/CustomDialog/styles.js +1 -1
  139. package/dist/Editor/common/DnD/DragHandleButton.js +1 -1
  140. package/dist/Editor/common/FontLoader/FontLoader.js +0 -3
  141. package/dist/Editor/common/Icon.js +1 -46
  142. package/dist/Editor/common/ImageSelector/ImageSelector.js +8 -10
  143. package/dist/Editor/common/ImageSelector/Options/AddLink.js +4 -6
  144. package/dist/Editor/common/ImageSelector/Options/Upload.js +1 -1
  145. package/dist/Editor/common/ImageSelector/Styles.js +9 -3
  146. package/dist/Editor/common/ImageSelector/UploadStyles.js +9 -9
  147. package/dist/Editor/common/LinkSettings/NavComponents.js +10 -14
  148. package/dist/Editor/common/LinkSettings/index.js +14 -20
  149. package/dist/Editor/common/LinkSettings/navOptions.js +1 -1
  150. package/dist/Editor/common/MentionsPopup/Styles.js +73 -111
  151. package/dist/Editor/common/MentionsPopup/index.js +4 -8
  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 -58
  171. package/dist/Editor/common/RnD/Utils/index.js +0 -48
  172. package/dist/Editor/common/RnD/VirtualElement/index.js +104 -186
  173. package/dist/Editor/common/RnD/VirtualElement/styles.js +8 -95
  174. package/dist/Editor/common/RnD/VirtualElement/updateAutoProps.js +3 -5
  175. package/dist/Editor/common/RnD/index.js +10 -82
  176. package/dist/Editor/common/Section/index.js +4 -7
  177. package/dist/Editor/common/Shorthands/elements.js +10 -98
  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 -41
  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 +23 -13
  209. package/dist/Editor/helper/index.js +12 -8
  210. package/dist/Editor/helper/theme.js +2 -200
  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 -28
  214. package/dist/Editor/hooks/useTable.js +2 -5
  215. package/dist/Editor/plugins/withEmbeds.js +1 -1
  216. package/dist/Editor/plugins/withHTML.js +15 -19
  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 +47 -171
  221. package/dist/Editor/utils/button.js +2 -7
  222. package/dist/Editor/utils/chatEditor/SlateUtilityFunctions.js +0 -23
  223. package/dist/Editor/utils/dataView.js +2 -5
  224. package/dist/Editor/utils/divider.js +2 -18
  225. package/dist/Editor/utils/draftToSlate.js +2 -3
  226. package/dist/Editor/utils/embed.js +4 -9
  227. package/dist/Editor/utils/font.js +37 -40
  228. package/dist/Editor/utils/freegrid.js +2 -2
  229. package/dist/Editor/utils/helper.js +29 -136
  230. package/dist/Editor/utils/signature.js +2 -5
  231. package/dist/Editor/utils/table.js +37 -53
  232. package/package.json +2 -2
  233. package/dist/Editor/Elements/DataView/Layouts/DataTypes/Components/MultiSelect.js +0 -422
  234. package/dist/Editor/Toolbar/PopupTool/ThemeTextFormat.js +0 -441
  235. package/dist/Editor/assets/svg/ClearAllRounded.js +0 -31
  236. package/dist/Editor/assets/svg/ThemeIcons.js +0 -291
  237. package/dist/Editor/common/CustomColorPicker/index.js +0 -125
  238. package/dist/Editor/common/CustomColorPicker/style.js +0 -53
  239. package/dist/Editor/common/CustomDialog2/index.js +0 -94
  240. package/dist/Editor/common/CustomDialog2/style.js +0 -67
  241. package/dist/Editor/common/CustomSelect.js +0 -33
  242. package/dist/Editor/common/RnD/Theme/MainThemeProvider.js +0 -17
  243. package/dist/Editor/common/RnD/VirtualElement/ForceAutoAlignment.js +0 -110
  244. package/dist/Editor/common/RnD/VirtualElement/VirtualTextElement.js +0 -112
  245. package/dist/Editor/common/RnD/VirtualElement/helper.js +0 -267
  246. package/dist/Editor/common/SnackBar/index.js +0 -43
  247. package/dist/Editor/helper/textIndeces.js +0 -58
  248. package/dist/Editor/hooks/useAutoScroll.js +0 -38
  249. package/dist/Editor/hooks/useEditorTheme.js +0 -153
  250. package/dist/Editor/theme/index.js +0 -144
  251. package/dist/Editor/themeSettings/ActiveTheme.js +0 -72
  252. package/dist/Editor/themeSettings/buttons/index.js +0 -285
  253. package/dist/Editor/themeSettings/buttons/style.js +0 -23
  254. package/dist/Editor/themeSettings/colorTheme/index.js +0 -297
  255. package/dist/Editor/themeSettings/colorTheme/style.js +0 -81
  256. package/dist/Editor/themeSettings/fonts/PreviewElement.js +0 -121
  257. package/dist/Editor/themeSettings/fonts/index.js +0 -222
  258. package/dist/Editor/themeSettings/fonts/style.js +0 -59
  259. package/dist/Editor/themeSettings/icons.js +0 -60
  260. package/dist/Editor/themeSettings/index.js +0 -328
  261. package/dist/Editor/themeSettings/style.js +0 -193
  262. package/dist/Editor/themeSettingsAI/icons.js +0 -96
  263. package/dist/Editor/themeSettingsAI/index.js +0 -355
  264. package/dist/Editor/themeSettingsAI/saveTheme.js +0 -215
  265. package/dist/Editor/themeSettingsAI/style.js +0 -250
@@ -18,8 +18,7 @@ const Toolbar = ({
18
18
  readOnly,
19
19
  showTool,
20
20
  onSettings,
21
- isSectionFullWidth,
22
- translation
21
+ isSectionFullWidth
23
22
  }) => {
24
23
  return !readOnly && !showTool ? /*#__PURE__*/_jsx(Box, {
25
24
  component: "div",
@@ -33,7 +32,7 @@ const Toolbar = ({
33
32
  }
34
33
  },
35
34
  children: /*#__PURE__*/_jsx(Tooltip, {
36
- title: translation("Section Settings"),
35
+ title: "Section Settings",
37
36
  children: /*#__PURE__*/_jsx(IconButton, {
38
37
  onClick: onSettings,
39
38
  children: /*#__PURE__*/_jsx(SectionSettingIcon, {})
@@ -51,8 +50,7 @@ const Section = props => {
51
50
  customProps
52
51
  } = props;
53
52
  const {
54
- readOnly,
55
- translation
53
+ readOnly
56
54
  } = customProps;
57
55
  const editor = useSlateStatic();
58
56
  // const [isHovering, setIsHovering] = useState(false);
@@ -162,8 +160,7 @@ const Section = props => {
162
160
  isSectionFullWidth: isSectionFullWidth,
163
161
  readOnly: readOnly,
164
162
  showTool: false,
165
- onSettings: onSettings,
166
- translation: translation
163
+ onSettings: onSettings
167
164
  }), children]
168
165
  }), openSetttings ? /*#__PURE__*/_jsx(SectionPopup, {
169
166
  element: {
@@ -43,60 +43,6 @@ const ELEMENTS_LIST = [{
43
43
  icon: "headingThree"
44
44
  }),
45
45
  onInsert: editor => toggleBlock(editor, "headingThree", false)
46
- }, {
47
- name: "Heading 4",
48
- desc: "",
49
- group: "Text",
50
- type: "headingFour",
51
- icon: /*#__PURE__*/_jsx(Icon, {
52
- icon: "headingFour"
53
- }),
54
- onInsert: editor => toggleBlock(editor, "headingFour", false)
55
- }, {
56
- name: "Heading 5",
57
- desc: "",
58
- group: "Text",
59
- type: "headingFive",
60
- icon: /*#__PURE__*/_jsx(Icon, {
61
- icon: "headingFive"
62
- }),
63
- onInsert: editor => toggleBlock(editor, "headingFive", false)
64
- }, {
65
- name: "Heading 6",
66
- desc: "",
67
- group: "Text",
68
- type: "headingSix",
69
- icon: /*#__PURE__*/_jsx(Icon, {
70
- icon: "headingSix"
71
- }),
72
- onInsert: editor => toggleBlock(editor, "headingSix", false)
73
- }, {
74
- name: "Paragraph 1",
75
- desc: "",
76
- group: "Text",
77
- type: "paragraphOne",
78
- icon: /*#__PURE__*/_jsx(Icon, {
79
- icon: "paragraphOne"
80
- }),
81
- onInsert: editor => toggleBlock(editor, "paragraphOne", false)
82
- }, {
83
- name: "Paragraph 2",
84
- desc: "",
85
- group: "Text",
86
- type: "paragraphTwo",
87
- icon: /*#__PURE__*/_jsx(Icon, {
88
- icon: "paragraphTwo"
89
- }),
90
- onInsert: editor => toggleBlock(editor, "paragraphTwo", false)
91
- }, {
92
- name: "Paragraph 3",
93
- desc: "",
94
- group: "Text",
95
- type: "paragraphThree",
96
- icon: /*#__PURE__*/_jsx(Icon, {
97
- icon: "paragraphThree"
98
- }),
99
- onInsert: editor => toggleBlock(editor, "paragraphThree", false)
100
46
  }, {
101
47
  name: "Quote",
102
48
  desc: "",
@@ -154,10 +100,7 @@ const ELEMENTS_LIST = [{
154
100
  icon: /*#__PURE__*/_jsx(Icon, {
155
101
  icon: "image"
156
102
  }),
157
- onInsert: editor => {
158
- Transforms.delete(editor, editor.selection);
159
- insertDefaultEmbed(editor, "image");
160
- }
103
+ onInsert: editor => insertDefaultEmbed(editor, "image")
161
104
  }, {
162
105
  name: "Video",
163
106
  desc: "",
@@ -166,12 +109,9 @@ const ELEMENTS_LIST = [{
166
109
  icon: /*#__PURE__*/_jsx(Icon, {
167
110
  icon: "video"
168
111
  }),
169
- onInsert: editor => {
170
- Transforms.delete(editor, editor.selection);
171
- insertDefaultEmbed(editor, "video", "", {
172
- aspectRatio: "16 / 9"
173
- });
174
- }
112
+ onInsert: editor => insertDefaultEmbed(editor, "video", "", {
113
+ aspectRatio: "16 / 9"
114
+ })
175
115
  }, {
176
116
  name: "Embed",
177
117
  desc: "",
@@ -180,10 +120,7 @@ const ELEMENTS_LIST = [{
180
120
  icon: /*#__PURE__*/_jsx(Icon, {
181
121
  icon: "embed"
182
122
  }),
183
- onInsert: editor => {
184
- Transforms.delete(editor, editor.selection);
185
- insertDefaultEmbed(editor, "embed", "");
186
- }
123
+ onInsert: editor => insertDefaultEmbed(editor, "embed", "")
187
124
  }, {
188
125
  name: "Calendly",
189
126
  desc: "",
@@ -192,10 +129,7 @@ const ELEMENTS_LIST = [{
192
129
  icon: /*#__PURE__*/_jsx(Icon, {
193
130
  icon: "calenderNewIcon"
194
131
  }),
195
- onInsert: editor => {
196
- Transforms.delete(editor, editor.selection);
197
- insertDefaultEmbed(editor, "calendly", "");
198
- }
132
+ onInsert: editor => insertDefaultEmbed(editor, "calendly", "")
199
133
  }, {
200
134
  name: "Table",
201
135
  group: "Elements",
@@ -205,7 +139,6 @@ const ELEMENTS_LIST = [{
205
139
  icon: "table"
206
140
  }),
207
141
  onInsert: editor => {
208
- Transforms.delete(editor, editor.selection);
209
142
  const table = new TableUtil(editor);
210
143
  table.insertTable(3, 3);
211
144
  }
@@ -216,10 +149,7 @@ const ELEMENTS_LIST = [{
216
149
  type: "emoji",
217
150
  renderComponent: rest => /*#__PURE__*/_jsx(EmojiButton, {
218
151
  ...rest,
219
- icoBtnType: "cmd",
220
- customProps: {
221
- ...rest
222
- }
152
+ icoBtnType: "cmd"
223
153
  })
224
154
  }, {
225
155
  name: "Brain",
@@ -231,10 +161,7 @@ const ELEMENTS_LIST = [{
231
161
  element: {
232
162
  name: "Brain"
233
163
  },
234
- icoBtnType: "cmd",
235
- customProps: {
236
- ...rest
237
- }
164
+ icoBtnType: "cmd"
238
165
  })
239
166
  }, {
240
167
  name: "Divider",
@@ -256,7 +183,6 @@ const ELEMENTS_LIST = [{
256
183
  icon: "grid"
257
184
  }),
258
185
  onInsert: editor => {
259
- Transforms.delete(editor, editor.selection);
260
186
  insertGrid(editor);
261
187
  }
262
188
  }, {
@@ -291,7 +217,6 @@ const ELEMENTS_LIST = [{
291
217
  icon: "button"
292
218
  }),
293
219
  onInsert: editor => {
294
- Transforms.delete(editor, editor.selection);
295
220
  insertButton(editor);
296
221
  }
297
222
  }, {
@@ -303,7 +228,6 @@ const ELEMENTS_LIST = [{
303
228
  icon: "signature"
304
229
  }),
305
230
  onInsert: editor => {
306
- Transforms.delete(editor, editor.selection);
307
231
  insertSignature(editor);
308
232
  }
309
233
  }, {
@@ -348,27 +272,15 @@ const ELEMENTS_LIST = [{
348
272
  icon: "dataTable"
349
273
  }),
350
274
  onInsert: editor => {
351
- Transforms.delete(editor, editor.selection);
352
275
  insertDataView(editor);
353
276
  }
354
277
  }];
355
278
  const elements = props => {
356
279
  const {
357
280
  search,
358
- hideTools,
359
- translation
281
+ hideTools
360
282
  } = props;
361
- const translatedElements = ELEMENTS_LIST.map(element => ({
362
- ...element,
363
- name: translation(element.name),
364
- renderComponent: element.renderComponent ? rest => {
365
- return element.renderComponent({
366
- ...rest,
367
- translation
368
- });
369
- } : undefined
370
- }));
371
- const filteredElements = translatedElements.filter(f => (hideTools || []).indexOf(f.type) === -1);
283
+ const filteredElements = ELEMENTS_LIST.filter(f => (hideTools || []).indexOf(f.type) === -1);
372
284
  return filteredElements.filter(c => c.name.toLowerCase().includes(search?.toLowerCase()));
373
285
  };
374
286
  export default elements;
@@ -15,12 +15,12 @@ const appHeaderStyle = [{
15
15
  options: fontOptions,
16
16
  webFont: true,
17
17
  width: 7,
18
- renderOption: (option, elementProps, translation) => {
18
+ renderOption: option => {
19
19
  return /*#__PURE__*/_jsx("span", {
20
20
  style: {
21
21
  fontFamily: option.value
22
22
  },
23
- children: translation("LOGO")
23
+ children: "LOGO"
24
24
  });
25
25
  }
26
26
  }, {
@@ -58,12 +58,12 @@ const appHeaderStyle = [{
58
58
  webFont: true,
59
59
  width: 7,
60
60
  options: fontOptions,
61
- renderOption: (option, elementProps, translation) => {
61
+ renderOption: option => {
62
62
  return /*#__PURE__*/_jsx("span", {
63
63
  style: {
64
64
  fontFamily: option.value
65
65
  },
66
- children: translation("Home")
66
+ children: "Home"
67
67
  });
68
68
  }
69
69
  }, {
@@ -51,9 +51,9 @@ const boxStyle = [{
51
51
  text: "Dashed",
52
52
  value: "dashed"
53
53
  }],
54
- renderOption: (option, elementProps, translation) => {
54
+ renderOption: option => {
55
55
  return /*#__PURE__*/_jsx("span", {
56
- children: translation(option.text)
56
+ children: option.text
57
57
  });
58
58
  }
59
59
  }]
@@ -21,8 +21,7 @@ const buttonStyle = [{
21
21
  },
22
22
  children: option.text
23
23
  });
24
- },
25
- themeEnabled: true
24
+ }
26
25
  }, {
27
26
  label: "Font Size",
28
27
  key: "textSize",
@@ -46,8 +45,7 @@ const buttonStyle = [{
46
45
  }, {
47
46
  label: "Button Color",
48
47
  key: "bgColor",
49
- type: "color",
50
- themeEnabled: true
48
+ type: "color"
51
49
  }, {
52
50
  label: "Border Color",
53
51
  key: "borderColor",
@@ -106,9 +104,9 @@ const buttonStyle = [{
106
104
  text: "Dashed",
107
105
  value: "dashed"
108
106
  }],
109
- renderOption: (option, elementProps, translation) => {
107
+ renderOption: option => {
110
108
  return /*#__PURE__*/_jsx("span", {
111
- children: translation(option.text)
109
+ children: option.text
112
110
  });
113
111
  }
114
112
  }]
@@ -46,9 +46,9 @@ const dividerStyle = [{
46
46
  text: "Outset",
47
47
  value: "outset"
48
48
  }],
49
- renderOption: (option, lementProps, translation) => {
49
+ renderOption: option => {
50
50
  return /*#__PURE__*/_jsx("span", {
51
- children: translation(option.text)
51
+ children: option.text
52
52
  });
53
53
  }
54
54
  }]
@@ -16,18 +16,18 @@ const embedVideoStyle = [{
16
16
  key: "aspectRatio",
17
17
  type: "textOptions",
18
18
  options: [{
19
- text: "deafultRatio",
19
+ text: "16:9 (Default)",
20
20
  value: "16 / 9"
21
21
  }, {
22
- text: "nineSixteen",
22
+ text: "9:16",
23
23
  value: "9 / 16"
24
24
  }, {
25
25
  text: "Custom",
26
26
  value: "custom"
27
27
  }],
28
- renderOption: (option, elementProps, translation) => {
28
+ renderOption: option => {
29
29
  return /*#__PURE__*/_jsx("span", {
30
- children: translation(option.text)
30
+ children: option.text
31
31
  });
32
32
  }
33
33
  }]
@@ -78,9 +78,9 @@ const embedVideoStyle = [{
78
78
  text: "Dashed",
79
79
  value: "dashed"
80
80
  }],
81
- renderOption: (option, elementProps, translation) => {
81
+ renderOption: option => {
82
82
  return /*#__PURE__*/_jsx("span", {
83
- children: translation(option.text)
83
+ children: option.text
84
84
  });
85
85
  }
86
86
  }]
@@ -57,9 +57,9 @@ const fieldStyle = [{
57
57
  text: "Dashed",
58
58
  value: "dashed"
59
59
  }],
60
- renderOption: (option, elementProps, translation) => {
60
+ renderOption: option => {
61
61
  return /*#__PURE__*/_jsx("span", {
62
- children: translation(option.text)
62
+ children: option.text
63
63
  });
64
64
  }
65
65
  }]
@@ -8,12 +8,8 @@ const Alignment = props => {
8
8
  const {
9
9
  value,
10
10
  data,
11
- onChange,
12
- customProps
11
+ onChange
13
12
  } = props;
14
- const {
15
- translation
16
- } = customProps;
17
13
  const {
18
14
  key
19
15
  } = data;
@@ -40,7 +36,7 @@ const Alignment = props => {
40
36
  fontSize: "14px",
41
37
  fontWeight: 500
42
38
  },
43
- children: translation("Alignment")
39
+ children: "Alignment"
44
40
  })
45
41
  }), /*#__PURE__*/_jsxs("div", {
46
42
  style: {
@@ -57,21 +53,21 @@ const Alignment = props => {
57
53
  display: "flex"
58
54
  },
59
55
  children: [/*#__PURE__*/_jsx(Tooltip, {
60
- title: translation("Align Left"),
56
+ title: "Align Left",
61
57
  children: /*#__PURE__*/_jsx(FormControlLabel, {
62
58
  value: "start",
63
59
  control: /*#__PURE__*/_jsx(Radio, {}),
64
60
  label: /*#__PURE__*/_jsx(JustifyStartIcon, {})
65
61
  })
66
62
  }), /*#__PURE__*/_jsx(Tooltip, {
67
- title: translation("Align Center"),
63
+ title: "Align Center",
68
64
  children: /*#__PURE__*/_jsx(FormControlLabel, {
69
65
  value: "center",
70
66
  control: /*#__PURE__*/_jsx(Radio, {}),
71
67
  label: /*#__PURE__*/_jsx(JustifyCenterIcon, {})
72
68
  })
73
69
  }), /*#__PURE__*/_jsx(Tooltip, {
74
- title: translation("Align Right"),
70
+ title: "Align Right",
75
71
  children: /*#__PURE__*/_jsx(FormControlLabel, {
76
72
  value: "end",
77
73
  control: /*#__PURE__*/_jsx(Radio, {}),
@@ -89,21 +85,21 @@ const Alignment = props => {
89
85
  display: "flex"
90
86
  },
91
87
  children: [/*#__PURE__*/_jsx(Tooltip, {
92
- title: translation("Align Top"),
88
+ title: "Align Top",
93
89
  children: /*#__PURE__*/_jsx(FormControlLabel, {
94
90
  value: "start",
95
91
  control: /*#__PURE__*/_jsx(Radio, {}),
96
92
  label: /*#__PURE__*/_jsx(AlignStartIcon, {})
97
93
  })
98
94
  }), /*#__PURE__*/_jsx(Tooltip, {
99
- title: translation("Align Middle"),
95
+ title: "Align Middle",
100
96
  children: /*#__PURE__*/_jsx(FormControlLabel, {
101
97
  value: "center",
102
98
  control: /*#__PURE__*/_jsx(Radio, {}),
103
99
  label: /*#__PURE__*/_jsx(AlignCenterIcon, {})
104
100
  })
105
101
  }), /*#__PURE__*/_jsx(Tooltip, {
106
- title: translation("Align Bottom"),
102
+ title: "Align Bottom",
107
103
  children: /*#__PURE__*/_jsx(FormControlLabel, {
108
104
  value: "end",
109
105
  control: /*#__PURE__*/_jsx(Radio, {}),
@@ -126,7 +122,7 @@ const Alignment = props => {
126
122
  fontSize: "14px",
127
123
  fontWeight: 500
128
124
  },
129
- children: translation("Direction")
125
+ children: "Direction"
130
126
  })
131
127
  }), /*#__PURE__*/_jsxs(RadioGroup, {
132
128
  row: true,
@@ -13,9 +13,6 @@ const BackgroundImage = props => {
13
13
  customProps,
14
14
  onChange
15
15
  } = props;
16
- const {
17
- translation
18
- } = customProps;
19
16
  const {
20
17
  key
21
18
  } = data;
@@ -55,7 +52,7 @@ const BackgroundImage = props => {
55
52
  fontWeight: "500",
56
53
  marginBottom: "8px"
57
54
  },
58
- children: translation("Upload Image")
55
+ children: "Upload Image"
59
56
  }), /*#__PURE__*/_jsx(Grid, {
60
57
  container: true,
61
58
  sx: classes.uploadContainer,
@@ -73,14 +70,9 @@ const BackgroundImage = props => {
73
70
  children: base64 ? /*#__PURE__*/_jsx(Grid, {
74
71
  className: "removeImageText",
75
72
  onClick: onRemoveBG,
76
- children: translation("REMOVE")
73
+ children: "REMOVE"
77
74
  }) : /*#__PURE__*/_jsx(Grid, {
78
75
  className: "uploadImageText",
79
- sx: {
80
- padding: 0,
81
- background: `${theme?.palette?.editor?.inputFieldBgColor}`,
82
- border: `1px solid ${theme?.palette?.editor?.inputFieldBorder}`
83
- },
84
76
  children: /*#__PURE__*/_jsxs(Button, {
85
77
  component: "label",
86
78
  variant: "text",
@@ -95,7 +87,7 @@ const BackgroundImage = props => {
95
87
  style: {
96
88
  paddingLeft: "8px"
97
89
  },
98
- children: translation("Upload a image")
90
+ children: "Upload a image"
99
91
  })]
100
92
  })
101
93
  })
@@ -3,37 +3,23 @@ import { Checkbox, FormControlLabel, Grid, Slider, Typography, Box, IconButton }
3
3
  import { squreStyle } from "./radiusStyle";
4
4
  import { getBreakPointsValue } from "../../../helper/theme";
5
5
  import useWindowResize from "../../../hooks/useWindowResize";
6
- import { useEditorTheme } from "../../../hooks/useEditorTheme";
7
6
  import { CheckedBoxCheckIcon } from "../../iconListV2";
8
7
  import { jsx as _jsx } from "react/jsx-runtime";
9
8
  import { jsxs as _jsxs } from "react/jsx-runtime";
10
9
  const BANNER_SPACING_KEYS = ["top", "left", "right", "bottom"];
11
10
  const BannerSpacing = props => {
12
11
  const {
12
+ value: val,
13
13
  data,
14
14
  onChange,
15
15
  elementProps,
16
- classes,
17
- customProps
16
+ classes
18
17
  } = props;
19
- const {
20
- translation
21
- } = customProps;
22
18
  const {
23
19
  key
24
20
  } = data;
25
21
  const lockKeyVal = `lock${key}`;
26
- const {
27
- selectedTheme
28
- } = useEditorTheme();
29
- const {
30
- bannerSpacing,
31
- lockbannerSpacing
32
- } = selectedTheme?.elementProps?.button || {};
33
- const isUserValue = Object.keys(props?.value || {})?.length;
34
- const isUserLockedSpacing = typeof elementProps[lockKeyVal] === "boolean";
35
- const val = isUserValue ? props?.value : bannerSpacing;
36
- let lockSpacing = isUserLockedSpacing ? elementProps[lockKeyVal] : lockbannerSpacing;
22
+ let lockSpacing = elementProps[lockKeyVal];
37
23
  if (lockSpacing === undefined) {
38
24
  lockSpacing = true;
39
25
  }
@@ -77,7 +63,7 @@ const BannerSpacing = props => {
77
63
  fontSize: "14px",
78
64
  fontWeight: 500
79
65
  },
80
- children: translation(data?.label)
66
+ children: data?.label
81
67
  }), /*#__PURE__*/_jsxs(Grid, {
82
68
  container: true,
83
69
  wrap: "nowrap",
@@ -140,7 +126,7 @@ const BannerSpacing = props => {
140
126
  sx: {
141
127
  fontSize: "14px"
142
128
  },
143
- children: translation("Customize")
129
+ children: "Customize"
144
130
  })
145
131
  }), !lockSpacing ? /*#__PURE__*/_jsx(Grid, {
146
132
  container: true,
@@ -3,40 +3,28 @@ import { Grid, Typography, Slider, FormControlLabel, Checkbox, Box, IconButton }
3
3
  import { radiusStyle } from "./radiusStyle";
4
4
  import useWindowResize from "../../../hooks/useWindowResize";
5
5
  import { getBreakPointsValue, getCustomizationValue } from "../../../helper/theme";
6
- import { useEditorTheme } from "../../../hooks/useEditorTheme";
7
6
  import { CheckedBoxCheckIcon } from "../../iconListV2";
8
7
  import { jsx as _jsx } from "react/jsx-runtime";
9
8
  import { jsxs as _jsxs } from "react/jsx-runtime";
10
9
  const BORDER_RADIUS_KEYS = ["topLeft", "topRight", "bottomLeft", "bottomRight"];
11
10
  const BorderRadius = props => {
12
11
  const {
12
+ value: val,
13
13
  data,
14
14
  onChange,
15
15
  elementProps,
16
- classes,
17
- customProps
16
+ classes
18
17
  } = props;
19
- const {
20
- translation
21
- } = customProps;
18
+ let {
19
+ lockRadius
20
+ } = elementProps;
21
+ if (lockRadius === undefined) {
22
+ lockRadius = true;
23
+ }
22
24
  const {
23
25
  key
24
26
  } = data;
25
27
  const [size] = useWindowResize();
26
- const {
27
- selectedTheme
28
- } = useEditorTheme();
29
- const {
30
- borderRadius,
31
- lockRadius: themeLockRadius
32
- } = selectedTheme?.elementProps?.button || {};
33
- const isUserValue = Object.keys(props?.value || {})?.length;
34
- const isUserLockedRadius = typeof elementProps?.lockRadius === "boolean";
35
- const val = isUserValue ? props?.value : borderRadius;
36
- let lockRadius = isUserLockedRadius ? elementProps?.lockRadius : themeLockRadius;
37
- if (lockRadius === undefined) {
38
- lockRadius = true;
39
- }
40
28
  const value = getBreakPointsValue(val, size?.device);
41
29
  const handleChange = e => {
42
30
  let changeAll = {};
@@ -72,7 +60,7 @@ const BorderRadius = props => {
72
60
  fontSize: "14px",
73
61
  fontWeight: 500
74
62
  },
75
- children: translation(data?.label)
63
+ children: data?.label
76
64
  }), /*#__PURE__*/_jsxs(Grid, {
77
65
  container: true,
78
66
  wrap: "nowrap",
@@ -125,7 +113,7 @@ const BorderRadius = props => {
125
113
  sx: {
126
114
  fontSize: "14px"
127
115
  },
128
- children: translation("Customize")
116
+ children: "Customize"
129
117
  })
130
118
  }), !lockRadius ? /*#__PURE__*/_jsx(Grid, {
131
119
  container: true,
@@ -14,9 +14,6 @@ const ButtonLink = props => {
14
14
  const {
15
15
  key
16
16
  } = data;
17
- const {
18
- translation
19
- } = customProps;
20
17
  const {
21
18
  metadata
22
19
  } = customProps || {
@@ -79,7 +76,7 @@ const ButtonLink = props => {
79
76
  fontWeight: 500
80
77
  },
81
78
  id: "demo-radio-buttons-group-label",
82
- children: translation("whereToLinkText")
79
+ children: "Where do you want to Link?"
83
80
  }), /*#__PURE__*/_jsxs(RadioGroup, {
84
81
  row: true,
85
82
  "aria-labelledby": "demo-radio-buttons-group-label",
@@ -96,7 +93,7 @@ const ButtonLink = props => {
96
93
  style: {
97
94
  fontSize: "14px"
98
95
  },
99
- children: translation("nextStep")
96
+ children: "Next Step"
100
97
  })
101
98
  }), /*#__PURE__*/_jsx(FormControlLabel, {
102
99
  value: "webAddress",
@@ -107,7 +104,7 @@ const ButtonLink = props => {
107
104
  style: {
108
105
  fontSize: "14px"
109
106
  },
110
- children: translation("webAddress")
107
+ children: "Web Address"
111
108
  })
112
109
  })]
113
110
  })]