@symbo.ls/atoms 2.33.2 → 2.33.4
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/Box.js +6 -5
- package/package.json +6 -6
package/Box.js
CHANGED
|
@@ -89,6 +89,7 @@ export const Box = {
|
|
|
89
89
|
splitTransition,
|
|
90
90
|
transformDuration,
|
|
91
91
|
depth,
|
|
92
|
+
exec,
|
|
92
93
|
getSystemGlobalTheme,
|
|
93
94
|
getMediaTheme,
|
|
94
95
|
getMediaColor,
|
|
@@ -876,15 +877,15 @@ export const Box = {
|
|
|
876
877
|
}
|
|
877
878
|
},
|
|
878
879
|
|
|
879
|
-
backgroundImage: (el, s,
|
|
880
|
+
backgroundImage: (el, s, ctx) => {
|
|
880
881
|
const { props, deps } = el
|
|
881
882
|
const globalTheme = deps.getSystemGlobalTheme(el)
|
|
882
|
-
let val =
|
|
883
|
+
let val = ctx.utils.exec.call(el, props.backgroundImage)
|
|
883
884
|
if (!val) return
|
|
884
|
-
if (
|
|
885
|
-
val =
|
|
885
|
+
if (ctx.utils.isString.call(el, val) && val.includes('{{')) {
|
|
886
|
+
val = ctx.utils.replaceLiteralsWithObjectFields.call(el, val)
|
|
886
887
|
}
|
|
887
|
-
const file =
|
|
888
|
+
const file = ctx.files && ctx.files[val]
|
|
888
889
|
if (file && file.content) val = file.content.src
|
|
889
890
|
return {
|
|
890
891
|
backgroundImage: deps.transformBackgroundImage(val, globalTheme)
|
package/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@symbo.ls/atoms",
|
|
3
|
-
"version": "2.33.
|
|
3
|
+
"version": "2.33.4",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"license": "MIT",
|
|
6
|
-
"gitHead": "
|
|
6
|
+
"gitHead": "fee8c901e8201c02e2be6b07507d91401c8903d7",
|
|
7
7
|
"dependencies": {
|
|
8
|
-
"@domql/state": "^2.33.
|
|
9
|
-
"@domql/utils": "^2.33.
|
|
10
|
-
"@symbo.ls/emotion": "^2.33.
|
|
11
|
-
"@symbo.ls/scratch": "^2.33.
|
|
8
|
+
"@domql/state": "^2.33.4",
|
|
9
|
+
"@domql/utils": "^2.33.4",
|
|
10
|
+
"@symbo.ls/emotion": "^2.33.4",
|
|
11
|
+
"@symbo.ls/scratch": "^2.33.4"
|
|
12
12
|
},
|
|
13
13
|
"source": "src/index.js",
|
|
14
14
|
"devDependencies": {
|