@flozy/editor 10.0.1 → 10.0.3

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 (269) hide show
  1. package/dist/Editor/ChatEditor.js +20 -28
  2. package/dist/Editor/CommonEditor.js +25 -142
  3. package/dist/Editor/DialogWrapper.js +25 -31
  4. package/dist/Editor/Editor.css +9 -17
  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 +5 -15
  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 -61
  26. package/dist/Editor/Elements/Color Picker/ColorPicker.css +1 -25
  27. package/dist/Editor/Elements/Color Picker/ColorPicker.js +7 -10
  28. package/dist/Editor/Elements/Color Picker/Styles.js +13 -15
  29. package/dist/Editor/Elements/Colorbox/ColorboxButton.js +2 -6
  30. package/dist/Editor/Elements/DataView/DataView.js +2 -5
  31. package/dist/Editor/Elements/DataView/DataViewButton.js +2 -6
  32. package/dist/Editor/Elements/DataView/Layouts/ColumnView.js +2 -4
  33. package/dist/Editor/Elements/DataView/Layouts/DataTypes/MultiSelectType.js +6 -21
  34. package/dist/Editor/Elements/DataView/Layouts/FilterSort/SortOptions/ChooseSort.js +12 -13
  35. package/dist/Editor/Elements/DataView/Layouts/FilterSort/SortOptions/index.js +4 -7
  36. package/dist/Editor/Elements/DataView/Layouts/FilterSort/index.js +5 -7
  37. package/dist/Editor/Elements/DataView/Layouts/FilterView.js +7 -9
  38. package/dist/Editor/Elements/DataView/Layouts/Options/AddOptions.js +3 -8
  39. package/dist/Editor/Elements/DataView/Layouts/Options/AddProperty.js +3 -5
  40. package/dist/Editor/Elements/DataView/Layouts/Options/AllProperties.js +5 -6
  41. package/dist/Editor/Elements/DataView/Layouts/Options/ChangeProperty.js +3 -5
  42. package/dist/Editor/Elements/DataView/Layouts/Options/EditOption.js +7 -9
  43. package/dist/Editor/Elements/DataView/Layouts/Options/EditProperty.js +12 -15
  44. package/dist/Editor/Elements/DataView/Layouts/Options/FilterProperty.js +2 -3
  45. package/dist/Editor/Elements/DataView/Layouts/Options/PropertyList.js +2 -3
  46. package/dist/Editor/Elements/DataView/Layouts/Options/index.js +6 -23
  47. package/dist/Editor/Elements/DataView/Layouts/TableView.js +4 -6
  48. package/dist/Editor/Elements/DataView/Layouts/ViewData.js +4 -8
  49. package/dist/Editor/Elements/DataView/Layouts/index.js +1 -3
  50. package/dist/Editor/Elements/DataView/Providers/DataViewProvider.js +2 -5
  51. package/dist/Editor/Elements/Divider/Divider.js +3 -5
  52. package/dist/Editor/Elements/Divider/DividerButton.js +2 -6
  53. package/dist/Editor/Elements/Divider/DividerPopup.js +2 -3
  54. package/dist/Editor/Elements/Embed/Embed.js +1 -4
  55. package/dist/Editor/Elements/Embed/EmbedPopup.js +1 -4
  56. package/dist/Editor/Elements/Embed/Image.js +11 -16
  57. package/dist/Editor/Elements/Embed/Video.js +7 -10
  58. package/dist/Editor/Elements/EmbedScript/Code.js +6 -21
  59. package/dist/Editor/Elements/EmbedScript/EmbedScript.js +2 -6
  60. package/dist/Editor/Elements/EmbedScript/EmbedScriptPopup.js +30 -62
  61. package/dist/Editor/Elements/Emoji/EmojiButton.js +2 -6
  62. package/dist/Editor/Elements/Form/FieldPopup.js +1 -4
  63. package/dist/Editor/Elements/Form/Form.js +171 -185
  64. package/dist/Editor/Elements/Form/FormButton.js +2 -6
  65. package/dist/Editor/Elements/Form/FormField.js +4 -10
  66. package/dist/Editor/Elements/Form/FormPopup.js +2 -3
  67. package/dist/Editor/Elements/Form/Workflow/FormWorkflow.js +12 -18
  68. package/dist/Editor/Elements/Form/Workflow/ListWorkflow.js +8 -13
  69. package/dist/Editor/Elements/Form/Workflow/MoreOptions.js +2 -3
  70. package/dist/Editor/Elements/Form/Workflow/Styles.js +22 -24
  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 +112 -173
  74. package/dist/Editor/Elements/FreeGrid/FreeGridBox.js +6 -31
  75. package/dist/Editor/Elements/FreeGrid/FreeGridButton.js +2 -6
  76. package/dist/Editor/Elements/FreeGrid/FreeGridItem.js +6 -54
  77. package/dist/Editor/Elements/FreeGrid/Options/AddElement.js +2 -3
  78. package/dist/Editor/Elements/FreeGrid/Options/More.js +5 -11
  79. package/dist/Editor/Elements/FreeGrid/styles.js +7 -64
  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 +5 -8
  87. package/dist/Editor/Elements/Link/LinkButton.js +1 -4
  88. package/dist/Editor/Elements/List/CheckList.js +10 -18
  89. package/dist/Editor/Elements/NewLine/NewLineButton.js +2 -6
  90. package/dist/Editor/Elements/PageSettings/PageSettingsButton.js +1 -4
  91. package/dist/Editor/Elements/PageSettings/PageSettingsPopup.js +1 -4
  92. package/dist/Editor/Elements/Search/SearchAttachment.js +9 -40
  93. package/dist/Editor/Elements/Search/SearchButton.js +11 -15
  94. package/dist/Editor/Elements/Search/SearchList.js +10 -16
  95. package/dist/Editor/Elements/Signature/SignatureButton.js +2 -6
  96. package/dist/Editor/Elements/Signature/SignatureOptions/TypeSignature.js +2 -6
  97. package/dist/Editor/Elements/Signature/SignatureOptions/UploadSignature.js +1 -4
  98. package/dist/Editor/Elements/Signature/SignaturePopup.js +16 -17
  99. package/dist/Editor/Elements/SimpleText/index.js +5 -11
  100. package/dist/Editor/Elements/SimpleText/style.js +2 -2
  101. package/dist/Editor/Elements/Table/DragButton.js +2 -4
  102. package/dist/Editor/Elements/Table/Table.js +11 -23
  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 +6 -6
  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 -10
  117. package/dist/Editor/Toolbar/Mini/MiniToolbar.js +6 -19
  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 +3 -9
  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 +10 -20
  128. package/dist/Editor/Toolbar/PopupTool/PopperHeader.js +5 -10
  129. package/dist/Editor/Toolbar/PopupTool/PopupToolStyle.js +12 -72
  130. package/dist/Editor/Toolbar/PopupTool/TemplateCard.js +5 -11
  131. package/dist/Editor/Toolbar/PopupTool/TextFormat.js +45 -123
  132. package/dist/Editor/Toolbar/PopupTool/index.js +2 -18
  133. package/dist/Editor/Toolbar/Toolbar.js +10 -20
  134. package/dist/Editor/Toolbar/toolbarGroups.js +6 -48
  135. package/dist/Editor/assets/svg/SettingsIcon.js +0 -1
  136. package/dist/Editor/common/ColorPickerButton.js +16 -38
  137. package/dist/Editor/common/CustomDialog/index.js +10 -8
  138. package/dist/Editor/common/DnD/DragHandleButton.js +1 -1
  139. package/dist/Editor/common/FontLoader/FontLoader.js +0 -3
  140. package/dist/Editor/common/Icon.js +1 -31
  141. package/dist/Editor/common/ImageSelector/ImageSelector.js +8 -10
  142. package/dist/Editor/common/ImageSelector/Options/AddLink.js +4 -6
  143. package/dist/Editor/common/ImageSelector/Styles.js +9 -3
  144. package/dist/Editor/common/LinkSettings/NavComponents.js +15 -45
  145. package/dist/Editor/common/LinkSettings/index.js +74 -96
  146. package/dist/Editor/common/LinkSettings/navOptions.js +1 -1
  147. package/dist/Editor/common/LinkSettings/style.js +30 -245
  148. package/dist/Editor/common/MentionsPopup/index.js +2 -6
  149. package/dist/Editor/common/RnD/ContextMenu/CMenus.js +22 -46
  150. package/dist/Editor/common/RnD/ContextMenu/index.js +2 -3
  151. package/dist/Editor/common/RnD/ElementOptions/Actions.js +14 -13
  152. package/dist/Editor/common/RnD/ElementOptions/Icons/LinkIcon.js +0 -1
  153. package/dist/Editor/common/RnD/ElementOptions/index.js +4 -9
  154. package/dist/Editor/common/RnD/ElementOptions/styles.js +1 -28
  155. package/dist/Editor/common/RnD/ElementSettings/OtherSettings/SaveAsTemplate.js +3 -8
  156. package/dist/Editor/common/RnD/ElementSettings/OtherSettings/Settings.js +7 -11
  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 +12 -147
  167. package/dist/Editor/common/RnD/OptionsPopup/index.js +8 -12
  168. package/dist/Editor/common/RnD/OptionsPopup/style.js +19 -121
  169. package/dist/Editor/common/RnD/ShadowElement.js +1 -2
  170. package/dist/Editor/common/RnD/SwitchViewport/SwitchViewport.js +7 -11
  171. package/dist/Editor/common/RnD/Theme/ViewportStimulator.js +3 -6
  172. package/dist/Editor/common/RnD/Utils/gridDropItem.js +9 -73
  173. package/dist/Editor/common/RnD/Utils/index.js +0 -3
  174. package/dist/Editor/common/RnD/VirtualElement/index.js +103 -187
  175. package/dist/Editor/common/RnD/VirtualElement/styles.js +7 -157
  176. package/dist/Editor/common/RnD/VirtualElement/updateAutoProps.js +3 -5
  177. package/dist/Editor/common/RnD/index.js +8 -76
  178. package/dist/Editor/common/Section/index.js +4 -7
  179. package/dist/Editor/common/Select/index.js +0 -2
  180. package/dist/Editor/common/Shorthands/elements.js +3 -72
  181. package/dist/Editor/common/StyleBuilder/appHeaderStyle.js +4 -4
  182. package/dist/Editor/common/StyleBuilder/boxStyle.js +2 -2
  183. package/dist/Editor/common/StyleBuilder/buttonStyle.js +4 -6
  184. package/dist/Editor/common/StyleBuilder/dividerStyles.js +2 -2
  185. package/dist/Editor/common/StyleBuilder/embedVideoStyle.js +6 -6
  186. package/dist/Editor/common/StyleBuilder/fieldStyle.js +2 -2
  187. package/dist/Editor/common/StyleBuilder/fieldTypes/alignment.js +9 -13
  188. package/dist/Editor/common/StyleBuilder/fieldTypes/backgroundImage.js +3 -11
  189. package/dist/Editor/common/StyleBuilder/fieldTypes/bannerSpacing.js +5 -19
  190. package/dist/Editor/common/StyleBuilder/fieldTypes/borderRadius.js +10 -22
  191. package/dist/Editor/common/StyleBuilder/fieldTypes/buttonLink.js +3 -6
  192. package/dist/Editor/common/StyleBuilder/fieldTypes/card.js +13 -27
  193. package/dist/Editor/common/StyleBuilder/fieldTypes/color.js +14 -44
  194. package/dist/Editor/common/StyleBuilder/fieldTypes/elementSize.js +6 -10
  195. package/dist/Editor/common/StyleBuilder/fieldTypes/fontSize.js +6 -19
  196. package/dist/Editor/common/StyleBuilder/fieldTypes/gridSize.js +2 -6
  197. package/dist/Editor/common/StyleBuilder/fieldTypes/icons.js +2 -5
  198. package/dist/Editor/common/StyleBuilder/fieldTypes/lineSpacing.js +6 -7
  199. package/dist/Editor/common/StyleBuilder/fieldTypes/menusArray.js +12 -22
  200. package/dist/Editor/common/StyleBuilder/fieldTypes/metaDataMapping.js +2 -8
  201. package/dist/Editor/common/StyleBuilder/fieldTypes/saveAsTemplate.js +11 -12
  202. package/dist/Editor/common/StyleBuilder/fieldTypes/selectBox.js +2 -6
  203. package/dist/Editor/common/StyleBuilder/fieldTypes/text.js +4 -8
  204. package/dist/Editor/common/StyleBuilder/fieldTypes/textAlign.js +2 -6
  205. package/dist/Editor/common/StyleBuilder/fieldTypes/textOptions.js +12 -21
  206. package/dist/Editor/common/StyleBuilder/formStyle.js +7 -7
  207. package/dist/Editor/common/StyleBuilder/gridItemStyle.js +6 -6
  208. package/dist/Editor/common/StyleBuilder/gridStyle.js +5 -5
  209. package/dist/Editor/common/StyleBuilder/index.js +5 -8
  210. package/dist/Editor/common/StyleBuilder/pageSettingsStyle.js +7 -5
  211. package/dist/Editor/common/Uploader.js +5 -16
  212. package/dist/Editor/common/iconListV2.js +6 -101
  213. package/dist/Editor/common/iconslist.js +0 -24
  214. package/dist/Editor/commonStyle.js +61 -174
  215. package/dist/Editor/helper/index.js +3 -27
  216. package/dist/Editor/helper/theme.js +2 -203
  217. package/dist/Editor/hooks/useMouseMove.js +5 -8
  218. package/dist/Editor/plugins/withEmbeds.js +1 -1
  219. package/dist/Editor/plugins/withHTML.js +7 -10
  220. package/dist/Editor/plugins/withLayout.js +2 -3
  221. package/dist/Editor/plugins/withLinks.js +0 -9
  222. package/dist/Editor/plugins/withTable.js +1 -1
  223. package/dist/Editor/theme/ThemeList.js +173 -50
  224. package/dist/Editor/utils/SlateUtilityFunctions.js +54 -186
  225. package/dist/Editor/utils/brains.js +2 -1
  226. package/dist/Editor/utils/button.js +17 -1
  227. package/dist/Editor/utils/draftToSlate.js +2 -3
  228. package/dist/Editor/utils/font.js +37 -40
  229. package/dist/Editor/utils/freegrid.js +4 -3
  230. package/dist/Editor/utils/helper.js +21 -92
  231. package/package.json +4 -4
  232. package/dist/Editor/Elements/DataView/Layouts/DataTypes/Components/MultiSelect.js +0 -454
  233. package/dist/Editor/Elements/EmbedScript/styles.js +0 -89
  234. package/dist/Editor/Toolbar/PopupTool/ThemeTextFormat.js +0 -439
  235. package/dist/Editor/assets/svg/BackIcon.js +0 -18
  236. package/dist/Editor/assets/svg/ClearAllRounded.js +0 -31
  237. package/dist/Editor/assets/svg/ResetIconNew.js +0 -23
  238. package/dist/Editor/assets/svg/ThemeIcons.js +0 -293
  239. package/dist/Editor/common/CustomColorPicker/index.js +0 -131
  240. package/dist/Editor/common/CustomColorPicker/style.js +0 -53
  241. package/dist/Editor/common/CustomDialog2/index.js +0 -94
  242. package/dist/Editor/common/CustomDialog2/style.js +0 -67
  243. package/dist/Editor/common/CustomSelect.js +0 -43
  244. package/dist/Editor/common/RnD/Theme/MainThemeProvider.js +0 -17
  245. package/dist/Editor/common/RnD/VirtualElement/BoxHeaderAutoAlignment.js +0 -43
  246. package/dist/Editor/common/RnD/VirtualElement/ForceAutoAlignment.js +0 -44
  247. package/dist/Editor/common/RnD/VirtualElement/VirtualTextElement.js +0 -134
  248. package/dist/Editor/common/RnD/VirtualElement/helper.js +0 -382
  249. package/dist/Editor/common/SnackBar/index.js +0 -43
  250. package/dist/Editor/helper/textIndeces.js +0 -58
  251. package/dist/Editor/hooks/useAutoScroll.js +0 -38
  252. package/dist/Editor/hooks/useEditorTheme.js +0 -153
  253. package/dist/Editor/hooks/useThemeValues.js +0 -63
  254. package/dist/Editor/theme/index.js +0 -149
  255. package/dist/Editor/themeSettings/ActiveTheme.js +0 -72
  256. package/dist/Editor/themeSettings/buttons/index.js +0 -290
  257. package/dist/Editor/themeSettings/buttons/style.js +0 -23
  258. package/dist/Editor/themeSettings/colorTheme/index.js +0 -309
  259. package/dist/Editor/themeSettings/colorTheme/style.js +0 -81
  260. package/dist/Editor/themeSettings/fonts/PreviewElement.js +0 -121
  261. package/dist/Editor/themeSettings/fonts/index.js +0 -240
  262. package/dist/Editor/themeSettings/fonts/style.js +0 -62
  263. package/dist/Editor/themeSettings/icons.js +0 -60
  264. package/dist/Editor/themeSettings/index.js +0 -361
  265. package/dist/Editor/themeSettings/style.js +0 -292
  266. package/dist/Editor/themeSettingsAI/icons.js +0 -96
  267. package/dist/Editor/themeSettingsAI/index.js +0 -355
  268. package/dist/Editor/themeSettingsAI/saveTheme.js +0 -202
  269. package/dist/Editor/themeSettingsAI/style.js +0 -324
