@flozy/editor 9.1.8 → 9.2.0

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 (234) hide show
  1. package/dist/Editor/ChatEditor.js +7 -31
  2. package/dist/Editor/CommonEditor.js +34 -82
  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 +12 -57
  26. package/dist/Editor/Elements/Color Picker/ColorPicker.css +1 -25
  27. package/dist/Editor/Elements/Color Picker/ColorPicker.js +4 -5
  28. package/dist/Editor/Elements/Color Picker/Styles.js +1 -1
  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/FilterSort/SortOptions/ChooseSort.js +12 -13
  33. package/dist/Editor/Elements/DataView/Layouts/FilterSort/SortOptions/index.js +4 -7
  34. package/dist/Editor/Elements/DataView/Layouts/FilterSort/index.js +5 -7
  35. package/dist/Editor/Elements/DataView/Layouts/FilterView.js +7 -9
  36. package/dist/Editor/Elements/DataView/Layouts/Options/AddOptions.js +2 -3
  37. package/dist/Editor/Elements/DataView/Layouts/Options/AddProperty.js +3 -5
  38. package/dist/Editor/Elements/DataView/Layouts/Options/AllProperties.js +5 -6
  39. package/dist/Editor/Elements/DataView/Layouts/Options/ChangeProperty.js +3 -5
  40. package/dist/Editor/Elements/DataView/Layouts/Options/EditOption.js +6 -7
  41. package/dist/Editor/Elements/DataView/Layouts/Options/EditProperty.js +12 -15
  42. package/dist/Editor/Elements/DataView/Layouts/Options/FilterProperty.js +2 -3
  43. package/dist/Editor/Elements/DataView/Layouts/Options/PropertyList.js +2 -3
  44. package/dist/Editor/Elements/DataView/Layouts/Options/index.js +6 -12
  45. package/dist/Editor/Elements/DataView/Layouts/TableView.js +4 -6
  46. package/dist/Editor/Elements/DataView/Layouts/index.js +1 -3
  47. package/dist/Editor/Elements/DataView/Providers/DataViewProvider.js +2 -5
  48. package/dist/Editor/Elements/Divider/Divider.js +3 -5
  49. package/dist/Editor/Elements/Divider/DividerButton.js +2 -6
  50. package/dist/Editor/Elements/Divider/DividerPopup.js +2 -3
  51. package/dist/Editor/Elements/Embed/Embed.js +1 -4
  52. package/dist/Editor/Elements/Embed/EmbedPopup.js +1 -4
  53. package/dist/Editor/Elements/Embed/Image.js +11 -16
  54. package/dist/Editor/Elements/Embed/Video.js +7 -10
  55. package/dist/Editor/Elements/EmbedScript/Code.js +4 -7
  56. package/dist/Editor/Elements/EmbedScript/EmbedScript.js +2 -6
  57. package/dist/Editor/Elements/EmbedScript/EmbedScriptPopup.js +5 -8
  58. package/dist/Editor/Elements/Emoji/EmojiButton.js +2 -6
  59. package/dist/Editor/Elements/Form/FieldPopup.js +1 -4
  60. package/dist/Editor/Elements/Form/Form.js +9 -12
  61. package/dist/Editor/Elements/Form/FormButton.js +2 -6
  62. package/dist/Editor/Elements/Form/FormPopup.js +2 -3
  63. package/dist/Editor/Elements/Form/Workflow/FormWorkflow.js +12 -18
  64. package/dist/Editor/Elements/Form/Workflow/ListWorkflow.js +8 -13
  65. package/dist/Editor/Elements/Form/Workflow/MoreOptions.js +2 -3
  66. package/dist/Editor/Elements/Form/Workflow/UserInputs.js +2 -4
  67. package/dist/Editor/Elements/Form/Workflow/index.js +9 -15
  68. package/dist/Editor/Elements/FreeGrid/FreeGrid.js +18 -21
  69. package/dist/Editor/Elements/FreeGrid/FreeGridBox.js +2 -6
  70. package/dist/Editor/Elements/FreeGrid/FreeGridButton.js +2 -6
  71. package/dist/Editor/Elements/FreeGrid/FreeGridItem.js +3 -8
  72. package/dist/Editor/Elements/FreeGrid/Options/AddElement.js +2 -3
  73. package/dist/Editor/Elements/FreeGrid/Options/More.js +3 -4
  74. package/dist/Editor/Elements/FreeGrid/styles.js +0 -3
  75. package/dist/Editor/Elements/Grid/Grid.js +10 -13
  76. package/dist/Editor/Elements/Grid/GridButton.js +5 -9
  77. package/dist/Editor/Elements/Grid/GridItem.js +8 -14
  78. package/dist/Editor/Elements/Grid/GridItemPopup.js +1 -4
  79. package/dist/Editor/Elements/Grid/GridPopup.js +1 -4
  80. package/dist/Editor/Elements/Grid/SectionPopup.js +1 -4
  81. package/dist/Editor/Elements/Link/Link.js +5 -8
  82. package/dist/Editor/Elements/Link/LinkButton.js +1 -4
  83. package/dist/Editor/Elements/List/CheckList.js +9 -14
  84. package/dist/Editor/Elements/NewLine/NewLineButton.js +2 -6
  85. package/dist/Editor/Elements/PageSettings/PageSettingsButton.js +5 -16
  86. package/dist/Editor/Elements/PageSettings/PageSettingsPopup.js +1 -4
  87. package/dist/Editor/Elements/Search/SearchButton.js +3 -6
  88. package/dist/Editor/Elements/Search/SearchList.js +3 -7
  89. package/dist/Editor/Elements/Signature/SignatureButton.js +2 -6
  90. package/dist/Editor/Elements/Signature/SignatureOptions/TypeSignature.js +2 -6
  91. package/dist/Editor/Elements/Signature/SignatureOptions/UploadSignature.js +1 -4
  92. package/dist/Editor/Elements/Signature/SignaturePopup.js +16 -17
  93. package/dist/Editor/Elements/SimpleText/index.js +4 -5
  94. package/dist/Editor/Elements/SimpleText/style.js +2 -2
  95. package/dist/Editor/Elements/Table/DragButton.js +2 -4
  96. package/dist/Editor/Elements/Table/Table.js +32 -56
  97. package/dist/Editor/Elements/Table/TableCell.js +3 -4
  98. package/dist/Editor/Elements/Table/TablePopup.js +1 -4
  99. package/dist/Editor/Elements/Table/TableSelector.js +6 -10
  100. package/dist/Editor/Elements/Table/TableTool.js +4 -8
  101. package/dist/Editor/Elements/Title/title.js +31 -13
  102. package/dist/Editor/Elements/TopBanner/TopBannerButton.js +1 -4
  103. package/dist/Editor/Elements/Variables/VariableButton.js +1 -10
  104. package/dist/Editor/MiniEditor.js +3 -9
  105. package/dist/Editor/Styles/EditorStyles.js +5 -5
  106. package/dist/Editor/Toolbar/Basic/index.js +1 -2
  107. package/dist/Editor/Toolbar/FormatTools/BlockButton.js +2 -6
  108. package/dist/Editor/Toolbar/FormatTools/Dropdown.js +3 -27
  109. package/dist/Editor/Toolbar/FormatTools/FontFamilyAutocomplete.js +3 -4
  110. package/dist/Editor/Toolbar/FormatTools/MarkButton.js +4 -8
  111. package/dist/Editor/Toolbar/FormatTools/TextSize.js +13 -7
  112. package/dist/Editor/Toolbar/Mini/MiniToolbar.js +15 -20
  113. package/dist/Editor/Toolbar/PopupTool/AddTemplates.js +5 -10
  114. package/dist/Editor/Toolbar/PopupTool/ButtonTemplatesCard.js +4 -10
  115. package/dist/Editor/Toolbar/PopupTool/FullViewCard.js +4 -10
  116. package/dist/Editor/Toolbar/PopupTool/MiniTextFormat/MiniColorPicker.js +2 -6
  117. package/dist/Editor/Toolbar/PopupTool/MiniTextFormat/SelectAlignment.js +35 -42
  118. package/dist/Editor/Toolbar/PopupTool/MiniTextFormat/SelectFontSize.js +13 -6
  119. package/dist/Editor/Toolbar/PopupTool/MiniTextFormat/SelectList.js +51 -58
  120. package/dist/Editor/Toolbar/PopupTool/MiniTextFormat/SelectSuperSubscript.js +22 -29
  121. package/dist/Editor/Toolbar/PopupTool/MiniTextFormat/SelectTypography.js +87 -226
  122. package/dist/Editor/Toolbar/PopupTool/MiniTextFormat/index.js +7 -15
  123. package/dist/Editor/Toolbar/PopupTool/PopperHeader.js +4 -8
  124. package/dist/Editor/Toolbar/PopupTool/PopupToolStyle.js +9 -16
  125. package/dist/Editor/Toolbar/PopupTool/TemplateCard.js +5 -11
  126. package/dist/Editor/Toolbar/PopupTool/TextFormat.js +32 -84
  127. package/dist/Editor/Toolbar/PopupTool/index.js +1 -2
  128. package/dist/Editor/Toolbar/Toolbar.js +10 -20
  129. package/dist/Editor/Toolbar/toolbarGroups.js +6 -48
  130. package/dist/Editor/common/ColorPickerButton.js +9 -35
  131. package/dist/Editor/common/CustomDialog/index.js +10 -8
  132. package/dist/Editor/common/DnD/DragHandleButton.js +1 -1
  133. package/dist/Editor/common/FontLoader/FontLoader.js +0 -3
  134. package/dist/Editor/common/Icon.js +0 -28
  135. package/dist/Editor/common/ImageSelector/ImageSelector.js +8 -10
  136. package/dist/Editor/common/ImageSelector/Options/AddLink.js +4 -6
  137. package/dist/Editor/common/ImageSelector/Styles.js +9 -3
  138. package/dist/Editor/common/LinkSettings/NavComponents.js +10 -14
  139. package/dist/Editor/common/LinkSettings/index.js +14 -20
  140. package/dist/Editor/common/LinkSettings/navOptions.js +1 -1
  141. package/dist/Editor/common/MentionsPopup/Styles.js +9 -3
  142. package/dist/Editor/common/MentionsPopup/index.js +2 -6
  143. package/dist/Editor/common/RnD/ContextMenu/CMenus.js +22 -22
  144. package/dist/Editor/common/RnD/ContextMenu/index.js +2 -3
  145. package/dist/Editor/common/RnD/ElementOptions/index.js +2 -7
  146. package/dist/Editor/common/RnD/ElementSettings/OtherSettings/SaveAsTemplate.js +3 -8
  147. package/dist/Editor/common/RnD/ElementSettings/OtherSettings/Settings.js +3 -7
  148. package/dist/Editor/common/RnD/ElementSettings/Settings/AppHeaderSettings.js +2 -3
  149. package/dist/Editor/common/RnD/ElementSettings/Settings/BoxSettings.js +2 -3
  150. package/dist/Editor/common/RnD/ElementSettings/Settings/ButtonSettings.js +2 -3
  151. package/dist/Editor/common/RnD/ElementSettings/Settings/CodeSettings.js +2 -3
  152. package/dist/Editor/common/RnD/ElementSettings/Settings/FormSettings.js +4 -7
  153. package/dist/Editor/common/RnD/ElementSettings/Settings/ImageSettings.js +2 -3
  154. package/dist/Editor/common/RnD/ElementSettings/Settings/TableSettings.js +2 -3
  155. package/dist/Editor/common/RnD/ElementSettings/Settings/TextSettings.js +2 -4
  156. package/dist/Editor/common/RnD/ElementSettings/Settings/VideoSettings.js +2 -3
  157. package/dist/Editor/common/RnD/OptionsPopup/index.js +3 -4
  158. package/dist/Editor/common/RnD/SwitchViewport/SwitchViewport.js +4 -11
  159. package/dist/Editor/common/RnD/Theme/ViewportStimulator.js +3 -6
  160. package/dist/Editor/common/RnD/Utils/index.js +0 -45
  161. package/dist/Editor/common/RnD/index.js +7 -34
  162. package/dist/Editor/common/Section/index.js +4 -7
  163. package/dist/Editor/common/Shorthands/elements.js +4 -75
  164. package/dist/Editor/common/StyleBuilder/appHeaderStyle.js +4 -4
  165. package/dist/Editor/common/StyleBuilder/boxStyle.js +2 -2
  166. package/dist/Editor/common/StyleBuilder/buttonStyle.js +4 -6
  167. package/dist/Editor/common/StyleBuilder/dividerStyles.js +2 -2
  168. package/dist/Editor/common/StyleBuilder/embedVideoStyle.js +6 -6
  169. package/dist/Editor/common/StyleBuilder/fieldStyle.js +2 -2
  170. package/dist/Editor/common/StyleBuilder/fieldTypes/alignment.js +9 -13
  171. package/dist/Editor/common/StyleBuilder/fieldTypes/backgroundImage.js +3 -11
  172. package/dist/Editor/common/StyleBuilder/fieldTypes/bannerSpacing.js +5 -19
  173. package/dist/Editor/common/StyleBuilder/fieldTypes/borderRadius.js +10 -22
  174. package/dist/Editor/common/StyleBuilder/fieldTypes/buttonLink.js +3 -6
  175. package/dist/Editor/common/StyleBuilder/fieldTypes/card.js +13 -27
  176. package/dist/Editor/common/StyleBuilder/fieldTypes/color.js +14 -41
  177. package/dist/Editor/common/StyleBuilder/fieldTypes/elementSize.js +6 -10
  178. package/dist/Editor/common/StyleBuilder/fieldTypes/fontSize.js +6 -19
  179. package/dist/Editor/common/StyleBuilder/fieldTypes/gridSize.js +2 -6
  180. package/dist/Editor/common/StyleBuilder/fieldTypes/icons.js +2 -5
  181. package/dist/Editor/common/StyleBuilder/fieldTypes/menusArray.js +6 -9
  182. package/dist/Editor/common/StyleBuilder/fieldTypes/metaDataMapping.js +2 -8
  183. package/dist/Editor/common/StyleBuilder/fieldTypes/saveAsTemplate.js +11 -12
  184. package/dist/Editor/common/StyleBuilder/fieldTypes/selectBox.js +2 -6
  185. package/dist/Editor/common/StyleBuilder/fieldTypes/text.js +4 -8
  186. package/dist/Editor/common/StyleBuilder/fieldTypes/textAlign.js +2 -6
  187. package/dist/Editor/common/StyleBuilder/fieldTypes/textOptions.js +12 -21
  188. package/dist/Editor/common/StyleBuilder/formStyle.js +7 -7
  189. package/dist/Editor/common/StyleBuilder/gridItemStyle.js +6 -6
  190. package/dist/Editor/common/StyleBuilder/gridStyle.js +5 -5
  191. package/dist/Editor/common/StyleBuilder/index.js +5 -8
  192. package/dist/Editor/common/Uploader.js +5 -16
  193. package/dist/Editor/commonStyle.js +65 -55
  194. package/dist/Editor/helper/index.js +2 -2
  195. package/dist/Editor/helper/theme.js +2 -200
  196. package/dist/Editor/hooks/useMouseMove.js +3 -9
  197. package/dist/Editor/plugins/withEmbeds.js +1 -1
  198. package/dist/Editor/plugins/withHTML.js +13 -18
  199. package/dist/Editor/plugins/withLayout.js +2 -3
  200. package/dist/Editor/plugins/withTable.js +1 -1
  201. package/dist/Editor/theme/ThemeList.js +173 -50
  202. package/dist/Editor/utils/SlateUtilityFunctions.js +45 -162
  203. package/dist/Editor/utils/button.js +14 -0
  204. package/dist/Editor/utils/chatEditor/SlateUtilityFunctions.js +0 -23
  205. package/dist/Editor/utils/draftToSlate.js +2 -3
  206. package/dist/Editor/utils/font.js +37 -40
  207. package/dist/Editor/utils/helper.js +27 -47
  208. package/dist/Editor/utils/table.js +0 -8
  209. package/package.json +1 -1
  210. package/dist/Editor/Toolbar/PopupTool/ThemeTextFormat.js +0 -438
  211. package/dist/Editor/assets/svg/ThemeIcons.js +0 -291
  212. package/dist/Editor/common/CustomColorPicker/index.js +0 -106
  213. package/dist/Editor/common/CustomColorPicker/style.js +0 -53
  214. package/dist/Editor/common/CustomDialog2/index.js +0 -94
  215. package/dist/Editor/common/CustomDialog2/style.js +0 -67
  216. package/dist/Editor/common/CustomSelect.js +0 -33
  217. package/dist/Editor/common/RnD/Theme/MainThemeProvider.js +0 -17
  218. package/dist/Editor/hooks/useEditorTheme.js +0 -153
  219. package/dist/Editor/theme/index.js +0 -144
  220. package/dist/Editor/themeSettings/ActiveTheme.js +0 -72
  221. package/dist/Editor/themeSettings/buttons/index.js +0 -283
  222. package/dist/Editor/themeSettings/buttons/style.js +0 -21
  223. package/dist/Editor/themeSettings/colorTheme/index.js +0 -292
  224. package/dist/Editor/themeSettings/colorTheme/style.js +0 -77
  225. package/dist/Editor/themeSettings/fonts/PreviewElement.js +0 -121
  226. package/dist/Editor/themeSettings/fonts/index.js +0 -220
  227. package/dist/Editor/themeSettings/fonts/style.js +0 -44
  228. package/dist/Editor/themeSettings/icons.js +0 -60
  229. package/dist/Editor/themeSettings/index.js +0 -320
  230. package/dist/Editor/themeSettings/style.js +0 -152
  231. package/dist/Editor/themeSettingsAI/icons.js +0 -96
  232. package/dist/Editor/themeSettingsAI/index.js +0 -356
  233. package/dist/Editor/themeSettingsAI/saveTheme.js +0 -197
  234. package/dist/Editor/themeSettingsAI/style.js +0 -250
