@flozy/editor 9.5.3 → 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 +6 -10
  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
@@ -7,14 +7,12 @@ import Icon from "../../../../common/Icon";
7
7
  import CloseIcon from "@mui/icons-material/Close";
8
8
  import { jsx as _jsx } from "react/jsx-runtime";
9
9
  import { jsxs as _jsxs } from "react/jsx-runtime";
10
- const NEED_WRAPS = ["text", "multi-select"];
11
10
  const EditProperty = props => {
12
11
  const {
13
12
  classes,
14
13
  onClose,
15
14
  mode,
16
- onEvent,
17
- translation
15
+ onEvent
18
16
  } = props;
19
17
  const [edit, setEdit] = useState({
20
18
  ...(mode?.edit || {})
@@ -22,8 +20,6 @@ const EditProperty = props => {
22
20
  const editData = useRef({
23
21
  ...edit
24
22
  });
25
- const type = mode?.edit?.type || "";
26
- const needWrap = NEED_WRAPS?.indexOf(type) >= 0;
27
23
  useEffect(() => {
28
24
  return () => {
29
25
  // on un-mount update the label
@@ -92,12 +88,6 @@ const EditProperty = props => {
92
88
  }, false);
93
89
  onEvent("close");
94
90
  break;
95
- case "wrapColumn":
96
- onUpdate({
97
- wrapColumn: !edit?.wrapColumn
98
- });
99
- // onEvent("close");
100
- break;
101
91
  case "Delete":
102
92
  onEvent("deleteProperty", {
103
93
  ...editData?.current
@@ -118,26 +108,26 @@ const EditProperty = props => {
118
108
  size: "small",
119
109
  onClick: onBack,
120
110
  sx: {
121
- paddingLeft: "0px",
122
- "&:hover": {
123
- background: "transparent !important"
111
+ paddingLeft: '0px',
112
+ '&:hover': {
113
+ background: 'transparent !important'
124
114
  },
125
- "& svg": {
126
- width: "14px !important",
127
- height: "14px !important"
115
+ '& svg': {
116
+ width: '14px !important',
117
+ height: '14px !important'
128
118
  }
129
119
  },
130
120
  children: /*#__PURE__*/_jsx(Icon, {
131
- icon: "leftArrow"
121
+ icon: 'leftArrow'
132
122
  })
133
- }), translation("Edit Property")]
123
+ }), "Edit Property"]
134
124
  }), /*#__PURE__*/_jsx(IconButton, {
135
125
  className: "tv-act-ico bg br1",
136
126
  size: "small",
137
127
  onClick: onClose,
138
128
  sx: {
139
- "& svg": {
140
- "& path": {
129
+ '& svg': {
130
+ '& path': {
141
131
  strokeWidth: 0
142
132
  }
143
133
  }
@@ -147,11 +137,11 @@ const EditProperty = props => {
147
137
  }), /*#__PURE__*/_jsxs(Box, {
148
138
  className: "fe-dv-ap-opt-content",
149
139
  children: [/*#__PURE__*/_jsx(FormControlLabel, {
150
- label: translation("Field Name"),
140
+ label: "Field Name",
151
141
  labelPlacement: "top",
152
142
  sx: {
153
- "& .MuiFormControl-root": {
154
- marginBottom: "4px"
143
+ '& .MuiFormControl-root': {
144
+ marginBottom: '4px'
155
145
  }
156
146
  },
157
147
  control: /*#__PURE__*/_jsx(TextField, {
@@ -159,47 +149,33 @@ const EditProperty = props => {
159
149
  value: edit?.label,
160
150
  onChange: onChange("label"),
161
151
  fullWidth: true,
162
- placeholder: translation("Field Name")
152
+ placeholder: "Field Name"
163
153
  })
164
- }), needWrap ? /*#__PURE__*/_jsx(List, {
165
- className: "fe-dv-opt-list",
166
- children: /*#__PURE__*/_jsxs(ListItemButton, {
167
- onClick: onAction("wrapColumn"),
168
- children: [/*#__PURE__*/_jsx(ListItemText, {
169
- children: "Wrap Column"
170
- }), /*#__PURE__*/_jsx(ListItemIcon, {
171
- children: edit?.wrapColumn ? /*#__PURE__*/_jsx(Icon, {
172
- icon: "toggleOn"
173
- }) : /*#__PURE__*/_jsx(Icon, {
174
- icon: "toggleOff"
175
- })
176
- })]
177
- })
178
- }) : null, /*#__PURE__*/_jsx(List, {
154
+ }), /*#__PURE__*/_jsx(List, {
179
155
  className: "fe-dv-opt-list st",
180
156
  children: /*#__PURE__*/_jsxs(ListItemButton, {
181
157
  sx: {
182
- paddingBottom: "12px"
158
+ paddingBottom: '12px'
183
159
  },
184
160
  onClick: onChangeProperty,
185
161
  children: [/*#__PURE__*/_jsx(ListItemText, {
186
- children: translation("Type")
162
+ children: "Type"
187
163
  }), /*#__PURE__*/_jsxs(ListItemIcon, {
188
164
  sx: {
189
- display: "flex",
165
+ display: 'flex',
190
166
  alignItems: "center",
191
167
  gap: 1
192
168
  },
193
169
  children: [/*#__PURE__*/_jsx(Box, {
194
170
  sx: {
195
171
  background: "#64748B1F",
196
- borderRadius: "4px",
197
- display: "flex",
198
- alignItems: "center",
199
- padding: "2px",
200
- "& svg": {
201
- width: "16px",
202
- height: "16px"
172
+ borderRadius: '4px',
173
+ display: 'flex',
174
+ alignItems: 'center',
175
+ padding: '2px',
176
+ '& svg': {
177
+ width: '16px',
178
+ height: '16px'
203
179
  }
204
180
  },
205
181
  children: /*#__PURE__*/_jsx(Icon, {
@@ -207,9 +183,9 @@ const EditProperty = props => {
207
183
  })
208
184
  }), /*#__PURE__*/_jsx("span", {
209
185
  className: "label-tp",
210
- children: translation(TYPE_LABELS[edit?.type])
186
+ children: TYPE_LABELS[edit?.type]
211
187
  }), /*#__PURE__*/_jsx(Icon, {
212
- icon: "rightArrow"
188
+ icon: 'rightArrow'
213
189
  })]
214
190
  })]
215
191
  })
@@ -218,43 +194,41 @@ const EditProperty = props => {
218
194
  }), /*#__PURE__*/_jsx(AddOptions, {
219
195
  edit: edit,
220
196
  onUpdate: onUpdate,
221
- onEvent: onEvent,
222
- translation: translation
197
+ onEvent: onEvent
223
198
  }), /*#__PURE__*/_jsx(FilterProperty, {
224
199
  edit: edit,
225
200
  onUpdate: onUpdate,
226
- onEvent: onEvent,
227
- translation: translation
201
+ onEvent: onEvent
228
202
  }), /*#__PURE__*/_jsxs(List, {
229
203
  className: "fe-dv-opt-list",
230
204
  children: [/*#__PURE__*/_jsxs(ListItemButton, {
231
205
  onClick: onAction("Visibilty"),
232
206
  children: [/*#__PURE__*/_jsx(ListItemIcon, {
233
207
  children: edit?.visible ? /*#__PURE__*/_jsx(Icon, {
234
- icon: "eyeSlash"
208
+ icon: 'eyeSlash'
235
209
  }) : /*#__PURE__*/_jsx(Icon, {
236
- icon: "eyeIcon"
210
+ icon: 'eyeIcon'
237
211
  })
238
- }), /*#__PURE__*/_jsx(ListItemText, {
239
- children: `${edit?.visible ? translation("Hide") : translation("Show")} ${translation("in View")}`
212
+ }), /*#__PURE__*/_jsxs(ListItemText, {
213
+ children: [edit?.visible ? "Hide" : "Show", " in View"]
240
214
  })]
241
215
  }), /*#__PURE__*/_jsxs(ListItemButton, {
242
216
  onClick: onAction("Duplicate"),
243
217
  children: [/*#__PURE__*/_jsx(ListItemIcon, {
244
218
  children: /*#__PURE__*/_jsx(Icon, {
245
- icon: "duplicateIcon"
219
+ icon: 'duplicateIcon'
246
220
  })
247
221
  }), /*#__PURE__*/_jsx(ListItemText, {
248
- children: translation("Duplicate Property")
222
+ children: "Duplicate Property"
249
223
  })]
250
224
  }), /*#__PURE__*/_jsxs(ListItemButton, {
251
225
  onClick: onAction("Delete"),
252
226
  children: [/*#__PURE__*/_jsx(ListItemIcon, {
253
227
  children: /*#__PURE__*/_jsx(Icon, {
254
- icon: "trashIcon"
228
+ icon: 'trashIcon'
255
229
  })
256
230
  }), /*#__PURE__*/_jsx(ListItemText, {
257
- children: translation("Delete Property")
231
+ children: "Delete Property"
258
232
  })]
259
233
  })]
260
234
  })]
@@ -11,8 +11,7 @@ const FilterProperty = props => {
11
11
  } = useDataView();
12
12
  const {
13
13
  edit,
14
- onEvent,
15
- translation
14
+ onEvent
16
15
  } = props;
17
16
  const handleChangeOption = m => () => {
18
17
  onEvent("addSort", {
@@ -34,7 +33,7 @@ const FilterProperty = props => {
34
33
  icon: m?.Icon
35
34
  })
36
35
  }), /*#__PURE__*/_jsx(ListItemText, {
37
- primary: translation(m.label)
36
+ primary: m.label
38
37
  })]
39
38
  }, i);
40
39
  })
@@ -7,8 +7,7 @@ import { jsxs as _jsxs } from "react/jsx-runtime";
7
7
  const PropertyList = props => {
8
8
  const {
9
9
  onSelect,
10
- selected,
11
- translation
10
+ selected
12
11
  } = props;
13
12
  return /*#__PURE__*/_jsx(List, {
14
13
  children: PROPERTY_TYPES?.map(({
@@ -23,7 +22,7 @@ const PropertyList = props => {
23
22
  icon: rest?.Icon
24
23
  })
25
24
  }), /*#__PURE__*/_jsx(ListItemText, {
26
- primary: translation(rest?.label)
25
+ primary: rest?.label
27
26
  })]
28
27
  }, i);
29
28
  })
@@ -29,16 +29,6 @@ const POSITIONS = {
29
29
  vertical: "top",
30
30
  horizontal: "right"
31
31
  }
32
- },
33
- editOptionMulti: {
34
- anchorOrigin: {
35
- vertical: "top",
36
- horizontal: "left"
37
- },
38
- transformOrigin: {
39
- vertical: "top",
40
- horizontal: "left"
41
- }
42
32
  }
43
33
  };
44
34
  const PropertySettings = props => {
@@ -51,8 +41,7 @@ const PropertySettings = props => {
51
41
  anchorEl,
52
42
  mode,
53
43
  onClose,
54
- onEvent,
55
- translation
44
+ onEvent
56
45
  } = props;
57
46
  const classes = useOptionsStyles(theme, appTheme);
58
47
  const isMobile = window.matchMedia("(max-width: 899px)")?.matches || false;
@@ -64,41 +53,35 @@ const PropertySettings = props => {
64
53
  classes: classes,
65
54
  onClose: onClose,
66
55
  onEvent: onEvent,
67
- mode: mode,
68
- translation: translation
56
+ mode: mode
69
57
  });
70
58
  case "editProperty":
71
59
  return /*#__PURE__*/_jsx(EditProperty, {
72
60
  classes: classes,
73
61
  onClose: onClose,
74
62
  onEvent: onEvent,
75
- mode: mode,
76
- translation: translation
63
+ mode: mode
77
64
  });
78
65
  case "changeProperty":
79
66
  return /*#__PURE__*/_jsx(ChangeProperty, {
80
67
  classes: classes,
81
68
  onClose: onClose,
82
69
  onEvent: onEvent,
83
- mode: mode,
84
- translation: translation
70
+ mode: mode
85
71
  });
86
72
  case "allProperties":
87
73
  return /*#__PURE__*/_jsx(AllProperties, {
88
74
  classes: classes,
89
75
  onClose: onClose,
90
76
  onEvent: onEvent,
91
- mode: mode,
92
- translation: translation
77
+ mode: mode
93
78
  });
94
79
  case "editOption":
95
- case "editOptionMulti":
96
80
  return /*#__PURE__*/_jsx(EditOption, {
97
81
  classes: classes,
98
82
  onClose: onClose,
99
83
  onEvent: onEvent,
100
- mode: mode,
101
- translation: translation
84
+ mode: mode
102
85
  });
103
86
  default:
104
87
  return null;
@@ -33,7 +33,7 @@ const useTableStyles = (theme, appTheme) => ({
33
33
  height: "40px",
34
34
  maxWidth: "0px !important",
35
35
  minWidth: "0px !important",
36
- "& input, & textarea": {
36
+ "& input": {
37
37
  color: appTheme?.palette?.editor?.tv_text_primary,
38
38
  background: "transparent",
39
39
  fontSize: "14px"
@@ -107,9 +107,6 @@ const useTableStyles = (theme, appTheme) => ({
107
107
  "& .MuiChip-deleteIcon": {
108
108
  minWidth: "22px",
109
109
  minHeight: "22px"
110
- },
111
- "&.wrap-true": {
112
- flexWrap: "wrap"
113
110
  }
114
111
  },
115
112
  "&.Mui-disabled": {
@@ -134,8 +134,7 @@ const TableView = props => {
134
134
  } = useEditorContext();
135
135
  const {
136
136
  children,
137
- readOnly,
138
- translation
137
+ readOnly
139
138
  } = props;
140
139
  const theme = useTheme();
141
140
  const classes = useTableStyles(theme, appTheme);
@@ -167,7 +166,7 @@ const TableView = props => {
167
166
  case "addProperty":
168
167
  const np = onAddProperty({
169
168
  type: data?.type
170
- }, data?.overrides || {}, translation);
169
+ }, data?.overrides || {});
171
170
  if (navToEdit) {
172
171
  setMode({
173
172
  type: "editProperty",
@@ -337,15 +336,14 @@ const TableView = props => {
337
336
  startIcon: /*#__PURE__*/_jsx(Icon, {
338
337
  icon: "addRounded"
339
338
  }),
340
- children: translation("Add new row")
339
+ children: "Add new row"
341
340
  }) : null, open && !readOnly ? /*#__PURE__*/_jsx(PropertySettings, {
342
341
  open: open,
343
342
  anchorEl: anchorEl,
344
343
  mode: mode,
345
344
  properties: properties,
346
345
  onClose: onClose,
347
- onEvent: onEvent,
348
- translation: translation
346
+ onEvent: onEvent
349
347
  }) : null]
350
348
  });
351
349
  };
@@ -11,8 +11,7 @@ const RenderRow = props => {
11
11
  properties,
12
12
  onSelect,
13
13
  selected,
14
- readOnly,
15
- translation
14
+ readOnly
16
15
  } = props;
17
16
  const showProperties = properties?.filter(f => f.visible);
18
17
  return showProperties?.map((property, i) => {
@@ -23,8 +22,7 @@ const RenderRow = props => {
23
22
  property: property,
24
23
  onSelect: onSelect,
25
24
  selected: selected,
26
- readOnly: readOnly,
27
- translation: translation
25
+ readOnly: readOnly
28
26
  }, `${property.key}_${i}`);
29
27
  });
30
28
  };
@@ -35,8 +33,7 @@ const ViewData = props => {
35
33
  customProps
36
34
  } = props;
37
35
  const {
38
- readOnly,
39
- translation
36
+ readOnly
40
37
  } = customProps || {};
41
38
  const {
42
39
  properties,
@@ -70,8 +67,7 @@ const ViewData = props => {
70
67
  properties: properties,
71
68
  onSelect: onSelect,
72
69
  selected: selectedRows?.includes(row?.id),
73
- readOnly: readOnly,
74
- translation: translation
70
+ readOnly: readOnly
75
71
  }), /*#__PURE__*/_jsx("td", {}), /*#__PURE__*/_jsx("td", {})]
76
72
  }, i);
77
73
  }), /*#__PURE__*/_jsx("tr", {
@@ -9,8 +9,7 @@ const LAYOUT_COMPONENT = {
9
9
  const LayoutView = props => {
10
10
  const {
11
11
  readOnly,
12
- children,
13
- translation
12
+ children
14
13
  } = props;
15
14
  const {
16
15
  layoutType
@@ -19,7 +18,6 @@ const LayoutView = props => {
19
18
  return /*#__PURE__*/_jsx(_Fragment, {
20
19
  children: /*#__PURE__*/_jsx(Layout, {
21
20
  readOnly: readOnly,
22
- translation: translation,
23
21
  children: children
24
22
  })
25
23
  });
@@ -67,18 +67,15 @@ export const DataViewProvider = ({
67
67
  setRows(globalSearch(initialData?.rows || [], search));
68
68
  }
69
69
  }, [sort, search]);
70
- const onAddProperty = (data, overrides = {}, translation) => {
70
+ const onAddProperty = (data, overrides = {}) => {
71
71
  try {
72
72
  const {
73
73
  type
74
74
  } = data;
75
75
  const key = `col_${new Date().getTime()}`;
76
- const defaultProperty = PROPERTY_DEFAULTS[type] || {};
77
- const translatedLabel = translation ? translation(defaultProperty.label) : defaultProperty.label;
78
76
  const newProperty = {
79
- ...defaultProperty,
77
+ ...(PROPERTY_DEFAULTS[type] || {}),
80
78
  ...overrides,
81
- label: translatedLabel,
82
79
  key: key,
83
80
  type
84
81
  };
@@ -69,19 +69,6 @@ const useDataViewStyles = (theme, appTheme) => ({
69
69
  opacity: 1
70
70
  }
71
71
  }
72
- },
73
- "& .fe-tv-type_text": {
74
- "& .MuiInputBase-multiline": {
75
- height: "auto !important",
76
- "&.Mui-focused": {
77
- border: 0,
78
- outline: 0,
79
- "& textarea:focus-visible": {
80
- border: 0,
81
- borderColor: "none"
82
- }
83
- }
84
- }
85
72
  }
86
73
  },
87
74
  filterView: {
@@ -25,8 +25,7 @@ const Divider = props => {
25
25
  borderStyle = "solid"
26
26
  } = element;
27
27
  const {
28
- readOnly,
29
- translation
28
+ readOnly
30
29
  } = customProps;
31
30
  const editor = useSlateStatic();
32
31
  const path = ReactEditor.findPath(editor, element);
@@ -64,7 +63,7 @@ const Divider = props => {
64
63
  left: 0
65
64
  },
66
65
  children: /*#__PURE__*/_jsx(Tooltip, {
67
- title: translation("Divider Settings"),
66
+ title: "Divider Settings",
68
67
  arrow: true,
69
68
  children: /*#__PURE__*/_jsx(IconButton, {
70
69
  size: "small",
@@ -155,8 +154,7 @@ const Divider = props => {
155
154
  onSave: onSave,
156
155
  onClose: onClose,
157
156
  onDelete: onDelete,
158
- customProps: customProps,
159
- translation: translation
157
+ customProps: customProps
160
158
  }) : null]
161
159
  });
162
160
  };
@@ -6,17 +6,13 @@ import { jsx as _jsx } from "react/jsx-runtime";
6
6
  const DividerButton = props => {
7
7
  const {
8
8
  editor,
9
- icoBtnType,
10
- customProps
9
+ icoBtnType
11
10
  } = props;
12
- const {
13
- translation
14
- } = customProps;
15
11
  const handleClick = () => {
16
12
  insertDivider(editor);
17
13
  };
18
14
  return /*#__PURE__*/_jsx(ToolbarIcon, {
19
- title: translation("Divider"),
15
+ title: "Divider",
20
16
  onClick: handleClick,
21
17
  icon: /*#__PURE__*/_jsx(Icon, {
22
18
  icon: "divider"
@@ -8,11 +8,10 @@ const DividerPopup = props => {
8
8
  onSave,
9
9
  onClose,
10
10
  onDelete,
11
- customProps,
12
- translation
11
+ customProps
13
12
  } = props;
14
13
  return /*#__PURE__*/_jsx(StyleBuilder, {
15
- title: translation("Divider"),
14
+ title: "Divider",
16
15
  type: "dividerStyle",
17
16
  element: element,
18
17
  onSave: onSave,
@@ -29,9 +29,6 @@ const Embed = ({
29
29
  images: []
30
30
  });
31
31
  const [selection, setSelection] = useState();
32
- const {
33
- translation
34
- } = customProps;
35
32
  const handleFormSubmit = fd => {
36
33
  if (fd?.url || fd?.images.length > 0) {
37
34
  selection && Transforms.select(editor, selection);
@@ -75,7 +72,7 @@ const Embed = ({
75
72
  return /*#__PURE__*/_jsxs(_Fragment, {
76
73
  children: [/*#__PURE__*/_jsx(ToolbarIcon, {
77
74
  className: isBlockActive(editor, format) ? "active" : "",
78
- title: translation(EMBED_LABEL[lbT || format]),
75
+ title: EMBED_LABEL[lbT || format],
79
76
  onClick: onToggle,
80
77
  icon: /*#__PURE__*/_jsx(Icon, {
81
78
  icon: lbT || format
@@ -18,11 +18,8 @@ const EmbedPopup = props => {
18
18
  }
19
19
  return true;
20
20
  });
21
- const {
22
- translation
23
- } = customProps;
24
21
  return /*#__PURE__*/_jsx(StyleBuilder, {
25
- title: format === "image" ? translation("Image") : format === "video" ? translation("video") : format === "calendly" ? "calendly" : translation("Embed"),
22
+ title: format === "image" ? "Image" : format === "video" ? "video" : format === "calendly" ? "calendly" : "Embed",
26
23
  type: format === "image" ? "embedImageStyle" : "embedVideoStyle",
27
24
  element: element,
28
25
  onSave: onSave,
@@ -5,7 +5,7 @@ import AspectRatioIcon from "@mui/icons-material/AspectRatio";
5
5
  import useResize from "../../utils/customHooks/useResize";
6
6
  import EmbedPopup from "./EmbedPopup";
7
7
  import { IconButton, Tooltip, Box, useTheme } from "@mui/material";
8
- import { LinkIcon } from "../../common/iconslist";
8
+ import { GridSettingsIcon, LinkIcon } from "../../common/iconslist";
9
9
  import { useEditorContext } from "../../hooks/useMouseMove";
10
10
  import { getTRBLBreakPoints, getBreakPointsValue, groupByBreakpoint } from "../../helper/theme";
11
11
  import Icon from "../../common/Icon";
@@ -23,8 +23,7 @@ const ToolBar = ({
23
23
  onSettings,
24
24
  setOpenNav,
25
25
  topM,
26
- classes,
27
- translation
26
+ classes
28
27
  }) => {
29
28
  return !isEmpty ? /*#__PURE__*/_jsxs("div", {
30
29
  className: "element-toolbar visible-on-hover",
@@ -33,10 +32,10 @@ const ToolBar = ({
33
32
  top: "-4px",
34
33
  left: topM ? "35px" : "0px",
35
34
  margin: "0px",
36
- gap: "3px"
35
+ gap: '3px'
37
36
  },
38
37
  children: [/*#__PURE__*/_jsx(Tooltip, {
39
- title: translation("Image Settings"),
38
+ title: "Image Settings",
40
39
  arrow: true,
41
40
  children: /*#__PURE__*/_jsx(IconButton, {
42
41
  onClick: onSettings,
@@ -44,7 +43,7 @@ const ToolBar = ({
44
43
  children: /*#__PURE__*/_jsx(SettingsIcon, {})
45
44
  })
46
45
  }), /*#__PURE__*/_jsx(Tooltip, {
47
- title: translation("Link Settings"),
46
+ title: "Link Settings",
48
47
  arrow: true,
49
48
  children: /*#__PURE__*/_jsx(IconButton, {
50
49
  className: "last-btn",
@@ -72,8 +71,7 @@ const ImageContent = props => {
72
71
  onTouchEnd,
73
72
  path,
74
73
  theme,
75
- classes,
76
- translation
74
+ classes
77
75
  } = props;
78
76
  return !url ? !readOnly ? /*#__PURE__*/_jsxs(Box, {
79
77
  component: "button",
@@ -87,7 +85,7 @@ const ImageContent = props => {
87
85
  },
88
86
  children: [/*#__PURE__*/_jsx(Icon, {
89
87
  icon: "image"
90
- }), translation("Add Image")]
88
+ }), "Add Image"]
91
89
  }) : /*#__PURE__*/_jsxs(Box, {
92
90
  sx: {
93
91
  color: "#64748B !important",
@@ -99,7 +97,7 @@ const ImageContent = props => {
99
97
  className: "element-empty-btn",
100
98
  children: [/*#__PURE__*/_jsx(Icon, {
101
99
  icon: "shieldNoAccess"
102
- }), translation("contentNotAvilable")]
100
+ }), "The Content is no longer available."]
103
101
  }) : /*#__PURE__*/_jsx(Box, {
104
102
  component: "img",
105
103
  className: "emb-img",
@@ -146,8 +144,7 @@ const Image = props => {
146
144
  framePos
147
145
  } = element;
148
146
  const {
149
- readOnly,
150
- translation
147
+ readOnly
151
148
  } = customProps;
152
149
  const {
153
150
  vertical,
@@ -312,8 +309,7 @@ const Image = props => {
312
309
  onSettings: onSettings,
313
310
  setOpenNav: setOpenNav,
314
311
  topM: size.width < 100,
315
- classes: classes,
316
- translation: translation
312
+ classes: classes
317
313
  }), /*#__PURE__*/_jsx(ImageContent, {
318
314
  ...element,
319
315
  readOnly: readOnly,
@@ -322,8 +318,7 @@ const Image = props => {
322
318
  onTouchEnd: onTouchEnd,
323
319
  path: path,
324
320
  theme: theme,
325
- classes: classes,
326
- translation: translation
321
+ classes: classes
327
322
  }), url && frames[frame] ? /*#__PURE__*/_jsx(Box, {
328
323
  component: "div",
329
324
  className: "image-frame",