@symbo.ls/preview 0.0.67 → 0.0.68

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.
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@symbo.ls/preview",
3
3
  "description": "",
4
4
  "author": "",
5
- "version": "0.0.67",
5
+ "version": "0.0.68",
6
6
  "repository": "https://github.com/rackai/editor",
7
7
  "main": "src/index.js",
8
8
  "scripts": {
@@ -13,7 +13,6 @@ export * from './ThemeButtons'
13
13
  export * from './ContinueButton'
14
14
  export * from './SlidersWithResponsive'
15
15
  export * from './HeaderHeading'
16
- export * from './UploadImage'
17
16
  export * from './ColorsPalette'
18
17
  export * from './ShapePreview'
19
18
  export * from './SpacingPreview'
@@ -53,6 +53,13 @@ export default {
53
53
  spacingRatio: s.ratio,
54
54
  direction: s.direction
55
55
  }, { preventUpdate: true })
56
+
57
+ // const componentNode = el.comp.node
58
+ // const SVG = elementToSVG(componentNode)
59
+ // const svgString = new window.XMLSerializer().serializeToString(SVG)
60
+ // console.log(SVG)
61
+ // console.log(svgString)
62
+
56
63
  updateReset()
57
64
  }
58
65
  }
@@ -114,9 +114,12 @@ const content = {
114
114
 
115
115
  colors,
116
116
 
117
- UploadImage: {},
117
+ ImageColorPicker: {},
118
118
  ColorsPalette: {
119
- margin: '- - auto'
119
+ props: ({ state }) => ({
120
+ hide: state.imageUrl,
121
+ margin: '- - auto'
122
+ })
120
123
  }
121
124
  }
122
125
 
@@ -1,28 +0,0 @@
1
- 'use strict'
2
-
3
- import { Flex, CommonField, Upload, ClickableItem } from '@symbo.ls/components'
4
-
5
- export const UploadImage = {
6
- extend: [CommonField, Flex],
7
-
8
- props: {
9
- title: { text: 'Pick from the picture' },
10
- element: {
11
- border: 'none',
12
- background: 'gray1',
13
- padding: 'Z2 A2 Z2 Z2',
14
- gap: 'Z',
15
- flow: 'row',
16
- icon: { style: { fontSize: '52px' } },
17
- p: {
18
- text: 'Upload or drop the image'
19
- }
20
- }
21
- },
22
- title: {},
23
- element: {
24
- extend: [Upload, Flex, ClickableItem],
25
- icon: { style: { fontSize: '52px' } },
26
- p: { span: null }
27
- }
28
- }