@flozy/editor 9.8.1 → 9.8.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 (255) hide show
  1. package/dist/Editor/ChatEditor.js +19 -26
  2. package/dist/Editor/CommonEditor.js +25 -139
  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 +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 +30 -43
  19. package/dist/Editor/Elements/Carousel/Carousel.js +4 -5
  20. package/dist/Editor/Elements/Carousel/CarouselButton.js +2 -6
  21. package/dist/Editor/Elements/Carousel/CarouselItem.js +2 -3
  22. package/dist/Editor/Elements/ChipText/ChipTextPopup.js +1 -4
  23. package/dist/Editor/Elements/CodeToText/CodeToText.js +4 -5
  24. package/dist/Editor/Elements/CodeToText/HtmlContextMenu.js +2 -6
  25. package/dist/Editor/Elements/Color Picker/ColorButtons.js +14 -60
  26. package/dist/Editor/Elements/Color Picker/ColorPicker.css +1 -25
  27. package/dist/Editor/Elements/Color Picker/ColorPicker.js +7 -10
  28. package/dist/Editor/Elements/Color Picker/Styles.js +13 -15
  29. package/dist/Editor/Elements/Colorbox/ColorboxButton.js +2 -6
  30. package/dist/Editor/Elements/DataView/DataView.js +2 -5
  31. package/dist/Editor/Elements/DataView/DataViewButton.js +2 -6
  32. package/dist/Editor/Elements/DataView/Layouts/ColumnView.js +2 -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 +6 -9
  58. package/dist/Editor/Elements/EmbedScript/Code.js +4 -7
  59. package/dist/Editor/Elements/EmbedScript/EmbedScript.js +2 -6
  60. package/dist/Editor/Elements/EmbedScript/EmbedScriptPopup.js +5 -8
  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 +9 -12
  64. package/dist/Editor/Elements/Form/FormButton.js +2 -6
  65. package/dist/Editor/Elements/Form/FormPopup.js +2 -3
  66. package/dist/Editor/Elements/Form/Workflow/FormWorkflow.js +12 -18
  67. package/dist/Editor/Elements/Form/Workflow/ListWorkflow.js +8 -13
  68. package/dist/Editor/Elements/Form/Workflow/MoreOptions.js +2 -3
  69. package/dist/Editor/Elements/Form/Workflow/Styles.js +22 -24
  70. package/dist/Editor/Elements/Form/Workflow/UserInputs.js +2 -4
  71. package/dist/Editor/Elements/Form/Workflow/index.js +9 -15
  72. package/dist/Editor/Elements/FreeGrid/FreeGrid.js +23 -67
  73. package/dist/Editor/Elements/FreeGrid/FreeGridBox.js +6 -31
  74. package/dist/Editor/Elements/FreeGrid/FreeGridButton.js +2 -6
  75. package/dist/Editor/Elements/FreeGrid/FreeGridItem.js +6 -54
  76. package/dist/Editor/Elements/FreeGrid/Options/AddElement.js +2 -3
  77. package/dist/Editor/Elements/FreeGrid/Options/More.js +4 -10
  78. package/dist/Editor/Elements/FreeGrid/styles.js +0 -3
  79. package/dist/Editor/Elements/Grid/Grid.js +10 -13
  80. package/dist/Editor/Elements/Grid/GridButton.js +5 -9
  81. package/dist/Editor/Elements/Grid/GridItem.js +8 -14
  82. package/dist/Editor/Elements/Grid/GridItemPopup.js +1 -4
  83. package/dist/Editor/Elements/Grid/GridPopup.js +1 -4
  84. package/dist/Editor/Elements/Grid/SectionPopup.js +1 -4
  85. package/dist/Editor/Elements/Link/Link.js +5 -8
  86. package/dist/Editor/Elements/Link/LinkButton.js +1 -4
  87. package/dist/Editor/Elements/List/CheckList.js +9 -14
  88. package/dist/Editor/Elements/NewLine/NewLineButton.js +2 -6
  89. package/dist/Editor/Elements/PageSettings/PageSettingsButton.js +1 -4
  90. package/dist/Editor/Elements/PageSettings/PageSettingsPopup.js +1 -4
  91. package/dist/Editor/Elements/Search/SearchButton.js +4 -7
  92. package/dist/Editor/Elements/Search/SearchList.js +5 -10
  93. package/dist/Editor/Elements/Signature/SignatureButton.js +2 -6
  94. package/dist/Editor/Elements/Signature/SignatureOptions/DrawSignature.js +8 -2
  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 +12 -24
  102. package/dist/Editor/Elements/Table/TablePopup.js +1 -4
  103. package/dist/Editor/Elements/Table/TableSelector.js +6 -10
  104. package/dist/Editor/Elements/Table/TableTool.js +4 -8
  105. package/dist/Editor/Elements/Title/title.js +8 -9
  106. package/dist/Editor/Elements/TopBanner/TopBannerButton.js +1 -4
  107. package/dist/Editor/Elements/Variables/VariableButton.js +1 -10
  108. package/dist/Editor/MiniEditor.js +3 -10
  109. package/dist/Editor/Styles/EditorStyles.js +5 -5
  110. package/dist/Editor/Toolbar/Basic/index.js +1 -2
  111. package/dist/Editor/Toolbar/FormatTools/BlockButton.js +2 -6
  112. package/dist/Editor/Toolbar/FormatTools/Dropdown.js +3 -27
  113. package/dist/Editor/Toolbar/FormatTools/FontFamilyAutocomplete.js +3 -4
  114. package/dist/Editor/Toolbar/FormatTools/MarkButton.js +4 -8
  115. package/dist/Editor/Toolbar/FormatTools/TextSize.js +13 -10
  116. package/dist/Editor/Toolbar/Mini/MiniToolbar.js +5 -17
  117. package/dist/Editor/Toolbar/PopupTool/AddTemplates.js +5 -10
  118. package/dist/Editor/Toolbar/PopupTool/ButtonTemplatesCard.js +4 -10
  119. package/dist/Editor/Toolbar/PopupTool/FullViewCard.js +4 -10
  120. package/dist/Editor/Toolbar/PopupTool/MiniTextFormat/MiniColorPicker.js +3 -9
  121. package/dist/Editor/Toolbar/PopupTool/MiniTextFormat/SelectAlignment.js +35 -42
  122. package/dist/Editor/Toolbar/PopupTool/MiniTextFormat/SelectFontSize.js +13 -6
  123. package/dist/Editor/Toolbar/PopupTool/MiniTextFormat/SelectList.js +51 -58
  124. package/dist/Editor/Toolbar/PopupTool/MiniTextFormat/SelectSuperSubscript.js +22 -29
  125. package/dist/Editor/Toolbar/PopupTool/MiniTextFormat/SelectTypography.js +87 -226
  126. package/dist/Editor/Toolbar/PopupTool/MiniTextFormat/index.js +10 -20
  127. package/dist/Editor/Toolbar/PopupTool/PopperHeader.js +5 -10
  128. package/dist/Editor/Toolbar/PopupTool/PopupToolStyle.js +11 -71
  129. package/dist/Editor/Toolbar/PopupTool/TemplateCard.js +5 -11
  130. package/dist/Editor/Toolbar/PopupTool/TextFormat.js +42 -122
  131. package/dist/Editor/Toolbar/PopupTool/index.js +2 -18
  132. package/dist/Editor/Toolbar/Toolbar.js +10 -20
  133. package/dist/Editor/Toolbar/toolbarGroups.js +6 -48
  134. package/dist/Editor/common/ColorPickerButton.js +14 -39
  135. package/dist/Editor/common/CustomDialog/index.js +10 -8
  136. package/dist/Editor/common/DnD/DragHandleButton.js +1 -1
  137. package/dist/Editor/common/FontLoader/FontLoader.js +0 -3
  138. package/dist/Editor/common/Icon.js +1 -31
  139. package/dist/Editor/common/ImageSelector/ImageSelector.js +8 -10
  140. package/dist/Editor/common/ImageSelector/Options/AddLink.js +4 -6
  141. package/dist/Editor/common/ImageSelector/Styles.js +9 -3
  142. package/dist/Editor/common/LinkSettings/NavComponents.js +10 -14
  143. package/dist/Editor/common/LinkSettings/index.js +14 -20
  144. package/dist/Editor/common/LinkSettings/navOptions.js +1 -1
  145. package/dist/Editor/common/MUIIcon/index.js +3 -0
  146. package/dist/Editor/common/MentionsPopup/index.js +2 -6
  147. package/dist/Editor/common/RnD/ContextMenu/CMenus.js +22 -46
  148. package/dist/Editor/common/RnD/ContextMenu/index.js +2 -3
  149. package/dist/Editor/common/RnD/ElementOptions/index.js +2 -7
  150. package/dist/Editor/common/RnD/ElementSettings/OtherSettings/SaveAsTemplate.js +3 -8
  151. package/dist/Editor/common/RnD/ElementSettings/OtherSettings/Settings.js +3 -7
  152. package/dist/Editor/common/RnD/ElementSettings/Settings/AppHeaderSettings.js +2 -3
  153. package/dist/Editor/common/RnD/ElementSettings/Settings/BoxSettings.js +2 -3
  154. package/dist/Editor/common/RnD/ElementSettings/Settings/ButtonSettings.js +2 -3
  155. package/dist/Editor/common/RnD/ElementSettings/Settings/CodeSettings.js +2 -3
  156. package/dist/Editor/common/RnD/ElementSettings/Settings/FormSettings.js +4 -7
  157. package/dist/Editor/common/RnD/ElementSettings/Settings/ImageSettings.js +2 -3
  158. package/dist/Editor/common/RnD/ElementSettings/Settings/TableSettings.js +2 -3
  159. package/dist/Editor/common/RnD/ElementSettings/Settings/TextSettings.js +2 -6
  160. package/dist/Editor/common/RnD/ElementSettings/Settings/VideoSettings.js +2 -3
  161. package/dist/Editor/common/RnD/OptionsPopup/index.js +3 -4
  162. package/dist/Editor/common/RnD/ShadowElement.js +1 -2
  163. package/dist/Editor/common/RnD/SwitchViewport/SwitchViewport.js +4 -11
  164. package/dist/Editor/common/RnD/Theme/ViewportStimulator.js +3 -6
  165. package/dist/Editor/common/RnD/Utils/gridDropItem.js +8 -55
  166. package/dist/Editor/common/RnD/Utils/index.js +0 -3
  167. package/dist/Editor/common/RnD/VirtualElement/index.js +103 -187
  168. package/dist/Editor/common/RnD/VirtualElement/styles.js +7 -155
  169. package/dist/Editor/common/RnD/VirtualElement/updateAutoProps.js +3 -5
  170. package/dist/Editor/common/RnD/index.js +13 -69
  171. package/dist/Editor/common/Section/index.js +4 -7
  172. package/dist/Editor/common/Shorthands/elements.js +3 -74
  173. package/dist/Editor/common/StyleBuilder/appHeaderStyle.js +4 -4
  174. package/dist/Editor/common/StyleBuilder/boxStyle.js +2 -2
  175. package/dist/Editor/common/StyleBuilder/buttonStyle.js +4 -6
  176. package/dist/Editor/common/StyleBuilder/dividerStyles.js +2 -2
  177. package/dist/Editor/common/StyleBuilder/embedVideoStyle.js +6 -6
  178. package/dist/Editor/common/StyleBuilder/fieldStyle.js +2 -2
  179. package/dist/Editor/common/StyleBuilder/fieldTypes/alignment.js +9 -13
  180. package/dist/Editor/common/StyleBuilder/fieldTypes/backgroundImage.js +3 -11
  181. package/dist/Editor/common/StyleBuilder/fieldTypes/bannerSpacing.js +5 -19
  182. package/dist/Editor/common/StyleBuilder/fieldTypes/borderRadius.js +10 -22
  183. package/dist/Editor/common/StyleBuilder/fieldTypes/buttonLink.js +3 -6
  184. package/dist/Editor/common/StyleBuilder/fieldTypes/card.js +13 -27
  185. package/dist/Editor/common/StyleBuilder/fieldTypes/color.js +14 -43
  186. package/dist/Editor/common/StyleBuilder/fieldTypes/elementSize.js +6 -10
  187. package/dist/Editor/common/StyleBuilder/fieldTypes/fontSize.js +6 -19
  188. package/dist/Editor/common/StyleBuilder/fieldTypes/gridSize.js +2 -6
  189. package/dist/Editor/common/StyleBuilder/fieldTypes/icons.js +2 -5
  190. package/dist/Editor/common/StyleBuilder/fieldTypes/menusArray.js +6 -9
  191. package/dist/Editor/common/StyleBuilder/fieldTypes/metaDataMapping.js +2 -8
  192. package/dist/Editor/common/StyleBuilder/fieldTypes/saveAsTemplate.js +11 -12
  193. package/dist/Editor/common/StyleBuilder/fieldTypes/selectBox.js +2 -6
  194. package/dist/Editor/common/StyleBuilder/fieldTypes/text.js +4 -8
  195. package/dist/Editor/common/StyleBuilder/fieldTypes/textAlign.js +2 -6
  196. package/dist/Editor/common/StyleBuilder/fieldTypes/textOptions.js +12 -21
  197. package/dist/Editor/common/StyleBuilder/formStyle.js +7 -7
  198. package/dist/Editor/common/StyleBuilder/gridItemStyle.js +6 -6
  199. package/dist/Editor/common/StyleBuilder/gridStyle.js +5 -5
  200. package/dist/Editor/common/StyleBuilder/index.js +5 -8
  201. package/dist/Editor/common/StyleBuilder/pageSettingsStyle.js +7 -5
  202. package/dist/Editor/common/SwipeableDrawer/index.js +1 -1
  203. package/dist/Editor/common/Uploader.js +5 -16
  204. package/dist/Editor/commonStyle.js +57 -68
  205. package/dist/Editor/helper/index.js +3 -27
  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 +9 -11
  210. package/dist/Editor/plugins/withLayout.js +2 -3
  211. package/dist/Editor/plugins/withLinks.js +0 -10
  212. package/dist/Editor/plugins/withTable.js +1 -1
  213. package/dist/Editor/theme/ThemeList.js +173 -50
  214. package/dist/Editor/utils/SlateUtilityFunctions.js +50 -178
  215. package/dist/Editor/utils/draftToSlate.js +2 -3
  216. package/dist/Editor/utils/font.js +37 -40
  217. package/dist/Editor/utils/freegrid.js +3 -3
  218. package/dist/Editor/utils/helper.js +21 -92
  219. package/package.json +4 -4
  220. package/dist/Editor/Elements/DataView/Layouts/DataTypes/Components/MultiSelect.js +0 -444
  221. package/dist/Editor/Toolbar/PopupTool/ThemeTextFormat.js +0 -436
  222. package/dist/Editor/assets/svg/ClearAllRounded.js +0 -31
  223. package/dist/Editor/assets/svg/ResetIconNew.js +0 -23
  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 -43
  230. package/dist/Editor/common/RnD/Theme/MainThemeProvider.js +0 -17
  231. package/dist/Editor/common/RnD/VirtualElement/BoxHeaderAutoAlignment.js +0 -43
  232. package/dist/Editor/common/RnD/VirtualElement/ForceAutoAlignment.js +0 -44
  233. package/dist/Editor/common/RnD/VirtualElement/VirtualTextElement.js +0 -134
  234. package/dist/Editor/common/RnD/VirtualElement/helper.js +0 -381
  235. package/dist/Editor/common/SnackBar/index.js +0 -43
  236. package/dist/Editor/helper/textIndeces.js +0 -58
  237. package/dist/Editor/hooks/useAutoScroll.js +0 -38
  238. package/dist/Editor/hooks/useEditorTheme.js +0 -153
  239. package/dist/Editor/hooks/useThemeValues.js +0 -63
  240. package/dist/Editor/theme/index.js +0 -149
  241. package/dist/Editor/themeSettings/ActiveTheme.js +0 -72
  242. package/dist/Editor/themeSettings/buttons/index.js +0 -290
  243. package/dist/Editor/themeSettings/buttons/style.js +0 -23
  244. package/dist/Editor/themeSettings/colorTheme/index.js +0 -310
  245. package/dist/Editor/themeSettings/colorTheme/style.js +0 -81
  246. package/dist/Editor/themeSettings/fonts/PreviewElement.js +0 -121
  247. package/dist/Editor/themeSettings/fonts/index.js +0 -240
  248. package/dist/Editor/themeSettings/fonts/style.js +0 -61
  249. package/dist/Editor/themeSettings/icons.js +0 -60
  250. package/dist/Editor/themeSettings/index.js +0 -351
  251. package/dist/Editor/themeSettings/style.js +0 -220
  252. package/dist/Editor/themeSettingsAI/icons.js +0 -96
  253. package/dist/Editor/themeSettingsAI/index.js +0 -355
  254. package/dist/Editor/themeSettingsAI/saveTheme.js +0 -205
  255. package/dist/Editor/themeSettingsAI/style.js +0 -259
