tf-checkout-react 1.6.6-beta.18 → 1.6.6-beta.19

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 (29) hide show
  1. package/dist/adapters/customFields.d.ts +1 -0
  2. package/dist/api/common.d.ts +1 -0
  3. package/dist/api/index.d.ts +1 -0
  4. package/dist/components/addonsContainer/AddonComponent.d.ts +5 -1
  5. package/dist/components/addonsContainer/index.d.ts +3 -1
  6. package/dist/components/billing-info-container/index.d.ts +1 -0
  7. package/dist/components/ticketsContainer/TimeSlotsSection.d.ts +17 -0
  8. package/dist/tf-checkout-react.cjs.development.js +888 -635
  9. package/dist/tf-checkout-react.cjs.development.js.map +1 -1
  10. package/dist/tf-checkout-react.cjs.production.min.js +1 -1
  11. package/dist/tf-checkout-react.cjs.production.min.js.map +1 -1
  12. package/dist/tf-checkout-react.esm.js +889 -636
  13. package/dist/tf-checkout-react.esm.js.map +1 -1
  14. package/dist/types/checkoutPageConfigs.d.ts +1 -1
  15. package/dist/utils/customFields.d.ts +11 -0
  16. package/package.json +1 -1
  17. package/src/adapters/customFields.ts +7 -1
  18. package/src/api/common.ts +6 -0
  19. package/src/components/addonsContainer/AddonComponent.tsx +65 -11
  20. package/src/components/addonsContainer/index.tsx +15 -2
  21. package/src/components/billing-info-container/index.tsx +9 -1
  22. package/src/components/ticketsContainer/TicketRow.tsx +1 -1
  23. package/src/components/ticketsContainer/TicketsSection.tsx +2 -2
  24. package/src/components/ticketsContainer/TimeSlotsSection.tsx +118 -0
  25. package/src/components/ticketsContainer/index.tsx +49 -12
  26. package/src/hoc/CustomFields/index.tsx +8 -0
  27. package/src/types/api/common.d.ts +4 -0
  28. package/src/types/checkoutPageConfigs.ts +1 -1
  29. package/src/utils/customFields.ts +22 -0
@@ -8,4 +8,5 @@ export declare const fieldDataAdapter: (field: IGroupItem) => IGroupItem;
8
8
  export declare const customFieldsDataAdapter: (data: any) => {
9
9
  ticketsFields: IGroupItem[];
10
10
  orderFields: IGroupItem[];
11
+ addOnFields: IGroupItem[];
11
12
  };
@@ -1,5 +1,6 @@
1
1
  export declare const getEvent: (id: string | number, pk?: string | undefined) => Promise<IEventResponse>;
2
2
  export declare const getTickets: (eventId: string | number, promoCode: string, pk?: string | undefined) => Promise<ITicketsAdaptedResponse>;
3
+ export declare const getTimeSlotsData: (eventId: string | number) => Promise<TimeSlotsResponse>;
3
4
  export declare const getCountries: () => Promise<ICountriesResponse>;
4
5
  export declare const getStates: (countryId: string | number) => Promise<IStatesResponse>;
5
6
  export declare const sendRSVPInfo: (eventId: number, data: {
@@ -59,6 +59,7 @@ export declare const getCheckoutPageConfigs: () => Promise<ResponseConfigs>;
59
59
  export declare const getCustomFields: (eventId: string) => Promise<{
60
60
  ticketsFields: import("../types").IGroupItem[];
61
61
  orderFields: import("../types").IGroupItem[];
62
+ addOnFields: import("../types").IGroupItem[];
62
63
  }>;
63
64
  export declare const updateOrderCustomFields: (eventId: string, orderId: string, customFieldsData: Record<string, any>) => Promise<AxiosResponse<any, any>>;
64
65
  export declare const updateTicketHoldersCustomFields: (eventId: string, customFieldsData: Record<string, any>, ticketHash: string) => Promise<AxiosResponse<any, any>>;
@@ -4,6 +4,10 @@ interface IAddonComponentProps {
4
4
  data: any;
5
5
  selectOptions: any;
6
6
  handleAddonChange?: (...res: any) => void;
7
+ addOnDataWithCustomFields: any;
8
+ configs: any;
9
+ values: any;
10
+ errors: any;
7
11
  }
8
- declare const AddonComponent: ({ classNamePrefix, data, selectOptions, handleAddonChange, }: IAddonComponentProps) => JSX.Element;
12
+ declare const AddonComponent: ({ classNamePrefix, data, selectOptions, handleAddonChange, addOnDataWithCustomFields, configs, values, errors, }: IAddonComponentProps) => JSX.Element;
9
13
  export default AddonComponent;
@@ -13,8 +13,10 @@ export interface IAddonContainterProps {
13
13
  onPendingVerification?: () => void;
14
14
  samePage?: boolean;
15
15
  descriptionTrigger?: "click" | "hover" | "always";
16
+ addOnDataWithCustomFields: any;
17
+ configs: any;
16
18
  }
17
19
  export interface ObjectLiteral {
18
20
  [key: string]: any;
19
21
  }
20
- export declare const AddonsContainter: ({ classNamePrefix, enableBillingInfoAutoCreate, enableTimer, onGetAddonsPageInfoSuccess, onGetAddonsPageInfoError, onPostCheckoutSuccess, onPostCheckoutError, onConfirmSelectionSuccess, onConfirmSelectionError, onCountdownFinish, onPendingVerification, samePage, descriptionTrigger, }: IAddonContainterProps) => JSX.Element;
22
+ export declare const AddonsContainter: ({ classNamePrefix, enableBillingInfoAutoCreate, enableTimer, onGetAddonsPageInfoSuccess, onGetAddonsPageInfoError, onPostCheckoutSuccess, onPostCheckoutError, onConfirmSelectionSuccess, onConfirmSelectionError, onCountdownFinish, onPendingVerification, samePage, descriptionTrigger, addOnDataWithCustomFields, configs, }: IAddonContainterProps) => JSX.Element;
@@ -56,6 +56,7 @@ export interface IBillingInfoPage {
56
56
  onPendingVerification?: () => void;
57
57
  includeAddons?: boolean;
58
58
  addonsProps?: IAddonContainterProps;
59
+ addOnDataWithCustomFields?: any;
59
60
  }
60
61
  declare const WithCustomFieldsBillingInfoContainer: (props: any) => JSX.Element;
61
62
  export { WithCustomFieldsBillingInfoContainer as BillingInfoContainer };
@@ -0,0 +1,17 @@
1
+ import React, { Dispatch, ReactNode, SetStateAction } from "react";
2
+ interface Props {
3
+ event: any;
4
+ eventId: number;
5
+ availableDates: string[];
6
+ selectedTickets: any;
7
+ setSelectedTickets: Dispatch<SetStateAction<any>>;
8
+ handleTicketSelect: any;
9
+ sortBySoldOut: boolean;
10
+ hideTicketsHeader: boolean;
11
+ ticketsHeaderComponent?: ReactNode;
12
+ showGroupNameBlock?: boolean;
13
+ currencySybmol?: string;
14
+ isSeatMapAllowed?: boolean;
15
+ }
16
+ declare const TimeSlotsSection: React.FC<Props>;
17
+ export default TimeSlotsSection;