@gem-sdk/core 2.1.30 → 2.1.33
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.
|
@@ -54,6 +54,7 @@ const getStyleBgImage = (background, options)=>{
|
|
|
54
54
|
const getBgImageByDevice = (background, device, options)=>{
|
|
55
55
|
const isBgVideo = background?.[device]?.type === 'video';
|
|
56
56
|
if (isBgVideo) return;
|
|
57
|
+
if (background?.[device]?.type === 'color') return 'url()'; // To prevent overriding background image from upper device
|
|
57
58
|
const backupFileKey = background?.[device]?.image?.backupFileKey;
|
|
58
59
|
const storage = background?.[device]?.image?.storage;
|
|
59
60
|
let imageByDevice = background?.[device]?.image?.src;
|
|
@@ -52,6 +52,7 @@ const getStyleBgImage = (background, options)=>{
|
|
|
52
52
|
const getBgImageByDevice = (background, device, options)=>{
|
|
53
53
|
const isBgVideo = background?.[device]?.type === 'video';
|
|
54
54
|
if (isBgVideo) return;
|
|
55
|
+
if (background?.[device]?.type === 'color') return 'url()'; // To prevent overriding background image from upper device
|
|
55
56
|
const backupFileKey = background?.[device]?.image?.backupFileKey;
|
|
56
57
|
const storage = background?.[device]?.image?.storage;
|
|
57
58
|
let imageByDevice = background?.[device]?.image?.src;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gem-sdk/core",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.33",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"main": "dist/cjs/index.js",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
30
|
"@gem-sdk/adapter-shopify": "2.1.0",
|
|
31
|
-
"@gem-sdk/styles": "2.1.
|
|
31
|
+
"@gem-sdk/styles": "2.1.31",
|
|
32
32
|
"@types/classnames": "^2.3.1"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|