@flozy/editor 5.3.5 → 5.3.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (123) hide show
  1. package/dist/Editor/CommonEditor.js +8 -14
  2. package/dist/Editor/Editor.css +22 -58
  3. package/dist/Editor/Elements/Accordion/Accordion.js +1 -8
  4. package/dist/Editor/Elements/AppHeader/AppHeader.js +6 -6
  5. package/dist/Editor/Elements/Button/EditorButton.js +2 -9
  6. package/dist/Editor/Elements/Color Picker/ColorButtons.js +2 -4
  7. package/dist/Editor/Elements/Divider/Divider.js +9 -24
  8. package/dist/Editor/Elements/Embed/Image.js +12 -31
  9. package/dist/Editor/Elements/Embed/Video.js +2 -13
  10. package/dist/Editor/Elements/Form/Form.js +0 -1
  11. package/dist/Editor/Elements/FreeGrid/breakpointConstants.js +4 -4
  12. package/dist/Editor/Elements/FreeGrid/styles.js +1 -2
  13. package/dist/Editor/Elements/Grid/GridItem.js +0 -2
  14. package/dist/Editor/Elements/Grid/Styles.js +0 -44
  15. package/dist/Editor/Elements/List/CheckList.js +1 -2
  16. package/dist/Editor/Elements/PageSettings/PageSettingsButton.js +0 -1
  17. package/dist/Editor/Elements/Search/SearchAttachment.js +0 -1
  18. package/dist/Editor/Elements/Signature/SignaturePopup.js +4 -4
  19. package/dist/Editor/Elements/SimpleText/index.js +1 -8
  20. package/dist/Editor/Elements/SimpleText/style.js +1 -10
  21. package/dist/Editor/Elements/TopBanner/TopBanner.js +1 -2
  22. package/dist/Editor/MiniEditor.js +1 -15
  23. package/dist/Editor/Styles/EditorStyles.js +3 -5
  24. package/dist/Editor/Toolbar/FormatTools/FontFamilyAutocomplete.js +1 -17
  25. package/dist/Editor/Toolbar/FormatTools/TextSize.js +3 -5
  26. package/dist/Editor/Toolbar/PopupTool/PopupToolStyle.js +72 -210
  27. package/dist/Editor/Toolbar/PopupTool/TextFormat.js +8 -55
  28. package/dist/Editor/Toolbar/Toolbar.js +0 -6
  29. package/dist/Editor/Toolbar/toolbarGroups.js +0 -4
  30. package/dist/Editor/assets/svg/SettingsIcon.js +4 -4
  31. package/dist/Editor/common/ColorPickerButton.js +3 -5
  32. package/dist/Editor/common/DnD/Draggable.js +1 -2
  33. package/dist/Editor/common/FontLoader/FontLoader.js +4 -4
  34. package/dist/Editor/common/Icon.js +0 -6
  35. package/dist/Editor/common/ImageSelector/Options/Upload.js +1 -2
  36. package/dist/Editor/common/ImageSelector/Styles.js +6 -47
  37. package/dist/Editor/common/ImageSelector/UploadStyles.js +6 -18
  38. package/dist/Editor/common/MentionsPopup/Styles.js +122 -109
  39. package/dist/Editor/common/RnD/ElementSettings/Settings/FormSettings.js +0 -1
  40. package/dist/Editor/common/RnD/GuideLines/styles.js +3 -3
  41. package/dist/Editor/common/RnD/ShadowElement.js +1 -1
  42. package/dist/Editor/common/RnD/SwitchViewport/SwitchViewport.js +2 -14
  43. package/dist/Editor/common/RnD/Utils/gridDropItem.js +6 -9
  44. package/dist/Editor/common/RnD/index.js +1 -2
  45. package/dist/Editor/common/Section/index.js +3 -3
  46. package/dist/Editor/common/Section/styles.js +1 -5
  47. package/dist/Editor/common/Shorthands/elements.js +1 -13
  48. package/dist/Editor/common/StyleBuilder/fieldStyle.js +1 -2
  49. package/dist/Editor/common/StyleBuilder/fieldTypes/backgroundImage.js +3 -9
  50. package/dist/Editor/common/StyleBuilder/fieldTypes/bannerSpacing.js +3 -27
  51. package/dist/Editor/common/StyleBuilder/fieldTypes/borderRadius.js +2 -15
  52. package/dist/Editor/common/StyleBuilder/fieldTypes/card.js +2 -10
  53. package/dist/Editor/common/StyleBuilder/fieldTypes/color.js +1 -2
  54. package/dist/Editor/common/StyleBuilder/fieldTypes/fontSize.js +1 -1
  55. package/dist/Editor/common/StyleBuilder/fieldTypes/icons.js +0 -2
  56. package/dist/Editor/common/StyleBuilder/fieldTypes/index.js +1 -3
  57. package/dist/Editor/common/StyleBuilder/fieldTypes/radiusStyle.js +4 -4
  58. package/dist/Editor/common/StyleBuilder/fieldTypes/saveAsTemplate.js +6 -22
  59. package/dist/Editor/common/StyleBuilder/fieldTypes/selectBox.js +2 -21
  60. package/dist/Editor/common/StyleBuilder/fieldTypes/text.js +4 -15
  61. package/dist/Editor/common/StyleBuilder/fieldTypes/textOptions.js +0 -7
  62. package/dist/Editor/common/StyleBuilder/index.js +9 -17
  63. package/dist/Editor/common/StyleBuilder/pageSettingsStyle.js +0 -4
  64. package/dist/Editor/common/ToolbarIcon.js +1 -2
  65. package/dist/Editor/common/Uploader.js +36 -46
  66. package/dist/Editor/common/iconListV2.js +130 -348
  67. package/dist/Editor/common/iconslist.js +3 -6
  68. package/dist/Editor/commonStyle.js +4 -290
  69. package/dist/Editor/helper/index.js +3 -16
  70. package/dist/Editor/helper/theme.js +1 -24
  71. package/dist/Editor/hooks/useMouseMove.js +2 -5
  72. package/dist/Editor/plugins/withCustomDeleteBackward.js +2 -33
  73. package/dist/Editor/plugins/withEmbeds.js +26 -30
  74. package/dist/Editor/utils/SlateUtilityFunctions.js +4 -27
  75. package/dist/Editor/utils/button.js +4 -4
  76. package/dist/Editor/utils/helper.js +13 -40
  77. package/dist/Editor/utils/pageSettings.js +2 -14
  78. package/package.json +2 -2
  79. package/dist/Editor/Elements/DataView/DataView.js +0 -124
  80. package/dist/Editor/Elements/DataView/DataViewButton.js +0 -23
  81. package/dist/Editor/Elements/DataView/Layouts/ColumnView.js +0 -67
  82. package/dist/Editor/Elements/DataView/Layouts/DataTypes/CheckType.js +0 -33
  83. package/dist/Editor/Elements/DataView/Layouts/DataTypes/Components/Select.js +0 -162
  84. package/dist/Editor/Elements/DataView/Layouts/DataTypes/Components/SimpleSelect.js +0 -40
  85. package/dist/Editor/Elements/DataView/Layouts/DataTypes/Components/styles.js +0 -67
  86. package/dist/Editor/Elements/DataView/Layouts/DataTypes/DateType.js +0 -35
  87. package/dist/Editor/Elements/DataView/Layouts/DataTypes/MultiSelectType.js +0 -39
  88. package/dist/Editor/Elements/DataView/Layouts/DataTypes/NumberType.js +0 -30
  89. package/dist/Editor/Elements/DataView/Layouts/DataTypes/PersonType.js +0 -30
  90. package/dist/Editor/Elements/DataView/Layouts/DataTypes/SelectType.js +0 -35
  91. package/dist/Editor/Elements/DataView/Layouts/DataTypes/TextType.js +0 -36
  92. package/dist/Editor/Elements/DataView/Layouts/DataTypes/index.js +0 -17
  93. package/dist/Editor/Elements/DataView/Layouts/FilterSort/SortOptions/ChooseField.js +0 -29
  94. package/dist/Editor/Elements/DataView/Layouts/FilterSort/SortOptions/ChooseSort.js +0 -38
  95. package/dist/Editor/Elements/DataView/Layouts/FilterSort/SortOptions/index.js +0 -74
  96. package/dist/Editor/Elements/DataView/Layouts/FilterSort/index.js +0 -64
  97. package/dist/Editor/Elements/DataView/Layouts/FilterSort/styles.js +0 -106
  98. package/dist/Editor/Elements/DataView/Layouts/FilterView.js +0 -174
  99. package/dist/Editor/Elements/DataView/Layouts/Formula.js +0 -29
  100. package/dist/Editor/Elements/DataView/Layouts/Options/AddOptions.js +0 -113
  101. package/dist/Editor/Elements/DataView/Layouts/Options/AddProperty.js +0 -37
  102. package/dist/Editor/Elements/DataView/Layouts/Options/AllProperties.js +0 -111
  103. package/dist/Editor/Elements/DataView/Layouts/Options/ChangeProperty.js +0 -60
  104. package/dist/Editor/Elements/DataView/Layouts/Options/ColumnsList.js +0 -36
  105. package/dist/Editor/Elements/DataView/Layouts/Options/Constants.js +0 -101
  106. package/dist/Editor/Elements/DataView/Layouts/Options/EditOption.js +0 -160
  107. package/dist/Editor/Elements/DataView/Layouts/Options/EditProperty.js +0 -190
  108. package/dist/Editor/Elements/DataView/Layouts/Options/FilterProperty.js +0 -42
  109. package/dist/Editor/Elements/DataView/Layouts/Options/PropertyList.js +0 -30
  110. package/dist/Editor/Elements/DataView/Layouts/Options/index.js +0 -110
  111. package/dist/Editor/Elements/DataView/Layouts/Options/styles.js +0 -179
  112. package/dist/Editor/Elements/DataView/Layouts/TableStyles.js +0 -112
  113. package/dist/Editor/Elements/DataView/Layouts/TableView.js +0 -227
  114. package/dist/Editor/Elements/DataView/Layouts/ViewData.js +0 -80
  115. package/dist/Editor/Elements/DataView/Layouts/colStyles.js +0 -10
  116. package/dist/Editor/Elements/DataView/Layouts/index.js +0 -25
  117. package/dist/Editor/Elements/DataView/Providers/DataViewProvider.js +0 -281
  118. package/dist/Editor/Elements/DataView/Utils/globalSearch.js +0 -15
  119. package/dist/Editor/Elements/DataView/Utils/multiSortRows.js +0 -74
  120. package/dist/Editor/Elements/DataView/styles.js +0 -154
  121. package/dist/Editor/common/StyleBuilder/fieldTypes/lineSpacing.js +0 -79
  122. package/dist/Editor/helper/enforceDateFormat.js +0 -41
  123. package/dist/Editor/utils/dataView.js +0 -43
