@plurix/coupons
Advanced tools
Comparing version 0.2.13-sl802.17 to 0.2.13-sl802.18
import React from 'react'; | ||
import type { CouponType } from '../../types/CouponType'; | ||
import type { View } from '../../types/Views'; | ||
import type { AppliedCouponType } from '../AppliedCoupon'; | ||
import type { AlertType } from '../Alert'; | ||
export interface CouponCardProps { | ||
@@ -9,2 +9,3 @@ account: string; | ||
hasItemsInCart: boolean; | ||
isIO?: boolean; | ||
item: CouponType; | ||
@@ -21,5 +22,6 @@ firstCouponName: string; | ||
setAlert: (errorMessage: boolean) => void; | ||
setType: (type: AppliedCouponType) => void; | ||
setType: (type: AlertType) => void; | ||
setIsCloseModalEmpty: (isCloseModalEmpty: boolean) => void; | ||
genericTaggingEvent?: (name: string, params: object) => void; | ||
} | ||
export declare const CouponCard: ({ account, hasItemsInCart, orderFormId, item, firstCouponName, secondCouponName, replaceCoupon, setView, setActiveRule, setDataItem, setFirstCouponName, setSecondCouponName, setReplaceCoupon, setAlert, setType, setIsCloseModalEmpty, }: CouponCardProps) => React.JSX.Element; | ||
export declare const CouponCard: ({ account, orderFormId, hasItemsInCart, isIO, item, firstCouponName, secondCouponName, replaceCoupon, setView, setActiveRule, setDataItem, setFirstCouponName, setSecondCouponName, setReplaceCoupon, setAlert, setType, setIsCloseModalEmpty, genericTaggingEvent, }: CouponCardProps) => React.JSX.Element; |
@@ -5,3 +5,4 @@ import React from 'react'; | ||
title: string; | ||
genericTaggingEvent?: (name: string, params: object) => void; | ||
} | ||
export declare const ModalHeader: ({ closeModal, title }: ModalHeaderProps) => React.JSX.Element; | ||
export declare const ModalHeader: ({ closeModal, title, genericTaggingEvent, }: ModalHeaderProps) => React.JSX.Element; |
@@ -7,3 +7,3 @@ import React from 'react'; | ||
} | ||
export declare const ModalRules: ({ children, isIO, closeModal, title, cancelButtonAction, ...modalFooterProps }: React.PropsWithChildren<ModalRulesProps>) => React.JSX.Element; | ||
export declare const ModalRules: ({ children, isIO, closeModal, title, genericTaggingEvent, cancelButtonAction, ...modalFooterProps }: React.PropsWithChildren<ModalRulesProps>) => React.JSX.Element; | ||
export {}; |
@@ -9,4 +9,5 @@ import React from 'react'; | ||
closeIOModal?: () => void; | ||
genericTaggingEvent?: (name: string, params: object) => void; | ||
} | ||
export declare const Coupons: ({ orderFormId, hasItemsInCart, builder, account, isIO, closeIOModal, }: CouponsProps) => React.JSX.Element; | ||
export declare const Coupons: ({ orderFormId, hasItemsInCart, builder, account, isIO, closeIOModal, genericTaggingEvent, }: CouponsProps) => React.JSX.Element; | ||
export {}; |
@@ -6,6 +6,5 @@ import React from 'react'; | ||
interface CouponsViewProps extends Omit<CouponCardProps, OmittedProps> { | ||
account: string; | ||
orderFormId: string; | ||
hasItemsInCart: boolean; | ||
account: string; | ||
isIO?: boolean; | ||
closeIOModal?: () => void; | ||
@@ -15,3 +14,3 @@ loading: boolean; | ||
} | ||
export declare const CouponsView: ({ orderFormId, hasItemsInCart, account, isIO, closeIOModal, loading, coupons, firstCouponName, secondCouponName, replaceCoupon, setView, setActiveRule, setDataItem, setFirstCouponName, setSecondCouponName, setReplaceCoupon, setIsCloseModalEmpty, }: CouponsViewProps) => React.JSX.Element; | ||
export declare const CouponsView: ({ account, orderFormId, hasItemsInCart, isIO, closeIOModal, loading, coupons, firstCouponName, secondCouponName, replaceCoupon, setView, setActiveRule, setDataItem, setFirstCouponName, setSecondCouponName, setReplaceCoupon, setIsCloseModalEmpty, genericTaggingEvent, }: CouponsViewProps) => React.JSX.Element; | ||
export {}; |
import React from 'react'; | ||
interface EmptyCartViewProps { | ||
setIsCloseModalEmpty: (isCloseModalEmpty: boolean) => void; | ||
genericTaggingEvent?: (name: string, params: object) => void; | ||
} | ||
export declare const EmptyCartView: ({ setIsCloseModalEmpty }: EmptyCartViewProps) => React.JSX.Element; | ||
export declare const EmptyCartView: ({ setIsCloseModalEmpty, genericTaggingEvent, }: EmptyCartViewProps) => React.JSX.Element; | ||
export {}; |
@@ -11,4 +11,5 @@ import React from 'react'; | ||
closeIOModal?: () => void; | ||
genericTaggingEvent?: (name: string, params: object) => void; | ||
} | ||
export declare const OverwriteView: ({ firstCouponName, secondCouponName, setView, setReplaceCoupon, setSecondCouponName, isIO, closeIOModal, }: OverwriteViewProps) => React.JSX.Element; | ||
export declare const OverwriteView: ({ firstCouponName, secondCouponName, setView, setReplaceCoupon, setSecondCouponName, isIO, closeIOModal, genericTaggingEvent, }: OverwriteViewProps) => React.JSX.Element; | ||
export {}; |
@@ -10,4 +10,5 @@ import React from 'react'; | ||
closeIOModal?: () => void; | ||
genericTaggingEvent?: (name: string, params: object) => void; | ||
} | ||
export declare const RulesView: ({ dataItem, setActiveRule, setView, isIO, closeIOModal, }: RulesViewProps) => React.JSX.Element; | ||
export declare const RulesView: ({ dataItem, setActiveRule, setView, isIO, closeIOModal, genericTaggingEvent, }: RulesViewProps) => React.JSX.Element; | ||
export {}; |
{ | ||
"version": "0.2.13-sl802.17", | ||
"version": "0.2.13-sl802.18", | ||
"license": "MIT", | ||
@@ -19,2 +19,3 @@ "main": "dist/index.js", | ||
"prepare": "tsdx build", | ||
"format": "prettier --write \"**/*.{ts,js,tsx,jsx,json,css,scss}\"", | ||
"size": "size-limit", | ||
@@ -66,2 +67,3 @@ "analyze": "size-limit --why" | ||
"husky": "^8.0.1", | ||
"prettier": "^2.2.1", | ||
"react": "^18.1.0", | ||
@@ -68,0 +70,0 @@ "react-dom": "^18.1.0", |
@@ -0,0 +0,0 @@ import axios from 'axios'; |
@@ -0,0 +0,0 @@ import axios from 'axios'; |
@@ -0,0 +0,0 @@ import axios from 'axios'; |
@@ -0,0 +0,0 @@ export interface CouponType { |
@@ -0,0 +0,0 @@ export interface SetOrderFormCouponResponse { |
export type View = 'coupons-view' | 'rules-view' | 'overwrite-view'; |
@@ -0,0 +0,0 @@ export { CouponsView } from './CouponsView'; |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
915834
6793
23