@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.
@@ -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 })=>{
@@ -116,7 +116,8 @@ const LineSettings = [
116
116
  {
117
117
  id: 'color',
118
118
  type: 'color-picker-v2',
119
- default: 'line-2'
119
+ default: 'line-2',
120
+ compoDefaultValue: 'line-2'
120
121
  }
121
122
  ]
122
123
  },
@@ -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 })=>{
@@ -114,7 +114,8 @@ const LineSettings = [
114
114
  {
115
115
  id: 'color',
116
116
  type: 'color-picker-v2',
117
- default: 'line-2'
117
+ default: 'line-2',
118
+ compoDefaultValue: 'line-2'
118
119
  }
119
120
  ]
120
121
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gem-sdk/components",
3
- "version": "2.0.0-dev.648",
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.641",
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",