tf-checkout-react 1.3.48-beta.2 → 1.3.49-beat.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.
Files changed (41) hide show
  1. package/dist/api/index.d.ts +3 -5
  2. package/dist/components/index.d.ts +0 -1
  3. package/dist/components/ticketsContainer/index.d.ts +1 -2
  4. package/dist/hooks/usePixel.d.ts +6 -1
  5. package/dist/index.d.ts +0 -1
  6. package/dist/tf-checkout-react.cjs.development.js +71 -699
  7. package/dist/tf-checkout-react.cjs.development.js.map +1 -1
  8. package/dist/tf-checkout-react.cjs.production.min.js +1 -1
  9. package/dist/tf-checkout-react.cjs.production.min.js.map +1 -1
  10. package/dist/tf-checkout-react.esm.js +72 -699
  11. package/dist/tf-checkout-react.esm.js.map +1 -1
  12. package/dist/tf-checkout-styles.css +1 -1
  13. package/dist/utils/index.d.ts +1 -0
  14. package/dist/utils/isBrowser.d.ts +1 -0
  15. package/package.json +3 -11
  16. package/src/.d.ts +2 -3
  17. package/src/api/index.ts +11 -97
  18. package/src/components/billing-info-container/index.tsx +3 -1
  19. package/src/components/confirmationContainer/index.tsx +7 -19
  20. package/src/components/index.ts +1 -2
  21. package/src/components/paymentContainer/index.tsx +6 -2
  22. package/src/components/ticketsContainer/index.tsx +3 -8
  23. package/src/components/ticketsContainer/style.css +3 -0
  24. package/src/hooks/usePixel.ts +17 -24
  25. package/src/index.ts +1 -2
  26. package/src/utils/index.ts +1 -0
  27. package/src/utils/isBrowser.ts +2 -0
  28. package/dist/components/seatMapContainer/SeatMapComponent.d.ts +0 -14
  29. package/dist/components/seatMapContainer/TicketsComponent.d.ts +0 -25
  30. package/dist/components/seatMapContainer/addToCart.d.ts +0 -21
  31. package/dist/components/seatMapContainer/index.d.ts +0 -7
  32. package/dist/components/seatMapContainer/utils.d.ts +0 -9
  33. package/src/.DS_Store +0 -0
  34. package/src/components/.DS_Store +0 -0
  35. package/src/components/common/dist/PhoneNumberField.js +0 -96
  36. package/src/components/seatMapContainer/SeatMapComponent.tsx +0 -81
  37. package/src/components/seatMapContainer/TicketsComponent.tsx +0 -137
  38. package/src/components/seatMapContainer/addToCart.ts +0 -83
  39. package/src/components/seatMapContainer/index.tsx +0 -223
  40. package/src/components/seatMapContainer/utils.ts +0 -42
  41. package/src/types/seatMap.d.ts +0 -56
@@ -1,8 +1,9 @@
1
1
  import { AxiosResponse } from 'axios';
2
+ import { pageOptions } from '../hooks/usePixel';
2
3
  export declare const setCustomHeader: (response: any) => void;
3
4
  export declare const handleSetAccessToken: (token: string) => void;
4
5
  export declare function getEvent(id: string | number, pk?: string): Promise<AxiosResponse<any, any>>;
5
- export declare function getTickets(id: string | number, promoCode?: string, pk?: string): Promise<AxiosResponse<any, any>>;
6
+ export declare function getTickets(id: string | number, promoCode: string, pk?: string): Promise<AxiosResponse<any, any>>;
6
7
  export declare const addToCart: (id: string | number, data: any) => Promise<AxiosResponse<any, any>>;
7
8
  export declare const getCart: () => Promise<AxiosResponse<any, any>>;
8
9
  export declare const postOnCheckout: (data: any, accessToken?: string | undefined, freeTicket?: boolean) => Promise<AxiosResponse<any, any>>;
@@ -42,8 +43,5 @@ export declare const validatePhoneNumber: (phone: string) => Promise<any>;
42
43
  export declare const getAddons: (eventId: string) => Promise<any>;
43
44
  export declare const selectAddons: (data: any) => void;
44
45
  export declare const getCheckoutPageConfigs: () => Promise<any>;