@@ -19,13 +19,6 @@ import { removeSign } from "./ElementSettings/OtherSettings";
19
19
  import useDragging from "../../hooks/useDragging";
20
20
  import { dragOverOn } from "../../helper/RnD/focusNode";
21
21
  import { focusSelection, clearSelection, clearSelectionOnly } from "../../helper";
22
- // import { reRenderChildNodes } from "./Utils/gridDropItem";
23
- import VirtualTextElement from "./VirtualElement/VirtualTextElement";
24
- import useAutoScroll from "../../hooks/useAutoScroll";
25
- import ForceAutoAlignment from "./VirtualElement/ForceAutoAlignment";
26
- import BoxHeaderAutoAlignment from "./VirtualElement/BoxHeaderAutoAlignment";
27
- import { reRenderChildNodes } from "./Utils/gridDropItem";
28
- import { useFreeGrid } from "../../Elements/FreeGrid/FreeGrid";
29
22
  import { jsx as _jsx } from "react/jsx-runtime";
30
23
  import { jsxs as _jsxs } from "react/jsx-runtime";
31
24
  import { Fragment as _Fragment } from "react/jsx-runtime";
@@ -71,13 +64,7 @@ const RnD = props => {
71
64
  editor,
72
65
  breakpoint = "",
73
66
  handleContextMenuClick = () => {},
74
- itemData = {},
75
- sectionElement,
76
- dataSets,
77
- autoAlign,
78
- setAutoAlign,
79
- isBoxHeader,
80
- customProps
67
+ itemData = {}
81
68
  } = props;
