@gem-sdk/components 2.0.0-dev.271 → 2.0.0-dev.275

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 (104) hide show
  1. package/dist/cjs/article/components/ArticleImage.js +0 -5
  2. package/dist/cjs/article/components/ArticleList.js +1 -1
  3. package/dist/cjs/banner/components/HeroBannerItem.liquid.js +1 -1
  4. package/dist/cjs/builder.js +13 -13
  5. package/dist/cjs/cart/components/ShopPayButton/ShopPayButton.js +70 -0
  6. package/dist/cjs/cart/components/ShopPayButton/ShopPayButton.liquid.js +71 -0
  7. package/dist/cjs/cart/components/ShopPayButton/common/classes.js +18 -0
  8. package/dist/cjs/cart/components/ShopPayButton/common/helpers.js +31 -0
  9. package/dist/cjs/cart/components/ShopPayButton/common/styles.js +12 -0
  10. package/dist/cjs/cart/components/ShopPayButton/hooks/useShopPayButton.js +70 -0
  11. package/dist/cjs/cart/next.js +1 -1
  12. package/dist/cjs/estimate-delivery/components/EstimateDate.liquid.js +1 -1
  13. package/dist/cjs/form/setting/submit-button/configs/settings.js +2 -2
  14. package/dist/cjs/header/components/kind/basic/index.js +1 -1
  15. package/dist/cjs/header/components/kind/modern/index.js +1 -1
  16. package/dist/cjs/index.js +39 -39
  17. package/dist/cjs/index.liquid.js +9 -9
  18. package/dist/cjs/marquee/setting/configs/childImageTemplate.js +1 -1
  19. package/dist/cjs/post-purchase/advanced-list/components/common/getClasses.js +1 -1
  20. package/dist/cjs/post-purchase/advanced-list/setting/configs/presets.js +3 -1
  21. package/dist/cjs/post-purchase/advanced-list/setting/configs/settings.js +2 -1
  22. package/dist/cjs/post-purchase/advanced-list/setting/template.js +8 -3
  23. package/dist/cjs/post-purchase/callout-banner/setting/config/callout-text/setting.js +0 -7
  24. package/dist/cjs/post-purchase/callout-banner/setting/config/callout-text/uiV2.js +1 -1
  25. package/dist/cjs/post-purchase/image/setting/Image.js +2 -2
  26. package/dist/cjs/post-purchase/image/setting/setting-v2.js +25 -13
  27. package/dist/cjs/post-purchase/image/setting/ui-v2.js +1 -1
  28. package/dist/cjs/post-purchase/link/setting/configs/settings.js +7 -2
  29. package/dist/cjs/post-purchase/product/settings/product-variants/configs/uiV2.js +4 -2
  30. package/dist/cjs/product/components/DynamicCheckout/DynamicCheckout.js +28 -0
  31. package/dist/cjs/product/components/DynamicCheckout/DynamicCheckout.liquid.js +23 -0
  32. package/dist/cjs/product/components/DynamicCheckout/common/classes.js +32 -0
  33. package/dist/cjs/product/components/DynamicCheckout/common/styles.js +181 -0
  34. package/dist/cjs/product/components/DynamicCheckout/components/Button.liquid.js +58 -0
  35. package/dist/cjs/product/components/FileUpload/components/common/index.js +1 -1
  36. package/dist/cjs/product/components/ProductDescription/common/const.js +9 -0
  37. package/dist/cjs/product/components/ProductDescription/common/getClasses.js +30 -0
  38. package/dist/cjs/product/components/ProductDescription/common/getStyle.js +81 -0
  39. package/dist/cjs/product/components/ProductDescription/hooks/useGpDescription.js +90 -0
  40. package/dist/cjs/product/components/ProductDescription/index.js +115 -0
  41. package/dist/cjs/product/components/ProductDescription/index.liquid.js +86 -0
  42. package/dist/cjs/product/next.js +1 -1
  43. package/dist/cjs/setting.js +1 -1
  44. package/dist/esm/article/components/ArticleImage.js +0 -5
  45. package/dist/esm/article/components/ArticleList.js +1 -1
  46. package/dist/esm/banner/components/HeroBannerItem.liquid.js +1 -1
  47. package/dist/esm/builder.js +3 -3
  48. package/dist/esm/cart/components/ShopPayButton/ShopPayButton.js +66 -0
  49. package/dist/esm/cart/components/ShopPayButton/ShopPayButton.liquid.js +67 -0
  50. package/dist/esm/cart/components/ShopPayButton/common/classes.js +15 -0
  51. package/dist/esm/cart/components/ShopPayButton/common/helpers.js +27 -0
  52. package/dist/esm/cart/components/ShopPayButton/common/styles.js +10 -0
  53. package/dist/esm/cart/components/ShopPayButton/hooks/useShopPayButton.js +68 -0
  54. package/dist/esm/cart/next.js +1 -1
  55. package/dist/esm/estimate-delivery/components/EstimateDate.liquid.js +1 -1
  56. package/dist/esm/form/setting/submit-button/configs/settings.js +2 -2
  57. package/dist/esm/header/components/kind/basic/index.js +1 -1
  58. package/dist/esm/header/components/kind/modern/index.js +1 -1
  59. package/dist/esm/index.js +3 -3
  60. package/dist/esm/index.liquid.js +3 -3
  61. package/dist/esm/marquee/setting/configs/childImageTemplate.js +1 -1
  62. package/dist/esm/post-purchase/advanced-list/components/common/getClasses.js +1 -1
  63. package/dist/esm/post-purchase/advanced-list/setting/configs/presets.js +3 -1
  64. package/dist/esm/post-purchase/advanced-list/setting/configs/settings.js +2 -1
  65. package/dist/esm/post-purchase/advanced-list/setting/template.js +8 -3
  66. package/dist/esm/post-purchase/callout-banner/setting/config/callout-text/setting.js +0 -7
  67. package/dist/esm/post-purchase/callout-banner/setting/config/callout-text/uiV2.js +1 -1
  68. package/dist/esm/post-purchase/image/setting/Image.js +2 -2
  69. package/dist/esm/post-purchase/image/setting/setting-v2.js +25 -13
  70. package/dist/esm/post-purchase/image/setting/ui-v2.js +1 -1
  71. package/dist/esm/post-purchase/link/setting/configs/settings.js +7 -2
  72. package/dist/esm/post-purchase/product/settings/product-variants/configs/uiV2.js +4 -2
  73. package/dist/esm/product/components/DynamicCheckout/DynamicCheckout.js +24 -0
  74. package/dist/esm/product/components/DynamicCheckout/DynamicCheckout.liquid.js +19 -0
  75. package/dist/esm/product/components/DynamicCheckout/common/classes.js +30 -0
  76. package/dist/esm/product/components/DynamicCheckout/common/styles.js +179 -0
  77. package/dist/esm/product/components/DynamicCheckout/components/Button.liquid.js +54 -0
  78. package/dist/esm/product/components/FileUpload/components/common/index.js +1 -1
  79. package/dist/esm/product/components/ProductDescription/common/const.js +6 -0
  80. package/dist/esm/product/components/ProductDescription/common/getClasses.js +27 -0
  81. package/dist/esm/product/components/ProductDescription/common/getStyle.js +77 -0
  82. package/dist/esm/product/components/ProductDescription/hooks/useGpDescription.js +88 -0
  83. package/dist/esm/product/components/ProductDescription/index.js +111 -0
  84. package/dist/esm/product/components/ProductDescription/index.liquid.js +82 -0
  85. package/dist/esm/product/next.js +1 -1
  86. package/dist/esm/setting.js +1 -1
  87. package/dist/types/index.d.ts +29 -97
  88. package/package.json +1 -1
  89. package/dist/cjs/cart/components/ShopPayButton/ShopPayButtonCommon.js +0 -20
  90. package/dist/cjs/cart/components/ShopPayButton/index.js +0 -113
  91. package/dist/cjs/cart/components/ShopPayButton/index.liquid.js +0 -51
  92. package/dist/cjs/product/components/DynamicCheckout.liquid.js +0 -250
  93. package/dist/cjs/product/components/ProductDescription/const.js +0 -5
  94. package/dist/cjs/product/components/ProductDescription.js +0 -172
  95. package/dist/cjs/product/components/ProductDescription.liquid.js +0 -120
  96. package/dist/esm/cart/components/ShopPayButton/ShopPayButtonCommon.js +0 -17
  97. package/dist/esm/cart/components/ShopPayButton/index.js +0 -109
  98. package/dist/esm/cart/components/ShopPayButton/index.liquid.js +0 -47
  99. package/dist/esm/product/components/DynamicCheckout.liquid.js +0 -246
  100. package/dist/esm/product/components/ProductDescription/const.js +0 -3
  101. package/dist/esm/product/components/ProductDescription.js +0 -168
  102. package/dist/esm/product/components/ProductDescription.liquid.js +0 -116
  103. /package/dist/cjs/product/components/ProductDescription/{common.js → common/getMaxHeight.js} +0 -0
  104. /package/dist/esm/product/components/ProductDescription/{common.js → common/getMaxHeight.js} +0 -0
@@ -723,7 +723,7 @@ type CartProps = BasePropsWrap<{
723
723
  };
724
724
  declare const Cart: React.FC<CartProps>;
725
725
 
