tf-checkout-react 1.3.49 → 1.3.50-beta.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 (36) hide show
  1. package/dist/api/index.d.ts +8 -0
  2. package/dist/components/common/ModalComponent/index.d.ts +16 -0
  3. package/dist/components/idVerificationContainer/constants.d.ts +14 -0
  4. package/dist/components/idVerificationContainer/index.d.ts +16 -0
  5. package/dist/components/index.d.ts +1 -0
  6. package/dist/components/timerWidget/index.d.ts +1 -1
  7. package/dist/index.d.ts +2 -0
  8. package/dist/tf-checkout-react.cjs.development.js +2965 -3975
  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 +2961 -3978
  13. package/dist/tf-checkout-react.esm.js.map +1 -1
  14. package/dist/tf-checkout-styles.css +1 -1
  15. package/dist/types/verification.d.ts +11 -0
  16. package/dist/utils/index.d.ts +1 -0
  17. package/dist/utils/jsonUtils.d.ts +1 -0
  18. package/package.json +7 -6
  19. package/src/.d.ts +1 -0
  20. package/src/api/index.ts +40 -0
  21. package/src/components/common/ModalComponent/index.tsx +68 -0
  22. package/src/components/common/dist/PhoneNumberField.js +96 -0
  23. package/src/components/idVerificationContainer/constants.ts +17 -0
  24. package/src/components/idVerificationContainer/index.tsx +228 -0
  25. package/src/components/index.ts +2 -1
  26. package/src/components/ticketResaleModal/index.tsx +4 -3
  27. package/src/components/ticketsContainer/PromoCodeSection.tsx +4 -3
  28. package/src/components/timerWidget/index.tsx +9 -7
  29. package/src/index.ts +3 -1
  30. package/src/types/verification.ts +11 -0
  31. package/src/utils/index.ts +1 -0
  32. package/src/utils/jsonUtils.ts +8 -0
  33. package/dist/.DS_Store +0 -0
  34. package/src/.DS_Store +0 -0
  35. package/src/assets/.DS_Store +0 -0
  36. package/src/components/confirmModal/style.css +0 -21
@@ -1,5 +1,6 @@
1
1
  import { AxiosResponse } from 'axios';
2
2
  import { pageOptions } from '../hooks/usePixel';
3
+ import { GetNetverifyUrlResponseData, UpdateVerificationStatusResponseData, VerificationStatusResponseData } from '../types/verification';
3
4
  export declare const setCustomHeader: (response: any) => void;
4
5
  export declare const handleSetAccessToken: (token: string) => void;
5
6
  export declare function getEvent(id: string | number, pk?: string): Promise<AxiosResponse<any, any>>;
@@ -44,4 +45,11 @@ export declare const getAddons: (eventId: string) => Promise<any>;
44
45
  export declare const selectAddons: (data: any) => void;
45
46
  export declare const getCheckoutPageConfigs: () => Promise<any>;
46
47
  export declare function getPixelScript(id: string | number, pageOptions: pageOptions): Promise<AxiosResponse<any, any>>;
48
+ export declare const getNetverifyUrl: () => Promise<GetNetverifyUrlResponseData>;
49
+ export declare const checkVerificationStatus: () => Promise<{
50
+ data: VerificationStatusResponseData;
51
+ }>;
52
+ export declare const updateVerificationStatus: () => Promise<{
53
+ data: UpdateVerificationStatusResponseData;
54
+ }>;
47
55
  export {};
@@ -0,0 +1,16 @@
1
+ import { FC } from 'react';
2
+ interface Action {
3
+ id: string;
4
+ label: string;
5
+ onClick: () => void;
6
+ disabled?: boolean;
7
+ loading?: boolean;
8
+ variant?: "text" | "contained" | "outlined";
9
+ }
10
+ interface Props {
11
+ onClose?: () => void;
12
+ actions: Action[];
13
+ modalClassName?: string;
14
+ }
15
+ declare const Modal: FC<Props>;
16
+ export default Modal;
@@ -0,0 +1,14 @@
1
+ export declare const VERIFICATION_STATUSES: {
2
+ PENDING: string;
3
+ APPROVED: string;
4
+ FAILED: string;
5
+ };
6
+ export declare const TRANSACTION_STATUSES: {
7
+ ERROR: string;
8
+ SUCCESS: string;
9
+ };
10
+ export declare const VERIFICATION_MESSAGES: {
11
+ PENDING: string;
12
+ APPROVED: string;
13
+ FAILED: string;
14
+ };
@@ -0,0 +1,16 @@
1
+ /// <reference types="react" />
2
+ import { AxiosError } from 'axios';
3
+ import { GetNetverifyUrlResponseData, VerificationStatusResponseData } from '../../types/verification';
4
+ interface IDVerificationProps {
5
+ onGetVerifyUrlSuccess?: (response: GetNetverifyUrlResponseData) => void;
6
+ onGetVerifyUrlError?: (error: AxiosError) => void;
7
+ onGetVerificationStatusSuccess?: (response: {
8
+ data: VerificationStatusResponseData;
9
+ }) => void;
10
+ onGetVerificationStatusError?: (error: AxiosError) => void;
11
+ onVerificationMessageModalClose?: (status: string | null) => void;
12
+ onPassVerificationStepsSuccess?: () => void;
13
+ onPassVerificationStepsError?: (error: AxiosError) => void;
14
+ }
15
+ export declare const IDVerification: (props: IDVerificationProps) => JSX.Element;
16
+ export {};
@@ -7,3 +7,4 @@ export { OrderDetailsContainer } from './orderDetailsContainer';
7
7
  export { ResetPasswordContainer } from './resetPasswordContainer';
8
8
  export { TicketResaleContainer } from './ticketResale';
9
9
  export { AddonsContainter } from './addonsContainer';
10
+ export { IDVerification } from './idVerificationContainer';
@@ -1,5 +1,5 @@
1
- import React from 'react';
2
1
  import './style.css';
2
+ import React from 'react';
3
3
  export interface ITimerWidgetPage {
4
4
  expires_at: number;
5
5
  buyLoading?: boolean;
package/dist/index.d.ts CHANGED
@@ -14,3 +14,5 @@ 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 { IDVerification } from './components/idVerificationContainer';
18
+ export { VERIFICATION_STATUSES } from './components/idVerificationContainer/constants';