tf-checkout-react 1.0.99-beta.10 → 1.0.99-beta.13
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/components/countdown/index.d.ts +2 -1
- package/dist/components/ticketsContainer/AccessCodeSection.d.ts +7 -0
- package/dist/components/ticketsContainer/PromoCodeSection.d.ts +6 -9
- package/dist/components/ticketsContainer/TicketsSection.d.ts +3 -2
- package/dist/components/ticketsContainer/index.d.ts +6 -1
- package/dist/tf-checkout-react.cjs.development.js +205 -150
- package/dist/tf-checkout-react.cjs.development.js.map +1 -1
- package/dist/tf-checkout-react.cjs.production.min.js +1 -1
- package/dist/tf-checkout-react.cjs.production.min.js.map +1 -1
- package/dist/tf-checkout-react.esm.js +205 -150
- package/dist/tf-checkout-react.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/billing-info-container/index.tsx +8 -1
- package/src/components/countdown/index.tsx +9 -2
- package/src/components/paymentContainer/index.tsx +2 -1
- package/src/components/ticketsContainer/AccessCodeSection.tsx +50 -0
- package/src/components/ticketsContainer/PromoCodeSection.tsx +23 -37
- package/src/components/ticketsContainer/ReferralLogic.tsx +3 -5
- package/src/components/ticketsContainer/TicketsSection.tsx +8 -4
- package/src/components/ticketsContainer/index.tsx +92 -52
|
@@ -6,7 +6,8 @@ interface CountdownTypes {
|
|
|
6
6
|
title?: string;
|
|
7
7
|
message?: string;
|
|
8
8
|
showMessage?: boolean;
|
|
9
|
+
disableLeadingZero?: boolean;
|
|
9
10
|
callback?: () => void;
|
|
10
11
|
}
|
|
11
|
-
declare function Countdown({ startDate, timezone, title, message, showMessage, callback }: CountdownTypes): JSX.Element;
|
|
12
|
+
declare function Countdown({ startDate, timezone, title, message, showMessage, disableLeadingZero, callback }: CountdownTypes): JSX.Element;
|
|
12
13
|
export default Countdown;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export interface IAccessCodeSectionProps {
|
|
3
|
+
code: string;
|
|
4
|
+
setCode: (value: string) => void;
|
|
5
|
+
updateTickets: (value: boolean, type?: string) => void;
|
|
6
|
+
}
|
|
7
|
+
export declare const AccessCodeSection: ({ code, setCode, updateTickets }: IAccessCodeSectionProps) => JSX.Element;
|
|
@@ -1,14 +1,11 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
export interface IPromoCodeSectionProps {
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
code: string;
|
|
4
|
+
codeIsApplied: boolean;
|
|
5
5
|
showPromoInput: boolean;
|
|
6
|
-
|
|
7
|
-
isAllTicketsSoldOut: boolean;
|
|
8
|
-
isAccessCodeEnabled?: boolean;
|
|
9
|
-
isPromoLoading?: boolean;
|
|
10
|
-
setPromoCode: (value: string) => void;
|
|
11
|
-
setPromoCodeUpdated: (value: string) => void;
|
|
6
|
+
setCode: (value: string) => void;
|
|
12
7
|
setShowPromoInput: (value: boolean) => void;
|
|
8
|
+
updateTickets: (value: boolean, type: string) => void;
|
|
9
|
+
setCodeIsApplied: (value: boolean) => void;
|
|
13
10
|
}
|
|
14
|
-
export declare const PromoCodeSection: ({
|
|
11
|
+
export declare const PromoCodeSection: ({ code, codeIsApplied, showPromoInput, setCode, setShowPromoInput, updateTickets, setCodeIsApplied }: IPromoCodeSectionProps) => JSX.Element;
|
|
@@ -4,7 +4,8 @@ interface ITicketsSectionProps {
|
|
|
4
4
|
ticketsList: any;
|
|
5
5
|
selectedTickets: any;
|
|
6
6
|
handleTicketSelect: any;
|
|
7
|
-
|
|
7
|
+
codeIsApplied: boolean;
|
|
8
|
+
sortBySoldOut: boolean;
|
|
8
9
|
}
|
|
9
|
-
export declare const TicketsSection: ({ ticketsList, selectedTickets, handleTicketSelect,
|
|
10
|
+
export declare const TicketsSection: ({ ticketsList, selectedTickets, handleTicketSelect, codeIsApplied, sortBySoldOut, }: ITicketsSectionProps) => JSX.Element;
|
|
10
11
|
export {};
|
|
@@ -10,6 +10,7 @@ interface CartSuccess {
|
|
|
10
10
|
phone_required: boolean;
|
|
11
11
|
event_id: string;
|
|
12
12
|
hash?: string;
|
|
13
|
+
total?: string;
|
|
13
14
|
}
|
|
14
15
|
export interface IGetTickets {
|
|
15
16
|
eventId: number;
|
|
@@ -34,6 +35,10 @@ export interface IGetTickets {
|
|
|
34
35
|
hideWaitingList?: boolean;
|
|
35
36
|
enableBillingInfoAutoCreate?: boolean;
|
|
36
37
|
isButtonScrollable?: boolean;
|
|
38
|
+
sortBySoldOut?: boolean;
|
|
39
|
+
disableCountdownLeadingZero?: boolean;
|
|
40
|
+
isLoggedIn?: boolean;
|
|
41
|
+
actionsSectionComponent?: any;
|
|
37
42
|
}
|
|
38
43
|
export interface ITicket {
|
|
39
44
|
id: string | number;
|
|
@@ -42,5 +47,5 @@ export interface ITicket {
|
|
|
42
47
|
export interface ISelectedTickets {
|
|
43
48
|
[key: string]: string | number;
|
|
44
49
|
}
|
|
45
|
-
export declare const TicketsContainer: ({ onLoginSuccess, getTicketsLabel, eventId, onAddToCartSuccess, contentStyle, onAddToCartError, onGetTicketsSuccess, onGetTicketsError, onLogoutSuccess, onLogoutError, theme, queryPromoCode, isPromotionsEnabled, themeOptions, isAccessCodeEnabled, hideSessionButtons, hideWaitingList, enableBillingInfoAutoCreate, isButtonScrollable }: IGetTickets) => JSX.Element;
|
|
50
|
+
export declare const TicketsContainer: ({ onLoginSuccess, getTicketsLabel, eventId, onAddToCartSuccess, contentStyle, onAddToCartError, onGetTicketsSuccess, onGetTicketsError, onLogoutSuccess, onLogoutError, theme, queryPromoCode, isPromotionsEnabled, themeOptions, isAccessCodeEnabled, hideSessionButtons, hideWaitingList, enableBillingInfoAutoCreate, isButtonScrollable, sortBySoldOut, disableCountdownLeadingZero, isLoggedIn, actionsSectionComponent: ActionsSectionComponent }: IGetTickets) => JSX.Element;
|
|
46
51
|
export {};
|