@gem-sdk/components 2.1.13-staging.38 → 2.1.13-staging.40

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.
@@ -101,7 +101,7 @@ const Product = ({ children, setting, styles, style, builderProps, rawChildren,
101
101
  {%- endif -%}
102
102
  <gp-product data-uid="${builderProps?.uid}" data-id="${builderProps?.uid}" style="${{
103
103
  ...advancedStyle
104
- }}" class="${advanced?.cssClass}" gp-context='{"productId": {{ product.id }}, "preSelectedOptionIds": [${preSelectedOptionIds}], "isSyncProduct": "${isSyncProduct}", "variantSelected": {{ variant | json | escape }}, "quantity": 1, "formId": "{{ product_form_id }}" }'
104
+ }}" class="${advanced?.cssClass}" gp-context='{"productId": {{ product.id }}, "preSelectedOptionIds": [${preSelectedOptionIds}], "isSyncProduct": "${isSyncProduct}", "variantSelected": {{ variant | json | escape }}, "inventoryQuantity": {{ variant.inventory_quantity }}, "quantity": 1, "formId": "{{ product_form_id }}" }'
105
105
  gp-data='{"variantSelected": {{ variant | json | escape }}, "quantity": 1, "productUrl":{{ product.url | json | escape }}, "productHandle":{{ product.handle | json | escape }}, "collectionUrl": {{ collection.url | json | escape }}, "collectionHandle": {{ collection.handle | json | escape }}}'>
106
106
  <product-form class="product-form">
107
107
  {%- form 'product', product, id: product_form_id, class: 'form contents', data-type: 'add-to-cart-form', autocomplete: 'off' -%}
@@ -6,7 +6,7 @@ const transformHighlighTag = (template, stringColor)=>{
6
6
  if (!template.includes(`<${_const.DEFAULT_HIGHLIGHT_TAG}>`)) {
7
7
  return template;
8
8
  }
9
- const defaultClass = 'gp-text-white gp-py-1 gp-px-2 gp-mr-1 gp-inline-block gp-my-[1px]';
9
+ const defaultClass = 'gp-text-white gp-py-1 gp-px-2 gp-mr-1 gp-inline-block gp-my-[1px] gp-bg-g-text-1';
10
10
  let markTag = `<${_const.DEFAULT_HIGHLIGHT_TAG}>`;
11
11
  // Is hex color
12
12
  if (stringColor.includes('#')) {
@@ -97,7 +97,7 @@ const Product = ({ children, setting, styles, style, builderProps, rawChildren,
97
97
  {%- endif -%}
98
98
  <gp-product data-uid="${builderProps?.uid}" data-id="${builderProps?.uid}" style="${{
99
99
  ...advancedStyle
100
- }}" class="${advanced?.cssClass}" gp-context='{"productId": {{ product.id }}, "preSelectedOptionIds": [${preSelectedOptionIds}], "isSyncProduct": "${isSyncProduct}", "variantSelected": {{ variant | json | escape }}, "quantity": 1, "formId": "{{ product_form_id }}" }'
100
+ }}" class="${advanced?.cssClass}" gp-context='{"productId": {{ product.id }}, "preSelectedOptionIds": [${preSelectedOptionIds}], "isSyncProduct": "${isSyncProduct}", "variantSelected": {{ variant | json | escape }}, "inventoryQuantity": {{ variant.inventory_quantity }}, "quantity": 1, "formId": "{{ product_form_id }}" }'
101
101
  gp-data='{"variantSelected": {{ variant | json | escape }}, "quantity": 1, "productUrl":{{ product.url | json | escape }}, "productHandle":{{ product.handle | json | escape }}, "collectionUrl": {{ collection.url | json | escape }}, "collectionHandle": {{ collection.handle | json | escape }}}'>
102
102
  <product-form class="product-form">
103
103
  {%- form 'product', product, id: product_form_id, class: 'form contents', data-type: 'add-to-cart-form', autocomplete: 'off' -%}
@@ -4,7 +4,7 @@ const transformHighlighTag = (template, stringColor)=>{
4
4
  if (!template.includes(`<${DEFAULT_HIGHLIGHT_TAG}>`)) {
5
5
  return template;
6
6
  }
7
- const defaultClass = 'gp-text-white gp-py-1 gp-px-2 gp-mr-1 gp-inline-block gp-my-[1px]';
7
+ const defaultClass = 'gp-text-white gp-py-1 gp-px-2 gp-mr-1 gp-inline-block gp-my-[1px] gp-bg-g-text-1';
8
8
  let markTag = `<${DEFAULT_HIGHLIGHT_TAG}>`;
9
9
  // Is hex color
10
10
  if (stringColor.includes('#')) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gem-sdk/components",
3
- "version": "2.1.13-staging.38",
3
+ "version": "2.1.13-staging.40",
4
4
  "license": "MIT",
5
5
  "sideEffects": false,
6
6
  "main": "dist/cjs/index.js",