@symbo.ls/sync 2.11.519 → 2.11.521

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.
@@ -40,7 +40,6 @@ const NOTIF_COLORS = {
40
40
  }
41
41
 
42
42
  export const connectedToSymbols = (clients, element, state) => {
43
- console.log(clients)
44
43
  if (clients.symbols) {
45
44
  if (!state.connected) {
46
45
  state.notifications.connected = {
@@ -86,37 +85,34 @@ export const Notifications = {
86
85
  },
87
86
 
88
87
  Notifications: {
89
- props: {
90
- position: 'fixed',
91
- left: 'A2',
92
- bottom: 'Z2',
93
- zIndex: '999'
94
- },
95
- childExtend: {
96
- extend: 'Notification',
97
- props: ({ state }) => ({
98
- animationDuration: 'C',
99
- background: NOTIF_COLORS[state.type || 'success'],
100
- icon: null,
101
- Flex: {
102
- Title: {
103
- text: '{{ title }}'
104
- },
105
- P: {
106
- text: '{{ title }}'
107
- }
88
+ position: 'fixed',
89
+ left: 'A2',
90
+ bottom: 'Z2',
91
+ zIndex: '999',
92
+ childExtends: 'Notification',
93
+ childProps: ({ state }) => ({
94
+ animationDuration: 'C',
95
+ background: NOTIF_COLORS[state.type || 'success'],
96
+ icon: null,
97
+ Flex: {
98
+ Title: {
99
+ text: '{{ title }}'
108
100
  },
109
- onRender: (e, el, s) => {
110
- el.setProps({ animation: 'fadeInUp' })
111
- },
112
- onClick: (e, el, s) => {
113
- delete s.notifications[el.key]
114
- el.setProps({ animation: 'fadeOutDown' })
115
- if (s.onClose) s.onClose(e, el, s)
101
+ P: {
102
+ text: '{{ title }}'
116
103
  }
117
- }),
118
- IconText: null
119
- },
120
- $stateCollection: ({ state }) => state.notifications
104
+ },
105
+ onRender: (e, el, s) => {
106
+ el.setProps({ animation: 'fadeInUp' })
107
+ },
108
+ onClick: (e, el, s) => {
109
+ delete s.notifications[el.key]
110
+ el.setProps({ animation: 'fadeOutDown' })
111
+ if (s.onClose) s.onClose(e, el, s)
112
+ }
113
+ }),
114
+ IconText: null,
115
+ childrenAs: 'state',
116
+ children: ({ state }) => state.notifications
121
117
  }
122
118
  }
@@ -28,7 +28,6 @@ const NOTIF_COLORS = {
28
28
  warning: "yellow"
29
29
  };
30
30
  const connectedToSymbols = (clients, element, state) => {
31
- console.log(clients);
32
31
  if (clients.symbols) {
33
32
  if (!state.connected) {
34
33
  state.notifications.connected = {
@@ -66,38 +65,35 @@ const Notifications = {
66
65
  notifications: []
67
66
  },
68
67
  Notifications: {
69
- props: {
70
- position: "fixed",
71
- left: "A2",
72
- bottom: "Z2",
73
- zIndex: "999"
74
- },
75
- childExtend: {
76
- extend: "Notification",
77
- props: ({ state }) => ({
78
- animationDuration: "C",
79
- background: NOTIF_COLORS[state.type || "success"],
80
- icon: null,
81
- Flex: {
82
- Title: {
83
- text: "{{ title }}"
84
- },
85
- P: {
86
- text: "{{ title }}"
87
- }
68
+ position: "fixed",
69
+ left: "A2",
70
+ bottom: "Z2",
71
+ zIndex: "999",
72
+ childExtends: "Notification",
73
+ childProps: ({ state }) => ({
74
+ animationDuration: "C",
75
+ background: NOTIF_COLORS[state.type || "success"],
76
+ icon: null,
77
+ Flex: {
78
+ Title: {
79
+ text: "{{ title }}"
88
80
  },
89
- onRender: (e, el, s) => {
90
- el.setProps({ animation: "fadeInUp" });
91
- },
92
- onClick: (e, el, s) => {
93
- delete s.notifications[el.key];
94
- el.setProps({ animation: "fadeOutDown" });
95
- if (s.onClose)
96
- s.onClose(e, el, s);
81
+ P: {
82
+ text: "{{ title }}"
97
83
  }
98
- }),
99
- IconText: null
100
- },
101
- $stateCollection: ({ state }) => state.notifications
84
+ },
85
+ onRender: (e, el, s) => {
86
+ el.setProps({ animation: "fadeInUp" });
87
+ },
88
+ onClick: (e, el, s) => {
89
+ delete s.notifications[el.key];
90
+ el.setProps({ animation: "fadeOutDown" });
91
+ if (s.onClose)
92
+ s.onClose(e, el, s);
93
+ }
94
+ }),
95
+ IconText: null,
96
+ childrenAs: "state",
97
+ children: ({ state }) => state.notifications
102
98
  }
103
99
  };
@@ -4,7 +4,6 @@ const NOTIF_COLORS = {
4
4
  warning: "yellow"
5
5
  };
6
6
  const connectedToSymbols = (clients, element, state) => {
7
- console.log(clients);
8
7
  if (clients.symbols) {
9
8
  if (!state.connected) {
10
9
  state.notifications.connected = {
@@ -42,39 +41,36 @@ const Notifications = {
42
41
  notifications: []
43
42
  },
44
43
  Notifications: {
45
- props: {
46
- position: "fixed",
47
- left: "A2",
48
- bottom: "Z2",
49
- zIndex: "999"
50
- },
51
- childExtend: {
52
- extend: "Notification",
53
- props: ({ state }) => ({
54
- animationDuration: "C",
55
- background: NOTIF_COLORS[state.type || "success"],
56
- icon: null,
57
- Flex: {
58
- Title: {
59
- text: "{{ title }}"
60
- },
61
- P: {
62
- text: "{{ title }}"
63
- }
44
+ position: "fixed",
45
+ left: "A2",
46
+ bottom: "Z2",
47
+ zIndex: "999",
48
+ childExtends: "Notification",
49
+ childProps: ({ state }) => ({
50
+ animationDuration: "C",
51
+ background: NOTIF_COLORS[state.type || "success"],
52
+ icon: null,
53
+ Flex: {
54
+ Title: {
55
+ text: "{{ title }}"
64
56
  },
65
- onRender: (e, el, s) => {
66
- el.setProps({ animation: "fadeInUp" });
67
- },
68
- onClick: (e, el, s) => {
69
- delete s.notifications[el.key];
70
- el.setProps({ animation: "fadeOutDown" });
71
- if (s.onClose)
72
- s.onClose(e, el, s);
57
+ P: {
58
+ text: "{{ title }}"
73
59
  }
74
- }),
75
- IconText: null
76
- },
77
- $stateCollection: ({ state }) => state.notifications
60
+ },
61
+ onRender: (e, el, s) => {
62
+ el.setProps({ animation: "fadeInUp" });
63
+ },
64
+ onClick: (e, el, s) => {
65
+ delete s.notifications[el.key];
66
+ el.setProps({ animation: "fadeOutDown" });
67
+ if (s.onClose)
68
+ s.onClose(e, el, s);
69
+ }
70
+ }),
71
+ IconText: null,
72
+ childrenAs: "state",
73
+ children: ({ state }) => state.notifications
78
74
  }
79
75
  };
80
76
  export {
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@symbo.ls/sync",
3
- "version": "2.11.519",
3
+ "version": "2.11.521",
4
4
  "main": "index.js",
5
5
  "module": "index.js",
6
- "gitHead": "b6a31714f696503b8da6450c673654b6b9314621",
6
+ "gitHead": "7f30a0846925a2f6db7899fde8bd96c0c87c1bb5",
7
7
  "files": [
8
8
  "*.js",
9
9
  "dist"
@@ -32,10 +32,10 @@
32
32
  "@domql/globals": "latest",
33
33
  "@domql/router": "^2.5.0",
34
34
  "@domql/utils": "^2.5.0",
35
- "@symbo.ls/init": "^2.11.515",
36
- "@symbo.ls/scratch": "^2.11.515",
37
- "@symbo.ls/socket": "^2.11.515",
38
- "@symbo.ls/uikit": "^2.11.519"
35
+ "@symbo.ls/init": "^2.11.521",
36
+ "@symbo.ls/scratch": "^2.11.521",
37
+ "@symbo.ls/socket": "^2.11.521",
38
+ "@symbo.ls/uikit": "^2.11.521"
39
39
  },
40
40
  "devDependencies": {
41
41
  "@babel/core": "^7.12.0"