@@ -7,19 +7,14 @@ import CheckListStyle from "./CheckListStyles";
7
7
  import { jsx as _jsx } from "react/jsx-runtime";
8
8
  import { jsxs as _jsxs } from "react/jsx-runtime";
9
9
  import { Fragment as _Fragment } from "react/jsx-runtime";
10
- const CheckList = props => {
11
- const {
12
- attributes,
13
- children,
14
- element,
15
- isEmpty,
16
- className,
17
- style,
18
- customProps
19
- } = props;
20
- const {
21
- translation
22
- } = customProps;
10
+ const CheckList = ({
11
+ attributes,
12
+ children,
13
+ element,
14
+ isEmpty,
15
+ className,
16
+ style
17
+ }) => {
23
18
  const editor = useSlateStatic();
24
19
  const readOnly = useReadOnly();
25
20
  const classes = CheckListStyle();
@@ -78,7 +73,7 @@ const CheckList = props => {
78
73
  width: '90%'
79
74
  },
80
75
  className: `checkbox-list content-editable ${isEmpty ? "empty" : ""}`,
81
- placeholder: nestedCheckList ? "" : translation("Todo List"),
76
+ placeholder: nestedCheckList ? "" : "Todo List",
82
77
  children: children
83
78
  })]
84
79
  })
