@gem-sdk/components 2.0.0-dev.353 → 2.0.0-dev.356
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/article/components/ArticleAuthor.liquid.js +27 -0
- package/dist/cjs/article/components/ArticleCategory.liquid.js +27 -0
- package/dist/cjs/article/components/ArticleContent.liquid.js +42 -0
- package/dist/cjs/article/components/ArticleDate.liquid.js +35 -0
- package/dist/cjs/article/components/ArticleExcerpt.liquid.js +26 -0
- package/dist/cjs/article/components/ArticleImage.liquid.js +67 -0
- package/dist/cjs/article/components/ArticlePagination.liquid.js +17 -0
- package/dist/cjs/article/components/ArticleReadMore.liquid.js +58 -0
- package/dist/cjs/article/components/ArticleTag.liquid.js +27 -0
- package/dist/cjs/article/components/ArticleTitle.liquid.js +46 -0
- package/dist/cjs/builder.js +1 -1
- package/dist/cjs/button/components/Button.js +5 -3
- package/dist/cjs/button/components/Button.liquid.js +7 -3
- package/dist/cjs/button/components/common/attributes.js +1 -2
- package/dist/cjs/button/components/common/helpers.js +2 -2
- package/dist/cjs/button/components/common/styles.js +29 -1
- package/dist/cjs/button/setting/configs/settings.js +24 -4
- package/dist/cjs/button/setting/configs/uiV2.js +46 -8
- package/dist/cjs/form/setting/newsletter/configs/settings.js +2 -2
- package/dist/cjs/form/setting/newsletter/configs/uiV2.js +0 -44
- package/dist/cjs/image/setting/configs/uiV2.js +5 -1
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/index.liquid.js +20 -0
- package/dist/cjs/post-purchase/callout-banner/setting/config/callout-text/setting.js +4 -3
- package/dist/cjs/post-purchase/image/common/getClasses.js +1 -4
- package/dist/cjs/post-purchase/product/common/getClasses.js +4 -5
- package/dist/cjs/post-purchase/product/components/product-image/carousel-post-purchase/CarouselPostPurchase.js +3 -2
- package/dist/cjs/post-purchase/product/components/product-image/carousel-post-purchase/CarouselWrapperPostPurchase.js +2 -1
- package/dist/cjs/post-purchase/product/components/product-offer/common/attrs.js +14 -0
- package/dist/cjs/post-purchase/product/components/product-offer/common/classes.js +29 -0
- package/dist/cjs/post-purchase/product/components/product-offer/common/styles.js +27 -0
- package/dist/cjs/post-purchase/product/components/product-offer/components/ProductOffer.js +53 -0
- package/dist/cjs/post-purchase/product/components/product-offer/components/ProductOfferItem.js +45 -0
- package/dist/cjs/post-purchase/product/components/product-offer/hooks/useProductOfferData.js +57 -0
- package/dist/cjs/post-purchase/product/hooks/product-image/useListCarousel.js +6 -2
- package/dist/cjs/post-purchase/product/index.js +2 -2
- package/dist/cjs/post-purchase/product/next.js +1 -1
- package/dist/cjs/post-purchase/product/settings/product-image/setting-v2.js +5 -5
- package/dist/cjs/post-purchase/product/settings/product-image/uiV2.js +2 -1
- package/dist/cjs/post-purchase/product/settings/{ProductOffer.js → product-offer/index.js} +23 -143
- package/dist/cjs/post-purchase/product/settings/product-offer/ui/uiV1.js +140 -0
- package/dist/cjs/post-purchase/product/settings/product-offer/ui/uiV2.js +141 -0
- package/dist/cjs/post-purchase/utils/constants.js +6 -0
- package/dist/cjs/product/components/ProductViewMore/ProductViewMore.js +17 -18
- package/dist/cjs/product/components/ProductViewMore/ProductViewMore.liquid.js +14 -21
- package/dist/cjs/product/components/ProductViewMore/common/data.js +26 -0
- package/dist/cjs/product/components/ProductViewMore/common/styles.js +12 -0
- package/dist/cjs/product/setting/dynamic-checkout/configs/settings.js +9 -5
- package/dist/cjs/product/setting/dynamic-checkout/configs/uiV2.js +10 -10
- package/dist/cjs/product/setting/product-button/configs/settings.js +1 -0
- package/dist/cjs/product/setting/product-button/configs/uiV2.js +1 -1
- package/dist/cjs/product/setting/product-view-more/configs/settings.js +17 -16
- package/dist/cjs/product/setting/product-view-more/configs/uiV2.js +45 -45
- package/dist/esm/article/components/ArticleAuthor.liquid.js +23 -0
- package/dist/esm/article/components/ArticleCategory.liquid.js +23 -0
- package/dist/esm/article/components/ArticleContent.liquid.js +38 -0
- package/dist/esm/article/components/ArticleDate.liquid.js +31 -0
- package/dist/esm/article/components/ArticleExcerpt.liquid.js +22 -0
- package/dist/esm/article/components/ArticleImage.liquid.js +63 -0
- package/dist/esm/article/components/ArticlePagination.liquid.js +13 -0
- package/dist/esm/article/components/ArticleReadMore.liquid.js +54 -0
- package/dist/esm/article/components/ArticleTag.liquid.js +23 -0
- package/dist/esm/article/components/ArticleTitle.liquid.js +42 -0
- package/dist/esm/builder.js +1 -1
- package/dist/esm/button/components/Button.js +5 -3
- package/dist/esm/button/components/Button.liquid.js +7 -3
- package/dist/esm/button/components/common/attributes.js +1 -2
- package/dist/esm/button/components/common/helpers.js +2 -2
- package/dist/esm/button/components/common/styles.js +29 -3
- package/dist/esm/button/setting/configs/settings.js +24 -4
- package/dist/esm/button/setting/configs/uiV2.js +46 -8
- package/dist/esm/form/setting/newsletter/configs/settings.js +2 -2
- package/dist/esm/form/setting/newsletter/configs/uiV2.js +0 -44
- package/dist/esm/image/setting/configs/uiV2.js +5 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/index.liquid.js +10 -0
- package/dist/esm/post-purchase/callout-banner/setting/config/callout-text/setting.js +4 -3
- package/dist/esm/post-purchase/image/common/getClasses.js +1 -4
- package/dist/esm/post-purchase/product/common/getClasses.js +4 -5
- package/dist/esm/post-purchase/product/components/product-image/carousel-post-purchase/CarouselPostPurchase.js +3 -2
- package/dist/esm/post-purchase/product/components/product-image/carousel-post-purchase/CarouselWrapperPostPurchase.js +2 -1
- package/dist/esm/post-purchase/product/components/product-offer/common/attrs.js +12 -0
- package/dist/esm/post-purchase/product/components/product-offer/common/classes.js +25 -0
- package/dist/esm/post-purchase/product/components/product-offer/common/styles.js +24 -0
- package/dist/esm/post-purchase/product/components/product-offer/components/ProductOffer.js +49 -0
- package/dist/esm/post-purchase/product/components/product-offer/components/ProductOfferItem.js +43 -0
- package/dist/esm/post-purchase/product/components/product-offer/hooks/useProductOfferData.js +55 -0
- package/dist/esm/post-purchase/product/hooks/product-image/useListCarousel.js +6 -2
- package/dist/esm/post-purchase/product/index.js +1 -1
- package/dist/esm/post-purchase/product/next.js +1 -1
- package/dist/esm/post-purchase/product/settings/product-image/setting-v2.js +5 -5
- package/dist/esm/post-purchase/product/settings/product-image/uiV2.js +2 -1
- package/dist/esm/post-purchase/product/settings/{ProductOffer.js → product-offer/index.js} +23 -143
- package/dist/esm/post-purchase/product/settings/product-offer/ui/uiV1.js +138 -0
- package/dist/esm/post-purchase/product/settings/product-offer/ui/uiV2.js +139 -0
- package/dist/esm/post-purchase/utils/constants.js +6 -1
- package/dist/esm/product/components/ProductViewMore/ProductViewMore.js +17 -18
- package/dist/esm/product/components/ProductViewMore/ProductViewMore.liquid.js +14 -21
- package/dist/esm/product/components/ProductViewMore/common/data.js +23 -0
- package/dist/esm/product/components/ProductViewMore/common/styles.js +10 -0
- package/dist/esm/product/setting/dynamic-checkout/configs/settings.js +9 -5
- package/dist/esm/product/setting/dynamic-checkout/configs/uiV2.js +10 -10
- package/dist/esm/product/setting/product-button/configs/settings.js +1 -0
- package/dist/esm/product/setting/product-button/configs/uiV2.js +1 -1
- package/dist/esm/product/setting/product-view-more/configs/settings.js +17 -16
- package/dist/esm/product/setting/product-view-more/configs/uiV2.js +45 -45
- package/dist/types/index.d.ts +82 -18
- package/package.json +2 -2
- package/dist/cjs/post-purchase/product/components/ProductOffer.js +0 -138
- package/dist/esm/post-purchase/product/components/ProductOffer.js +0 -133
package/dist/types/index.d.ts
CHANGED
|
@@ -283,6 +283,7 @@ type ButtonProps = MixedProps$3 & BasePropsWrap<{
|
|
|
283
283
|
shouldClearSpace?: boolean;
|
|
284
284
|
iconAlign?: 'left' | 'right';
|
|
285
285
|
htmlType?: React.ButtonHTMLAttributes<HTMLButtonElement>['type'] | 'link';
|
|
286
|
+
enableBtnLink?: boolean;
|
|
286
287
|
btnLink?: {
|
|
287
288
|
type?: string;
|
|
288
289
|
link?: string;
|
|
@@ -308,6 +309,7 @@ type ButtonProps = MixedProps$3 & BasePropsWrap<{
|
|
|
308
309
|
animation?: StateProp<'none' | 'pulse' | 'grow' | 'bounce'>;
|
|
309
310
|
backgroundColorV2?: ObjectDevices$1<StateProp<ColorValueType$1>>;
|
|
310
311
|
backgroundImage?: ObjectDevices$1<StateProp<BackgroundImageValue>>;
|
|
312
|
+
enableTextStyle?: boolean;
|
|
311
313
|
/**
|
|
312
314
|
* @deprecated please use `typo` instead
|
|
313
315
|
*/
|
|
@@ -434,13 +436,13 @@ type ArticleReadMoreProps = BasePropsWrap<ArticleReadMoreSetting, ArticleReadMor
|
|
|
434
436
|
|
|
435
437
|
declare const ArticleList$1: React.FC<ArticleListProps>;
|
|
436
438
|
|
|
437
|
-
declare const ArticleTitle: React.FC<ArticleTitleProps>;
|
|
439
|
+
declare const ArticleTitle$1: React.FC<ArticleTitleProps>;
|
|
438
440
|
|
|
439
|
-
declare const ArticleExcerpt: React.FC<ArticleExcerptProps>;
|
|
441
|
+
declare const ArticleExcerpt$1: React.FC<ArticleExcerptProps>;
|
|
440
442
|
|
|
441
|
-
declare const ArticleContent: React.FC<ArticleContentProps>;
|
|
443
|
+
declare const ArticleContent$1: React.FC<ArticleContentProps>;
|
|
442
444
|
|
|
443
|
-
declare const ArticleImage: React.FC<ArticleImageProps>;
|
|
445
|
+
declare const ArticleImage$1: React.FC<ArticleImageProps>;
|
|
444
446
|
|
|
445
447
|
type CollectionTitleProps = BaseProps<{
|
|
446
448
|
htmlTag?: React.ElementType;
|
|
@@ -656,17 +658,17 @@ declare const collectionSetting: {
|
|
|
656
658
|
CollectionPaginator: _gem_sdk_core.ComponentSetting<CollectionPaginatorProps>;
|
|
657
659
|
};
|
|
658
660
|
|
|
659
|
-
declare const ArticlePagination: React.FC<CollectionPaginatorProps>;
|
|
661
|
+
declare const ArticlePagination$1: React.FC<CollectionPaginatorProps>;
|
|
660
662
|
|
|
661
|
-
declare const ArticleAuthor: React.FC<ArticleAuthorProps>;
|
|
663
|
+
declare const ArticleAuthor$1: React.FC<ArticleAuthorProps>;
|
|
662
664
|
|
|
663
|
-
declare const ArticleTag: React.FC<ArticleTagProps>;
|
|
665
|
+
declare const ArticleTag$1: React.FC<ArticleTagProps>;
|
|
664
666
|
|
|
665
|
-
declare const ArticleCategory: React.FC<ArticleCategoryProps>;
|
|
667
|
+
declare const ArticleCategory$1: React.FC<ArticleCategoryProps>;
|
|
666
668
|
|
|
667
|
-
declare const ArticleDate: React.FC<ArticleDateProps>;
|
|
669
|
+
declare const ArticleDate$1: React.FC<ArticleDateProps>;
|
|
668
670
|
|
|
669
|
-
declare const ArticleReadMore: React.FC<ArticleReadMoreProps>;
|
|
671
|
+
declare const ArticleReadMore$1: React.FC<ArticleReadMoreProps>;
|
|
670
672
|
|
|
671
673
|
declare const articleListSetting: {
|
|
672
674
|
ArticleList: _gem_sdk_core.ComponentSetting<ArticleListProps>;
|
|
@@ -2435,6 +2437,25 @@ type PreVariantSelected = Record<string, {
|
|
|
2435
2437
|
variantId: string;
|
|
2436
2438
|
optionSelected: Record<string, string>;
|
|
2437
2439
|
}>;
|
|
2440
|
+
type ProductOfferSettings$1 = Omit<ProductSetting, 'productSetting'> & {
|
|
2441
|
+
productSetting?: {
|
|
2442
|
+
productIds?: string[];
|
|
2443
|
+
};
|
|
2444
|
+
productOfferLayout: ObjectDevices$1<'1col' | '2col'>;
|
|
2445
|
+
dynamicOfferQuantity?: number;
|
|
2446
|
+
discountAndShippingFee?: boolean;
|
|
2447
|
+
variantSelected?: PreVariantSelected;
|
|
2448
|
+
};
|
|
2449
|
+
type ProductOfferStyles$1 = RowProps['styles'] & {
|
|
2450
|
+
productOfferColumnGap?: ObjectDevices$1<string>;
|
|
2451
|
+
productOfferVerticalGutter?: string;
|
|
2452
|
+
productOfferFullWidth?: ObjectDevices$1<boolean>;
|
|
2453
|
+
productOfferWidth?: ObjectDevices$1<string>;
|
|
2454
|
+
};
|
|
2455
|
+
type PostPurchaseProductOfferProps$1 = BasePropsWrap<ProductOfferSettings$1, ProductOfferStyles$1> & {
|
|
2456
|
+
children: React.ReactNode;
|
|
2457
|
+
};
|
|
2458
|
+
|
|
2438
2459
|
type ProductOfferSettings = Omit<ProductSetting, 'productSetting'> & {
|
|
2439
2460
|
productSetting?: {
|
|
2440
2461
|
productIds?: string[];
|
|
@@ -2454,6 +2475,8 @@ type PostPurchaseProductOfferProps = BasePropsWrap<ProductOfferSettings, Product
|
|
|
2454
2475
|
children: React.ReactNode;
|
|
2455
2476
|
};
|
|
2456
2477
|
|
|
2478
|
+
declare const PostPurchaseProductOffer: React.FC<PostPurchaseProductOfferProps>;
|
|
2479
|
+
|
|
2457
2480
|
type Spacing = 'none' | 'xtight' | 'tight' | 'loose' | 'xloose' | undefined;
|
|
2458
2481
|
|
|
2459
2482
|
type PostPurchaseProductVariantSettings = {
|
|
@@ -2714,8 +2737,6 @@ declare const PostPurchaseAcceptButton: (props: PostPurchaseButtonProps) => Reac
|
|
|
2714
2737
|
|
|
2715
2738
|
declare const PostPurchaseProductQuantity: React.FC<PostPurchaseProductQuantityProps>;
|
|
2716
2739
|
|
|
2717
|
-
declare const PostPurchaseProductOffer: React.FC<PostPurchaseProductOfferProps>;
|
|
2718
|
-
|
|
2719
2740
|
declare const PostPurchaseProductPriceBreakdown: React.FC<PostPurchaseProductPriceBreakdownProps>;
|
|
2720
2741
|
|
|
2721
2742
|
type Styles = {
|
|
@@ -3628,7 +3649,7 @@ type SkuProps = BaseProps<TextProps['setting'] & {
|
|
|
3628
3649
|
type Setting$1 = {
|
|
3629
3650
|
label?: string;
|
|
3630
3651
|
translate?: string;
|
|
3631
|
-
|
|
3652
|
+
redirectNewTab?: boolean;
|
|
3632
3653
|
} & Pick<NonNullable<ButtonProps['setting']>, 'iconAlign' | 'iconSvg' | 'iconVisible' | 'shouldClearSpace'>;
|
|
3633
3654
|
type Style$1 = ButtonProps['styles'];
|
|
3634
3655
|
type ProductViewMoreProps = BasePropsWrap<Setting$1, Style$1> & {
|
|
@@ -3900,7 +3921,7 @@ declare const ProductVendor$1: React.FC<VendorProps>;
|
|
|
3900
3921
|
|
|
3901
3922
|
declare const ProductSku$1: React.FC<SkuProps>;
|
|
3902
3923
|
|
|
3903
|
-
declare const ProductViewMore$1: ({
|
|
3924
|
+
declare const ProductViewMore$1: ({ style, styles, setting, advanced, builderProps, builderAttrs, children, }: ProductViewMoreProps) => React.JSX.Element;
|
|
3904
3925
|
|
|
3905
3926
|
declare const ProductBadge$1: React.FC<ProductBadgeProps>;
|
|
3906
3927
|
|
|
@@ -5768,6 +5789,26 @@ declare const AccordionItem: (props: LiquidAccordionItemProps) => string;
|
|
|
5768
5789
|
|
|
5769
5790
|
declare const ArticleList: ({ setting, styles, className, children, advanced, builderProps, }: ArticleListProps) => string;
|
|
5770
5791
|
|
|
5792
|
+
declare const ArticleTitle: ({ setting, styles, advanced, builderProps }: ArticleTitleProps) => string;
|
|
5793
|
+
|
|
5794
|
+
declare const ArticleExcerpt: ({ setting, styles, advanced, builderProps }: ArticleTitleProps) => string;
|
|
5795
|
+
|
|
5796
|
+
declare const ArticleContent: ({ styles, builderProps }: ArticleTitleProps) => string;
|
|
5797
|
+
|
|
5798
|
+
declare const ArticleImage: (props: ArticleImageProps) => string;
|
|
5799
|
+
|
|
5800
|
+
declare const ArticlePagination: (props: CollectionPaginatorProps) => string;
|
|
5801
|
+
|
|
5802
|
+
declare const ArticleAuthor: ({ setting, styles, advanced, builderProps }: ArticleAuthorProps) => string;
|
|
5803
|
+
|
|
5804
|
+
declare const ArticleTag: ({ setting, styles, advanced, builderProps }: ArticleTagProps) => string;
|
|
5805
|
+
|
|
5806
|
+
declare const ArticleCategory: ({ setting, styles, advanced, builderProps }: ArticleTagProps) => string;
|
|
5807
|
+
|
|
5808
|
+
declare const ArticleDate: ({ setting, styles, advanced, builderProps }: ArticleDateProps) => string;
|
|
5809
|
+
|
|
5810
|
+
declare const ArticleReadMore: ({ setting, styles, builderAttrs, builderProps, advanced, style, }: ArticleReadMoreProps) => string;
|
|
5811
|
+
|
|
5771
5812
|
declare const HeroBanner: (props: HeroBannerProps) => string;
|
|
5772
5813
|
|
|
5773
5814
|
declare const Breadcrumb: ({ setting, builderAttrs, style, styles, className, builderProps, }: BreadcrumbProps) => string;
|
|
@@ -5916,6 +5957,7 @@ declare const SubmitButton: ({ setting, builderProps, builderAttrs, style, style
|
|
|
5916
5957
|
animation?: Partial<Record<_gem_sdk_core.StateType, "none" | "pulse" | "grow" | "bounce">> | undefined;
|
|
5917
5958
|
backgroundColorV2?: Partial<Record<_gem_sdk_core.NameDevices, Partial<Record<_gem_sdk_core.StateType, _gem_sdk_core.ColorValueType>>>> | undefined;
|
|
5918
5959
|
backgroundImage?: Partial<Record<_gem_sdk_core.NameDevices, Partial<Record<_gem_sdk_core.StateType, _gem_sdk_core.BackgroundImageValue>>>> | undefined;
|
|
5960
|
+
enableTextStyle?: boolean | undefined;
|
|
5919
5961
|
typography?: _gem_sdk_core.TypographySetting | undefined;
|
|
5920
5962
|
transform?: string | undefined;
|
|
5921
5963
|
iconSizeAuto?: boolean | undefined;
|
|
@@ -6281,10 +6323,10 @@ declare const ProductProperties: ({ setting, styles, builderProps, advanced, pag
|
|
|
6281
6323
|
|
|
6282
6324
|
declare const ProductTitle: (props: ProductTitleProps) => string;
|
|
6283
6325
|
|
|
6284
|
-
declare const ProductViewMore: ({
|
|
6326
|
+
declare const ProductViewMore: ({ style, styles, setting, advanced, builderProps, builderAttrs, pageContext, }: _gem_sdk_core.BaseProps<{
|
|
6285
6327
|
label?: string | undefined;
|
|
6286
6328
|
translate?: string | undefined;
|
|
6287
|
-
|
|
6329
|
+
redirectNewTab?: boolean | undefined;
|
|
6288
6330
|
} & Pick<{
|
|
6289
6331
|
iconSvg?: string | undefined;
|
|
6290
6332
|
loading?: boolean | undefined;
|
|
@@ -6297,6 +6339,7 @@ declare const ProductViewMore: ({ setting, builderProps, builderAttrs, style, st
|
|
|
6297
6339
|
shouldClearSpace?: boolean | undefined;
|
|
6298
6340
|
iconAlign?: "left" | "right" | undefined;
|
|
6299
6341
|
htmlType?: "button" | "reset" | "link" | "submit" | undefined;
|
|
6342
|
+
enableBtnLink?: boolean | undefined;
|
|
6300
6343
|
btnLink?: {
|
|
6301
6344
|
type?: string | undefined;
|
|
6302
6345
|
link?: string | undefined;
|
|
@@ -6322,6 +6365,7 @@ declare const ProductViewMore: ({ setting, builderProps, builderAttrs, style, st
|
|
|
6322
6365
|
animation?: Partial<Record<_gem_sdk_core.StateType, "none" | "pulse" | "grow" | "bounce">> | undefined;
|
|
6323
6366
|
backgroundColorV2?: Partial<Record<_gem_sdk_core.NameDevices, Partial<Record<_gem_sdk_core.StateType, _gem_sdk_core.ColorValueType>>>> | undefined;
|
|
6324
6367
|
backgroundImage?: Partial<Record<_gem_sdk_core.NameDevices, Partial<Record<_gem_sdk_core.StateType, _gem_sdk_core.BackgroundImageValue>>>> | undefined;
|
|
6368
|
+
enableTextStyle?: boolean | undefined;
|
|
6325
6369
|
typography?: _gem_sdk_core.TypographySetting | undefined;
|
|
6326
6370
|
transform?: string | undefined;
|
|
6327
6371
|
iconSizeAuto?: boolean | undefined;
|
|
@@ -6598,7 +6642,17 @@ declare const index_liquid_AliReviews: typeof AliReviews;
|
|
|
6598
6642
|
declare const index_liquid_AlsoBoughtCbb: typeof AlsoBoughtCbb;
|
|
6599
6643
|
declare const index_liquid_AppointmentBookingCowlendar: typeof AppointmentBookingCowlendar;
|
|
6600
6644
|
declare const index_liquid_AppstleSubscriptions: typeof AppstleSubscriptions;
|
|
6645
|
+
declare const index_liquid_ArticleAuthor: typeof ArticleAuthor;
|
|
6646
|
+
declare const index_liquid_ArticleCategory: typeof ArticleCategory;
|
|
6647
|
+
declare const index_liquid_ArticleContent: typeof ArticleContent;
|
|
6648
|
+
declare const index_liquid_ArticleDate: typeof ArticleDate;
|
|
6649
|
+
declare const index_liquid_ArticleExcerpt: typeof ArticleExcerpt;
|
|
6650
|
+
declare const index_liquid_ArticleImage: typeof ArticleImage;
|
|
6601
6651
|
declare const index_liquid_ArticleList: typeof ArticleList;
|
|
6652
|
+
declare const index_liquid_ArticlePagination: typeof ArticlePagination;
|
|
6653
|
+
declare const index_liquid_ArticleReadMore: typeof ArticleReadMore;
|
|
6654
|
+
declare const index_liquid_ArticleTag: typeof ArticleTag;
|
|
6655
|
+
declare const index_liquid_ArticleTitle: typeof ArticleTitle;
|
|
6602
6656
|
declare const index_liquid_BestBuyFulfillment: typeof BestBuyFulfillment;
|
|
6603
6657
|
declare const index_liquid_BfSizeChartSizeGuide: typeof BfSizeChartSizeGuide;
|
|
6604
6658
|
declare const index_liquid_BirdChime: typeof BirdChime;
|
|
@@ -6778,7 +6832,17 @@ declare namespace index_liquid {
|
|
|
6778
6832
|
index_liquid_AlsoBoughtCbb as AlsoBoughtCbb,
|
|
6779
6833
|
index_liquid_AppointmentBookingCowlendar as AppointmentBookingCowlendar,
|
|
6780
6834
|
index_liquid_AppstleSubscriptions as AppstleSubscriptions,
|
|
6835
|
+
index_liquid_ArticleAuthor as ArticleAuthor,
|
|
6836
|
+
index_liquid_ArticleCategory as ArticleCategory,
|
|
6837
|
+
index_liquid_ArticleContent as ArticleContent,
|
|
6838
|
+
index_liquid_ArticleDate as ArticleDate,
|
|
6839
|
+
index_liquid_ArticleExcerpt as ArticleExcerpt,
|
|
6840
|
+
index_liquid_ArticleImage as ArticleImage,
|
|
6781
6841
|
index_liquid_ArticleList as ArticleList,
|
|
6842
|
+
index_liquid_ArticlePagination as ArticlePagination,
|
|
6843
|
+
index_liquid_ArticleReadMore as ArticleReadMore,
|
|
6844
|
+
index_liquid_ArticleTag as ArticleTag,
|
|
6845
|
+
index_liquid_ArticleTitle as ArticleTitle,
|
|
6782
6846
|
index_liquid_BestBuyFulfillment as BestBuyFulfillment,
|
|
6783
6847
|
index_liquid_BfSizeChartSizeGuide as BfSizeChartSizeGuide,
|
|
6784
6848
|
index_liquid_BirdChime as BirdChime,
|
|
@@ -7290,7 +7354,7 @@ declare const _default$1: {
|
|
|
7290
7354
|
Sticky: React.FC<StickyProps>;
|
|
7291
7355
|
ProductVendor: React.FC<VendorProps>;
|
|
7292
7356
|
KingProductOptions: React.FC<KingProductOptionsProps>;
|
|
7293
|
-
ProductViewMore: ({
|
|
7357
|
+
ProductViewMore: ({ style, styles, setting, advanced, builderProps, builderAttrs, children, }: ProductViewMoreProps) => React.JSX.Element;
|
|
7294
7358
|
ProductBadge: React.FC<ProductBadgeProps>;
|
|
7295
7359
|
HextomCountdownTimerBar: React.FC<HextomCountdownTimerBarProps>;
|
|
7296
7360
|
TrustBadgesBear: React.FC<TrustBadgesBearProps>;
|
|
@@ -7608,4 +7672,4 @@ declare function filterTruthyObject<T extends Record<string, any>>(obj: T): Part
|
|
|
7608
7672
|
declare const getDisplayStyle: (fnCondition: (params: NameDevices$1) => boolean, defaultValue: string) => any;
|
|
7609
7673
|
declare const convertUnitToNumber: (value: string | undefined | number, defaultValue: number) => number;
|
|
7610
7674
|
|
|
7611
|
-
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, ArticleCategory, ArticleContent, ArticleDate, ArticleExcerpt, ArticleImage, ArticleList$1 as ArticleList, ArticlePagination, ArticleReadMore, ArticleTag, ArticleTitle, 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$2 as Button, ButtonProps, CSSCode$1 as CSSCode, CSSCodeProps, CalloutBoxProps, CalloutTextProps, 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, EcoboostifyShoppableReelUgc$1 as EcoboostifyShoppableReelUgc, EcoboostifyShoppableReelUgcProps, EssentialAnnouncementBar$1 as EssentialAnnouncementBar, EssentialAnnouncementBarProps, EssentialCountdownTimerBar$1 as EssentialCountdownTimerBar, EssentialCountdownTimerBarProps, 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$1 as IconListItemProps, IconListProps$1 as IconListProps, IconListV2$1 as IconListV2, IconProps, Image$1 as Image, ImageComparison$1 as ImageComparison, ImageComparisonItem, ImageDetection, ImageDetectionProps, ImageProps, ImgProps, InfiniteOptions$1 as InfiniteOptions, InfiniteOptionsProps, Input, InputProps, Instafeed$1 as Instafeed, InstafeedProps, InstantJudgemeReviews, InstantKlaviyo, InstantLooxReviews, InstantYotpoLoyalty, 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, Link$1 as Link, 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, Notify as Notice, NotificationAPI, NotificationConfig, NotifyBackInStockPreOrder$1 as NotifyBackInStockPreOrder, NotifyBackInStockPreOrderProps, ObjectFit$1 as ObjectFit, 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, PostPurchaseAdvancedList, PostPurchaseAdvancedListItem, PostPurchaseAdvancedListProps, Button$1 as PostPurchaseButton, PostPurchaseButtonProps, CalloutBox as PostPurchaseCalloutBox, CalloutText as PostPurchaseCalloutText, PostPurchaseCountdownTimer, PostPurchaseCountdownTimerProps, 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, ProductBundleDiscountProps, ProductBundleItemDiscountProps, ProductButton$1 as ProductButton, ProductButtonProps, ProductDescription$1 as ProductDescription, ProductDescriptionProps, ProductImages$2 as ProductImages, ProductImagesProps, ProductImagesV2, ProductList$1 as ProductList, 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, 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, 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$2 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, 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, StockCounter$1 as StockCounter, 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, TextField$1 as TextField, TextFieldProps, TextInput$1 as TextInput, TextInputProps, 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, accordionSetting, articleListSetting, bannerSetting, breadcrumbSetting, _default$1 as builderComponent, buttonSetting, carouselSetting, cartSetting, codeSetting, collectionSetting, _default as componentSettings, contactFormSetting, convertUnitToNumber, countdownSetting, couponSetting, dialogSetting, estimateDeliverySetting, filterTruthyObject, filterTruthyStyles, getDisplayStyle, getDynamicSourceLocales, getInsertLinkData, getLinkData, getSettingPreloadData, getStaticLocale, gridSetting, headerSetting, headingSetting, iconListHozSetting, iconListSetting, iconListSettingV2, iconSetting, imageComparisonSetting, imageDetectionSetting, imageSetting, inputSetting, isHexTransparent, isTransparentColor, isTransparentRGBA, lineSetting, linkSetting, index_liquid as liquidComponents, marqueeSetting, menuSetting, modalSetting, _default$2 as nextComponent, openConfirm, paginationSetting, postPurchaseAdvancedListSetting, postPurchaseButtonSetting, postPurchaseCalloutBoxSetting, postPurchaseCountdownTimerSetting, postPurchaseImageSetting, postPurchaseLineSetting, postPurchaseLinkSetting, postPurchaseProduct1Col, postPurchaseProduct2Col, postPurchaseProductDefault, postPurchaseProductSetting, postPurchaseTextSetting, productSetting, radioSetting, replaceLinkData, selectSetting, shopPayInstallmentSetting, stickySetting, stockCounterSetting, tabSetting, textSetting, textareaSetting, thirdPartyInstantSetting, thirdPartySetting, thirdPartySlotSetting, useInView, useNotification, videoSetting, youtubeShortsRegex };
|
|
7675
|
+
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, 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$2 as Button, ButtonProps, CSSCode$1 as CSSCode, CSSCodeProps, CalloutBoxProps, CalloutTextProps, 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, EcoboostifyShoppableReelUgc$1 as EcoboostifyShoppableReelUgc, EcoboostifyShoppableReelUgcProps, EssentialAnnouncementBar$1 as EssentialAnnouncementBar, EssentialAnnouncementBarProps, EssentialCountdownTimerBar$1 as EssentialCountdownTimerBar, EssentialCountdownTimerBarProps, 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$1 as IconListItemProps, IconListProps$1 as IconListProps, IconListV2$1 as IconListV2, IconProps, Image$1 as Image, ImageComparison$1 as ImageComparison, ImageComparisonItem, ImageDetection, ImageDetectionProps, ImageProps, ImgProps, InfiniteOptions$1 as InfiniteOptions, InfiniteOptionsProps, Input, InputProps, Instafeed$1 as Instafeed, InstafeedProps, InstantJudgemeReviews, InstantKlaviyo, InstantLooxReviews, InstantYotpoLoyalty, 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, Link$1 as Link, 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, Notify as Notice, NotificationAPI, NotificationConfig, NotifyBackInStockPreOrder$1 as NotifyBackInStockPreOrder, NotifyBackInStockPreOrderProps, ObjectFit$1 as ObjectFit, 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, PostPurchaseAdvancedList, PostPurchaseAdvancedListItem, PostPurchaseAdvancedListProps, Button$1 as PostPurchaseButton, PostPurchaseButtonProps, CalloutBox as PostPurchaseCalloutBox, CalloutText as PostPurchaseCalloutText, PostPurchaseCountdownTimer, PostPurchaseCountdownTimerProps, PostPurchaseHeading, PostPurchaseImage, PostPurchaseImageProps, Line$1 as PostPurchaseLine, PostPurchaseLineProps, Link as PostPurchaseLink, PostPurchaseLinkProps, PostPurchaseProductDescription, PostPurchaseProductDescriptionProps, PostPurchaseProductDiscountTag, PostPurchaseProductDiscountTagProps, PostPurchaseProductImages, PostPurchaseProductImagesProps, PostPurchaseProductOffer, PostPurchaseProductOfferProps$1 as 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, ProductBundleDiscountProps, ProductBundleItemDiscountProps, ProductButton$1 as ProductButton, ProductButtonProps, ProductDescription$1 as ProductDescription, ProductDescriptionProps, ProductImages$2 as ProductImages, ProductImagesProps, ProductImagesV2, ProductList$1 as ProductList, 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, 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, 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$2 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, 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, StockCounter$1 as StockCounter, 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, TextField$1 as TextField, TextFieldProps, TextInput$1 as TextInput, TextInputProps, 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, accordionSetting, articleListSetting, bannerSetting, breadcrumbSetting, _default$1 as builderComponent, buttonSetting, carouselSetting, cartSetting, codeSetting, collectionSetting, _default as componentSettings, contactFormSetting, convertUnitToNumber, countdownSetting, couponSetting, dialogSetting, estimateDeliverySetting, filterTruthyObject, filterTruthyStyles, getDisplayStyle, getDynamicSourceLocales, getInsertLinkData, getLinkData, getSettingPreloadData, getStaticLocale, gridSetting, headerSetting, headingSetting, iconListHozSetting, iconListSetting, iconListSettingV2, iconSetting, imageComparisonSetting, imageDetectionSetting, imageSetting, inputSetting, isHexTransparent, isTransparentColor, isTransparentRGBA, lineSetting, linkSetting, index_liquid as liquidComponents, marqueeSetting, menuSetting, modalSetting, _default$2 as nextComponent, openConfirm, paginationSetting, postPurchaseAdvancedListSetting, postPurchaseButtonSetting, postPurchaseCalloutBoxSetting, postPurchaseCountdownTimerSetting, postPurchaseImageSetting, postPurchaseLineSetting, postPurchaseLinkSetting, postPurchaseProduct1Col, postPurchaseProduct2Col, postPurchaseProductDefault, postPurchaseProductSetting, postPurchaseTextSetting, productSetting, radioSetting, replaceLinkData, selectSetting, shopPayInstallmentSetting, stickySetting, stockCounterSetting, tabSetting, textSetting, textareaSetting, thirdPartyInstantSetting, thirdPartySetting, thirdPartySlotSetting, useInView, useNotification, videoSetting, youtubeShortsRegex };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gem-sdk/components",
|
|
3
|
-
"version": "2.0.0-dev.
|
|
3
|
+
"version": "2.0.0-dev.356",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"main": "dist/cjs/index.js",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"relationship": "rollup -c ./scripts/rollup.config.settings.mjs && node ./scripts/get-control-relationship.js && node ./scripts/get-element-relationship.js"
|
|
23
23
|
},
|
|
24
24
|
"devDependencies": {
|
|
25
|
-
"@gem-sdk/core": "2.0.0-dev.
|
|
25
|
+
"@gem-sdk/core": "2.0.0-dev.356",
|
|
26
26
|
"@gem-sdk/styles": "2.0.0-dev.324",
|
|
27
27
|
"@gem-sdk/system": "2.0.0-dev.324",
|
|
28
28
|
"@types/react-transition-group": "^4.4.5"
|
|
@@ -1,138 +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 Row = require('../../../grid/row/Row.js');
|
|
9
|
-
var Loading = require('../../../common/components/Loading.js');
|
|
10
|
-
var React = require('react');
|
|
11
|
-
var ChildrenDroppable = require('../../../grid/components/ChildrenDroppable.js');
|
|
12
|
-
require('@gem-sdk/system');
|
|
13
|
-
var helper = require('../../utils/helper.js');
|
|
14
|
-
var index = require('../helpers/index.js');
|
|
15
|
-
var ProductOfferPlaceholder = require('../constants/ProductOfferPlaceholder.js');
|
|
16
|
-
var useDynamicProduct = require('../hooks/useDynamicProduct.js');
|
|
17
|
-
|
|
18
|
-
const DEVICES = [
|
|
19
|
-
'desktop',
|
|
20
|
-
'tablet',
|
|
21
|
-
'mobile'
|
|
22
|
-
];
|
|
23
|
-
const PostPurchaseProductOffer = ({ styles, builderAttrs, builderProps, children, setting })=>{
|
|
24
|
-
const mode = core.useEditorMode();
|
|
25
|
-
const { productSetting, productOfferLayout, inlineAlignment, variantSelected, discountAndShippingFee, ...rowSetting } = setting ?? {};
|
|
26
|
-
const { productOfferColumnGap, productOfferVerticalGutter, productOfferWidth, ...rowStyles } = styles ?? {};
|
|
27
|
-
const productOffers = core.usePageStore((s)=>s.productOffers);
|
|
28
|
-
const publicStoreFrontData = core.usePageStore((s)=>s.publicStoreFrontData);
|
|
29
|
-
const { isDynamicProduct } = useDynamicProduct.useDynamicProduct();
|
|
30
|
-
const dynamicDiscountOffer = core.usePageStore((s)=>s.dynamicDiscountOffer);
|
|
31
|
-
const totalProduct = React.useMemo(()=>isDynamicProduct ? dynamicDiscountOffer?.appliedProductCount : productOffers?.length, [
|
|
32
|
-
dynamicDiscountOffer?.appliedProductCount,
|
|
33
|
-
isDynamicProduct,
|
|
34
|
-
productOffers?.length
|
|
35
|
-
]);
|
|
36
|
-
const sortedProductBaseIDs = React.useMemo(()=>{
|
|
37
|
-
return productOffers?.sort((a, b)=>{
|
|
38
|
-
if (a?.node?.position && b?.node?.position) {
|
|
39
|
-
return a.node.position - b.node.position;
|
|
40
|
-
}
|
|
41
|
-
return 0;
|
|
42
|
-
}).map((item)=>item?.node?.objectBaseID).filter(Boolean);
|
|
43
|
-
}, [
|
|
44
|
-
productOffers
|
|
45
|
-
]);
|
|
46
|
-
const productData = core.useProductsQuery(sortedProductBaseIDs || [], {
|
|
47
|
-
revalidateOnMount: true
|
|
48
|
-
}, {
|
|
49
|
-
allStatus: true,
|
|
50
|
-
fetcher: index.hasPublicStoreFrontData(publicStoreFrontData) ? index.createStoreFrontFetcher(publicStoreFrontData) : undefined
|
|
51
|
-
});
|
|
52
|
-
const isLoading = React.useMemo(()=>productData.isLoading || productData.isValidating, [
|
|
53
|
-
productData.isLoading,
|
|
54
|
-
productData.isValidating
|
|
55
|
-
]);
|
|
56
|
-
const products = React.useMemo(()=>core.flattenConnection(productData.data?.products), [
|
|
57
|
-
productData.data?.products
|
|
58
|
-
]);
|
|
59
|
-
const productSortedById = React.useMemo(()=>{
|
|
60
|
-
return isDynamicProduct && dynamicDiscountOffer?.appliedProductCount ? Array(dynamicDiscountOffer.appliedProductCount).fill(ProductOfferPlaceholder.productOfferPlaceholder) : sortedProductBaseIDs?.map((id)=>products?.find((el)=>el?.baseID === id)).filter(Boolean);
|
|
61
|
-
}, [
|
|
62
|
-
isDynamicProduct,
|
|
63
|
-
dynamicDiscountOffer?.appliedProductCount,
|
|
64
|
-
sortedProductBaseIDs,
|
|
65
|
-
products
|
|
66
|
-
]);
|
|
67
|
-
const getStyles = ()=>{
|
|
68
|
-
return {
|
|
69
|
-
...core.makeStyleResponsive('cg', productOfferColumnGap),
|
|
70
|
-
...core.makeStyleResponsive('rg', {
|
|
71
|
-
desktop: helper.postPurchaseViewSpacing[productOfferVerticalGutter || 'base']
|
|
72
|
-
}),
|
|
73
|
-
...core.makeStyleResponsive('w', core.makeWidth(productOfferWidth))
|
|
74
|
-
};
|
|
75
|
-
};
|
|
76
|
-
const getClassNameForItem = (index)=>{
|
|
77
|
-
let className = '';
|
|
78
|
-
DEVICES.map((device)=>{
|
|
79
|
-
const key = device === 'desktop' ? '' : `${device}:`;
|
|
80
|
-
if (productOfferLayout?.[device] === '1col' && index % 3 === 0 || (totalProduct || 0) <= 1) {
|
|
81
|
-
className += ` ${key}gp-col-span-2`;
|
|
82
|
-
}
|
|
83
|
-
});
|
|
84
|
-
return className;
|
|
85
|
-
};
|
|
86
|
-
return /*#__PURE__*/ jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
87
|
-
children: [
|
|
88
|
-
/*#__PURE__*/ jsxRuntime.jsx("div", {
|
|
89
|
-
className: " mobile:gp-col-span-2 tablet:gp-col-span-2 gp-col-span-2 hidden"
|
|
90
|
-
}),
|
|
91
|
-
isLoading ? /*#__PURE__*/ jsxRuntime.jsx(Loading.default, {}) : !productSortedById?.length ? /*#__PURE__*/ jsxRuntime.jsx("div", {
|
|
92
|
-
children: "You haven't set up a product yet. Please go back to the sales funnel details to add a product."
|
|
93
|
-
}) : /*#__PURE__*/ jsxRuntime.jsx("div", {
|
|
94
|
-
...builderAttrs,
|
|
95
|
-
className: core.cls(builderProps?.uid, 'gp-flex w-auto'),
|
|
96
|
-
style: {
|
|
97
|
-
...core.makeStyle({
|
|
98
|
-
pc: inlineAlignment
|
|
99
|
-
})
|
|
100
|
-
},
|
|
101
|
-
children: /*#__PURE__*/ jsxRuntime.jsx("div", {
|
|
102
|
-
className: "gp-grid gp-grid-cols-2",
|
|
103
|
-
style: getStyles(),
|
|
104
|
-
children: productSortedById?.map((product, index)=>{
|
|
105
|
-
const variantId = variantSelected?.[product?.baseID ?? '']?.variantId;
|
|
106
|
-
return /*#__PURE__*/ jsxRuntime.jsx("div", {
|
|
107
|
-
className: getClassNameForItem(index),
|
|
108
|
-
children: /*#__PURE__*/ jsxRuntime.jsx(core.ProductProvider, {
|
|
109
|
-
product,
|
|
110
|
-
readOnly: true,
|
|
111
|
-
initialVariantId: variantId ?? 'Latest',
|
|
112
|
-
children: /*#__PURE__*/ jsxRuntime.jsx("div", {
|
|
113
|
-
...mode === 'edit' ? {
|
|
114
|
-
'data-uid': builderProps?.uid,
|
|
115
|
-
'data-component-type': 'component',
|
|
116
|
-
'data-component-tag': 'Product',
|
|
117
|
-
'data-component-label': 'Product',
|
|
118
|
-
'data-component-no-setting': true,
|
|
119
|
-
'data-product-id': product?.baseID?.replace('gid://shopify/Product/', '')
|
|
120
|
-
} : {},
|
|
121
|
-
children: /*#__PURE__*/ jsxRuntime.jsx(Row.default, {
|
|
122
|
-
builderAttrs: builderAttrs,
|
|
123
|
-
setting: rowSetting,
|
|
124
|
-
styles: rowStyles,
|
|
125
|
-
children: core.isEmptyChildren(children) ? /*#__PURE__*/ jsxRuntime.jsx(ChildrenDroppable.default, {}) : children
|
|
126
|
-
})
|
|
127
|
-
})
|
|
128
|
-
})
|
|
129
|
-
}, `uid-${product?.id}`);
|
|
130
|
-
})
|
|
131
|
-
})
|
|
132
|
-
})
|
|
133
|
-
]
|
|
134
|
-
});
|
|
135
|
-
};
|
|
136
|
-
|
|
137
|
-
exports.DEVICES = DEVICES;
|
|
138
|
-
exports.default = PostPurchaseProductOffer;
|
|
@@ -1,133 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
|
|
3
|
-
import { useEditorMode, usePageStore, useProductsQuery, flattenConnection, cls, makeStyle, ProductProvider, isEmptyChildren, makeStyleResponsive, makeWidth } from '@gem-sdk/core';
|
|
4
|
-
import Row from '../../../grid/row/Row.js';
|
|
5
|
-
import Loading from '../../../common/components/Loading.js';
|
|
6
|
-
import { useMemo } from 'react';
|
|
7
|
-
import ChildrenDroppable from '../../../grid/components/ChildrenDroppable.js';
|
|
8
|
-
import '@gem-sdk/system';
|
|
9
|
-
import { postPurchaseViewSpacing } from '../../utils/helper.js';
|
|
10
|
-
import { hasPublicStoreFrontData, createStoreFrontFetcher } from '../helpers/index.js';
|
|
11
|
-
import { productOfferPlaceholder } from '../constants/ProductOfferPlaceholder.js';
|
|
12
|
-
import { useDynamicProduct } from '../hooks/useDynamicProduct.js';
|
|
13
|
-
|
|
14
|
-
const DEVICES = [
|
|
15
|
-
'desktop',
|
|
16
|
-
'tablet',
|
|
17
|
-
'mobile'
|
|
18
|
-
];
|
|
19
|
-
const PostPurchaseProductOffer = ({ styles, builderAttrs, builderProps, children, setting })=>{
|
|
20
|
-
const mode = useEditorMode();
|
|
21
|
-
const { productSetting, productOfferLayout, inlineAlignment, variantSelected, discountAndShippingFee, ...rowSetting } = setting ?? {};
|
|
22
|
-
const { productOfferColumnGap, productOfferVerticalGutter, productOfferWidth, ...rowStyles } = styles ?? {};
|
|
23
|
-
const productOffers = usePageStore((s)=>s.productOffers);
|
|
24
|
-
const publicStoreFrontData = usePageStore((s)=>s.publicStoreFrontData);
|
|
25
|
-
const { isDynamicProduct } = useDynamicProduct();
|
|
26
|
-
const dynamicDiscountOffer = usePageStore((s)=>s.dynamicDiscountOffer);
|
|
27
|
-
const totalProduct = useMemo(()=>isDynamicProduct ? dynamicDiscountOffer?.appliedProductCount : productOffers?.length, [
|
|
28
|
-
dynamicDiscountOffer?.appliedProductCount,
|
|
29
|
-
isDynamicProduct,
|
|
30
|
-
productOffers?.length
|
|
31
|
-
]);
|
|
32
|
-
const sortedProductBaseIDs = useMemo(()=>{
|
|
33
|
-
return productOffers?.sort((a, b)=>{
|
|
34
|
-
if (a?.node?.position && b?.node?.position) {
|
|
35
|
-
return a.node.position - b.node.position;
|
|
36
|
-
}
|
|
37
|
-
return 0;
|
|
38
|
-
}).map((item)=>item?.node?.objectBaseID).filter(Boolean);
|
|
39
|
-
}, [
|
|
40
|
-
productOffers
|
|
41
|
-
]);
|
|
42
|
-
const productData = useProductsQuery(sortedProductBaseIDs || [], {
|
|
43
|
-
revalidateOnMount: true
|
|
44
|
-
}, {
|
|
45
|
-
allStatus: true,
|
|
46
|
-
fetcher: hasPublicStoreFrontData(publicStoreFrontData) ? createStoreFrontFetcher(publicStoreFrontData) : undefined
|
|
47
|
-
});
|
|
48
|
-
const isLoading = useMemo(()=>productData.isLoading || productData.isValidating, [
|
|
49
|
-
productData.isLoading,
|
|
50
|
-
productData.isValidating
|
|
51
|
-
]);
|
|
52
|
-
const products = useMemo(()=>flattenConnection(productData.data?.products), [
|
|
53
|
-
productData.data?.products
|
|
54
|
-
]);
|
|
55
|
-
const productSortedById = useMemo(()=>{
|
|
56
|
-
return isDynamicProduct && dynamicDiscountOffer?.appliedProductCount ? Array(dynamicDiscountOffer.appliedProductCount).fill(productOfferPlaceholder) : sortedProductBaseIDs?.map((id)=>products?.find((el)=>el?.baseID === id)).filter(Boolean);
|
|
57
|
-
}, [
|
|
58
|
-
isDynamicProduct,
|
|
59
|
-
dynamicDiscountOffer?.appliedProductCount,
|
|
60
|
-
sortedProductBaseIDs,
|
|
61
|
-
products
|
|
62
|
-
]);
|
|
63
|
-
const getStyles = ()=>{
|
|
64
|
-
return {
|
|
65
|
-
...makeStyleResponsive('cg', productOfferColumnGap),
|
|
66
|
-
...makeStyleResponsive('rg', {
|
|
67
|
-
desktop: postPurchaseViewSpacing[productOfferVerticalGutter || 'base']
|
|
68
|
-
}),
|
|
69
|
-
...makeStyleResponsive('w', makeWidth(productOfferWidth))
|
|
70
|
-
};
|
|
71
|
-
};
|
|
72
|
-
const getClassNameForItem = (index)=>{
|
|
73
|
-
let className = '';
|
|
74
|
-
DEVICES.map((device)=>{
|
|
75
|
-
const key = device === 'desktop' ? '' : `${device}:`;
|
|
76
|
-
if (productOfferLayout?.[device] === '1col' && index % 3 === 0 || (totalProduct || 0) <= 1) {
|
|
77
|
-
className += ` ${key}gp-col-span-2`;
|
|
78
|
-
}
|
|
79
|
-
});
|
|
80
|
-
return className;
|
|
81
|
-
};
|
|
82
|
-
return /*#__PURE__*/ jsxs(Fragment, {
|
|
83
|
-
children: [
|
|
84
|
-
/*#__PURE__*/ jsx("div", {
|
|
85
|
-
className: " mobile:gp-col-span-2 tablet:gp-col-span-2 gp-col-span-2 hidden"
|
|
86
|
-
}),
|
|
87
|
-
isLoading ? /*#__PURE__*/ jsx(Loading, {}) : !productSortedById?.length ? /*#__PURE__*/ jsx("div", {
|
|
88
|
-
children: "You haven't set up a product yet. Please go back to the sales funnel details to add a product."
|
|
89
|
-
}) : /*#__PURE__*/ jsx("div", {
|
|
90
|
-
...builderAttrs,
|
|
91
|
-
className: cls(builderProps?.uid, 'gp-flex w-auto'),
|
|
92
|
-
style: {
|
|
93
|
-
...makeStyle({
|
|
94
|
-
pc: inlineAlignment
|
|
95
|
-
})
|
|
96
|
-
},
|
|
97
|
-
children: /*#__PURE__*/ jsx("div", {
|
|
98
|
-
className: "gp-grid gp-grid-cols-2",
|
|
99
|
-
style: getStyles(),
|
|
100
|
-
children: productSortedById?.map((product, index)=>{
|
|
101
|
-
const variantId = variantSelected?.[product?.baseID ?? '']?.variantId;
|
|
102
|
-
return /*#__PURE__*/ jsx("div", {
|
|
103
|
-
className: getClassNameForItem(index),
|
|
104
|
-
children: /*#__PURE__*/ jsx(ProductProvider, {
|
|
105
|
-
product,
|
|
106
|
-
readOnly: true,
|
|
107
|
-
initialVariantId: variantId ?? 'Latest',
|
|
108
|
-
children: /*#__PURE__*/ jsx("div", {
|
|
109
|
-
...mode === 'edit' ? {
|
|
110
|
-
'data-uid': builderProps?.uid,
|
|
111
|
-
'data-component-type': 'component',
|
|
112
|
-
'data-component-tag': 'Product',
|
|
113
|
-
'data-component-label': 'Product',
|
|
114
|
-
'data-component-no-setting': true,
|
|
115
|
-
'data-product-id': product?.baseID?.replace('gid://shopify/Product/', '')
|
|
116
|
-
} : {},
|
|
117
|
-
children: /*#__PURE__*/ jsx(Row, {
|
|
118
|
-
builderAttrs: builderAttrs,
|
|
119
|
-
setting: rowSetting,
|
|
120
|
-
styles: rowStyles,
|
|
121
|
-
children: isEmptyChildren(children) ? /*#__PURE__*/ jsx(ChildrenDroppable, {}) : children
|
|
122
|
-
})
|
|
123
|
-
})
|
|
124
|
-
})
|
|
125
|
-
}, `uid-${product?.id}`);
|
|
126
|
-
})
|
|
127
|
-
})
|
|
128
|
-
})
|
|
129
|
-
]
|
|
130
|
-
});
|
|
131
|
-
};
|
|
132
|
-
|
|
133
|
-
export { DEVICES, PostPurchaseProductOffer as default };
|