@symbo.ls/atoms 2.11.472 → 2.11.474

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 (2) hide show
  1. package/Collection.js +8 -2
  2. package/package.json +2 -2
package/Collection.js CHANGED
@@ -14,7 +14,8 @@ export const Collection = {
14
14
  param = deepCloneWithExtend(childrenExec)
15
15
  if (childrenAs) param = param.map(v => ({ extend: childExtends, [childrenAs]: v }))
16
16
  } else if (isObject(childrenExec)) {
17
- if (childrenExec.$$typeof) return
17
+ if (childrenExec.$$typeof) return el.call('renderReact', childrenExec, el)
18
+ param = deepCloneWithExtend(childrenExec)
18
19
  param = Object.keys(param).map(v => {
19
20
  const val = param[v]
20
21
  return addAdditionalExtend(v, val)
@@ -34,7 +35,12 @@ export const Collection = {
34
35
  }
35
36
 
36
37
  if (!param) return
37
- param = param.filter(v => !v.$$typeof)
38
+ const filterReact = param.filter(v => !v.$$typeof)
39
+ if (filterReact.length !== param.length) {
40
+ const extractedReactComponents = param.filter(v => v.$$typeof)
41
+ el.call('renderReact', extractedReactComponents, el)
42
+ }
43
+ param = filterReact
38
44
 
39
45
  if (isString(param)) {
40
46
  if (param === 'state') param = state.parse()
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@symbo.ls/atoms",
3
- "version": "2.11.472",
3
+ "version": "2.11.474",
4
4
  "main": "index.js",
5
5
  "license": "MIT",
6
- "gitHead": "c9fbacedf2ed6618e98ddf89cf10a12ab98633a4",
6
+ "gitHead": "dd0429b4bfcc2d43545a301dfe406c5000bd7ae0",
7
7
  "dependencies": {
8
8
  "@domql/state": "^2.5.0",
9
9
  "@domql/utils": "^2.5.0",