@gem-sdk/components 3.1.18 → 4.0.0-staging.1154

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 (58) hide show
  1. package/dist/cjs/article/components/ArticleImage.js +1 -1
  2. package/dist/cjs/article/components/ArticleImage.liquid.js +4 -4
  3. package/dist/cjs/dialog/common/classes.js +1 -1
  4. package/dist/cjs/dialog/common/helpers.js +1 -1
  5. package/dist/cjs/dialog/components/Dialog.js +1 -1
  6. package/dist/cjs/dialog/components/Dialog.liquid.js +1 -1
  7. package/dist/cjs/dialog/settings/configs/settings.js +1 -1
  8. package/dist/cjs/grid/components/row/common/classes.js +1 -1
  9. package/dist/cjs/hero-banner/common/classes.js +1 -1
  10. package/dist/cjs/hero-banner/common/helpers.js +1 -1
  11. package/dist/cjs/hero-banner/common/styles.js +1 -1
  12. package/dist/cjs/hero-banner/components/HeroBanner.liquid.js +7 -7
  13. package/dist/cjs/hero-banner/settings/configs/settings.js +1 -1
  14. package/dist/cjs/image/common/attrs.js +1 -1
  15. package/dist/cjs/product/components/dynamic-checkout/Button.liquid.js +2 -2
  16. package/dist/cjs/product/components/product-badge/ProductBadge.liquid.js +1 -1
  17. package/dist/cjs/product/components/product-badge/utils/generateLiquidContent.js +2 -2
  18. package/dist/cjs/product/components/product-description/hooks/useGpDescription.js +1 -1
  19. package/dist/cjs/product/components/product-quantity/common/classes.js +1 -1
  20. package/dist/cjs/third-party/components/KoalaBundleQuantityDiscount.liquid.js +1 -8
  21. package/dist/cjs/third-party/components/ParcelPanel.liquid.js +1 -9
  22. package/dist/cjs/third-party/components/SmartSearchBarAndFilters.liquid.js +2 -0
  23. package/dist/cjs/third-party/components/Trustoo.liquid.js +11 -5
  24. package/dist/cjs/third-party/settings/KoalaBundleQuantityDiscount/index.js +1 -1
  25. package/dist/cjs/third-party/settings/ParcelPanel/index.js +1 -1
  26. package/dist/cjs/third-party/settings/ParcelPanel/uiV2.js +1 -1
  27. package/dist/cjs/video/components/LiteVimeoEmbed.liquid.js +6 -6
  28. package/dist/esm/article/components/ArticleImage.js +1 -1
  29. package/dist/esm/article/components/ArticleImage.liquid.js +4 -4
  30. package/dist/esm/dialog/common/classes.js +1 -1
  31. package/dist/esm/dialog/common/helpers.js +1 -1
  32. package/dist/esm/dialog/components/Dialog.js +1 -1
  33. package/dist/esm/dialog/components/Dialog.liquid.js +1 -1
  34. package/dist/esm/dialog/settings/configs/settings.js +1 -1
  35. package/dist/esm/grid/components/row/common/classes.js +1 -1
  36. package/dist/esm/hero-banner/common/classes.js +1 -1
  37. package/dist/esm/hero-banner/common/helpers.js +1 -1
  38. package/dist/esm/hero-banner/common/styles.js +1 -1
  39. package/dist/esm/hero-banner/components/HeroBanner.liquid.js +10 -10
  40. package/dist/esm/hero-banner/settings/configs/settings.js +1 -1
  41. package/dist/esm/image/common/attrs.js +1 -1
  42. package/dist/esm/product/components/dynamic-checkout/Button.liquid.js +4 -4
  43. package/dist/esm/product/components/product-badge/ProductBadge.liquid.js +5 -5
  44. package/dist/esm/product/components/product-badge/utils/generateLiquidContent.js +2 -2
  45. package/dist/esm/product/components/product-description/hooks/useGpDescription.js +1 -1
  46. package/dist/esm/product/components/product-quantity/common/classes.js +1 -1
  47. package/dist/esm/third-party/components/KoalaBundleQuantityDiscount.liquid.js +1 -8
  48. package/dist/esm/third-party/components/ParcelPanel.liquid.js +1 -9
  49. package/dist/esm/third-party/components/SmartSearchBarAndFilters.liquid.js +2 -0
  50. package/dist/esm/third-party/components/Trustoo.liquid.js +7 -1
  51. package/dist/esm/third-party/settings/KoalaBundleQuantityDiscount/index.js +2 -2
  52. package/dist/esm/third-party/settings/ParcelPanel/index.js +1 -1
  53. package/dist/esm/third-party/settings/ParcelPanel/uiV2.js +1 -1
  54. package/dist/esm/video/components/LiteVimeoEmbed.liquid.js +5 -5
  55. package/dist/types/index.d.ts +5 -0
  56. package/package.json +4 -4
  57. package/dist/cjs/product/components/dynamic-checkout/common/helper.js +0 -1
  58. package/dist/esm/product/components/dynamic-checkout/common/helper.js +0 -1