@@ -7,9 +7,9 @@ const CMenus = {
7
7
  name: "bringForward",
8
8
  label: "Move to Front",
9
9
  autoClose: false,
10
- render: translation => {
10
+ render: () => {
11
11
  return /*#__PURE__*/_jsxs(_Fragment, {
12
- children: [translation("Move to Front"), " ", /*#__PURE__*/_jsxs("span", {
12
+ children: ["Move to Front", " ", /*#__PURE__*/_jsxs("span", {
13
13
  className: "shortcut-help-info",
14
14
  children: [/*#__PURE__*/_jsx(CMDIcon, {}), " \u2191"]
15
15
  })]
@@ -19,9 +19,9 @@ const CMenus = {
19
19
  name: "bringBackward",
20
20
  label: "Move to Back",
21
21
  autoClose: false,
22
- render: translation => {
22
+ render: () => {
23
23
  return /*#__PURE__*/_jsxs(_Fragment, {
24
- children: [translation("Move to Back"), " ", /*#__PURE__*/_jsxs("span", {
24
+ children: ["Move to Back", " ", /*#__PURE__*/_jsxs("span", {
25
25
  className: "shortcut-help-info",
26
26
  children: [/*#__PURE__*/_jsx(CMDIcon, {}), " \u2193"]
27
27
  })]
@@ -30,9 +30,9 @@ const CMenus = {
30
30
  }, {
31
31
  name: "cut",
32
32
  label: "Cut",
33
- render: translation => {
33
+ render: () => {
34
34
  return /*#__PURE__*/_jsxs(_Fragment, {
35
- children: [translation("Cut"), " ", /*#__PURE__*/_jsxs("span", {
35
+ children: ["Cut", " ", /*#__PURE__*/_jsxs("span", {
36
36
  className: "shortcut-help-info",
37
37
  children: [/*#__PURE__*/_jsx(CMDIcon, {}), " X"]
38
38
  })]
@@ -41,9 +41,9 @@ const CMenus = {
41
41
  }, {
42
42
  name: "copy",
43
43
  label: "Copy",
44
- render: translation => {
44
+ render: () => {
45
45
  return /*#__PURE__*/_jsxs(_Fragment, {
46
- children: [translation("Copy"), " ", /*#__PURE__*/_jsxs("span", {
46
+ children: ["Copy", " ", /*#__PURE__*/_jsxs("span", {
47
47
  className: "shortcut-help-info",
48
48
  children: [/*#__PURE__*/_jsx(CMDIcon, {}), " C"]
49
49
  })]
@@ -52,9 +52,9 @@ const CMenus = {
52
52
  }, {
53
53
  name: "paste",
54
54
  label: "Paste",
55
- render: translation => {
55
+ render: () => {
56
56
  return /*#__PURE__*/_jsxs(_Fragment, {
57
- children: [translation("Paste"), " ", /*#__PURE__*/_jsxs("span", {
57
+ children: ["Paste", " ", /*#__PURE__*/_jsxs("span", {
58
58
  className: "shortcut-help-info",
59
59
  children: [/*#__PURE__*/_jsx(CMDIcon, {}), " V"]
60
60
  })]
@@ -67,9 +67,9 @@ const CMenus = {
67
67
  parent: [{
68
68
  name: "cut",
69
69
  label: "Cut",
70
- render: translation => {
70
+ render: () => {
71
71
  return /*#__PURE__*/_jsxs(_Fragment, {
72
- children: [translation("Cut Section"), " ", /*#__PURE__*/_jsxs("span", {
72
+ children: ["Cut Section", " ", /*#__PURE__*/_jsxs("span", {
73
73
  className: "shortcut-help-info",
74
74
  children: [/*#__PURE__*/_jsx(CMDIcon, {}), " X"]
75
75
  })]
@@ -78,9 +78,9 @@ const CMenus = {
78
78
  }, {
79
79
  name: "copy",
80
80
  label: "Copy",
81
- render: translation => {
81
+ render: () => {
82
82
  return /*#__PURE__*/_jsxs(_Fragment, {
83
- children: [translation("Copy Section"), " ", /*#__PURE__*/_jsxs("span", {
83
+ children: ["Copy Section", " ", /*#__PURE__*/_jsxs("span", {
84
84
  className: "shortcut-help-info",
85
85
  children: [/*#__PURE__*/_jsx(CMDIcon, {}), " C"]
86
86
  })]
@@ -89,9 +89,9 @@ const CMenus = {
89
89
  }, {
90
90
  name: "paste",
91
91
  label: "Paste",
92
- render: translation => {
92
+ render: () => {
93
93
  return /*#__PURE__*/_jsxs(_Fragment, {
94
- children: [translation("Paste Section"), " ", /*#__PURE__*/_jsxs("span", {
94
+ children: ["Paste Section", " ", /*#__PURE__*/_jsxs("span", {
95
95
  className: "shortcut-help-info",
96
96
  children: [/*#__PURE__*/_jsx(CMDIcon, {}), " V"]
97
97
  })]
@@ -99,35 +99,11 @@ const CMenus = {
99
99
  }
100
100
  }],
101
101
  "parent-container": [{
102
- name: "bringForward",
103
- label: "Move to Front",
104
- autoClose: false,
105
- render: () => {
106
- return /*#__PURE__*/_jsxs(_Fragment, {
107
- children: ["Move to Front", " ", /*#__PURE__*/_jsxs("span", {
108
- className: "shortcut-help-info",
109
- children: [/*#__PURE__*/_jsx(CMDIcon, {}), " \u2191"]
110
- })]
111
- });
112
- }
113
- }, {
114
- name: "bringBackward",
115
- label: "Move to Back",
116
- autoClose: false,
117
- render: () => {
118
- return /*#__PURE__*/_jsxs(_Fragment, {
119
- children: ["Move to Back", " ", /*#__PURE__*/_jsxs("span", {
120
- className: "shortcut-help-info",
121
- children: [/*#__PURE__*/_jsx(CMDIcon, {}), " \u2193"]
122
- })]
123
- });
124
- }
125
- }, {
126
102
  name: "cut",
127
103
  label: "Cut",
128
- render: translation => {
104
+ render: () => {
129
105
  return /*#__PURE__*/_jsxs(_Fragment, {
130
- children: [translation("Cut"), " ", /*#__PURE__*/_jsxs("span", {
106
+ children: ["Cut", " ", /*#__PURE__*/_jsxs("span", {
131
107
  className: "shortcut-help-info",
132
108
  children: [/*#__PURE__*/_jsx(CMDIcon, {}), " X"]
133
109
  })]
@@ -136,9 +112,9 @@ const CMenus = {
136
112
  }, {
137
113
  name: "copy",
138
114
  label: "Copy",
139
- render: translation => {
115
+ render: () => {
140
116
  return /*#__PURE__*/_jsxs(_Fragment, {
141
- children: [translation("Copy"), " ", /*#__PURE__*/_jsxs("span", {
117
+ children: ["Copy", " ", /*#__PURE__*/_jsxs("span", {
142
118
  className: "shortcut-help-info",
143
119
  children: [/*#__PURE__*/_jsx(CMDIcon, {}), " C"]
144
120
  })]
@@ -147,9 +123,9 @@ const CMenus = {
147
123
  }, {
148
124
  name: "paste",
149
125
  label: "Paste",
150
- render: translation => {
126
+ render: () => {
151
127
  return /*#__PURE__*/_jsxs(_Fragment, {
152
- children: [translation("Paste"), " ", /*#__PURE__*/_jsxs("span", {
128
+ children: ["Paste", " ", /*#__PURE__*/_jsxs("span", {
153
129
  className: "shortcut-help-info",
154
130
  children: [/*#__PURE__*/_jsx(CMDIcon, {}), " V"]
155
131
  })]
@@ -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,
@@ -28,8 +28,7 @@ const ShadowElement = props => {
28
28
  });
29
29
  return type === "child" && enable === 1 ? /*#__PURE__*/_jsx(Box, {
30
30
  component: "div",
31
- sx: classes.root,
32
- className: "shadow-element"
31
+ sx: classes.root
33
32
  }) : null;
34
33
  };
35
34
  export default ShadowElement;
@@ -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, useMediaQuery } from "@mui/material";
2
+ import { useTheme, ThemeProvider, createTheme, useMediaQuery } from "@mui/material";
3
3
  import { isStimulator, STIMULATOR_MOCK } from "../../../hooks/useBreakpoints";
4
- import MainThemeProvider from "./MainThemeProvider";
5
4
 
6
5
  // Custom breakpoints functions
7
6
  import { jsx as _jsx } from "react/jsx-runtime";
@@ -60,15 +59,13 @@ const extendedTheme = (prevTheme, isPrintMode) => createTheme({
60
59
  } : getBreakPoints(prevTheme)
61
60
  });
62
61
  const ViewportStimulator = ({
63
- children,
64
- selectedTheme
62
+ children
65
63
  }) => {
66
64
  const theme = useTheme();
67
65
  const isPrintMode = useMediaQuery("print");
68
66
  const viewportTheme = extendedTheme(theme, isPrintMode);
69
- return /*#__PURE__*/_jsx(MainThemeProvider, {
67
+ return /*#__PURE__*/_jsx(ThemeProvider, {
70
68
  theme: viewportTheme,
71
- userSelectedTheme: selectedTheme,
72
69
  children: children
73
70
  });
74
71
  };