@gem-sdk/components 19.0.0-staging.36 → 19.0.0-staging.38

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.
Files changed (66) hide show
  1. package/dist/cjs/carousel-v3/hooks/useCarousel.js +1 -1
  2. package/dist/cjs/grid/components/row/Row.liquid.js +12 -12
  3. package/dist/cjs/hero-banner/components/HeroBanner.js +1 -1
  4. package/dist/cjs/hero-banner/components/HeroBanner.liquid.js +10 -10
  5. package/dist/cjs/hero-banner/components/HeroBannerItem.js +1 -1
  6. package/dist/cjs/hero-banner/components/HeroBannerItem.liquid.js +9 -9
  7. package/dist/cjs/image/common/attrs.js +1 -1
  8. package/dist/cjs/image/components/AdaptiveImage.js +1 -1
  9. package/dist/cjs/image/components/AdaptiveImage.liquid.js +8 -8
  10. package/dist/cjs/image/components/Image.liquid.js +10 -10
  11. package/dist/cjs/image/components/NextImage.js +1 -1
  12. package/dist/cjs/image/components/NextImage.liquid.js +2 -2
  13. package/dist/cjs/image-comparison/components/CompareImage.liquid.js +7 -7
  14. package/dist/cjs/product/components/product-images-v2/ProductImagesV2.liquid.js +15 -15
  15. package/dist/cjs/product/components/product-images-v2/components/feature-gallery/FeatureImageWithGallery.liquid.js +5 -5
  16. package/dist/cjs/product/components/product-images-v2/components/gallery-carousel/GalleryCarousel.liquid.js +1 -1
  17. package/dist/cjs/product/components/product-images-v2/components/gallery-grid/GalleryGrid.liquid.js +5 -5
  18. package/dist/cjs/product/components/product-images-v3/ProductImagesV3.liquid.js +15 -15
  19. package/dist/cjs/product/components/product-images-v3/ProductImagesV3Embla.liquid.js +15 -15
  20. package/dist/cjs/product/components/product-images-v3/common/common.js +1 -1
  21. package/dist/cjs/product/components/product-images-v3/components/feature-gallery/FeatureImageWithGallery.js +1 -1
  22. package/dist/cjs/product/components/product-images-v3/components/feature-gallery/FeatureImageWithGallery.liquid.js +5 -5
  23. package/dist/cjs/product/components/product-images-v3/components/feature-gallery/FeatureImageWithGalleryEmbla.liquid.js +4 -4
  24. package/dist/cjs/product/components/product-images-v3/components/gallery-carousel/GalleryCarousel.liquid.js +1 -1
  25. package/dist/cjs/product/components/product-images-v3/components/gallery-carousel/GalleryCarouselEmbla.liquid.js +1 -1
  26. package/dist/cjs/product/components/product-images-v3/components/gallery-grid/GalleryGrid.liquid.js +5 -5
  27. package/dist/cjs/video/components/HTML5Embed.js +1 -1
  28. package/dist/cjs/video/components/HTML5Embed.liquid.js +12 -12
  29. package/dist/cjs/video/components/LiteVimeoEmbed.liquid.js +13 -13
  30. package/dist/cjs/video/components/LiteYouTubeEmbed.js +1 -1
  31. package/dist/cjs/video/components/LiteYouTubeEmbed.liquid.js +11 -11
  32. package/dist/cjs/video/components/Video.liquid.js +1 -1
  33. package/dist/esm/carousel-v3/hooks/useCarousel.js +1 -1
  34. package/dist/esm/grid/components/row/Row.liquid.js +11 -11
  35. package/dist/esm/hero-banner/components/HeroBanner.js +1 -1
  36. package/dist/esm/hero-banner/components/HeroBanner.liquid.js +10 -10
  37. package/dist/esm/hero-banner/components/HeroBannerItem.js +1 -1
  38. package/dist/esm/hero-banner/components/HeroBannerItem.liquid.js +10 -10
  39. package/dist/esm/image/common/attrs.js +1 -1
  40. package/dist/esm/image/components/AdaptiveImage.js +1 -1
  41. package/dist/esm/image/components/AdaptiveImage.liquid.js +11 -11
  42. package/dist/esm/image/components/Image.liquid.js +10 -10
  43. package/dist/esm/image/components/NextImage.js +1 -1
  44. package/dist/esm/image/components/NextImage.liquid.js +1 -1
  45. package/dist/esm/image-comparison/components/CompareImage.liquid.js +7 -7
  46. package/dist/esm/product/components/product-images-v2/ProductImagesV2.liquid.js +15 -15
  47. package/dist/esm/product/components/product-images-v2/components/feature-gallery/FeatureImageWithGallery.liquid.js +5 -5
  48. package/dist/esm/product/components/product-images-v2/components/gallery-carousel/GalleryCarousel.liquid.js +1 -1
  49. package/dist/esm/product/components/product-images-v2/components/gallery-grid/GalleryGrid.liquid.js +5 -5
  50. package/dist/esm/product/components/product-images-v3/ProductImagesV3.liquid.js +15 -15
  51. package/dist/esm/product/components/product-images-v3/ProductImagesV3Embla.liquid.js +15 -15
  52. package/dist/esm/product/components/product-images-v3/common/common.js +1 -1
  53. package/dist/esm/product/components/product-images-v3/components/feature-gallery/FeatureImageWithGallery.js +1 -1
  54. package/dist/esm/product/components/product-images-v3/components/feature-gallery/FeatureImageWithGallery.liquid.js +5 -5
  55. package/dist/esm/product/components/product-images-v3/components/feature-gallery/FeatureImageWithGalleryEmbla.liquid.js +4 -4
  56. package/dist/esm/product/components/product-images-v3/components/gallery-carousel/GalleryCarousel.liquid.js +1 -1
  57. package/dist/esm/product/components/product-images-v3/components/gallery-carousel/GalleryCarouselEmbla.liquid.js +1 -1
  58. package/dist/esm/product/components/product-images-v3/components/gallery-grid/GalleryGrid.liquid.js +5 -5
  59. package/dist/esm/video/components/HTML5Embed.js +1 -1
  60. package/dist/esm/video/components/HTML5Embed.liquid.js +12 -12
  61. package/dist/esm/video/components/LiteVimeoEmbed.liquid.js +14 -14
  62. package/dist/esm/video/components/LiteYouTubeEmbed.js +1 -1
  63. package/dist/esm/video/components/LiteYouTubeEmbed.liquid.js +13 -13
  64. package/dist/esm/video/components/Video.liquid.js +1 -1
  65. package/dist/types/index.d.ts +0 -5
  66. package/package.json +1 -1