@@ -1,12 +1,12 @@
1
- import{template as e,RenderIf as t,isLocalEnv as s,baseAssetURL as l}from"@gem-sdk/core";import{getSettingPreloadData as i}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 n,getArticleVimeoStyle as g}from"../common/styles.js";import{getVimeoParams as y}from"../common/helpers.js";import $ from"../../image/components/NextImage.liquid.js";let LiteVimeoEmbed=b=>{let{title:u,id:v,lazy:h,aspectRatio:S,autoplay:j,muted:E,thumbnailLink:w,poster:x}=b,{iframeSrc:L}=y(b),k=!h,I=b.thumbnail,N=r({id:v,thumbnail:w,lazy:h,iframeSrc:L,title:u,autoplay:j,muted:E,style:b?.vimeoStyleIframe||""}),V=a({...n(S)}),A=a({...g(S,"")}),T=m({...p(I,S)}),C=m({...c(k)}),G=m({...d(k)}),M=m({...f()});return e`
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 LiteVimeoEmbed=b=>{let{title:h,id:u,lazy:v,aspectRatio:S,autoplay:j,muted:w,thumbnailLink:E,poster:x}=b,{iframeSrc:L}=y(b),k=!v,I=b.thumbnail,N=r({id:u,thumbnail:E,lazy:v,iframeSrc:L,title:h,autoplay:j,muted:w,style:b?.vimeoStyleIframe||""}),V=a({...f(S)}),A=a({...n(S,"")}),T=m({...p(I,S)}),C=m({...c(k)}),G=m({...d(k)}),M=m({...g()});return e`
2
2
  <gp-lite-vimeo-embed gp-data='${JSON.stringify(N)}'>
3
3
  <article
4
4
  aria-hidden
5
5
  class="${T}"
6
- data-title="${u}"
6
+ data-title="${h}"
7
7
  style="${A}"
8
8
  >
9
- ${$({src:I,alt:x?.altText,title:x?.imageTitle,className:C,isDisableAspectStyle:!0,enableLazyLoadImage:!0,priority:x?.preload})}
9
+ ${$({src:I,alt:x?.altText,title:x?.imageTitle,className:C,isDisableAspectStyle:!0,enableLazyLoadImage:!0,priority:x?.preload,height:x?.height,width:x?.width})}
10
10
  ${o(!k,e`
11
11
  <button type="button" class="${G}" aria-label="Play">
12
12
  <svg class="gp-w-5 gp-text-white" viewBox="0 0 24 24">
@@ -19,7 +19,7 @@ import{template as e,RenderIf as t,isLocalEnv as s,baseAssetURL as l}from"@gem-s
19
19
  ${o(k,e`
20
20
  <iframe
21
21
  style="${V}"
22
- title="${u}"
22
+ title="${h}"
23
23
  frameborder="0"
24
24
  allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture"
25
25
  allowfullscreen
@@ -28,5 +28,5 @@ import{template as e,RenderIf as t,isLocalEnv as s,baseAssetURL as l}from"@gem-s
28
28
  ></iframe>`)}
29
29
  </article>
30
30
  </gp-lite-vimeo-embed>
31
- ${t(s,`<script ${i('class="gps-link" delay',"src")}="{{ 'gp-lite-vimeo-embed-v7-5.js' | asset_url }}" defer="defer"></script>`,`<script ${i('class="gps-link" delay',"src")}="${l}/assets-v2/gp-lite-vimeo-embed-v7-5.js?v={{ shop.metafields.GEMPAGES.ASSETS_VERSION }}" defer="defer"></script>`)}
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
32
  `};export{LiteVimeoEmbed as default};
@@ -4599,6 +4599,9 @@ type KoalaBundleQuantityDiscountProps = BaseProps<{
4599
4599
  align?: ObjectDevices<AlignProp>;
4600
4600
  openApp?: any;
4601
4601
  install?: any;
4602
+ appBlockId?: string;
4603
+ productHandle?: string;
4604
+ widgetType?: string;
4602
4605
  }>;
4603
4606
  type LaiProductReviewsProps = BasePropsWrap<{
4604
4607
  widgetType?: LaiProductReviewsWidgetType;
@@ -4683,6 +4686,8 @@ type ParcelPanelProps = BaseProps<{
4683
4686
  align?: ObjectDevices<AlignProp>;
4684
4687
  openApp?: any;
4685
4688
  install?: any;
4689
+ widgetType?: string;
4690
+ appBlockId?: string;
4686
4691
  }>;
4687
4692
  type PickyStoryProps = BaseProps<{
4688
4693
  widgetType?: PickyStoryWidgetType;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gem-sdk/components",
3
- "version": "3.1.18",
3
+ "version": "4.0.0-staging.1154",
4
4
  "license": "MIT",
5
5
  "sideEffects": false,
6
6
  "main": "dist/cjs/index.js",
@@ -25,9 +25,9 @@
25
25
  "scan-all-text": "rollup -c ./scripts/rollup.config.settings.mjs && node ./scripts/scan-all-text && node ./scripts/scan-all-text"
26
26
  },
27
27
  "devDependencies": {
28
- "@gem-sdk/core": "3.1.17",
29
- "@gem-sdk/styles": "3.1.0",
30
- "@gem-sdk/system": "3.1.0",
28
+ "@gem-sdk/core": "3.1.0-staging.1150",
29
+ "@gem-sdk/styles": "3.1.0-staging.1137",
30
+ "@gem-sdk/system": "3.1.0-staging.1137",
31
31
  "tsup": "^8.5.0",
32
32
  "@types/react-transition-group": "^4.4.12",
33
33
  "xlsx": "^0.18.5"
@@ -1 +0,0 @@
1
- "use strict";const removeQuotes=e=>"string"==typeof e?e.replaceAll("'","&#039;"):e;exports.removeQuotes=removeQuotes;
@@ -1 +0,0 @@
1
- let removeQuotes=e=>"string"==typeof e?e.replaceAll("'","&#039;"):e;export{removeQuotes};