yt-uikit 0.8.15-loyalty-page-block.19 → 0.8.15-productTier-freebie-update.0

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.
@@ -264,6 +264,17 @@ export type Customizations = {
264
264
  createdAt?: string;
265
265
  updatedAt?: string;
266
266
  };
267
+ export type ProductTier = {
268
+ tier: number;
269
+ title: string;
270
+ minimumQuantity: number;
271
+ isFixed?: boolean;
272
+ isFreebieTier?: boolean;
273
+ products: {
274
+ productId: string;
275
+ variantIds: string[];
276
+ }[];
277
+ };
267
278
  export type BundlePayload = {
268
279
  showIndividualProductSelector: boolean;
269
280
  title?: string;
@@ -305,17 +316,7 @@ export type BundlePayload = {
305
316
  minimumQuantity: number;
306
317
  discountValue: number;
307
318
  }[];
308
- productTier?: {
309
- tier: number;
310
- title: string;
311
- minimumQuantity: number;
312
- isFixed?: boolean;
313
- isFreebieTier?: boolean;
314
- products: {
315
- productId: string;
316
- variantIds: string[];
317
- }[];
318
- }[];
319
+ productTier?: ProductTier[];
319
320
  };
320
321
  volumeTiers?: {
321
322
  isDefault: unknown;
@@ -4,5 +4,4 @@ export { default as Cart } from "./Cart";
4
4
  export { default as CouponFrame } from "./CouponFrame";
5
5
  export { default as Bundle } from "./BundleBlock";
6
6
  export { default as BundleLoader } from "./BundleBlock/Loader";
7
- export { default as LoyaltyPageBlock, LoyaltyPageConfigType, BrandConfigType, } from "./LoyaltyPageBlock/LoyaltyPageBlock";
8
7
  export { default as ProductOffers, ProductsOffersConfigType, CartCheckpoint, } from "./ProductOffersBlock/ProductsOffers";
package/dist/index.d.ts CHANGED
@@ -337,6 +337,17 @@ type Customizations = {
337
337
  createdAt?: string;
338
338
  updatedAt?: string;
339
339
  };
340
+ type ProductTier = {
341
+ tier: number;
342
+ title: string;
343
+ minimumQuantity: number;
344
+ isFixed?: boolean;
345
+ isFreebieTier?: boolean;
346
+ products: {
347
+ productId: string;
348
+ variantIds: string[];
349
+ }[];
350
+ };
340
351
  type BundlePayload = {
341
352
  showIndividualProductSelector: boolean;
342
353
  title?: string;
@@ -378,17 +389,7 @@ type BundlePayload = {
378
389
  minimumQuantity: number;
379
390
  discountValue: number;
380
391
  }[];
381
- productTier?: {
382
- tier: number;
383
- title: string;
384
- minimumQuantity: number;
385
- isFixed?: boolean;
386
- isFreebieTier?: boolean;
387
- products: {
388
- productId: string;
389
- variantIds: string[];
390
- }[];
391
- }[];
392
+ productTier?: ProductTier[];
392
393
  };
393
394
  volumeTiers?: {
394
395
  isDefault: unknown;
@@ -749,68 +750,6 @@ declare const Cart: React.FC<CartProps>;
749
750
  type BundleLoaderProps = {};
750
751
  declare const BundleLoader: React.FC<BundleLoaderProps>;
751
752
 
752
- interface LoyaltyPageConfigType {
753
- heroDesktopImage?: string;
754
- heroMobileImage?: string;
755
- heroTitle?: string;
756
- heroSubtitle?: string;
757
- heroTextAlignment?: "left" | "center" | "right";
758
- heroSubtitleFontSize?: string;
759
- heroSubtitleColor?: string;
760
- heroSubtitleFontWeight?: string;
761
- heroTitleFontSize?: string;
762
- heroTitleColor?: string;
763
- heroRegistrationCTAVisibility?: boolean;
764
- primaryColor?: string;
765
- primaryContrastColor?: string;
766
- secondaryColor?: string;
767
- secondaryContrastColor?: string;
768
- accentColor?: string;
769
- borderColor?: string;
770
- themeRoundness?: string;
771
- heroBannerVisibility?: "show" | "hide";
772
- stepsVisibility?: "show" | "hide";
773
- waysToEarnVisibility?: "show" | "hide";
774
- customSectionVisibility?: "show" | "hide";
775
- footerSignupVisibility?: "show" | "hide";
776
- customSectionImagePosition?: "left" | "right";
777
- customSectionTitle?: string;
778
- customSectionSubtitle?: string;
779
- customSectionTitleFontSize?: string;
780
- customSectionSubtitleFontSize?: string;
781
- customSectionImage?: string;
782
- customSectionTextAlignment?: "left" | "center" | "right";
783
- customSectionTitleColor?: string;
784
- customSectionSubtitleColor?: string;
785
- stepsTitle?: string;
786
- stepsSubtitle?: string;
787
- step1Title?: string;
788
- step1Description?: string;
789
- step2Title?: string;
790
- step2Description?: string;
791
- step3Title?: string;
792
- step3Description?: string;
793
- footerCustomText?: string;
794
- footerSignupSubtext?: string;
795
- }
796
- interface BrandConfigType {
797
- newSignupTokens?: number;
798
- firstOrderTokens?: number;
799
- instagramFollowPoints?: number;
800
- twitterFollowPoints?: number;
801
- facebookFollowPoints?: number;
802
- youtubeSubscriptionPoints?: number;
803
- rewardToLeaveReview?: number;
804
- birthdayPoints?: number;
805
- referralPointsForReferrer?: number;
806
- tokenCreditPercentage?: number;
807
- brandTokenName?: string;
808
- }
809
- declare const LoyaltyPageBlock: ({ config, brandConfig, }: {
810
- config: LoyaltyPageConfigType;
811
- brandConfig?: BrandConfigType | undefined;
812
- }) => React.JSX.Element;
813
-
814
753
  interface ProductsOffersConfigType {
815
754
  sectionType?: "coupon" | "list";
816
755
  sectionTitle?: string;
@@ -837,4 +776,4 @@ declare const ProductsOffers: ({ offersConfig, offers, }: {
837
776
  offers: CartCheckpoint[];
838
777
  }) => React.JSX.Element;
839
778
 
840
- export { BrandConfigType, Bundle, BundleLoader, Cart, CartCheckpoint, CouponFrame, LoyaltyPageBlock, LoyaltyPageConfigType, Nudge, ProductsOffers as ProductOffers, ProductsOffersConfigType, SpinnerWheel };
779
+ export { Bundle, BundleLoader, Cart, CartCheckpoint, CouponFrame, Nudge, ProductsOffers as ProductOffers, ProductsOffersConfigType, SpinnerWheel };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "yt-uikit",
3
- "version": "0.8.15-loyalty-page-block.19",
3
+ "version": "0.8.15-productTier-freebie-update.0",
4
4
  "description": "YourToken UI Kit",
5
5
  "scripts": {
6
6
  "rollup": "tsc && rollup -c",
@@ -1,63 +0,0 @@
1
- import React from "react";
2
- export interface LoyaltyPageConfigType {
3
- heroDesktopImage?: string;
4
- heroMobileImage?: string;
5
- heroTitle?: string;
6
- heroSubtitle?: string;
7
- heroTextAlignment?: "left" | "center" | "right";
8
- heroSubtitleFontSize?: string;
9
- heroSubtitleColor?: string;
10
- heroSubtitleFontWeight?: string;
11
- heroTitleFontSize?: string;
12
- heroTitleColor?: string;
13
- heroRegistrationCTAVisibility?: boolean;
14
- primaryColor?: string;
15
- primaryContrastColor?: string;
16
- secondaryColor?: string;
17
- secondaryContrastColor?: string;
18
- accentColor?: string;
19
- borderColor?: string;
20
- themeRoundness?: string;
21
- heroBannerVisibility?: "show" | "hide";
22
- stepsVisibility?: "show" | "hide";
23
- waysToEarnVisibility?: "show" | "hide";
24
- customSectionVisibility?: "show" | "hide";
25
- footerSignupVisibility?: "show" | "hide";
26
- customSectionImagePosition?: "left" | "right";
27
- customSectionTitle?: string;
28
- customSectionSubtitle?: string;
29
- customSectionTitleFontSize?: string;
30
- customSectionSubtitleFontSize?: string;
31
- customSectionImage?: string;
32
- customSectionTextAlignment?: "left" | "center" | "right";
33
- customSectionTitleColor?: string;
34
- customSectionSubtitleColor?: string;
35
- stepsTitle?: string;
36
- stepsSubtitle?: string;
37
- step1Title?: string;
38
- step1Description?: string;
39
- step2Title?: string;
40
- step2Description?: string;
41
- step3Title?: string;
42
- step3Description?: string;
43
- footerCustomText?: string;
44
- footerSignupSubtext?: string;
45
- }
46
- export interface BrandConfigType {
47
- newSignupTokens?: number;
48
- firstOrderTokens?: number;
49
- instagramFollowPoints?: number;
50
- twitterFollowPoints?: number;
51
- facebookFollowPoints?: number;
52
- youtubeSubscriptionPoints?: number;
53
- rewardToLeaveReview?: number;
54
- birthdayPoints?: number;
55
- referralPointsForReferrer?: number;
56
- tokenCreditPercentage?: number;
57
- brandTokenName?: string;
58
- }
59
- declare const LoyaltyPageBlock: ({ config, brandConfig, }: {
60
- config: LoyaltyPageConfigType;
61
- brandConfig?: BrandConfigType | undefined;
62
- }) => React.JSX.Element;
63
- export default LoyaltyPageBlock;
@@ -1,63 +0,0 @@
1
- import React from "react";
2
- export interface LoyaltyPageConfigType {
3
- heroDesktopImage?: string;
4
- heroMobileImage?: string;
5
- heroTitle?: string;
6
- heroSubtitle?: string;
7
- heroTextAlignment?: "left" | "center" | "right";
8
- heroSubtitleFontSize?: string;
9
- heroSubtitleColor?: string;
10
- heroSubtitleFontWeight?: string;
11
- heroTitleFontSize?: string;
12
- heroTitleColor?: string;
13
- heroRegistrationCTAVisibility?: boolean;
14
- primaryColor?: string;
15
- primaryContrastColor?: string;
16
- secondaryColor?: string;
17
- secondaryContrastColor?: string;
18
- accentColor?: string;
19
- borderColor?: string;
20
- themeRoundness?: string;
21
- heroBannerVisibility?: "show" | "hide";
22
- stepsVisibility?: "show" | "hide";
23
- waysToEarnVisibility?: "show" | "hide";
24
- customSectionVisibility?: "show" | "hide";
25
- footerSignupVisibility?: "show" | "hide";
26
- customSectionImagePosition?: "left" | "right";
27
- customSectionTitle?: string;
28
- customSectionSubtitle?: string;
29
- customSectionTitleFontSize?: string;
30
- customSectionSubtitleFontSize?: string;
31
- customSectionImage?: string;
32
- customSectionTextAlignment?: "left" | "center" | "right";
33
- customSectionTitleColor?: string;
34
- customSectionSubtitleColor?: string;
35
- stepsTitle?: string;
36
- stepsSubtitle?: string;
37
- step1Title?: string;
38
- step1Description?: string;
39
- step2Title?: string;
40
- step2Description?: string;
41
- step3Title?: string;
42
- step3Description?: string;
43
- footerCustomText?: string;
44
- footerSignupSubtext?: string;
45
- }
46
- export interface BrandConfigType {
47
- newSignupTokens?: number;
48
- firstOrderTokens?: number;
49
- instagramFollowPoints?: number;
50
- twitterFollowPoints?: number;
51
- facebookFollowPoints?: number;
52
- youtubeSubscriptionPoints?: number;
53
- rewardToLeaveReview?: number;
54
- birthdayPoints?: number;
55
- referralPointsForReferrer?: number;
56
- tokenCreditPercentage?: number;
57
- brandTokenName?: string;
58
- }
59
- declare const LoyaltyPageBlock: ({ config, brandConfig, }: {
60
- config: LoyaltyPageConfigType;
61
- brandConfig?: BrandConfigType | undefined;
62
- }) => React.JSX.Element;
63
- export default LoyaltyPageBlock;