@gem-sdk/components 2.5.3-staging.6 → 2.5.3-staging.8
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.
|
@@ -34,7 +34,7 @@ const getSrcSetLink = (link)=>{
|
|
|
34
34
|
// return `${link} 768w,${link} 1024w,${link} 1440w`;
|
|
35
35
|
};
|
|
36
36
|
const getImageSrc = (image, currentDevice)=>{
|
|
37
|
-
let src = image?.backupFilePath;
|
|
37
|
+
let src = image?.backupFilePath ?? image?.src;
|
|
38
38
|
if (image?.backupFileKey) {
|
|
39
39
|
const newBackupFileKey = getNewBackupFileKey(image.backupFileKey, image?.src ?? '');
|
|
40
40
|
if (image.storage === 'THEME' || !image.storage) {
|
|
@@ -53,7 +53,7 @@ const getImageSrc = (image, currentDevice)=>{
|
|
|
53
53
|
break;
|
|
54
54
|
}
|
|
55
55
|
}
|
|
56
|
-
return src
|
|
56
|
+
return src;
|
|
57
57
|
};
|
|
58
58
|
const regexReplaceEndDot = /\.(?=[^.]*$)/;
|
|
59
59
|
const replaceBackupFileKeyFileContent = (backupFileKey)=>{
|
|
@@ -32,7 +32,7 @@ const getSrcSetLink = (link)=>{
|
|
|
32
32
|
// return `${link} 768w,${link} 1024w,${link} 1440w`;
|
|
33
33
|
};
|
|
34
34
|
const getImageSrc = (image, currentDevice)=>{
|
|
35
|
-
let src = image?.backupFilePath;
|
|
35
|
+
let src = image?.backupFilePath ?? image?.src;
|
|
36
36
|
if (image?.backupFileKey) {
|
|
37
37
|
const newBackupFileKey = getNewBackupFileKey(image.backupFileKey, image?.src ?? '');
|
|
38
38
|
if (image.storage === 'THEME' || !image.storage) {
|
|
@@ -51,7 +51,7 @@ const getImageSrc = (image, currentDevice)=>{
|
|
|
51
51
|
break;
|
|
52
52
|
}
|
|
53
53
|
}
|
|
54
|
-
return src
|
|
54
|
+
return src;
|
|
55
55
|
};
|
|
56
56
|
const regexReplaceEndDot = /\.(?=[^.]*$)/;
|
|
57
57
|
const replaceBackupFileKeyFileContent = (backupFileKey)=>{
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gem-sdk/components",
|
|
3
|
-
"version": "2.5.3-staging.
|
|
3
|
+
"version": "2.5.3-staging.8",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"main": "dist/cjs/index.js",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"format": "prettier --write \"./src/**/*.{ts,tsx}\""
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
|
-
"@gem-sdk/core": "2.5.3-staging.
|
|
24
|
+
"@gem-sdk/core": "2.5.3-staging.7",
|
|
25
25
|
"@gem-sdk/styles": "2.4.8",
|
|
26
26
|
"@types/react-transition-group": "^4.4.5"
|
|
27
27
|
},
|