@symbo.ls/atoms 2.11.469 → 2.11.470

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 +9 -2
  2. package/package.json +4 -4
package/Collection.js CHANGED
@@ -14,12 +14,19 @@ 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
- param = deepCloneWithExtend(childrenExec.$$typeof ? { key: childrenExec.key, props: childrenExec.props } : childrenExec)
17
+ if (!childrenExec.$$typeof) return
18
18
  param = Object.keys(param).map(v => {
19
19
  const val = param[v]
20
20
  return addAdditionalExtend(v, val)
21
21
  })
22
- if (childrenAs) param = param.map(v => ({ extend: childExtends, [childrenAs]: v }))
22
+ el.removeContent()
23
+ el.content = {
24
+ extend: childExtends,
25
+ props: {
26
+ childProps: el.props && el.props.childProps
27
+ }
28
+ }
29
+ return
23
30
  } else if (childrenExec) {
24
31
  param = [{ text: param }]
25
32
  }
package/package.json CHANGED
@@ -1,14 +1,14 @@
1
1
  {
2
2
  "name": "@symbo.ls/atoms",
3
- "version": "2.11.469",
3
+ "version": "2.11.470",
4
4
  "main": "index.js",
5
5
  "license": "MIT",
6
- "gitHead": "711b668d5e97cf07bdc3ecec069a89c4eddee826",
6
+ "gitHead": "726524dbb01cfa6ead1c95bd8f930a85169c70fe",
7
7
  "dependencies": {
8
8
  "@domql/state": "^2.5.0",
9
9
  "@domql/utils": "^2.5.0",
10
- "@symbo.ls/emotion": "^2.11.469",
11
- "@symbo.ls/scratch": "^2.11.469"
10
+ "@symbo.ls/emotion": "^2.11.470",
11
+ "@symbo.ls/scratch": "^2.11.470"
12
12
  },
13
13
  "source": "src/index.js",
14
14
  "devDependencies": {