@gem-sdk/components 12.0.0-staging.3 → 12.0.0-staging.5
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/carousel-v3/components/item/CarouselItem.liquid.js +1 -0
- package/dist/cjs/carousel-v3/components/swiper/SwiperSlide.js +1 -1
- package/dist/cjs/product/components/product-title/ProductTitle.liquid.js +1 -1
- package/dist/esm/carousel-v3/components/item/CarouselItem.liquid.js +3 -2
- package/dist/esm/carousel-v3/components/swiper/SwiperSlide.js +1 -1
- package/dist/esm/product/components/product-title/ProductTitle.liquid.js +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var jsxRuntime=require("react/jsx-runtime"),styles=require("./common/styles.js");function SwiperSlide(e){let{children:
|
|
1
|
+
"use strict";var jsxRuntime=require("react/jsx-runtime"),styles=require("./common/styles.js");function SwiperSlide(e){let{children:r,className:i,dir:s,...t}=e,l=styles.getStyleSwiperSlider(e);return jsxRuntime.jsx("swiper-slide",{class:i,...t,style:l,dir:"ltr",children:r})}exports.SwiperSlide=SwiperSlide;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var core=require("@gem-sdk/core"),helpers=require("../../../helpers.js"),Text_liquid=require("../../../text/components/Text.liquid.js"),system=require("@gem-sdk/system"),helpers$1=require("./common/helpers.js");const ProductTitle=e=>{let{setting:t,builderProps:r}=e,s=`<p>${helpers.getStaticLocale("ProductTitle","product_not_found")}</p>`,l=()=>Text_liquid.default(helpers$1.getTextProps(e)),i=system.createAttr({href:"{{ product.url }}",title:"{{ product.title }}"}),o=t?.linkProduct,c=system.createClass({"gp-product-title-link-wrapper":!0}),p=system.createStateOrContext({linkProduct:t?.linkProduct,uid:r?.uid}),u=()=>{let e=core.isLocalEnv?"{{ 'gp-product-title-v7-5.js' | asset_url }}":`${core.baseAssetURL}/assets-v2/gp-product-title-v7-5.js?v={{ shop.metafields.GEMPAGES.ASSETS_VERSION }}`;return`<script ${helpers.getSettingPreloadData('class="gps-link" delay',"src")}="${e}" defer="defer"></script>`};return system.LiquidUnless("product",`${s}`,core.template`
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var core=require("@gem-sdk/core"),helpers=require("../../../helpers.js"),Text_liquid=require("../../../text/components/Text.liquid.js"),system=require("@gem-sdk/system"),helpers$1=require("./common/helpers.js");const ProductTitle=e=>{let{setting:t,builderProps:r}=e,s=`<p>${helpers.getStaticLocale("ProductTitle","product_not_found")}</p>`,l=()=>Text_liquid.default(helpers$1.getTextProps(e)),i=system.createAttr({href:"{{ product.url }}",title:"{{ product.title }}"}),o=t?.linkProduct,c=system.createClass({"gp-product-title-link-wrapper":!0}),p=system.createStateOrContext({setting:{linkProduct:t?.linkProduct},uid:r?.uid}),u=()=>{let e=core.isLocalEnv?"{{ 'gp-product-title-v7-5.js' | asset_url }}":`${core.baseAssetURL}/assets-v2/gp-product-title-v7-5.js?v={{ shop.metafields.GEMPAGES.ASSETS_VERSION }}`;return`<script ${helpers.getSettingPreloadData('class="gps-link" delay',"src")}="${e}" defer="defer"></script>`};return system.LiquidUnless("product",`${s}`,core.template`
|
|
2
2
|
<gp-product-title
|
|
3
3
|
gp-data='${core.dataStringify(p)}'
|
|
4
4
|
>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import{template as e}from"@gem-sdk/core";import{getStyle as r}from"./common/styles.js";import{getClass as i}from"./common/classes.js";let CarouselItem=
|
|
1
|
+
import{template as e}from"@gem-sdk/core";import{getStyle as r}from"./common/styles.js";import{getClass as i}from"./common/classes.js";let CarouselItem=d=>{let{builderAttrs:s,index:m,children:a,id:o}=d,{carouselItemStyle:t,carouselItemInnerStyle:l}=r(d),{carouselItemClass:c,carouselItemInnerClass:u}=i(d);return e`
|
|
2
2
|
<div
|
|
3
|
-
${{...
|
|
3
|
+
${{...s}}
|
|
4
4
|
id="${o}"
|
|
5
5
|
class="${c}"
|
|
6
6
|
style="${t}"
|
|
@@ -11,6 +11,7 @@ import{template as e}from"@gem-sdk/core";import{getStyle as r}from"./common/styl
|
|
|
11
11
|
media-poster="{{media.preview_image.src}}"
|
|
12
12
|
media-source-url="{{media.sources.first.url}}"
|
|
13
13
|
media-last-source-url="{{mediaSourceUrl}}"
|
|
14
|
+
dir="ltr"
|
|
14
15
|
>
|
|
15
16
|
<div
|
|
16
17
|
class="${u}"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as
|
|
1
|
+
import{jsx as r}from"react/jsx-runtime";import{getStyleSwiperSlider as e}from"./common/styles.js";function SwiperSlide(i){let{children:t,className:l,dir:s,...o}=i,m=e(i);return r("swiper-slide",{class:l,...o,style:m,dir:"ltr",children:t})}export{SwiperSlide};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{template as t,dataStringify as r,isLocalEnv as e,baseAssetURL as o}from"@gem-sdk/core";import{getStaticLocale as p,getSettingPreloadData as
|
|
1
|
+
import{template as t,dataStringify as r,isLocalEnv as e,baseAssetURL as o}from"@gem-sdk/core";import{getStaticLocale as p,getSettingPreloadData as s}from"../../../helpers.js";import i from"../../../text/components/Text.liquid.js";import{createAttr as l,createClass as d,createStateOrContext as u,LiquidUnless as c,If as m}from"@gem-sdk/system";import{getTextProps as a}from"./common/helpers.js";let ProductTitle=n=>{let{setting:$,builderProps:f}=n,g=`<p>${p("ProductTitle","product_not_found")}</p>`,k=()=>i(a(n)),P=l({href:"{{ product.url }}",title:"{{ product.title }}"}),j=$?.linkProduct,S=d({"gp-product-title-link-wrapper":!0}),T=u({setting:{linkProduct:$?.linkProduct},uid:f?.uid}),h=()=>{let t=e?"{{ 'gp-product-title-v7-5.js' | asset_url }}":`${o}/assets-v2/gp-product-title-v7-5.js?v={{ shop.metafields.GEMPAGES.ASSETS_VERSION }}`;return`<script ${s('class="gps-link" delay',"src")}="${t}" defer="defer"></script>`};return c("product",`${g}`,t`
|
|
2
2
|
<gp-product-title
|
|
3
3
|
gp-data='${r(T)}'
|
|
4
4
|
>
|