@gem-sdk/core 1.22.0-hotfix.2 → 1.22.0-hotfix.3

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.
@@ -183,7 +183,7 @@ const RenderChildren = (props)=>{
183
183
  if (Math.ceil(size / 1024) >= 180) {
184
184
  const fileName = `gp-section-snippet-${props.uid}`;
185
185
  props.customProps.extraFiles[fileName] = data.liquid;
186
- return `{% render '${fileName}', product: product, variant: variant, product_form_id: product_form_id %}`;
186
+ return `{% render '${fileName}', product: product, variant: variant, product_form_id: product_form_id, productSelectedVariant: productSelectedVariant %}`;
187
187
  }
188
188
  return data.liquid;
189
189
  };
@@ -200,7 +200,7 @@ const WrapRenderChildren = ({ uid, customProps }, codes)=>{
200
200
  if (Math.ceil(size / 1024) >= 180) {
201
201
  const fileName = `gp-section-snippet-${uid + i}`;
202
202
  customProps.extraFiles[fileName] = code;
203
- liquid += `{% render '${fileName}', product: product, variant: variant, product_form_id: product_form_id %}`;
203
+ liquid += `{% render '${fileName}', product: product, variant: variant, product_form_id: product_form_id, productSelectedVariant: productSelectedVariant %}`;
204
204
  } else {
205
205
  liquid += code;
206
206
  }
@@ -179,7 +179,7 @@ const RenderChildren = (props)=>{
179
179
  if (Math.ceil(size / 1024) >= 180) {
180
180
  const fileName = `gp-section-snippet-${props.uid}`;
181
181
  props.customProps.extraFiles[fileName] = data.liquid;
182
- return `{% render '${fileName}', product: product, variant: variant, product_form_id: product_form_id %}`;
182
+ return `{% render '${fileName}', product: product, variant: variant, product_form_id: product_form_id, productSelectedVariant: productSelectedVariant %}`;
183
183
  }
184
184
  return data.liquid;
185
185
  };
@@ -196,7 +196,7 @@ const WrapRenderChildren = ({ uid, customProps }, codes)=>{
196
196
  if (Math.ceil(size / 1024) >= 180) {
197
197
  const fileName = `gp-section-snippet-${uid + i}`;
198
198
  customProps.extraFiles[fileName] = code;
199
- liquid += `{% render '${fileName}', product: product, variant: variant, product_form_id: product_form_id %}`;
199
+ liquid += `{% render '${fileName}', product: product, variant: variant, product_form_id: product_form_id, productSelectedVariant: productSelectedVariant %}`;
200
200
  } else {
201
201
  liquid += code;
202
202
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gem-sdk/core",
3
- "version": "1.22.0-hotfix.2",
3
+ "version": "1.22.0-hotfix.3",
4
4
  "license": "MIT",
5
5
  "sideEffects": false,
6
6
  "main": "dist/cjs/index.js",