@gem-sdk/components 23.0.0-dev.21 → 23.0.0-dev.24
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.
- package/dist/cjs/image/common/attrs.js +1 -1
- package/dist/cjs/image/common/listContext.js +1 -15
- package/dist/cjs/image/common/srcset.js +1 -1
- package/dist/cjs/product/components/product-images-v3/ProductImagesV3.liquid.js +1 -1
- package/dist/cjs/product/components/product-images-v3/ProductImagesV3Embla.liquid.js +1 -1
- package/dist/cjs/product/components/product-list/ProductListCarouselLayout.liquid.js +1 -1
- package/dist/cjs/product/components/product-list/ProductListGridLayout.liquid.js +1 -1
- package/dist/cjs/product/components/product-list/common/imagePriority.js +17 -0
- package/dist/cjs/product/components/product-list-v3/ProductListCarouselLayout.liquid.js +3 -3
- package/dist/cjs/product/components/product-list-v3/ProductListGridLayout.liquid.js +3 -3
- package/dist/esm/image/common/attrs.js +1 -1
- package/dist/esm/image/common/listContext.js +1 -15
- package/dist/esm/image/common/srcset.js +1 -1
- package/dist/esm/product/components/product-images-v3/ProductImagesV3.liquid.js +3 -3
- package/dist/esm/product/components/product-images-v3/ProductImagesV3Embla.liquid.js +3 -3
- package/dist/esm/product/components/product-list/ProductListCarouselLayout.liquid.js +1 -1
- package/dist/esm/product/components/product-list/ProductListGridLayout.liquid.js +6 -6
- package/dist/esm/product/components/product-list/common/imagePriority.js +17 -0
- package/dist/esm/product/components/product-list-v3/ProductListCarouselLayout.liquid.js +7 -7
- package/dist/esm/product/components/product-list-v3/ProductListGridLayout.liquid.js +6 -6
- package/package.json +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var e=require("./helpers.js"),t=require("./listContext.js"),r=require("../../constant.js"),s=require("@gem-sdk/system"),a=require("./srcset.js");const i=e=>e?{loading:"eager",fetchpriority:"high"}:{loading:"lazy"};exports.getAdaptiveImageAttrs=({styles:t,setting:r,sizeTarget:s,resolvedSrcSet:a})=>{let{alt:i,srcSet:g,priority:l,title:o,qualityType:A,qualityPercent:n}=r??{},
|
|
1
|
+
"use strict";var e=require("./helpers.js"),t=require("./listContext.js"),r=require("../../constant.js"),s=require("@gem-sdk/system"),a=require("./srcset.js");const i=e=>e?{loading:"eager",fetchpriority:"high"}:{loading:"lazy"};exports.getAdaptiveImageAttrs=({styles:t,setting:r,sizeTarget:s,resolvedSrcSet:a})=>{let{alt:i,srcSet:g,priority:l,title:o,qualityType:A,qualityPercent:n}=r??{},c=e.getAspectRatio({styles:t,setting:r});return{pictureClass:"gp-contents",...i&&{alt:i},...o&&{title:o},...g&&{srcSet:g},...a&&{resolvedSrcSet:a},...l&&{priority:l},...s&&{sizeTarget:s},...A&&{qualityType:A},...n&&{qualityPercent:n},...t?.objectFit&&{layout:t.objectFit},aspectRatio:c}},exports.getContainerAttrs=(e,t)=>({...e,...t&&{"data-id":t}}),exports.getImageLiquidAttrs=({pageContext:e})=>({...e&&{pageContext:e}}),exports.getLinkWrapperAttrs=({urlData:e,imageLink:t,title:s,isLiquid:a=!1})=>{let i=a?{...e,...t?.noFollow&&{rel:"nofollow"},title:s}:{setting:e,title:s};return t?.type!=="go-to-sales-page"?t?.link?i:{}:a?{href:r.HREF_TO_SALES_PAGE,target:"_self"}:{setting:{href:r.HREF_TO_SALES_PAGE,target:"_self"}}},exports.getLoadingAttrs=i,exports.getNextImageAttrs=({styles:t,setting:r})=>{let{objectFit:s}=t??{},{vw:a,alt:i,title:g,quality:l,priority:o,isNotLazyload:A,qualityType:n,qualityPercent:c}=r??{},_=e.getAspectRatio({styles:t,setting:r});return{...r?.image,...a&&{vw:a},...i&&{alt:i},...g&&{title:g},...l&&{quality:l},...o&&{priority:o},isNotLazyload:A,setting:{aspectRatio:_,layout:s,qualityType:n,qualityPercent:c}}},exports.getNextImageLiquidAttrs=r=>{let{id:g,src:l=e.NEXT_IMAGE_CONFIG.DEFAULT_SRC,alt:o=e.NEXT_IMAGE_CONFIG.DEFAULT_ALT,title:A,sizes:n,srcset:c,storage:_,baseSrc:E,priority:u,customAttrs:p,width:I=2237,height:L=1678,setting:T,sizeTarget:F,resolvedSrc:y,backupFileKey:d,backupFilePath:G,srcIsLiquidCode:N}=r,x=(()=>{if(N)return{src:l,...c&&{srcset:c}};let t=d?e.getNewBackupFileKey(d,l):"",r=e.getImageSrc({src:l,backupFileKey:t,backupFilePath:G,storage:_}),s=a.getImageSrcset({src:r,resolvedSrc:y,sizeTarget:F,qualityType:T?.qualityType,qualityPercent:T?.qualityPercent});return{src:r,...s&&{srcset:s}}})(),C=N&&x.srcset?t.getListAwareSizes():void 0,m=n||C;return s.createAttr({...p,...g&&{id:g},...o&&{alt:o},...A&&{title:A},width:I,height:L,draggable:"false",...x,...m&&{sizes:m},...E&&{"base-src":E},...N?t.getListAwareLoadingAttrs(u):i(u)})},exports.getNextImageReactAttrs=t=>{let{width:r=e.NEXT_IMAGE_CONFIG.DEFAULT_WIDTH_PROPS,height:a=e.NEXT_IMAGE_CONFIG.DEFAULT_HEIGHT_PROPS,quality:i,priority:g,isNotLazyload:l,pageContext:o,base64:A=e.IMAGE_PLACEHOLDER,alt:n=e.NEXT_IMAGE_CONFIG.DEFAULT_ALT,title:c,src:_=e.NEXT_IMAGE_CONFIG.DEFAULT_SRC}=t,E=!l&&(o?.enableLazyLoadImage??!0)&&!g,u=s.createAttr((()=>{let e={loading:"lazy",placeholder:"blur",...A&&{blurDataURL:A}};return{...E?e:{loading:"eager",fetchpriority:"high"}}})());return{src:_,alt:n,title:c,width:r,height:a,quality:i,...u}};
|
|
@@ -1,15 +1 @@
|
|
|
1
|
-
"use strict";var e=require("@gem-sdk/core");const
|
|
2
|
-
if count <= ${Math.max(...g)*r}
|
|
3
|
-
assign ${i} = '${s.EAGER}'
|
|
4
|
-
else
|
|
5
|
-
assign ${i} = '${s.LAZY}'
|
|
6
|
-
endif
|
|
7
|
-
if count <= ${Math.min(...g)*r}
|
|
8
|
-
assign ${t} = '${a.HIGH}'
|
|
9
|
-
else
|
|
10
|
-
assign ${t} = '${a.AUTO}'
|
|
11
|
-
endif
|
|
12
|
-
-%}`,reset:`{%- liquid
|
|
13
|
-
assign ${i} = nil
|
|
14
|
-
assign ${t} = nil
|
|
15
|
-
-%}`}};
|
|
1
|
+
"use strict";var e=require("@gem-sdk/core");const A={EAGER:"eager",LAZY:"lazy"},I={HIGH:"high",AUTO:"auto"};exports.getListAwareLoadingAttrs=i=>i?{loading:`{% if ${e.LIST_IMAGE_LIQUID_VARS.LOADING} == '${A.LAZY}' %}${A.LAZY}{% else %}${A.EAGER}{% endif %}`,fetchpriority:`{% if ${e.LIST_IMAGE_LIQUID_VARS.FETCH_PRIORITY} == '${I.AUTO}' %}${I.AUTO}{% else %}${I.HIGH}{% endif %}`}:{loading:A.LAZY},exports.getListAwareSizes=()=>`{{ ${e.LIST_IMAGE_LIQUID_VARS.SIZES} | default: '100vw' }}`;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var e=require("@gem-sdk/core"),t=require("./helpers.js");const r={mobile:768,tablet:1024,desktop:1440},i={Image:{desktop:1024,tablet:1024,mobile:
|
|
1
|
+
"use strict";var e=require("@gem-sdk/core"),t=require("./helpers.js");const r={mobile:768,tablet:1024,desktop:1440},i={Image:{desktop:1024,tablet:1024,mobile:640},HeroBanner:{desktop:1920,tablet:1280,mobile:768},ImageComparison:{desktop:1024,tablet:768,mobile:640},ProductFeatureImage:{desktop:1024,tablet:1024,mobile:640},GalleryList:{desktop:256,tablet:256,mobile:128},ArticleImage:{desktop:1024,tablet:768,mobile:640}},s="high",a={high:100,medium:70},o=["GalleryList"],l="original",n=/\s*%\s*$/,p=e=>{if("number"==typeof e)return e;let t=Number.parseFloat(String(e??"").replace(n,""));return Number.isFinite(t)?t:100},u=/^\{\{\s*([\s\S]*?)\s*\}\}$/,d=/\{\{|\{%/,m=e=>!!e&&e.includes("cdn.shopify")&&!t.isCannotResizeImageByQuery(e),c=({qualityType:t,qualityPercent:r})=>{if(!t&&!r)return;let i={};for(let o of e.DEVICES){let n=e.getResponsiveValueByScreen(t,o,s)??s;if("finest"===n){i[o]=l;continue}let u="custom"===n?p(e.getResponsiveValueByScreen(r,o,100)):a[n]??100;i[o]=(u>0?u:100)/100}return i},g=(e,t)=>{let r=e.match(u);return r?`{{ ${r[1]} | append: '?width=${t}' | replace: '?', '&' | replace_first: '&', '?' }}`:`${e}${e.includes("?")?"&":"?"}width=${t}`},b=({sizeTarget:t="Image",qualityType:s,qualityPercent:a})=>{let n=c({qualityType:s,qualityPercent:a}),p=i[t]??i.Image,u=!o.includes(t),d=t=>{let r=e.getResponsiveValueByScreen(n,t,1)??1;return r===l?u?l:p[t]:Math.round(p[t]*r)};return e.DEVICES.map(e=>({device:e,width:d(e),descriptor:r[e]})).sort((e,t)=>e.descriptor-t.descriptor)},S=e=>e.every(e=>e.width===l);exports.ORIGINAL_QUALITY=l,exports.SRCSET_DEVICE_DESCRIPTORS=r,exports.SRCSET_TARGET_WIDTHS=i,exports.appendWidthParam=g,exports.canResizeByShopifyCdn=m,exports.getImageSrcset=({src:t,resolvedSrc:r,sizeTarget:i,qualityType:s,qualityPercent:a})=>{if(!t)return;let o=u.test(t);if(!o&&d.test(t))return;let n=o?e.hasTranslatedLiquid(t)?r:void 0:t;if(!m(n))return;let p=b({sizeTarget:i,qualityType:s,qualityPercent:a});if(!S(p))return p.map(({width:e,descriptor:r})=>{let i=e===l?t:g(t,e);return`${i} ${r}w`}).join(", ")},exports.getQualityMultiplier=c,exports.getSrcsetCandidates=b,exports.isEveryCandidateOriginal=S;
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"setting":${JSON.stringify(m)},
|
|
6
6
|
"styles":${JSON.stringify(f)},
|
|
7
7
|
"productUrl":{{product.url | json }},
|
|
8
|
-
"product":{% if product %}{"id":{{ product.id | json }},"handle":{{ product.handle | json }},"media":{{ product.media | json }}}{% else %}null{% endif %},
|
|
8
|
+
"product":{% if product %}{"id":{{ product.id | json }},"handle":{{ product.handle | json }},"options":{{ product.options | json }},"media":{{ product.media | json }}}{% else %}null{% endif %},
|
|
9
9
|
"collectionUrl": {{ collection.url | json }},
|
|
10
10
|
"collection": {% if collection %}{"handle":{{ collection.handle | json }}}{% else %}null{% endif %}
|
|
11
11
|
}
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"setting":${JSON.stringify(m)},
|
|
6
6
|
"styles":${JSON.stringify(f)},
|
|
7
7
|
"productUrl":{{product.url | json }},
|
|
8
|
-
"product":{% if product %}{"id":{{ product.id | json }},"handle":{{ product.handle | json }},"media":{{ product.media | json }}}{% else %}null{% endif %},
|
|
8
|
+
"product":{% if product %}{"id":{{ product.id | json }},"handle":{{ product.handle | json }},"options":{{ product.options | json }},"media":{{ product.media | json }}}{% else %}null{% endif %},
|
|
9
9
|
"collectionUrl": {{ collection.url | json }},
|
|
10
10
|
"collection": {% if collection %}{"handle":{{ collection.handle | json }}}{% else %}null{% endif %}
|
|
11
11
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./common/imagePriority.js"),t=require("../../../carousel/components/item/CarouselItem.liquid.js"),r=require("../../../carousel/components/root/Carousel.liquid.js"),i=require("./ProductListCarouselItem.liquid.js"),o=require("../../../helpers.js"),s=require("./common/classes.js"),d=require("./common/helpers.js"),u=require("./common/styles.js"),l=require("@gem-sdk/core");exports.default=a=>{let{builderProps:c,advanced:n,productSrc:p,productListId:m}=a,{carouselConfigSetting:g,carouselConfigStyle:f}=d.getData(a),{carouselItemStyle:_}=u.getStyle(a),{carouselClass:q}=s.getClass(a),$=e.getListImagePriorityLiquid({slidesToShow:a.setting?.slidesToShow,rows:e.LIST_PRELOAD_ROWS.CAROUSEL});return l.template`
|
|
2
2
|
${r.default({advanced:n,builderProps:{...c},rootAttrs:{"items-repeat":"true"},rootId:`product-list-carousel-${c?.uid}`,rootClass:q,setting:g,styles:f,children:`
|
|
3
3
|
{%- assign count = 0 -%}
|
|
4
4
|
{%- for product in products limit: limit -%}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./common/imagePriority.js"),t=require("./ProductListGridItem.liquid.js"),i=require("../../../helpers.js"),s=require("@gem-sdk/core"),r=require("./common/classes.js"),o=require("./common/styles.js"),d=require("./common/attrs.js");exports.default=a=>{let{setting:l,builderProps:n,styles:c,productListId:u,productSrc:p}=a,{gridLayoutStyle:m}=o.getStyle(a),{gridLayoutClass:g}=r.getClass(a),{productListAttr:f}=d.getAttr(a),$=e.getListImagePriorityLiquid({slidesToShow:l?.slidesToShow,rows:e.LIST_PRELOAD_ROWS.GRID}),h=()=>s.template`
|
|
2
2
|
{%- assign count = 0 -%}
|
|
3
3
|
{%- for product in products limit: limit -%}
|
|
4
4
|
{%- if product.id != empty -%}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";var I=require("@gem-sdk/core");const e={desktop:4,tablet:2,mobile:2},i=i=>I.DEVICES.map(t=>{let s=Number(I.getResponsiveValueByScreen(i,t));return Math.max(1,Math.floor(s||e[t]))}),t=({slidesToShow:I,rows:e})=>{let t=i(I);return{eagerLimit:Math.max(...t)*e,highLimit:Math.min(...t),sizes:`${Number((100/Math.min(...t)).toFixed(2))}vw`}};exports.LIST_PRELOAD_ROWS={GRID:2,CAROUSEL:1},exports.getListImagePriority=t,exports.getListImagePriorityLiquid=({slidesToShow:e,rows:i,indexVar:s="count"})=>{let{eagerLimit:_,highLimit:L,sizes:a}=t({slidesToShow:e,rows:i});return{item:`{%- liquid
|
|
2
|
+
if ${s} <= ${_}
|
|
3
|
+
assign ${I.LIST_IMAGE_LIQUID_VARS.LOADING} = 'eager'
|
|
4
|
+
else
|
|
5
|
+
assign ${I.LIST_IMAGE_LIQUID_VARS.LOADING} = 'lazy'
|
|
6
|
+
endif
|
|
7
|
+
if ${s} <= ${L}
|
|
8
|
+
assign ${I.LIST_IMAGE_LIQUID_VARS.FETCH_PRIORITY} = 'high'
|
|
9
|
+
else
|
|
10
|
+
assign ${I.LIST_IMAGE_LIQUID_VARS.FETCH_PRIORITY} = 'auto'
|
|
11
|
+
endif
|
|
12
|
+
assign ${I.LIST_IMAGE_LIQUID_VARS.SIZES} = '${a}'
|
|
13
|
+
-%}`,reset:`{%- liquid
|
|
14
|
+
assign ${I.LIST_IMAGE_LIQUID_VARS.LOADING} = nil
|
|
15
|
+
assign ${I.LIST_IMAGE_LIQUID_VARS.FETCH_PRIORITY} = nil
|
|
16
|
+
assign ${I.LIST_IMAGE_LIQUID_VARS.SIZES} = nil
|
|
17
|
+
-%}`}};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../../carousel-v3/components/item/CarouselItem.liquid.js"),t=require("../../../carousel-v3/components/root/Carousel.liquid.js"),r=require("
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../../carousel-v3/components/item/CarouselItem.liquid.js"),t=require("../../../carousel-v3/components/root/Carousel.liquid.js"),r=require("../product-list/common/imagePriority.js"),i=require("./ProductListCarouselItem.liquid.js"),o=require("../../../helpers.js"),s=require("./common/classes.js"),d=require("./common/helpers.js"),u=require("./common/styles.js"),l=require("@gem-sdk/core");exports.default=a=>{let{builderProps:c,advanced:n,productSrc:p,productListId:m}=a,{carouselConfigSetting:g,carouselConfigStyle:f}=d.getData(a),{carouselItemStyle:_}=u.getStyle(a),{carouselClass:q}=s.getClass(a),$=r.getListImagePriorityLiquid({slidesToShow:a.setting?.slidesToShow,rows:r.LIST_PRELOAD_ROWS.CAROUSEL});return l.template`
|
|
2
2
|
${t.default({advanced:n,builderProps:{...c},rootAttrs:{"items-repeat":"true"},rootId:`product-list-carousel-${c?.uid}`,rootClass:q,setting:g,styles:f,isProductList:!0,children:`
|
|
3
3
|
{%- assign count = 0 -%}
|
|
4
4
|
{%- for product in products limit: limit -%}
|
|
@@ -15,9 +15,9 @@
|
|
|
15
15
|
${$.reset}
|
|
16
16
|
{%- if count == 0 and ${m.length} == 0 -%}
|
|
17
17
|
{% if '${p}' == 'RelatedProduct' -%}
|
|
18
|
-
<div>${
|
|
18
|
+
<div>${o.getStaticLocale("ProductList","no_related_products")}</div>
|
|
19
19
|
{% else %}
|
|
20
|
-
<div>${
|
|
20
|
+
<div>${o.getStaticLocale("ProductList","no_products_found")}</div>
|
|
21
21
|
{%- endif -%}
|
|
22
22
|
{%- endif -%}
|
|
23
23
|
`,carouselType:"product_list"})}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../product-list/common/imagePriority.js"),t=require("./ProductListGridItem.liquid.js"),i=require("../../../helpers.js"),s=require("@gem-sdk/core"),r=require("./common/classes.js"),o=require("./common/styles.js"),d=require("./common/attrs.js");exports.default=a=>{let{setting:l,builderProps:c,styles:n,productListId:u,productSrc:p}=a,{gridLayoutStyle:m}=o.getStyle(a),{gridLayoutClass:g}=r.getClass(a),{productListAttr:f}=d.getAttr(a),$=e.getListImagePriorityLiquid({slidesToShow:l?.slidesToShow,rows:e.LIST_PRELOAD_ROWS.GRID}),h=()=>s.template`
|
|
2
2
|
{%- assign count = 0 -%}
|
|
3
3
|
{%- for product in products limit: limit -%}
|
|
4
4
|
{%- if product.id != empty -%}
|
|
5
5
|
{%- assign count = count | plus: 1 -%}
|
|
6
6
|
${$.item}
|
|
7
7
|
{%- assign variant = product.selected_or_first_available_variant -%}
|
|
8
|
-
{%- assign product_form_id = 'product-form-' | append: "${
|
|
8
|
+
{%- assign product_form_id = 'product-form-' | append: "${c?.uid}" | append: product.id -%}
|
|
9
9
|
${t.default({...a})}
|
|
10
10
|
{%- endif -%}
|
|
11
11
|
{% endfor %}
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
class="gp-contents"
|
|
29
29
|
style="visibility: hidden"
|
|
30
30
|
>
|
|
31
|
-
<script gp-data type="application/json">${JSON.stringify({targetUid:
|
|
31
|
+
<script gp-data type="application/json">${JSON.stringify({targetUid:c?.builderData?.childrens?.[0],slidesToShow:l?.slidesToShow,rowGap:n?.horizontalGutter})}
|
|
32
32
|
</script>
|
|
33
33
|
${`${h()}`}
|
|
34
34
|
</gp-same-height>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{getAspectRatio as t,IMAGE_PLACEHOLDER as e,NEXT_IMAGE_CONFIG as r,getNewBackupFileKey as a,getImageSrc as
|
|
1
|
+
import{getAspectRatio as t,IMAGE_PLACEHOLDER as e,NEXT_IMAGE_CONFIG as r,getNewBackupFileKey as a,getImageSrc as i}from"./helpers.js";import{getListAwareLoadingAttrs as s,getListAwareSizes as l}from"./listContext.js";import{HREF_TO_SALES_PAGE as o}from"../../constant.js";import{createAttr as g}from"@gem-sdk/system";import{getImageSrcset as n}from"./srcset.js";let p=(t,e)=>({...t,...e&&{"data-id":e}}),u=({urlData:t,imageLink:e,title:r,isLiquid:a=!1})=>{let i=a?{...t,...e?.noFollow&&{rel:"nofollow"},title:r}:{setting:t,title:r};return e?.type!=="go-to-sales-page"?e?.link?i:{}:a?{href:o,target:"_self"}:{setting:{href:o,target:"_self"}}},m=({pageContext:t})=>({...t&&{pageContext:t}}),c=t=>t?{loading:"eager",fetchpriority:"high"}:{loading:"lazy"},A=({styles:e,setting:r,sizeTarget:a,resolvedSrcSet:i})=>{let{alt:s,srcSet:l,priority:o,title:g,qualityType:n,qualityPercent:p}=r??{},u=t({styles:e,setting:r});return{pictureClass:"gp-contents",...s&&{alt:s},...g&&{title:g},...l&&{srcSet:l},...i&&{resolvedSrcSet:i},...o&&{priority:o},...a&&{sizeTarget:a},...n&&{qualityType:n},...p&&{qualityPercent:p},...e?.objectFit&&{layout:e.objectFit},aspectRatio:u}},y=({styles:e,setting:r})=>{let{objectFit:a}=e??{},{vw:i,alt:s,title:l,quality:o,priority:g,isNotLazyload:n,qualityType:p,qualityPercent:u}=r??{},m=t({styles:e,setting:r});return{...r?.image,...i&&{vw:i},...s&&{alt:s},...l&&{title:l},...o&&{quality:o},...g&&{priority:g},isNotLazyload:n,setting:{aspectRatio:m,layout:a,qualityType:p,qualityPercent:u}}},d=t=>{let{id:e,src:o=r.DEFAULT_SRC,alt:p=r.DEFAULT_ALT,title:u,sizes:m,srcset:A,storage:y,baseSrc:d,priority:L,customAttrs:f,width:T=2237,height:h=1678,setting:F,sizeTarget:_,resolvedSrc:b,backupFileKey:D,backupFilePath:I,srcIsLiquidCode:E}=t,U=(()=>{if(E)return{src:o,...A&&{srcset:A}};let t=D?a(D,o):"",e=i({src:o,backupFileKey:t,backupFilePath:I,storage:y}),r=n({src:e,resolvedSrc:b,sizeTarget:_,qualityType:F?.qualityType,qualityPercent:F?.qualityPercent});return{src:e,...r&&{srcset:r}}})(),j=E&&U.srcset?l():void 0,q=m||j;return g({...f,...e&&{id:e},...p&&{alt:p},...u&&{title:u},width:T,height:h,draggable:"false",...U,...q&&{sizes:q},...d&&{"base-src":d},...E?s(L):c(L)})},L=t=>{let{width:a=r.DEFAULT_WIDTH_PROPS,height:i=r.DEFAULT_HEIGHT_PROPS,quality:s,priority:l,isNotLazyload:o,pageContext:n,base64:p=e,alt:u=r.DEFAULT_ALT,title:m,src:c=r.DEFAULT_SRC}=t,A=!o&&(n?.enableLazyLoadImage??!0)&&!l,y=g((()=>{let t={loading:"lazy",placeholder:"blur",...p&&{blurDataURL:p}};return{...A?t:{loading:"eager",fetchpriority:"high"}}})());return{src:c,alt:u,title:m,width:a,height:i,quality:s,...y}};export{A as getAdaptiveImageAttrs,p as getContainerAttrs,m as getImageLiquidAttrs,u as getLinkWrapperAttrs,c as getLoadingAttrs,y as getNextImageAttrs,d as getNextImageLiquidAttrs,L as getNextImageReactAttrs};
|
|
@@ -1,15 +1 @@
|
|
|
1
|
-
import{
|
|
2
|
-
if count <= ${Math.max(...g)*e}
|
|
3
|
-
assign ${t} = '${a.EAGER}'
|
|
4
|
-
else
|
|
5
|
-
assign ${t} = '${a.LAZY}'
|
|
6
|
-
endif
|
|
7
|
-
if count <= ${Math.min(...g)*e}
|
|
8
|
-
assign ${s} = '${n.HIGH}'
|
|
9
|
-
else
|
|
10
|
-
assign ${s} = '${n.AUTO}'
|
|
11
|
-
endif
|
|
12
|
-
-%}`,reset:`{%- liquid
|
|
13
|
-
assign ${t} = nil
|
|
14
|
-
assign ${s} = nil
|
|
15
|
-
-%}`}},o=i=>i?{loading:`{% if ${t} == '${a.LAZY}' %}${a.LAZY}{% else %}${a.EAGER}{% endif %}`,fetchpriority:`{% if ${s} == '${n.AUTO}' %}${n.AUTO}{% else %}${n.HIGH}{% endif %}`}:{loading:a.LAZY};export{l as LIST_PRELOAD_ROWS,o as getListAwareLoadingAttrs,$ as getListImagePriorityLiquid};
|
|
1
|
+
import{LIST_IMAGE_LIQUID_VARS as e}from"@gem-sdk/core";let i={EAGER:"eager",LAZY:"lazy"},t={HIGH:"high",AUTO:"auto"},A=A=>A?{loading:`{% if ${e.LOADING} == '${i.LAZY}' %}${i.LAZY}{% else %}${i.EAGER}{% endif %}`,fetchpriority:`{% if ${e.FETCH_PRIORITY} == '${t.AUTO}' %}${t.AUTO}{% else %}${t.HIGH}{% endif %}`}:{loading:i.LAZY},r=()=>`{{ ${e.SIZES} | default: '100vw' }}`;export{A as getListAwareLoadingAttrs,r as getListAwareSizes};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{DEVICES as e,hasTranslatedLiquid as t,getResponsiveValueByScreen as r}from"@gem-sdk/core";import{isCannotResizeImageByQuery as i}from"./helpers.js";let l={mobile:768,tablet:1024,desktop:1440},a={Image:{desktop:1024,tablet:1024,mobile:
|
|
1
|
+
import{DEVICES as e,hasTranslatedLiquid as t,getResponsiveValueByScreen as r}from"@gem-sdk/core";import{isCannotResizeImageByQuery as i}from"./helpers.js";let l={mobile:768,tablet:1024,desktop:1440},a={Image:{desktop:1024,tablet:1024,mobile:640},HeroBanner:{desktop:1920,tablet:1280,mobile:768},ImageComparison:{desktop:1024,tablet:768,mobile:640},ProductFeatureImage:{desktop:1024,tablet:1024,mobile:640},GalleryList:{desktop:256,tablet:256,mobile:128},ArticleImage:{desktop:1024,tablet:768,mobile:640}},o="high",s={high:100,medium:70},n=["GalleryList"],d="original",m=/\s*%\s*$/,p=e=>{if("number"==typeof e)return e;let t=Number.parseFloat(String(e??"").replace(m,""));return Number.isFinite(t)?t:100},u=/^\{\{\s*([\s\S]*?)\s*\}\}$/,c=/\{\{|\{%/,b=e=>!!e&&e.includes("cdn.shopify")&&!i(e),f=({qualityType:t,qualityPercent:i})=>{if(!t&&!i)return;let l={};for(let a of e){let e=r(t,a,o)??o;if("finest"===e){l[a]=d;continue}let n="custom"===e?p(r(i,a,100)):s[e]??100;l[a]=(n>0?n:100)/100}return l},g=(e,t)=>{let r=e.match(u);return r?`{{ ${r[1]} | append: '?width=${t}' | replace: '?', '&' | replace_first: '&', '?' }}`:`${e}${e.includes("?")?"&":"?"}width=${t}`},h=({sizeTarget:t="Image",qualityType:i,qualityPercent:o})=>{let s=f({qualityType:i,qualityPercent:o}),m=a[t]??a.Image,p=!n.includes(t),u=e=>{let t=r(s,e,1)??1;return t===d?p?d:m[e]:Math.round(m[e]*t)};return e.map(e=>({device:e,width:u(e),descriptor:l[e]})).sort((e,t)=>e.descriptor-t.descriptor)},I=e=>e.every(e=>e.width===d),S=({src:e,resolvedSrc:r,sizeTarget:i,qualityType:l,qualityPercent:a})=>{if(!e)return;let o=u.test(e);if(!o&&c.test(e))return;let s=o?t(e)?r:void 0:e;if(!b(s))return;let n=h({sizeTarget:i,qualityType:l,qualityPercent:a});if(!I(n))return n.map(({width:t,descriptor:r})=>{let i=t===d?e:g(e,t);return`${i} ${r}w`}).join(", ")};export{d as ORIGINAL_QUALITY,l as SRCSET_DEVICE_DESCRIPTORS,a as SRCSET_TARGET_WIDTHS,g as appendWidthParam,b as canResizeByShopifyCdn,S as getImageSrcset,f as getQualityMultiplier,h as getSrcsetCandidates,I as isEveryCandidateOriginal};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import{getConditionRenderGalleryImages as e,getStyleInsideLayout as o,setDefaultWhenUndefineSetting as
|
|
1
|
+
import{getConditionRenderGalleryImages as e,getStyleInsideLayout as o,setDefaultWhenUndefineSetting as t}from"./common/common.js";import{isLocalEnv as i,baseAssetURL as r,template as s,WrapRenderChildren as a,RenderChildren as l}from"@gem-sdk/core";import p from"./components/feature-gallery/FeatureImageWithGallery.liquid.js";import{getShapeByLayout as d,sizeSettingDefaultForNewLayout as m}from"./common/productGallery.js";import{getProductImagesClassName as n}from"./composables/getProductImagesClassName.js";import c from"./components/gallery-carousel/GalleryCarousel.liquid.js";import{createAttr as u,LiquidIf as g,createClass as f,If as y,Liquid as $}from"@gem-sdk/system";import{getProductImagesStyles as h}from"./composables/getProductImagesStyles.js";import{filterPageContext as j,getSettingPreloadData as v}from"../../../helpers.js";import S from"./components/gallery-grid/GalleryGrid.liquid.js";import{getBorderActiveCss as F}from"./common/getBorderActiveCss.js";import{getStyleOfObject as I}from"../../helpers/function.js";let C=C=>{let P=t(C),{setting:G,styles:D,builderProps:b,style:z}=P,{rawChildren:O,pageContext:_}=C,N={...G,...D},A=`
|
|
2
2
|
{
|
|
3
3
|
"id":${JSON.stringify(b?.uid)},
|
|
4
4
|
"pageContext": ${JSON.stringify(j(_))},
|
|
5
5
|
"setting":${JSON.stringify(G)},
|
|
6
6
|
"styles":${JSON.stringify(D)},
|
|
7
7
|
"productUrl":{{product.url | json }},
|
|
8
|
-
"product":{% if product %}{"id":{{ product.id | json }},"handle":{{ product.handle | json }},"media":{{ product.media | json }}}{% else %}null{% endif %},
|
|
8
|
+
"product":{% if product %}{"id":{{ product.id | json }},"handle":{{ product.handle | json }},"options":{{ product.options | json }},"media":{{ product.media | json }}}{% else %}null{% endif %},
|
|
9
9
|
"collectionUrl": {{ collection.url | json }},
|
|
10
10
|
"collection": {% if collection %}{"handle":{{ collection.handle | json }}}{% else %}null{% endif %}
|
|
11
11
|
}
|
|
@@ -40,5 +40,5 @@ import{getConditionRenderGalleryImages as e,getStyleInsideLayout as o,setDefault
|
|
|
40
40
|
`)}
|
|
41
41
|
</div>
|
|
42
42
|
</gp-product-images-v3>
|
|
43
|
-
${y(
|
|
43
|
+
${y(i,`<script ${v('class="gps-link" delay',"src")}="{{ 'gp-product-images-v3-v7-5.js' | asset_url }}" defer="defer"></script>`,`<script ${v('class="gps-link" delay',"src")}="${r}/assets-v2/gp-product-images-v3-v7-5.js?v={{ shop.metafields.GEMPAGES.ASSETS_VERSION }}" defer="defer"></script>`)}
|
|
44
44
|
`};export{C as default};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import{getConditionRenderGalleryImages as e,getStyleInsideLayout as o,setDefaultWhenUndefineSetting as
|
|
1
|
+
import{getConditionRenderGalleryImages as e,getStyleInsideLayout as o,setDefaultWhenUndefineSetting as t}from"./common/common.js";import{isLocalEnv as i,baseAssetURL as r,template as s,WrapRenderChildren as a,RenderChildren as l}from"@gem-sdk/core";import p from"./components/feature-gallery/FeatureImageWithGalleryEmbla.liquid.js";import{getShapeByLayout as d,sizeSettingDefaultForNewLayout as m}from"./common/productGallery.js";import n from"./components/gallery-carousel/GalleryCarouselEmbla.liquid.js";import{getProductImagesClassName as c}from"./composables/getProductImagesClassName.js";import{createAttr as u,LiquidIf as g,createClass as f,If as y,Liquid as $}from"@gem-sdk/system";import{getProductImagesStyles as h}from"./composables/getProductImagesStyles.js";import{filterPageContext as j,getSettingPreloadData as v}from"../../../helpers.js";import S from"./components/gallery-grid/GalleryGrid.liquid.js";import{getBorderActiveCss as F}from"./common/getBorderActiveCss.js";import{getStyleOfObject as I}from"../../helpers/function.js";let C=C=>{let P=t(C),{setting:b,styles:G,builderProps:D,style:z}=P,{rawChildren:O,pageContext:_}=C,E={...b,...G},N=`
|
|
2
2
|
{
|
|
3
3
|
"id":${JSON.stringify(D?.uid)},
|
|
4
4
|
"pageContext": ${JSON.stringify(j(_))},
|
|
5
5
|
"setting":${JSON.stringify(b)},
|
|
6
6
|
"styles":${JSON.stringify(G)},
|
|
7
7
|
"productUrl":{{product.url | json }},
|
|
8
|
-
"product":{% if product %}{"id":{{ product.id | json }},"handle":{{ product.handle | json }},"media":{{ product.media | json }}}{% else %}null{% endif %},
|
|
8
|
+
"product":{% if product %}{"id":{{ product.id | json }},"handle":{{ product.handle | json }},"options":{{ product.options | json }},"media":{{ product.media | json }}}{% else %}null{% endif %},
|
|
9
9
|
"collectionUrl": {{ collection.url | json }},
|
|
10
10
|
"collection": {% if collection %}{"handle":{{ collection.handle | json }}}{% else %}null{% endif %}
|
|
11
11
|
}
|
|
@@ -40,5 +40,5 @@ import{getConditionRenderGalleryImages as e,getStyleInsideLayout as o,setDefault
|
|
|
40
40
|
`)}
|
|
41
41
|
</div>
|
|
42
42
|
</gp-product-images-v3>
|
|
43
|
-
${y(
|
|
43
|
+
${y(i,`<script ${v('class="gps-link" delay',"src")}="{{ 'gp-product-images-v3-v7-5.js' | asset_url }}" defer="defer"></script>`,`<script ${v('class="gps-link" delay',"src")}="${r}/assets-v2/gp-product-images-v3-v7-5.js?v={{ shop.metafields.GEMPAGES.ASSETS_VERSION }}" defer="defer"></script>`)}
|
|
44
44
|
`};export{C as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{getListImagePriorityLiquid as o,LIST_PRELOAD_ROWS as t}from"
|
|
1
|
+
import{getListImagePriorityLiquid as o,LIST_PRELOAD_ROWS as t}from"./common/imagePriority.js";import r from"../../../carousel/components/item/CarouselItem.liquid.js";import e from"../../../carousel/components/root/Carousel.liquid.js";import i from"./ProductListCarouselItem.liquid.js";import{getStaticLocale as s}from"../../../helpers.js";import{getClass as d}from"./common/classes.js";import{getData as u}from"./common/helpers.js";import{getStyle as l}from"./common/styles.js";import{template as m}from"@gem-sdk/core";let n=n=>{let{builderProps:c,advanced:a,productSrc:p,productListId:f}=n,{carouselConfigSetting:$,carouselConfigStyle:g}=u(n),{carouselItemStyle:_}=l(n),{carouselClass:h}=d(n),j=o({slidesToShow:n.setting?.slidesToShow,rows:t.CAROUSEL});return m`
|
|
2
2
|
${e({advanced:a,builderProps:{...c},rootAttrs:{"items-repeat":"true"},rootId:`product-list-carousel-${c?.uid}`,rootClass:h,setting:$,styles:g,children:`
|
|
3
3
|
{%- assign count = 0 -%}
|
|
4
4
|
{%- for product in products limit: limit -%}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{getListImagePriorityLiquid as t,LIST_PRELOAD_ROWS as i}from"
|
|
1
|
+
import{getListImagePriorityLiquid as t,LIST_PRELOAD_ROWS as i}from"./common/imagePriority.js";import o from"./ProductListGridItem.liquid.js";import{getStaticLocale as s}from"../../../helpers.js";import{RenderIf as r,template as e}from"@gem-sdk/core";import{getClass as d}from"./common/classes.js";import{getStyle as a}from"./common/styles.js";import{getAttr as m}from"./common/attrs.js";let n=n=>{let{setting:p,builderProps:c,styles:l,productListId:u,productSrc:f}=n,{gridLayoutStyle:g}=a(n),{gridLayoutClass:$}=d(n),{productListAttr:h}=m(n),v=t({slidesToShow:p?.slidesToShow,rows:i.GRID}),_=()=>e`
|
|
2
2
|
{%- assign count = 0 -%}
|
|
3
3
|
{%- for product in products limit: limit -%}
|
|
4
4
|
{%- if product.id != empty -%}
|
|
@@ -6,7 +6,7 @@ import{getListImagePriorityLiquid as t,LIST_PRELOAD_ROWS as i}from"../../../imag
|
|
|
6
6
|
${v.item}
|
|
7
7
|
{%- assign variant = product.selected_or_first_available_variant -%}
|
|
8
8
|
{%- assign product_form_id = 'product-form-' | append: "${c?.uid}" | append: product.id -%}
|
|
9
|
-
${o({...
|
|
9
|
+
${o({...n})}
|
|
10
10
|
{%- endif -%}
|
|
11
11
|
{% endfor %}
|
|
12
12
|
${v.reset}
|
|
@@ -17,13 +17,13 @@ import{getListImagePriorityLiquid as t,LIST_PRELOAD_ROWS as i}from"../../../imag
|
|
|
17
17
|
<div>${s("ProductList","no_products_found")}</div>
|
|
18
18
|
{%- endif -%}
|
|
19
19
|
{%- endif -%}
|
|
20
|
-
`;return
|
|
20
|
+
`;return e`
|
|
21
21
|
<div
|
|
22
22
|
${h}
|
|
23
23
|
style="${g}"
|
|
24
24
|
class="${$}"
|
|
25
25
|
>
|
|
26
|
-
${
|
|
26
|
+
${r(p?.sameHeight,e`
|
|
27
27
|
<gp-same-height
|
|
28
28
|
class="gp-contents"
|
|
29
29
|
style="visibility: hidden"
|
|
@@ -33,6 +33,6 @@ import{getListImagePriorityLiquid as t,LIST_PRELOAD_ROWS as i}from"../../../imag
|
|
|
33
33
|
${`${_()}`}
|
|
34
34
|
</gp-same-height>
|
|
35
35
|
`)}
|
|
36
|
-
${
|
|
36
|
+
${r(!p?.sameHeight,e`${_()}`)}
|
|
37
37
|
</div>
|
|
38
|
-
`};export{
|
|
38
|
+
`};export{n as default};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import{LIST_IMAGE_LIQUID_VARS as i,DEVICES as e,getResponsiveValueByScreen as t}from"@gem-sdk/core";let s={desktop:4,tablet:2,mobile:2},a={GRID:2,CAROUSEL:1},r=i=>e.map(e=>{let a=Number(t(i,e));return Math.max(1,Math.floor(a||s[e]))}),n=({slidesToShow:i,rows:e})=>{let t=r(i);return{eagerLimit:Math.max(...t)*e,highLimit:Math.min(...t),sizes:`${Number((100/Math.min(...t)).toFixed(2))}vw`}},g=({slidesToShow:e,rows:t,indexVar:s="count"})=>{let{eagerLimit:a,highLimit:r,sizes:g}=n({slidesToShow:e,rows:t});return{item:`{%- liquid
|
|
2
|
+
if ${s} <= ${a}
|
|
3
|
+
assign ${i.LOADING} = 'eager'
|
|
4
|
+
else
|
|
5
|
+
assign ${i.LOADING} = 'lazy'
|
|
6
|
+
endif
|
|
7
|
+
if ${s} <= ${r}
|
|
8
|
+
assign ${i.FETCH_PRIORITY} = 'high'
|
|
9
|
+
else
|
|
10
|
+
assign ${i.FETCH_PRIORITY} = 'auto'
|
|
11
|
+
endif
|
|
12
|
+
assign ${i.SIZES} = '${g}'
|
|
13
|
+
-%}`,reset:`{%- liquid
|
|
14
|
+
assign ${i.LOADING} = nil
|
|
15
|
+
assign ${i.FETCH_PRIORITY} = nil
|
|
16
|
+
assign ${i.SIZES} = nil
|
|
17
|
+
-%}`}};export{a as LIST_PRELOAD_ROWS,n as getListImagePriority,g as getListImagePriorityLiquid};
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import o from"../../../carousel-v3/components/item/CarouselItem.liquid.js";import t from"../../../carousel-v3/components/root/Carousel.liquid.js";import{getListImagePriorityLiquid as r,LIST_PRELOAD_ROWS as
|
|
1
|
+
import o from"../../../carousel-v3/components/item/CarouselItem.liquid.js";import t from"../../../carousel-v3/components/root/Carousel.liquid.js";import{getListImagePriorityLiquid as r,LIST_PRELOAD_ROWS as i}from"../product-list/common/imagePriority.js";import e from"./ProductListCarouselItem.liquid.js";import{getStaticLocale as s}from"../../../helpers.js";import{getClass as d}from"./common/classes.js";import{getData as u}from"./common/helpers.js";import{getStyle as l}from"./common/styles.js";import{template as c}from"@gem-sdk/core";let n=n=>{let{builderProps:m,advanced:p,productSrc:a,productListId:f}=n,{carouselConfigSetting:g,carouselConfigStyle:$}=u(n),{carouselItemStyle:_}=l(n),{carouselClass:v}=d(n),P=r({slidesToShow:n.setting?.slidesToShow,rows:i.CAROUSEL});return c`
|
|
2
2
|
${t({advanced:p,builderProps:{...m},rootAttrs:{"items-repeat":"true"},rootId:`product-list-carousel-${m?.uid}`,rootClass:v,setting:g,styles:$,isProductList:!0,children:`
|
|
3
3
|
{%- assign count = 0 -%}
|
|
4
4
|
{%- for product in products limit: limit -%}
|
|
5
5
|
{%- if product.id != empty -%}
|
|
6
6
|
{%- assign count = count | plus: 1 -%}
|
|
7
|
-
${
|
|
7
|
+
${P.item}
|
|
8
8
|
{%- assign variant = product.selected_or_first_available_variant -%}
|
|
9
9
|
{%- assign product_form_id = 'product-form-' | append: "${m?.uid}" | append: product.id -%}
|
|
10
10
|
${o({builderProps:{...m},style:_,parentId:`product-list-carousel-${m?.uid} gp-child-item-${m?.uid}`,parentStyle:$,parentSettings:g,background:g?.background,children:`
|
|
11
|
-
${
|
|
11
|
+
${e({...n})}
|
|
12
12
|
`})}
|
|
13
13
|
{%- endif -%}
|
|
14
14
|
{% endfor %}
|
|
15
|
-
${
|
|
15
|
+
${P.reset}
|
|
16
16
|
{%- if count == 0 and ${f.length} == 0 -%}
|
|
17
17
|
{% if '${a}' == 'RelatedProduct' -%}
|
|
18
|
-
<div>${
|
|
18
|
+
<div>${s("ProductList","no_related_products")}</div>
|
|
19
19
|
{% else %}
|
|
20
|
-
<div>${
|
|
20
|
+
<div>${s("ProductList","no_products_found")}</div>
|
|
21
21
|
{%- endif -%}
|
|
22
22
|
{%- endif -%}
|
|
23
23
|
`,carouselType:"product_list"})}
|
|
24
|
-
`};export{
|
|
24
|
+
`};export{n as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{getListImagePriorityLiquid as t,LIST_PRELOAD_ROWS as i}from"
|
|
1
|
+
import{getListImagePriorityLiquid as t,LIST_PRELOAD_ROWS as i}from"../product-list/common/imagePriority.js";import o from"./ProductListGridItem.liquid.js";import{getStaticLocale as s}from"../../../helpers.js";import{RenderIf as r,template as e}from"@gem-sdk/core";import{getClass as d}from"./common/classes.js";import{getStyle as a}from"./common/styles.js";import{getAttr as m}from"./common/attrs.js";let n=n=>{let{setting:p,builderProps:c,styles:l,productListId:u,productSrc:f}=n,{gridLayoutStyle:g}=a(n),{gridLayoutClass:$}=d(n),{productListAttr:h}=m(n),v=t({slidesToShow:p?.slidesToShow,rows:i.GRID}),_=()=>e`
|
|
2
2
|
{%- assign count = 0 -%}
|
|
3
3
|
{%- for product in products limit: limit -%}
|
|
4
4
|
{%- if product.id != empty -%}
|
|
@@ -6,7 +6,7 @@ import{getListImagePriorityLiquid as t,LIST_PRELOAD_ROWS as i}from"../../../imag
|
|
|
6
6
|
${v.item}
|
|
7
7
|
{%- assign variant = product.selected_or_first_available_variant -%}
|
|
8
8
|
{%- assign product_form_id = 'product-form-' | append: "${c?.uid}" | append: product.id -%}
|
|
9
|
-
${o({...
|
|
9
|
+
${o({...n})}
|
|
10
10
|
{%- endif -%}
|
|
11
11
|
{% endfor %}
|
|
12
12
|
${v.reset}
|
|
@@ -17,13 +17,13 @@ import{getListImagePriorityLiquid as t,LIST_PRELOAD_ROWS as i}from"../../../imag
|
|
|
17
17
|
<div>${s("ProductList","no_products_found")}</div>
|
|
18
18
|
{%- endif -%}
|
|
19
19
|
{%- endif -%}
|
|
20
|
-
`;return
|
|
20
|
+
`;return e`
|
|
21
21
|
<div
|
|
22
22
|
${h}
|
|
23
23
|
style="${g}"
|
|
24
24
|
class="${$}"
|
|
25
25
|
>
|
|
26
|
-
${
|
|
26
|
+
${r(p?.sameHeight,e`
|
|
27
27
|
<gp-same-height
|
|
28
28
|
class="gp-contents"
|
|
29
29
|
style="visibility: hidden"
|
|
@@ -33,6 +33,6 @@ import{getListImagePriorityLiquid as t,LIST_PRELOAD_ROWS as i}from"../../../imag
|
|
|
33
33
|
${`${_()}`}
|
|
34
34
|
</gp-same-height>
|
|
35
35
|
`)}
|
|
36
|
-
${
|
|
36
|
+
${r(!p?.sameHeight,e`${_()}`)}
|
|
37
37
|
</div>
|
|
38
|
-
`};export{
|
|
38
|
+
`};export{n as default};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gem-sdk/components",
|
|
3
|
-
"version": "23.0.0-dev.
|
|
3
|
+
"version": "23.0.0-dev.24",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"main": "dist/cjs/index.js",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"post:publish": "node ./scripts/convert-publish.js",
|
|
20
20
|
"pre:publish": "node ./scripts/convert-publish.js -p",
|
|
21
21
|
"relationship": "rollup -c ./scripts/rollup.config.settings.mjs && node ./scripts/element-relationship/index.js",
|
|
22
|
-
"test": "jest -c ./../../helpers/jest.config.ts",
|
|
22
|
+
"test": "jest -c ./../../helpers/jest.config.ts && yarn test:data",
|
|
23
23
|
"test:data": "NODE_OPTIONS=--experimental-vm-modules GP_BASE_ASSET_URL=https://assets.gemcommerce.xyz jest -c ./../../helpers/jest.config.ts --testPathPatterns data.liquid.test",
|
|
24
24
|
"test:data:update": "yarn test:data -u",
|
|
25
25
|
"test:watch": "jest -c ./../../helpers/jest.config.ts --watch",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"react-youtube": "10.1.0"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
|
-
"@gem-sdk/core": "23.0.0-dev.
|
|
37
|
+
"@gem-sdk/core": "23.0.0-dev.24",
|
|
38
38
|
"@gem-sdk/styles": "23.0.0-dev.19",
|
|
39
39
|
"@gem-sdk/system": "23.0.0-dev.18",
|
|
40
40
|
"@shopify/prettier-plugin-liquid": "^1.10.3",
|