@@ -4,7 +4,6 @@ import { convertBase64 } from "../utils/helper";
4
4
  import { uploadFile } from "../service/fileupload";
5
5
  import Icon from "./Icon";
6
6
  import UploadStyles from "../common/ImageSelector/UploadStyles";
7
- import { useEditorContext } from "../hooks/useMouseMove";
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";
@@ -19,9 +18,6 @@ const Uploader = props => {
19
18
  const [base64, setBase64] = useState(value?.url);
20
19
  const [fileName, setFileName] = useState("");
21
20
  const [uploading, setUploading] = useState(false);
22
- const {
23
- theme
24
- } = useEditorContext();
25
21
  const handleChange = async e => {
26
22
  const uFile = e.target.files[0];
27
23
  const strImage = await convertBase64(uFile);
@@ -83,57 +79,51 @@ const Uploader = props => {
83
79
  });
84
80
  }
85
81
  };
86
- return /*#__PURE__*/_jsxs(_Fragment, {
82
+ return /*#__PURE__*/_jsxs(Grid, {
83
+ container: true,
84
+ sx: classes.uploadContainer,
87
85
  children: [/*#__PURE__*/_jsx(Grid, {
88
86
  item: true,
89
87
  xs: 12,
90
88
  children: uploading ? "Uploading..." : ""
91
89
  }), /*#__PURE__*/_jsx(Grid, {
92
- container: true,
93
- sx: classes.uploadContainer,
94
- children: /*#__PURE__*/_jsx(Grid, {
95
- item: true,
96
- xs: 12,
97
- className: "btn--wrpr",
98
- style: {
99
- ...getBackground()
100
- },
101
- sx: classes.uploadField,
102
- children: !uploading ? /*#__PURE__*/_jsx(Grid, {
103
- className: "uploadImageSection",
104
- children: base64 ? renderThumb() : /*#__PURE__*/_jsx(Grid, {
105
- className: "uploadImageText",
106
- sx: {
107
- background: `${theme?.palette?.editor?.inputFieldBgColor}`,
108
- border: `1px solid ${theme?.palette?.editor?.inputFieldBorder}`
90
+ item: true,
91
+ xs: 12,
92
+ className: "btn--wrpr",
93
+ style: {
94
+ ...getBackground()
95
+ },
96
+ sx: classes.uploadField,
97
+ children: !uploading ? /*#__PURE__*/_jsx(Grid, {
98
+ className: "uploadImageSection",
99
+ children: base64 ? renderThumb() : /*#__PURE__*/_jsx(Grid, {
100
+ className: "uploadImageText",
101
+ children: /*#__PURE__*/_jsxs(Button, {
102
+ component: "label",
103
+ variant: "text",
104
+ style: {
105
+ background: "none",
106
+ width: "100%"
109
107
  },
110
- children: /*#__PURE__*/_jsxs(Button, {
111
- component: "label",
112
- variant: "text",
108
+ sx: classes.uploadIcon,
109
+ children: [/*#__PURE__*/_jsx("input", {
110
+ type: "file",
111
+ style: {
112
+ opacity: 0,
113
+ width: "0px"
114
+ },
115
+ onChange: handleChange
116
+ }), /*#__PURE__*/_jsx(Icon, {
117
+ icon: "fileUpload"
118
+ }), /*#__PURE__*/_jsxs("span", {
113
119
  style: {
114
- background: "none",
115
- width: "100%"
120
+ paddingLeft: "8px"
116
121
  },
117
- sx: classes.uploadIcon,
118
- children: [/*#__PURE__*/_jsx("input", {
119
- type: "file",
120
- style: {
121
- opacity: 0,
122
- width: "0px"
123
- },
124
- onChange: handleChange
125
- }), /*#__PURE__*/_jsx(Icon, {
126
- icon: "fileUpload"
127
- }), /*#__PURE__*/_jsxs("span", {
128
- style: {
129
- paddingLeft: "8px"
130
- },
131
- children: ["upload ", title || "image"]
132
- })]
133
- })
122
+ children: ["upload ", title || "image"]
123
+ })]
134
124
  })
135
- }) : null
136
- })
125
+ })
126
+ }) : null
137
127
  })]
138
128
  });
139
129
  };