@gem-sdk/core 1.22.4 → 1.22.12

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.
@@ -189,7 +189,7 @@ const RenderChildren = (props)=>{
189
189
  if (Math.ceil(size / 1024) >= 180) {
190
190
  const fileName = `gp-section-snippet-${props.uid}`;
191
191
  props.customProps.extraFiles[fileName] = data.liquid;
192
- return `{% render '${fileName}', product: product, variant: variant, product_form_id: product_form_id %}`;
192
+ return `{% render '${fileName}', product: product, variant: variant, product_form_id: product_form_id, productSelectedVariant: productSelectedVariant %}`;
193
193
  }
194
194
  return data.liquid;
195
195
  };
@@ -206,7 +206,7 @@ const WrapRenderChildren = ({ uid, customProps }, codes)=>{
206
206
  if (Math.ceil(size / 1024) >= 180) {
207
207
  const fileName = `gp-section-snippet-${uid + i}`;
208
208
  customProps.extraFiles[fileName] = code;
209
- liquid += `{% render '${fileName}', product: product, variant: variant, product_form_id: product_form_id %}`;
209
+ liquid += `{% render '${fileName}', product: product, variant: variant, product_form_id: product_form_id, productSelectedVariant: productSelectedVariant %}`;
210
210
  } else {
211
211
  liquid += code;
212
212
  }
@@ -185,7 +185,7 @@ const RenderChildren = (props)=>{
185
185
  if (Math.ceil(size / 1024) >= 180) {
186
186
  const fileName = `gp-section-snippet-${props.uid}`;
187
187
  props.customProps.extraFiles[fileName] = data.liquid;
188
- return `{% render '${fileName}', product: product, variant: variant, product_form_id: product_form_id %}`;
188
+ return `{% render '${fileName}', product: product, variant: variant, product_form_id: product_form_id, productSelectedVariant: productSelectedVariant %}`;
189
189
  }
190
190
  return data.liquid;
191
191
  };
@@ -202,7 +202,7 @@ const WrapRenderChildren = ({ uid, customProps }, codes)=>{
202
202
  if (Math.ceil(size / 1024) >= 180) {
203
203
  const fileName = `gp-section-snippet-${uid + i}`;
204
204
  customProps.extraFiles[fileName] = code;
205
- liquid += `{% render '${fileName}', product: product, variant: variant, product_form_id: product_form_id %}`;
205
+ liquid += `{% render '${fileName}', product: product, variant: variant, product_form_id: product_form_id, productSelectedVariant: productSelectedVariant %}`;
206
206
  } else {
207
207
  liquid += code;
208
208
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gem-sdk/core",
3
- "version": "1.22.4",
3
+ "version": "1.22.12",
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.12.0",
28
- "@gem-sdk/styles": "1.22.4"
28
+ "@gem-sdk/styles": "1.22.9"
29
29
  },
30
30
  "dependencies": {
31
31
  "react-error-boundary": "4.0.10",