@gem-sdk/components 2.0.0-dev.355 → 2.0.0-dev.357
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/next.js +41 -31
- 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/image/setting/configs/uiV2.js +5 -1
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/post-purchase/callout-banner/setting/config/callout-text/setting.js +4 -3
- 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/index.js +2 -2
- package/dist/cjs/post-purchase/product/next.js +1 -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/next.js +41 -31
- 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/image/setting/configs/uiV2.js +5 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/post-purchase/callout-banner/setting/config/callout-text/setting.js +4 -3
- 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/index.js +1 -1
- package/dist/esm/post-purchase/product/next.js +1 -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 +42 -8
- 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
|
@@ -188,28 +188,27 @@ const SettingUIV2 = [
|
|
|
188
188
|
]
|
|
189
189
|
},
|
|
190
190
|
{
|
|
191
|
-
label: {
|
|
192
|
-
en: 'Icon'
|
|
193
|
-
},
|
|
194
191
|
controls: [
|
|
195
192
|
{
|
|
193
|
+
label: {
|
|
194
|
+
en: 'Icon'
|
|
195
|
+
},
|
|
196
196
|
setting: {
|
|
197
197
|
id: 'iconVisible'
|
|
198
|
+
},
|
|
199
|
+
options: {
|
|
200
|
+
labelVariant: 'primary',
|
|
201
|
+
toggleStyle: 'switch'
|
|
198
202
|
}
|
|
199
|
-
}
|
|
200
|
-
]
|
|
201
|
-
},
|
|
202
|
-
{
|
|
203
|
-
conditionDisplay: 'iconVisible == true',
|
|
204
|
-
controls: [
|
|
203
|
+
},
|
|
205
204
|
{
|
|
206
|
-
type: 'control',
|
|
207
205
|
label: {
|
|
208
|
-
en: '
|
|
206
|
+
en: 'Icon'
|
|
209
207
|
},
|
|
210
208
|
setting: {
|
|
211
209
|
id: 'iconSvg'
|
|
212
|
-
}
|
|
210
|
+
},
|
|
211
|
+
conditionDisplay: 'iconVisible == true'
|
|
213
212
|
},
|
|
214
213
|
{
|
|
215
214
|
type: 'control',
|
|
@@ -218,24 +217,35 @@ const SettingUIV2 = [
|
|
|
218
217
|
},
|
|
219
218
|
setting: {
|
|
220
219
|
id: 'iconAlign'
|
|
221
|
-
}
|
|
220
|
+
},
|
|
221
|
+
conditionDisplay: 'iconVisible == true'
|
|
222
222
|
},
|
|
223
223
|
{
|
|
224
224
|
type: 'control',
|
|
225
225
|
label: {
|
|
226
|
-
en: '
|
|
226
|
+
en: 'Text & icon gap'
|
|
227
227
|
},
|
|
228
228
|
setting: {
|
|
229
229
|
id: 'iconSpacing'
|
|
230
|
-
}
|
|
230
|
+
},
|
|
231
|
+
conditionDisplay: 'iconVisible == true'
|
|
231
232
|
}
|
|
232
233
|
]
|
|
233
234
|
},
|
|
234
235
|
{
|
|
235
|
-
label: {
|
|
236
|
-
en: 'Text style'
|
|
237
|
-
},
|
|
238
236
|
controls: [
|
|
237
|
+
{
|
|
238
|
+
label: {
|
|
239
|
+
en: 'Text'
|
|
240
|
+
},
|
|
241
|
+
setting: {
|
|
242
|
+
id: 'enableTextStyle'
|
|
243
|
+
},
|
|
244
|
+
options: {
|
|
245
|
+
labelVariant: 'primary',
|
|
246
|
+
toggleStyle: 'switch'
|
|
247
|
+
}
|
|
248
|
+
},
|
|
239
249
|
{
|
|
240
250
|
id: 'typo',
|
|
241
251
|
label: {
|
|
@@ -244,6 +254,7 @@ const SettingUIV2 = [
|
|
|
244
254
|
setting: {
|
|
245
255
|
id: 'typo'
|
|
246
256
|
},
|
|
257
|
+
conditionDisplay: 'enableTextStyle == true',
|
|
247
258
|
options: {
|
|
248
259
|
hideLabel: true,
|
|
249
260
|
fullWidth: true,
|
|
@@ -281,22 +292,22 @@ const SettingUIV2 = [
|
|
|
281
292
|
controls: [
|
|
282
293
|
{
|
|
283
294
|
label: {
|
|
284
|
-
en: '
|
|
295
|
+
en: 'Color'
|
|
285
296
|
},
|
|
286
297
|
setting: {
|
|
287
298
|
id: 'backgroundColorV2',
|
|
288
299
|
state: 'hover'
|
|
289
300
|
}
|
|
290
301
|
},
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
302
|
+
{
|
|
303
|
+
label: {
|
|
304
|
+
en: 'Image'
|
|
305
|
+
},
|
|
306
|
+
setting: {
|
|
307
|
+
id: 'backgroundImage',
|
|
308
|
+
state: 'hover'
|
|
309
|
+
}
|
|
310
|
+
},
|
|
300
311
|
{
|
|
301
312
|
label: {
|
|
302
313
|
en: 'Text color'
|
|
@@ -339,28 +350,17 @@ const SettingUIV2 = [
|
|
|
339
350
|
}
|
|
340
351
|
]
|
|
341
352
|
},
|
|
342
|
-
// {
|
|
343
|
-
// label: {
|
|
344
|
-
// en: 'Link',
|
|
345
|
-
// },
|
|
346
|
-
// controls: [
|
|
347
|
-
// {
|
|
348
|
-
// type: 'control',
|
|
349
|
-
// layout: 'vertical',
|
|
350
|
-
// setting: {
|
|
351
|
-
// id: 'btnLink',
|
|
352
|
-
// },
|
|
353
|
-
// },
|
|
354
|
-
// ],
|
|
355
|
-
// },
|
|
356
353
|
{
|
|
357
354
|
label: {
|
|
358
|
-
en: '
|
|
355
|
+
en: 'Redirect to'
|
|
359
356
|
},
|
|
360
357
|
controls: [
|
|
361
358
|
{
|
|
359
|
+
label: {
|
|
360
|
+
en: 'New tab'
|
|
361
|
+
},
|
|
362
362
|
setting: {
|
|
363
|
-
id: '
|
|
363
|
+
id: 'redirectNewTab'
|
|
364
364
|
}
|
|
365
365
|
}
|
|
366
366
|
]
|
|
@@ -378,7 +378,7 @@ const SettingUIV2 = [
|
|
|
378
378
|
options: {
|
|
379
379
|
labelVariant: 'primary',
|
|
380
380
|
fullWidth: true,
|
|
381
|
-
disableMessage: `
|
|
381
|
+
disableMessage: `Horizontal alignment is disabled when the width is set to 100% or greater`
|
|
382
382
|
}
|
|
383
383
|
}
|
|
384
384
|
]
|
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
|
*/
|
|
@@ -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
|
|
|
@@ -5750,6 +5771,16 @@ declare const _default$2: {
|
|
|
5750
5771
|
Breadcrumb: React.ComponentType<BreadcrumbProps>;
|
|
5751
5772
|
HeroBanner: React.ComponentType<HeroBannerProps>;
|
|
5752
5773
|
ArticleList: React.ComponentType<ArticleListProps>;
|
|
5774
|
+
ArticleTitle: React.ComponentType<ArticleTitleProps>;
|
|
5775
|
+
ArticleExcerpt: React.ComponentType<ArticleExcerptProps>;
|
|
5776
|
+
ArticleContent: React.ComponentType<ArticleContentProps>;
|
|
5777
|
+
ArticleImage: React.ComponentType<ArticleImageProps>;
|
|
5778
|
+
ArticlePagination: React.ComponentType<CollectionPaginatorProps>;
|
|
5779
|
+
ArticleAuthor: React.ComponentType<ArticleAuthorProps>;
|
|
5780
|
+
ArticleTag: React.ComponentType<ArticleTagProps>;
|
|
5781
|
+
ArticleCategory: React.ComponentType<ArticleCategoryProps>;
|
|
5782
|
+
ArticleDate: React.ComponentType<ArticleDateProps>;
|
|
5783
|
+
ArticleReadMore: React.ComponentType<ArticleReadMoreProps>;
|
|
5753
5784
|
Accordion: React.ComponentType<AccordionProps>;
|
|
5754
5785
|
AccordionItem: React.ComponentType<AccordionItemProps>;
|
|
5755
5786
|
};
|
|
@@ -5936,6 +5967,7 @@ declare const SubmitButton: ({ setting, builderProps, builderAttrs, style, style
|
|
|
5936
5967
|
animation?: Partial<Record<_gem_sdk_core.StateType, "none" | "pulse" | "grow" | "bounce">> | undefined;
|
|
5937
5968
|
backgroundColorV2?: Partial<Record<_gem_sdk_core.NameDevices, Partial<Record<_gem_sdk_core.StateType, _gem_sdk_core.ColorValueType>>>> | undefined;
|
|
5938
5969
|
backgroundImage?: Partial<Record<_gem_sdk_core.NameDevices, Partial<Record<_gem_sdk_core.StateType, _gem_sdk_core.BackgroundImageValue>>>> | undefined;
|
|
5970
|
+
enableTextStyle?: boolean | undefined;
|
|
5939
5971
|
typography?: _gem_sdk_core.TypographySetting | undefined;
|
|
5940
5972
|
transform?: string | undefined;
|
|
5941
5973
|
iconSizeAuto?: boolean | undefined;
|
|
@@ -6301,10 +6333,10 @@ declare const ProductProperties: ({ setting, styles, builderProps, advanced, pag
|
|
|
6301
6333
|
|
|
6302
6334
|
declare const ProductTitle: (props: ProductTitleProps) => string;
|
|
6303
6335
|
|
|
6304
|
-
declare const ProductViewMore: ({
|
|
6336
|
+
declare const ProductViewMore: ({ style, styles, setting, advanced, builderProps, builderAttrs, pageContext, }: _gem_sdk_core.BaseProps<{
|
|
6305
6337
|
label?: string | undefined;
|
|
6306
6338
|
translate?: string | undefined;
|
|
6307
|
-
|
|
6339
|
+
redirectNewTab?: boolean | undefined;
|
|
6308
6340
|
} & Pick<{
|
|
6309
6341
|
iconSvg?: string | undefined;
|
|
6310
6342
|
loading?: boolean | undefined;
|
|
@@ -6317,6 +6349,7 @@ declare const ProductViewMore: ({ setting, builderProps, builderAttrs, style, st
|
|
|
6317
6349
|
shouldClearSpace?: boolean | undefined;
|
|
6318
6350
|
iconAlign?: "left" | "right" | undefined;
|
|
6319
6351
|
htmlType?: "button" | "reset" | "link" | "submit" | undefined;
|
|
6352
|
+
enableBtnLink?: boolean | undefined;
|
|
6320
6353
|
btnLink?: {
|
|
6321
6354
|
type?: string | undefined;
|
|
6322
6355
|
link?: string | undefined;
|
|
@@ -6342,6 +6375,7 @@ declare const ProductViewMore: ({ setting, builderProps, builderAttrs, style, st
|
|
|
6342
6375
|
animation?: Partial<Record<_gem_sdk_core.StateType, "none" | "pulse" | "grow" | "bounce">> | undefined;
|
|
6343
6376
|
backgroundColorV2?: Partial<Record<_gem_sdk_core.NameDevices, Partial<Record<_gem_sdk_core.StateType, _gem_sdk_core.ColorValueType>>>> | undefined;
|
|
6344
6377
|
backgroundImage?: Partial<Record<_gem_sdk_core.NameDevices, Partial<Record<_gem_sdk_core.StateType, _gem_sdk_core.BackgroundImageValue>>>> | undefined;
|
|
6378
|
+
enableTextStyle?: boolean | undefined;
|
|
6345
6379
|
typography?: _gem_sdk_core.TypographySetting | undefined;
|
|
6346
6380
|
transform?: string | undefined;
|
|
6347
6381
|
iconSizeAuto?: boolean | undefined;
|
|
@@ -7330,7 +7364,7 @@ declare const _default$1: {
|
|
|
7330
7364
|
Sticky: React.FC<StickyProps>;
|
|
7331
7365
|
ProductVendor: React.FC<VendorProps>;
|
|
7332
7366
|
KingProductOptions: React.FC<KingProductOptionsProps>;
|
|
7333
|
-
ProductViewMore: ({
|
|
7367
|
+
ProductViewMore: ({ style, styles, setting, advanced, builderProps, builderAttrs, children, }: ProductViewMoreProps) => React.JSX.Element;
|
|
7334
7368
|
ProductBadge: React.FC<ProductBadgeProps>;
|
|
7335
7369
|
HextomCountdownTimerBar: React.FC<HextomCountdownTimerBarProps>;
|
|
7336
7370
|
TrustBadgesBear: React.FC<TrustBadgesBearProps>;
|
|
@@ -7648,4 +7682,4 @@ declare function filterTruthyObject<T extends Record<string, any>>(obj: T): Part
|
|
|
7648
7682
|
declare const getDisplayStyle: (fnCondition: (params: NameDevices$1) => boolean, defaultValue: string) => any;
|
|
7649
7683
|
declare const convertUnitToNumber: (value: string | undefined | number, defaultValue: number) => number;
|
|
7650
7684
|
|
|
7651
|
-
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, 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 };
|
|
7685
|
+
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.357",
|
|
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 };
|