@flozy/editor 1.3.0 → 1.3.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (37) hide show
  1. package/dist/Editor/CommonEditor.js +14 -21
  2. package/dist/Editor/DialogWrapper.js +5 -0
  3. package/dist/Editor/Elements/Accordion/AccordionButton.js +10 -7
  4. package/dist/Editor/Elements/AppHeader/AppHeaderButton.js +7 -4
  5. package/dist/Editor/Elements/Button/ButtonToolIcon.js +7 -4
  6. package/dist/Editor/Elements/Carousel/Carousel.js +6 -2
  7. package/dist/Editor/Elements/Carousel/CarouselButton.js +7 -4
  8. package/dist/Editor/Elements/Color Picker/ColorPicker.js +3 -1
  9. package/dist/Editor/Elements/Embed/Embed.css +2 -2
  10. package/dist/Editor/Elements/Embed/Embed.js +17 -12
  11. package/dist/Editor/Elements/Embed/Image.js +11 -11
  12. package/dist/Editor/Elements/Embed/Video.js +13 -10
  13. package/dist/Editor/Elements/Grid/Grid.js +14 -1
  14. package/dist/Editor/Elements/Grid/GridButton.js +47 -7
  15. package/dist/Editor/Elements/Grid/GridItem.js +16 -26
  16. package/dist/Editor/Elements/Grid/templates/full_grid.png +0 -0
  17. package/dist/Editor/Elements/Grid/templates/index.js +5 -0
  18. package/dist/Editor/Elements/Link/LinkButton.js +12 -8
  19. package/dist/Editor/Elements/NewLine/NewLineButton.js +12 -9
  20. package/dist/Editor/Elements/PageSettings/PageSettingsButton.js +7 -4
  21. package/dist/Editor/Elements/Signature/SignatureButton.js +7 -4
  22. package/dist/Editor/Elements/Signature/SignaturePopup.js +2 -4
  23. package/dist/Editor/Elements/Table/Table.js +4 -1
  24. package/dist/Editor/Elements/Table/TableCell.js +17 -9
  25. package/dist/Editor/Elements/Table/TableSelector.js +12 -9
  26. package/dist/Editor/Toolbar/FormatTools/BlockButton.js +3 -1
  27. package/dist/Editor/Toolbar/FormatTools/MarkButton.js +3 -1
  28. package/dist/Editor/Toolbar/Toolbar.js +18 -13
  29. package/dist/Editor/Toolbar/toolbarGroups.js +34 -17
  30. package/dist/Editor/common/Button.js +10 -6
  31. package/dist/Editor/common/ColorPickerButton.js +6 -1
  32. package/dist/Editor/common/Icon.js +1 -1
  33. package/dist/Editor/common/StyleBuilder/fieldTypes/bannerSpacing.js +20 -20
  34. package/dist/Editor/common/StyleBuilder/fieldTypes/borderRadius.js +19 -19
  35. package/dist/Editor/common/Uploader.js +4 -3
  36. package/dist/Editor/plugins/withEmbeds.js +0 -1
  37. package/package.json +1 -1
@@ -10,7 +10,8 @@ const Uploader = props => {
10
10
  value,
11
11
  data,
12
12
  onUploaded,
13
- customProps
13
+ customProps,
14
+ disableUpload = false
14
15
  } = props;
15
16
  const {
16
17
  key
@@ -52,7 +53,7 @@ const Uploader = props => {
52
53
  children: /*#__PURE__*/_jsxs(Grid, {
53
54
  container: true,
54
55
  justifyContent: "space-between",
55
- children: [/*#__PURE__*/_jsxs(Button, {
56
+ children: [!disableUpload ? /*#__PURE__*/_jsxs(Button, {
56
57
  component: "label",
57
58
  sx: {
58
59
  display: "inline-flex",
@@ -68,7 +69,7 @@ const Uploader = props => {
68
69
  },
69
70
  onChange: handleChange
70
71
  })]
71
- }), base64 ? /*#__PURE__*/_jsx(Button, {
72
+ }) : null, base64 ? /*#__PURE__*/_jsx(Button, {
72
73
  variant: "contained",
73
74
  color: "secondary",
74
75
  onClick: onRemoveBG,
@@ -16,7 +16,6 @@ const withEmbeds = editor => {
16
16
  editor.insertBreak = (...args) => {
17
17
  const parentPath = Path.parent(editor.selection.focus.path);
18
18
  const parentNode = Node.get(editor, parentPath);
19
- console.log(parentNode, parentPath, args);
20
19
  if (editor.isVoid(parentNode)) {
21
20
  const nextPath = Path.next(parentPath);
22
21
  Transforms.insertNodes(editor, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flozy/editor",
3
- "version": "1.3.0",
3
+ "version": "1.3.2",
4
4
  "description": "An Editor for flozy app brain",
5
5
  "files": [
6
6
  "dist"