@symbo.ls/atoms 2.11.323 → 2.11.325

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
@@ -165,7 +165,7 @@ export const Block = {
165
165
  alignSelf: ({ props }) => !isUndefined(props.alignSelf) && ({
166
166
  alignSelf: props.alignSelf
167
167
  }),
168
- order: ({ props }) => props.order && ({
168
+ order: ({ props }) => !isUndefined(props.order) && ({
169
169
  order: props.order
170
170
  }),
171
171
 
package/Collection.js CHANGED
@@ -1,7 +1,7 @@
1
1
  'use strict'
2
2
 
3
3
  import { isState, getChildStateInKey } from '@domql/state'
4
- import { isString, isNot, isArray, isObject, isObjectLike, deepClone } from '@domql/utils'
4
+ import { isString, isNot, isArray, isObject, isObjectLike, deepClone, deepCloneWithExtend } from '@domql/utils'
5
5
 
6
6
  export const Collection = {
7
7
  define: {
@@ -24,11 +24,11 @@ export const Collection = {
24
24
  ref.__noCollectionDifference = true
25
25
  return
26
26
  } else {
27
- ref.__collectionCache = deepClone(param)
27
+ ref.__collectionCache = param
28
28
  delete ref.__noCollectionDifference
29
29
  }
30
30
  } else {
31
- ref.__collectionCache = deepClone(param)
31
+ ref.__collectionCache = param
32
32
  }
33
33
 
34
34
  const obj = {
@@ -40,7 +40,7 @@ export const Collection = {
40
40
 
41
41
  for (const key in param) {
42
42
  const value = param[key]
43
- obj[key] = isObjectLike(value) ? value : { value }
43
+ if (value) obj[key] = isObjectLike(value) ? value : { value }
44
44
  }
45
45
 
46
46
  el.removeContent()
@@ -83,7 +83,7 @@ export const Collection = {
83
83
  if (isNot(param)('array', 'object')) return
84
84
 
85
85
  const { __ref: ref } = el
86
- param = deepClone(param)
86
+ param = deepCloneWithExtend(param)
87
87
 
88
88
  if (ref.__stateCollectionCache) {
89
89
  const equals = JSON.stringify(param) === JSON.stringify(ref.__stateCollectionCache)
@@ -107,7 +107,7 @@ export const Collection = {
107
107
 
108
108
  for (const key in param) {
109
109
  const value = param[key]
110
- obj[key] = { state: isObjectLike(value) ? value : { value } }
110
+ if (value) obj[key] = { state: isObjectLike(value) ? value : { value } }
111
111
  }
112
112
 
113
113
  el.removeContent()
@@ -151,7 +151,7 @@ export const Collection = {
151
151
 
152
152
  for (const key in param) {
153
153
  const value = param[key]
154
- obj[key] = { props: isObjectLike(value) ? value : { value } }
154
+ if (value) obj[key] = { props: isObjectLike(value) ? value : { value } }
155
155
  }
156
156
 
157
157
  el.removeContent()
package/Overflow.js CHANGED
@@ -2,7 +2,10 @@
2
2
 
3
3
  export const Overflow = {
4
4
  class: {
5
- overflow: ({ props }) => props.overflow && ({ overflow: props.overflow }),
5
+ overflow: ({ props }) => props.overflow && ({
6
+ overflow: props.overflow,
7
+ scrollBehavior: 'smooth'
8
+ }),
6
9
  overflowX: ({ props }) => props.overflowX && ({ overflowX: props.overflowX }),
7
10
  overflowY: ({ props }) => props.overflowY && ({ overflowY: props.overflowY })
8
11
  }
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@symbo.ls/atoms",
3
- "version": "2.11.323",
3
+ "version": "2.11.325",
4
4
  "main": "index.js",
5
5
  "license": "MIT",
6
- "gitHead": "ad959e4a3b3722e3e0f36f7a98298ea179620281",
6
+ "gitHead": "0ac8322ab9267498fbdcde2ade499be5e79b0478",
7
7
  "dependencies": {
8
8
  "@domql/state": "latest",
9
9
  "@domql/utils": "latest",