726
- type ShopPayButtonProps = BasePropsWrap<{
726
+ type ShopPayButtonProps$1 = BasePropsWrap<{
727
727
  kind?: 'buy-now' | 'cart-buy';
728
728
  openMode?: 'new-page' | 'popup';
729
729
  }, {
@@ -739,7 +739,7 @@ type ShopPayButtonProps = BasePropsWrap<{
739
739
  /**
740
740
  * The `ShopPayButton` component renders a button that redirects to the Shop Pay checkout.
741
741
  */
742
- declare const ShopPayButton$1: React.FC<ShopPayButtonProps>;
742
+ declare const ShopPayButton$1: React.FC<ShopPayButtonProps$1>;
743
743
 
744
744
  type CheckoutNowProps = BasePropsWrap<{
745
745
  openMode?: 'popup' | 'page';
@@ -1467,7 +1467,7 @@ declare const _default$C: {
1467
1467
  ProductVariants: _gem_sdk_core.ComponentSetting<ProductVariantsProps>;
1468
1468
  ProductImages: _gem_sdk_core.ComponentSetting<ProductImagesProps>;
1469
1469
  ProductImagesV2: _gem_sdk_core.ComponentSetting<ProductImagesProps$1>;
1470
- ProductDescription: _gem_sdk_core.ComponentSetting<ProductDescriptionProps$1>;
1470
+ ProductDescription: _gem_sdk_core.ComponentSetting<ProductDescriptionProps>;
1471
1471
  ProductProperties: _gem_sdk_core.ComponentSetting<ProductPropertiesProps>;
1472
1472
  ProductTag: _gem_sdk_core.ComponentSetting<ProductTagProps>;
1473
1473
  ProductList: _gem_sdk_core.ComponentSetting<ProductListProps>;
@@ -1661,7 +1661,7 @@ type ProductQuantityProps = BaseProps<{
1661
1661
  }>;
1662
1662
  declare const ProductQuantity$1: React.FC<ProductQuantityProps>;
1663
1663
 
1664
- type ProductDescriptionProps$1 = BaseProps<{
1664
+ type ProductDescriptionProps = BaseProps<{
1665
1665
  htmlTag?: 'plaintext' | 'html';
1666
1666
  hasLineClamp?: ObjectDevices<boolean>;
1667
1667
  lineClamp?: ObjectDevices<number>;
@@ -1679,7 +1679,8 @@ type ProductDescriptionProps$1 = BaseProps<{
1679
1679
  boxShadow?: ShadowProps;
1680
1680
  transform?: TransformProp;
1681
1681
  }>;
1682
- declare const ProductDescription$1: React.FC<ProductDescriptionProps$1>;
1682
+
1683
+ declare const ProductDescription$1: React.FC<ProductDescriptionProps>;
1683
1684
 
1684
1685
  type bundleItem = {
1685
1686
  quantity: number;
@@ -2001,13 +2002,17 @@ type ProductTagProps = BaseProps<TextProps['setting'] & {
2001
2002
  };
2002
2003
  declare const ProductTag$1: React.FC<ProductTagProps>;
2003
2004
 
2004
- type DynamicCheckoutProps = BasePropsWrap<{} & Pick<NonNullable<ButtonProps$1['setting']>, 'iconAlign' | 'iconSvg' | 'iconVisible'>, ButtonProps$1['styles'] & {}> & {
2005
+ type DynamicCheckoutProps$1 = BasePropsWrap<{} & Pick<NonNullable<ButtonProps$1['setting']>, 'iconAlign' | 'iconSvg' | 'iconVisible'>, ButtonProps$1['styles'] & {}> & {
2005
2006
  className?: string;
2006
2007
  style?: React.CSSProperties;
2007
2008
  advanced?: any;
2008
2009
  setting?: any;
2009
2010
  };
2010
- declare const DynamicCheckout$1: React.FC<DynamicCheckoutProps>;
2011
+ type DynamicCheckoutLiquidProps = DynamicCheckoutProps$1 & {
2012
+ pageContext?: PageContext;
2013
+ };
2014
+
2015
+ declare const DynamicCheckout$1: React.FC<DynamicCheckoutProps$1>;
2011
2016
 
2012
2017
  type ProductQuantityBreakProps = BasePropsWrap<{
2013
2018
  childItem?: string[];
@@ -5254,6 +5259,13 @@ type LinkProps = MixedProps$2 & {
5254
5259
  style?: React.CSSProperties;
5255
5260
  };
5256
5261
 
5262
+ type DynamicCheckoutProps = BasePropsWrap<{} & Pick<NonNullable<ButtonProps$1['setting']>, 'iconAlign' | 'iconSvg' | 'iconVisible'>, ButtonProps$1['styles'] & {}> & {
5263
+ className?: string;
5264
+ style?: React.CSSProperties;
5265
+ advanced?: any;
5266
+ setting?: any;
5267
+ };
5268
+
5257
5269
  declare const _default$2: {
5258
5270
  Marquee: React.ComponentType<MarqueeProps>;
5259
5271
  MarqueeItem: React.ComponentType<MarqueeItemProps>;
@@ -5518,7 +5530,7 @@ declare const _default$2: {
5518
5530
  ProductQuantity: React.ComponentType<ProductQuantityProps>;
5519
5531
  ProductPrice: React.ComponentType<ProductPriceProps>;
5520
5532
  ProductButton: React.ComponentType<ProductButtonProps>;
5521
- ProductDescription: React.ComponentType<ProductDescriptionProps$1>;
5533
+ ProductDescription: React.ComponentType<ProductDescriptionProps>;
5522
5534
  ProductVariants: React.ComponentType<ProductVariantsProps>;
5523
5535
  ProductImages: React.ComponentType<ProductImagesProps>;
5524
5536
  ProductImagesV2: React.ComponentType<ProductImagesProps$1>;
@@ -5567,7 +5579,7 @@ declare const _default$2: {
5567
5579
  CartOrderNote: React.ComponentType<CartOrderNoteProps>;
5568
5580
  CartLineAttribute: React.ComponentType<CartLineAttributeProps>;
5569
5581
  CouponList: React.ComponentType<{}>;
5570
- ShopPayButton: React.ComponentType<ShopPayButtonProps>;
5582
+ ShopPayButton: React.ComponentType<ShopPayButtonProps$1>;
5571
5583
  CheckoutNow: React.ComponentType<CheckoutNowProps>;
5572
5584
  Carousel: React.ComponentType<_gem_sdk_core.BaseProps<CarouselSettings, CarouselStyles, Record<string, any>> & {
5573
5585
  builderAttrs?: Record<string, any> | undefined;
@@ -5911,25 +5923,7 @@ declare const ProductButton: ({ setting, builderProps, builderAttrs, style, styl
5911
5923
  pageContext?: PageContext | undefined;
5912
5924
  }) => string;
5913
5925
 
5914
- type ProductDescriptionProps = BaseProps<{
5915
- htmlTag?: 'plaintext' | 'html';
5916
- hasLineClamp?: ObjectDevices<boolean>;
5917
- lineClamp?: ObjectDevices<number>;
5918
- viewMoreText?: string;
5919
- viewLessText?: string;
5920
- enableViewMoreIcon?: boolean;
5921
- showMoreColor?: ColorValueType;
5922
- color?: ColorValueType;
5923
- typography?: TypographySetting;
5924
- typo?: TypographySettingV2;
5925
- textAlign?: ObjectDevices<AlignProp>;
5926
- hasTextShadow?: boolean;
5927
- textShadow?: ShadowProps;
5928
- hasBoxShadow?: boolean;
5929
- boxShadow?: ShadowProps;
5930
- transform?: TransformProp;
5931
- }>;
5932
- declare const ProductDescription: ({ setting, advanced, builderProps }: ProductDescriptionProps) => string;
5926
+ declare const ProductDescription: (props: ProductDescriptionProps) => string;
5933
5927
 
5934
5928
  declare const ProductImages$1: (productImageProps: ProductImagesProps) => string;
5935
5929
 
@@ -6040,69 +6034,7 @@ declare const ProductProperties: ({ setting, styles, builderProps, advanced, pag
6040
6034
 
6041
6035
  declare const ProductList: ({ setting, builderProps, styles, className, children, advanced, pageContext, style, }: ProductListProps) => string;
6042
6036
 
6043
- declare const DynamicCheckout: ({ builderProps, styles, advanced, setting, pageContext, }: _gem_sdk_core.BaseProps<Pick<{
6044
- loading?: boolean | undefined;
6045
- disabled?: boolean | undefined;
6046
- label?: React.ReactNode;
6047
- translate?: string | undefined;
6048
- iconSvg?: string | undefined;
6049
- btnLink?: {
6050
- type?: string | undefined;
6051
- link?: string | undefined;
6052
- target?: string | undefined;
6053
- noFollow?: boolean | undefined;
6054
- } | undefined;
6055
- htmlType?: "link" | "button" | "reset" | "submit" | undefined;
6056
- iconAlign?: "left" | "right" | undefined;
6057
- iconVisible?: boolean | undefined;
6058
- options?: {
6059
- isCannotEditing?: boolean | undefined;
6060
- } | undefined;
6061
- shouldClearSpace?: boolean | undefined;
6062
- disabledLoading?: boolean | undefined;
6063
- innerBorder?: boolean | undefined;
6064
- }, "iconSvg" | "iconAlign" | "iconVisible">, {
6065
- type?: "primary" | "secondary" | undefined;
6066
- roundedBtn?: Partial<Record<_gem_sdk_core.StateType, _gem_sdk_core.CornerRadius>> | undefined;
6067
- roundedBtnV2?: Partial<Record<NameDevices, Partial<Record<_gem_sdk_core.StateType, _gem_sdk_core.CornerRadius>>>> | undefined;
6068
- fullWidth?: Partial<Record<NameDevices, boolean>> | undefined;
6069
- align?: Partial<Record<NameDevices, AlignProp>> | undefined;
6070
- size?: Partial<Record<NameDevices, string>> | undefined;
6071
- animation?: Partial<Record<_gem_sdk_core.StateType, "none" | "pulse" | "grow" | "bounce">> | undefined;
6072
- backgroundColor?: Partial<Record<_gem_sdk_core.StateType, _gem_sdk_core.ColorValueType>> | undefined;
6073
- backgroundColorV2?: Partial<Record<NameDevices, Partial<Record<_gem_sdk_core.StateType, _gem_sdk_core.ColorValueType>>>> | undefined;
6074
- backgroundImage?: Partial<Record<NameDevices, Partial<Record<_gem_sdk_core.StateType, _gem_sdk_core.BackgroundImageValue>>>> | undefined;
6075
- textColor?: Partial<Record<_gem_sdk_core.StateType, _gem_sdk_core.ColorValueType>> | undefined;
6076
- width?: Partial<Record<NameDevices, string | number | undefined>> | undefined;
6077
- height?: Partial<Record<NameDevices, string | number | undefined>> | undefined;
6078
- iconDimension?: Partial<Record<NameDevices, string | number>> | undefined;
6079
- globalSize?: Partial<Record<NameDevices, _gem_sdk_core.SizeSettingGlobal>> | undefined;
6080
- typography?: _gem_sdk_core.TypographySetting | undefined;
6081
- typo?: _gem_sdk_core.TypographySettingV2 | undefined;
6082
- textColorHover?: Partial<Record<NameDevices, Partial<Record<_gem_sdk_core.StateType, _gem_sdk_core.ColorValueType>>>> | undefined;
6083
- transform?: string | undefined;
6084
- hasBoxShadowBtn?: Partial<Record<_gem_sdk_core.StateType, boolean>> | undefined;
6085
- boxShadowBtn?: Partial<Record<_gem_sdk_core.StateType, _gem_sdk_core.ShadowProps>> | undefined;
6086
- boxShadowBtnV2?: Partial<Record<NameDevices, Partial<Record<_gem_sdk_core.StateType, _gem_sdk_core.ShadowProps>>>> | undefined;
6087
- iconSizeAuto?: boolean | undefined;
6088
- iconSpacing?: Partial<Record<NameDevices, string>> | undefined;
6089
- btnSpacing?: _gem_sdk_core.SizeSetting | undefined;
6090
- borderBtn?: Partial<Record<_gem_sdk_core.StateType, _gem_sdk_core.Border>> | undefined;
6091
- borderBtnV2?: Partial<Record<NameDevices, Partial<Record<_gem_sdk_core.StateType, _gem_sdk_core.Border>>>> | undefined;
6092
- textOverFlow?: boolean | undefined;
6093
- textAlign?: Partial<Record<NameDevices, AlignProp>> | undefined;
6094
- preloadBgImage?: boolean | undefined;
6095
- }, Record<string, any>> & {
6096
- builderAttrs?: Record<string, any> | undefined;
6097
- style?: React.CSSProperties | undefined;
6098
- } & {
6099
- className?: string | undefined;
6100
- style?: React.CSSProperties | undefined;
6101
- advanced?: any;
6102
- setting?: any;
6103
- } & {
6104
- pageContext?: PageContext | undefined;
6105
- }) => string;
6037
+ declare const DynamicCheckout: ({ builderProps, styles, advanced, setting, pageContext, }: DynamicCheckoutLiquidProps) => string;
6106
6038
 
6107
6039
  declare const ProductVendor: ({ setting, styles, advanced, builderProps }: VendorProps) => string;
6108
6040
 
@@ -6556,7 +6488,7 @@ declare const StockCounter: ({ setting, styles, style, advanced, builderProps }:
6556
6488
  /**
6557
6489
  * The `ShopPayButton` component renders a button that redirects to the Shop Pay checkout.
6558
6490
  */
6559
- declare const ShopPayButton: ({ className, setting, builderAttrs, style, styles, advanced, }: ShopPayButtonProps) => string;
6491
+ declare const ShopPayButton: ({ style, styles, setting, className, builderAttrs }: ShopPayButtonProps$1) => string;
6560
6492
 
6561
6493
  declare const Newsletter: ({ builderProps, setting, children, style, formType, advanced, pageContext, }: NewsletterProps$1) => string;
6562
6494
 
@@ -7586,7 +7518,7 @@ declare const _default$1: {
7586
7518
  CartOrderNote: React.FC<CartOrderNoteProps>;
7587
7519
  CartLineAttribute: React.FC<CartLineAttributeProps>;
7588
7520
  CouponList: React.FC<{}>;
7589
- ShopPayButton: React.FC<ShopPayButtonProps>;
7521
+ ShopPayButton: React.FC<ShopPayButtonProps$1>;
7590
7522
  CheckoutNow: ({ setting, builderAttrs, builderProps, style, styles, className, }: CheckoutNowProps) => React.JSX.Element;
7591
7523
  CollectionTitle: React.FC<CollectionTitleProps>;
7592
7524
  CollectionDescription: React.FC<CollectionDescriptionProps>;
@@ -7626,7 +7558,7 @@ declare const _default$1: {
7626
7558
  ProductBundleDiscount: React.FC<ProductQuantityBreakProps>;
7627
7559
  ProductBundleDiscountItem: React.FC<ProductQuantityBreakItemProps>;
7628
7560
  ProductButton: React.FC<ProductButtonProps>;
7629
- ProductDescription: React.FC<ProductDescriptionProps$1>;
7561
+ ProductDescription: React.FC<ProductDescriptionProps>;
7630
7562
  ProductVariants: React.FC<ProductVariantsProps>;
7631
7563
  ProductImages: React.FC<ProductImagesProps>;
7632
7564
  ProductImagesV2: React.FC<ProductImagesProps$1>;
@@ -7758,7 +7690,7 @@ declare const _default$1: {
7758
7690
  FormTextarea: React.FC<TextAreaProps$1>;
7759
7691
  FormDropdown: ({ builderProps, builderAttrs, setting, advanced, children, }: FormDropdownProps) => React.JSX.Element;
7760
7692
  FormCheckbox: ({ builderProps, setting, advanced }: FormCheckboxProps) => React.JSX.Element;
7761
- DynamicCheckout: React.FC<DynamicCheckoutProps>;
7693
+ DynamicCheckout: React.FC<DynamicCheckoutProps$1>;
7762
7694
  ImageDetection: React.FC<ImageDetectionProps>;
7763
7695
  Sticky: React.FC<StickyProps>;
7764
7696
  IconListV2: React.FC<IconListProps$1>;
@@ -8025,7 +7957,7 @@ declare const _default: {
8025
7957
  ProductVariants: _gem_sdk_core.ComponentSetting<ProductVariantsProps>;
8026
7958
  ProductImages: _gem_sdk_core.ComponentSetting<ProductImagesProps>;
8027
7959
  ProductImagesV2: _gem_sdk_core.ComponentSetting<ProductImagesProps$1>;
8028
- ProductDescription: _gem_sdk_core.ComponentSetting<ProductDescriptionProps$1>;
7960
+ ProductDescription: _gem_sdk_core.ComponentSetting<ProductDescriptionProps>;
8029
7961
  ProductProperties: _gem_sdk_core.ComponentSetting<ProductPropertiesProps>;
8030
7962
  ProductTag: _gem_sdk_core.ComponentSetting<ProductTagProps>;
8031
7963
  ProductList: _gem_sdk_core.ComponentSetting<ProductListProps>;
@@ -8120,4 +8052,4 @@ declare const getInsertLinkData: (defaultWrap: string, setting?: {
8120
8052
  declare const replaceLinkData: (text?: string, isTranslate?: boolean) => string | undefined;
8121
8053
  declare function filterTruthyStyles<T extends Record<string, any>>(styles: T): Partial<T>;
8122
8054
 
8123
- export { Accordion$1 as Accordion, AccordionItem$1 as AccordionItem, AccordionItemProps, AccordionProps, AftershipEmailMarketingsms$1 as AftershipEmailMarketingsms, AftershipEmailMarketingsmsProps, AirProductReviewsAppUgc$1 as AirProductReviewsAppUgc, AirProductReviewsAppUgcProps, AliReviews$1 as AliReviews, AliReviewsProps, AlsoBoughtCbb$1 as AlsoBoughtCbb, AlsoBoughtCbbProps, AppointmentBookingCowlendar$1 as AppointmentBookingCowlendar, AppointmentBookingCowlendarProps, AppstleSubscriptions$1 as AppstleSubscriptions, AppstleSubscriptionsProps, ArticleAuthor$1 as ArticleAuthor, ArticleCategory$1 as ArticleCategory, ArticleContent$1 as ArticleContent, ArticleDate$1 as ArticleDate, ArticleExcerpt$1 as ArticleExcerpt, ArticleImage$1 as ArticleImage, ArticleList$1 as ArticleList, ArticlePagination$1 as ArticlePagination, ArticleReadMore$1 as ArticleReadMore, ArticleTag$1 as ArticleTag, ArticleTitle$1 as ArticleTitle, BgImage as BackgroundImage, BackgroundImageProps, BasicHeader, BestBuyFulfillment$1 as BestBuyFulfillment, BestBuyFulfillmentProps, BfSizeChartSizeGuide$1 as BfSizeChartSizeGuide, BfSizeChartSizeGuideProps, BirdChime$1 as BirdChime, BirdChimeProps, Bogos$1 as Bogos, BogosProps, BoldProductOptions$1 as BoldProductOptions, BoldProductOptionsProps, BoldSubscriptions$1 as BoldSubscriptions, BoldSubscriptionsProps, BonLoyaltyRewardsReferrals$1 as BonLoyaltyRewardsReferrals, BonLoyaltyRewardsReferralsProps, BoostAISearchDiscovery$1 as BoostAISearchDiscovery, BoostAISearchDiscoveryProps, Breadcrumb$1 as Breadcrumb, Breadcrumb$1 as BreadcrumbProps, Bundler$1 as Bundler, BundlerProps, Button$4 as Button, ButtonProps$1 as ButtonProps, Button$3 as ButtonV1, CSSCode$1 as CSSCode, CSSCodeProps, Carousel$1 as Carousel, CarouselItem$1 as CarouselItem, CarouselItemProps, CarouselProps, CarouselSettings, CarouselStyles, Cart, CartCheckout, CartDiscount, CartLineAttribute, CartLineImage, CartLinePrice, CartLineVariant, CartList, CartOrderNote, CartProps, CartTotalItem, CartTotalPrice, CheckoutNow, CleanSizeChartProps, CleanSizeCharts$1 as CleanSizeCharts, Column$1 as Col, ColProps, CollectionBanner$1 as CollectionBanner, CollectionBannerProps, CollectionDescription$1 as CollectionDescription, CollectionDescriptionProps, CollectionPaginator$1 as CollectionPaginator, CollectionPaginatorProps, CollectionTitle$1 as CollectionTitle, CollectionTitleProps, CollectionToolbar$1 as CollectionToolbar, CollectionToolbarProps, ContactForm$1 as ContactForm, Countdown$1 as Countdown, CountdownProps, Coupon$1 as Coupon, CouponList, CouponProps, CrossSellCartUpsell$1 as CrossSellCartUpsell, CrossSellCartUpsellProps, CustomProductOptionsVariant$1 as CustomProductOptionsVariant, CustomProductOptionsVariantProps, DataVideoType, DesktopMenu, Dialog$1 as Dialog, DiscountInput, DiscountyBulkDiscountSales$1 as DiscountyBulkDiscountSales, DiscountyBulkDiscountSalesProps, DynamicCheckout$1 as DynamicCheckout, DynamicCheckoutProps, ELEMENT_Z_INDEX, EasifyProductOptions$1 as EasifyProductOptions, EasifyProductOptionsProps, EasyBundleBuilderSkailama$1 as EasyBundleBuilderSkailama, EasyBundleBuilderSkailamaProps, EasySell as EasySellCOD, EasySellProps, EssentialAnnouncementBar$1 as EssentialAnnouncementBar, EssentialAnnouncementBarProps, EssentialCountdownTimerBar$1 as EssentialCountdownTimerBar, EssentialCountdownTimerBarProps, EstimateDate$1 as EstimateDate, EstimateDateProps, EstimatedDeliveryDatePlus$1 as EstimatedDeliveryDatePlus, EstimatedDeliveryDatePlusProps, FastBundleBundlesDiscounts$1 as FastBundleBundlesDiscounts, FastBundleBundlesDiscountsProps, FeraReviews$1 as FeraReviews, FeraReviewsProps, FileUpload$1 as FileUpload, FileUploadProps, FirePush$1 as FirePush, FirePushProps, FlyBundlesUpsellsFbt$1 as FlyBundlesUpsellsFbt, FlyBundlesUpsellsFbtProps, FordeerProductLabels$1 as FordeerProductLabels, FordeerProductLabelsProps, FormCheckbox, FormCheckboxProps, FormDropdown$1 as FormDropdown, FormDropdownProps, FormEmail$1 as FormEmail, FormEmailProps, FormTextArea as FormTextarea, FrequentlyBoughtTogether$1 as FrequentlyBoughtTogether, FrequentlyBoughtTogetherProps, GloColorSwatchvariantImage$1 as GloColorSwatchvariantImage, GloColorSwatchvariantImageProps, GloboProductOptionsVariant$1 as GloboProductOptionsVariant, GloboProductOptionsVariantProps, GoogleReviewsByReputon$1 as GoogleReviewsByReputon, GoogleReviewsByReputonProps, Growave$1 as Growave, GrowaveProps, Header, HeaderProps, Heading$1 as Heading, HeadingProps, HeroBanner$1 as HeroBanner, HeroBannerProps, HextomCountdownTimerBar$1 as HextomCountdownTimerBar, HextomCountdownTimerBarProps, HextomFreeShippingBar$1 as HextomFreeShippingBar, HextomFreeShippingBarProps, HulkFormBuilder$1 as HulkFormBuilder, HulkFormBuilderProps, HulkProductOptions$1 as HulkProductOptions, HulkProductOptionsProps, Icon$1 as Icon, IconList$1 as IconList, IconListHoz$1 as IconListHoz, IconListHozItem, IconListHozProps, IconListItem$1 as IconListItem, IconListItemProps$3 as IconListItemProps, IconListProps$2 as IconListProps, IconListV2$1 as IconListV2, IconProps, Image$1 as Image, ImageComparison$1 as ImageComparison, ImageDetection, ImageDetectionProps, ImageProps, InfiniteOptions$1 as InfiniteOptions, InfiniteOptionsProps, Input, InputProps, Instafeed$1 as Instafeed, InstafeedProps, InstantJudgemeReviews, InstantJudgemeReviewsProps, InstantKlaviyo, InstantKlaviyoProps, InstantLooxReviews, InstantLooxReviewsProps, InstantYotpoLoyalty, InstantYotpoLoyaltyProps, InstasellShoppableInstagram$1 as InstasellShoppableInstagram, InstasellShoppableInstagramProps, JudgemeReviews$1 as JudgemeReviews, JudgemeReviewsProps, JunipProductReviewsUgc$1 as JunipProductReviewsUgc, JunipProductReviewsUgcProps, KachingBundles$1 as KachingBundles, KachingBundlesProps, KingProductOptions$1 as KingProductOptions, KingProductOptionsProps, KiteFreeGiftDiscount$1 as KiteFreeGiftDiscount, KiteFreeGiftDiscountProps, KlarnaMessaging$1 as KlarnaMessaging, KlarnaMessagingProps, Klaviyo$1 as Klaviyo, KlaviyoProps, KoalaBundleQuantityDiscount$1 as KoalaBundleQuantityDiscount, KoalaBundleQuantityDiscountProps, LaiProductReviews$1 as LaiProductReviews, LaiProductReviewsProps, Line$2 as Line, LineProps$1 as LineProps, Link$1 as Link, LinkProps$1 as LinkProps, LoloyalLoyaltyReferrals$1 as LoloyalLoyaltyReferrals, LoloyalLoyaltyReferralsProps, LoopSubscriptions$1 as LoopSubscriptions, LoopSubscriptionsProps, LooxReviews$1 as LooxReviews, LooxReviewsProps, Marquee$1 as Marquee, _default$3 as MarqueeItem, MarqueeItemProps, MarqueeProps, MaxbundleProductBundles$1 as MaxbundleProductBundles, MaxbundleProductBundlesProps, MbcBundleVolumeDiscount$1 as MbcBundleVolumeDiscount, MbcBundleVolumeDiscountProps, Menu, MenuProps, MobileMenu, Modal, ModernHeader, MyappgurusProductReviews$1 as MyappgurusProductReviews, MyappgurusProductReviewsProps, Newsletter$1 as Newsletter, NewsletterProps$1 as NewsletterProps, Notify as Notice, NotificationAPI, NotificationConfig, NotifyBackInStockPreOrder$1 as NotifyBackInStockPreOrder, NotifyBackInStockPreOrderProps, OkendoReviewsLoyalty$1 as OkendoReviewsLoyalty, OkendoReviewsLoyaltyProps, Omnisend$1 as Omnisend, OmnisendProps, Opinew$1 as Opinew, OpinewProps, Pagination, PaginationProps, ParcelPanel$1 as ParcelPanel, ParcelPanelProps, PickyStory$1 as PickyStory, PickyStoryProps, PostPurchaseAcceptButton, PostPurchaseAcceptButtonProps, PostPurchaseAdvancedList, PostPurchaseAdvancedListItem, PostPurchaseAdvancedListProps, Button$2 as PostPurchaseButton, PostPurchaseButtonProps, CalloutBox as PostPurchaseCalloutBox, CalloutText as PostPurchaseCalloutText, PostPurchaseCountdownTimer, PostPurchaseHeading, PostPurchaseImage, PostPurchaseImageProps, Line$1 as PostPurchaseLine, PostPurchaseLineProps, Link as PostPurchaseLink, PostPurchaseLinkProps, PostPurchaseProductDescription, PostPurchaseProductDescriptionProps, PostPurchaseProductDiscountTag, PostPurchaseProductDiscountTagProps, PostPurchaseProductImages, PostPurchaseProductImagesProps, PostPurchaseProductOffer, PostPurchaseProductOfferProps, PostPurchaseProductPrice, PostPurchaseProductPriceBreakdown, PostPurchaseProductPriceBreakdownProps, PostPurchaseProductPriceProps, PostPurchaseProductQuantity, PostPurchaseProductQuantityProps, PostPurchaseProductTitle, PostPurchaseProductTitleProps, PostPurchaseProductVariants, PostPurchaseProductVariantsProps, Text$1 as PostPurchaseText, PostPurchaseTextProps, PowerfulContactFormBuilder$1 as PowerfulContactFormBuilder, PowerfulContactFormBuilderProps, PreorderNowPreOrderPq$1 as PreorderNowPreOrderPq, PreorderNowPreOrderPqProps, PreorderNowWodPresale$1 as PreorderNowWodPresale, PreorderNowWodPresaleProps, Product$1 as Product, ProductBadge$1 as ProductBadge, ProductBadgeProps, ProductBundleDiscount$1 as ProductBundleDiscount, ProductBundleDiscountItem$1 as ProductBundleDiscountItem, ProductButton$1 as ProductButton, ProductButtonProps, ProductDescription$1 as ProductDescription, ProductDescriptionProps$1 as ProductDescriptionProps, ProductImages$2 as ProductImages, ProductImagesProps, ProductImagesV2, ProductList$1 as ProductList, ProductList$1 as ProductListProps, ProductOptionsCustomizer$1 as ProductOptionsCustomizer, ProductOptionsCustomizerProps, ProductOptionsVariantOption$1 as ProductOptionsVariantOption, ProductOptionsVariantOptionProps, ProductPrice$1 as ProductPrice, ProductPriceProps, ProductPropertiesProps, ProductProperties$1 as ProductPropertyInput, ProductProps, ProductQuantity$1 as ProductQuantity, ProductQuantityBreakItemProps, ProductQuantityBreakProps, ProductQuantityProps, QuickView as ProductQuickView, ProductReviews$1 as ProductReviews, ProductReviewsProps, ProductSku$1 as ProductSku, ProductTag$1 as ProductTag, ProductTagProps, ProductTitle$1 as ProductTitle, ProductTitleProps, ProductVariants$1 as ProductVariants, ProductVariantsProps, ProductVendor$1 as ProductVendor, ProductViewMore$1 as ProductViewMore, ProductViewMoreProps, PumperBundlesVolumeDiscount$1 as PumperBundlesVolumeDiscount, PumperBundlesVolumeDiscountProps, PushOwl$1 as PushOwl, PushOwlProps, QikifyUpsell$1 as QikifyUpsell, QikifyUpsellProps, Radio, RadioProps, RapiBundleQuantityBreaks$1 as RapiBundleQuantityBreaks, RapiBundleQuantityBreaksProps, RechargeSubscriptions$1 as RechargeSubscriptions, RechargeSubscriptionsProps, RecurpaySubscriptionApp$1 as RecurpaySubscriptionApp, RecurpaySubscriptionAppProps, Releasit$1 as Releasit, ReleasitProps, RequestQuoteHidePrice$1 as RequestQuoteHidePrice, RequestQuoteHidePriceProps, ReviewxpoProductReviewsApp$1 as ReviewxpoProductReviewsApp, ReviewxpoProductReviewsAppProps, Rivyo$1 as Rivyo, RivyoProps, Root$1 as Root, RootProps$1 as RootProps, Row$1 as Row, RowProps, Ryviu$1 as Ryviu, RyviuProps, SealSubscriptions$1 as SealSubscriptions, SealSubscriptionsProps, Section$1 as Section, SegunoEmailMarketing$1 as SegunoEmailMarketing, SegunoEmailMarketingProps, Select, SelectProps, Selleasy$1 as Selleasy, SelleasyProps, SeoantTrustBadgesIcon$1 as SeoantTrustBadgesIcon, SeoantTrustBadgesIconProps, ShopPayButton$1 as ShopPayButton, ShopPayButtonProps, ShopPayInstallments$1 as ShopPayInstallments, ShopifyForms$1 as ShopifyForms, ShopifyFormsProps, ShopifySubscriptions$1 as ShopifySubscriptions, ShopifySubscriptionsProps, SimpleBundlesKits$1 as SimpleBundlesKits, SimpleBundlesKitsProps, SkioSubscriptionsYcS20$1 as SkioSubscriptionsYcS20, SkioSubscriptionsYcS20Props, SkuProps, SmartSearchBarAndFilters$1 as SmartSearchBarAndFilters, SmartSearchBarAndFiltersProps, SproutPlantTreesGrowSales$1 as SproutPlantTreesGrowSales, SproutPlantTreesGrowSalesProps, Stamped$1 as Stamped, StampedProps, StellarDeliveryDatePickup$1 as StellarDeliveryDatePickup, StellarDeliveryDatePickupProps, Sticky$1 as Sticky, StickyProps, StockCounter$1 as StockCounter, StockCounterProps$1 as StockCounterProps, SubifySubscriptionsApp$1 as SubifySubscriptionsApp, SubifySubscriptionsAppProps, SubmitButton$1 as SubmitButton, SubmitButtonProps, TabItem$1 as TabItem, TabItemProps, Tabs$1 as Tabs, TabsProps, TagembedSocialPostReview$1 as TagembedSocialPostReview, TagembedSocialPostReviewProps, TagshopShoppableVideosUgc$1 as TagshopShoppableVideosUgc, TagshopShoppableVideosUgcProps, TeeinblueProductPersonalizer$1 as TeeinblueProductPersonalizer, TeeinblueProductPersonalizerProps, Text$2 as Text, TextAreaProps$1 as TextAreaProps, TextField$1 as TextField, TextFieldProps$1 as TextFieldProps, TextProps, TextArea as Textarea, TextareaProps, ThirdPartySlot$1 as ThirdPartySlot, TrustBadgesBear$1 as TrustBadgesBear, TrustBadgesBearProps, TrustMe$1 as TrustMe, TrustMeProps, TrustedsiteTrustBadges$1 as TrustedsiteTrustBadges, TrustedsiteTrustBadgesProps, Trustoo$1 as Trustoo, TrustooProps, TrustreviewsProductReviews$1 as TrustreviewsProductReviews, TrustreviewsProductReviewsProps, TrustshopProductReviews$1 as TrustshopProductReviews, TrustshopProductReviewsProps, UltimateSalesBoost$1 as UltimateSalesBoost, UltimateSalesBoostProps, UnlimitedBundlesDiscounts$1 as UnlimitedBundlesDiscounts, UnlimitedBundlesDiscountsProps, VendorProps, Video$1 as Video, Vitals$1 as Vitals, VitalsProps, WhatmoreShoppableVideosreel$1 as WhatmoreShoppableVideosreel, WhatmoreShoppableVideosreelProps, WideBundle$1 as WideBundle, WideBundleProps, Wiser$1 as Wiser, WiserProps, WishlistKing$1 as WishlistKing, WishlistKingProps, WishlistPlus$1 as WishlistPlus, WishlistPlusProps, YotpoLoyalty, YotpoLoyaltyProps, YotpoReviews$1 as YotpoReviews, YotpoReviewsProps, _default$U as accordionSetting, _default$5 as articleListSetting, _default$s as bannerSetting, _default$T as breadcrumbSetting, _default$1 as builderComponent, _default$S as buttonSetting, _default$Q as carouselSetting, _default$N as cartSetting, _default$q as codeSetting, _default$M as collectionSetting, _default as componentSettings, _default$m as contactFormSetting, _default$L as countdownSetting, _default$R as couponSetting, _default$n as dialogSetting, _default$6 as estimateDeliverySetting, filterTruthyStyles, getDynamicSourceLocales, getInsertLinkData, getSettingPreloadData, getStaticLocale, _default$O as gridSetting, _default$J as headerSetting, _default$K as headingSetting, _default$p as iconListHozSetting, _default$r as iconListSetting, _default$g as iconListSettingV2, _default$I as iconSetting, _default$k as imageComparisonSetting, _default$l as imageDetectionSetting, _default$P as imageSetting, _default$H as inputSetting, isHexTransparent, isTransparentColor, isTransparentRGBA, _default$G as lineSetting, _default$F as linkSetting, index_liquid as liquidComponents, _default$4 as marqueeSetting, _default$v as menuSetting, _default$E as modalSetting, _default$2 as nextComponent, openConfirm, _default$D as paginationSetting, _default$9 as postPurchaseAdvancedListSetting, _default$d as postPurchaseButtonSetting, _default$b as postPurchaseCalloutBoxSetting, _default$8 as postPurchaseCountdownTimerSetting, _default$e as postPurchaseImageSetting, _default$a as postPurchaseLineSetting, _default$7 as postPurchaseLinkSetting, postPurchaseProduct1Col, postPurchaseProduct2Col, postPurchaseProductDefault, _default$c as postPurchaseProductSetting, _default$f as postPurchaseTextSetting, _default$C as productSetting, _default$A as radioSetting, replaceLinkData, _default$z as selectSetting, _default$i as shopPayInstallmentSetting, _default$h as stickySetting, _default$o as stockCounterSetting, _default$y as tabSetting, _default$B as textSetting, _default$x as textareaSetting, _default$t as thirdPartyInstantSetting, _default$u as thirdPartySetting, _default$j as thirdPartySlotSetting, useInView, useNotification, _default$w as videoSetting, youtubeShortsRegex };
8055
+ export { Accordion$1 as Accordion, AccordionItem$1 as AccordionItem, AccordionItemProps, AccordionProps, AftershipEmailMarketingsms$1 as AftershipEmailMarketingsms, AftershipEmailMarketingsmsProps, AirProductReviewsAppUgc$1 as AirProductReviewsAppUgc, AirProductReviewsAppUgcProps, AliReviews$1 as AliReviews, AliReviewsProps, AlsoBoughtCbb$1 as AlsoBoughtCbb, AlsoBoughtCbbProps, AppointmentBookingCowlendar$1 as AppointmentBookingCowlendar, AppointmentBookingCowlendarProps, AppstleSubscriptions$1 as AppstleSubscriptions, AppstleSubscriptionsProps, ArticleAuthor$1 as ArticleAuthor, ArticleCategory$1 as ArticleCategory, ArticleContent$1 as ArticleContent, ArticleDate$1 as ArticleDate, ArticleExcerpt$1 as ArticleExcerpt, ArticleImage$1 as ArticleImage, ArticleList$1 as ArticleList, ArticlePagination$1 as ArticlePagination, ArticleReadMore$1 as ArticleReadMore, ArticleTag$1 as ArticleTag, ArticleTitle$1 as ArticleTitle, BgImage as BackgroundImage, BackgroundImageProps, BasicHeader, BestBuyFulfillment$1 as BestBuyFulfillment, BestBuyFulfillmentProps, BfSizeChartSizeGuide$1 as BfSizeChartSizeGuide, BfSizeChartSizeGuideProps, BirdChime$1 as BirdChime, BirdChimeProps, Bogos$1 as Bogos, BogosProps, BoldProductOptions$1 as BoldProductOptions, BoldProductOptionsProps, BoldSubscriptions$1 as BoldSubscriptions, BoldSubscriptionsProps, BonLoyaltyRewardsReferrals$1 as BonLoyaltyRewardsReferrals, BonLoyaltyRewardsReferralsProps, BoostAISearchDiscovery$1 as BoostAISearchDiscovery, BoostAISearchDiscoveryProps, Breadcrumb$1 as Breadcrumb, Breadcrumb$1 as BreadcrumbProps, Bundler$1 as Bundler, BundlerProps, Button$4 as Button, ButtonProps$1 as ButtonProps, Button$3 as ButtonV1, CSSCode$1 as CSSCode, CSSCodeProps, Carousel$1 as Carousel, CarouselItem$1 as CarouselItem, CarouselItemProps, CarouselProps, CarouselSettings, CarouselStyles, Cart, CartCheckout, CartDiscount, CartLineAttribute, CartLineImage, CartLinePrice, CartLineVariant, CartList, CartOrderNote, CartProps, CartTotalItem, CartTotalPrice, CheckoutNow, CleanSizeChartProps, CleanSizeCharts$1 as CleanSizeCharts, Column$1 as Col, ColProps, CollectionBanner$1 as CollectionBanner, CollectionBannerProps, CollectionDescription$1 as CollectionDescription, CollectionDescriptionProps, CollectionPaginator$1 as CollectionPaginator, CollectionPaginatorProps, CollectionTitle$1 as CollectionTitle, CollectionTitleProps, CollectionToolbar$1 as CollectionToolbar, CollectionToolbarProps, ContactForm$1 as ContactForm, Countdown$1 as Countdown, CountdownProps, Coupon$1 as Coupon, CouponList, CouponProps, CrossSellCartUpsell$1 as CrossSellCartUpsell, CrossSellCartUpsellProps, CustomProductOptionsVariant$1 as CustomProductOptionsVariant, CustomProductOptionsVariantProps, DataVideoType, DesktopMenu, Dialog$1 as Dialog, DiscountInput, DiscountyBulkDiscountSales$1 as DiscountyBulkDiscountSales, DiscountyBulkDiscountSalesProps, DynamicCheckout$1 as DynamicCheckout, DynamicCheckoutProps$1 as DynamicCheckoutProps, ELEMENT_Z_INDEX, EasifyProductOptions$1 as EasifyProductOptions, EasifyProductOptionsProps, EasyBundleBuilderSkailama$1 as EasyBundleBuilderSkailama, EasyBundleBuilderSkailamaProps, EasySell as EasySellCOD, EasySellProps, EssentialAnnouncementBar$1 as EssentialAnnouncementBar, EssentialAnnouncementBarProps, EssentialCountdownTimerBar$1 as EssentialCountdownTimerBar, EssentialCountdownTimerBarProps, EstimateDate$1 as EstimateDate, EstimateDateProps, EstimatedDeliveryDatePlus$1 as EstimatedDeliveryDatePlus, EstimatedDeliveryDatePlusProps, FastBundleBundlesDiscounts$1 as FastBundleBundlesDiscounts, FastBundleBundlesDiscountsProps, FeraReviews$1 as FeraReviews, FeraReviewsProps, FileUpload$1 as FileUpload, FileUploadProps, FirePush$1 as FirePush, FirePushProps, FlyBundlesUpsellsFbt$1 as FlyBundlesUpsellsFbt, FlyBundlesUpsellsFbtProps, FordeerProductLabels$1 as FordeerProductLabels, FordeerProductLabelsProps, FormCheckbox, FormCheckboxProps, FormDropdown$1 as FormDropdown, FormDropdownProps, FormEmail$1 as FormEmail, FormEmailProps, FormTextArea as FormTextarea, FrequentlyBoughtTogether$1 as FrequentlyBoughtTogether, FrequentlyBoughtTogetherProps, GloColorSwatchvariantImage$1 as GloColorSwatchvariantImage, GloColorSwatchvariantImageProps, GloboProductOptionsVariant$1 as GloboProductOptionsVariant, GloboProductOptionsVariantProps, GoogleReviewsByReputon$1 as GoogleReviewsByReputon, GoogleReviewsByReputonProps, Growave$1 as Growave, GrowaveProps, Header, HeaderProps, Heading$1 as Heading, HeadingProps, HeroBanner$1 as HeroBanner, HeroBannerProps, HextomCountdownTimerBar$1 as HextomCountdownTimerBar, HextomCountdownTimerBarProps, HextomFreeShippingBar$1 as HextomFreeShippingBar, HextomFreeShippingBarProps, HulkFormBuilder$1 as HulkFormBuilder, HulkFormBuilderProps, HulkProductOptions$1 as HulkProductOptions, HulkProductOptionsProps, Icon$1 as Icon, IconList$1 as IconList, IconListHoz$1 as IconListHoz, IconListHozItem, IconListHozProps, IconListItem$1 as IconListItem, IconListItemProps$3 as IconListItemProps, IconListProps$2 as IconListProps, IconListV2$1 as IconListV2, IconProps, Image$1 as Image, ImageComparison$1 as ImageComparison, ImageDetection, ImageDetectionProps, ImageProps, InfiniteOptions$1 as InfiniteOptions, InfiniteOptionsProps, Input, InputProps, Instafeed$1 as Instafeed, InstafeedProps, InstantJudgemeReviews, InstantJudgemeReviewsProps, InstantKlaviyo, InstantKlaviyoProps, InstantLooxReviews, InstantLooxReviewsProps, InstantYotpoLoyalty, InstantYotpoLoyaltyProps, InstasellShoppableInstagram$1 as InstasellShoppableInstagram, InstasellShoppableInstagramProps, JudgemeReviews$1 as JudgemeReviews, JudgemeReviewsProps, JunipProductReviewsUgc$1 as JunipProductReviewsUgc, JunipProductReviewsUgcProps, KachingBundles$1 as KachingBundles, KachingBundlesProps, KingProductOptions$1 as KingProductOptions, KingProductOptionsProps, KiteFreeGiftDiscount$1 as KiteFreeGiftDiscount, KiteFreeGiftDiscountProps, KlarnaMessaging$1 as KlarnaMessaging, KlarnaMessagingProps, Klaviyo$1 as Klaviyo, KlaviyoProps, KoalaBundleQuantityDiscount$1 as KoalaBundleQuantityDiscount, KoalaBundleQuantityDiscountProps, LaiProductReviews$1 as LaiProductReviews, LaiProductReviewsProps, Line$2 as Line, LineProps$1 as LineProps, Link$1 as Link, LinkProps$1 as LinkProps, LoloyalLoyaltyReferrals$1 as LoloyalLoyaltyReferrals, LoloyalLoyaltyReferralsProps, LoopSubscriptions$1 as LoopSubscriptions, LoopSubscriptionsProps, LooxReviews$1 as LooxReviews, LooxReviewsProps, Marquee$1 as Marquee, _default$3 as MarqueeItem, MarqueeItemProps, MarqueeProps, MaxbundleProductBundles$1 as MaxbundleProductBundles, MaxbundleProductBundlesProps, MbcBundleVolumeDiscount$1 as MbcBundleVolumeDiscount, MbcBundleVolumeDiscountProps, Menu, MenuProps, MobileMenu, Modal, ModernHeader, MyappgurusProductReviews$1 as MyappgurusProductReviews, MyappgurusProductReviewsProps, Newsletter$1 as Newsletter, NewsletterProps$1 as NewsletterProps, Notify as Notice, NotificationAPI, NotificationConfig, NotifyBackInStockPreOrder$1 as NotifyBackInStockPreOrder, NotifyBackInStockPreOrderProps, OkendoReviewsLoyalty$1 as OkendoReviewsLoyalty, OkendoReviewsLoyaltyProps, Omnisend$1 as Omnisend, OmnisendProps, Opinew$1 as Opinew, OpinewProps, Pagination, PaginationProps, ParcelPanel$1 as ParcelPanel, ParcelPanelProps, PickyStory$1 as PickyStory, PickyStoryProps, PostPurchaseAcceptButton, PostPurchaseAcceptButtonProps, PostPurchaseAdvancedList, PostPurchaseAdvancedListItem, PostPurchaseAdvancedListProps, Button$2 as PostPurchaseButton, PostPurchaseButtonProps, CalloutBox as PostPurchaseCalloutBox, CalloutText as PostPurchaseCalloutText, PostPurchaseCountdownTimer, PostPurchaseHeading, PostPurchaseImage, PostPurchaseImageProps, Line$1 as PostPurchaseLine, PostPurchaseLineProps, Link as PostPurchaseLink, PostPurchaseLinkProps, PostPurchaseProductDescription, PostPurchaseProductDescriptionProps, PostPurchaseProductDiscountTag, PostPurchaseProductDiscountTagProps, PostPurchaseProductImages, PostPurchaseProductImagesProps, PostPurchaseProductOffer, PostPurchaseProductOfferProps, PostPurchaseProductPrice, PostPurchaseProductPriceBreakdown, PostPurchaseProductPriceBreakdownProps, PostPurchaseProductPriceProps, PostPurchaseProductQuantity, PostPurchaseProductQuantityProps, PostPurchaseProductTitle, PostPurchaseProductTitleProps, PostPurchaseProductVariants, PostPurchaseProductVariantsProps, Text$1 as PostPurchaseText, PostPurchaseTextProps, PowerfulContactFormBuilder$1 as PowerfulContactFormBuilder, PowerfulContactFormBuilderProps, PreorderNowPreOrderPq$1 as PreorderNowPreOrderPq, PreorderNowPreOrderPqProps, PreorderNowWodPresale$1 as PreorderNowWodPresale, PreorderNowWodPresaleProps, Product$1 as Product, ProductBadge$1 as ProductBadge, ProductBadgeProps, ProductBundleDiscount$1 as ProductBundleDiscount, ProductBundleDiscountItem$1 as ProductBundleDiscountItem, ProductButton$1 as ProductButton, ProductButtonProps, ProductDescription$1 as ProductDescription, ProductDescriptionProps, ProductImages$2 as ProductImages, ProductImagesProps, ProductImagesV2, ProductList$1 as ProductList, ProductList$1 as ProductListProps, ProductOptionsCustomizer$1 as ProductOptionsCustomizer, ProductOptionsCustomizerProps, ProductOptionsVariantOption$1 as ProductOptionsVariantOption, ProductOptionsVariantOptionProps, ProductPrice$1 as ProductPrice, ProductPriceProps, ProductPropertiesProps, ProductProperties$1 as ProductPropertyInput, ProductProps, ProductQuantity$1 as ProductQuantity, ProductQuantityBreakItemProps, ProductQuantityBreakProps, ProductQuantityProps, QuickView as ProductQuickView, ProductReviews$1 as ProductReviews, ProductReviewsProps, ProductSku$1 as ProductSku, ProductTag$1 as ProductTag, ProductTagProps, ProductTitle$1 as ProductTitle, ProductTitleProps, ProductVariants$1 as ProductVariants, ProductVariantsProps, ProductVendor$1 as ProductVendor, ProductViewMore$1 as ProductViewMore, ProductViewMoreProps, PumperBundlesVolumeDiscount$1 as PumperBundlesVolumeDiscount, PumperBundlesVolumeDiscountProps, PushOwl$1 as PushOwl, PushOwlProps, QikifyUpsell$1 as QikifyUpsell, QikifyUpsellProps, Radio, RadioProps, RapiBundleQuantityBreaks$1 as RapiBundleQuantityBreaks, RapiBundleQuantityBreaksProps, RechargeSubscriptions$1 as RechargeSubscriptions, RechargeSubscriptionsProps, RecurpaySubscriptionApp$1 as RecurpaySubscriptionApp, RecurpaySubscriptionAppProps, Releasit$1 as Releasit, ReleasitProps, RequestQuoteHidePrice$1 as RequestQuoteHidePrice, RequestQuoteHidePriceProps, ReviewxpoProductReviewsApp$1 as ReviewxpoProductReviewsApp, ReviewxpoProductReviewsAppProps, Rivyo$1 as Rivyo, RivyoProps, Root$1 as Root, RootProps$1 as RootProps, Row$1 as Row, RowProps, Ryviu$1 as Ryviu, RyviuProps, SealSubscriptions$1 as SealSubscriptions, SealSubscriptionsProps, Section$1 as Section, SegunoEmailMarketing$1 as SegunoEmailMarketing, SegunoEmailMarketingProps, Select, SelectProps, Selleasy$1 as Selleasy, SelleasyProps, SeoantTrustBadgesIcon$1 as SeoantTrustBadgesIcon, SeoantTrustBadgesIconProps, ShopPayButton$1 as ShopPayButton, ShopPayButtonProps$1 as ShopPayButtonProps, ShopPayInstallments$1 as ShopPayInstallments, ShopifyForms$1 as ShopifyForms, ShopifyFormsProps, ShopifySubscriptions$1 as ShopifySubscriptions, ShopifySubscriptionsProps, SimpleBundlesKits$1 as SimpleBundlesKits, SimpleBundlesKitsProps, SkioSubscriptionsYcS20$1 as SkioSubscriptionsYcS20, SkioSubscriptionsYcS20Props, SkuProps, SmartSearchBarAndFilters$1 as SmartSearchBarAndFilters, SmartSearchBarAndFiltersProps, SproutPlantTreesGrowSales$1 as SproutPlantTreesGrowSales, SproutPlantTreesGrowSalesProps, Stamped$1 as Stamped, StampedProps, StellarDeliveryDatePickup$1 as StellarDeliveryDatePickup, StellarDeliveryDatePickupProps, Sticky$1 as Sticky, StickyProps, StockCounter$1 as StockCounter, StockCounterProps$1 as StockCounterProps, SubifySubscriptionsApp$1 as SubifySubscriptionsApp, SubifySubscriptionsAppProps, SubmitButton$1 as SubmitButton, SubmitButtonProps, TabItem$1 as TabItem, TabItemProps, Tabs$1 as Tabs, TabsProps, TagembedSocialPostReview$1 as TagembedSocialPostReview, TagembedSocialPostReviewProps, TagshopShoppableVideosUgc$1 as TagshopShoppableVideosUgc, TagshopShoppableVideosUgcProps, TeeinblueProductPersonalizer$1 as TeeinblueProductPersonalizer, TeeinblueProductPersonalizerProps, Text$2 as Text, TextAreaProps$1 as TextAreaProps, TextField$1 as TextField, TextFieldProps$1 as TextFieldProps, TextProps, TextArea as Textarea, TextareaProps, ThirdPartySlot$1 as ThirdPartySlot, TrustBadgesBear$1 as TrustBadgesBear, TrustBadgesBearProps, TrustMe$1 as TrustMe, TrustMeProps, TrustedsiteTrustBadges$1 as TrustedsiteTrustBadges, TrustedsiteTrustBadgesProps, Trustoo$1 as Trustoo, TrustooProps, TrustreviewsProductReviews$1 as TrustreviewsProductReviews, TrustreviewsProductReviewsProps, TrustshopProductReviews$1 as TrustshopProductReviews, TrustshopProductReviewsProps, UltimateSalesBoost$1 as UltimateSalesBoost, UltimateSalesBoostProps, UnlimitedBundlesDiscounts$1 as UnlimitedBundlesDiscounts, UnlimitedBundlesDiscountsProps, VendorProps, Video$1 as Video, Vitals$1 as Vitals, VitalsProps, WhatmoreShoppableVideosreel$1 as WhatmoreShoppableVideosreel, WhatmoreShoppableVideosreelProps, WideBundle$1 as WideBundle, WideBundleProps, Wiser$1 as Wiser, WiserProps, WishlistKing$1 as WishlistKing, WishlistKingProps, WishlistPlus$1 as WishlistPlus, WishlistPlusProps, YotpoLoyalty, YotpoLoyaltyProps, YotpoReviews$1 as YotpoReviews, YotpoReviewsProps, _default$U as accordionSetting, _default$5 as articleListSetting, _default$s as bannerSetting, _default$T as breadcrumbSetting, _default$1 as builderComponent, _default$S as buttonSetting, _default$Q as carouselSetting, _default$N as cartSetting, _default$q as codeSetting, _default$M as collectionSetting, _default as componentSettings, _default$m as contactFormSetting, _default$L as countdownSetting, _default$R as couponSetting, _default$n as dialogSetting, _default$6 as estimateDeliverySetting, filterTruthyStyles, getDynamicSourceLocales, getInsertLinkData, getSettingPreloadData, getStaticLocale, _default$O as gridSetting, _default$J as headerSetting, _default$K as headingSetting, _default$p as iconListHozSetting, _default$r as iconListSetting, _default$g as iconListSettingV2, _default$I as iconSetting, _default$k as imageComparisonSetting, _default$l as imageDetectionSetting, _default$P as imageSetting, _default$H as inputSetting, isHexTransparent, isTransparentColor, isTransparentRGBA, _default$G as lineSetting, _default$F as linkSetting, index_liquid as liquidComponents, _default$4 as marqueeSetting, _default$v as menuSetting, _default$E as modalSetting, _default$2 as nextComponent, openConfirm, _default$D as paginationSetting, _default$9 as postPurchaseAdvancedListSetting, _default$d as postPurchaseButtonSetting, _default$b as postPurchaseCalloutBoxSetting, _default$8 as postPurchaseCountdownTimerSetting, _default$e as postPurchaseImageSetting, _default$a as postPurchaseLineSetting, _default$7 as postPurchaseLinkSetting, postPurchaseProduct1Col, postPurchaseProduct2Col, postPurchaseProductDefault, _default$c as postPurchaseProductSetting, _default$f as postPurchaseTextSetting, _default$C as productSetting, _default$A as radioSetting, replaceLinkData, _default$z as selectSetting, _default$i as shopPayInstallmentSetting, _default$h as stickySetting, _default$o as stockCounterSetting, _default$y as tabSetting, _default$B as textSetting, _default$x as textareaSetting, _default$t as thirdPartyInstantSetting, _default$u as thirdPartySetting, _default$j as thirdPartySlotSetting, useInView, useNotification, _default$w as videoSetting, youtubeShortsRegex };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gem-sdk/components",
3
- "version": "2.0.0-dev.271",
3
+ "version": "2.0.0-dev.275",
4
4
  "license": "MIT",
5
5
  "sideEffects": false,
6
6
  "main": "dist/cjs/index.js",
@@ -1,20 +0,0 @@
1
- 'use strict';
2
-
3
- /**
4
- * Takes a string in the format of "gid://shopify/ProductVariant/41007289630776" and returns a string of the ID part at the end: "41007289630776"
5
- */ function getIdFromGid(id) {
6
- if (!id) return;
7
- return id.split('/').at(-1);
8
- }
9
- function getStoreUrl(url) {
10
- if (!url) return;
11
- try {
12
- const data = new URL(url);
13
- return data.origin;
14
- } catch {
15
- return;
16
- }
17
- }
18
-
19
- exports.getIdFromGid = getIdFromGid;
20
- exports.getStoreUrl = getStoreUrl;
@@ -1,113 +0,0 @@
1
- 'use client';
2
- 'use strict';
3
-
4
- Object.defineProperty(exports, '__esModule', { value: true });
5
-
6
- var jsxRuntime = require('react/jsx-runtime');
7
- var core = require('@gem-sdk/core');
8
- var dynamic = require('next/dynamic');
9
- var React = require('react');
10
- var ShopPayButtonCommon = require('./ShopPayButtonCommon.js');
11
-
12
- const DynamicCheckoutBlack = dynamic(()=>Promise.resolve().then(function () { return require('./icons/DynamicCheckoutBlack.js'); }));
13
- const DynamicCheckoutPurple = dynamic(()=>Promise.resolve().then(function () { return require('./icons/DynamicCheckoutPurple.js'); }));
14
- const DynamicCheckoutWhite = dynamic(()=>Promise.resolve().then(function () { return require('./icons/DynamicCheckoutWhite.js'); }));
15
- const ExpressCheckoutBlack = dynamic(()=>Promise.resolve().then(function () { return require('./icons/ExpressCheckoutBlack.js'); }));
16
- const ExpressCheckoutPurple = dynamic(()=>Promise.resolve().then(function () { return require('./icons/ExpressCheckoutPurple.js'); }));
17
- const ExpressCheckoutWhite = dynamic(()=>Promise.resolve().then(function () { return require('./icons/ExpressCheckoutWhite.js'); }));
18
- /**
19
- * The `ShopPayButton` component renders a button that redirects to the Shop Pay checkout.
20
- */ const ShopPayButton = ({ className, setting, builderAttrs, style, styles })=>{
21
- const storefrontUrl = core.useShopStore((s)=>s.storefrontUrl);
22
- const storeUrl = ShopPayButtonCommon.getStoreUrl(storefrontUrl);
23
- const { data: cartData } = core.useCartData();
24
- const currentVariant = core.useCurrentVariant();
25
- const isCurrentVariantInStock = core.useCurrentVariantInStock();
26
- const { quantity } = core.useQuantity();
27
- const mode = core.useEditorMode();
28
- const idsInCart = React.useMemo(()=>{
29
- const items = cartData?.lineItems.map((v)=>({
30
- id: v.variantId,
31
- quantity: v.quantity
32
- }))?.reduce((prev, curr)=>{
33
- const bareId = ShopPayButtonCommon.getIdFromGid(curr?.id);
34
- if (bareId) {
35
- prev.push(`${bareId}:${curr?.quantity ?? 1}`);
36
- }
37
- return prev;
38
- }, []);
39
- return items;
40
- }, [
41
- cartData?.lineItems
42
- ]);
43
- const variants = React.useMemo(()=>{
44
- if (setting?.kind === 'cart-buy') {
45
- return idsInCart;
46
- }
47
- if (currentVariant?.baseID && isCurrentVariantInStock && quantity) {
48
- return [
49
- `${ShopPayButtonCommon.getIdFromGid(currentVariant.baseID)}:${quantity}`
50
- ];
51
- }
52
- return undefined;
53
- }, [
54
- setting?.kind,
55
- currentVariant?.baseID,
56
- isCurrentVariantInStock,
57
- quantity,
58
- idsInCart
59
- ]);
60
- const SPButton = React.useMemo(()=>{
61
- if (styles?.type === 'dynamic') {
62
- if (styles.color === 'black') return DynamicCheckoutBlack;
63
- if (styles.color === 'purple') return DynamicCheckoutPurple;
64
- return DynamicCheckoutWhite;
65
- } else {
66
- if (styles?.color === 'black') return ExpressCheckoutBlack;
67
- if (styles?.color === 'purple') return ExpressCheckoutPurple;
68
- return ExpressCheckoutWhite;
69
- }
70
- }, [
71
- styles?.type,
72
- styles?.color
73
- ]);
74
- if (!storeUrl) {
75
- return /*#__PURE__*/ jsxRuntime.jsx("div", {
76
- ...builderAttrs,
77
- children: "URL Not Found"
78
- });
79
- }
80
- const payUrl = `${storeUrl}/cart/${variants?.join(',')}?payment=shop_pay`;
81
- const onClickPay = (w, h)=>{
82
- if (mode === 'edit') return;
83
- if (setting?.openMode === 'popup') {
84
- const dualScreenLeft = window.screenLeft !== undefined ? window.screenLeft : window.screenX;
85
- const dualScreenTop = window.screenTop !== undefined ? window.screenTop : window.screenY;
86
- const width = window.innerWidth ? window.innerWidth : document.documentElement.clientWidth ? document.documentElement.clientWidth : screen.width;
87
- const height = window.innerHeight ? window.innerHeight : document.documentElement.clientHeight ? document.documentElement.clientHeight : screen.height;
88
- const systemZoom = width / window.screen.availWidth;
89
- const left = (width - w) / 2 / systemZoom + dualScreenLeft;
90
- const top = (height - h) / 2 / systemZoom + dualScreenTop;
91
- window.open(payUrl, 'shop_pay', `scrollbars=yes, width=${w / systemZoom}, height=${h / systemZoom}, top=${top}, left=${left}`);
92
- } else {
93
- !!payUrl && window.open(payUrl);
94
- }
95
- };
96
- return /*#__PURE__*/ jsxRuntime.jsx("div", {
97
- ...builderAttrs,
98
- style: {
99
- ...style,
100
- ...core.makeStyleResponsive('jc', styles?.align)
101
- },
102
- className: core.cls(className, 'gp-flex'),
103
- children: /*#__PURE__*/ jsxRuntime.jsx("button", {
104
- disabled: !variants?.length,
105
- className: "disabled:gp-cursor-not-allowed disabled:gp-opacity-50",
106
- "aria-label": "Buy with Shop Pay",
107
- onClick: ()=>onClickPay(600, 600),
108
- children: /*#__PURE__*/ jsxRuntime.jsx(SPButton, {})
109
- })
110
- });
111
- };
112
-
113
- exports.default = ShopPayButton;
@@ -1,51 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- var core = require('@gem-sdk/core');
6
- var DynamicCheckoutBlack_liquid = require('./icons/DynamicCheckoutBlack.liquid.js');
7
- var DynamicCheckoutPurple_liquid = require('./icons/DynamicCheckoutPurple.liquid.js');
8
- var DynamicCheckoutWhite_liquid = require('./icons/DynamicCheckoutWhite.liquid.js');
9
- var ExpressCheckoutBlack_liquid = require('./icons/ExpressCheckoutBlack.liquid.js');
10
- var ExpressCheckoutPurple_liquid = require('./icons/ExpressCheckoutPurple.liquid.js');
11
- var ExpressCheckoutWhite_liquid = require('./icons/ExpressCheckoutWhite.liquid.js');
12
- var helpers = require('../../../helpers.js');
13
-
14
- /**
15
- * The `ShopPayButton` component renders a button that redirects to the Shop Pay checkout.
16
- */ const ShopPayButton = ({ className, setting, builderAttrs, style, styles, advanced })=>{
17
- const SPButton = ()=>{
18
- if (styles?.type === 'dynamic') {
19
- if (styles.color === 'black') return DynamicCheckoutBlack_liquid.default;
20
- if (styles.color === 'purple') return DynamicCheckoutPurple_liquid.default;
21
- return DynamicCheckoutWhite_liquid.default;
22
- } else {
23
- if (styles?.color === 'black') return ExpressCheckoutBlack_liquid.default;
24
- if (styles?.color === 'purple') return ExpressCheckoutPurple_liquid.default;
25
- return ExpressCheckoutWhite_liquid.default;
26
- }
27
- };
28
- return core.template`
29
- <gp-shop-pay-button
30
- ${{
31
- ...builderAttrs
32
- }}
33
- style="${{
34
- ...style,
35
- ...core.makeStyleResponsive('jc', styles?.align)
36
- }}"
37
- class="${core.cls(className, 'gp-flex', advanced?.cssClass)}"
38
- gp-data='{"setting":${JSON.stringify(setting)}, "shop_url": "{{shop.url}}" }'
39
- >
40
- <button
41
- class="disabled:gp-cursor-not-allowed disabled:gp-pacity-50 gp-shop-button"
42
- aria-label="Buy with Shop Pay"
43
- >
44
- ${SPButton()({})}
45
- </button>
46
- </gp-shop-pay-button>
47
- ${core.RenderIf(core.isLocalEnv, `<script ${helpers.getSettingPreloadData('class="gps-link" delay', 'src')}="{{ 'gp-shop-pay-button.js' | asset_url }}" defer="defer"></script>`, `<script ${helpers.getSettingPreloadData('class="gps-link" delay', 'src')}="${core.baseAssetURL}/assets-v2/gp-shop-pay-button.js?v={{ shop.metafields.GEMPAGES.ASSETS_VERSION }}" defer="defer"></script>`)}
48
- `;
49
- };
50
-
51
- exports.default = ShopPayButton;