82
69
  const {
83
70
  isSelectedElement,
@@ -119,17 +106,6 @@ const RnD = props => {
119
106
  y: 0
120
107
  });
121
108
  const parentSectionPath = str_path?.split("|").slice(0, 2).join("_");
122
- const {
123
- startAutoScroll,
124
- stopAutoScroll
125
- } = useAutoScroll(10, "slate-wrapper-scroll-container");
126
- const {
127
- isInteracting,
128
- setIsInteracting
129
- } = useFreeGrid();
130
- const {
131
- translation
132
- } = customProps;
133
109
  useEffect(() => {
134
110
  if (ITEM_TYPES.includes(type)) {
135
111
  if (enable === 1) {
@@ -304,7 +280,7 @@ const RnD = props => {
304
280
  const {
305
281
  updated_at
306
282
  } = updated_data || {};
307
- // setSelectedElement({});
283
+ setSelectedElement({});
308
284
  // to maitain absolute
309
285
  rndRef.current.posUpdated = false;
310
286
  // need to retain drag option if section changes
@@ -323,7 +299,6 @@ const RnD = props => {
323
299
  };
324
300
  const onDragStart = e => {
325
301
  e.preventDefault();
326
- setIsInteracting(true);
327
302
  if (e?.target?.dataset?.path?.split(",").join("|") === sp) {
328
303
  const {
329
304
  left,
@@ -372,16 +347,6 @@ const RnD = props => {
372
347
  };
373
348
  const onDrag = e => {
374
349
  e.preventDefault();
375
- const {
376
- clientY
377
- } = e;
378
- if (clientY < 50) {
379
- startAutoScroll("up");
380
- } else if (window.innerHeight - clientY < 50) {
381
- startAutoScroll("down");
382
- } else {
383
- stopAutoScroll();
384
- }
385
350
  const lines = getClosestDraggable(e.clientX, e.clientY, `.freegrid-section_${parentSectionPath} .freegrid-container .freegrid-item.inactive-drag`.replace(/\|/g, "\\|"), ".freegrid-item.active-drag:not(.exclude-virtual)");
386
351
  setAbsPosition({
387
352
  ...absPosition,
@@ -424,8 +389,6 @@ const RnD = props => {
424
389
  const onDragStop = (e, d) => {
425
390
  e.preventDefault();
426
391
  e.stopPropagation();
427
- stopAutoScroll();
428
- setIsInteracting(false);
429
392
  if (dragging?.isDragging === 2 && dragging?.position?.strXY && dragging?.dragOver) {
430
393
  d.x = e.x;
431
394
  d.y = e.y;
@@ -468,7 +431,6 @@ const RnD = props => {
468
431
  };
469
432
  const onResizeStop = (e, direction, ref, d, position) => {
470
433
  e.preventDefault();
471
- setIsInteracting(false);
472
434
  let updatedPosition = {};
473
435
  if (type !== "parent") {
474
436
  // update element position while resizing, (for free grid box and item)
@@ -487,18 +449,13 @@ const RnD = props => {
487
449
  }
488
450
  const updatedSize = {
489
451
  width: delta?.width + d.width,
490
- height: ref.offsetHeight,
452
+ height: delta?.height + d.height,
491
453
  ...updatedPosition
492
454
  };
493
455
  onChange({
494
456
  ...updatedSize
495
457
  });
496
458
  handleResizeEvent("stop");
497
- const parentPath = getParentSectionPath({
498
- ref
499
- }, ".freegrid-container-parent");
500
- const formatParentPath = parentPath?.split("|")?.map(m => parseInt(m));
501
- reRenderChildNodes(editor, formatParentPath);
502
459
  };
503
460
  const onCloseSettings = () => {
504
461
  setSelectedElement({
@@ -557,7 +514,6 @@ const RnD = props => {
557
514
  return {
558
515
  onResizeStart: e => {
559
516
  e.preventDefault();
560
- setIsInteracting(true);
561
517
  },
562
518
  onDragStart: onDragStart,
563
519
  onDrag: onDrag,
@@ -574,7 +530,7 @@ const RnD = props => {
574
530
  return /*#__PURE__*/_jsxs(_Fragment, {
575
531
  children: [/*#__PURE__*/_jsxs(Box, {
576
532
  component: Rnd,
577
- placeholder: translation(ItemTypes[childType]) || translation("Item"),
533
+ placeholder: ItemTypes[childType] || "Item",
578
534
  id: eId || "",
579
535
  ref: c => {
580
536
  positionRef.current = c;
@@ -608,7 +564,6 @@ const RnD = props => {
608
564
  ...DISABLE_RESIZING
609
565
  },
610
566
  ...getEventProps(),
611
- ...(dataSets || {}),
612
567
  children: [/*#__PURE__*/_jsx("div", {
613
568
  id: `opt_ref_${str_path}`,
614
569
  style: {
@@ -631,7 +586,7 @@ const RnD = props => {
631
586
  "data-dragoverid": str_path,
632
587
  "data-dragovertype": type
633
588
  }) : null]
634
- }, eId), !active && rndRef?.current && open && !isInteracting ? /*#__PURE__*/_jsx(ElementOptions, {
589
+ }, eId), !active && rndRef?.current && open ? /*#__PURE__*/_jsx(ElementOptions, {
635
590
  id: `opt_ref_${str_path}`,
636
591
  open: open,
637
592
  anchorEl: rndRef?.current,
@@ -642,9 +597,7 @@ const RnD = props => {
642
597
  optionsProps: optionsProps,
643
598
  selectedAction: currentAction,
644
599
  path: str_path,
645
- theme: theme,
646
- translation: translation,
647
- customProps: customProps
600
+ theme: theme
648
601
  }) : null, /*#__PURE__*/_jsx(ElementSettings, {
649
602
  open: Boolean(currentAction),
650
603
  currentAction: currentAction,
@@ -678,32 +631,11 @@ const RnD = props => {
678
631
  open: openContextMenu,
679
632
  contextMenu: contextMenu,
680
633
  handleClose: handleClose,
681
- theme: theme,
682
- translation: translation
634
+ theme: theme
683
635
  }), type === "parent" && breakpoint === "lg" && !readOnly ? /*#__PURE__*/_jsx(VirtualElement, {
636
+ parentEle: positionRef?.current?.resizableElement?.current,
684
637
  updated_at: updated_at,
685
638
  path: str_path,
686
- editor: editor,
687
- sectionElement: sectionElement,
688
- sectionCls: `.freegrid-section_${path.join("_")}`,
689
- dataSets: dataSets
690
- }) : null, childType === "text" && breakpoint === "lg" && !readOnly && enable ? /*#__PURE__*/_jsx(VirtualTextElement, {
691
- editor: editor,
692
- dataSets: dataSets,
693
- getCurrentEle: getCurrentEle,
694
- path: path
695
- }) : null, type === "parent" && breakpoint === "xs" && !readOnly && autoAlign ? /*#__PURE__*/_jsx(ForceAutoAlignment, {
696
- updated_at: updated_at,
697
- path: str_path,
698
- editor: editor,
699
- sectionElement: sectionElement,
700
- sectionCls: `.freegrid-section_${path.join("_")}`,
701
- dataSets: dataSets,
702
- autoAlign: autoAlign,
703
- setAutoAlign: setAutoAlign
704
- }) : null, isBoxHeader && breakpoint === "lg" ? /*#__PURE__*/_jsx(BoxHeaderAutoAlignment, {
705
- boxCls: `.freegrid-box_${path.join("_")}`,
706
- path: str_path,
707
639
  editor: editor
708
640
  }) : null]
709
641
  });
@@ -19,8 +19,7 @@ const Toolbar = ({
19
19
  readOnly,
20
20
  showTool,
21
21
  onSettings,
22
- isSectionFullWidth,
23
- translation
22
+ isSectionFullWidth
24
23
  }) => {
25
24
  return !readOnly && !showTool ? /*#__PURE__*/_jsx(Box, {
26
25
  component: "div",
@@ -34,7 +33,7 @@ const Toolbar = ({
34
33
  }
35
34
  },
36
35
  children: /*#__PURE__*/_jsx(Tooltip, {
37
- title: translation("Section Settings"),
36
+ title: "Section Settings",
38
37
  children: /*#__PURE__*/_jsx(IconButton, {
39
38
  onClick: onSettings,
40
39
  children: /*#__PURE__*/_jsx(SectionSettingIcon, {})
@@ -52,8 +51,7 @@ const Section = props => {
52
51
  customProps
53
52
  } = props;
54
53
  const {
55
- readOnly,
56
- translation
54
+ readOnly
57
55
  } = customProps;
58
56
  const editor = useSlateStatic();
59
57
  // const [isHovering, setIsHovering] = useState(false);
@@ -178,8 +176,7 @@ const Section = props => {
178
176
  isSectionFullWidth: isSectionFullWidth,
179
177
  readOnly: readOnly,
180
178
  showTool: false,
181
- onSettings: onSettings,
182
- translation: translation
179
+ onSettings: onSettings
183
180
  }), children]
184
181
  }), openSetttings ? /*#__PURE__*/_jsx(SectionPopup, {
185
182
  element: {
@@ -1,7 +1,6 @@
1
1
  import { Select as Core } from "@mui/material";
2
2
  import SelectStyles from "./styles";
3
3
  import { useEditorContext } from "../../hooks/useMouseMove";
4
- import KeyboardArrowDownRoundedIcon from '@mui/icons-material/KeyboardArrowDownRounded';
5
4
  import { jsx as _jsx } from "react/jsx-runtime";
6
5
  function Select(props) {
7
6
  const {
@@ -14,7 +13,6 @@ function Select(props) {
14
13
  const classes = SelectStyles(theme);
15
14
  return /*#__PURE__*/_jsx(Core, {
16
15
  MenuProps: classes.MenuProps,
17
- IconComponent: KeyboardArrowDownRoundedIcon,
18
16
  ...rest,
19
17
  children: children
20
18
  });
@@ -44,60 +44,6 @@ const ELEMENTS_LIST = [{
44
44
  icon: "headingThree"
45
45
  }),
46
46
  onInsert: editor => toggleBlock(editor, "headingThree", false)
47
- }, {
48
- name: "Heading 4",
49
- desc: "",
50
- group: "Text",
51
- type: "headingFour",
52
- icon: /*#__PURE__*/_jsx(Icon, {
53
- icon: "headingFour"
54
- }),
55
- onInsert: editor => toggleBlock(editor, "headingFour", false)
56
- }, {
57
- name: "Heading 5",
58
- desc: "",
59
- group: "Text",
60
- type: "headingFive",
61
- icon: /*#__PURE__*/_jsx(Icon, {
62
- icon: "headingFive"
63
- }),
64
- onInsert: editor => toggleBlock(editor, "headingFive", false)
65
- }, {
66
- name: "Heading 6",
67
- desc: "",
68
- group: "Text",
69
- type: "headingSix",
70
- icon: /*#__PURE__*/_jsx(Icon, {
71
- icon: "headingSix"
72
- }),
73
- onInsert: editor => toggleBlock(editor, "headingSix", false)
74
- }, {
75
- name: "Paragraph 1",
76
- desc: "",
77
- group: "Text",
78
- type: "paragraphOne",
79
- icon: /*#__PURE__*/_jsx(Icon, {
80
- icon: "paragraphOne"
81
- }),
82
- onInsert: editor => toggleBlock(editor, "paragraphOne", false)
83
- }, {
84
- name: "Paragraph 2",
85
- desc: "",
86
- group: "Text",
87
- type: "paragraphTwo",
88
- icon: /*#__PURE__*/_jsx(Icon, {
89
- icon: "paragraphTwo"
90
- }),
91
- onInsert: editor => toggleBlock(editor, "paragraphTwo", false)
92
- }, {
93
- name: "Paragraph 3",
94
- desc: "",
95
- group: "Text",
96
- type: "paragraphThree",
97
- icon: /*#__PURE__*/_jsx(Icon, {
98
- icon: "paragraphThree"
99
- }),
100
- onInsert: editor => toggleBlock(editor, "paragraphThree", false)
101
47
  }, {
102
48
  name: "Quote",
103
49
  desc: "",
@@ -218,10 +164,7 @@ const ELEMENTS_LIST = [{
218
164
  type: "emoji",
219
165
  renderComponent: rest => /*#__PURE__*/_jsx(EmojiButton, {
220
166
  ...rest,
221
- icoBtnType: "cmd",
222
- customProps: {
223
- ...rest
224
- }
167
+ icoBtnType: "cmd"
225
168
  })
226
169
  }, {
227
170
  name: "Brain",
@@ -233,10 +176,7 @@ const ELEMENTS_LIST = [{
233
176
  element: {
234
177
  name: "Brain"
235
178
  },
236
- icoBtnType: "cmd",
237
- customProps: {
238
- ...rest
239
- }
179
+ icoBtnType: "cmd"
240
180
  })
241
181
  }, {
242
182
  name: "Divider",
@@ -359,19 +299,10 @@ const elements = props => {
359
299
  const {
360
300
  search,
361
301
  hideTools,
362
- translation,
363
302
  editor
364
303
  } = props;
365
304
  const nodeType = canOpen(editor);
366
- const translatedElements = ELEMENTS_LIST.map(element => ({
367
- ...element,
368
- name: translation ? translation(element.name) : element.name,
369
- renderComponent: element.renderComponent ? rest => element.renderComponent({
370
- ...rest,
371
- translation
372
- }) : undefined
373
- }));
374
- const filteredElements = translatedElements.filter(f => (hideTools || []).indexOf(f.type) === -1 && (!f?.hideFor || f?.hideFor?.indexOf(nodeType) === -1));
305
+ const filteredElements = ELEMENTS_LIST.filter(f => (hideTools || []).indexOf(f.type) === -1 && (!f?.hideFor || f?.hideFor?.indexOf(nodeType) === -1));
375
306
  return filteredElements.filter(c => c.name.toLowerCase().includes(search?.toLowerCase()));
376
307
  };
377
308
  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,