@flozy/editor 9.5.4 → 9.5.5

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 (254) hide show
  1. package/dist/Editor/ChatEditor.js +29 -20
  2. package/dist/Editor/CommonEditor.js +19 -130
  3. package/dist/Editor/DialogWrapper.js +25 -31
  4. package/dist/Editor/Editor.css +7 -11
  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 +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 +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 +11 -16
  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/UserInputs.js +2 -4
  74. package/dist/Editor/Elements/Form/Workflow/index.js +9 -15
  75. package/dist/Editor/Elements/FreeGrid/FreeGrid.js +23 -67
  76. package/dist/Editor/Elements/FreeGrid/FreeGridBox.js +3 -21
  77. package/dist/Editor/Elements/FreeGrid/FreeGridButton.js +2 -6
  78. package/dist/Editor/Elements/FreeGrid/FreeGridItem.js +4 -34
  79. package/dist/Editor/Elements/FreeGrid/Options/AddElement.js +2 -3
  80. package/dist/Editor/Elements/FreeGrid/Options/More.js +4 -10
  81. package/dist/Editor/Elements/FreeGrid/styles.js +0 -3
  82. package/dist/Editor/Elements/Grid/Grid.js +10 -13
  83. package/dist/Editor/Elements/Grid/GridButton.js +5 -9
  84. package/dist/Editor/Elements/Grid/GridItem.js +8 -14
  85. package/dist/Editor/Elements/Grid/GridItemPopup.js +1 -4
  86. package/dist/Editor/Elements/Grid/GridPopup.js +1 -4
  87. package/dist/Editor/Elements/Grid/SectionPopup.js +1 -4
  88. package/dist/Editor/Elements/Link/Link.js +5 -8
  89. package/dist/Editor/Elements/Link/LinkButton.js +1 -4
  90. package/dist/Editor/Elements/List/CheckList.js +9 -14
  91. package/dist/Editor/Elements/NewLine/NewLineButton.js +2 -6
  92. package/dist/Editor/Elements/PageSettings/PageSettingsButton.js +1 -4
  93. package/dist/Editor/Elements/PageSettings/PageSettingsPopup.js +1 -4
  94. package/dist/Editor/Elements/Search/SearchButton.js +3 -6
  95. package/dist/Editor/Elements/Search/SearchList.js +3 -7
  96. package/dist/Editor/Elements/Signature/SignatureButton.js +2 -6
  97. package/dist/Editor/Elements/Signature/SignatureOptions/TypeSignature.js +2 -6
  98. package/dist/Editor/Elements/Signature/SignatureOptions/UploadSignature.js +1 -4
  99. package/dist/Editor/Elements/Signature/SignaturePopup.js +16 -17
  100. package/dist/Editor/Elements/SimpleText/index.js +4 -5
  101. package/dist/Editor/Elements/SimpleText/style.js +2 -2
  102. package/dist/Editor/Elements/Table/DragButton.js +2 -4
  103. package/dist/Editor/Elements/Table/Table.js +11 -23
  104. package/dist/Editor/Elements/Table/TableCell.js +2 -6
  105. package/dist/Editor/Elements/Table/TablePopup.js +1 -4
  106. package/dist/Editor/Elements/Table/TableSelector.js +6 -10
  107. package/dist/Editor/Elements/Table/TableTool.js +4 -8
  108. package/dist/Editor/Elements/Title/title.js +0 -10
  109. package/dist/Editor/Elements/TopBanner/TopBannerButton.js +1 -4
  110. package/dist/Editor/Elements/Variables/VariableButton.js +1 -10
  111. package/dist/Editor/MiniEditor.js +3 -10
  112. package/dist/Editor/Styles/EditorStyles.js +5 -5
  113. package/dist/Editor/Toolbar/Basic/index.js +1 -2
  114. package/dist/Editor/Toolbar/FormatTools/BlockButton.js +2 -6
  115. package/dist/Editor/Toolbar/FormatTools/Dropdown.js +3 -27
  116. package/dist/Editor/Toolbar/FormatTools/FontFamilyAutocomplete.js +3 -4
  117. package/dist/Editor/Toolbar/FormatTools/MarkButton.js +4 -8
  118. package/dist/Editor/Toolbar/FormatTools/TextSize.js +13 -10
  119. package/dist/Editor/Toolbar/Mini/MiniToolbar.js +3 -5
  120. package/dist/Editor/Toolbar/PopupTool/AddTemplates.js +5 -10
  121. package/dist/Editor/Toolbar/PopupTool/ButtonTemplatesCard.js +4 -10
  122. package/dist/Editor/Toolbar/PopupTool/FullViewCard.js +4 -10
  123. package/dist/Editor/Toolbar/PopupTool/MiniTextFormat/MiniColorPicker.js +3 -9
  124. package/dist/Editor/Toolbar/PopupTool/MiniTextFormat/SelectAlignment.js +35 -42
  125. package/dist/Editor/Toolbar/PopupTool/MiniTextFormat/SelectFontSize.js +13 -6
  126. package/dist/Editor/Toolbar/PopupTool/MiniTextFormat/SelectList.js +51 -58
  127. package/dist/Editor/Toolbar/PopupTool/MiniTextFormat/SelectSuperSubscript.js +22 -29
  128. package/dist/Editor/Toolbar/PopupTool/MiniTextFormat/SelectTypography.js +87 -226
  129. package/dist/Editor/Toolbar/PopupTool/MiniTextFormat/index.js +10 -20
  130. package/dist/Editor/Toolbar/PopupTool/PopperHeader.js +4 -8
  131. package/dist/Editor/Toolbar/PopupTool/PopupToolStyle.js +9 -16
  132. package/dist/Editor/Toolbar/PopupTool/TemplateCard.js +5 -11
  133. package/dist/Editor/Toolbar/PopupTool/TextFormat.js +42 -122
  134. package/dist/Editor/Toolbar/PopupTool/index.js +1 -17
  135. package/dist/Editor/Toolbar/Toolbar.js +10 -20
  136. package/dist/Editor/Toolbar/toolbarGroups.js +6 -48
  137. package/dist/Editor/common/ColorPickerButton.js +14 -39
  138. package/dist/Editor/common/CustomDialog/index.js +10 -8
  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/Styles.js +9 -3
  145. package/dist/Editor/common/LinkSettings/NavComponents.js +10 -14
  146. package/dist/Editor/common/LinkSettings/index.js +14 -20
  147. package/dist/Editor/common/LinkSettings/navOptions.js +1 -1
  148. package/dist/Editor/common/MentionsPopup/index.js +2 -6
  149. package/dist/Editor/common/RnD/ContextMenu/CMenus.js +22 -22
  150. package/dist/Editor/common/RnD/ContextMenu/index.js +2 -3
  151. package/dist/Editor/common/RnD/ElementOptions/index.js +2 -7
  152. package/dist/Editor/common/RnD/ElementSettings/OtherSettings/SaveAsTemplate.js +3 -8
  153. package/dist/Editor/common/RnD/ElementSettings/OtherSettings/Settings.js +3 -7
  154. package/dist/Editor/common/RnD/ElementSettings/Settings/AppHeaderSettings.js +2 -3
  155. package/dist/Editor/common/RnD/ElementSettings/Settings/BoxSettings.js +2 -3
  156. package/dist/Editor/common/RnD/ElementSettings/Settings/ButtonSettings.js +2 -3
  157. package/dist/Editor/common/RnD/ElementSettings/Settings/CodeSettings.js +2 -3
  158. package/dist/Editor/common/RnD/ElementSettings/Settings/FormSettings.js +4 -7
  159. package/dist/Editor/common/RnD/ElementSettings/Settings/ImageSettings.js +2 -3
  160. package/dist/Editor/common/RnD/ElementSettings/Settings/TableSettings.js +2 -3
  161. package/dist/Editor/common/RnD/ElementSettings/Settings/TextSettings.js +2 -6
  162. package/dist/Editor/common/RnD/ElementSettings/Settings/VideoSettings.js +2 -3
  163. package/dist/Editor/common/RnD/OptionsPopup/index.js +3 -4
  164. package/dist/Editor/common/RnD/SwitchViewport/SwitchViewport.js +4 -11
  165. package/dist/Editor/common/RnD/Theme/ViewportStimulator.js +3 -6
  166. package/dist/Editor/common/RnD/Utils/gridDropItem.js +7 -56
  167. package/dist/Editor/common/RnD/Utils/index.js +0 -3
  168. package/dist/Editor/common/RnD/VirtualElement/index.js +103 -187
  169. package/dist/Editor/common/RnD/VirtualElement/styles.js +7 -123
  170. package/dist/Editor/common/RnD/VirtualElement/updateAutoProps.js +3 -5
  171. package/dist/Editor/common/RnD/index.js +7 -59
  172. package/dist/Editor/common/Section/index.js +4 -7
  173. package/dist/Editor/common/Shorthands/elements.js +3 -74
  174. package/dist/Editor/common/StyleBuilder/appHeaderStyle.js +4 -4
  175. package/dist/Editor/common/StyleBuilder/boxStyle.js +2 -2
  176. package/dist/Editor/common/StyleBuilder/buttonStyle.js +4 -6
  177. package/dist/Editor/common/StyleBuilder/dividerStyles.js +2 -2
  178. package/dist/Editor/common/StyleBuilder/embedVideoStyle.js +6 -6
  179. package/dist/Editor/common/StyleBuilder/fieldStyle.js +2 -2
  180. package/dist/Editor/common/StyleBuilder/fieldTypes/alignment.js +9 -13
  181. package/dist/Editor/common/StyleBuilder/fieldTypes/backgroundImage.js +3 -11
  182. package/dist/Editor/common/StyleBuilder/fieldTypes/bannerSpacing.js +5 -19
  183. package/dist/Editor/common/StyleBuilder/fieldTypes/borderRadius.js +10 -22
  184. package/dist/Editor/common/StyleBuilder/fieldTypes/buttonLink.js +3 -6
  185. package/dist/Editor/common/StyleBuilder/fieldTypes/card.js +13 -27
  186. package/dist/Editor/common/StyleBuilder/fieldTypes/color.js +14 -43
  187. package/dist/Editor/common/StyleBuilder/fieldTypes/elementSize.js +6 -10
  188. package/dist/Editor/common/StyleBuilder/fieldTypes/fontSize.js +6 -19
  189. package/dist/Editor/common/StyleBuilder/fieldTypes/gridSize.js +2 -6
  190. package/dist/Editor/common/StyleBuilder/fieldTypes/icons.js +2 -5
  191. package/dist/Editor/common/StyleBuilder/fieldTypes/menusArray.js +6 -9
  192. package/dist/Editor/common/StyleBuilder/fieldTypes/metaDataMapping.js +2 -8
  193. package/dist/Editor/common/StyleBuilder/fieldTypes/saveAsTemplate.js +11 -12
  194. package/dist/Editor/common/StyleBuilder/fieldTypes/selectBox.js +2 -6
  195. package/dist/Editor/common/StyleBuilder/fieldTypes/text.js +4 -8
  196. package/dist/Editor/common/StyleBuilder/fieldTypes/textAlign.js +2 -6
  197. package/dist/Editor/common/StyleBuilder/fieldTypes/textOptions.js +12 -21
  198. package/dist/Editor/common/StyleBuilder/formStyle.js +7 -7
  199. package/dist/Editor/common/StyleBuilder/gridItemStyle.js +6 -6
  200. package/dist/Editor/common/StyleBuilder/gridStyle.js +5 -5
  201. package/dist/Editor/common/StyleBuilder/index.js +5 -8
  202. package/dist/Editor/common/StyleBuilder/pageSettingsStyle.js +7 -5
  203. package/dist/Editor/common/Uploader.js +5 -16
  204. package/dist/Editor/commonStyle.js +57 -68
  205. package/dist/Editor/helper/index.js +2 -2
  206. package/dist/Editor/helper/theme.js +2 -202
  207. package/dist/Editor/hooks/useMouseMove.js +3 -9
  208. package/dist/Editor/plugins/withEmbeds.js +1 -1
  209. package/dist/Editor/plugins/withHTML.js +7 -10
  210. package/dist/Editor/plugins/withLayout.js +2 -3
  211. package/dist/Editor/plugins/withTable.js +1 -1
  212. package/dist/Editor/theme/ThemeList.js +173 -50
  213. package/dist/Editor/utils/SlateUtilityFunctions.js +47 -164
  214. package/dist/Editor/utils/draftToSlate.js +2 -3
  215. package/dist/Editor/utils/embed.js +6 -8
  216. package/dist/Editor/utils/font.js +37 -40
  217. package/dist/Editor/utils/freegrid.js +2 -2
  218. package/dist/Editor/utils/helper.js +19 -90
  219. package/dist/Editor/utils/table.js +6 -9
  220. package/package.json +2 -2
  221. package/dist/Editor/Elements/DataView/Layouts/DataTypes/Components/MultiSelect.js +0 -425
  222. package/dist/Editor/Toolbar/PopupTool/ThemeTextFormat.js +0 -441
  223. package/dist/Editor/assets/svg/ClearAllRounded.js +0 -31
  224. package/dist/Editor/assets/svg/ThemeIcons.js +0 -291
  225. package/dist/Editor/common/CustomColorPicker/index.js +0 -131
  226. package/dist/Editor/common/CustomColorPicker/style.js +0 -53
  227. package/dist/Editor/common/CustomDialog2/index.js +0 -94
  228. package/dist/Editor/common/CustomDialog2/style.js +0 -67
  229. package/dist/Editor/common/CustomSelect.js +0 -33
  230. package/dist/Editor/common/RnD/Theme/MainThemeProvider.js +0 -17
  231. package/dist/Editor/common/RnD/VirtualElement/ForceAutoAlignment.js +0 -117
  232. package/dist/Editor/common/RnD/VirtualElement/VirtualTextElement.js +0 -134
  233. package/dist/Editor/common/RnD/VirtualElement/helper.js +0 -281
  234. package/dist/Editor/common/SnackBar/index.js +0 -43
  235. package/dist/Editor/helper/textIndeces.js +0 -58
  236. package/dist/Editor/hooks/useAutoScroll.js +0 -38
  237. package/dist/Editor/hooks/useEditorTheme.js +0 -153
  238. package/dist/Editor/hooks/useThemeValues.js +0 -63
  239. package/dist/Editor/theme/index.js +0 -147
  240. package/dist/Editor/themeSettings/ActiveTheme.js +0 -72
  241. package/dist/Editor/themeSettings/buttons/index.js +0 -285
  242. package/dist/Editor/themeSettings/buttons/style.js +0 -23
  243. package/dist/Editor/themeSettings/colorTheme/index.js +0 -305
  244. package/dist/Editor/themeSettings/colorTheme/style.js +0 -81
  245. package/dist/Editor/themeSettings/fonts/PreviewElement.js +0 -121
  246. package/dist/Editor/themeSettings/fonts/index.js +0 -222
  247. package/dist/Editor/themeSettings/fonts/style.js +0 -60
  248. package/dist/Editor/themeSettings/icons.js +0 -60
  249. package/dist/Editor/themeSettings/index.js +0 -331
  250. package/dist/Editor/themeSettings/style.js +0 -211
  251. package/dist/Editor/themeSettingsAI/icons.js +0 -96
  252. package/dist/Editor/themeSettingsAI/index.js +0 -355
  253. package/dist/Editor/themeSettingsAI/saveTheme.js +0 -205
  254. package/dist/Editor/themeSettingsAI/style.js +0 -259
