yt-uikit 0.8.84-drawer-layout.0 → 0.8.84

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.
@@ -1,5 +1,4 @@
1
1
  import React from "react";
2
- import { type DrawerLayout } from "./CartDrawer";
3
2
  import { stickyCartCustomizationDataProps } from "./StickyCart";
4
3
  import { CartOffersCarousalProps } from "./CartOffersCarousel";
5
4
  import { freebieMilestoneProps } from "./NextFreebieRow";
@@ -239,7 +238,6 @@ export interface CartProps {
239
238
  useCartShell?: boolean;
240
239
  showTrustedBadge?: boolean;
241
240
  trustedBadgeData?: trustedBadgeInterface;
242
- drawerLayoutData?: DrawerLayout;
243
241
  }
244
242
  declare const Cart: React.FC<CartProps>;
245
243
  export default Cart;
@@ -1,14 +1,6 @@
1
1
  import React from "react";
2
2
  import { CartProps, RewardCoupon } from "./Cart";
3
3
  import "./shared.scss";
4
- export interface DrawerLayout {
5
- headerIds?: string[];
6
- scroll?: {
7
- topIds?: string[];
8
- bottomIds?: string[];
9
- };
10
- footerIds?: string[];
11
- }
12
4
  interface CartDrawerProps extends CartProps {
13
5
  prefixMessageText?: string;
14
6
  suffixMessageText?: string;
@@ -25,10 +17,10 @@ interface CartDrawerProps extends CartProps {
25
17
  showCheckoutButtonPaymentIcons?: boolean;
26
18
  showCouponOptions?: boolean;
27
19
  rewardCoupons?: RewardCoupon[];
20
+ applyTemplateDiscount?: (templateId?: number) => Promise<any>;
28
21
  useCartShell?: boolean;
29
22
  showTrustedBadge?: boolean;
30
23
  trustedBadgeData?: CartProps["trustedBadgeData"];
31
- drawerLayoutData?: DrawerLayout;
32
24
  }
33
25
  declare const CartDrawer: React.FC<CartDrawerProps>;
34
26
  export default CartDrawer;