@gem-sdk/components 2.0.0-dev.274 → 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.
- package/dist/cjs/banner/components/HeroBannerItem.liquid.js +1 -1
- package/dist/cjs/builder.js +13 -13
- package/dist/cjs/cart/components/ShopPayButton/ShopPayButton.js +70 -0
- package/dist/cjs/cart/components/ShopPayButton/ShopPayButton.liquid.js +71 -0
- package/dist/cjs/cart/components/ShopPayButton/common/classes.js +18 -0
- package/dist/cjs/cart/components/ShopPayButton/common/helpers.js +31 -0
- package/dist/cjs/cart/components/ShopPayButton/common/styles.js +12 -0
- package/dist/cjs/cart/components/ShopPayButton/hooks/useShopPayButton.js +70 -0
- package/dist/cjs/cart/next.js +1 -1
- package/dist/cjs/estimate-delivery/components/EstimateDate.liquid.js +1 -1
- package/dist/cjs/header/components/kind/basic/index.js +1 -1
- package/dist/cjs/header/components/kind/modern/index.js +1 -1
- package/dist/cjs/index.js +39 -39
- package/dist/cjs/index.liquid.js +9 -9
- package/dist/cjs/product/components/DynamicCheckout/DynamicCheckout.js +28 -0
- package/dist/cjs/product/components/DynamicCheckout/DynamicCheckout.liquid.js +23 -0
- package/dist/cjs/product/components/DynamicCheckout/common/classes.js +32 -0
- package/dist/cjs/product/components/DynamicCheckout/common/styles.js +181 -0
- package/dist/cjs/product/components/DynamicCheckout/components/Button.liquid.js +58 -0
- package/dist/cjs/product/components/FileUpload/components/common/index.js +1 -1
- package/dist/cjs/product/components/ProductDescription/common/const.js +9 -0
- package/dist/cjs/product/components/ProductDescription/common/getClasses.js +30 -0
- package/dist/cjs/product/components/ProductDescription/common/getStyle.js +81 -0
- package/dist/cjs/product/components/ProductDescription/hooks/useGpDescription.js +90 -0
- package/dist/cjs/product/components/ProductDescription/index.js +115 -0
- package/dist/cjs/product/components/ProductDescription/index.liquid.js +86 -0
- package/dist/cjs/product/next.js +1 -1
- package/dist/cjs/setting.js +1 -1
- package/dist/esm/banner/components/HeroBannerItem.liquid.js +1 -1
- package/dist/esm/builder.js +3 -3
- package/dist/esm/cart/components/ShopPayButton/ShopPayButton.js +66 -0
- package/dist/esm/cart/components/ShopPayButton/ShopPayButton.liquid.js +67 -0
- package/dist/esm/cart/components/ShopPayButton/common/classes.js +15 -0
- package/dist/esm/cart/components/ShopPayButton/common/helpers.js +27 -0
- package/dist/esm/cart/components/ShopPayButton/common/styles.js +10 -0
- package/dist/esm/cart/components/ShopPayButton/hooks/useShopPayButton.js +68 -0
- package/dist/esm/cart/next.js +1 -1
- package/dist/esm/estimate-delivery/components/EstimateDate.liquid.js +1 -1
- package/dist/esm/header/components/kind/basic/index.js +1 -1
- package/dist/esm/header/components/kind/modern/index.js +1 -1
- package/dist/esm/index.js +3 -3
- package/dist/esm/index.liquid.js +3 -3
- package/dist/esm/product/components/DynamicCheckout/DynamicCheckout.js +24 -0
- package/dist/esm/product/components/DynamicCheckout/DynamicCheckout.liquid.js +19 -0
- package/dist/esm/product/components/DynamicCheckout/common/classes.js +30 -0
- package/dist/esm/product/components/DynamicCheckout/common/styles.js +179 -0
- package/dist/esm/product/components/DynamicCheckout/components/Button.liquid.js +54 -0
- package/dist/esm/product/components/FileUpload/components/common/index.js +1 -1
- package/dist/esm/product/components/ProductDescription/common/const.js +6 -0
- package/dist/esm/product/components/ProductDescription/common/getClasses.js +27 -0
- package/dist/esm/product/components/ProductDescription/common/getStyle.js +77 -0
- package/dist/esm/product/components/ProductDescription/hooks/useGpDescription.js +88 -0
- package/dist/esm/product/components/ProductDescription/index.js +111 -0
- package/dist/esm/product/components/ProductDescription/index.liquid.js +82 -0
- package/dist/esm/product/next.js +1 -1
- package/dist/esm/setting.js +1 -1
- package/dist/types/index.d.ts +29 -97
- package/package.json +1 -1
- package/dist/cjs/cart/components/ShopPayButton/ShopPayButtonCommon.js +0 -20
- package/dist/cjs/cart/components/ShopPayButton/index.js +0 -113
- package/dist/cjs/cart/components/ShopPayButton/index.liquid.js +0 -51
- package/dist/cjs/product/components/DynamicCheckout.liquid.js +0 -250
- package/dist/cjs/product/components/ProductDescription/const.js +0 -5
- package/dist/cjs/product/components/ProductDescription.js +0 -172
- package/dist/cjs/product/components/ProductDescription.liquid.js +0 -120
- package/dist/esm/cart/components/ShopPayButton/ShopPayButtonCommon.js +0 -17
- package/dist/esm/cart/components/ShopPayButton/index.js +0 -109
- package/dist/esm/cart/components/ShopPayButton/index.liquid.js +0 -47
- package/dist/esm/product/components/DynamicCheckout.liquid.js +0 -246
- package/dist/esm/product/components/ProductDescription/const.js +0 -3
- package/dist/esm/product/components/ProductDescription.js +0 -168
- package/dist/esm/product/components/ProductDescription.liquid.js +0 -116
- /package/dist/cjs/product/components/ProductDescription/{common.js → common/getMaxHeight.js} +0 -0
- /package/dist/esm/product/components/ProductDescription/{common.js → common/getMaxHeight.js} +0 -0
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import { makeStyleResponsive, makeLineClamp, template, dataStringify, isSafari, isLocalEnv, baseAssetURL } from '@gem-sdk/core';
|
|
2
|
+
import { getSettingPreloadData } from '../../../helpers.js';
|
|
3
|
+
import { createClass, createStyle, createAttr, createStateOrContext, LiquidIf, Liquid, If, LiquidUnless } from '@gem-sdk/system';
|
|
4
|
+
import { getClasses, getButtonClasses } from './common/getClasses.js';
|
|
5
|
+
import { getTextStyle, getButtonStyle, getStaticCss } from './common/getStyle.js';
|
|
6
|
+
import { ICON_SVG } from './common/const.js';
|
|
7
|
+
|
|
8
|
+
const ProductDescription = (props)=>{
|
|
9
|
+
const { setting, advanced, builderProps } = props;
|
|
10
|
+
const { htmlTag } = setting ?? {};
|
|
11
|
+
const Tag = htmlTag === 'html' ? 'div' : 'p';
|
|
12
|
+
const gpDescriptionClasses = createClass({
|
|
13
|
+
'gp-product-description': true,
|
|
14
|
+
[advanced?.cssClass]: true
|
|
15
|
+
});
|
|
16
|
+
const textClasses = createClass(getClasses({
|
|
17
|
+
setting
|
|
18
|
+
}));
|
|
19
|
+
const buttonClasses = createClass(getButtonClasses({
|
|
20
|
+
setting
|
|
21
|
+
}));
|
|
22
|
+
const showMoreTextClasses = createClass({
|
|
23
|
+
'gp-show-more-text': true
|
|
24
|
+
});
|
|
25
|
+
const showMoreIconClasses = createClass({
|
|
26
|
+
'gp-show-more-icon gp-ml-1': true
|
|
27
|
+
});
|
|
28
|
+
const textStyle = createStyle({
|
|
29
|
+
...getTextStyle({
|
|
30
|
+
setting,
|
|
31
|
+
renderMaxHeight: true
|
|
32
|
+
}),
|
|
33
|
+
...makeStyleResponsive('line-clamp', makeLineClamp(setting?.lineClamp, setting?.hasLineClamp))
|
|
34
|
+
});
|
|
35
|
+
const buttonStyle = createStyle(getButtonStyle({
|
|
36
|
+
setting
|
|
37
|
+
}));
|
|
38
|
+
const attr = createAttr({
|
|
39
|
+
'data-id': `${builderProps?.uid}`
|
|
40
|
+
});
|
|
41
|
+
const textAttr = createAttr({
|
|
42
|
+
'data-gp-text': ''
|
|
43
|
+
});
|
|
44
|
+
const { gpDescriptionCss, textDescriptionCss } = getStaticCss();
|
|
45
|
+
const noDescriptionHtml = 'product.description == blank';
|
|
46
|
+
const renderScript = ()=>{
|
|
47
|
+
const jsURL = isLocalEnv ? `{{ 'gp-product-description-v2.js' | asset_url }}` : `${baseAssetURL}/assets-v2/gp-product-description-v2.js?v={{ shop.metafields.GEMPAGES.ASSETS_VERSION }}`;
|
|
48
|
+
return `<script ${getSettingPreloadData('class="gps-link" delay', 'src')}="${jsURL}" defer="defer"></script>`;
|
|
49
|
+
};
|
|
50
|
+
const stateData = createStateOrContext({
|
|
51
|
+
setting: {
|
|
52
|
+
lineClamp: setting?.lineClamp,
|
|
53
|
+
hasLineClamp: setting?.hasLineClamp,
|
|
54
|
+
viewMoreText: setting?.viewMoreText,
|
|
55
|
+
viewLessText: setting?.viewLessText,
|
|
56
|
+
enableViewMoreIcon: setting?.enableViewMoreIcon
|
|
57
|
+
},
|
|
58
|
+
textStyle
|
|
59
|
+
});
|
|
60
|
+
return LiquidIf(noDescriptionHtml, '', Liquid(template`
|
|
61
|
+
<gp-product-description-v2
|
|
62
|
+
${attr}
|
|
63
|
+
class="${gpDescriptionClasses}"
|
|
64
|
+
gp-data='${dataStringify(stateData).replaceAll("'", ''')}'>
|
|
65
|
+
<style>${textDescriptionCss}</style>
|
|
66
|
+
${If(!isSafari(), `<style>${gpDescriptionCss}</style>`, ' ')}
|
|
67
|
+
${LiquidUnless('product', `<p>Product not found</p>`, template`<${Tag} ${textAttr} class="${textClasses}" style="${textStyle}">
|
|
68
|
+
{{product.description}}
|
|
69
|
+
</${Tag}>
|
|
70
|
+
${LiquidUnless(noDescriptionHtml, template`<button type="button" class="${buttonClasses}" style="${buttonStyle}">
|
|
71
|
+
<span class="${showMoreTextClasses}">
|
|
72
|
+
${If(false, setting?.viewLessText || '', setting?.viewMoreText)}
|
|
73
|
+
</span>
|
|
74
|
+
${If(setting?.enableViewMoreIcon, template`<span class="${showMoreIconClasses}">${ICON_SVG}</span>`, ' ')}
|
|
75
|
+
</button>`)}`)}
|
|
76
|
+
</gp-product-description-v2>
|
|
77
|
+
|
|
78
|
+
${renderScript()}
|
|
79
|
+
`));
|
|
80
|
+
};
|
|
81
|
+
|
|
82
|
+
export { ProductDescription as default };
|
package/dist/esm/product/next.js
CHANGED
|
@@ -13,7 +13,7 @@ const ProductTitle = dynamic(()=>import('./components/ProductTitle/index.js'), {
|
|
|
13
13
|
const ProductQuantity = dynamic(()=>import('./components/ProductQuantity.js'), {
|
|
14
14
|
loading: Loading
|
|
15
15
|
});
|
|
16
|
-
const ProductDescription = dynamic(()=>import('./components/ProductDescription.js'), {
|
|
16
|
+
const ProductDescription = dynamic(()=>import('./components/ProductDescription/index.js'), {
|
|
17
17
|
loading: Loading
|
|
18
18
|
});
|
|
19
19
|
const ProductPrice = dynamic(()=>import('./components/ProductPrice.js'), {
|
package/dist/esm/setting.js
CHANGED
|
@@ -19,7 +19,7 @@ import 'next/image';
|
|
|
19
19
|
import 'react-youtube';
|
|
20
20
|
import imageSetting from './image/setting/index.js';
|
|
21
21
|
import './image/components/AdaptiveImage.js';
|
|
22
|
-
import './cart/components/ShopPayButton/
|
|
22
|
+
import './cart/components/ShopPayButton/ShopPayButton.js';
|
|
23
23
|
import collectionSetting from './collection/setting/index.js';
|
|
24
24
|
import countdownSetting from './countdown-timer/setting/index.js';
|
|
25
25
|
import headingSetting from './heading/setting/index.js';
|
package/dist/types/index.d.ts
CHANGED
|
@@ -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
|
|
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
|
|
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
|
-
|
|
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
|
-
|
|
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
|
|
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
|
-
|
|
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, }:
|
|
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: ({
|
|
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
|
|
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
|
|
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,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;
|