@@ -5,13 +5,9 @@ import ToolbarIcon from "../../common/ToolbarIcon";
5
5
  import { NewLineElementIcon } from "../../common/iconListV2";
6
6
  import { jsx as _jsx } from "react/jsx-runtime";
7
7
  const NewLineButton = ({
8
- icoBtnType,
9
- customProps
8
+ icoBtnType
10
9
  }) => {
11
10
  const editor = useSlateStatic();
12
- const {
13
- translation
14
- } = customProps;
15
11
  const onAddNewLine = () => {
16
12
  Transforms.insertNodes(editor, [{
17
13
  type: "paragraph",
@@ -25,7 +21,7 @@ const NewLineButton = ({
25
21
  ReactEditor.focus(editor);
26
22
  };
27
23
  return /*#__PURE__*/_jsx(ToolbarIcon, {
28
- title: translation("New Line"),
24
+ title: "New Line",
29
25
  onClick: onAddNewLine,
30
26
  icon: /*#__PURE__*/_jsx(NewLineElementIcon, {
31
27
  sx: {
@@ -4,7 +4,6 @@ import PageSettingsPopup from "./PageSettingsPopup";
4
4
  import ToolbarIcon from "../../common/ToolbarIcon";
5
5
  import { getPageSettings, updatePageSettings } from "../../utils/pageSettings";
6
6
  import SettingsIcon from "../../assets/svg/SettingsIcon";
7
- import { IconButton } from "@mui/material";
8
7
  import { jsx as _jsx } from "react/jsx-runtime";
9
8
  import { Fragment as _Fragment } from "react/jsx-runtime";
10
9
  import { jsxs as _jsxs } from "react/jsx-runtime";
@@ -14,18 +13,11 @@ const PageSettingsButton = props => {
14
13
  icoBtnType,
15
14
  from,
16
15
  closePopper,
17
- setToolTip,
18
- setPopper,
19
- className
16
+ setToolTip
20
17
  } = props;
21
18
  const [openSetttings, setOpenSettings] = useState(false);
22
19
  const editor = useSlateStatic();
23
- const {
24
- translation
25
- } = customProps;
26
20
  const onSettings = () => {
27
- setToolTip(true);
28
- setPopper("page-settings");
29
21
  const {
30
22
  element,
31
23
  path
@@ -53,14 +45,11 @@ const PageSettingsButton = props => {
53
45
  setOpenSettings(false);
54
46
  };
55
47
  return /*#__PURE__*/_jsxs(_Fragment, {
56
- children: [from === "miniToolBar" ? /*#__PURE__*/_jsx(IconButton, {
57
- className: className,
58
- children: /*#__PURE__*/_jsx(SettingsIcon, {
59
- onClick: onSettings,
60
- className: "removeDefaultSvgCls"
61
- })
48
+ children: [from === "miniToolBar" ? /*#__PURE__*/_jsx(SettingsIcon, {
49
+ onClick: onSettings,
50
+ className: "removeDefaultSvgCls"
62
51
  }) : /*#__PURE__*/_jsx(ToolbarIcon, {
63
- title: translation("Page Settings"),
52
+ title: "Page Settings",
64
53
  onClick: onSettings,
65
54
  icon: /*#__PURE__*/_jsx(SettingsIcon, {}),
66
55
  icoBtnType: icoBtnType
@@ -9,11 +9,8 @@ const PageSettingsPopup = props => {
9
9
  onClose,
10
10
  customProps
11
11
  } = props;
12
- const {
13
- translation
14
- } = customProps;
15
12
  return /*#__PURE__*/_jsx(StyleBuilder, {
16
- title: translation("Page Settings"),
13
+ title: "Page Settings",
17
14
  type: "pageSettingsStyle",
18
15
  element: element,
19
16
  onSave: onSave,
@@ -17,8 +17,7 @@ const SearchButton = /*#__PURE__*/forwardRef((props, ref) => {
17
17
  icoBtnType,
18
18
  selectionTarget,
19
19
  theme = 'light',
20
- otherProps,
21
- customProps
20
+ otherProps
22
21
  } = props;
23
22
  const editor = useSlateStatic();
24
23
  const [anchorEl, setAnchorEl] = useState(null);
@@ -124,8 +123,7 @@ const SearchButton = /*#__PURE__*/forwardRef((props, ref) => {
124
123
  onSearchChange: onSearchChange,
125
124
  handleClick: handleClick,
126
125
  theme: theme,
127
- handleClose: handleClose,
128
- customProps: customProps
126
+ handleClose: handleClose
129
127
  })
130
128
  })
131
129
  }) : /*#__PURE__*/_jsx(Popover, {
@@ -168,8 +166,7 @@ const SearchButton = /*#__PURE__*/forwardRef((props, ref) => {
168
166
  onSearchChange: onSearchChange,
169
167
  handleClick: handleClick,
170
168
  theme: theme,
171
- handleClose: handleClose,
172
- customProps: customProps
169
+ handleClose: handleClose
173
170
  })
174
171
  })
175
172
  })]
@@ -11,12 +11,8 @@ const SearchAndDocList = ({
11
11
  onSearchChange,
12
12
  handleClick,
13
13
  theme,
14
- handleClose,
15
- customProps
14
+ handleClose
16
15
  }) => {
17
- const {
18
- translation
19
- } = customProps;
20
16
  const isMobile = window.matchMedia("(max-width: 899px)")?.matches || false;
21
17
  return /*#__PURE__*/_jsxs(_Fragment, {
22
18
  children: [/*#__PURE__*/_jsxs(Box, {
@@ -32,7 +28,7 @@ const SearchAndDocList = ({
32
28
  fontWeight: 600,
33
29
  color: theme?.palette?.primary?.main
34
30
  },
35
- children: translation("Brains")
31
+ children: "Brains"
36
32
  }), !isMobile ? /*#__PURE__*/_jsx(IconButton, {
37
33
  onClick: e => {
38
34
  e.stopPropagation();
@@ -72,7 +68,7 @@ const SearchAndDocList = ({
72
68
  children: /*#__PURE__*/_jsx(TextField, {
73
69
  fullWidth: true,
74
70
  variant: "outlined",
75
- placeholder: translation("placeHolderSearch"),
71
+ placeholder: "Search here...",
76
72
  size: "small",
77
73
  onChange: e => onSearchChange(e.target.value),
78
74
  InputProps: {
@@ -6,17 +6,13 @@ import { jsx as _jsx } from "react/jsx-runtime";
6
6
  const SignatureButton = 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 handleInsertSignature = () => {
16
12
  insertSignature(editor);
17
13
  };
18
14
  return /*#__PURE__*/_jsx(ToolbarIcon, {
19
- title: translation("Signature"),
15
+ title: "Signature",
20
16
  onClick: handleInsertSignature,
21
17
  icon: /*#__PURE__*/_jsx(Icon, {
22
18
  icon: "signature"
@@ -6,12 +6,8 @@ import { jsx as _jsx } from "react/jsx-runtime";
6
6
  import { jsxs as _jsxs } from "react/jsx-runtime";
7
7
  const TypeSignature = props => {
8
8
  const {
9
- onDataChange,
10
- customProps
9
+ onDataChange
11
10
  } = props;
12
- const {
13
- translation
14
- } = customProps;
15
11
  const [name, setName] = useState("");
16
12
  const [fontFamily, setFontFamily] = useState("");
17
13
  const onChange = e => {
@@ -48,7 +44,7 @@ const TypeSignature = props => {
48
44
  warp: "noWarp",
49
45
  maxWidth: "120px"
50
46
  },
51
- children: name || translation("Signature")
47
+ children: name || "Signature"
52
48
  })
53
49
  })
54
50
  }, `typesign-ff-${m.value}`);
@@ -9,9 +9,6 @@ const UploadSignature = props => {
9
9
  customProps,
10
10
  onUploadDone
11
11
  } = props;
12
- const {
13
- translation
14
- } = customProps;
15
12
  const [base64, setBase64] = useState(null);
16
13
  const [uploading, setUploading] = useState(false);
17
14
  const onChange = async e => {
@@ -57,7 +54,7 @@ const UploadSignature = props => {
57
54
  sx: {
58
55
  ml: 1
59
56
  },
60
- children: translation("Upload your signature")
57
+ children: "Upload your signature"
61
58
  })]
62
59
  })
63
60
  })]
@@ -31,8 +31,7 @@ const SignaturePopup = props => {
31
31
  const {
32
32
  readOnly,
33
33
  metadata,
34
- isSignerDetailsRequired = false,
35
- translation
34
+ isSignerDetailsRequired = false
36
35
  } = customProps;
37
36
  const [open, setOpen] = useState(false);
38
37
  const [tab, setTab] = useState(0);
@@ -68,7 +67,7 @@ const SignaturePopup = props => {
68
67
  isValidEmail = validationMethods?.isEmail(signedData?.signedByEmail);
69
68
  }
70
69
  if (isValidEmail === "Enter valid email address") {
71
- alert(translation(isValidEmail));
70
+ alert(isValidEmail);
72
71
  } else {
73
72
  onSave(signedData);
74
73
  // manual delay
@@ -141,14 +140,14 @@ const SignaturePopup = props => {
141
140
  style: {
142
141
  color: "#A2B0B9"
143
142
  },
144
- children: translation("Your sign will be placed here")
143
+ children: "Your sign will be placed here"
145
144
  })]
146
145
  }), /*#__PURE__*/_jsx(Button, {
147
146
  onClick: handleOpen,
148
147
  style: {
149
148
  width: "fit-content"
150
149
  },
151
- children: translation("Sign here")
150
+ children: "Sign here"
152
151
  })]
153
152
  }), /*#__PURE__*/_jsx(Dialog, {
154
153
  className: `${className} dialogComp`,
@@ -185,7 +184,7 @@ const SignaturePopup = props => {
185
184
  variant: "h6",
186
185
  color: "primary",
187
186
  sx: classes.popupTitle2,
188
- children: translation("Signature")
187
+ children: "Signature"
189
188
  })
190
189
  }), /*#__PURE__*/_jsx(Grid, {
191
190
  item: true,
@@ -232,7 +231,7 @@ const SignaturePopup = props => {
232
231
  style: {
233
232
  textTransform: "none"
234
233
  },
235
- children: translation("Draw Signature")
234
+ children: "Draw Signature"
236
235
  })]
237
236
  })
238
237
  }), /*#__PURE__*/_jsx(Tab, {
@@ -245,7 +244,7 @@ const SignaturePopup = props => {
245
244
  style: {
246
245
  textTransform: "none"
247
246
  },
248
- children: translation("Type Signature")
247
+ children: "Type Signature"
249
248
  })]
250
249
  })
251
250
  }), /*#__PURE__*/_jsx(Tab, {
@@ -258,7 +257,7 @@ const SignaturePopup = props => {
258
257
  style: {
259
258
  textTransform: "none"
260
259
  },
261
- children: translation("Upload Signature")
260
+ children: "Upload Signature"
262
261
  })]
263
262
  })
264
263
  })]
@@ -304,7 +303,7 @@ const SignaturePopup = props => {
304
303
  fontWeight: 500,
305
304
  fontSize: "14px"
306
305
  },
307
- children: translation("nameField")
306
+ children: "Name:"
308
307
  })
309
308
  }), /*#__PURE__*/_jsx(Grid, {
310
309
  item: true,
@@ -313,7 +312,7 @@ const SignaturePopup = props => {
313
312
  fullWidth: true,
314
313
  id: "signedBy",
315
314
  name: "signedBy",
316
- placeholder: translation("Enter Name"),
315
+ placeholder: "Enter Name",
317
316
  value: signedData.signedBy || ""
318
317
  // defaultValue={defaultName || ""}
319
318
  ,
@@ -341,7 +340,7 @@ const SignaturePopup = props => {
341
340
  fontWeight: 500,
342
341
  fontSize: "14px"
343
342
  },
344
- children: translation("dateField")
343
+ children: "Date:"
345
344
  })
346
345
  }), /*#__PURE__*/_jsx(Grid, {
347
346
  item: true,
@@ -362,7 +361,7 @@ const SignaturePopup = props => {
362
361
  customInput: /*#__PURE__*/_jsx(TextField, {
363
362
  fullWidth: true,
364
363
  name: "signedOn",
365
- placeholder: translation("Select Date"),
364
+ placeholder: "Select Date",
366
365
  size: "small",
367
366
  InputProps: {
368
367
  startAdornment: /*#__PURE__*/_jsx(InputAdornment, {
@@ -432,7 +431,7 @@ const SignaturePopup = props => {
432
431
  fontWeight: 500,
433
432
  fontSize: "14px"
434
433
  },
435
- children: translation("emailField")
434
+ children: "Email:"
436
435
  })
437
436
  }), /*#__PURE__*/_jsx(Grid, {
438
437
  container: true,
@@ -441,7 +440,7 @@ const SignaturePopup = props => {
441
440
  fullWidth: true,
442
441
  id: "signedByEmail",
443
442
  name: "signedByEmail",
444
- placeholder: translation("Enter Email"),
443
+ placeholder: "Enter Email",
445
444
  size: "small",
446
445
  onChange: onChange,
447
446
  sx: classes.signaturePopUpNameField,
@@ -519,12 +518,12 @@ const SignaturePopup = props => {
519
518
  children: [!readOnly ? /*#__PURE__*/_jsx(Button, {
520
519
  onClick: handleClear,
521
520
  className: `secondaryBtn actionBtn deleteBtn deleteButtonSignature`,
522
- children: translation("Delete")
521
+ children: "Delete"
523
522
  }) : null, /*#__PURE__*/_jsx(Button, {
524
523
  onClick: handleSave,
525
524
  className: `primaryBtn actionBtn ${isEmpty ? "disabled disabledSaveBtn" : ""}`,
526
525
  disabled: isEmpty,
527
- children: translation("Save")
526
+ children: "Save"
528
527
  })]
529
528
  })]
530
529
  })]
@@ -24,8 +24,7 @@ const SimpleText = props => {
24
24
  } = props;
25
25
  const {
26
26
  readOnly,
27
- editorPlaceholder,
28
- translation
27
+ editorPlaceholder
29
28
  } = customProps;
30
29
  // const { element: pageSt } = getPageSettings(editor) || {};
31
30
  // const { pageColor } = pageSt?.pageProps || {};
@@ -47,15 +46,15 @@ const SimpleText = props => {
47
46
  }, children, openAI ? null : /*#__PURE__*/_jsx("span", {
48
47
  contentEditable: false,
49
48
  className: "placeholder-simple-text",
50
- children: isEmptyEditor ? editorPlaceholder || translation("writeSomethingPlaceHolder") : showPlaceHolder ? opacity && selected ? /*#__PURE__*/_jsxs(_Fragment, {
51
- children: [translation("Type"), " ", /*#__PURE__*/_jsx("span", {
49
+ children: isEmptyEditor ? editorPlaceholder || "Write Something..." : showPlaceHolder ? opacity && selected ? /*#__PURE__*/_jsxs(_Fragment, {
50
+ children: ["Type", " ", /*#__PURE__*/_jsx("span", {
52
51
  style: {
53
52
  backgroundColor: "#F2F6FA",
54
53
  padding: "0px 2px",
55
54
  borderRadius: "2px"
56
55
  },
57
56
  children: "/"
58
- }), " ", translation("browseElementText")]
57
+ }), " ", "to browse elements"]
59
58
  }) : "" : ""
60
59
  }));
61
60
  };
@@ -35,8 +35,8 @@ const SimpleTextStyle = ({
35
35
  height: "24px",
36
36
  overflow: "hidden",
37
37
  fontSize: "14px",
38
- display: "inline-flex",
39
- alignItems: "center",
38
+ display: 'inline-flex',
39
+ alignItems: 'center',
40
40
  "& .bg-pad-sl": {
41
41
  padding: "2px 4px 2px 4px",
42
42
  background: "transparent",
@@ -29,8 +29,7 @@ function DragButton({
29
29
  const dragElement = useRef(null);
30
30
  const [showTool, setShowTool] = useState(false);
31
31
  const {
32
- isMobile,
33
- translation
32
+ isMobile
34
33
  } = customProps || {};
35
34
  const onDragClick = () => {
36
35
  onDrag();
@@ -63,8 +62,7 @@ function DragButton({
63
62
  hideDelete,
64
63
  handleToolAction: (value, option, dragType) => {
65
64
  handleAction(value, option, dragType);
66
- },
67
- translation
65
+ }
68
66
  };
69
67
  return /*#__PURE__*/_jsx(_Fragment, {
70
68
  children: show || showTool ? /*#__PURE__*/_jsxs(_Fragment, {
@@ -12,11 +12,9 @@ import useTable, { TableProvider, getDefaultTableSelection } from "../../hooks/u
12
12
  import AddRowCol from "./AddRowCol";
13
13
  import TableTool from "./TableTool";
14
14
  import { MoreIcon, SettingsIcon } from "../../assets/svg/TableIcons";
15
- import { DeleteIcon } from "../../assets/svg/AIIcons";
16
15
  import { getSelectedCls } from "../../utils/helper";
17
16
  import SwipeableDrawerComponent from "../../common/SwipeableDrawer";
18
17
  import { jsx as _jsx } from "react/jsx-runtime";
19
- import { Fragment as _Fragment } from "react/jsx-runtime";
20
18
  import { jsxs as _jsxs } from "react/jsx-runtime";
21
19
  const hideRowDragBtns = (hide, dragRowBtnCls) => {
22
20
  const rowDragBtns = document.querySelectorAll(`.${dragRowBtnCls}`);
@@ -27,23 +25,19 @@ const hideRowDragBtns = (hide, dragRowBtnCls) => {
27
25
  const ToolTableComponent = props => {
28
26
  const {
29
27
  handleAction,
30
- editorTheme,
31
- translation
28
+ editorTheme
32
29
  } = props;
33
30
  const {
34
31
  updateTableSelection
35
32
  } = useTable();
36
- return /*#__PURE__*/_jsx("div", {
37
- children: /*#__PURE__*/_jsx(TableTool, {
38
- theme: editorTheme,
39
- handleToolAction: (type, option) => {
40
- handleAction(type, option);
41
- if (type === "duplicate") {
42
- updateTableSelection(getDefaultTableSelection());
43
- }
44
- },
45
- translation: translation
46
- })
33
+ return /*#__PURE__*/_jsx(TableTool, {
34
+ theme: editorTheme,
35
+ handleToolAction: (type, option) => {
36
+ handleAction(type, option);
37
+ if (type === "duplicate") {
38
+ updateTableSelection(getDefaultTableSelection());
39
+ }
40
+ }
47
41
  });
48
42
  };
49
43
  const MoreTableSettings = props => {
@@ -52,13 +46,9 @@ const MoreTableSettings = props => {
52
46
  handleAction,
53
47
  editorTheme,
54
48
  setExpandTools,
55
- classes,
56
- customProps
49
+ classes
57
50
  } = props;
58
51
  const isMobile = window.matchMedia("(max-width: 899px)")?.matches || false;
59
- const {
60
- translation
61
- } = customProps;
62
52
  return isMobile ? /*#__PURE__*/_jsx(SwipeableDrawerComponent, {
63
53
  open: Boolean(exandTools),
64
54
  onClose: () => {
@@ -85,8 +75,7 @@ const MoreTableSettings = props => {
85
75
  children: /*#__PURE__*/_jsx("div", {
86
76
  children: /*#__PURE__*/_jsx(ToolTableComponent, {
87
77
  handleAction: handleAction,
88
- editorTheme: editorTheme,
89
- translation: translation
78
+ editorTheme: editorTheme
90
79
  })
91
80
  })
92
81
  })
@@ -100,44 +89,34 @@ const ToolBar = props => {
100
89
  handleExpand,
101
90
  handleAction,
102
91
  exandTools,
103
- openSetttings,
104
- hideTools
92
+ openSetttings
105
93
  } = props;
106
94
  const {
107
95
  getSelectedCells
108
96
  } = useTable();
109
97
  const viewTool = selected && !showTool && getSelectedCells()?.length <= 1;
110
- return viewTool ? /*#__PURE__*/_jsx(Box, {
98
+ return viewTool ? /*#__PURE__*/_jsxs(Box, {
111
99
  component: "div",
112
100
  contentEditable: false,
113
101
  className: `tableToolBar ${exandTools ? "active" : ""}`,
114
102
  sx: classes.tableToolBar,
115
- children: !hideTools.includes("settings") ? /*#__PURE__*/_jsxs(_Fragment, {
116
- children: [/*#__PURE__*/_jsx(Tooltip, {
117
- title: "Settings",
118
- arrow: true,
119
- onClick: () => handleAction("settings"),
120
- children: /*#__PURE__*/_jsx(IconButton, {
121
- className: getSelectedCls("toolbtn toggle", openSetttings),
122
- children: /*#__PURE__*/_jsx(SettingsIcon, {})
123
- })
124
- }), /*#__PURE__*/_jsx(Tooltip, {
125
- title: "Show Tools",
126
- arrow: true,
127
- onClick: handleExpand,
128
- children: /*#__PURE__*/_jsx(IconButton, {
129
- className: getSelectedCls("toolbtn toggle", exandTools),
130
- children: /*#__PURE__*/_jsx(MoreIcon, {})
131
- })
132
- })]
133
- }) : /*#__PURE__*/_jsx(Tooltip, {
134
- title: "Delete",
103
+ children: [/*#__PURE__*/_jsx(Tooltip, {
104
+ title: "Settings",
135
105
  arrow: true,
136
- onClick: () => handleAction("delete"),
106
+ onClick: () => handleAction("settings"),
137
107
  children: /*#__PURE__*/_jsx(IconButton, {
138
- children: /*#__PURE__*/_jsx(DeleteIcon, {})
108
+ className: getSelectedCls("toolbtn toggle", openSetttings),
109
+ children: /*#__PURE__*/_jsx(SettingsIcon, {})
139
110
  })
140
- })
111
+ }), /*#__PURE__*/_jsx(Tooltip, {
112
+ title: "Show Tools",
113
+ arrow: true,
114
+ onClick: handleExpand,
115
+ children: /*#__PURE__*/_jsx(IconButton, {
116
+ className: getSelectedCls("toolbtn toggle", exandTools),
117
+ children: /*#__PURE__*/_jsx(MoreIcon, {})
118
+ })
119
+ })]
141
120
  }) : null;
142
121
  };
143
122
  const Table = props => {
@@ -154,8 +133,7 @@ const Table = props => {
154
133
  const classes = TableStyles(editorTheme);
155
134
  const {
156
135
  readOnly,
157
- isMobile,
158
- hideTools = []
136
+ isMobile
159
137
  } = customProps;
160
138
  const [openSetttings, setOpenSettings] = useState(false);
161
139
  const [exandTools, setExpandTools] = useState(null);
@@ -326,12 +304,12 @@ const Table = props => {
326
304
  ...attributes,
327
305
  children: children
328
306
  })
329
- }), !hideTools.includes("add_column") && /*#__PURE__*/_jsx(AddRowCol, {
307
+ }), /*#__PURE__*/_jsx(AddRowCol, {
330
308
  ...commonAddBtnProps,
331
309
  addType: "col",
332
310
  onAdd: addCol
333
311
  })]
334
- }), !hideTools.includes("add_column") && /*#__PURE__*/_jsx(AddRowCol, {
312
+ }), /*#__PURE__*/_jsx(AddRowCol, {
335
313
  ...commonAddBtnProps,
336
314
  addType: "row",
337
315
  onAdd: addRow
@@ -342,15 +320,13 @@ const Table = props => {
342
320
  handleExpand: handleExpand,
343
321
  handleAction: handleAction,
344
322
  exandTools: exandTools,
345
- openSetttings: openSetttings,
346
- hideTools: hideTools
323
+ openSetttings: openSetttings
347
324
  }), /*#__PURE__*/_jsx(MoreTableSettings, {
348
325
  exandTools: exandTools,
349
326
  handleAction: handleAction,
350
327
  editorTheme: editorTheme,
351
328
  setExpandTools: setExpandTools,
352
- classes: classes,
353
- customProps: customProps
329
+ classes: classes
354
330
  }), openSetttings ? /*#__PURE__*/_jsx(TablePopup, {
355
331
  element: tableProps?.styleProps || {},
356
332
  onSave: onSave,
@@ -48,8 +48,7 @@ const TableCell = props => {
48
48
  customProps
49
49
  } = props;
50
50
  const {
51
- readOnly,
52
- hideTools = []
51
+ readOnly
53
52
  } = customProps;
54
53
  const isMobile = window.matchMedia("(max-width: 899px)")?.matches || false;
55
54
  const {
@@ -107,8 +106,8 @@ const TableCell = props => {
107
106
  const isFirstRow = row === 0;
108
107
  const isFirstColumn = column === 0;
109
108
  const [hoverRow, hoverCol] = hoverPath ? hoverPath.slice(-2) : [];
110
- const showColDrag = isFirstRow && hoverCol === column && !resizing && !readOnly && !hideTools.includes("drag");
111
- const showRowDrag = isFirstColumn && hoverRow === row && !resizing && !readOnly && !hideTools.includes("drag");
109
+ const showColDrag = isFirstRow && hoverCol === column && !resizing && !readOnly;
110
+ const showRowDrag = isFirstColumn && hoverRow === row && !resizing && !readOnly;
112
111
  const [parentProps] = tableNode || [{}];
113
112
  const [rowProps] = rowNode || [{}];
114
113
  const tableDOM = table.getDOMNode(path, true);
@@ -15,11 +15,8 @@ const TablePopup = props => {
15
15
  styleType
16
16
  } = props;
17
17
  const styles = STYLE_TYPES[styleType] || tableStyle;
18
- const {
19
- translation
20
- } = customProps;
21
18
  return /*#__PURE__*/_jsx(StyleBuilder, {
22
- title: translation("Table"),
19
+ title: "Table",
23
20
  type: "gridStyle",
24
21
  element: element,
25
22
  onSave: onSave,