@gem-sdk/components 2.4.0 → 2.4.2
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/collection/components/CollectionPaginator.liquid.js +2 -2
- package/dist/cjs/product/components/ProductImagesV2/liquid/ProductGalleryCarousel.liquid.js +1 -1
- package/dist/cjs/third-party/setting/RequestQuoteHidePrice.js +2 -1
- package/dist/esm/collection/components/CollectionPaginator.liquid.js +2 -2
- package/dist/esm/product/components/ProductImagesV2/liquid/ProductGalleryCarousel.liquid.js +1 -1
- package/dist/esm/third-party/setting/RequestQuoteHidePrice.js +2 -1
- package/package.json +1 -1
|
@@ -58,8 +58,8 @@ const CollectionPaginator = ({ setting, builderProps, pageContext })=>{
|
|
|
58
58
|
>
|
|
59
59
|
<div class="gf_collection-paginator-wrapper gp-inline-flex gp-flex-wrap">
|
|
60
60
|
{% paginate collection.products by ${limit} %}
|
|
61
|
-
{% assign previousText = ${pageContext?.isPreviewing ? `${previousTextVal}` : previousTextVal} %}
|
|
62
|
-
{% assign nextText = ${pageContext?.isPreviewing ? `${nextTextVal}` : nextTextVal} %}
|
|
61
|
+
{% assign previousText = ${pageContext?.isPreviewing ? `${previousTextVal}` : previousTextVal || `""`} %}
|
|
62
|
+
{% assign nextText = ${pageContext?.isPreviewing ? `${nextTextVal}` : nextTextVal || `""`} %}
|
|
63
63
|
{{ paginate | default_pagination: previous: previousText, next: nextText }}
|
|
64
64
|
{% endpaginate %}
|
|
65
65
|
</div>
|
|
@@ -106,7 +106,7 @@ const ProductGalleryCarousel = ({ builderPropUID, children, enableLazyloadImage,
|
|
|
106
106
|
'tablet'
|
|
107
107
|
];
|
|
108
108
|
DEVICES.forEach((device)=>{
|
|
109
|
-
const value = aspectRatio?.[device] !== 'auto' && !!aspectRatio?.[device] ? aspectRatio?.[device]?.split('').reverse().join('') : '{%if media.height%} {{media.height}} / {{media.width}} {%else%} 100 / 100 {%endif%}';
|
|
109
|
+
const value = aspectRatio?.[device] !== 'auto' && !!aspectRatio?.[device] ? aspectRatio?.[device]?.split('/').reverse().join('/') : '{%if media.height%} {{media.height}} / {{media.width}} {%else%} 100 / 100 {%endif%}';
|
|
110
110
|
result = {
|
|
111
111
|
...result,
|
|
112
112
|
[device]: `calc((${value})*100%)`
|
|
@@ -54,8 +54,8 @@ const CollectionPaginator = ({ setting, builderProps, pageContext })=>{
|
|
|
54
54
|
>
|
|
55
55
|
<div class="gf_collection-paginator-wrapper gp-inline-flex gp-flex-wrap">
|
|
56
56
|
{% paginate collection.products by ${limit} %}
|
|
57
|
-
{% assign previousText = ${pageContext?.isPreviewing ? `${previousTextVal}` : previousTextVal} %}
|
|
58
|
-
{% assign nextText = ${pageContext?.isPreviewing ? `${nextTextVal}` : nextTextVal} %}
|
|
57
|
+
{% assign previousText = ${pageContext?.isPreviewing ? `${previousTextVal}` : previousTextVal || `""`} %}
|
|
58
|
+
{% assign nextText = ${pageContext?.isPreviewing ? `${nextTextVal}` : nextTextVal || `""`} %}
|
|
59
59
|
{{ paginate | default_pagination: previous: previousText, next: nextText }}
|
|
60
60
|
{% endpaginate %}
|
|
61
61
|
</div>
|
|
@@ -102,7 +102,7 @@ const ProductGalleryCarousel = ({ builderPropUID, children, enableLazyloadImage,
|
|
|
102
102
|
'tablet'
|
|
103
103
|
];
|
|
104
104
|
DEVICES.forEach((device)=>{
|
|
105
|
-
const value = aspectRatio?.[device] !== 'auto' && !!aspectRatio?.[device] ? aspectRatio?.[device]?.split('').reverse().join('') : '{%if media.height%} {{media.height}} / {{media.width}} {%else%} 100 / 100 {%endif%}';
|
|
105
|
+
const value = aspectRatio?.[device] !== 'auto' && !!aspectRatio?.[device] ? aspectRatio?.[device]?.split('/').reverse().join('/') : '{%if media.height%} {{media.height}} / {{media.width}} {%else%} 100 / 100 {%endif%}';
|
|
106
106
|
result = {
|
|
107
107
|
...result,
|
|
108
108
|
[device]: `calc((${value})*100%)`
|