@gem-sdk/core 1.14.0-moon.441 → 1.14.0-new-feature.579
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/components/ComponentToolbarPreview.js +1 -1
- package/dist/cjs/components/ComponentWrapper.js +1 -1
- package/dist/cjs/components/ComponentWrapperPreview.js +1 -1
- package/dist/cjs/components/Render.liquid.js +15 -7
- package/dist/cjs/components/constant.js +1 -1
- package/dist/cjs/components/resize/Spacing.js +1 -1
- package/dist/cjs/contexts/BuilderPreviewContext.js +1 -1
- package/dist/cjs/helpers/animations.js +1 -0
- package/dist/cjs/helpers/background.js +1 -1
- package/dist/cjs/helpers/carousel.js +1 -0
- package/dist/cjs/helpers/compose-advance-style.js +1 -1
- package/dist/cjs/helpers/make-style.js +1 -1
- package/dist/cjs/helpers/product.js +1 -1
- package/dist/cjs/helpers/queries/get-collection.js +1 -1
- package/dist/cjs/helpers/radius.js +6 -6
- package/dist/cjs/hooks/animation/useAnimationActions.js +1 -0
- package/dist/cjs/hooks/animation/useAnimationConfig.js +1 -0
- package/dist/cjs/hooks/animation/useAnimationPreview.js +1 -0
- package/dist/cjs/hooks/animation/useAnimationTarget.js +1 -0
- package/dist/cjs/hooks/animation/useApplyAnimation.js +1 -0
- package/dist/cjs/hooks/useAnimations.js +1 -0
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/types/animations.js +1 -0
- package/dist/esm/components/ComponentToolbarPreview.js +1 -1
- package/dist/esm/components/ComponentWrapper.js +1 -1
- package/dist/esm/components/ComponentWrapperPreview.js +1 -1
- package/dist/esm/components/Render.liquid.js +16 -8
- package/dist/esm/components/constant.js +1 -1
- package/dist/esm/components/resize/Spacing.js +1 -1
- package/dist/esm/contexts/BuilderPreviewContext.js +1 -1
- package/dist/esm/helpers/animations.js +1 -0
- package/dist/esm/helpers/background.js +1 -1
- package/dist/esm/helpers/carousel.js +1 -0
- package/dist/esm/helpers/compose-advance-style.js +1 -1
- package/dist/esm/helpers/make-style.js +1 -1
- package/dist/esm/helpers/product.js +1 -1
- package/dist/esm/helpers/queries/get-collection.js +1 -1
- package/dist/esm/helpers/radius.js +6 -6
- package/dist/esm/hooks/animation/useAnimationActions.js +1 -0
- package/dist/esm/hooks/animation/useAnimationConfig.js +1 -0
- package/dist/esm/hooks/animation/useAnimationPreview.js +1 -0
- package/dist/esm/hooks/animation/useAnimationTarget.js +1 -0
- package/dist/esm/hooks/animation/useApplyAnimation.js +1 -0
- package/dist/esm/hooks/useAnimations.js +1 -0
- package/dist/esm/index.js +1 -1
- package/dist/esm/types/animations.js +1 -0
- package/dist/types/index.d.ts +343 -48
- package/package.json +3 -3
package/dist/types/index.d.ts
CHANGED
|
@@ -139,6 +139,12 @@ type RyviuWidgetType = 'reviews' | 'badge' | 'badgeCollection' | 'carousel' | 'm
|
|
|
139
139
|
type RivyoWidgetType = 'reviews' | 'badge' | 'testimonials' | 'allReviewsPage';
|
|
140
140
|
type VitalsWidgetType = 'addToWishlist' | 'goToWishlist' | 'paymentLogos' | 'recentlyViewed' | 'shoppableInstagramFeed' | 'trustSealsAndBadges' | 'productReviews' | 'productBundles' | 'volumeDiscounts' | 'stockScarcity';
|
|
141
141
|
type FeraReviewsWidgetType = 'productReviews' | 'testimonialCarousel' | 'allReviews' | 'averageStoreRatingBadge' | 'inStoreMedia' | 'averageRatingBadge' | 'productPageMedia';
|
|
142
|
+
type FeraReviewsV3WidgetType = 'allReviews' | 'testimonialCarousel' | 'mediaGallery' | 'productDetailRating' | 'productReviews' | 'productCollectionRating' | 'otherWidget';
|
|
143
|
+
type GrowaveWidgetType = 'reviews' | 'badge' | 'productListBadge' | 'wishList' | 'socialShare' | 'favorite';
|
|
144
|
+
type UltimateSalesBoostWidgetType = 'sticker' | 'message' | 'getItByTimer' | 'buyXGetTY' | 'countdownTimer' | 'stockInventoryNumber' | 'trustBadge' | 'advancedTrustBadge';
|
|
145
|
+
type AliReviewsWidgetType = 'section' | 'starRating' | 'starBadge' | 'starBadgeCollection' | 'carouselSlider';
|
|
146
|
+
type OpinewWidgetType = 'reviews' | 'badge' | 'badgeCollection' | 'carousel' | 'allReviews' | 'allReviewsBadge';
|
|
147
|
+
type OpinewDesignWidgetType = 'opinew_badge_wide_average' | 'opinew_badge_wide' | 'opinew_badge_small';
|
|
142
148
|
type OmnisendWidgetType = 'landing-page' | 'embedded';
|
|
143
149
|
type BoldSubscriptionsWidgetType = 'v1' | 'v2';
|
|
144
150
|
type PickyStoryWidgetType = 'gem-picky-bundle' | 'gem-picky-kit' | 'gem-picky-buy-the-look' | 'gem-picky-gallery';
|
|
@@ -155,7 +161,9 @@ type InstantJudgeMeReviewsWidgetType = 'single_product_preview_badge' | 'review_
|
|
|
155
161
|
type InstantLooxReviewsWidgetType = 'product_reviews_widget' | 'reviews_widget_all_stores' | 'product_star_ratings_widget' | 'carousel_widget';
|
|
156
162
|
type InstantKlaviyoWidgetType = 'popup_widget' | 'flyout_widget' | 'embed_widget' | 'full_page_widget';
|
|
157
163
|
type StampedWidgetType = 'main-widget' | 'carousel' | 'full-page' | 'visual-gallery' | 'wall-photos' | 'site-badge' | 'instagram-feed' | 'checkout-reviews' | 'single-highlight' | 'top-rated' | 'badge-single' | 'badge-double' | 'badge-ribbon' | 'product-rating';
|
|
158
|
-
type LaiProductReviewsWidgetType = 'reviews_widget' | 'homepage_reviews' | 'happy_customer_reviews' | '
|
|
164
|
+
type LaiProductReviewsWidgetType = 'reviews_widget' | 'star_ratings' | 'homepage_reviews' | 'happy_customer_reviews' | 'star_ratings_in_list' | 'advanced_widget';
|
|
165
|
+
type LaiProductReviewsAdvancedWidgetType = 'cardCarousel' | 'testimonialCarousel' | 'mediaGallery' | 'cardGrid';
|
|
166
|
+
type YotpoReviewsWidgetType = 'reviews' | 'badge' | 'reviewHighlights';
|
|
159
167
|
|
|
160
168
|
type ResponsiveConfig<T> = {
|
|
161
169
|
desktop: {
|
|
@@ -176,7 +184,7 @@ type HyperlinkInfo = {
|
|
|
176
184
|
link?: string;
|
|
177
185
|
modal?: CommonModalApp;
|
|
178
186
|
};
|
|
179
|
-
type Mapped$
|
|
187
|
+
type Mapped$7<K, T> = NonNullable<T> extends ObjectDevices<infer U> ? {
|
|
180
188
|
id: K;
|
|
181
189
|
label?: string;
|
|
182
190
|
info?: string;
|
|
@@ -244,7 +252,69 @@ type Mapped$5<K, T> = NonNullable<T> extends ObjectDevices<infer U> ? {
|
|
|
244
252
|
default?: T;
|
|
245
253
|
};
|
|
246
254
|
type SharedControlType<T> = {
|
|
247
|
-
[K in keyof T]-?: Mapped$
|
|
255
|
+
[K in keyof T]-?: Mapped$7<K, T[K]>;
|
|
256
|
+
}[keyof T];
|
|
257
|
+
|
|
258
|
+
type Option$5 = {
|
|
259
|
+
value: number | string;
|
|
260
|
+
label?: string | number;
|
|
261
|
+
type?: string;
|
|
262
|
+
icon?: string;
|
|
263
|
+
isTextIcon?: boolean;
|
|
264
|
+
};
|
|
265
|
+
type Mapped$6<K, T> = NonNullable<T> extends ObjectDevices<infer U> ? {
|
|
266
|
+
id: K;
|
|
267
|
+
label: string;
|
|
268
|
+
info?: string;
|
|
269
|
+
hide?: boolean;
|
|
270
|
+
hideOnMode?: {
|
|
271
|
+
responsive?: boolean;
|
|
272
|
+
mobileOnly?: boolean;
|
|
273
|
+
};
|
|
274
|
+
disableToggle?: boolean;
|
|
275
|
+
state?: {
|
|
276
|
+
normal?: boolean;
|
|
277
|
+
hover?: boolean;
|
|
278
|
+
focus?: boolean;
|
|
279
|
+
active?: boolean;
|
|
280
|
+
};
|
|
281
|
+
placeholder?: string;
|
|
282
|
+
type: 'layout-custom-segment';
|
|
283
|
+
options: Option$5[];
|
|
284
|
+
devices?: ResponsiveConfig<U>;
|
|
285
|
+
forceNotChangeOptions?: boolean;
|
|
286
|
+
iconViewBox?: string;
|
|
287
|
+
enableItemBackground?: boolean;
|
|
288
|
+
itemPerRow?: number;
|
|
289
|
+
itemSpacing?: 'large' | 'small';
|
|
290
|
+
enableTooltip?: boolean;
|
|
291
|
+
} : {
|
|
292
|
+
id: K;
|
|
293
|
+
label: string;
|
|
294
|
+
info?: string;
|
|
295
|
+
hide?: boolean;
|
|
296
|
+
hideOnMode?: {
|
|
297
|
+
responsive?: boolean;
|
|
298
|
+
mobileOnly?: boolean;
|
|
299
|
+
};
|
|
300
|
+
disableToggle?: boolean;
|
|
301
|
+
state?: {
|
|
302
|
+
normal?: boolean;
|
|
303
|
+
hover?: boolean;
|
|
304
|
+
focus?: boolean;
|
|
305
|
+
active?: boolean;
|
|
306
|
+
};
|
|
307
|
+
placeholder?: string;
|
|
308
|
+
type: 'layout-custom-segment';
|
|
309
|
+
options?: Option$5[];
|
|
310
|
+
iconViewBox?: string;
|
|
311
|
+
enableItemBackground?: boolean;
|
|
312
|
+
enableTooltip?: boolean;
|
|
313
|
+
forceNotChangeOptions?: boolean;
|
|
314
|
+
default?: T;
|
|
315
|
+
};
|
|
316
|
+
type LayoutCustomSegmentControlType<T> = {
|
|
317
|
+
[K in keyof T]-?: Mapped$6<K, T[K]>;
|
|
248
318
|
}[keyof T];
|
|
249
319
|
|
|
250
320
|
type AngleControlType<T> = SharedControlType<T> & {
|
|
@@ -256,12 +326,12 @@ type AngleControlType<T> = SharedControlType<T> & {
|
|
|
256
326
|
readonly?: boolean;
|
|
257
327
|
};
|
|
258
328
|
|
|
259
|
-
type Option$
|
|
329
|
+
type Option$4<T> = {
|
|
260
330
|
value: T extends ObjectDevices<infer U> ? U extends StateProp<infer A> ? A : U : T extends StateProp<infer B> ? B : T;
|
|
261
331
|
text: string | number;
|
|
262
332
|
desc?: any;
|
|
263
333
|
};
|
|
264
|
-
type Mapped$
|
|
334
|
+
type Mapped$5<K, T> = NonNullable<T> extends ObjectDevices<infer U> ? {
|
|
265
335
|
id: K;
|
|
266
336
|
label: string;
|
|
267
337
|
hideOnMode?: {
|
|
@@ -277,7 +347,7 @@ type Mapped$4<K, T> = NonNullable<T> extends ObjectDevices<infer U> ? {
|
|
|
277
347
|
active?: boolean;
|
|
278
348
|
};
|
|
279
349
|
type: 'checkbox';
|
|
280
|
-
options: Option$
|
|
350
|
+
options: Option$4<T>[];
|
|
281
351
|
devices?: ResponsiveConfig<U>;
|
|
282
352
|
} : {
|
|
283
353
|
id: K;
|
|
@@ -295,11 +365,11 @@ type Mapped$4<K, T> = NonNullable<T> extends ObjectDevices<infer U> ? {
|
|
|
295
365
|
active?: boolean;
|
|
296
366
|
};
|
|
297
367
|
type: 'checkbox';
|
|
298
|
-
options: Option$
|
|
368
|
+
options: Option$4<T>[];
|
|
299
369
|
default?: T;
|
|
300
370
|
};
|
|
301
371
|
type CheckboxControlType<T> = {
|
|
302
|
-
[K in keyof T]-?: Mapped$
|
|
372
|
+
[K in keyof T]-?: Mapped$5<K, T[K]>;
|
|
303
373
|
}[keyof T];
|
|
304
374
|
|
|
305
375
|
type ChildrensControlType = {
|
|
@@ -384,7 +454,7 @@ type InputNumberControlType<T> = SharedControlType<T> & {
|
|
|
384
454
|
readonly?: boolean;
|
|
385
455
|
};
|
|
386
456
|
|
|
387
|
-
type SizeUnit$2 = 's' | '%' | 'cm' | 'mm' | 'Q' | 'in' | 'pc' | 'pt' | 'px' | 'em' | 'cap' | 'ex' | 'ch' | 'ic' | 'rem' | 'lh' | 'rlh' | 'vw' | 'vh' | 'vi' | 'vb' | 'vmin' | 'vmax';
|
|
457
|
+
type SizeUnit$2 = 's' | '%' | 'cm' | 'mm' | 'Q' | 'in' | 'pc' | 'pt' | 'px' | 'em' | 'cap' | 'ex' | 'ch' | 'ic' | 'rem' | 'lh' | 'rlh' | 'vw' | 'vh' | 'vi' | 'vb' | 'vmin' | 'vmax' | 'ms';
|
|
388
458
|
type InputUnitControlType<T> = SharedControlType<T> & {
|
|
389
459
|
type: 'input:unit';
|
|
390
460
|
placeholder?: string;
|
|
@@ -431,13 +501,13 @@ type RangeControlType<T> = SharedControlType<T> & {
|
|
|
431
501
|
hideUnit?: boolean;
|
|
432
502
|
};
|
|
433
503
|
|
|
434
|
-
type Option$
|
|
504
|
+
type Option$3<T> = {
|
|
435
505
|
value: T extends ObjectDevices<infer U> ? U extends StateProp<infer A> ? A : U : T extends StateProp<infer B> ? B : T;
|
|
436
506
|
label?: string | number;
|
|
437
507
|
type?: string;
|
|
438
508
|
icon?: string;
|
|
439
509
|
};
|
|
440
|
-
type Mapped$
|
|
510
|
+
type Mapped$4<K, T> = NonNullable<T> extends ObjectDevices<infer U> ? {
|
|
441
511
|
id: K;
|
|
442
512
|
label?: string;
|
|
443
513
|
info?: string;
|
|
@@ -455,7 +525,7 @@ type Mapped$3<K, T> = NonNullable<T> extends ObjectDevices<infer U> ? {
|
|
|
455
525
|
};
|
|
456
526
|
placeholder?: string;
|
|
457
527
|
type: 'segment' | 'accordion:segment';
|
|
458
|
-
options: Option$
|
|
528
|
+
options: Option$3<T>[];
|
|
459
529
|
iconCustom?: boolean;
|
|
460
530
|
devices?: ResponsiveConfig<U>;
|
|
461
531
|
} : {
|
|
@@ -476,20 +546,23 @@ type Mapped$3<K, T> = NonNullable<T> extends ObjectDevices<infer U> ? {
|
|
|
476
546
|
};
|
|
477
547
|
placeholder?: string;
|
|
478
548
|
type: 'segment' | 'accordion:segment';
|
|
479
|
-
options: Option$
|
|
549
|
+
options: Option$3<T>[];
|
|
480
550
|
iconCustom?: boolean;
|
|
481
551
|
default?: T;
|
|
482
552
|
};
|
|
483
553
|
type SegmentControlType<T> = {
|
|
484
|
-
[K in keyof T]-?: Mapped$
|
|
554
|
+
[K in keyof T]-?: Mapped$4<K, T[K]>;
|
|
485
555
|
}[keyof T];
|
|
486
556
|
|
|
487
|
-
type Option$
|
|
557
|
+
type Option$2<T> = {
|
|
488
558
|
value: T extends ObjectDevices<infer U> ? U extends StateProp<infer A> ? A : U : T extends StateProp<infer B> ? B : T;
|
|
489
559
|
label: string | number;
|
|
490
560
|
hideOnPage?: string[];
|
|
561
|
+
flowTag?: string[];
|
|
562
|
+
condition?: 'and' | 'or';
|
|
563
|
+
icon?: string;
|
|
491
564
|
};
|
|
492
|
-
type Mapped$
|
|
565
|
+
type Mapped$3<K, T> = NonNullable<T> extends ObjectDevices<infer U> ? {
|
|
493
566
|
id: K;
|
|
494
567
|
label?: string;
|
|
495
568
|
info?: string;
|
|
@@ -507,7 +580,7 @@ type Mapped$2<K, T> = NonNullable<T> extends ObjectDevices<infer U> ? {
|
|
|
507
580
|
};
|
|
508
581
|
placeholder?: string;
|
|
509
582
|
type: 'select';
|
|
510
|
-
options: Option$
|
|
583
|
+
options: Option$2<T>[];
|
|
511
584
|
devices?: ResponsiveConfig<U>;
|
|
512
585
|
} : {
|
|
513
586
|
id: K;
|
|
@@ -527,11 +600,11 @@ type Mapped$2<K, T> = NonNullable<T> extends ObjectDevices<infer U> ? {
|
|
|
527
600
|
};
|
|
528
601
|
placeholder?: string;
|
|
529
602
|
type: 'select';
|
|
530
|
-
options: Option$
|
|
603
|
+
options: Option$2<T>[];
|
|
531
604
|
default?: T;
|
|
532
605
|
};
|
|
533
606
|
type SelectControlType<T> = {
|
|
534
|
-
[K in keyof T]-?: Mapped$
|
|
607
|
+
[K in keyof T]-?: Mapped$3<K, T[K]>;
|
|
535
608
|
}[keyof T];
|
|
536
609
|
|
|
537
610
|
type TextareaControlType<T> = SharedControlType<T> & {
|
|
@@ -735,14 +808,14 @@ type CustomCodeEditor = {
|
|
|
735
808
|
id: string;
|
|
736
809
|
};
|
|
737
810
|
|
|
738
|
-
type Option<T> = {
|
|
811
|
+
type Option$1<T> = {
|
|
739
812
|
value: T extends ObjectDevices<infer U> ? U extends StateProp<infer A> ? A : U : T extends StateProp<infer B> ? B : T;
|
|
740
813
|
label?: string | number;
|
|
741
814
|
type?: string;
|
|
742
815
|
icon?: string;
|
|
743
816
|
isTextIcon?: boolean;
|
|
744
817
|
};
|
|
745
|
-
type Mapped$
|
|
818
|
+
type Mapped$2<K, T> = NonNullable<T> extends ObjectDevices<infer U> ? {
|
|
746
819
|
id: K;
|
|
747
820
|
label: string;
|
|
748
821
|
info?: string;
|
|
@@ -760,7 +833,7 @@ type Mapped$1<K, T> = NonNullable<T> extends ObjectDevices<infer U> ? {
|
|
|
760
833
|
};
|
|
761
834
|
placeholder?: string;
|
|
762
835
|
type: 'layout-segment';
|
|
763
|
-
options: Option<T>[];
|
|
836
|
+
options: Option$1<T>[];
|
|
764
837
|
devices?: ResponsiveConfig<U>;
|
|
765
838
|
iconViewBox?: string;
|
|
766
839
|
enableItemBackground?: boolean;
|
|
@@ -785,14 +858,16 @@ type Mapped$1<K, T> = NonNullable<T> extends ObjectDevices<infer U> ? {
|
|
|
785
858
|
};
|
|
786
859
|
placeholder?: string;
|
|
787
860
|
type: 'layout-segment';
|
|
788
|
-
|
|
861
|
+
itemPerRow?: number;
|
|
862
|
+
itemSpacing?: 'large' | 'small';
|
|
863
|
+
options?: Option$1<T>[];
|
|
789
864
|
iconViewBox?: string;
|
|
790
865
|
enableItemBackground?: boolean;
|
|
791
866
|
enableTooltip?: boolean;
|
|
792
867
|
default?: T;
|
|
793
868
|
};
|
|
794
869
|
type LayoutSegmentControlType<T> = {
|
|
795
|
-
[K in keyof T]-?: Mapped$
|
|
870
|
+
[K in keyof T]-?: Mapped$2<K, T[K]>;
|
|
796
871
|
}[keyof T];
|
|
797
872
|
|
|
798
873
|
type InputSpacing<T> = SharedControlType<T> & {
|
|
@@ -821,6 +896,12 @@ type LayoutControlType<T> = SharedControlType<T> & {
|
|
|
821
896
|
isProductLayout?: boolean;
|
|
822
897
|
};
|
|
823
898
|
|
|
899
|
+
type LayoutBannerControlType<T> = SharedControlType<T> & {
|
|
900
|
+
type: 'layout-banner';
|
|
901
|
+
maxCol?: number;
|
|
902
|
+
isProductLayout?: boolean;
|
|
903
|
+
};
|
|
904
|
+
|
|
824
905
|
type CollectionBannerControlType<T> = SharedControlType<T> & {
|
|
825
906
|
type: 'collectionBanner';
|
|
826
907
|
value?: Background;
|
|
@@ -896,7 +977,7 @@ type Actions = {
|
|
|
896
977
|
actionHandle?: string;
|
|
897
978
|
link?: string;
|
|
898
979
|
};
|
|
899
|
-
type Mapped<K, T> = {
|
|
980
|
+
type Mapped$1<K, T> = {
|
|
900
981
|
id: K;
|
|
901
982
|
label: string;
|
|
902
983
|
info?: string;
|
|
@@ -905,7 +986,7 @@ type Mapped<K, T> = {
|
|
|
905
986
|
default?: T;
|
|
906
987
|
};
|
|
907
988
|
type StepsGuide<T> = {
|
|
908
|
-
[K in keyof T]-?: Mapped<K, T[K]>;
|
|
989
|
+
[K in keyof T]-?: Mapped$1<K, T[K]>;
|
|
909
990
|
}[keyof T];
|
|
910
991
|
|
|
911
992
|
type ImageShape<T> = SharedControlType<T> & {
|
|
@@ -923,16 +1004,20 @@ type GridArrange<T> = SharedControlType<T> & {
|
|
|
923
1004
|
type SettingID = 'shape' | 'width' | 'height' | 'gap' | 'padding';
|
|
924
1005
|
type ShapeOptionKeyword = 'original' | 'square' | 'vertical' | 'horizontal' | 'custom';
|
|
925
1006
|
type HeightOptionKeyword = 'fit-content' | 'fit-screen';
|
|
926
|
-
type OptionKeyword = 'default' | 'auto' | 'full' | 'equal' | 'small' | 'medium' | 'large' | HeightOptionKeyword | ShapeOptionKeyword;
|
|
1007
|
+
type OptionKeyword = 'default' | 'auto' | 'full' | 'equal' | 'small' | 'medium' | 'large' | HeightOptionKeyword | ShapeOptionKeyword | string;
|
|
927
1008
|
type PaddingOptions = 'small' | 'medium' | 'large' | 'custom';
|
|
1009
|
+
type ShapeOptions = 'square' | 'vertical' | 'horizontal' | 'custom' | 'original';
|
|
1010
|
+
type ShapeConfig = Partial<Record<ShapeOptions, string>>;
|
|
928
1011
|
type PaddingConfig = Partial<Record<PaddingOptions, {
|
|
929
1012
|
vertical: string;
|
|
930
1013
|
horizontal: string;
|
|
931
1014
|
}>>;
|
|
932
1015
|
type SettingConfig = {
|
|
933
|
-
sizeConfig?: Partial<Record<'small' | 'medium' | 'large', string>>;
|
|
1016
|
+
sizeConfig?: Partial<Record<'small' | 'medium' | 'large' | 'full', string>>;
|
|
934
1017
|
displayOptions?: OptionKeyword[];
|
|
935
1018
|
paddingConfig?: PaddingConfig;
|
|
1019
|
+
shapeConfig?: ShapeConfig;
|
|
1020
|
+
shapeTitleConfig?: ShapeConfig;
|
|
936
1021
|
name?: string;
|
|
937
1022
|
units?: string[];
|
|
938
1023
|
};
|
|
@@ -972,7 +1057,102 @@ type Dropdown<T> = SharedControlType<T> & {
|
|
|
972
1057
|
}[];
|
|
973
1058
|
};
|
|
974
1059
|
|
|
975
|
-
type
|
|
1060
|
+
type AliPickSectionControlType<T> = SharedControlType<T> & {
|
|
1061
|
+
type: 'ali:pick-section';
|
|
1062
|
+
pickSectionLabel?: string;
|
|
1063
|
+
};
|
|
1064
|
+
|
|
1065
|
+
type ParallaxScrollingType<T> = SharedControlType<T> & {
|
|
1066
|
+
type: 'parallax-scrolling';
|
|
1067
|
+
};
|
|
1068
|
+
|
|
1069
|
+
type PlayPauseControlType<T> = SharedControlType<T> & {
|
|
1070
|
+
type: 'play-pause';
|
|
1071
|
+
readonly?: boolean;
|
|
1072
|
+
hideLabel?: boolean;
|
|
1073
|
+
};
|
|
1074
|
+
|
|
1075
|
+
type BackgroundColorPickerType<T> = SharedControlType<T> & {
|
|
1076
|
+
type: 'background-color-picker';
|
|
1077
|
+
popup?: boolean;
|
|
1078
|
+
readonly?: boolean;
|
|
1079
|
+
};
|
|
1080
|
+
|
|
1081
|
+
type SneakPeakRange<T> = SharedControlType<T> & {
|
|
1082
|
+
type: 'sneak-peak-range';
|
|
1083
|
+
placeholder?: string;
|
|
1084
|
+
readonly?: boolean;
|
|
1085
|
+
sneakPeakType?: string;
|
|
1086
|
+
};
|
|
1087
|
+
|
|
1088
|
+
type Option<T> = {
|
|
1089
|
+
value: T extends ObjectDevices<infer U> ? U extends StateProp<infer A> ? A : U : T extends StateProp<infer B> ? B : T;
|
|
1090
|
+
label?: string | number;
|
|
1091
|
+
type?: string;
|
|
1092
|
+
icon?: string;
|
|
1093
|
+
isTextIcon?: boolean;
|
|
1094
|
+
};
|
|
1095
|
+
type Mapped<K, T> = NonNullable<T> extends ObjectDevices<infer U> ? {
|
|
1096
|
+
id: K;
|
|
1097
|
+
label: string;
|
|
1098
|
+
info?: string;
|
|
1099
|
+
hide?: boolean;
|
|
1100
|
+
hideOnMode?: {
|
|
1101
|
+
responsive?: boolean;
|
|
1102
|
+
mobileOnly?: boolean;
|
|
1103
|
+
};
|
|
1104
|
+
disableToggle?: boolean;
|
|
1105
|
+
state?: {
|
|
1106
|
+
normal?: boolean;
|
|
1107
|
+
hover?: boolean;
|
|
1108
|
+
focus?: boolean;
|
|
1109
|
+
active?: boolean;
|
|
1110
|
+
};
|
|
1111
|
+
placeholder?: string;
|
|
1112
|
+
type: 'sneak-peak-type';
|
|
1113
|
+
options: Option<T>[];
|
|
1114
|
+
devices?: ResponsiveConfig<U>;
|
|
1115
|
+
iconViewBox?: string;
|
|
1116
|
+
enableItemBackground?: boolean;
|
|
1117
|
+
itemPerRow?: number;
|
|
1118
|
+
itemSpacing?: 'large' | 'small';
|
|
1119
|
+
enableTooltip?: boolean;
|
|
1120
|
+
} : {
|
|
1121
|
+
id: K;
|
|
1122
|
+
label: string;
|
|
1123
|
+
info?: string;
|
|
1124
|
+
hide?: boolean;
|
|
1125
|
+
hideOnMode?: {
|
|
1126
|
+
responsive?: boolean;
|
|
1127
|
+
mobileOnly?: boolean;
|
|
1128
|
+
};
|
|
1129
|
+
disableToggle?: boolean;
|
|
1130
|
+
state?: {
|
|
1131
|
+
normal?: boolean;
|
|
1132
|
+
hover?: boolean;
|
|
1133
|
+
focus?: boolean;
|
|
1134
|
+
active?: boolean;
|
|
1135
|
+
};
|
|
1136
|
+
placeholder?: string;
|
|
1137
|
+
type: 'sneak-peak-type';
|
|
1138
|
+
options?: Option<T>[];
|
|
1139
|
+
iconViewBox?: string;
|
|
1140
|
+
enableItemBackground?: boolean;
|
|
1141
|
+
enableTooltip?: boolean;
|
|
1142
|
+
default?: T;
|
|
1143
|
+
};
|
|
1144
|
+
type SneakPeakTypeControlType<T> = {
|
|
1145
|
+
[K in keyof T]-?: Mapped<K, T[K]>;
|
|
1146
|
+
}[keyof T];
|
|
1147
|
+
|
|
1148
|
+
type ControlProp<T> = AngleControlType<T> | CheckboxControlType<T> | ColorPickerControlType<T> | GroupControlType<T> | IconControlType<T> | InputFixContentControlType<T> | InputNumberControlType<T> | InputUnitControlType<T> | InputUnitSpacingControlType<T> | InputUnitWidthControlType<T> | InputControlType<T> | MarginControlType<T> | PaddingControlType<T> | PositionControlType<T> | RadioGroupControlType | RangeControlType<T> | SegmentControlType<T> | SelectControlType<T> | TextareaControlType<T> | ToggleControlType<T> | ImageControlType<T> | ChildrensControlType | GridControlType<T> | FlexControlType<T> | TextEditorControlType<T> | ProductControlType<T> | TypographyControlType<T> | TypographyV2ControlType<T> | MenuControlType<T> | BehaviorStateControlType<T> | PickLinkControlType<T> | BoxShadowControlType<T> | TextShadowControlType<T> | BorderControlType<T> | BorderRadiusControlType<T> | RadiusPresetControlType<T> | SizeControlType<T> | ChildItemType<T> | PickMultiProductControlType<T> | CollectionControlType<T> | BackgroundControlType<T> | VisibilityControlType<T> | SelectVariantControlType | CountdownEvergreenType | Timezone<T> | CustomContentControlType<T> | DateTimePickerControlType | CountdownDailyType | KlaviyoCodes | YotpoLoyaltyCodes | InputWidthControlType<T> | LayoutSegmentControlType<T> | InputSpacing<T> | UniqueIdControlType<T> | PositionSquareControlType<T> | CustomCodeEditor | LayoutControlType<T> | LayoutBannerControlType<T> | SwatchesLinkControlType<T> | VariantSwatchesPresetControlType<T> | ProductListControlType<T> | CollectionBannerControlType<T> | Ratio<T> | StickyDisplayControlType<T> | SyncProductPropertiesControlType<T> | StepsGuide<T> | ImageShape<T> | GridArrange<T> | SizeSetting$1<T> | ChildIconType<T> | DropdownInput<T> | Dropdown<T> | AliPickSectionControlType<T> | ParallaxScrollingType<T> | PlayPauseControlType<T> | LayoutCustomSegmentControlType<T> | SneakPeakRange<T> | SneakPeakTypeControlType<T> | BackgroundColorPickerType<T>;
|
|
1149
|
+
type ControlTriggerAction = {
|
|
1150
|
+
controlId: string;
|
|
1151
|
+
newValue?: any;
|
|
1152
|
+
controlType: string;
|
|
1153
|
+
groupType: string;
|
|
1154
|
+
valueIfNull?: any;
|
|
1155
|
+
};
|
|
976
1156
|
type Setting<P extends BaseProps> = {
|
|
977
1157
|
id: 'setting';
|
|
978
1158
|
note?: string;
|
|
@@ -1070,6 +1250,17 @@ type ControlUI = {
|
|
|
1070
1250
|
hideOnPages?: PageType[];
|
|
1071
1251
|
};
|
|
1072
1252
|
isMoreSetting?: boolean;
|
|
1253
|
+
hiddenDivice?: boolean;
|
|
1254
|
+
controlChangeTrigger?: {
|
|
1255
|
+
settings?: {
|
|
1256
|
+
source: string[];
|
|
1257
|
+
condition: string;
|
|
1258
|
+
action: ControlTriggerAction;
|
|
1259
|
+
}[];
|
|
1260
|
+
options?: {
|
|
1261
|
+
noRecordHistory?: boolean;
|
|
1262
|
+
};
|
|
1263
|
+
};
|
|
1073
1264
|
};
|
|
1074
1265
|
type PageType = 'ARTICLE' | 'BLOG' | 'COLLECTION' | 'GP_ARTICLE' | 'GP_BLOG' | 'GP_COLLECTION' | 'GP_INDEX' | 'GP_PRODUCT' | 'GP_STATIC' | 'PRODUCT' | 'STATIC' | 'THEME_SECTION';
|
|
1075
1266
|
type ComponentPreset = {
|
|
@@ -6070,7 +6261,7 @@ type PublishedThemePageOnlineStoreDataWhereInput = {
|
|
|
6070
6261
|
updatedAtNotIn?: InputMaybe<Scalars['Time'][]>;
|
|
6071
6262
|
};
|
|
6072
6263
|
type PublishedThemePageStatus = 'DRAFT' | 'PUBLISHED';
|
|
6073
|
-
type PublishedThemePageType = 'ARTICLE' | 'BLOG' | 'COLLECTION' | 'GP_ARTICLE' | 'GP_BLOG' | 'GP_COLLECTION' | 'GP_INDEX' | 'GP_PRODUCT' | 'GP_STATIC' | 'PRODUCT' | 'STATIC';
|
|
6264
|
+
type PublishedThemePageType = 'ARTICLE' | 'BLOG' | 'COLLECTION' | 'GP_ARTICLE' | 'GP_BLOG' | 'GP_COLLECTION' | 'GP_INDEX' | 'GP_PRODUCT' | 'GP_STATIC' | 'PRODUCT' | 'STATIC' | 'POST_PURCHASE';
|
|
6074
6265
|
/**
|
|
6075
6266
|
* PublishedThemePageWhereInput is used for filtering PublishedThemePage objects.
|
|
6076
6267
|
* Input was generated by ent.
|
|
@@ -7338,6 +7529,83 @@ type ProductInputAnalytic = {
|
|
|
7338
7529
|
currency?: string;
|
|
7339
7530
|
};
|
|
7340
7531
|
|
|
7532
|
+
declare enum AnimationType {
|
|
7533
|
+
Fade = "fade",
|
|
7534
|
+
Slide = "slide",
|
|
7535
|
+
Zoom = "zoom",
|
|
7536
|
+
Shake = "shake",
|
|
7537
|
+
None = "none"
|
|
7538
|
+
}
|
|
7539
|
+
declare enum AnimationSetting {
|
|
7540
|
+
Loop = "loop",
|
|
7541
|
+
Scale = "scale",
|
|
7542
|
+
Delay = "delay",
|
|
7543
|
+
Easing = "easing",
|
|
7544
|
+
Speed = "speed",
|
|
7545
|
+
IsFade = "isFade",
|
|
7546
|
+
Distance = "distance",
|
|
7547
|
+
Intensity = "intensity",
|
|
7548
|
+
Direction = "direction",
|
|
7549
|
+
ZoomDirection = "zoomDirection"
|
|
7550
|
+
}
|
|
7551
|
+
declare enum AnimationDirectionType {
|
|
7552
|
+
Left = "left",
|
|
7553
|
+
Right = "right",
|
|
7554
|
+
Up = "up",
|
|
7555
|
+
Down = "down"
|
|
7556
|
+
}
|
|
7557
|
+
type AnimationTrigger = 'appear' | 'hover';
|
|
7558
|
+
declare enum AnimationTriggerType {
|
|
7559
|
+
Appear = "appear",
|
|
7560
|
+
Hover = "hover"
|
|
7561
|
+
}
|
|
7562
|
+
declare enum AnimationZoomDirectionType {
|
|
7563
|
+
In = "in",
|
|
7564
|
+
Out = "out"
|
|
7565
|
+
}
|
|
7566
|
+
declare enum AnimationEasingType {
|
|
7567
|
+
Ease = "ease",
|
|
7568
|
+
EaseIn = "ease-in",
|
|
7569
|
+
EaseOut = "ease-out",
|
|
7570
|
+
Linear = "linear"
|
|
7571
|
+
}
|
|
7572
|
+
type AnimationBaseSetting = {
|
|
7573
|
+
loop: boolean;
|
|
7574
|
+
delay: number;
|
|
7575
|
+
distance: number;
|
|
7576
|
+
speed: number;
|
|
7577
|
+
intensity: number;
|
|
7578
|
+
easing: AnimationEasingType;
|
|
7579
|
+
direction: AnimationDirectionType;
|
|
7580
|
+
zoomDirection: AnimationZoomDirectionType;
|
|
7581
|
+
isFade: boolean;
|
|
7582
|
+
};
|
|
7583
|
+
/** Represents the animation setting extracted from the animation control */
|
|
7584
|
+
type AnimationSettingType = {
|
|
7585
|
+
scale: ScaleByDirection;
|
|
7586
|
+
} & AnimationBaseSetting;
|
|
7587
|
+
type ScaleByDirection = {
|
|
7588
|
+
[key in AnimationZoomDirectionType]: [number | string, number | string];
|
|
7589
|
+
};
|
|
7590
|
+
type AnimationShakeSettingType = Pick<AnimationSettingType, AnimationSetting.Loop | AnimationSetting.Intensity | AnimationSetting.Speed | AnimationSetting.Delay | AnimationSetting.Easing>;
|
|
7591
|
+
type AnimationZoomSettingType = Pick<AnimationSettingType, AnimationSetting.Scale | AnimationSetting.ZoomDirection | AnimationSetting.Speed | AnimationSetting.Delay | AnimationSetting.Easing | AnimationSetting.IsFade>;
|
|
7592
|
+
type AnimationFadeSettingType = Pick<AnimationSettingType, AnimationSetting.Speed | AnimationSetting.Delay | AnimationSetting.Easing>;
|
|
7593
|
+
type AnimationSlideSettingType = Pick<AnimationSettingType, AnimationSetting.Direction | AnimationSetting.Distance | AnimationSetting.Speed | AnimationSetting.Delay | AnimationSetting.Easing>;
|
|
7594
|
+
type SettingByAnimationType = {
|
|
7595
|
+
[key in AnimationType]: key extends AnimationType.Slide ? AnimationSlideSettingType : key extends AnimationType.Shake ? AnimationShakeSettingType : key extends AnimationType.Zoom ? AnimationZoomSettingType : key extends AnimationType.Fade ? AnimationFadeSettingType : never;
|
|
7596
|
+
};
|
|
7597
|
+
type SettingByAnimationValues = SettingByAnimationType[keyof SettingByAnimationType];
|
|
7598
|
+
type TriggerConfig = Record<AnimationTriggerType, AnimationTriggerConfig>;
|
|
7599
|
+
type AnimationConfig = {
|
|
7600
|
+
enabled: boolean;
|
|
7601
|
+
trigger: AnimationTriggerType;
|
|
7602
|
+
triggerConfig: TriggerConfig;
|
|
7603
|
+
};
|
|
7604
|
+
type AnimationTriggerConfig = {
|
|
7605
|
+
animation: AnimationType;
|
|
7606
|
+
setting: SettingByAnimationType;
|
|
7607
|
+
};
|
|
7608
|
+
|
|
7341
7609
|
type ExtraFiles = Record<string, string>;
|
|
7342
7610
|
type Props = {
|
|
7343
7611
|
uid: string;
|
|
@@ -7422,6 +7690,7 @@ type BuilderPreviewContextProps = {
|
|
|
7422
7690
|
forceChangeState: (data: BuilderState) => void;
|
|
7423
7691
|
initState: (data: BuilderEntityNested | BuilderEntityNested[]) => void;
|
|
7424
7692
|
getParents: (id: string, limit?: number) => BuilderEntity[];
|
|
7693
|
+
updateItemName: (id: string, name: string) => void;
|
|
7425
7694
|
};
|
|
7426
7695
|
type BuilderPreviewProviderProps = Pick<BuilderPreviewContextProps, 'state'> & {
|
|
7427
7696
|
children: React.ReactNode;
|
|
@@ -7497,6 +7766,7 @@ type ProductListContextProps = {
|
|
|
7497
7766
|
spacing?: ObjectDevices<number>;
|
|
7498
7767
|
layout?: 'grid' | 'slider';
|
|
7499
7768
|
dot?: ObjectDevices<boolean>;
|
|
7769
|
+
dotStyle?: ObjectDevices<'none' | 'inside' | 'outside'>;
|
|
7500
7770
|
arrow?: ObjectDevices<boolean>;
|
|
7501
7771
|
controlOverContent?: ObjectDevices<boolean>;
|
|
7502
7772
|
speed?: number;
|
|
@@ -7901,6 +8171,37 @@ declare const handleConvertClassColor: (value?: BorderStyle) => string | undefin
|
|
|
7901
8171
|
declare const handleConvertClassColorDynamicBtn: (value?: BorderStyle) => string | undefined;
|
|
7902
8172
|
declare const composeBorderCss: (borderV?: Border | undefined) => string;
|
|
7903
8173
|
|
|
8174
|
+
type ResponsiveKey<T extends ShortHandProperty> = `--${T}` | `--${T}-tablet` | `--${T}-mobile`;
|
|
8175
|
+
declare const removeNullUndefined: <T extends Record<string, any>>(obj: T) => T;
|
|
8176
|
+
declare const makeStyleKey: <T extends ShortHandProperty>(name: T) => string[];
|
|
8177
|
+
declare const makeStyle: <T extends ShortHandProperty, K>(style: Record<T, K>) => {
|
|
8178
|
+
[k: string]: Record<`--${T}`, K>;
|
|
8179
|
+
};
|
|
8180
|
+
declare const makeStyleState: <T extends ShortHandProperty, K>(name: T, value?: Partial<Record<StateType, K>> | undefined) => {};
|
|
8181
|
+
declare const makeStyleResponsiveState: <T extends ShortHandProperty, K>(name: T, value?: Partial<Record<NameDevices$1, Partial<Record<StateType, K>>>> | undefined) => {};
|
|
8182
|
+
declare const makeStyleResponsive: <T extends ShortHandProperty, K>(name: T, value?: Partial<Record<NameDevices$1, K>> | undefined, unit?: string) => Record<ResponsiveKey<T>, K>;
|
|
8183
|
+
declare const makeWidth: (widthValue?: ObjectDevices<string | number>, fullWidthValue?: ObjectDevices<boolean>) => ObjectDevices<string | number | undefined>;
|
|
8184
|
+
declare const makeGlobalSizeWidthResponsive: (globalSize?: ObjectDevices<SizeSettingGlobal>) => {
|
|
8185
|
+
'--w': string | undefined;
|
|
8186
|
+
'--w-tablet': string | undefined;
|
|
8187
|
+
'--w-mobile': string | undefined;
|
|
8188
|
+
};
|
|
8189
|
+
declare const makeGlobalSizeHeightResponsive: (globalSize?: ObjectDevices<SizeSettingGlobal>) => {
|
|
8190
|
+
'--h': string | undefined;
|
|
8191
|
+
'--h-tablet': string | undefined;
|
|
8192
|
+
'--h-mobile': string | undefined;
|
|
8193
|
+
};
|
|
8194
|
+
declare const makeHeight: (heighValue?: ObjectDevices<string | number>, autoHeight?: ObjectDevices<boolean>) => ObjectDevices<string | number | undefined>;
|
|
8195
|
+
declare const makeAspectRatio: (aspectRatio?: ObjectDevices<string>, aspectWidth?: ObjectDevices<string | number>, aspectHeight?: ObjectDevices<string | number>) => ObjectDevices<string>;
|
|
8196
|
+
declare const makeLineClamp: (lineClampValue?: ObjectDevices<number>, hasLineClampValue?: ObjectDevices<boolean>) => ObjectDevices<string | number | undefined>;
|
|
8197
|
+
|
|
8198
|
+
declare const getCarouselContainerHeight: <T>(dotStyle?: Partial<Record<NameDevices$1, T>> | undefined, dotSize?: ObjectDevices<number>, dotGapToCarousel?: ObjectDevices<number>) => {
|
|
8199
|
+
desktop: string | undefined;
|
|
8200
|
+
tablet: string | undefined;
|
|
8201
|
+
mobile: string | undefined;
|
|
8202
|
+
};
|
|
8203
|
+
declare const makeDotGapToCarouselStyle: <T extends ShortHandProperty, K>(dotStyle?: Partial<Record<NameDevices$1, K>> | undefined, dotGapToCarousel?: ObjectDevices<number>) => Record<ResponsiveKey<T>, K>;
|
|
8204
|
+
|
|
7904
8205
|
type ClassValue = ClassDictionary | string | null | undefined;
|
|
7905
8206
|
type ClassDictionary = Record<string, boolean | undefined | null>;
|
|
7906
8207
|
declare function cls(...classes: ClassValue[]): string;
|
|
@@ -7931,23 +8232,12 @@ declare const isEmptyChildren: (children: React.ReactNode) => boolean;
|
|
|
7931
8232
|
|
|
7932
8233
|
declare const filterToolbarPreview: (children: React.ReactNode, keep?: boolean) => React.ReactNode;
|
|
7933
8234
|
|
|
7934
|
-
|
|
7935
|
-
|
|
7936
|
-
|
|
7937
|
-
|
|
8235
|
+
declare const animations: () => {
|
|
8236
|
+
zoom: (target: Element, options: AnimationSettingType) => Animation;
|
|
8237
|
+
shake: (target: Element, options: AnimationSettingType) => Animation;
|
|
8238
|
+
fade: (target: Element, options: AnimationSettingType) => Animation;
|
|
8239
|
+
slide: (target: Element, options: AnimationSettingType) => Animation;
|
|
7938
8240
|
};
|
|
7939
|
-
declare const makeStyleState: <T extends ShortHandProperty, K>(name: T, value?: Partial<Record<StateType, K>> | undefined) => {};
|
|
7940
|
-
declare const makeStyleResponsiveState: <T extends ShortHandProperty, K>(name: T, value?: Partial<Record<NameDevices$1, Partial<Record<StateType, K>>>> | undefined) => {};
|
|
7941
|
-
declare const makeStyleResponsive: <T extends ShortHandProperty, K>(name: T, value?: Partial<Record<NameDevices$1, K>> | undefined) => Record<ResponsiveKey<T>, K>;
|
|
7942
|
-
declare const makeWidth: (widthValue?: ObjectDevices<string | number>, fullWidthValue?: ObjectDevices<boolean>) => ObjectDevices<string | number | undefined>;
|
|
7943
|
-
declare const makeGlobalSizeWidthResponsive: (globalSize?: ObjectDevices<SizeSettingGlobal>) => {
|
|
7944
|
-
'--w': string | undefined;
|
|
7945
|
-
'--w-tablet': string | undefined;
|
|
7946
|
-
'--w-mobile': string | undefined;
|
|
7947
|
-
};
|
|
7948
|
-
declare const makeHeight: (heighValue?: ObjectDevices<string | number>, autoHeight?: ObjectDevices<boolean>) => ObjectDevices<string | number | undefined>;
|
|
7949
|
-
declare const makeAspectRatio: (aspectRatio?: ObjectDevices<string>, aspectWidth?: ObjectDevices<string | number>, aspectHeight?: ObjectDevices<string | number>) => ObjectDevices<string>;
|
|
7950
|
-
declare const makeLineClamp: (lineClampValue?: ObjectDevices<number>, hasLineClampValue?: ObjectDevices<boolean>) => ObjectDevices<string | number | undefined>;
|
|
7951
8241
|
|
|
7952
8242
|
declare function normalizeBuilderData(data: BuilderEntityNested): {
|
|
7953
8243
|
[x: string]: BuilderEntity;
|
|
@@ -9503,7 +9793,7 @@ declare const composeRadiusResponsive: (radiusValue?: ObjectDevices<CornerRadius
|
|
|
9503
9793
|
declare const getRadiusStyleActiveState: (radiusValue?: StateProp<CornerRadius>) => React.CSSProperties;
|
|
9504
9794
|
declare const composeCornerCss: (value?: CornerRadius | undefined, important?: boolean) => string | undefined;
|
|
9505
9795
|
|
|
9506
|
-
declare function getSelectedVariant(variants?: Maybe<VariantSelectFragment>[], choices?: Record<string, string
|
|
9796
|
+
declare function getSelectedVariant(variants?: Maybe<VariantSelectFragment>[], choices?: Record<string, string>, variantId?: string | null): Maybe<VariantSelectFragment>;
|
|
9507
9797
|
declare function parseSelectedOption(options: SelectedOption[]): SelectedOption | undefined;
|
|
9508
9798
|
declare function checkAvailableVariantInStock(variants: Maybe<VariantSelectFragment>[] | undefined, optionId: string, optionValue: string): boolean;
|
|
9509
9799
|
|
|
@@ -9624,6 +9914,9 @@ declare const makeFixedBgAttachment: (background?: ObjectDevices<Background>) =>
|
|
|
9624
9914
|
[x: string]: string | undefined;
|
|
9625
9915
|
};
|
|
9626
9916
|
} | undefined;
|
|
9917
|
+
declare const GRADIENT_BGR_KEY = "linear-gradient";
|
|
9918
|
+
declare const getGradientBgrStyleForButton: (backgroundStyle: Partial<Record<StateType, ColorValueType>> | undefined) => {} | undefined;
|
|
9919
|
+
declare const getGradientBgrStyleByDevice: (backgroundStyle: Partial<Record<Devices, Background>> | undefined) => {} | undefined;
|
|
9627
9920
|
|
|
9628
9921
|
type OrderByType = 'TITLE_ASC' | 'TITLE_DESC' | 'CREATED_AT_ASC' | 'none' | 'CREATED_AT_DESC';
|
|
9629
9922
|
type FetchCollectionArgs = {
|
|
@@ -9663,6 +9956,7 @@ declare const generateCollectionQueryKey: (args: FetchCollectionArgs) => ['query
|
|
|
9663
9956
|
declare const generateProductsQueryKey: (args: FetchProductsParams) => ['query/products', FetchProductsParams];
|
|
9664
9957
|
|
|
9665
9958
|
type AdvanceValue = Primitive | ObjectDevices<Primitive>;
|
|
9959
|
+
declare const composeAdvanceStyleForPostPurchase: (data?: Record<string, AdvanceValue>, tag?: string) => React.CSSProperties;
|
|
9666
9960
|
declare function composeAdvanceStyle(data?: Record<string, AdvanceValue>, tag?: string): React.CSSProperties;
|
|
9667
9961
|
declare const splitStyle: (keys: ShortHandProperty[], style?: React.CSSProperties) => React.CSSProperties[];
|
|
9668
9962
|
|
|
@@ -9885,6 +10179,7 @@ declare const useProductListSettings: () => {
|
|
|
9885
10179
|
spacing?: Partial<Record<NameDevices$1, number>> | undefined;
|
|
9886
10180
|
layout?: "grid" | "slider" | undefined;
|
|
9887
10181
|
dot?: Partial<Record<NameDevices$1, boolean>> | undefined;
|
|
10182
|
+
dotStyle?: Partial<Record<NameDevices$1, "none" | "inside" | "outside">> | undefined;
|
|
9888
10183
|
arrow?: Partial<Record<NameDevices$1, boolean>> | undefined;
|
|
9889
10184
|
controlOverContent?: Partial<Record<NameDevices$1, boolean>> | undefined;
|
|
9890
10185
|
speed?: number | undefined;
|
|
@@ -9917,4 +10212,4 @@ type PublishedThemePageSelectFragment = Pick<PublishedThemePage, 'id' | 'name' |
|
|
|
9917
10212
|
|
|
9918
10213
|
declare const getProductBySlug: (fetcher: FetchFunc, slug?: string) => Promise<ProductSelectFragment>;
|
|
9919
10214
|
|
|
9920
|
-
export { AddOn, AddonProvider, AddonProviderProps, AlignItemProp, AlignProp, Background, BaseProps, BasePropsWrap, BlockEntity, BoldSubscriptionsWidgetType, Border, BorderStyle, BuilderComponentProvider, BuilderComponentProviderProps, BuilderEntity, BuilderEntityNested, BuilderPreviewProvider, BuilderPreviewProviderProps, BuilderProvider, BuilderProviderProps, BuilderState, Builtin, CartLineProvider, CartLineProviderProps, CollectionDetailFilterDocument, CollectionDetailFilterQueryResponse, CollectionDetailFilterQueryVariables, CollectionDocument, CollectionProvider, CollectionProviderProps, CollectionQueryResponse, CollectionQueryVariables, CollectionSelectFragment, CollectionsDocument, CollectionsQueryResponse, CollectionsQueryVariables, ColorKey, ColorType$1 as ColorType, ColorValueType, Component, ComponentPreset, ComponentSetting, ContainerProp, ControlProp, ControlUI, CornerRadius, CornerRadiusType, CustomComponentConfig, DeepPartial, DynamicCollection, DynamicProduct, ExtractState, FeraReviewsWidgetType, FetchCollectionArgs, FetchFunc, FetchProductParams, FlexDirectionProp, FontName, GlobalStyleConfig, GlobalStyleResponsiveConfig, GlobalSwatchesData, GraphQLConnection, GroupPropType, HSLAColorType, HSLColorType, HexColorType, ImageShape$1 as ImageShape, InitComponentType, InstantJudgeMeReviewsWidgetType, InstantKlaviyoWidgetType, InstantLooxReviewsWidgetType, JudgeMeReviewsWidgetType, KlaviyoWidgetType, LaiProductReviewsWidgetType, LooxReviewsWidgetType, ModalProvider, ModalProviderProps, NameDevices$1 as NameDevices, NestedKeys, ObjectDeviceGlobalType, ObjectDevices, ObjectLayoutValue, OmnisendWidgetType, OptionNormalStyle, OptionSpecialStyle, Options, PageContext, PageProvider, PageProviderProps, PageType, PageViewUpDocument, PageViewUpMutationResponse, PageViewUpMutationVariables, PickyStoryWidgetType, PreviewPageDocument, PreviewPageQueryResponse, PreviewPageQueryVariables, Primitive, ProductInputAnalytic, ProductListProvider, ProductListProviderProps, ProductProvider, ProductProviderProps, ProductReviewsWidgetType, ProductSelectFragment, ProductsDocument, ProductsQueryResponse, ProductsQueryVariables, PublishedThemePageSelectFragment, PublishedThemePagesDocument, PublishedThemePagesQueryResponse, PublishedThemePagesQueryVariables, RGBAColorType, RGBColorType, Ratio$1 as Ratio, RenderMemo as Render, RenderChildren, RenderIf, Render as RenderLiquid, RenderMode, RenderPreviewMemo as RenderPreview, RequiredCursorEdge, ResponsiveStateProp, RivyoWidgetType, RoundedSize, RyviuWidgetType, SectionData, SectionEntity, SectionProvider, SectionProviderProps, ShadowProps, ShadowStyle, ShadowStyleApplied, ShadowType, ShopProvider, ShopProviderProps, shop as ShopType, SizeProps, SizeSetting, SizeSettingGlobal, SizeType, SpacingType, StampedWidgetType, StateProp, StateSelector, StateType, StoreConfig, StorePropertyDocument, StorePropertyQueryResponse, StorePropertyQueryVariables, SwatchesOptionType, SwatchesOptionValue, TransformProp, TrustooWidgetType, TypographyProps, TypographySetting, TypographySettingV2, TypographyType, TypographyV2Attrs, TypographyV2Props, VariantSelectFragment, VitalsWidgetType, WiserWidgetType, WrapRenderChildren, baseAssetURL, calculateFirstProduct, checkAvailableVariantInStock, cls, composeAdvanceStyle, composeBackgroundCss, composeBorderCss, composeCornerCss, composeGridLayout, composeMemo, composePositionLineHeight, composePostionIconList, composeRadius, composeRadiusResponsive, composeShadowCss, composeSize, composeSizeCss, composeSpacing, composeTextColorCss, composeTypography, composeTypographyAttr, composeTypographyClassName, composeTypographyCss, composeTypographyStyle, composeTypographyV2, composeTypographyV2Css, convertOldLayout, dataStringify, fetchMedias, fetchVariants, filterToolbarPreview, flattenConnection, fpixel, genSizeClass, genTypoClass, genVariable, generateCollectionQueryKey, generateProductQueryKey, generateProductsQueryKey, getAspectRatioGlobalSize, getBgImageByDevice, getBorderStyle, getCollection, getCornerCSSFromGlobal, getCustomRadius, getGlobalColorCSSProp, getGlobalColorClass, getGlobalColorResponsiveClass, getGlobalColorResponsiveStyle, getGlobalColorStateClass, getGlobalColorStateClassDynamicBtn, getGlobalColorStateResponsiveClass, getGlobalColorStateResponsiveClassDynamicBtn, getGlobalColorStateResponsiveStyle, getGlobalColorStateStyle, getGlobalColorStyle, getGlobalSizeGap, getHeightByShapeGlobalSize, getPaddingGlobalSize, getProduct, getProductBySlug, getRadiusCSSFromGlobal, getRadiusStyleActiveState, getResponsiveStateValue, getResponsiveValue, getResponsiveValueByScreen, getSelectedVariant, getShortName, getSingleColorVariable, getSpacingVariable, getStyleBackgroundByDevice, getStyleShadow, getStyleShadowState, getWidthByShapeGlobalSize, getWidthHeightGlobalSize, globalEvent, gridToArrayRegex, gtag, handleConvertBorderColor, handleConvertBorderStyle, handleConvertBorderWidth, handleConvertClassColor, handleConvertClassColorDynamicBtn, isBrowser, isColor, isColumnDirectionExist, isDefined, isEmptyChildren, isLocalEnv, isSafari, loadScript, makeAspectRatio, makeFixedBgAttachment, makeGlobalSize, makeGlobalSizeWidthResponsive, makeHeight, makeLineClamp, makeStyle, makeStyleResponsive, makeStyleResponsiveState, makeStyleState, makeStyleWithDefault, makeWidth, normalizeBuilderData, optionLayoutStyle, parseSelectedOption, parseValueWithUnit, prefetchQueries, props, removeNullUndefined, splitStyle, styles, template, tiktokpixel, useAddToCart, useAddon, useAddons, useBuilderComponent, useBuilderPreviewStore, useBuilderStore, useCartData, useCartDiscountCodesUpdate, useCartId, useCartLine, useCartLineStore, useCartNoteUpdate, useCartUI, useCheckAvailableVariantInStock, useCheckoutUrl, useCollection, useCollectionQuery, useCollectionStore, useCollectionsQuery, useConnectedShopify, useCreateCart, useCurrency, useCurrentDevice, useCurrentVariant, useCurrentVariantInStock, useEditorMode, useFeaturedImageGlobal, useFormatMoney, useInitialSwatchesOptions, useIsSampleProduct, useIsStorefrontProduct, useIsSyncProduct, useIsomorphicLayoutEffect, useLazyVideo, useLoadScript, useLocale, useMatchMutate, useMobileOnly, useModalStore, useMoney, useMoneyFormat, usePageStore, usePageType, usePluginEnable, usePrevious, useProduct, useProductList, useProductListProducts, useProductListSettings, useProductListStore, useProductListStyles, useProductProperties, useProductQuery, useProductStore, useProductsQuery, useQuantity, useRemoveCartItem, useSection, useSectionStore, useSelectedOption, useShopStore, useStoreFront, useSuspenseFetch, useSwatches, useSwatchesOptions, useUniqProductID, useUpdateCartItem, useVariant, useVariantOutStock, useVariants, validateEmail };
|
|
10215
|
+
export { AddOn, AddonProvider, AddonProviderProps, AliReviewsWidgetType, AlignItemProp, AlignProp, AnimationBaseSetting, AnimationConfig, AnimationDirectionType, AnimationEasingType, AnimationFadeSettingType, AnimationSetting, AnimationSettingType, AnimationShakeSettingType, AnimationSlideSettingType, AnimationTrigger, AnimationTriggerType, AnimationType, AnimationZoomDirectionType, AnimationZoomSettingType, Background, BaseProps, BasePropsWrap, BlockEntity, BoldSubscriptionsWidgetType, Border, BorderStyle, BuilderComponentProvider, BuilderComponentProviderProps, BuilderEntity, BuilderEntityNested, BuilderPreviewProvider, BuilderPreviewProviderProps, BuilderProvider, BuilderProviderProps, BuilderState, Builtin, CartLineProvider, CartLineProviderProps, CollectionDetailFilterDocument, CollectionDetailFilterQueryResponse, CollectionDetailFilterQueryVariables, CollectionDocument, CollectionProvider, CollectionProviderProps, CollectionQueryResponse, CollectionQueryVariables, CollectionSelectFragment, CollectionsDocument, CollectionsQueryResponse, CollectionsQueryVariables, ColorKey, ColorType$1 as ColorType, ColorValueType, Component, ComponentPreset, ComponentSetting, ContainerProp, ControlProp, ControlTriggerAction, ControlUI, CornerRadius, CornerRadiusType, CustomComponentConfig, DeepPartial, DynamicCollection, DynamicProduct, ExtractState, FeraReviewsV3WidgetType, FeraReviewsWidgetType, FetchCollectionArgs, FetchFunc, FetchProductParams, FlexDirectionProp, FontName, GRADIENT_BGR_KEY, GlobalStyleConfig, GlobalStyleResponsiveConfig, GlobalSwatchesData, GraphQLConnection, GroupPropType, GrowaveWidgetType, HSLAColorType, HSLColorType, HexColorType, ImageShape$1 as ImageShape, InitComponentType, InstantJudgeMeReviewsWidgetType, InstantKlaviyoWidgetType, InstantLooxReviewsWidgetType, JudgeMeReviewsWidgetType, KlaviyoWidgetType, LaiProductReviewsAdvancedWidgetType, LaiProductReviewsWidgetType, LooxReviewsWidgetType, ModalProvider, ModalProviderProps, NameDevices$1 as NameDevices, NestedKeys, ObjectDeviceGlobalType, ObjectDevices, ObjectLayoutValue, OmnisendWidgetType, OpinewDesignWidgetType, OpinewWidgetType, OptionNormalStyle, OptionSpecialStyle, Options, PageContext, PageProvider, PageProviderProps, PageType, PageViewUpDocument, PageViewUpMutationResponse, PageViewUpMutationVariables, PickyStoryWidgetType, PreviewPageDocument, PreviewPageQueryResponse, PreviewPageQueryVariables, Primitive, ProductInputAnalytic, ProductListProvider, ProductListProviderProps, ProductProvider, ProductProviderProps, ProductReviewsWidgetType, ProductSelectFragment, ProductsDocument, ProductsQueryResponse, ProductsQueryVariables, PublishedThemePageSelectFragment, PublishedThemePagesDocument, PublishedThemePagesQueryResponse, PublishedThemePagesQueryVariables, RGBAColorType, RGBColorType, Ratio$1 as Ratio, RenderMemo as Render, RenderChildren, RenderIf, Render as RenderLiquid, RenderMode, RenderPreviewMemo as RenderPreview, RequiredCursorEdge, ResponsiveKey, ResponsiveStateProp, RivyoWidgetType, RoundedSize, RyviuWidgetType, ScaleByDirection, SectionData, SectionEntity, SectionProvider, SectionProviderProps, SettingByAnimationType, SettingByAnimationValues, ShadowProps, ShadowStyle, ShadowStyleApplied, ShadowType, ShopProvider, ShopProviderProps, shop as ShopType, SizeProps, SizeSetting, SizeSettingGlobal, SizeType, SpacingType, StampedWidgetType, StateProp, StateSelector, StateType, StoreConfig, StorePropertyDocument, StorePropertyQueryResponse, StorePropertyQueryVariables, SwatchesOptionType, SwatchesOptionValue, TransformProp, TriggerConfig, TrustooWidgetType, TypographyProps, TypographySetting, TypographySettingV2, TypographyType, TypographyV2Attrs, TypographyV2Props, UltimateSalesBoostWidgetType, VariantSelectFragment, VitalsWidgetType, WiserWidgetType, WrapRenderChildren, YotpoReviewsWidgetType, animations, baseAssetURL, calculateFirstProduct, checkAvailableVariantInStock, cls, composeAdvanceStyle, composeAdvanceStyleForPostPurchase, composeBackgroundCss, composeBorderCss, composeCornerCss, composeGridLayout, composeMemo, composePositionLineHeight, composePostionIconList, composeRadius, composeRadiusResponsive, composeShadowCss, composeSize, composeSizeCss, composeSpacing, composeTextColorCss, composeTypography, composeTypographyAttr, composeTypographyClassName, composeTypographyCss, composeTypographyStyle, composeTypographyV2, composeTypographyV2Css, convertOldLayout, dataStringify, fetchMedias, fetchVariants, filterToolbarPreview, flattenConnection, fpixel, genSizeClass, genTypoClass, genVariable, generateCollectionQueryKey, generateProductQueryKey, generateProductsQueryKey, getAspectRatioGlobalSize, getBgImageByDevice, getBorderStyle, getCarouselContainerHeight, getCollection, getCornerCSSFromGlobal, getCustomRadius, getGlobalColorCSSProp, getGlobalColorClass, getGlobalColorResponsiveClass, getGlobalColorResponsiveStyle, getGlobalColorStateClass, getGlobalColorStateClassDynamicBtn, getGlobalColorStateResponsiveClass, getGlobalColorStateResponsiveClassDynamicBtn, getGlobalColorStateResponsiveStyle, getGlobalColorStateStyle, getGlobalColorStyle, getGlobalSizeGap, getGradientBgrStyleByDevice, getGradientBgrStyleForButton, getHeightByShapeGlobalSize, getPaddingGlobalSize, getProduct, getProductBySlug, getRadiusCSSFromGlobal, getRadiusStyleActiveState, getResponsiveStateValue, getResponsiveValue, getResponsiveValueByScreen, getSelectedVariant, getShortName, getSingleColorVariable, getSpacingVariable, getStyleBackgroundByDevice, getStyleShadow, getStyleShadowState, getWidthByShapeGlobalSize, getWidthHeightGlobalSize, globalEvent, gridToArrayRegex, gtag, handleConvertBorderColor, handleConvertBorderStyle, handleConvertBorderWidth, handleConvertClassColor, handleConvertClassColorDynamicBtn, isBrowser, isColor, isColumnDirectionExist, isDefined, isEmptyChildren, isLocalEnv, isSafari, loadScript, makeAspectRatio, makeDotGapToCarouselStyle, makeFixedBgAttachment, makeGlobalSize, makeGlobalSizeHeightResponsive, makeGlobalSizeWidthResponsive, makeHeight, makeLineClamp, makeStyle, makeStyleKey, makeStyleResponsive, makeStyleResponsiveState, makeStyleState, makeStyleWithDefault, makeWidth, normalizeBuilderData, optionLayoutStyle, parseSelectedOption, parseValueWithUnit, prefetchQueries, props, removeNullUndefined, splitStyle, styles, template, tiktokpixel, useAddToCart, useAddon, useAddons, useBuilderComponent, useBuilderPreviewStore, useBuilderStore, useCartData, useCartDiscountCodesUpdate, useCartId, useCartLine, useCartLineStore, useCartNoteUpdate, useCartUI, useCheckAvailableVariantInStock, useCheckoutUrl, useCollection, useCollectionQuery, useCollectionStore, useCollectionsQuery, useConnectedShopify, useCreateCart, useCurrency, useCurrentDevice, useCurrentVariant, useCurrentVariantInStock, useEditorMode, useFeaturedImageGlobal, useFormatMoney, useInitialSwatchesOptions, useIsSampleProduct, useIsStorefrontProduct, useIsSyncProduct, useIsomorphicLayoutEffect, useLazyVideo, useLoadScript, useLocale, useMatchMutate, useMobileOnly, useModalStore, useMoney, useMoneyFormat, usePageStore, usePageType, usePluginEnable, usePrevious, useProduct, useProductList, useProductListProducts, useProductListSettings, useProductListStore, useProductListStyles, useProductProperties, useProductQuery, useProductStore, useProductsQuery, useQuantity, useRemoveCartItem, useSection, useSectionStore, useSelectedOption, useShopStore, useStoreFront, useSuspenseFetch, useSwatches, useSwatchesOptions, useUniqProductID, useUpdateCartItem, useVariant, useVariantOutStock, useVariants, validateEmail };
|