@@ -14,8 +14,7 @@ const ContextMenu = props => {
14
14
  open,
15
15
  type,
16
16
  contextMenu,
17
- handleClose,
18
- translation
17
+ handleClose
19
18
  } = props;
20
19
  const {
21
20
  path,
@@ -36,7 +35,7 @@ const ContextMenu = props => {
36
35
  return /*#__PURE__*/_jsx(MenuItem, {
37
36
  className: "cm-menu-item",
38
37
  onClick: handleClose(m),
39
- children: m?.render ? m.render(translation) : translation(m.label)
38
+ children: m?.render ? m.render() : m.label
40
39
  }, `cm_${i}`);
41
40
  })
42
41
  }) : null;
@@ -16,8 +16,7 @@ const ElementOptions = props => {
16
16
  actionsMap,
17
17
  optionsProps,
18
18
  selectedAction,
19
- theme,
20
- customProps
19
+ theme
21
20
  } = props;
22
21
  const classes = useElementOptionsStyle({
23
22
  theme
@@ -29,9 +28,6 @@ const ElementOptions = props => {
29
28
  menuProps
30
29
  } = menu;
31
30
  const isOpen = Boolean(anchorEl) && open;
32
- const {
33
- translation
34
- } = customProps;
35
31
  const handleOptionClick = type => e => {
36
32
  if (actionsMap[type]) {
37
33
  const {
@@ -61,7 +57,7 @@ const ElementOptions = props => {
61
57
  title
62
58
  } = Actions[action] || {};
63
59
  return type ? /*#__PURE__*/_jsx(Tooltip, {
64
- title: translation(title),
60
+ title: title,
65
61
  arrow: true,
66
62
  children: /*#__PURE__*/_jsx(Button, {
67
63
  onClick: handleOptionClick(type),
@@ -89,7 +85,6 @@ const ElementOptions = props => {
89
85
  }), open && MenuComp ? /*#__PURE__*/_jsx(OptionsPopup, {
90
86
  theme: theme,
91
87
  open: openMenu,
92
- translation: translation,
93
88
  ...menu,
94
89
  handleClose: handleClose,
95
90
  children: /*#__PURE__*/_jsx(MenuComp, {
@@ -8,18 +8,14 @@ const SavePopup = props => {
8
8
  const {
9
9
  classes,
10
10
  onClose,
11
- elementProps,
12
- customProps
11
+ elementProps
13
12
  } = props;
14
- const {
15
- translation
16
- } = customProps;
17
13
  return /*#__PURE__*/_jsxs(Dialog, {
18
14
  open: true,
19
15
  fullWidth: true,
20
16
  sx: classes.dialog,
21
17
  children: [/*#__PURE__*/_jsxs(DialogTitle, {
22
- children: [translation("Save As Template"), /*#__PURE__*/_jsx(IconButton, {
18
+ children: ["Save As Template", /*#__PURE__*/_jsx(IconButton, {
23
19
  onClick: onClose,
24
20
  children: /*#__PURE__*/_jsx(CloseIcon, {})
25
21
  })]
@@ -31,8 +27,7 @@ const SavePopup = props => {
31
27
  },
32
28
  saveText: "Save",
33
29
  handleClose: onClose,
34
- elementProps: elementProps,
35
- translation: translation
30
+ elementProps: elementProps
36
31
  })
37
32
  })]
38
33
  });
@@ -19,9 +19,6 @@ const Settings = props => {
19
19
  customProps,
20
20
  theme
21
21
  } = props;
22
- const {
23
- translation
24
- } = customProps;
25
22
  const title = settingsLabel[childType] || "Settings";
26
23
  const Settings = SettingsComponents[childType];
27
24
  return /*#__PURE__*/_jsx(_Fragment, {
@@ -49,10 +46,10 @@ const Settings = props => {
49
46
  children: [/*#__PURE__*/_jsxs(Typography, {
50
47
  variant: "h6",
51
48
  className: "item-wrapper title",
52
- children: [translation(title), /*#__PURE__*/_jsx(Box, {
49
+ children: [title, /*#__PURE__*/_jsx(Box, {
53
50
  component: "div",
54
51
  children: /*#__PURE__*/_jsx(Tooltip, {
55
- title: translation("Close"),
52
+ title: "Close",
56
53
  arrow: true,
57
54
  children: /*#__PURE__*/_jsx(IconButton, {
58
55
  className: "closeBtn",
@@ -68,8 +65,7 @@ const Settings = props => {
68
65
  editor: editor,
69
66
  path: path,
70
67
  customProps: customProps,
71
- theme: theme,
72
- onClose: onClose
68
+ theme: theme
73
69
  }) : null
74
70
  })]
75
71
  })
@@ -8,8 +8,7 @@ const AppHeaderSettings = props => {
8
8
  const {
9
9
  editor,
10
10
  path,
11
- customProps,
12
- onClose
11
+ customProps
13
12
  } = props;
14
13
  const item_path = path?.split("|").map(m => parseInt(m));
15
14
  const element_path = [...item_path, 0];
@@ -28,7 +27,7 @@ const AppHeaderSettings = props => {
28
27
  });
29
28
  };
30
29
  const handleClose = () => {
31
- onClose();
30
+ console.log("close");
32
31
  };
33
32
  return /*#__PURE__*/_jsx(Box, {
34
33
  component: "div",
@@ -8,8 +8,7 @@ const BoxSettings = props => {
8
8
  const {
9
9
  editor,
10
10
  path,
11
- customProps,
12
- onClose
11
+ customProps
13
12
  } = props;
14
13
  const item_path = path?.split("|").map(m => parseInt(m));
15
14
  const element_path = [...item_path];
@@ -28,7 +27,7 @@ const BoxSettings = props => {
28
27
  });
29
28
  };
30
29
  const handleClose = () => {
31
- onClose();
30
+ console.log("close");
32
31
  };
33
32
  return /*#__PURE__*/_jsx(Box, {
34
33
  component: "div",
@@ -8,8 +8,7 @@ const ButtonSettings = props => {
8
8
  const {
9
9
  editor,
10
10
  path,
11
- customProps,
12
- onClose
11
+ customProps
13
12
  } = props;
14
13
  const item_path = path?.split("|").map(m => parseInt(m));
15
14
  const element_path = [...item_path, 0];
@@ -29,7 +28,7 @@ const ButtonSettings = props => {
29
28
  });
30
29
  };
31
30
  const handleClose = () => {
32
- onClose();
31
+ console.log("close");
33
32
  };
34
33
  return /*#__PURE__*/_jsx(Box, {
35
34
  component: "div",
@@ -8,8 +8,7 @@ const CodeSettings = props => {
8
8
  const {
9
9
  editor,
10
10
  path,
11
- customProps,
12
- onClose
11
+ customProps
13
12
  } = props;
14
13
  const item_path = path?.split("|").map(m => parseInt(m));
15
14
  const element_path = [...item_path, 0];
@@ -28,7 +27,7 @@ const CodeSettings = props => {
28
27
  });
29
28
  };
30
29
  const handleClose = () => {
31
- onClose();
30
+ console.log("close");
32
31
  };
33
32
  return /*#__PURE__*/_jsx(Box, {
34
33
  component: "div",
@@ -12,16 +12,14 @@ const FormSettings = props => {
12
12
  const {
13
13
  editor,
14
14
  path,
15
- customProps,
16
- onClose
15
+ customProps
17
16
  } = props;
18
17
  const item_path = path?.split("|").map(m => parseInt(m));
19
18
  const element_path = [...item_path];
20
19
  const element = Node.get(editor, element_path);
21
20
  const styleMaps = formStyle;
22
21
  const {
23
- hideTools,
24
- translation
22
+ hideTools
25
23
  } = customProps || {};
26
24
  const {
27
25
  theme
@@ -57,14 +55,13 @@ const FormSettings = props => {
57
55
  }
58
56
  };
59
57
  const handleClose = () => {
60
- onClose();
58
+ console.log("close");
61
59
  };
62
60
  const muiTheme = createTheme({
63
61
  components: {
64
62
  MuiAccordion: {
65
63
  styleOverrides: {
66
64
  root: {
67
- background: theme?.palette?.editor?.miniToolBarBackground,
68
65
  "& .MuiAccordionSummary-root": {
69
66
  flexDirection: "row-reverse",
70
67
  "& .MuiSvgIcon-root": {
@@ -110,7 +107,7 @@ const FormSettings = props => {
110
107
  fontSize: "14px !important",
111
108
  fontWeight: "400"
112
109
  },
113
- children: translation(m?.tab)
110
+ children: m?.tab
114
111
  })
115
112
  }), /*#__PURE__*/_jsx(AccordionDetails, {
116
113
  sx: {
@@ -8,8 +8,7 @@ const ImageSettings = props => {
8
8
  const {
9
9
  editor,
10
10
  path,
11
- customProps,
12
- onClose
11
+ customProps
13
12
  } = props;
14
13
  const item_path = path?.split("|").map(m => parseInt(m));
15
14
  const element_path = [...item_path, 0];
@@ -28,7 +27,7 @@ const ImageSettings = props => {
28
27
  });
29
28
  };
30
29
  const handleClose = () => {
31
- onClose();
30
+ console.log("close");
32
31
  };
33
32
  return /*#__PURE__*/_jsx(Box, {
34
33
  component: "div",
@@ -9,8 +9,7 @@ const TableSettings = props => {
9
9
  const {
10
10
  editor,
11
11
  path,
12
- customProps,
13
- onClose
12
+ customProps
14
13
  } = props;
15
14
  const item_path = path?.split("|").map(m => parseInt(m));
16
15
  const element_path = [...item_path, 0];
@@ -58,7 +57,7 @@ const TableSettings = props => {
58
57
  }
59
58
  };
60
59
  const handleClose = () => {
61
- onClose();
60
+ console.log("close");
62
61
  };
63
62
  return /*#__PURE__*/_jsx(Box, {
64
63
  component: "div",
@@ -8,9 +8,7 @@ const TextSettings = props => {
8
8
  const {
9
9
  editor,
10
10
  path,
11
- theme,
12
- onClose,
13
- customProps
11
+ theme
14
12
  } = props;
15
13
  const item_path = path.split("|").map(m => parseInt(m));
16
14
  const element_path = [...item_path, 0];
@@ -27,9 +25,7 @@ const TextSettings = props => {
27
25
  }, []);
28
26
  return /*#__PURE__*/_jsx(TextFormat, {
29
27
  classes: classes,
30
- editor: editor,
31
- customProps: customProps,
32
- closeMainPopup: onClose
28
+ editor: editor
33
29
  });
34
30
  };
35
31
  export default TextSettings;
@@ -8,8 +8,7 @@ const VideoSettings = props => {
8
8
  const {
9
9
  editor,
10
10
  path,
11
- customProps,
12
- onClose
11
+ customProps
13
12
  } = props;
14
13
  const item_path = path?.split("|").map(m => parseInt(m));
15
14
  const element_path = [...item_path, 0];
@@ -29,7 +28,7 @@ const VideoSettings = props => {
29
28
  });
30
29
  };
31
30
  const handleClose = () => {
32
- onClose();
31
+ console.log("close");
33
32
  };
34
33
  return /*#__PURE__*/_jsx(Box, {
35
34
  component: "div",
@@ -17,8 +17,7 @@ const OptionsPopup = props => {
17
17
  open,
18
18
  anchorEl,
19
19
  placement,
20
- handleClose,
21
- translation
20
+ handleClose
22
21
  } = props;
23
22
  return anchorEl ? /*#__PURE__*/_jsx(Popper, {
24
23
  sx: classes.root,
@@ -31,10 +30,10 @@ const OptionsPopup = props => {
31
30
  children: [/*#__PURE__*/_jsxs(Typography, {
32
31
  variant: "div",
33
32
  className: "item-wrapper title",
34
- children: [translation(title), /*#__PURE__*/_jsx(Box, {
33
+ children: [title, /*#__PURE__*/_jsx(Box, {
35
34
  component: "div",
36
35
  children: /*#__PURE__*/_jsx(Tooltip, {
37
- title: translation("Close"),
36
+ title: "Close",
38
37
  arrow: true,
39
38
  children: /*#__PURE__*/_jsx(IconButton, {
40
39
  onClick: handleClose,
@@ -9,26 +9,19 @@ import { jsxs as _jsxs } from "react/jsx-runtime";
9
9
  const SwitchViewport = props => {
10
10
  const {
11
11
  breakpoint,
12
- onChange,
13
- translation,
14
- show
12
+ onChange
15
13
  } = props;
16
14
  const classes = useSwitchViewport();
17
15
  const {
18
- setSelectedElement,
19
16
  setActiveBreakPoint
20
17
  } = useEditorContext();
21
18
  useEffect(() => {
22
- // to reset selection on viewport changes - FS-6589
23
- setSelectedElement({});
19
+ console.log(breakpoint);
24
20
  }, [breakpoint]);
25
21
  return /*#__PURE__*/_jsxs(Box, {
26
22
  sx: classes.root,
27
- style: {
28
- display: show ? "block" : "none"
29
- },
30
23
  children: [/*#__PURE__*/_jsx(Tooltip, {
31
- title: translation("Desktop View"),
24
+ title: "Desktop View",
32
25
  children: /*#__PURE__*/_jsx(IconButton, {
33
26
  className: `${!breakpoint || breakpoint === "lg" ? "active" : ""}`,
34
27
  onClick: () => {
@@ -38,7 +31,7 @@ const SwitchViewport = props => {
38
31
  children: /*#__PURE__*/_jsx(PersonalVideoIcon, {})
39
32
  })
40
33
  }), /*#__PURE__*/_jsx(Tooltip, {
41
- title: translation("Mobile View"),
34
+ title: "Mobile View",
42
35
  children: /*#__PURE__*/_jsx(IconButton, {
43
36
  className: `${breakpoint === "xs" ? "active" : ""}`,
44
37
  onClick: () => {
@@ -1,7 +1,6 @@
1
1
  import React from "react";
2
- import { useTheme, createTheme } from "@mui/material";
2
+ import { useTheme, ThemeProvider, createTheme } from "@mui/material";
3
3
  import { isStimulator, STIMULATOR_MOCK } from "../../../hooks/useBreakpoints";
4
- import MainThemeProvider from "./MainThemeProvider";
5
4
  import { jsx as _jsx } from "react/jsx-runtime";
6
5
  const isPdf = () => {
7
6
  try {
@@ -70,14 +69,12 @@ const extendedTheme = prevTheme => createTheme({
70
69
  } : getBreakPoints(prevTheme)
71
70
  });
72
71
  const ViewportStimulator = ({
73
- children,
74
- selectedTheme
72
+ children
75
73
  }) => {
76
74
  const theme = useTheme();
77
75
  const viewportTheme = extendedTheme(theme);
78
- return /*#__PURE__*/_jsx(MainThemeProvider, {
76
+ return /*#__PURE__*/_jsx(ThemeProvider, {
79
77
  theme: viewportTheme,
80
- userSelectedTheme: selectedTheme,
81
78
  children: children
82
79
  });
83
80
  };
@@ -1,7 +1,6 @@
1
- import { Transforms, Node, Path, Editor } from "slate";
1
+ import { Transforms, Node, Path } from "slate";
2
2
  import { ReactEditor } from "slate-react";
3
3
  import { handleNegativeInteger } from "../../../utils/helper";
4
- import { handleBoxAlignment } from "../VirtualElement/helper";
5
4
  export const ROW_HEIGHT = 50;
6
5
 
7
6
  // const MARGIN_OF = {
@@ -22,18 +21,9 @@ export function updateRows() {}
22
21
  export function updateCols() {}
23
22
  const handleMoveNode = (editor, path, newPath, {
24
23
  isEmpty
25
- }, autoAlign) => {
24
+ }) => {
26
25
  try {
27
- let replaceNode = Node.get(editor, path);
28
- if (autoAlign) {
29
- // reset node for auto alignment in mobile
30
- replaceNode = {
31
- ...replaceNode,
32
- gridArea_xs: null,
33
- xs_updatedOn: null,
34
- marginTop_xs: null
35
- };
36
- }
26
+ const replaceNode = Node.get(editor, path);
37
27
  if (isEmpty) {
38
28
  const toPath = [...newPath, 0];
39
29
  Transforms.insertNodes(editor, [{
@@ -67,10 +57,9 @@ const handleMoveNode = (editor, path, newPath, {
67
57
  * This method will update prop in child node so it will re-render and update the path
68
58
  * @param {*} path - contains the parent section path
69
59
  */
70
- export const reRenderChildNodes = (editor, path) => {
60
+ const reRenderChildNodes = (editor, path) => {
71
61
  try {
72
62
  const sectionNode = Node.get(editor, path);
73
-
74
63
  // parent node
75
64
  Transforms.setNodes(editor, {
76
65
  updated_at: new Date().getTime()
@@ -138,9 +127,6 @@ function isContainerElement(editor, moveTopath, props, appenBp) {
138
127
  console.log(err);
139
128
  }
140
129
  }
141
- const isInsidePath = (from, moveTo) => {
142
- return Path.isAncestor(from, moveTo);
143
- };
144
130
  export function onDropItem(props, parentClass) {
145
131
  try {
146
132
  const {
@@ -188,17 +174,7 @@ export function onDropItem(props, parentClass) {
188
174
  }, {
189
175
  at: path
190
176
  });
191
- let reRenderSectionPath;
192
- const [sectionData] = Editor.nodes(editor, {
193
- at: moveTo,
194
- match: n => n.type === "freegrid"
195
- });
196
- const [sectionNode, sectionPath] = sectionData || [];
197
- if (needMove && isInsidePath(from, moveTo)) {
198
- reRenderSectionPath = sectionPath;
199
- } else {
200
- reRenderChildNodes(editor, from);
201
- }
177
+ reRenderChildNodes(editor, from);
202
178
 
203
179
  // move the node if section parent changed
204
180
  if (needMove) {
@@ -207,35 +183,10 @@ export function onDropItem(props, parentClass) {
207
183
  if (!isEmpty) {
208
184
  newPath = [...newPath, toSectionNode?.children?.length];
209
185
  }
210
- const moveSectionToSection = from?.length === 2 && moveTo?.length === 2;
211
-
212
- // const autoAlign = breakpoint === "lg" && moveSectionToSection;
213
- const autoAlign = breakpoint === "lg";
214
-
215
- // const boxNode = Node.get(editor, moveTo);
216
-
217
- if (moveTo?.length === 2 && autoAlign) {
218
- // auto align in mobile
219
- Transforms.setNodes(editor, {
220
- xs_updatedOn: null
221
- }, {
222
- at: moveTo
223
- });
224
- } else if (autoAlign) {
225
- Transforms.setNodes(editor, {
226
- autoAlign: true,
227
- xs_updatedOn: new Date().getTime()
228
- }, {
229
- at: moveTo
230
- });
231
- }
232
186
  const rPath = handleMoveNode(editor, path, newPath, {
233
187
  isEmpty
234
- }, autoAlign);
235
- reRenderChildNodes(editor, reRenderSectionPath || moveTo);
236
- if (autoAlign) {
237
- handleBoxAlignment(editor, sectionNode, sectionPath);
238
- }
188
+ });
189
+ reRenderChildNodes(editor, moveTo);
239
190
  return {
240
191
  updated_at: rPath
241
192
  };
@@ -293,7 +293,4 @@ export function getAbsolutePositionY(currentEle) {
293
293
  gridArea,
294
294
  marginTop
295
295
  };
296
- }
297
- export function getPathFromElement(element) {
298
- return element?.dataset.path?.split("|").map(m => parseInt(m));
299
296
  }