@gem-sdk/components 17.0.0-dev.29 → 17.0.0-dev.30

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.
@@ -1,6 +1,6 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("@gem-sdk/core"),t=require("../../../helpers.js"),s=require("@gem-sdk/system"),i=require("./ProductListCarouselLayout.liquid.js"),d=require("./ProductListGridLayout.liquid.js"),a=require("./common/styles.js"),r=require("./common/classes.js"),n=require("./common/helpers.js");exports.default=o=>{let{setting:l,styles:c,pageContext:u}=o,g=u?.pageType==="GP_FUNNEL_PAGE";if(g)return"";let{hasRelatedExclude:p,relatedExcludeTrim:f,collectionID:m,isLatestProducts:$,isGrid:P,numberOfProducts:_,productListId:h,productListHandles:y,sortedBy:v,isReverse:E,productSrc:S,productNumber:k,isSorted:L,relatedTag:b,collectionHandle:x}=n.getDataLiquid(o),R=()=>e.template`
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("@gem-sdk/core"),t=require("../../../helpers.js"),s=require("@gem-sdk/system"),i=require("./ProductListCarouselLayout.liquid.js"),d=require("./ProductListGridLayout.liquid.js"),a=require("./common/styles.js"),r=require("./common/classes.js"),n=require("./common/helpers.js");exports.default=o=>{let{setting:l,styles:c,pageContext:u}=o,g=u?.pageType==="GP_FUNNEL_PAGE";if(g)return"";let{hasRelatedExclude:p,relatedExcludeTrim:f,collectionID:m,isLatestProducts:$,isGrid:P,numberOfProducts:_,productListId:h,productListHandles:y,sortedBy:v,isReverse:E,productSrc:S,productNumber:k,isSorted:b,relatedTag:L,collectionHandle:x}=n.getDataLiquid(o),R=()=>e.template`
2
2
  ${e.RenderIf("RelatedProduct"===S,`
3
- assign relatedTag = '${b}'
3
+ assign relatedTag = '${L}'
4
4
  assign assignProduct = product
5
5
  assign idAssignProduct = assignProduct.id
6
6
  paginate collections.all.products by 10000
@@ -135,7 +135,7 @@
135
135
  `;return e.template`
136
136
  {%- liquid
137
137
  assign productHandles = '${y.toString()}'| split: ','
138
- assign collection_handle = ${x}
138
+ assign collection_handle = '${x}'
139
139
  assign products = null
140
140
  assign target_collection = null
141
141
  assign productSrc = '${S}'
@@ -144,7 +144,7 @@
144
144
 
145
145
  if request.page_type == 'collection' or preview_page_type == 'collection'
146
146
  assign target_collection = collection
147
- if productSrc == 'Collection' and collection_handle != empty
147
+ if productSrc == 'Collection' and collection_handle != blank
148
148
  ${t}
149
149
  elsif target_collection == empty or target_collection == null
150
150
  if '${m.toLowerCase()}' == 'latest'
@@ -154,7 +154,7 @@
154
154
  endif
155
155
  endif
156
156
  paginate target_collection.products by ${_||4}
157
- assign products = target_collection.products ${L?v:""} ${E?"| reverse":""}
157
+ assign products = target_collection.products ${b?v:""} ${E?"| reverse":""}
158
158
  endpaginate
159
159
  else
160
160
  if productSrc == 'RelatedProduct'
@@ -181,7 +181,7 @@
181
181
  ${t}
182
182
  endif
183
183
  paginate target_collection.products by ${_||4}
184
- assign products = target_collection.products ${L?v:""} ${E?"| reverse":""}
184
+ assign products = target_collection.products ${b?v:""} ${E?"| reverse":""}
185
185
  endpaginate
186
186
  endif
187
187
  endif
@@ -135,7 +135,7 @@ import{RenderIf as e,isLocalEnv as s,baseAssetURL as t,template as i}from"@gem-s
135
135
  `;return i`
136
136
  {%- liquid
137
137
  assign productHandles = '${x.toString()}'| split: ','
138
- assign collection_handle = ${F}
138
+ assign collection_handle = '${F}'
139
139
  assign products = null
140
140
  assign target_collection = null
141
141
  assign productSrc = '${A}'
@@ -144,7 +144,7 @@ import{RenderIf as e,isLocalEnv as s,baseAssetURL as t,template as i}from"@gem-s
144
144
 
145
145
  if request.page_type == 'collection' or preview_page_type == 'collection'
146
146
  assign target_collection = collection
147
- if productSrc == 'Collection' and collection_handle != empty
147
+ if productSrc == 'Collection' and collection_handle != blank
148
148
  ${e}
149
149
  elsif target_collection == empty or target_collection == null
150
150
  if '${_.toLowerCase()}' == 'latest'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gem-sdk/components",
3
- "version": "17.0.0-dev.29",
3
+ "version": "17.0.0-dev.30",
4
4
  "license": "MIT",
5
5
  "sideEffects": false,
6
6
  "main": "dist/cjs/index.js",
@@ -27,7 +27,7 @@
27
27
  },
28
28
  "devDependencies": {
29
29
  "@gem-sdk/core": "17.0.0-dev.12",
30
- "@gem-sdk/styles": "17.0.0-dev.9",
30
+ "@gem-sdk/styles": "17.0.0-dev.30",
31
31
  "@gem-sdk/system": "17.0.0-dev.9",
32
32
  "@types/react-transition-group": "^4.4.12",
33
33
  "postcss-import": "16.1.1",