45
- export declare const getSeatMapData: (eventId: string | number) => Promise<SeatMapDataResponse>;
46
- export declare const getSeatMapStatuses: (eventId: string | number) => Promise<any>;
47
- export declare const reserveSeat: (eventId: string | number, tierId: string, seatId: string) => Promise<any>;
48
- export declare const removeSeatReserve: (eventId: string | number, tierId: string, seatIds: string[]) => Promise<any>;
46
+ export declare function getPixelScript(id: string | number, pageOptions: pageOptions): Promise<AxiosResponse<any, any>>;
49
47
  export {};
@@ -7,4 +7,3 @@ export { OrderDetailsContainer } from './orderDetailsContainer';
7
7
  export { ResetPasswordContainer } from './resetPasswordContainer';
8
8
  export { TicketResaleContainer } from './ticketResale';
9
9
  export { AddonsContainter } from './addonsContainer';
10
- export { SeatMapContainer } from './seatMapContainer';
@@ -57,7 +57,6 @@ export interface IGetTickets {
57
57
  promoText?: string;
58
58
  showGroupNameBlock?: boolean;
59
59
  currencySybmol?: string;
60
- onGetTicketButtonClick?: () => void;
61
60
  }
62
61
  export interface ITicket {
63
62
  id: string | number;
@@ -66,5 +65,5 @@ export interface ITicket {
66
65
  export interface ISelectedTickets {
67
66
  [key: string]: string | number;
68
67
  }
69
- export declare const TicketsContainer: ({ onLoginSuccess, getTicketsLabel, eventId, onAddToCartSuccess, contentStyle, onAddToCartError, onGetTicketsSuccess, onGetTicketsError, onLogoutSuccess, onLogoutError, onGetProfileDataSuccess, onGetProfileDataError, theme, queryPromoCode, isPromotionsEnabled, themeOptions, isAccessCodeEnabled, hideSessionButtons, hideWaitingList, enableBillingInfoAutoCreate, isButtonScrollable, sortBySoldOut, disableCountdownLeadingZero, isLoggedIn, actionsSectionComponent: ActionsSectionComponent, ticketsHeaderComponent, hideTicketsHeader, enableInfluencersSection, enableAddOns, handleNotInvitedModalClose, handleInvalidLinkModalClose, ordersPath, showPoweredByImage, promoText, showGroupNameBlock, currencySybmol, onGetTicketButtonClick, }: IGetTickets) => JSX.Element;
68
+ export declare const TicketsContainer: ({ onLoginSuccess, getTicketsLabel, eventId, onAddToCartSuccess, contentStyle, onAddToCartError, onGetTicketsSuccess, onGetTicketsError, onLogoutSuccess, onLogoutError, onGetProfileDataSuccess, onGetProfileDataError, theme, queryPromoCode, isPromotionsEnabled, themeOptions, isAccessCodeEnabled, hideSessionButtons, hideWaitingList, enableBillingInfoAutoCreate, isButtonScrollable, sortBySoldOut, disableCountdownLeadingZero, isLoggedIn, actionsSectionComponent: ActionsSectionComponent, ticketsHeaderComponent, hideTicketsHeader, enableInfluencersSection, enableAddOns, handleNotInvitedModalClose, handleInvalidLinkModalClose, ordersPath, showPoweredByImage, promoText, showGroupNameBlock, currencySybmol, }: IGetTickets) => JSX.Element;
70
69
  export {};
@@ -1 +1,6 @@
1
- export declare const usePixel: (key: string | string[], eventId: string | number, alreadyLoadedEventData?: any) => Promise<void>;
1
+ export interface pageOptions {
2
+ pageUrl: string;
3
+ page?: string;
4
+ orderHash?: string;
5
+ }
6
+ export declare const usePixel: (eventId: string | number, options: pageOptions) => Promise<void>;
package/dist/index.d.ts CHANGED
@@ -14,4 +14,3 @@ export { ResetPasswordContainer } from './components/resetPasswordContainer';
14
14
  export { ForgotPasswordModal } from './components/forgotPasswordModal';
15
15
  export { AddonsContainter } from './components/addonsContainer';
16
16
  export { PoweredBy } from './components/common/PoweredBy';
17
- export { SeatMapContainer } from './components/seatMapContainer';