@symbo.ls/atoms 2.11.334 → 2.11.336

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.
Files changed (3) hide show
  1. package/Collection.js +12 -12
  2. package/Media.js +5 -5
  3. package/package.json +2 -2
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, deepCloneWithExtend } from '@domql/utils'
4
+ import { isString, isNot, isArray, isObject, isObjectLike, deepCloneWithExtend } from '@domql/utils'
5
5
 
6
6
  export const Collection = {
7
7
  define: {
@@ -19,7 +19,7 @@ export const Collection = {
19
19
  if (isState(param)) param = param.parse()
20
20
  if (isNot(param)('array', 'object')) return
21
21
 
22
- param = deepClone(param)
22
+ param = deepCloneWithExtend(param)
23
23
 
24
24
  if (ref.__collectionCache) {
25
25
  const equals = JSON.stringify(param) === JSON.stringify(ref.__collectionCache)
@@ -27,11 +27,11 @@ export const Collection = {
27
27
  ref.__noCollectionDifference = true
28
28
  return
29
29
  } else {
30
- ref.__collectionCache = param
30
+ ref.__collectionCache = deepCloneWithExtend(param)
31
31
  delete ref.__noCollectionDifference
32
32
  }
33
33
  } else {
34
- ref.__collectionCache = param
34
+ ref.__collectionCache = deepCloneWithExtend(param)
35
35
  }
36
36
 
37
37
  const obj = {
@@ -49,7 +49,7 @@ export const Collection = {
49
49
  el.removeContent()
50
50
  el.content = obj
51
51
 
52
- return obj
52
+ // return deepClone(param)
53
53
  },
54
54
 
55
55
  $setCollection: (param, el, state) => {
@@ -94,11 +94,11 @@ export const Collection = {
94
94
  ref.__noCollectionDifference = true
95
95
  return
96
96
  } else {
97
- ref.__stateCollectionCache = param
97
+ ref.__stateCollectionCache = deepCloneWithExtend(param)
98
98
  delete ref.__noCollectionDifference
99
99
  }
100
100
  } else {
101
- ref.__stateCollectionCache = param
101
+ ref.__stateCollectionCache = deepCloneWithExtend(param)
102
102
  }
103
103
 
104
104
  const obj = {
@@ -116,7 +116,7 @@ export const Collection = {
116
116
  el.removeContent()
117
117
  el.content = obj
118
118
 
119
- return obj
119
+ // return deepClone(param)
120
120
  },
121
121
 
122
122
  $propsCollection: (param, el, state) => {
@@ -130,7 +130,7 @@ export const Collection = {
130
130
  if (isNot(param)('array', 'object')) return
131
131
 
132
132
  const { __ref: ref } = el
133
- param = deepClone(param)
133
+ param = deepCloneWithExtend(param)
134
134
 
135
135
  if (ref.__propsCollectionCache) {
136
136
  const equals = JSON.stringify(param) === JSON.stringify(ref.__propsCollectionCache) // eslint-disable-line
@@ -138,11 +138,11 @@ export const Collection = {
138
138
  ref.__noCollectionDifference = true
139
139
  return
140
140
  } else {
141
- ref.__propsCollectionCache = param
141
+ ref.__propsCollectionCache = deepCloneWithExtend(param)
142
142
  delete ref.__noCollectionDifference
143
143
  }
144
144
  } else {
145
- ref.__propsCollectionCache = param
145
+ ref.__propsCollectionCache = deepCloneWithExtend(param)
146
146
  }
147
147
 
148
148
  const obj = {
@@ -168,7 +168,7 @@ export const Collection = {
168
168
  // window.requestAnimationFrame(set)
169
169
  // } else set()
170
170
 
171
- return obj
171
+ // return deepClone(param)
172
172
  }
173
173
  }
174
174
  }
package/Media.js CHANGED
@@ -173,11 +173,11 @@ const beforeClassAssign = (element, s) => {
173
173
  }
174
174
 
175
175
  // override props
176
- if (props['^']) {
177
- for (const key in props['^']) {
178
- execClass(key, props, CLASS_NAMES, element)
179
- }
180
- }
176
+ // if (props['^']) {
177
+ // for (const key in props['^']) {
178
+ // execClass(key, props, CLASS_NAMES, element)
179
+ // }
180
+ // }
181
181
 
182
182
  const parentProps = element.parent && element.parent.props
183
183
  if (parentProps && parentProps.spacingRatio && parentProps.inheritSpacingRatio) {
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@symbo.ls/atoms",
3
- "version": "2.11.334",
3
+ "version": "2.11.336",
4
4
  "main": "index.js",
5
5
  "license": "MIT",
6
- "gitHead": "dfa7309d692f0060cfa63b38758809a768a6abec",
6
+ "gitHead": "ed18099374b1e8c5d1b50576486a72a25bf65dc1",
7
7
  "dependencies": {
8
8
  "@domql/state": "latest",
9
9
  "@domql/utils": "latest",