@symbo.ls/atoms 2.11.307 → 2.11.310

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
@@ -77,6 +77,7 @@ export const Block = {
77
77
  borderWidth: ({ props, deps }) => deps.transformSizeRatio('borderWidth', props),
78
78
 
79
79
  padding: ({ props, deps }) => deps.transformSizeRatio('padding', props),
80
+ scrollPadding: ({ props, deps }) => deps.transformSizeRatio('scrollPadding', props),
80
81
  paddingInline: ({ props, deps }) => {
81
82
  if (typeof props.paddingInline !== 'string') return
82
83
  const [paddingInlineStart, paddingInlineEnd] = props.paddingInline.split(' ')
package/Collection.js CHANGED
@@ -16,8 +16,7 @@ export const Collection = {
16
16
  if (isNot(param)('array', 'object')) return
17
17
 
18
18
  const { __ref: ref } = el
19
-
20
- if (isObjectLike(param)) param = deepClone(param)
19
+ param = deepClone(param)
21
20
 
22
21
  if (ref.__collectionCache) {
23
22
  const equals = JSON.stringify(param) === JSON.stringify(ref.__collectionCache)
@@ -84,6 +83,7 @@ export const Collection = {
84
83
  if (isNot(param)('array', 'object')) return
85
84
 
86
85
  const { __ref: ref } = el
86
+ param = deepClone(param)
87
87
 
88
88
  if (ref.__stateCollectionCache) {
89
89
  const equals = JSON.stringify(param) === JSON.stringify(ref.__stateCollectionCache)
@@ -91,11 +91,11 @@ export const Collection = {
91
91
  ref.__noCollectionDifference = true
92
92
  return
93
93
  } else {
94
- ref.__stateCollectionCache = deepClone(param)
94
+ ref.__stateCollectionCache = param
95
95
  delete ref.__noCollectionDifference
96
96
  }
97
97
  } else {
98
- ref.__stateCollectionCache = deepClone(param)
98
+ ref.__stateCollectionCache = param
99
99
  }
100
100
 
101
101
  const obj = {
@@ -127,6 +127,7 @@ export const Collection = {
127
127
  if (isNot(param)('array', 'object')) return
128
128
 
129
129
  const { __ref: ref } = el
130
+ param = deepClone(param)
130
131
 
131
132
  if (ref.__propsCollectionCache) {
132
133
  const equals = JSON.stringify(param) === JSON.stringify(ref.__propsCollectionCache) // eslint-disable-line
@@ -134,11 +135,11 @@ export const Collection = {
134
135
  ref.__noCollectionDifference = true
135
136
  return
136
137
  } else {
137
- ref.__propsCollectionCache = deepClone(param)
138
+ ref.__propsCollectionCache = param
138
139
  delete ref.__noCollectionDifference
139
140
  }
140
141
  } else {
141
- ref.__propsCollectionCache = deepClone(param)
142
+ ref.__propsCollectionCache = param
142
143
  }
143
144
 
144
145
  const obj = {
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@symbo.ls/atoms",
3
- "version": "2.11.307",
3
+ "version": "2.11.310",
4
4
  "main": "index.js",
5
5
  "license": "MIT",
6
- "gitHead": "5b37a6c7593d3dc926584b7fd583b4a695f6487a",
6
+ "gitHead": "3e774509842b471eda7cd8d34ea79bd8c70c79a9",
7
7
  "dependencies": {
8
8
  "@domql/state": "latest",
9
9
  "@domql/utils": "latest",