@@ -1,14 +1,14 @@
1
- import{template as e,RenderIf as t,isLocalEnv as s,baseAssetURL as i}from"@gem-sdk/core";import{getSettingPreloadData as l}from"../../helpers.js";import{createStateOrContext as r,createStyle as a,createClass as m,If as o}from"@gem-sdk/system";import{getArticleVimeoClasses as p,getImageVimeoClasses as c,getButtonVimeoClasses as d,getIframeVimeoClasses as g}from"../common/classes.js";import{getIframeVimeoStyle as f,getArticleVimeoStyle as n}from"../common/styles.js";import{getVimeoParams as y}from"../common/helpers.js";import $ from"../../image/components/NextImage.liquid.js";let b=b=>{let{title:h,id:u,lazy:v,aspectRatio:S,autoplay:j,muted:w,thumbnailLink:x,poster:E,translatedVideoUrl:k}=b,{iframeSrc:I}=y(b),L=!v,N=b.thumbnail,A=r({id:u,thumbnail:x,lazy:v,iframeSrc:I,title:h,autoplay:j,muted:w,style:b?.vimeoStyleIframe||"",translatedVideoUrl:k}),T=a({...f(S)}),V=a({...n(S,"")}),C=m({...p(N,S)}),G=m({...c(L)}),M=m({...d(L)}),O=m({...g()});return e`
2
- <gp-lite-vimeo-embed gp-data='${JSON.stringify(A)}'>
1
+ import{template as e,RenderIf as t,isLocalEnv as s,baseAssetURL as i}from"@gem-sdk/core";import{getSettingPreloadData as l}from"../../helpers.js";import{createStateOrContext as r,createStyle as a,createClass as m,If as o}from"@gem-sdk/system";import{getArticleVimeoClasses as p,getImageVimeoClasses as c,getButtonVimeoClasses as d,getIframeVimeoClasses as f}from"../common/classes.js";import{getIframeVimeoStyle as g,getArticleVimeoStyle as n}from"../common/styles.js";import{getVimeoParams as y}from"../common/helpers.js";import $ from"../../image/components/NextImage.liquid.js";let h=h=>{let{title:u,id:b,lazy:v,aspectRatio:S,autoplay:j,muted:w,thumbnailLink:x,poster:E,translatedVideoUrl:k,pageContext:N}=h,{iframeSrc:A}=y(h),I=!v,T=h.thumbnail,V=r({id:b,thumbnail:x,lazy:v,iframeSrc:A,title:u,autoplay:j,muted:w,style:h?.vimeoStyleIframe||"",translatedVideoUrl:k}),C=a({...g(S)}),G=a({...n(S,"")}),L=m({...p(T,S)}),M=m({...c(I)}),O=m({...d(I)}),P=m({...f()});return e`
2
+ <gp-lite-vimeo-embed gp-data='${JSON.stringify(V)}'>
3
3
  <article
4
4
  aria-hidden
5
- class="${C}"
6
- data-title="${h}"
7
- style="${V}"
5
+ class="${L}"
6
+ data-title="${u}"
7
+ style="${G}"
8
8
  >
9
- ${$({src:N,alt:E?.altText,title:E?.imageTitle,className:G,isDisableAspectStyle:!0,enableLazyLoadImage:!0,priority:E?.preload,height:E?.height,width:E?.width})}
10
- ${o(!L,e`
11
- <button type="button" class="${M}" aria-label="Play">
9
+ ${$({src:T,alt:E?.altText,title:E?.imageTitle,className:M,isDisableAspectStyle:!0,pageContext:N,priority:E?.preload,height:E?.height,width:E?.width})}
10
+ ${o(!I,e`
11
+ <button type="button" class="${O}" aria-label="Play">
12
12
  <svg class="gp-w-5 gp-text-white" viewBox="0 0 24 24">
13
13
  <path
14
14
  fill="currentColor"
@@ -16,17 +16,17 @@ import{template as e,RenderIf as t,isLocalEnv as s,baseAssetURL as i}from"@gem-s
16
16
  />
17
17
  </svg>
18
18
  </button>`)}
19
- ${o(L,e`
19
+ ${o(I,e`
20
20
  <iframe
21
- style="${T}"
22
- title="${h}"
21
+ style="${C}"
22
+ title="${u}"
23
23
  frameborder="0"
24
24
  allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture"
25
25
  allowfullscreen
26
- src="${I}"
27
- class="${O}"
26
+ src="${A}"
27
+ class="${P}"
28
28
  ></iframe>`)}
29
29
  </article>
30
30
  </gp-lite-vimeo-embed>
31
31
  ${t(s,`<script ${l('class="gps-link" delay',"src")}="{{ 'gp-lite-vimeo-embed-v7-5.js' | asset_url }}" defer="defer"></script>`,`<script ${l('class="gps-link" delay',"src")}="${i}/assets-v2/gp-lite-vimeo-embed-v7-5.js?v={{ shop.metafields.GEMPAGES.ASSETS_VERSION }}" defer="defer"></script>`)}
32
- `};export{b as default};
32
+ `};export{h as default};
@@ -1,2 +1,2 @@
1
1
  'use client';
2
- import{jsxs as e,jsx as t}from"react/jsx-runtime";import{useEditorMode as r}from"@gem-sdk/core";import a from"react-youtube";import{getYoutubeParams as o,isSettingLoop as i,covertStrParamsToObj as l}from"../common/helpers.js";import s from"../../image/components/NextImage.js";import{createClass as m,createStyle as n}from"@gem-sdk/system";import{getButtonYoutubeClasses as c,getImageYoutubeClasses as d,getArticleYoutubeClasses as u,getIframeYoutubeClasses as p,getYoutubeContentClasses as f}from"../common/classes.js";import{getIframeYoutubeStyle as y,getArticleYoutubeStyle as h}from"../common/styles.js";import b from"../hooks/useLiteYoutubeEmbed.js";let g=g=>{let C=r(),v="edit"!==C,{style:w,poster:N,iframeClass:j,wrapperClass:k,title:x}=g,{preload:B}=N||{},{videoId:S,paramsImp:E,posterUrl:I,iframeSrc:L}=o(g),{iframe:T,intervalPlay:V,warmConnections:H,isVideoStarted:M,videoDuration:z,addIframe:D}=b(g,E,S),P=m({...c(T)}),Y=m({...d()}),A=m({...u(B&&v||!1,k)}),F=m({...p(j)}),O=n({...y(w)}),R=n({...h(w,I)}),q=m({...f()});return e("article",{"aria-hidden":!0,className:A,"data-title":x,style:R,onPointerOver:H,onClick:D,children:[t(s,{src:I,alt:N?.altText,title:N?.imageTitle,priority:v&&B,enableLazyLoadImage:!0,className:Y,isDisableAspectStyle:!0}),t("button",{type:"button","aria-label":"Play",className:P,children:e("svg",{height:"100%",version:"1.1",viewBox:"0 0 68 48",width:"100%",children:[t("path",{d:"M66.52,7.74c-0.78-2.93-2.49-5.41-5.42-6.19C55.79,.13,34,0,34,0S12.21,.13,6.9,1.55 C3.97,2.33,2.27,4.81,1.48,7.74C0.06,13.05,0,24,0,24s0.06,10.95,1.48,16.26c0.78,2.93,2.49,5.41,5.42,6.19 C12.21,47.87,34,48,34,48s21.79-0.13,27.1-1.55c2.93-0.78,4.64-3.26,5.42-6.19C67.94,34.95,68,24,68,24S67.94,13.05,66.52,7.74z",fill:"#f00"}),t("path",{d:"M 45,24 27,14 27,34",fill:"#fff"})]})}),T&&(()=>{if(g.isHeroBanner&&i(E))return t(a,{videoId:S,title:x,iframeClassName:F,style:O,className:q,opts:{host:"https://www.youtube-nocookie.com",playerVars:{autoplay:1,state:1,controls:0,mute:1,...l(E)}},onReady:e=>{if(e.target.playVideo(),z.current=Math.floor(e.target.getDuration()),g.isHeroBanner){let t=e.target.getIframe();if(t){let e=t.closest("div.hero-banner-container");if(e){let r=new CustomEvent("youtube-iframe-ready",{detail:{iframe:t},bubbles:!0,cancelable:!0});e.dispatchEvent(r)}}}},onStateChange:e=>{let t=e.target;M.current||(t.playVideo(),M.current=!0,V(e)),0===e.data&&(z.current=t.getCurrentTime(),t.playVideo(),V(e))}});let e=t("iframe",{className:F,style:O,title:x,frameBorder:"0",allow:"accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0,src:L});return g.isHeroBanner?t("div",{className:q,children:e}):e})()]})};export{g as default};
2
+ import{jsxs as e,jsx as t}from"react/jsx-runtime";import{useEditorMode as r}from"@gem-sdk/core";import a from"react-youtube";import{getYoutubeParams as o,isSettingLoop as i,covertStrParamsToObj as l}from"../common/helpers.js";import s from"../../image/components/NextImage.js";import{createClass as m,createStyle as n}from"@gem-sdk/system";import{getButtonYoutubeClasses as c,getImageYoutubeClasses as u,getArticleYoutubeClasses as d,getIframeYoutubeClasses as p,getYoutubeContentClasses as f}from"../common/classes.js";import{getIframeYoutubeStyle as y,getArticleYoutubeStyle as h}from"../common/styles.js";import g from"../hooks/useLiteYoutubeEmbed.js";let b=b=>{let C=r(),v="edit"!==C,{style:w,poster:N,iframeClass:j,wrapperClass:x,title:k,pageContext:B}=b,{preload:S}=N||{},{videoId:E,paramsImp:T,posterUrl:V,iframeSrc:H}=o(b),{iframe:I,intervalPlay:M,warmConnections:D,isVideoStarted:L,videoDuration:P,addIframe:Y}=g(b,T,E),z=m({...c(I)}),A=m({...u()}),F=m({...d(S&&v||!1,x)}),O=m({...p(j)}),R=n({...y(w)}),q=n({...h(w,V)}),G=m({...f()});return e("article",{"aria-hidden":!0,className:F,"data-title":k,style:q,onPointerOver:D,onClick:Y,children:[t(s,{src:V,alt:N?.altText,title:N?.imageTitle,priority:v&&S,pageContext:B,className:A,isDisableAspectStyle:!0}),t("button",{type:"button","aria-label":"Play",className:z,children:e("svg",{height:"100%",version:"1.1",viewBox:"0 0 68 48",width:"100%",children:[t("path",{d:"M66.52,7.74c-0.78-2.93-2.49-5.41-5.42-6.19C55.79,.13,34,0,34,0S12.21,.13,6.9,1.55 C3.97,2.33,2.27,4.81,1.48,7.74C0.06,13.05,0,24,0,24s0.06,10.95,1.48,16.26c0.78,2.93,2.49,5.41,5.42,6.19 C12.21,47.87,34,48,34,48s21.79-0.13,27.1-1.55c2.93-0.78,4.64-3.26,5.42-6.19C67.94,34.95,68,24,68,24S67.94,13.05,66.52,7.74z",fill:"#f00"}),t("path",{d:"M 45,24 27,14 27,34",fill:"#fff"})]})}),I&&(()=>{if(b.isHeroBanner&&i(T))return t(a,{videoId:E,title:k,iframeClassName:O,style:R,className:G,opts:{host:"https://www.youtube-nocookie.com",playerVars:{autoplay:1,state:1,controls:0,mute:1,...l(T)}},onReady:e=>{if(e.target.playVideo(),P.current=Math.floor(e.target.getDuration()),b.isHeroBanner){let t=e.target.getIframe();if(t){let e=t.closest("div.hero-banner-container");if(e){let r=new CustomEvent("youtube-iframe-ready",{detail:{iframe:t},bubbles:!0,cancelable:!0});e.dispatchEvent(r)}}}},onStateChange:e=>{let t=e.target;L.current||(t.playVideo(),L.current=!0,M(e)),0===e.data&&(P.current=t.getCurrentTime(),t.playVideo(),M(e))}});let e=t("iframe",{className:O,style:R,title:k,frameBorder:"0",allow:"accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0,src:H});return b.isHeroBanner?t("div",{className:G,children:e}):e})()]})};export{b as default};
@@ -1,13 +1,13 @@
1
- import{RenderIf as e,isLocalEnv as t,baseAssetURL as s,template as a}from"@gem-sdk/core";import l from"../../image/components/NextImage.liquid.js";import{getSettingPreloadData as r}from"../../helpers.js";import{createStateOrContext as i,createClass as o,createStyle as p,If as m}from"@gem-sdk/system";import{getButtonYoutubeClasses as d,getImageYoutubeClasses as c,getArticleYoutubeClasses as u,getIframeYoutubeClasses as y,getYoutubeContentClasses as f}from"../common/classes.js";import{getIframeYoutubeStyle as n,getArticleYoutubeStyle as g}from"../common/styles.js";import{getYoutubeParams as $}from"../common/helpers.js";let b=b=>{let{style:h,iframeClass:v,wrapperClass:S,title:j,poster:z,translatedVideoUrl:w,autoplay:C}=b,E=`gp-video-${b.uid}`,{posterUrl:N,iframeSrc:k}=$(b),x=!!b.thumbnail,L=z?.preload,T=i({lazy:b.lazy,hasThumbnail:x,style:h,title:j,iframeSrc:k,translatedVideoUrl:w,autoplay:C}),A=!b.lazy&&(!x||!!b.autoplay),I=o({...d(A)}),M=o({...c()}),B=o({...u(L||!1,S)}),G=o({...y(v)}),O=p({...n(h)}),P=p({...g(h,N)}),_=o({...f()});return a`
2
- <gp-lite-youtube-embed gp-data='${JSON.stringify(T)}'>
1
+ import{RenderIf as e,isLocalEnv as t,baseAssetURL as s,template as l}from"@gem-sdk/core";import r from"../../image/components/NextImage.liquid.js";import{getSettingPreloadData as a}from"../../helpers.js";import{createStateOrContext as i,createClass as o,createStyle as p,If as m}from"@gem-sdk/system";import{getButtonYoutubeClasses as d,getImageYoutubeClasses as c,getArticleYoutubeClasses as u,getIframeYoutubeClasses as f,getYoutubeContentClasses as y}from"../common/classes.js";import{getIframeYoutubeStyle as n,getArticleYoutubeStyle as $}from"../common/styles.js";import{getYoutubeParams as g}from"../common/helpers.js";let b=b=>{let{style:h,iframeClass:v,wrapperClass:S,title:j,poster:w,translatedVideoUrl:z,autoplay:C,pageContext:E}=b,N=`gp-video-${b.uid}`,{posterUrl:k,iframeSrc:x}=g(b),T=!!b.thumbnail,A=w?.preload,M=i({lazy:b.lazy,hasThumbnail:T,style:h,title:j,iframeSrc:x,translatedVideoUrl:z,autoplay:C}),B=!b.lazy&&(!T||!!b.autoplay),G=o({...d(B)}),I=o({...c()}),L=o({...u(A||!1,S)}),O=o({...f(v)}),P=p({...n(h)}),_=p({...$(h,k)}),q=o({...y()});return l`
2
+ <gp-lite-youtube-embed gp-data='${JSON.stringify(M)}'>
3
3
  <article
4
4
  aria-hidden
5
- class="${B}"
5
+ class="${L}"
6
6
  data-title="${j}"
7
- style="${P}"
7
+ style="${_}"
8
8
  >
9
- ${l({id:E,src:N,alt:z?.altText,title:z?.imageTitle,priority:z?.preload,enableLazyLoadImage:!0,className:M,isDisableAspectStyle:!0,isNotLazyload:z?.preload})}
10
- <button type="button" aria-label="Play" class="${I}">
9
+ ${r({id:N,src:k,alt:w?.altText,title:w?.imageTitle,priority:w?.preload,pageContext:E,className:I,isDisableAspectStyle:!0,isNotLazyload:w?.preload})}
10
+ <button type="button" aria-label="Play" class="${G}">
11
11
  <svg height="100%" version="1.1" viewBox="0 0 68 48" width="100%">
12
12
  <path
13
13
  d="M66.52,7.74c-0.78-2.93-2.49-5.41-5.42-6.19C55.79,.13,34,0,34,0S12.21,.13,6.9,1.55 C3.97,2.33,2.27,4.81,1.48,7.74C0.06,13.05,0,24,0,24s0.06,10.95,1.48,16.26c0.78,2.93,2.49,5.41,5.42,6.19 C12.21,47.87,34,48,34,48s21.79-0.13,27.1-1.55c2.93-0.78,4.64-3.26,5.42-6.19C67.94,34.95,68,24,68,24S67.94,13.05,66.52,7.74z"
@@ -16,21 +16,21 @@ import{RenderIf as e,isLocalEnv as t,baseAssetURL as s,template as a}from"@gem-s
16
16
  <path d="M 45,24 27,14 27,34" fill="#fff"></path>
17
17
  </svg>
18
18
  </button>
19
- ${m(A,(()=>{let e=a`
19
+ ${m(B,(()=>{let e=l`
20
20
  <iframe
21
21
  id="player-wrapper-${b.uid}"
22
- class="${G}"
23
- style="${O}"
22
+ class="${O}"
23
+ style="${P}"
24
24
  title="${j}"
25
25
  frameborder="0"
26
26
  allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture"
27
27
  allowfullscreen
28
- src="${k}"
28
+ src="${x}"
29
29
  ></iframe>
30
- `;return b.isHeroBanner?a`
31
- <div class="${_}">${e}</div>
30
+ `;return b.isHeroBanner?l`
31
+ <div class="${q}">${e}</div>
32
32
  `:e})())}
33
33
  </article>
34
34
  </gp-lite-youtube-embed>
35
- ${e(t,`<script ${r('class="gps-link" delay',"src")}="{{ 'gp-lite-youtube-embed-v7-5.js' | asset_url }}" defer="defer"></script>`,`<script ${r('class="gps-link" delay',"src")}="${s}/assets-v2/gp-lite-youtube-embed-v7-5.js?v={{ shop.metafields.GEMPAGES.ASSETS_VERSION }}" defer="defer"></script>`)}
35
+ ${e(t,`<script ${a('class="gps-link" delay',"src")}="{{ 'gp-lite-youtube-embed-v7-5.js' | asset_url }}" defer="defer"></script>`,`<script ${a('class="gps-link" delay',"src")}="${s}/assets-v2/gp-lite-youtube-embed-v7-5.js?v={{ shop.metafields.GEMPAGES.ASSETS_VERSION }}" defer="defer"></script>`)}
36
36
  `};export{b as default};
@@ -1,6 +1,6 @@
1
1
  import{template as t,hasTranslatedLiquid as e}from"@gem-sdk/core";import{getSettingTranslatedVideoAndThumbnail as o,getAspectRatioSettings as i,getVimeoVideoId as s,vimeoVideoRegex as l,getYoutubeVideoId as m,youtubeVideoRegex as a,parseTimeVideo as r,fallbackImageVideoUrl as d}from"../common/helpers.js";import{createAttr as u,createStyle as n,createClass as c}from"@gem-sdk/system";import{getAttr as p}from"../common/attrs.js";import{getStyle as f,getYoutubeStyle as y,getVimeoStyle as b,getHtml5Style as j,getFallBackImageStyle as h}from"../common/styles.js";import{getFallbackImageClasses as k,getClasses as V}from"../common/classes.js";import $ from"./HTML5Embed.liquid.js";import v from"./LiteVimeoEmbed.liquid.js";import g from"./LiteYouTubeEmbed.liquid.js";import L from"../../image/components/NextImage.liquid.js";import{getImageSrc as N}from"../../image/common/helpers.js";let q=({className:q,setting:C,style:x,builderAttrs:z,builderProps:E,advanced:F,pageContext:I})=>{let R=o({setting:C,uid:E?.uid,pageContext:I??{}}),{youtubeUrl:w="",vimeoUrl:T="",html5Url:U,autoplay:H=!1,loopVideo:M=!1,controls:O=!1,mute:P,poster:S,startTime:Y,endTime:A,lazy:B,type:D}=R??{},{youtubeUrlTranslated:G,vimeoUrlTranslated:J}=R,K=N(S),{cssClass:Q}=F??{},W=i(R?.ratioOptions,R?.aspectRatio),X=u({...p({uid:E?.uid||""})}),Z=n({...f(R,x)}),_=n({...y(W)}),tt=n({...b(W)}),te=n({...j(W)}),to=n({...h(C?.aspectRatio)}),ti=c({...k()}),ts=c({...V({className:q,builderProps:E,isInstantLP:!1,advancedCssClass:Q})});return t`
2
2
  <div
3
3
  ${{...z}} ${{...X}} class="${ts}" style="${Z}">
4
- ${(()=>{switch(D){case"youtube":{let t=m(w),o=e(G);if((!a.test(w)||!t)&&!o)return L({src:d,alt:"Fallback video",className:ti,style:to});let i="";return M&&(i+=`&loop=1&playlist=${t}`),Y&&(i+=`&start=${r(Y)}`),A&&(i+=`&end=${r(A)}`),g({uid:E?.uid,id:t??"",translatedVideoUrl:o?G:"",autoplay:H,title:"Video",controls:O,params:i,adNetwork:!1,noCookie:!0,muted:!P,thumbnail:K,lazy:B??!0,poster:S,style:_})}case"vimeo":{let t=s(T),o=e(J);if((!l.test(T)||!t)&&!o)return L({src:d,alt:"Fallback video",className:ti,style:to});return v({muted:!P,loop:M,controls:O,thumbnail:K,thumbnailLink:S?.src,autoplay:H,lazy:B??!0,id:t??"",translatedVideoUrl:o?J:"",title:"Video",aspectRatio:W,poster:S,vimeoStyleIframe:tt})}case"html5":if(!U)return L({src:d,alt:"Fallback video",className:ti,style:to});return $({uid:E?.uid,muted:!P,loop:M,controls:O,autoplay:H,src:U,thumbnail:K,title:"Video",poster:S,lazy:B??!0,isVideoComponent:!0,style:te})}})()}
4
+ ${(()=>{switch(D){case"youtube":{let t=m(w),o=e(G);if((!a.test(w)||!t)&&!o)return L({src:d,alt:"Fallback video",className:ti,style:to});let i="";return M&&(i+=`&loop=1&playlist=${t}`),Y&&(i+=`&start=${r(Y)}`),A&&(i+=`&end=${r(A)}`),g({uid:E?.uid,id:t??"",translatedVideoUrl:o?G:"",autoplay:H,title:"Video",controls:O,params:i,adNetwork:!1,noCookie:!0,muted:!P,thumbnail:K,lazy:B??!0,poster:S,style:_,pageContext:I})}case"vimeo":{let t=s(T),o=e(J);if((!l.test(T)||!t)&&!o)return L({src:d,alt:"Fallback video",className:ti,style:to});return v({muted:!P,loop:M,controls:O,thumbnail:K,thumbnailLink:S?.src,autoplay:H,lazy:B??!0,id:t??"",translatedVideoUrl:o?J:"",title:"Video",aspectRatio:W,poster:S,vimeoStyleIframe:tt,pageContext:I})}case"html5":if(!U)return L({src:d,alt:"Fallback video",className:ti,style:to});return $({uid:E?.uid,muted:!P,loop:M,controls:O,autoplay:H,src:U,thumbnail:K,title:"Video",poster:S,lazy:B??!0,isVideoComponent:!0,style:te,pageContext:I})}})()}
5
5
  </div>
6
6
  `};export{q as default};
@@ -223,7 +223,6 @@ type ImageProps = BasePropsWrap<ImageSettingProps$1, ImageStyleProps$1> & {
223
223
  advanced?: any;
224
224
  };
225
225
  type ImageLiquidProps = ImageProps & {
226
- enableLazyLoadImage?: boolean;
227
226
  pageContext?: PageContext;
228
227
  };
229
228
 
@@ -698,7 +697,6 @@ type HeroBannerProps = BasePropsWrap<HeroBannerSettingProps, HeroBannerStyleProp
698
697
  rawChildren?: any[];
699
698
  advanced?: any;
700
699
  pageContext?: PageContext;
701
- enableLazyLoadImage?: boolean;
702
700
  };
703
701
  type DataVideoType = {
704
702
  data: Background;
@@ -6879,7 +6877,6 @@ type PropTypes$2 = ProductImagesProps$1 & React.ComponentPropsWithoutRef<'div'>
6879
6877
  children?: any;
6880
6878
  } & {
6881
6879
  pageContext?: PageContext;
6882
- enableLazyLoadImage?: boolean;
6883
6880
  };
6884
6881
  declare const ProductImages$2: (props: PropTypes$2) => string;
6885
6882
 
@@ -6888,7 +6885,6 @@ type PropTypes$1 = ProductImagesProps$2 & React.ComponentPropsWithoutRef<'div'>
6888
6885
  children?: any;
6889
6886
  } & {
6890
6887
  pageContext?: PageContext;
6891
- enableLazyLoadImage?: boolean;
6892
6888
  };
6893
6889
  declare const ProductImages$1: (props: PropTypes$1) => string;
6894
6890
 
@@ -6897,7 +6893,6 @@ type PropTypes = ProductImagesProps$2 & React.ComponentPropsWithoutRef<'div'> &
6897
6893
  children?: any;
6898
6894
  } & {
6899
6895
  pageContext?: PageContext;
6900
- enableLazyLoadImage?: boolean;
6901
6896
  };
6902
6897
  declare const ProductImages: (props: PropTypes) => string;
6903
6898
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gem-sdk/components",
3
- "version": "19.0.0-staging.36",
3
+ "version": "19.0.0-staging.38",
4
4
  "license": "MIT",
5
5
  "sideEffects": false,
6
6
  "main": "dist/cjs/index.js",