@symbo.ls/preview 0.0.70 → 0.0.71

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.70",
5
+ "version": "0.0.71",
6
6
  "repository": "https://github.com/rackai/editor",
7
7
  "main": "src/index.js",
8
8
  "scripts": {
@@ -1,6 +1,6 @@
1
1
  'use strict'
2
2
 
3
- import { PageTemplate, Flex } from '@symbo.ls/components'
3
+ import { PageTemplate, Overlay, Flex } from '@symbo.ls/components'
4
4
 
5
5
  import MASK1 from '../assets/mask1.png'
6
6
  import MASK2 from '../assets/mask2.png' // eslint-disable-line
@@ -34,7 +34,9 @@ export const DisabledPage = {
34
34
  overflow: 'hidden'
35
35
  },
36
36
 
37
- Overlay: {
37
+ disablingOverlay: {
38
+ extend: [Overlay, Flex],
39
+
38
40
  props: {
39
41
  overflow: 'hidden',
40
42
  background: 'shadow-overlay',
@@ -43,26 +45,23 @@ export const DisabledPage = {
43
45
  },
44
46
 
45
47
  Overlay: {
46
- props: {
47
- background: 'gradient-colorful',
48
- inset: '0 0 0 0',
49
- opacity: '.9',
50
- style: {
51
- // filter: 'blur(110px)',
52
- WebkitMaskImage: 'url(' + MASK1 + ')',
53
- WebkitMaskSize: '100% 100%'
54
- }
48
+ background: 'gradient-colorful',
49
+ inset: '0 0 0 0',
50
+ opacity: '.9',
51
+ style: {
52
+ WebkitMaskImage: 'url(' + MASK1 + ')',
53
+ WebkitMaskSize: '100% 100%'
55
54
  }
56
55
  },
57
56
 
58
- H4: {
59
- position: 'absolute',
60
- margin: '0',
57
+ H3: {
58
+ margin: 'auto auto 0',
59
+ padding: 'C1',
61
60
  color: 'black',
62
- left: 'C',
63
- bottom: 'B',
64
- text: 'Custom library will come up soon…',
65
- animation: 'fadeInUpLong',
61
+ width: '100%',
62
+ maxWidth: 'J-default',
63
+ text: 'Custom library will come up',
64
+ animation: 'fadeInUpShort',
66
65
  animationDuration: 'G',
67
66
  animationDelay: 'G'
68
67
  }
@@ -66,13 +66,14 @@ const modes = {
66
66
 
67
67
  ThemeButtons: {
68
68
  position: 'absolute',
69
- left: 'X2',
70
- right: 'X2',
71
- bottom: 'X2',
69
+ left: 'W',
70
+ right: 'W',
71
+ bottom: 'W',
72
72
  opacity: '0',
73
73
  transition: 'B default-bezier',
74
74
  transitionProperty: 'transform, opacity',
75
- transform: 'translate3d(0, 100%, 0)'
75
+ transform: 'translate3d(0, 100%, 0)',
76
+ columnGap: 'W'
76
77
  },
77
78
 
78
79
  Span: {
@@ -13,7 +13,7 @@ export const Init = {
13
13
  props: {
14
14
  boxSize: '100% 100%',
15
15
  gap: 'A',
16
- padding: '7.5% E1 D1 12.5%'
16
+ padding: '8.5% E1 E1 12.5%'
17
17
  },
18
18
 
19
19
  define: { routes: param => param },
package/src/state.js CHANGED
@@ -7,8 +7,9 @@ import FIT from '../user_data/4it' // eslint-disable-line no-unused-vars
7
7
 
8
8
  export const state = {
9
9
  globalTheme: 'dark',
10
- // SYSTEM: {}
10
+ appKey: '4it.symbo.ls',
11
11
  SYSTEM: FIT
12
+ // SYSTEM: {}
12
13
  // SYSTEM
13
14
  // SYSTEM: BYLD
14
15
  }
package/src/sync.js CHANGED
@@ -3,7 +3,7 @@
3
3
  // import { init } from '@symbo.ls/init'
4
4
  import { connect, send } from '@symbo.ls/socket/client'
5
5
 
6
- const receive = (element, state) => {
6
+ const onChange = (element, state) => {
7
7
  return (event, data) => {
8
8
  state.update({ SYSTEM: data })
9
9
  }
@@ -12,13 +12,12 @@ const receive = (element, state) => {
12
12
  export const Sync = {
13
13
  on: {
14
14
  init: (el, s) => {
15
- connect('ws://localhost:1001', receive(el, s))
15
+ if (s.appKey) connect(s.appKey, onChange(el, s))
16
16
  },
17
17
  stateUpdated: (el, s, changes) => {
18
- if (changes.SYSTEM) {
19
- // init(changes.SYSTEM)
20
- console.log(changes)
18
+ if (s.appKey && changes.SYSTEM) {
21
19
  send(changes.SYSTEM, s.SYSTEM)
20
+ // init(changes.SYSTEM)
22
21
  }
23
22
  }
24
23
  }