@symbo.ls/atoms 2.11.430 → 2.11.435
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/Collection.js +1 -2
- package/Text.js +5 -4
- package/package.json +2 -2
package/Collection.js
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
'use strict'
|
|
2
2
|
|
|
3
3
|
import { isState, getChildStateInKey } from '@domql/state'
|
|
4
|
-
import { addAdditionalExtend } from '@domql/
|
|
5
|
-
import { isString, isNot, isArray, isObject, isObjectLike, exec, deepCloneWithExtend } from '@domql/utils'
|
|
4
|
+
import { isString, isNot, isArray, isObject, isObjectLike, exec, deepCloneWithExtend, addAdditionalExtend } from '@domql/utils'
|
|
6
5
|
|
|
7
6
|
export const Collection = {
|
|
8
7
|
define: {
|
package/Text.js
CHANGED
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
'use strict'
|
|
2
2
|
|
|
3
|
-
import { isUndefined } from '@domql/utils'
|
|
3
|
+
import { exec, isUndefined } from '@domql/utils'
|
|
4
4
|
import { getFontSizeByKey, getFontFamily } from '@symbo.ls/scratch'
|
|
5
5
|
|
|
6
6
|
export const Text = {
|
|
7
|
-
deps: { getFontSizeByKey, getFontFamily },
|
|
7
|
+
deps: { exec, getFontSizeByKey, getFontFamily },
|
|
8
8
|
|
|
9
|
-
text: (
|
|
9
|
+
text: (el) => {
|
|
10
|
+
const { key, props, state, deps } = el
|
|
10
11
|
if (props.text === true) return (state && state[key]) || (props && props[key])
|
|
11
|
-
return props.text
|
|
12
|
+
return deps.exec(props.text, el)
|
|
12
13
|
},
|
|
13
14
|
|
|
14
15
|
class: {
|
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@symbo.ls/atoms",
|
|
3
|
-
"version": "2.11.
|
|
3
|
+
"version": "2.11.435",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"license": "MIT",
|
|
6
|
-
"gitHead": "
|
|
6
|
+
"gitHead": "734749f8a16b9e84374d68f203f153b87e4d01d2",
|
|
7
7
|
"dependencies": {
|
|
8
8
|
"@domql/state": "latest",
|
|
9
9
|
"@domql/utils": "latest",
|