@symbo.ls/atoms 2.11.88 → 2.11.99

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/Block.js CHANGED
@@ -157,6 +157,11 @@ export const Block = {
157
157
  }
158
158
  }
159
159
 
160
+ export const Hr = {
161
+ tag: 'hr',
162
+ props: { margin: 'C1 0' }
163
+ }
164
+ export const Br = { tag: 'br' }
160
165
  export const Span = { tag: 'span' }
161
166
  export const List = {
162
167
  tag: 'ul',
package/Collection.js CHANGED
@@ -13,17 +13,10 @@ export const Collection = {
13
13
  else param = getChildStateInKey(param, state)
14
14
  }
15
15
 
16
- let data = isArray(param) ? param : []
17
-
18
- if (isObject(param)) {
19
- for (const obj in param) { data.push(param[obj]) }
20
- }
21
-
22
- data = data.map(item => !isObjectLike(item)
23
- ? {
24
- props: { value: item }
25
- }
26
- : item)
16
+ const data = (isArray(param) ? param : isObject(param) ? Object.values(param) : [])
17
+ .map(item => !isObjectLike(item)
18
+ ? { props: { value: item } }
19
+ : item)
27
20
 
28
21
  if (data.length) {
29
22
  const t = setTimeout(() => {
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@symbo.ls/atoms",
3
- "version": "2.11.88",
3
+ "version": "2.11.99",
4
4
  "main": "index.js",
5
5
  "license": "MIT",
6
- "gitHead": "75418cb6607afe62029eb23f06dc8e6324826491",
6
+ "gitHead": "ca2b0202aae2d8be7c5cba8b3d419fd1dc39c106",
7
7
  "dependencies": {
8
8
  "@domql/state": "latest",
9
9
  "@domql/utils": "latest",