@gem-sdk/core 1.23.0-staging.72 → 1.23.0-staging.76

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.
@@ -93,10 +93,12 @@ const getWidthByShapeGlobalSize = (shapeByLayout)=>{
93
93
  DEVICES.forEach((device)=>{
94
94
  const shapeByDevice = getResonsiveValue.getResponsiveValueByScreen(shapeByLayout, device);
95
95
  const width = shapeByDevice?.width;
96
- result = {
97
- ...result,
98
- [device]: width || 'auto'
99
- };
96
+ if (width) {
97
+ result = {
98
+ ...result,
99
+ [device]: width
100
+ };
101
+ }
100
102
  });
101
103
  return result;
102
104
  };
@@ -135,6 +137,12 @@ const getAspectRatioGlobalSize = (shape)=>{
135
137
  [device]: '4/3'
136
138
  };
137
139
  break;
140
+ case 'original':
141
+ result = {
142
+ ...result,
143
+ [device]: 'auto'
144
+ };
145
+ break;
138
146
  }
139
147
  }
140
148
  });
@@ -91,10 +91,12 @@ const getWidthByShapeGlobalSize = (shapeByLayout)=>{
91
91
  DEVICES.forEach((device)=>{
92
92
  const shapeByDevice = getResponsiveValueByScreen(shapeByLayout, device);
93
93
  const width = shapeByDevice?.width;
94
- result = {
95
- ...result,
96
- [device]: width || 'auto'
97
- };
94
+ if (width) {
95
+ result = {
96
+ ...result,
97
+ [device]: width
98
+ };
99
+ }
98
100
  });
99
101
  return result;
100
102
  };
@@ -133,6 +135,12 @@ const getAspectRatioGlobalSize = (shape)=>{
133
135
  [device]: '4/3'
134
136
  };
135
137
  break;
138
+ case 'original':
139
+ result = {
140
+ ...result,
141
+ [device]: 'auto'
142
+ };
143
+ break;
136
144
  }
137
145
  }
138
146
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gem-sdk/core",
3
- "version": "1.23.0-staging.72",
3
+ "version": "1.23.0-staging.76",
4
4
  "license": "MIT",
5
5
  "sideEffects": false,
6
6
  "main": "dist/cjs/index.js",
@@ -25,7 +25,7 @@
25
25
  },
26
26
  "devDependencies": {
27
27
  "@gem-sdk/adapter-shopify": "1.23.0-staging.26",
28
- "@gem-sdk/styles": "1.23.0-staging.37"
28
+ "@gem-sdk/styles": "1.23.0-staging.73"
29
29
  },
30
30
  "dependencies": {
31
31
  "react-error-boundary": "4.0.10",