tf-checkout-react 1.0.68 → 1.0.72

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 (34) hide show
  1. package/dist/api/index.d.ts +1 -0
  2. package/dist/components/common/CheckboxField.d.ts +1 -1
  3. package/dist/components/common/FormikPhoneNumberField.d.ts +1 -1
  4. package/dist/components/confirmationContainer/config.d.ts +1 -0
  5. package/dist/components/confirmationContainer/index.d.ts +2 -2
  6. package/dist/components/waitingList/index.d.ts +2 -1
  7. package/dist/index.d.ts +1 -0
  8. package/dist/tf-checkout-react.cjs.development.js +292 -182
  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 +295 -186
  13. package/dist/tf-checkout-react.esm.js.map +1 -1
  14. package/dist/utils/index.d.ts +3 -0
  15. package/dist/utils/setConfigs.d.ts +10 -0
  16. package/package.json +1 -1
  17. package/src/api/index.ts +59 -33
  18. package/src/components/billing-info-container/index.tsx +0 -7
  19. package/src/components/billing-info-container/utils.ts +3 -3
  20. package/src/components/common/CheckboxField.tsx +1 -0
  21. package/src/components/common/FormikPhoneNumberField.tsx +1 -0
  22. package/src/components/confirmationContainer/config.ts +72 -0
  23. package/src/components/confirmationContainer/index.tsx +2 -2
  24. package/src/components/confirmationContainer/social-buttons.tsx +62 -87
  25. package/src/components/loginModal/index.tsx +3 -3
  26. package/src/components/paymentContainer/index.tsx +73 -46
  27. package/src/components/registerModal/index.tsx +3 -3
  28. package/src/components/stripePayment/index.tsx +4 -4
  29. package/src/components/ticketsContainer/index.tsx +1 -3
  30. package/src/components/waitingList/index.tsx +6 -5
  31. package/src/env.ts +3 -3
  32. package/src/index.ts +1 -0
  33. package/src/utils/index.ts +3 -0
  34. package/src/utils/setConfigs.ts +21 -0
@@ -2,6 +2,7 @@ import { AxiosInstance } from 'axios';
2
2
  interface IPublicRequest extends AxiosInstance {
3
3
  setGuestToken: (token: string) => void;
4
4
  setAccessToken: (token: string) => void;
5
+ setBaseUrl: (baseUrl: string) => void;
5
6
  }
6
7
  export declare const publicRequest: IPublicRequest;
7
8
  export declare const setCustomHeader: (response: any) => void;
@@ -7,5 +7,5 @@ export interface ICheckboxField {
7
7
  interface IOtherProps {
8
8
  [key: string]: any;
9
9
  }
10
- export declare const CheckboxField: ({ label, field, selectOptions, theme, ...rest }: ICheckboxField & IOtherProps) => JSX.Element;
10
+ export declare const CheckboxField: ({ label, field, selectOptions, theme, setFieldValue, ...rest }: ICheckboxField & IOtherProps) => JSX.Element;
11
11
  export {};
@@ -7,5 +7,5 @@ export interface INumberInField {
7
7
  interface IOtherProps {
8
8
  [key: string]: any;
9
9
  }
10
- export declare const FormikPhoneNumberField: ({ label, field, form: { touched, errors }, setFieldValue, ...rest }: INumberInField & IOtherProps) => JSX.Element;
10
+ export declare const FormikPhoneNumberField: ({ label, field, form: { touched, errors }, setFieldValue, selectOptions, ...rest }: INumberInField & IOtherProps) => JSX.Element;
11
11
  export {};
@@ -0,0 +1 @@
1
+ export default function (key: string): any;
@@ -4,8 +4,8 @@ import { AxiosError } from 'axios';
4
4
  export interface IShareButton {
5
5
  mainLabel: string;
6
6
  subLabel: string;
7
- icon: string;
8
- link: string;
7
+ platform: string;
8
+ shareData: any;
9
9
  }
10
10
  export interface IConfirmationPage {
11
11
  isReferralEnabled: boolean;
@@ -2,6 +2,7 @@
2
2
  import './style.css';
3
3
  interface WaitingListProps {
4
4
  tickets: any;
5
+ eventId: number;
5
6
  }
6
- declare const WaitingList: ({ tickets }: WaitingListProps) => JSX.Element;
7
+ declare const WaitingList: ({ tickets, eventId }: WaitingListProps) => JSX.Element;
7
8
  export default WaitingList;
package/dist/index.d.ts CHANGED
@@ -6,3 +6,4 @@ export { currencyNormalizerCreator, createFixedFloatNormalizer, } from './normal
6
6
  export { LoginModal } from './components/loginModal';
7
7
  export { MyTicketsContainer } from './components/myTicketsContainer';
8
8
  export { OrderDetailsContainer } from './components/orderDetailsContainer';
9
+ export { setConfigs } from './utils/setConfigs';