@gem-sdk/components 2.0.0-dev.648 → 2.0.0-dev.650
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/dist/cjs/grid/row/hooks/useRowSetting.js +3 -2
- package/dist/cjs/image-comparison/components/common/helpers.js +1 -1
- package/dist/cjs/line/setting/configs/settings.js +2 -1
- package/dist/esm/grid/row/hooks/useRowSetting.js +3 -2
- package/dist/esm/image-comparison/components/common/helpers.js +1 -1
- package/dist/esm/line/setting/configs/settings.js +2 -1
- package/package.json +2 -2
|
@@ -32,9 +32,10 @@ const useRowSettings = (rowProps)=>{
|
|
|
32
32
|
}
|
|
33
33
|
}
|
|
34
34
|
});
|
|
35
|
-
const isRenderPlaceholderViewBox = React.useMemo(()=>!inView && mode == 'edit', [
|
|
35
|
+
const isRenderPlaceholderViewBox = React.useMemo(()=>!inView && mode == 'edit' && pageType !== 'POST_PURCHASE', [
|
|
36
36
|
inView,
|
|
37
|
-
mode
|
|
37
|
+
mode,
|
|
38
|
+
pageType
|
|
38
39
|
]);
|
|
39
40
|
const isVisibilityContent = React.useMemo(()=>mode !== 'edit' && lazy && !inView, [
|
|
40
41
|
inView,
|
|
@@ -39,7 +39,7 @@ const composeResponsiveAspectRatio = ({ shape, defaultRatio, originalImage })=>{
|
|
|
39
39
|
const composeAspectRatio = ({ device, shape, originalImage })=>{
|
|
40
40
|
const { width, height, shape: currentShape, shapeValue } = shape?.[device] ?? {};
|
|
41
41
|
if (currentShape === 'original') return originalImage?.height ? `${originalImage.width}/${originalImage.height}` : undefined;
|
|
42
|
-
if (currentShape === 'custom') return height ? `${width}/${height}` : undefined;
|
|
42
|
+
if (currentShape === 'custom') return height ? `${width?.replace('px', '')}/${height?.replace('px', '')}` : undefined;
|
|
43
43
|
return shapeValue;
|
|
44
44
|
};
|
|
45
45
|
const composeLabelPosition = ({ input, isHorizontal })=>{
|
|
@@ -30,9 +30,10 @@ const useRowSettings = (rowProps)=>{
|
|
|
30
30
|
}
|
|
31
31
|
}
|
|
32
32
|
});
|
|
33
|
-
const isRenderPlaceholderViewBox = useMemo(()=>!inView && mode == 'edit', [
|
|
33
|
+
const isRenderPlaceholderViewBox = useMemo(()=>!inView && mode == 'edit' && pageType !== 'POST_PURCHASE', [
|
|
34
34
|
inView,
|
|
35
|
-
mode
|
|
35
|
+
mode,
|
|
36
|
+
pageType
|
|
36
37
|
]);
|
|
37
38
|
const isVisibilityContent = useMemo(()=>mode !== 'edit' && lazy && !inView, [
|
|
38
39
|
inView,
|
|
@@ -37,7 +37,7 @@ const composeResponsiveAspectRatio = ({ shape, defaultRatio, originalImage })=>{
|
|
|
37
37
|
const composeAspectRatio = ({ device, shape, originalImage })=>{
|
|
38
38
|
const { width, height, shape: currentShape, shapeValue } = shape?.[device] ?? {};
|
|
39
39
|
if (currentShape === 'original') return originalImage?.height ? `${originalImage.width}/${originalImage.height}` : undefined;
|
|
40
|
-
if (currentShape === 'custom') return height ? `${width}/${height}` : undefined;
|
|
40
|
+
if (currentShape === 'custom') return height ? `${width?.replace('px', '')}/${height?.replace('px', '')}` : undefined;
|
|
41
41
|
return shapeValue;
|
|
42
42
|
};
|
|
43
43
|
const composeLabelPosition = ({ input, isHorizontal })=>{
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gem-sdk/components",
|
|
3
|
-
"version": "2.0.0-dev.
|
|
3
|
+
"version": "2.0.0-dev.650",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"main": "dist/cjs/index.js",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"scan-all-text": "node ./scripts/scan-all-text.js"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
|
-
"@gem-sdk/core": "2.0.0-dev.
|
|
28
|
+
"@gem-sdk/core": "2.0.0-dev.649",
|
|
29
29
|
"@gem-sdk/styles": "2.0.0-dev.571",
|
|
30
30
|
"@gem-sdk/system": "2.0.0-dev.504",
|
|
31
31
|
"@types/react-transition-group": "^4.4.5",
|