tf-checkout-react-native 1.0.45 → 2.0.0-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.
- package/README.md +150 -3340
- package/dist/index.d.mts +3810 -0
- package/dist/index.d.ts +3810 -0
- package/dist/index.js +8348 -0
- package/dist/index.js.map +1 -0
- package/dist/index.mjs +8348 -0
- package/dist/index.mjs.map +1 -0
- package/package.json +31 -57
- package/src/CardInput.tsx +49 -0
- package/src/EmbeddedCheckout.tsx +323 -0
- package/src/auth/AuthModal.tsx +221 -0
- package/src/auth/ForgotPasswordForm.tsx +98 -0
- package/src/auth/LoginForm.tsx +99 -0
- package/src/auth/PasswordInput.tsx +45 -0
- package/src/auth/RegisterForm.tsx +247 -0
- package/src/auth/ResetPasswordForm.tsx +112 -0
- package/src/auth/index.ts +7 -0
- package/src/configure.ts +26 -0
- package/src/confirmer.ts +180 -0
- package/src/index.tsx +25 -227
- package/src/instance.ts +13 -0
- package/src/sections/AddOns.tsx +335 -0
- package/src/sections/BillingInfo.tsx +770 -0
- package/src/sections/Confirmation.tsx +143 -0
- package/src/sections/IDVerification.tsx +77 -0
- package/src/sections/OrderSummary.tsx +116 -0
- package/src/sections/Payment.tsx +417 -0
- package/src/sections/Tickets.tsx +680 -0
- package/src/sections/billing/BillingAddressFields.tsx +126 -0
- package/src/sections/billing/BuyerField.tsx +78 -0
- package/src/sections/billing/TicketHoldersCard.tsx +119 -0
- package/src/sections/billing/types.ts +10 -0
- package/src/sections/index.ts +8 -0
- package/src/storage.ts +27 -0
- package/src/ui/CheckoutProvider.tsx +140 -0
- package/src/ui/CustomFields.tsx +176 -0
- package/src/ui/Field.tsx +171 -0
- package/src/ui/InstallmentPicker.tsx +158 -0
- package/src/ui/PaymentMethods.tsx +177 -0
- package/src/ui/QuantitySelect.tsx +103 -0
- package/src/ui/Select.tsx +151 -0
- package/src/ui/Timer.tsx +69 -0
- package/src/ui/TimerBanner.tsx +95 -0
- package/src/ui/index.ts +17 -0
- package/src/ui/primitives.tsx +191 -0
- package/src/ui/theme.ts +89 -0
- package/src/useCheckout.ts +35 -0
- package/lib/brand-DA2IARBI.png +0 -0
- package/lib/ic_check-FLIJQ3BY.png +0 -0
- package/lib/ic_clock-BZ4Z7PIP.png +0 -0
- package/lib/ic_copy-VWMA4B7X.png +0 -0
- package/lib/ic_dropdown-BCS3QDNJ.png +0 -0
- package/lib/ic_error-KDEZUPSN.png +0 -0
- package/lib/ic_eye-WGXVXVAN.png +0 -0
- package/lib/ic_eye_off-XTCE6XSO.png +0 -0
- package/lib/ic_more-LZWKYCDU.png +0 -0
- package/lib/ic_next-LCNIGEDM.png +0 -0
- package/lib/index.js +0 -18176
- package/lib/index.js.map +0 -1
- package/lib/index.mjs +0 -18263
- package/lib/index.mjs.map +0 -1
- package/lib/typescript/package.json +0 -1
- package/lib/typescript/src/api/ApiClient.d.ts +0 -49
- package/lib/typescript/src/api/ApiClient.d.ts.map +0 -1
- package/lib/typescript/src/api/Constants.d.ts +0 -11
- package/lib/typescript/src/api/Constants.d.ts.map +0 -1
- package/lib/typescript/src/api/ErrorHandler.d.ts +0 -12
- package/lib/typescript/src/api/ErrorHandler.d.ts.map +0 -1
- package/lib/typescript/src/api/api.types.d.ts +0 -8
- package/lib/typescript/src/api/api.types.d.ts.map +0 -1
- package/lib/typescript/src/api/types.d.ts +0 -518
- package/lib/typescript/src/api/types.d.ts.map +0 -1
- package/lib/typescript/src/apiv2/index.d.ts +0 -3
- package/lib/typescript/src/apiv2/index.d.ts.map +0 -1
- package/lib/typescript/src/common/query.types.d.ts +0 -3
- package/lib/typescript/src/common/query.types.d.ts.map +0 -1
- package/lib/typescript/src/components/bottomSheetModal/BottomSheetModal.d.ts +0 -8
- package/lib/typescript/src/components/bottomSheetModal/BottomSheetModal.d.ts.map +0 -1
- package/lib/typescript/src/components/bottomSheetModal/BottomSheetModalStyles.d.ts +0 -39
- package/lib/typescript/src/components/bottomSheetModal/BottomSheetModalStyles.d.ts.map +0 -1
- package/lib/typescript/src/components/bottomSheetModal/BottomSheetModalTypes.d.ts +0 -23
- package/lib/typescript/src/components/bottomSheetModal/BottomSheetModalTypes.d.ts.map +0 -1
- package/lib/typescript/src/components/button/Button.d.ts +0 -5
- package/lib/typescript/src/components/button/Button.d.ts.map +0 -1
- package/lib/typescript/src/components/button/styles.d.ts +0 -28
- package/lib/typescript/src/components/button/styles.d.ts.map +0 -1
- package/lib/typescript/src/components/button/types.d.ts +0 -15
- package/lib/typescript/src/components/button/types.d.ts.map +0 -1
- package/lib/typescript/src/components/cartTimer/CartTimer.d.ts +0 -5
- package/lib/typescript/src/components/cartTimer/CartTimer.d.ts.map +0 -1
- package/lib/typescript/src/components/cartTimer/styles.d.ts +0 -47
- package/lib/typescript/src/components/cartTimer/styles.d.ts.map +0 -1
- package/lib/typescript/src/components/cartTimer/types.d.ts +0 -19
- package/lib/typescript/src/components/cartTimer/types.d.ts.map +0 -1
- package/lib/typescript/src/components/checkbox/Checkbox.d.ts +0 -4
- package/lib/typescript/src/components/checkbox/Checkbox.d.ts.map +0 -1
- package/lib/typescript/src/components/checkbox/styles.d.ts +0 -39
- package/lib/typescript/src/components/checkbox/styles.d.ts.map +0 -1
- package/lib/typescript/src/components/checkbox/types.d.ts +0 -22
- package/lib/typescript/src/components/checkbox/types.d.ts.map +0 -1
- package/lib/typescript/src/components/datePicker/DatePicker.d.ts +0 -4
- package/lib/typescript/src/components/datePicker/DatePicker.d.ts.map +0 -1
- package/lib/typescript/src/components/datePicker/styles.d.ts +0 -35
- package/lib/typescript/src/components/datePicker/styles.d.ts.map +0 -1
- package/lib/typescript/src/components/datePicker/types.d.ts +0 -20
- package/lib/typescript/src/components/datePicker/types.d.ts.map +0 -1
- package/lib/typescript/src/components/dropdown/Dropdown.d.ts +0 -4
- package/lib/typescript/src/components/dropdown/Dropdown.d.ts.map +0 -1
- package/lib/typescript/src/components/dropdown/DropdownListItem.d.ts +0 -4
- package/lib/typescript/src/components/dropdown/DropdownListItem.d.ts.map +0 -1
- package/lib/typescript/src/components/dropdown/styles.d.ts +0 -85
- package/lib/typescript/src/components/dropdown/styles.d.ts.map +0 -1
- package/lib/typescript/src/components/dropdown/types.d.ts +0 -35
- package/lib/typescript/src/components/dropdown/types.d.ts.map +0 -1
- package/lib/typescript/src/components/dropdownMaterial/DropdownMaterial.d.ts +0 -4
- package/lib/typescript/src/components/dropdownMaterial/DropdownMaterial.d.ts.map +0 -1
- package/lib/typescript/src/components/dropdownMaterial/styles.d.ts +0 -79
- package/lib/typescript/src/components/dropdownMaterial/styles.d.ts.map +0 -1
- package/lib/typescript/src/components/dropdownMaterial/types.d.ts +0 -22
- package/lib/typescript/src/components/dropdownMaterial/types.d.ts.map +0 -1
- package/lib/typescript/src/components/enterPassword/EnterPassword.d.ts +0 -5
- package/lib/typescript/src/components/enterPassword/EnterPassword.d.ts.map +0 -1
- package/lib/typescript/src/components/enterPassword/styles.d.ts +0 -21
- package/lib/typescript/src/components/enterPassword/styles.d.ts.map +0 -1
- package/lib/typescript/src/components/enterPassword/types.d.ts +0 -24
- package/lib/typescript/src/components/enterPassword/types.d.ts.map +0 -1
- package/lib/typescript/src/components/formField/FormField.d.ts +0 -4
- package/lib/typescript/src/components/formField/FormField.d.ts.map +0 -1
- package/lib/typescript/src/components/formField/styles.d.ts +0 -35
- package/lib/typescript/src/components/formField/styles.d.ts.map +0 -1
- package/lib/typescript/src/components/formField/types.d.ts +0 -48
- package/lib/typescript/src/components/formField/types.d.ts.map +0 -1
- package/lib/typescript/src/components/index.d.ts +0 -21
- package/lib/typescript/src/components/index.d.ts.map +0 -1
- package/lib/typescript/src/components/input/Input.d.ts +0 -4
- package/lib/typescript/src/components/input/Input.d.ts.map +0 -1
- package/lib/typescript/src/components/input/styles.d.ts +0 -47
- package/lib/typescript/src/components/input/styles.d.ts.map +0 -1
- package/lib/typescript/src/components/input/types.d.ts +0 -28
- package/lib/typescript/src/components/input/types.d.ts.map +0 -1
- package/lib/typescript/src/components/loading/Loading.d.ts +0 -4
- package/lib/typescript/src/components/loading/Loading.d.ts.map +0 -1
- package/lib/typescript/src/components/loading/styles.d.ts +0 -30
- package/lib/typescript/src/components/loading/styles.d.ts.map +0 -1
- package/lib/typescript/src/components/loading/types.d.ts +0 -15
- package/lib/typescript/src/components/loading/types.d.ts.map +0 -1
- package/lib/typescript/src/components/loggedIn/LoggedIn.d.ts +0 -5
- package/lib/typescript/src/components/loggedIn/LoggedIn.d.ts.map +0 -1
- package/lib/typescript/src/components/loggedIn/styles.d.ts +0 -9
- package/lib/typescript/src/components/loggedIn/styles.d.ts.map +0 -1
- package/lib/typescript/src/components/loggedIn/types.d.ts +0 -24
- package/lib/typescript/src/components/loggedIn/types.d.ts.map +0 -1
- package/lib/typescript/src/components/login/Login.d.ts +0 -5
- package/lib/typescript/src/components/login/Login.d.ts.map +0 -1
- package/lib/typescript/src/components/login/LoginView.d.ts +0 -5
- package/lib/typescript/src/components/login/LoginView.d.ts.map +0 -1
- package/lib/typescript/src/components/login/components/LoginForm.d.ts +0 -5
- package/lib/typescript/src/components/login/components/LoginForm.d.ts.map +0 -1
- package/lib/typescript/src/components/login/components/types.d.ts +0 -19
- package/lib/typescript/src/components/login/components/types.d.ts.map +0 -1
- package/lib/typescript/src/components/login/styles.d.ts +0 -62
- package/lib/typescript/src/components/login/styles.d.ts.map +0 -1
- package/lib/typescript/src/components/login/types.d.ts +0 -144
- package/lib/typescript/src/components/login/types.d.ts.map +0 -1
- package/lib/typescript/src/components/phoneInput/PhoneInput.d.ts +0 -5
- package/lib/typescript/src/components/phoneInput/PhoneInput.d.ts.map +0 -1
- package/lib/typescript/src/components/phoneInput/styles.d.ts +0 -29
- package/lib/typescript/src/components/phoneInput/styles.d.ts.map +0 -1
- package/lib/typescript/src/components/phoneInput/types.d.ts +0 -31
- package/lib/typescript/src/components/phoneInput/types.d.ts.map +0 -1
- package/lib/typescript/src/components/promoCode/PromoCode.d.ts +0 -5
- package/lib/typescript/src/components/promoCode/PromoCode.d.ts.map +0 -1
- package/lib/typescript/src/components/promoCode/styles.d.ts +0 -61
- package/lib/typescript/src/components/promoCode/styles.d.ts.map +0 -1
- package/lib/typescript/src/components/promoCode/types.d.ts +0 -36
- package/lib/typescript/src/components/promoCode/types.d.ts.map +0 -1
- package/lib/typescript/src/components/radioButton/RadioButton.d.ts +0 -5
- package/lib/typescript/src/components/radioButton/RadioButton.d.ts.map +0 -1
- package/lib/typescript/src/components/radioButton/styles.d.ts +0 -25
- package/lib/typescript/src/components/radioButton/styles.d.ts.map +0 -1
- package/lib/typescript/src/components/radioButton/types.d.ts +0 -16
- package/lib/typescript/src/components/radioButton/types.d.ts.map +0 -1
- package/lib/typescript/src/components/radioGroup/RadioGroup.d.ts +0 -4
- package/lib/typescript/src/components/radioGroup/RadioGroup.d.ts.map +0 -1
- package/lib/typescript/src/components/radioGroup/index.d.ts +0 -4
- package/lib/typescript/src/components/radioGroup/index.d.ts.map +0 -1
- package/lib/typescript/src/components/radioGroup/types.d.ts +0 -24
- package/lib/typescript/src/components/radioGroup/types.d.ts.map +0 -1
- package/lib/typescript/src/components/restorePassword/RestorePassword.d.ts +0 -5
- package/lib/typescript/src/components/restorePassword/RestorePassword.d.ts.map +0 -1
- package/lib/typescript/src/components/restorePassword/ResultDialog.d.ts +0 -5
- package/lib/typescript/src/components/restorePassword/ResultDialog.d.ts.map +0 -1
- package/lib/typescript/src/components/restorePassword/styles.d.ts +0 -34
- package/lib/typescript/src/components/restorePassword/styles.d.ts.map +0 -1
- package/lib/typescript/src/components/restorePassword/types.d.ts +0 -49
- package/lib/typescript/src/components/restorePassword/types.d.ts.map +0 -1
- package/lib/typescript/src/components/separator/Separator.d.ts +0 -4
- package/lib/typescript/src/components/separator/Separator.d.ts.map +0 -1
- package/lib/typescript/src/components/separator/types.d.ts +0 -9
- package/lib/typescript/src/components/separator/types.d.ts.map +0 -1
- package/lib/typescript/src/components/stripePayment/StripePayment.d.ts +0 -5
- package/lib/typescript/src/components/stripePayment/StripePayment.d.ts.map +0 -1
- package/lib/typescript/src/components/stripePayment/styles.d.ts +0 -7
- package/lib/typescript/src/components/stripePayment/styles.d.ts.map +0 -1
- package/lib/typescript/src/components/stripePayment/types.d.ts +0 -14
- package/lib/typescript/src/components/stripePayment/types.d.ts.map +0 -1
- package/lib/typescript/src/components/waitingList/WaitingList.d.ts +0 -6
- package/lib/typescript/src/components/waitingList/WaitingList.d.ts.map +0 -1
- package/lib/typescript/src/components/waitingList/WaitingListView.d.ts +0 -5
- package/lib/typescript/src/components/waitingList/WaitingListView.d.ts.map +0 -1
- package/lib/typescript/src/components/waitingList/styles.d.ts +0 -9
- package/lib/typescript/src/components/waitingList/styles.d.ts.map +0 -1
- package/lib/typescript/src/components/waitingList/types.d.ts +0 -59
- package/lib/typescript/src/components/waitingList/types.d.ts.map +0 -1
- package/lib/typescript/src/containers/billingInfo/Billing.d.ts +0 -6
- package/lib/typescript/src/containers/billingInfo/Billing.d.ts.map +0 -1
- package/lib/typescript/src/containers/billingInfo/styles.d.ts +0 -61
- package/lib/typescript/src/containers/billingInfo/styles.d.ts.map +0 -1
- package/lib/typescript/src/containers/billingInfo/types.d.ts +0 -160
- package/lib/typescript/src/containers/billingInfo/types.d.ts.map +0 -1
- package/lib/typescript/src/containers/checkout/Checkout.d.ts +0 -7
- package/lib/typescript/src/containers/checkout/Checkout.d.ts.map +0 -1
- package/lib/typescript/src/containers/checkout/CheckoutData.d.ts +0 -3
- package/lib/typescript/src/containers/checkout/CheckoutData.d.ts.map +0 -1
- package/lib/typescript/src/containers/checkout/components/Conditions.d.ts +0 -4
- package/lib/typescript/src/containers/checkout/components/Conditions.d.ts.map +0 -1
- package/lib/typescript/src/containers/checkout/components/OrderReview.d.ts +0 -4
- package/lib/typescript/src/containers/checkout/components/OrderReview.d.ts.map +0 -1
- package/lib/typescript/src/containers/checkout/components/styles.d.ts +0 -26
- package/lib/typescript/src/containers/checkout/components/styles.d.ts.map +0 -1
- package/lib/typescript/src/containers/checkout/styles.d.ts +0 -42
- package/lib/typescript/src/containers/checkout/styles.d.ts.map +0 -1
- package/lib/typescript/src/containers/checkout/types.d.ts +0 -126
- package/lib/typescript/src/containers/checkout/types.d.ts.map +0 -1
- package/lib/typescript/src/containers/index.d.ts +0 -9
- package/lib/typescript/src/containers/index.d.ts.map +0 -1
- package/lib/typescript/src/containers/myOrderDetails/MyOrderDetails.d.ts +0 -6
- package/lib/typescript/src/containers/myOrderDetails/MyOrderDetails.d.ts.map +0 -1
- package/lib/typescript/src/containers/myOrderDetails/MyOrderDetailsView.d.ts +0 -5
- package/lib/typescript/src/containers/myOrderDetails/MyOrderDetailsView.d.ts.map +0 -1
- package/lib/typescript/src/containers/myOrderDetails/components/Notification.d.ts +0 -15
- package/lib/typescript/src/containers/myOrderDetails/components/Notification.d.ts.map +0 -1
- package/lib/typescript/src/containers/myOrderDetails/components/OrderListItem.d.ts +0 -3
- package/lib/typescript/src/containers/myOrderDetails/components/OrderListItem.d.ts.map +0 -1
- package/lib/typescript/src/containers/myOrderDetails/components/TicketActions/TicketActions.d.ts +0 -5
- package/lib/typescript/src/containers/myOrderDetails/components/TicketActions/TicketActions.d.ts.map +0 -1
- package/lib/typescript/src/containers/myOrderDetails/components/TicketActions/TicketActionsTypes.d.ts +0 -30
- package/lib/typescript/src/containers/myOrderDetails/components/TicketActions/TicketActionsTypes.d.ts.map +0 -1
- package/lib/typescript/src/containers/myOrderDetails/components/TicketListItem/TicketListItem.d.ts +0 -8
- package/lib/typescript/src/containers/myOrderDetails/components/TicketListItem/TicketListItem.d.ts.map +0 -1
- package/lib/typescript/src/containers/myOrderDetails/components/TicketListItem/TicketListItemStyles.d.ts +0 -33
- package/lib/typescript/src/containers/myOrderDetails/components/TicketListItem/TicketListItemStyles.d.ts.map +0 -1
- package/lib/typescript/src/containers/myOrderDetails/components/TicketListItem/TicketListItemTypes.d.ts +0 -30
- package/lib/typescript/src/containers/myOrderDetails/components/TicketListItem/TicketListItemTypes.d.ts.map +0 -1
- package/lib/typescript/src/containers/myOrderDetails/components/styles.d.ts +0 -39
- package/lib/typescript/src/containers/myOrderDetails/components/styles.d.ts.map +0 -1
- package/lib/typescript/src/containers/myOrderDetails/styles.d.ts +0 -55
- package/lib/typescript/src/containers/myOrderDetails/styles.d.ts.map +0 -1
- package/lib/typescript/src/containers/myOrderDetails/types.d.ts +0 -126
- package/lib/typescript/src/containers/myOrderDetails/types.d.ts.map +0 -1
- package/lib/typescript/src/containers/myOrders/MyOrders.d.ts +0 -6
- package/lib/typescript/src/containers/myOrders/MyOrders.d.ts.map +0 -1
- package/lib/typescript/src/containers/myOrders/MyOrdersView.d.ts +0 -5
- package/lib/typescript/src/containers/myOrders/MyOrdersView.d.ts.map +0 -1
- package/lib/typescript/src/containers/myOrders/components/OrderListItem.d.ts +0 -5
- package/lib/typescript/src/containers/myOrders/components/OrderListItem.d.ts.map +0 -1
- package/lib/typescript/src/containers/myOrders/components/styles.d.ts +0 -56
- package/lib/typescript/src/containers/myOrders/components/styles.d.ts.map +0 -1
- package/lib/typescript/src/containers/myOrders/components/types.d.ts +0 -26
- package/lib/typescript/src/containers/myOrders/components/types.d.ts.map +0 -1
- package/lib/typescript/src/containers/myOrders/styles.d.ts +0 -37
- package/lib/typescript/src/containers/myOrders/styles.d.ts.map +0 -1
- package/lib/typescript/src/containers/myOrders/types.d.ts +0 -73
- package/lib/typescript/src/containers/myOrders/types.d.ts.map +0 -1
- package/lib/typescript/src/containers/purchaseConfirmation/PurchaseConfirmation.d.ts +0 -6
- package/lib/typescript/src/containers/purchaseConfirmation/PurchaseConfirmation.d.ts.map +0 -1
- package/lib/typescript/src/containers/purchaseConfirmation/PurchaseConfirmationView.d.ts +0 -5
- package/lib/typescript/src/containers/purchaseConfirmation/PurchaseConfirmationView.d.ts.map +0 -1
- package/lib/typescript/src/containers/purchaseConfirmation/styles.d.ts +0 -74
- package/lib/typescript/src/containers/purchaseConfirmation/styles.d.ts.map +0 -1
- package/lib/typescript/src/containers/purchaseConfirmation/types.d.ts +0 -66
- package/lib/typescript/src/containers/purchaseConfirmation/types.d.ts.map +0 -1
- package/lib/typescript/src/containers/resaleTickets/ResaleTickets.d.ts +0 -6
- package/lib/typescript/src/containers/resaleTickets/ResaleTickets.d.ts.map +0 -1
- package/lib/typescript/src/containers/resaleTickets/ResaleTicketsView.d.ts +0 -5
- package/lib/typescript/src/containers/resaleTickets/ResaleTicketsView.d.ts.map +0 -1
- package/lib/typescript/src/containers/resaleTickets/types.d.ts +0 -129
- package/lib/typescript/src/containers/resaleTickets/types.d.ts.map +0 -1
- package/lib/typescript/src/containers/resetPassword/ResetPassword.d.ts +0 -5
- package/lib/typescript/src/containers/resetPassword/ResetPassword.d.ts.map +0 -1
- package/lib/typescript/src/containers/resetPassword/ResetPasswordView.d.ts +0 -5
- package/lib/typescript/src/containers/resetPassword/ResetPasswordView.d.ts.map +0 -1
- package/lib/typescript/src/containers/resetPassword/styles.d.ts +0 -33
- package/lib/typescript/src/containers/resetPassword/styles.d.ts.map +0 -1
- package/lib/typescript/src/containers/resetPassword/types.d.ts +0 -48
- package/lib/typescript/src/containers/resetPassword/types.d.ts.map +0 -1
- package/lib/typescript/src/containers/tickets/Tickets.d.ts +0 -6
- package/lib/typescript/src/containers/tickets/Tickets.d.ts.map +0 -1
- package/lib/typescript/src/containers/tickets/TicketsView.d.ts +0 -4
- package/lib/typescript/src/containers/tickets/TicketsView.d.ts.map +0 -1
- package/lib/typescript/src/containers/tickets/components/TicketGroupListHeader.d.ts +0 -5
- package/lib/typescript/src/containers/tickets/components/TicketGroupListHeader.d.ts.map +0 -1
- package/lib/typescript/src/containers/tickets/components/TicketListItem.d.ts +0 -4
- package/lib/typescript/src/containers/tickets/components/TicketListItem.d.ts.map +0 -1
- package/lib/typescript/src/containers/tickets/components/styles.d.ts +0 -51
- package/lib/typescript/src/containers/tickets/components/styles.d.ts.map +0 -1
- package/lib/typescript/src/containers/tickets/components/types.d.ts +0 -40
- package/lib/typescript/src/containers/tickets/components/types.d.ts.map +0 -1
- package/lib/typescript/src/containers/tickets/styles.d.ts +0 -20
- package/lib/typescript/src/containers/tickets/styles.d.ts.map +0 -1
- package/lib/typescript/src/containers/tickets/types.d.ts +0 -114
- package/lib/typescript/src/containers/tickets/types.d.ts.map +0 -1
- package/lib/typescript/src/core/BillingCore/BillingCore.d.ts +0 -13
- package/lib/typescript/src/core/BillingCore/BillingCore.d.ts.map +0 -1
- package/lib/typescript/src/core/BillingCore/BillingCoreTypes.d.ts +0 -24
- package/lib/typescript/src/core/BillingCore/BillingCoreTypes.d.ts.map +0 -1
- package/lib/typescript/src/core/CheckoutCore/CheckoutCore.d.ts +0 -15
- package/lib/typescript/src/core/CheckoutCore/CheckoutCore.d.ts.map +0 -1
- package/lib/typescript/src/core/CheckoutCore/CheckoutCoreTypes.d.ts +0 -17
- package/lib/typescript/src/core/CheckoutCore/CheckoutCoreTypes.d.ts.map +0 -1
- package/lib/typescript/src/core/CoreProps.d.ts +0 -5
- package/lib/typescript/src/core/CoreProps.d.ts.map +0 -1
- package/lib/typescript/src/core/LoginCore/LoginCore.d.ts +0 -6
- package/lib/typescript/src/core/LoginCore/LoginCore.d.ts.map +0 -1
- package/lib/typescript/src/core/LoginCore/LoginCoreHelper.d.ts +0 -3
- package/lib/typescript/src/core/LoginCore/LoginCoreHelper.d.ts.map +0 -1
- package/lib/typescript/src/core/LoginCore/LoginCoreTypes.d.ts +0 -15
- package/lib/typescript/src/core/LoginCore/LoginCoreTypes.d.ts.map +0 -1
- package/lib/typescript/src/core/MyOrdersCore/MyOrdersCore.d.ts +0 -6
- package/lib/typescript/src/core/MyOrdersCore/MyOrdersCore.d.ts.map +0 -1
- package/lib/typescript/src/core/MyOrdersCore/MyOrdersCoreTypes.d.ts +0 -10
- package/lib/typescript/src/core/MyOrdersCore/MyOrdersCoreTypes.d.ts.map +0 -1
- package/lib/typescript/src/core/OrderDetailsCore/OrderDetailsCore.d.ts +0 -6
- package/lib/typescript/src/core/OrderDetailsCore/OrderDetailsCore.d.ts.map +0 -1
- package/lib/typescript/src/core/OrderDetailsCore/OrderDetailsCoreTypes.d.ts +0 -9
- package/lib/typescript/src/core/OrderDetailsCore/OrderDetailsCoreTypes.d.ts.map +0 -1
- package/lib/typescript/src/core/PurchaseConfirmationCore/PurchaseConfirmationCore.d.ts +0 -6
- package/lib/typescript/src/core/PurchaseConfirmationCore/PurchaseConfirmationCore.d.ts.map +0 -1
- package/lib/typescript/src/core/PurchaseConfirmationCore/PurchaseConfirmationCoreTypes.d.ts +0 -8
- package/lib/typescript/src/core/PurchaseConfirmationCore/PurchaseConfirmationCoreTypes.d.ts.map +0 -1
- package/lib/typescript/src/core/ResetPasswordCore/ResetPasswordCore.d.ts +0 -6
- package/lib/typescript/src/core/ResetPasswordCore/ResetPasswordCore.d.ts.map +0 -1
- package/lib/typescript/src/core/ResetPasswordCore/ResetPasswordCoreTypes.d.ts +0 -5
- package/lib/typescript/src/core/ResetPasswordCore/ResetPasswordCoreTypes.d.ts.map +0 -1
- package/lib/typescript/src/core/Session/SessionCoreTypes.d.ts +0 -9
- package/lib/typescript/src/core/Session/SessionCoreTypes.d.ts.map +0 -1
- package/lib/typescript/src/core/Session/SessionHandle.d.ts +0 -6
- package/lib/typescript/src/core/Session/SessionHandle.d.ts.map +0 -1
- package/lib/typescript/src/core/TicketsCore/TicketsCore.d.ts +0 -6
- package/lib/typescript/src/core/TicketsCore/TicketsCore.d.ts.map +0 -1
- package/lib/typescript/src/core/TicketsCore/TicketsCoreTypes.d.ts +0 -40
- package/lib/typescript/src/core/TicketsCore/TicketsCoreTypes.d.ts.map +0 -1
- package/lib/typescript/src/core/WaitingListCore/WaitingListCore.d.ts +0 -6
- package/lib/typescript/src/core/WaitingListCore/WaitingListCore.d.ts.map +0 -1
- package/lib/typescript/src/core/WaitingListCore/WaitingListCoreTypes.d.ts +0 -12
- package/lib/typescript/src/core/WaitingListCore/WaitingListCoreTypes.d.ts.map +0 -1
- package/lib/typescript/src/core/index.d.ts +0 -21
- package/lib/typescript/src/core/index.d.ts.map +0 -1
- package/lib/typescript/src/features/auth/api-hooks.d.ts +0 -178
- package/lib/typescript/src/features/auth/api-hooks.d.ts.map +0 -1
- package/lib/typescript/src/features/auth/types.d.ts +0 -51
- package/lib/typescript/src/features/auth/types.d.ts.map +0 -1
- package/lib/typescript/src/features/auth/utils.d.ts +0 -3
- package/lib/typescript/src/features/auth/utils.d.ts.map +0 -1
- package/lib/typescript/src/features/checkout-v2/components/AddonsContainer.d.ts +0 -37
- package/lib/typescript/src/features/checkout-v2/components/AddonsContainer.d.ts.map +0 -1
- package/lib/typescript/src/features/checkout-v2/components/Conditions.d.ts +0 -30
- package/lib/typescript/src/features/checkout-v2/components/Conditions.d.ts.map +0 -1
- package/lib/typescript/src/features/checkout-v2/components/OrderReview.d.ts +0 -25
- package/lib/typescript/src/features/checkout-v2/components/OrderReview.d.ts.map +0 -1
- package/lib/typescript/src/features/checkout-v2/components/TicketHoldersSection.d.ts +0 -14
- package/lib/typescript/src/features/checkout-v2/components/TicketHoldersSection.d.ts.map +0 -1
- package/lib/typescript/src/features/checkout-v2/form/config.d.ts +0 -61
- package/lib/typescript/src/features/checkout-v2/form/config.d.ts.map +0 -1
- package/lib/typescript/src/features/checkout-v2/form/index.d.ts +0 -22
- package/lib/typescript/src/features/checkout-v2/form/index.d.ts.map +0 -1
- package/lib/typescript/src/features/checkout-v2/form/styles.d.ts +0 -4501
- package/lib/typescript/src/features/checkout-v2/form/styles.d.ts.map +0 -1
- package/lib/typescript/src/features/checkout-v2/form/texts.d.ts +0 -4
- package/lib/typescript/src/features/checkout-v2/form/texts.d.ts.map +0 -1
- package/lib/typescript/src/features/checkout-v2/form/types.d.ts +0 -191
- package/lib/typescript/src/features/checkout-v2/form/types.d.ts.map +0 -1
- package/lib/typescript/src/features/checkout-v2/hooks/api-hooks.d.ts +0 -227
- package/lib/typescript/src/features/checkout-v2/hooks/api-hooks.d.ts.map +0 -1
- package/lib/typescript/src/features/checkout-v2/hooks/use-checkout.d.ts +0 -37
- package/lib/typescript/src/features/checkout-v2/hooks/use-checkout.d.ts.map +0 -1
- package/lib/typescript/src/features/checkout-v2/index.d.ts +0 -42
- package/lib/typescript/src/features/checkout-v2/index.d.ts.map +0 -1
- package/lib/typescript/src/features/checkout-v2/types.d.ts +0 -433
- package/lib/typescript/src/features/checkout-v2/types.d.ts.map +0 -1
- package/lib/typescript/src/features/checkout-v2/utils.d.ts +0 -12
- package/lib/typescript/src/features/checkout-v2/utils.d.ts.map +0 -1
- package/lib/typescript/src/features/event/api-hooks.d.ts +0 -171
- package/lib/typescript/src/features/event/api-hooks.d.ts.map +0 -1
- package/lib/typescript/src/features/event/types.d.ts +0 -58
- package/lib/typescript/src/features/event/types.d.ts.map +0 -1
- package/lib/typescript/src/features/form/index.d.ts +0 -24
- package/lib/typescript/src/features/form/index.d.ts.map +0 -1
- package/lib/typescript/src/features/form/styles.d.ts +0 -35
- package/lib/typescript/src/features/form/styles.d.ts.map +0 -1
- package/lib/typescript/src/features/form/types.d.ts +0 -33
- package/lib/typescript/src/features/form/types.d.ts.map +0 -1
- package/lib/typescript/src/features/geo/api-hooks.d.ts +0 -12
- package/lib/typescript/src/features/geo/api-hooks.d.ts.map +0 -1
- package/lib/typescript/src/features/geo/types.d.ts +0 -13
- package/lib/typescript/src/features/geo/types.d.ts.map +0 -1
- package/lib/typescript/src/helpers/Config.d.ts +0 -24
- package/lib/typescript/src/helpers/Config.d.ts.map +0 -1
- package/lib/typescript/src/helpers/CountryCodes.d.ts +0 -16
- package/lib/typescript/src/helpers/CountryCodes.d.ts.map +0 -1
- package/lib/typescript/src/helpers/Debounced.d.ts +0 -2
- package/lib/typescript/src/helpers/Debounced.d.ts.map +0 -1
- package/lib/typescript/src/helpers/Domains.d.ts +0 -3
- package/lib/typescript/src/helpers/Domains.d.ts.map +0 -1
- package/lib/typescript/src/helpers/LocalStorage.d.ts +0 -27
- package/lib/typescript/src/helpers/LocalStorage.d.ts.map +0 -1
- package/lib/typescript/src/helpers/RefreshAccessToken.d.ts +0 -3
- package/lib/typescript/src/helpers/RefreshAccessToken.d.ts.map +0 -1
- package/lib/typescript/src/helpers/StringsHelper.d.ts +0 -3
- package/lib/typescript/src/helpers/StringsHelper.d.ts.map +0 -1
- package/lib/typescript/src/helpers/Validators.d.ts +0 -16
- package/lib/typescript/src/helpers/Validators.d.ts.map +0 -1
- package/lib/typescript/src/index.d.ts +0 -49
- package/lib/typescript/src/index.d.ts.map +0 -1
- package/lib/typescript/src/res/colors.d.ts +0 -16
- package/lib/typescript/src/res/colors.d.ts.map +0 -1
- package/lib/typescript/src/res/icons.d.ts +0 -13
- package/lib/typescript/src/res/icons.d.ts.map +0 -1
- package/lib/typescript/src/res/images.d.ts +0 -5
- package/lib/typescript/src/res/images.d.ts.map +0 -1
- package/lib/typescript/src/res/index.d.ts +0 -32
- package/lib/typescript/src/res/index.d.ts.map +0 -1
- package/lib/typescript/src/types/IAccountTickets.d.ts +0 -71
- package/lib/typescript/src/types/IAccountTickets.d.ts.map +0 -1
- package/lib/typescript/src/types/ICountry.d.ts +0 -2
- package/lib/typescript/src/types/ICountry.d.ts.map +0 -1
- package/lib/typescript/src/types/IError.d.ts +0 -6
- package/lib/typescript/src/types/IError.d.ts.map +0 -1
- package/lib/typescript/src/types/IEvent.d.ts +0 -87
- package/lib/typescript/src/types/IEvent.d.ts.map +0 -1
- package/lib/typescript/src/types/ITicket.d.ts +0 -71
- package/lib/typescript/src/types/ITicket.d.ts.map +0 -1
- package/lib/typescript/src/types/IUserProfile.d.ts +0 -30
- package/lib/typescript/src/types/IUserProfile.d.ts.map +0 -1
- package/lib/typescript/src/types/index.d.ts +0 -6
- package/lib/typescript/src/types/index.d.ts.map +0 -1
- package/lib/typescript/src/utils/Logger.d.ts +0 -21
- package/lib/typescript/src/utils/Logger.d.ts.map +0 -1
- package/lib/typescript/src/utils/handlers.d.ts +0 -9
- package/lib/typescript/src/utils/handlers.d.ts.map +0 -1
- package/lib/typescript/src/utils/storageAdapter.d.ts +0 -14
- package/lib/typescript/src/utils/storageAdapter.d.ts.map +0 -1
- package/lib/typescript/src/utils/styleUtils.d.ts +0 -18
- package/lib/typescript/src/utils/styleUtils.d.ts.map +0 -1
- package/src/api/ApiClient.ts +0 -1539
- package/src/api/Constants.ts +0 -10
- package/src/api/ErrorHandler.ts +0 -36
- package/src/api/api.types.ts +0 -8
- package/src/api/types.ts +0 -593
- package/src/apiv2/index.ts +0 -142
- package/src/assets/icons/ic_check.png +0 -0
- package/src/assets/icons/ic_clock.png +0 -0
- package/src/assets/icons/ic_copy.png +0 -0
- package/src/assets/icons/ic_dropdown.png +0 -0
- package/src/assets/icons/ic_error.png +0 -0
- package/src/assets/icons/ic_eye.png +0 -0
- package/src/assets/icons/ic_eye_off.png +0 -0
- package/src/assets/icons/ic_more.png +0 -0
- package/src/assets/icons/ic_next.png +0 -0
- package/src/assets/images/brand.png +0 -0
- package/src/common/query.types.ts +0 -6
- package/src/components/bottomSheetModal/BottomSheetModal.tsx +0 -95
- package/src/components/bottomSheetModal/BottomSheetModalStyles.ts +0 -43
- package/src/components/bottomSheetModal/BottomSheetModalTypes.ts +0 -26
- package/src/components/button/Button.tsx +0 -53
- package/src/components/button/styles.tsx +0 -30
- package/src/components/button/types.ts +0 -16
- package/src/components/cartTimer/CartTimer.tsx +0 -68
- package/src/components/cartTimer/styles.ts +0 -44
- package/src/components/cartTimer/types.ts +0 -22
- package/src/components/checkbox/Checkbox.tsx +0 -53
- package/src/components/checkbox/styles.ts +0 -41
- package/src/components/checkbox/types.ts +0 -23
- package/src/components/datePicker/DatePicker.tsx +0 -81
- package/src/components/datePicker/styles.ts +0 -39
- package/src/components/datePicker/types.ts +0 -21
- package/src/components/dropdown/Dropdown.tsx +0 -111
- package/src/components/dropdown/DropdownListItem.tsx +0 -36
- package/src/components/dropdown/styles.ts +0 -97
- package/src/components/dropdown/types.ts +0 -38
- package/src/components/dropdownMaterial/DropdownMaterial.tsx +0 -129
- package/src/components/dropdownMaterial/styles.ts +0 -91
- package/src/components/dropdownMaterial/types.ts +0 -24
- package/src/components/enterPassword/EnterPassword.tsx +0 -50
- package/src/components/enterPassword/styles.ts +0 -23
- package/src/components/enterPassword/types.ts +0 -27
- package/src/components/formField/FormField.tsx +0 -131
- package/src/components/formField/styles.ts +0 -37
- package/src/components/formField/types.ts +0 -60
- package/src/components/index.ts +0 -20
- package/src/components/input/Input.tsx +0 -77
- package/src/components/input/styles.ts +0 -53
- package/src/components/input/types.ts +0 -38
- package/src/components/loading/Loading.tsx +0 -30
- package/src/components/loading/styles.ts +0 -32
- package/src/components/loading/types.ts +0 -16
- package/src/components/loggedIn/LoggedIn.tsx +0 -60
- package/src/components/loggedIn/styles.ts +0 -9
- package/src/components/loggedIn/types.ts +0 -27
- package/src/components/login/Login.tsx +0 -161
- package/src/components/login/LoginView.tsx +0 -259
- package/src/components/login/components/LoginForm.tsx +0 -92
- package/src/components/login/components/types.ts +0 -22
- package/src/components/login/styles.ts +0 -63
- package/src/components/login/types.ts +0 -189
- package/src/components/phoneInput/PhoneInput.tsx +0 -72
- package/src/components/phoneInput/styles.ts +0 -31
- package/src/components/phoneInput/types.ts +0 -35
- package/src/components/promoCode/PromoCode.tsx +0 -111
- package/src/components/promoCode/styles.ts +0 -63
- package/src/components/promoCode/types.ts +0 -43
- package/src/components/radioButton/RadioButton.tsx +0 -26
- package/src/components/radioButton/styles.ts +0 -32
- package/src/components/radioButton/types.ts +0 -17
- package/src/components/radioGroup/RadioGroup.tsx +0 -86
- package/src/components/radioGroup/index.ts +0 -4
- package/src/components/radioGroup/types.ts +0 -26
- package/src/components/restorePassword/RestorePassword.tsx +0 -63
- package/src/components/restorePassword/ResultDialog.tsx +0 -26
- package/src/components/restorePassword/styles.ts +0 -38
- package/src/components/restorePassword/types.ts +0 -61
- package/src/components/separator/Separator.tsx +0 -26
- package/src/components/separator/types.ts +0 -9
- package/src/components/stripePayment/StripePayment.tsx +0 -51
- package/src/components/stripePayment/styles.ts +0 -7
- package/src/components/stripePayment/types.ts +0 -22
- package/src/components/waitingList/WaitingList.tsx +0 -147
- package/src/components/waitingList/WaitingListView.tsx +0 -94
- package/src/components/waitingList/styles.ts +0 -9
- package/src/components/waitingList/types.ts +0 -68
- package/src/containers/billingInfo/Billing.tsx +0 -1902
- package/src/containers/billingInfo/styles.ts +0 -64
- package/src/containers/billingInfo/types.ts +0 -217
- package/src/containers/checkout/Checkout.tsx +0 -519
- package/src/containers/checkout/CheckoutData.ts +0 -29
- package/src/containers/checkout/components/Conditions.tsx +0 -22
- package/src/containers/checkout/components/OrderReview.tsx +0 -31
- package/src/containers/checkout/components/styles.ts +0 -28
- package/src/containers/checkout/styles.ts +0 -44
- package/src/containers/checkout/types.ts +0 -148
- package/src/containers/index.ts +0 -8
- package/src/containers/myOrderDetails/MyOrderDetails.tsx +0 -318
- package/src/containers/myOrderDetails/MyOrderDetailsView.tsx +0 -269
- package/src/containers/myOrderDetails/components/Notification.tsx +0 -40
- package/src/containers/myOrderDetails/components/OrderListItem.tsx +0 -12
- package/src/containers/myOrderDetails/components/TicketActions/TicketActions.tsx +0 -68
- package/src/containers/myOrderDetails/components/TicketActions/TicketActionsTypes.ts +0 -41
- package/src/containers/myOrderDetails/components/TicketListItem/TicketListItem.tsx +0 -63
- package/src/containers/myOrderDetails/components/TicketListItem/TicketListItemStyles.ts +0 -33
- package/src/containers/myOrderDetails/components/TicketListItem/TicketListItemTypes.ts +0 -39
- package/src/containers/myOrderDetails/components/styles.ts +0 -42
- package/src/containers/myOrderDetails/styles.ts +0 -57
- package/src/containers/myOrderDetails/types.ts +0 -173
- package/src/containers/myOrders/MyOrders.tsx +0 -340
- package/src/containers/myOrders/MyOrdersView.tsx +0 -182
- package/src/containers/myOrders/components/OrderListItem.tsx +0 -50
- package/src/containers/myOrders/components/styles.ts +0 -55
- package/src/containers/myOrders/components/types.ts +0 -28
- package/src/containers/myOrders/styles.ts +0 -42
- package/src/containers/myOrders/types.ts +0 -84
- package/src/containers/purchaseConfirmation/PurchaseConfirmation.tsx +0 -145
- package/src/containers/purchaseConfirmation/PurchaseConfirmationView.tsx +0 -82
- package/src/containers/purchaseConfirmation/styles.ts +0 -79
- package/src/containers/purchaseConfirmation/types.ts +0 -77
- package/src/containers/resaleTickets/ResaleTickets.tsx +0 -234
- package/src/containers/resaleTickets/ResaleTicketsView.tsx +0 -314
- package/src/containers/resaleTickets/types.ts +0 -154
- package/src/containers/resetPassword/ResetPassword.tsx +0 -110
- package/src/containers/resetPassword/ResetPasswordView.tsx +0 -81
- package/src/containers/resetPassword/styles.ts +0 -35
- package/src/containers/resetPassword/types.ts +0 -56
- package/src/containers/tickets/Tickets.tsx +0 -525
- package/src/containers/tickets/TicketsView.tsx +0 -164
- package/src/containers/tickets/components/TicketGroupListHeader.tsx +0 -12
- package/src/containers/tickets/components/TicketListItem.tsx +0 -124
- package/src/containers/tickets/components/styles.ts +0 -54
- package/src/containers/tickets/components/types.ts +0 -47
- package/src/containers/tickets/styles.ts +0 -22
- package/src/containers/tickets/types.ts +0 -158
- package/src/core/BillingCore/BillingCore.tsx +0 -129
- package/src/core/BillingCore/BillingCoreTypes.ts +0 -34
- package/src/core/BillingCore/README.md +0 -22
- package/src/core/CheckoutCore/CheckoutCore.tsx +0 -113
- package/src/core/CheckoutCore/CheckoutCoreTypes.ts +0 -23
- package/src/core/CheckoutCore/README.md +0 -20
- package/src/core/CoreProps.ts +0 -5
- package/src/core/LoginCore/LoginCore.tsx +0 -140
- package/src/core/LoginCore/LoginCoreHelper.ts +0 -22
- package/src/core/LoginCore/LoginCoreTypes.ts +0 -21
- package/src/core/MIGRATION.md +0 -148
- package/src/core/MyOrdersCore/MyOrdersCore.tsx +0 -44
- package/src/core/MyOrdersCore/MyOrdersCoreTypes.ts +0 -15
- package/src/core/OrderDetailsCore/OrderDetailsCore.tsx +0 -36
- package/src/core/OrderDetailsCore/OrderDetailsCoreTypes.ts +0 -10
- package/src/core/PurchaseConfirmationCore/PurchaseConfirmationCore.tsx +0 -37
- package/src/core/PurchaseConfirmationCore/PurchaseConfirmationCoreTypes.ts +0 -10
- package/src/core/ResetPasswordCore/ResetPasswordCore.tsx +0 -21
- package/src/core/ResetPasswordCore/ResetPasswordCoreTypes.ts +0 -5
- package/src/core/Session/SessionCoreTypes.ts +0 -10
- package/src/core/Session/SessionHandle.tsx +0 -23
- package/src/core/TicketsCore/TicketsCore.tsx +0 -216
- package/src/core/TicketsCore/TicketsCoreTypes.ts +0 -52
- package/src/core/WaitingListCore/WaitingListCore.tsx +0 -35
- package/src/core/WaitingListCore/WaitingListCoreTypes.ts +0 -16
- package/src/core/index.ts +0 -20
- package/src/features/auth/api-hooks.ts +0 -61
- package/src/features/auth/types.ts +0 -54
- package/src/features/auth/utils.ts +0 -27
- package/src/features/checkout-v2/components/AddonsContainer.tsx +0 -159
- package/src/features/checkout-v2/components/Conditions.tsx +0 -144
- package/src/features/checkout-v2/components/OrderReview.tsx +0 -96
- package/src/features/checkout-v2/components/TicketHoldersSection.tsx +0 -131
- package/src/features/checkout-v2/form/config.tsx +0 -194
- package/src/features/checkout-v2/form/index.tsx +0 -830
- package/src/features/checkout-v2/form/styles.ts +0 -241
- package/src/features/checkout-v2/form/texts.ts +0 -133
- package/src/features/checkout-v2/form/types.ts +0 -231
- package/src/features/checkout-v2/hooks/api-hooks.ts +0 -332
- package/src/features/checkout-v2/hooks/use-checkout.ts +0 -927
- package/src/features/checkout-v2/index.tsx +0 -289
- package/src/features/checkout-v2/types.ts +0 -475
- package/src/features/checkout-v2/utils.ts +0 -156
- package/src/features/event/api-hooks.ts +0 -28
- package/src/features/event/types.ts +0 -69
- package/src/features/form/index.tsx +0 -185
- package/src/features/form/styles.ts +0 -37
- package/src/features/form/types.ts +0 -38
- package/src/features/geo/api-hooks.ts +0 -43
- package/src/features/geo/types.ts +0 -15
- package/src/helpers/Config.ts +0 -81
- package/src/helpers/CountryCodes.ts +0 -3382
- package/src/helpers/Debounced.ts +0 -27
- package/src/helpers/Domains.ts +0 -32
- package/src/helpers/LocalStorage.tsx +0 -152
- package/src/helpers/RefreshAccessToken.ts +0 -25
- package/src/helpers/StringsHelper.ts +0 -5
- package/src/helpers/Validators.ts +0 -108
- package/src/packages/rn-material-ui-textfield/README.md +0 -149
- package/src/packages/rn-material-ui-textfield/components/affix/index.js +0 -61
- package/src/packages/rn-material-ui-textfield/components/affix/styles.js +0 -8
- package/src/packages/rn-material-ui-textfield/components/counter/index.js +0 -36
- package/src/packages/rn-material-ui-textfield/components/counter/styles.js +0 -12
- package/src/packages/rn-material-ui-textfield/components/field/index.js +0 -700
- package/src/packages/rn-material-ui-textfield/components/field/styles.js +0 -42
- package/src/packages/rn-material-ui-textfield/components/field-filled/index.js +0 -21
- package/src/packages/rn-material-ui-textfield/components/field-filled/styles.js +0 -10
- package/src/packages/rn-material-ui-textfield/components/field-outlined/index.js +0 -59
- package/src/packages/rn-material-ui-textfield/components/helper/index.js +0 -78
- package/src/packages/rn-material-ui-textfield/components/helper/styles.js +0 -12
- package/src/packages/rn-material-ui-textfield/components/label/index.js +0 -123
- package/src/packages/rn-material-ui-textfield/components/label/styles.js +0 -16
- package/src/packages/rn-material-ui-textfield/components/line/index.js +0 -117
- package/src/packages/rn-material-ui-textfield/components/line/styles.js +0 -18
- package/src/packages/rn-material-ui-textfield/components/outline/index.js +0 -139
- package/src/packages/rn-material-ui-textfield/components/outline/styles.js +0 -83
- package/src/packages/rn-material-ui-textfield/index.d.ts +0 -53
- package/src/packages/rn-material-ui-textfield/index.js +0 -5
- package/src/packages/rn-material-ui-textfield/license.txt +0 -28
- package/src/res/colors.ts +0 -16
- package/src/res/icons.ts +0 -11
- package/src/res/images.ts +0 -3
- package/src/res/index.ts +0 -11
- package/src/types/IAccountTickets.ts +0 -75
- package/src/types/ICountry.ts +0 -2
- package/src/types/IError.ts +0 -5
- package/src/types/IEvent.ts +0 -87
- package/src/types/ITicket.ts +0 -75
- package/src/types/IUserProfile.ts +0 -30
- package/src/types/index.ts +0 -5
- package/src/utils/Logger.ts +0 -75
- package/src/utils/handlers.ts +0 -49
- package/src/utils/storageAdapter.ts +0 -44
- package/src/utils/styleUtils.ts +0 -76
|
@@ -1,124 +0,0 @@
|
|
|
1
|
-
import _maxBy from 'lodash/maxBy'
|
|
2
|
-
import React from 'react'
|
|
3
|
-
import { Text, View } from 'react-native'
|
|
4
|
-
|
|
5
|
-
import { Dropdown } from '../../../components'
|
|
6
|
-
import { IDropdownItem } from '../../../components/dropdown/types'
|
|
7
|
-
import { priceWithCurrency } from '../../../helpers/StringsHelper'
|
|
8
|
-
import { CartListItemStyles as s } from './styles'
|
|
9
|
-
import { ITicketListItemProps } from './types'
|
|
10
|
-
|
|
11
|
-
const TicketListItem = ({
|
|
12
|
-
ticket,
|
|
13
|
-
ticketNumber,
|
|
14
|
-
onSelectTicketItem,
|
|
15
|
-
selectedTicket,
|
|
16
|
-
styles,
|
|
17
|
-
texts,
|
|
18
|
-
}: ITicketListItemProps) => {
|
|
19
|
-
const soldOutText = texts?.soldOut || 'SOLD OUT'
|
|
20
|
-
const salesNotStartedText = texts?.salesNotStarted || 'Sales not started'
|
|
21
|
-
const salesEnded = texts?.salesEnded || 'Sales ended'
|
|
22
|
-
const feesIncludedText = texts?.inclFees || '(incl. Fees)'
|
|
23
|
-
const feesExcludedText = texts?.exclFees || '(excl. Fees)'
|
|
24
|
-
const freeText = texts?.free || 'Free'
|
|
25
|
-
const ticketText = texts?.ticket || 'Ticket'
|
|
26
|
-
const isSoldOut = ticket.sold_out || !ticket.displayTicket || ticket.soldOut
|
|
27
|
-
const isSalesClosed = !ticket.salesStarted || ticket.salesEnded
|
|
28
|
-
const customSoldOutMessage = texts?.soldOut || 'SOLD OUT'
|
|
29
|
-
const soldOutMessage = ticket.soldOutMessage
|
|
30
|
-
? `${ticket.soldOutMessage}`.toUpperCase()
|
|
31
|
-
: customSoldOutMessage
|
|
32
|
-
|
|
33
|
-
const ticketsClosedMessage = !ticket.salesStarted ? salesNotStartedText : salesEnded
|
|
34
|
-
|
|
35
|
-
const getSelectOptions = (
|
|
36
|
-
maxCount: number = 10,
|
|
37
|
-
minCount: number = 1,
|
|
38
|
-
multiplier: number = 1
|
|
39
|
-
) => {
|
|
40
|
-
const options = [{ label: '0', value: 0 }]
|
|
41
|
-
for (let i = minCount; i <= Math.min(50, maxCount); i += multiplier) {
|
|
42
|
-
options.push({ label: i.toString(), value: i })
|
|
43
|
-
}
|
|
44
|
-
return options
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
const dropdownOptions = getSelectOptions(
|
|
48
|
-
ticket.maxQuantity,
|
|
49
|
-
ticket.minQuantity,
|
|
50
|
-
ticket.multiplier
|
|
51
|
-
)
|
|
52
|
-
|
|
53
|
-
const handleOnSelectItem = (item: IDropdownItem) => {
|
|
54
|
-
onSelectTicketItem({ ...ticket, selectedOption: item })
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
const selectedOption: IDropdownItem =
|
|
58
|
-
selectedTicket && ticket.id === selectedTicket.id && selectedTicket.selectedOption
|
|
59
|
-
? selectedTicket.selectedOption
|
|
60
|
-
: { label: '0', value: 0 }
|
|
61
|
-
|
|
62
|
-
const feesIncluded = ticket.feeIncluded ? feesIncludedText : feesExcludedText
|
|
63
|
-
const showOldPrice = ticket.price !== ticket.oldPrice
|
|
64
|
-
const isTicketFree = +ticket.price === 0
|
|
65
|
-
const ticketPrice = isSoldOut
|
|
66
|
-
? soldOutText
|
|
67
|
-
: isTicketFree
|
|
68
|
-
? freeText
|
|
69
|
-
: priceWithCurrency(ticket.price.toFixed(2).toString(), ticket.priceSymbol)
|
|
70
|
-
|
|
71
|
-
const maximumOption = _maxBy(dropdownOptions, (o) => o.value)?.value
|
|
72
|
-
|
|
73
|
-
let rightContent = <></>
|
|
74
|
-
|
|
75
|
-
if (ticket.soldOut || ticket.sold_out || !ticket.displayTicket) {
|
|
76
|
-
rightContent = <Text>{soldOutMessage}</Text>
|
|
77
|
-
}
|
|
78
|
-
if (ticket.displayTicket) {
|
|
79
|
-
rightContent = isSalesClosed ? (
|
|
80
|
-
<Text>{ticketsClosedMessage}</Text>
|
|
81
|
-
) : maximumOption && maximumOption > 0 ? (
|
|
82
|
-
<Dropdown
|
|
83
|
-
items={dropdownOptions}
|
|
84
|
-
selectedOption={selectedOption}
|
|
85
|
-
onSelectItem={handleOnSelectItem}
|
|
86
|
-
styles={styles?.dropdown}
|
|
87
|
-
/>
|
|
88
|
-
) : (
|
|
89
|
-
<></>
|
|
90
|
-
)
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
return (
|
|
94
|
-
<View style={[s.container, styles?.container]}>
|
|
95
|
-
<View style={s.leftContainer}>
|
|
96
|
-
<Text style={[s.ticketNumber, styles?.ticketName]} numberOfLines={2}>
|
|
97
|
-
{ticket.displayName.toUpperCase() || `${ticketText} ${ticketNumber}`}
|
|
98
|
-
</Text>
|
|
99
|
-
{isSoldOut ? (
|
|
100
|
-
<View style={[s.soldOutContainer, styles?.soldOutContainer]}>
|
|
101
|
-
<Text style={[s.soldOut, styles?.soldOutText]}>{soldOutMessage}</Text>
|
|
102
|
-
</View>
|
|
103
|
-
) : (
|
|
104
|
-
<>
|
|
105
|
-
<View style={styles?.pricesContainer}>
|
|
106
|
-
{showOldPrice && (
|
|
107
|
-
<Text style={[s.oldPrice, styles?.oldPrice]}>
|
|
108
|
-
{priceWithCurrency(ticket.oldPrice?.toString(), ticket.priceSymbol)}
|
|
109
|
-
</Text>
|
|
110
|
-
)}
|
|
111
|
-
<Text style={[s.price, styles?.price]}>{ticketPrice}</Text>
|
|
112
|
-
</View>
|
|
113
|
-
<Text style={[s.tax, styles?.fees]}>{feesIncluded.toUpperCase()}</Text>
|
|
114
|
-
</>
|
|
115
|
-
)}
|
|
116
|
-
</View>
|
|
117
|
-
{!isSalesClosed && !isSoldOut && (
|
|
118
|
-
<View style={s.rightContainer}>{rightContent}</View>
|
|
119
|
-
)}
|
|
120
|
-
</View>
|
|
121
|
-
)
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
export default TicketListItem
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import { StyleSheet } from 'react-native'
|
|
2
|
-
|
|
3
|
-
import R from '../../../res'
|
|
4
|
-
|
|
5
|
-
export const CartListItemStyles = StyleSheet.create({
|
|
6
|
-
container: {
|
|
7
|
-
width: '100%',
|
|
8
|
-
paddingVertical: 16,
|
|
9
|
-
flexDirection: 'row',
|
|
10
|
-
},
|
|
11
|
-
ticketNumber: {
|
|
12
|
-
fontWeight: '600',
|
|
13
|
-
fontSize: 16,
|
|
14
|
-
marginBottom: 4,
|
|
15
|
-
color: R.colors.primary,
|
|
16
|
-
},
|
|
17
|
-
price: {
|
|
18
|
-
fontWeight: '800',
|
|
19
|
-
fontSize: 18,
|
|
20
|
-
color: R.colors.primary,
|
|
21
|
-
},
|
|
22
|
-
soldOut: {
|
|
23
|
-
fontWeight: '800',
|
|
24
|
-
fontSize: 20,
|
|
25
|
-
color: R.colors.primary,
|
|
26
|
-
},
|
|
27
|
-
leftContainer: {
|
|
28
|
-
flex: 7,
|
|
29
|
-
},
|
|
30
|
-
rightContainer: {
|
|
31
|
-
flex: 3,
|
|
32
|
-
alignItems: 'flex-end',
|
|
33
|
-
justifyContent: 'center',
|
|
34
|
-
},
|
|
35
|
-
tax: {
|
|
36
|
-
marginTop: 4,
|
|
37
|
-
fontWeight: '600',
|
|
38
|
-
color: R.colors.primary,
|
|
39
|
-
},
|
|
40
|
-
soldOutContainer: {
|
|
41
|
-
borderRadius: 2,
|
|
42
|
-
borderWidth: 2,
|
|
43
|
-
justifyContent: 'center',
|
|
44
|
-
alignItems: 'center',
|
|
45
|
-
paddingVertical: 8,
|
|
46
|
-
marginTop: 8,
|
|
47
|
-
borderColor: R.colors.primary,
|
|
48
|
-
},
|
|
49
|
-
oldPrice: {
|
|
50
|
-
fontSize: 16,
|
|
51
|
-
color: R.colors.danger,
|
|
52
|
-
textDecorationLine: 'line-through',
|
|
53
|
-
},
|
|
54
|
-
})
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import { StyleProp, TextStyle, ViewStyle } from 'react-native'
|
|
2
|
-
|
|
3
|
-
import { IDropdownStyles } from '../../../components/dropdown/types'
|
|
4
|
-
import { ISelectedTicket, ITicket } from '../../../types'
|
|
5
|
-
|
|
6
|
-
export interface ITicketListItemStyles {
|
|
7
|
-
container?: ViewStyle
|
|
8
|
-
ticketName?: TextStyle
|
|
9
|
-
price?: TextStyle
|
|
10
|
-
oldPrice?: TextStyle
|
|
11
|
-
fees?: TextStyle
|
|
12
|
-
soldOutText?: TextStyle
|
|
13
|
-
soldOutContainer?: ViewStyle
|
|
14
|
-
dropdown?: IDropdownStyles
|
|
15
|
-
pricesContainer?: StyleProp<ViewStyle>
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
export interface ITicketListItemTexts {
|
|
19
|
-
soldOut?: string
|
|
20
|
-
salesNotStarted?: string
|
|
21
|
-
salesEnded?: string
|
|
22
|
-
inclFees?: string
|
|
23
|
-
exclFees?: string
|
|
24
|
-
free?: string
|
|
25
|
-
ticket?: string
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
export interface ITicketListItemProps extends ITicket {
|
|
29
|
-
ticket: ISelectedTicket
|
|
30
|
-
ticketNumber: number
|
|
31
|
-
onSelectTicketItem: (selectedTicket: ISelectedTicket) => void
|
|
32
|
-
selectedTicket?: ISelectedTicket
|
|
33
|
-
styles?: ITicketListItemStyles
|
|
34
|
-
texts?: ITicketListItemTexts
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
//#region TicketGroupListHeader
|
|
38
|
-
export interface ITicketGroupListHeaderStyles {
|
|
39
|
-
container?: StyleProp<ViewStyle>
|
|
40
|
-
text?: StyleProp<TextStyle>
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
export interface ITicketGroupListHeaderProps {
|
|
44
|
-
styles?: ITicketGroupListHeaderStyles
|
|
45
|
-
text?: string
|
|
46
|
-
}
|
|
47
|
-
//#endregion
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { StyleSheet } from 'react-native'
|
|
2
|
-
|
|
3
|
-
import R from '../../res'
|
|
4
|
-
|
|
5
|
-
export default StyleSheet.create({
|
|
6
|
-
container: {
|
|
7
|
-
flex: 1,
|
|
8
|
-
},
|
|
9
|
-
header: {
|
|
10
|
-
paddingVertical: 16,
|
|
11
|
-
},
|
|
12
|
-
headerText: {
|
|
13
|
-
fontSize: 22,
|
|
14
|
-
color: R.colors.primary,
|
|
15
|
-
fontWeight: '800',
|
|
16
|
-
},
|
|
17
|
-
headerTextBold: {
|
|
18
|
-
fontSize: 18,
|
|
19
|
-
fontWeight: '800',
|
|
20
|
-
color: R.colors.primary,
|
|
21
|
-
},
|
|
22
|
-
})
|
|
@@ -1,158 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
ImageSourcePropType,
|
|
3
|
-
ImageStyle,
|
|
4
|
-
StyleProp,
|
|
5
|
-
TextStyle,
|
|
6
|
-
ViewStyle,
|
|
7
|
-
} from 'react-native'
|
|
8
|
-
|
|
9
|
-
import { IEventData } from '../../api/types'
|
|
10
|
-
import { IButtonStyles } from '../../components/button/types'
|
|
11
|
-
import {
|
|
12
|
-
IEnterPasswordStyles,
|
|
13
|
-
IEnterPasswordTexts,
|
|
14
|
-
} from '../../components/enterPassword/types'
|
|
15
|
-
import { ILoadingStyles } from '../../components/loading/types'
|
|
16
|
-
import { ILoggedInStyles, ILoggedInTexts } from '../../components/loggedIn/types'
|
|
17
|
-
import { IPromoCodeStyles, IPromoCodeTexts } from '../../components/promoCode/types'
|
|
18
|
-
import { IWaitingListStyles, IWaitingListTexts } from '../../components/waitingList/types'
|
|
19
|
-
import { IGroupedTickets } from '../../core/TicketsCore/TicketsCoreTypes'
|
|
20
|
-
import {
|
|
21
|
-
IEvent,
|
|
22
|
-
IOnFetchTicketsSuccess,
|
|
23
|
-
ISelectedTicket,
|
|
24
|
-
ITicket,
|
|
25
|
-
ITicketsResponseData,
|
|
26
|
-
} from '../../types'
|
|
27
|
-
import { IError } from '../../types/IError'
|
|
28
|
-
import { ITicketListItemStyles, ITicketListItemTexts } from './components/types'
|
|
29
|
-
|
|
30
|
-
export interface ITicketsViewProps {
|
|
31
|
-
isGettingTickets?: boolean
|
|
32
|
-
isBookingTickets?: boolean
|
|
33
|
-
isGettingEvent?: boolean
|
|
34
|
-
tickets: ITicket[]
|
|
35
|
-
groupedTickets: IGroupedTickets[]
|
|
36
|
-
areTicketsGroupsShown?: boolean
|
|
37
|
-
styles?: ITicketsViewStyles
|
|
38
|
-
onPressGetTickets: () => void
|
|
39
|
-
onPressApplyPromoCode: (promoCode: string) => void
|
|
40
|
-
promoCodeValidationMessage?: string
|
|
41
|
-
isPromoCodeValid?: boolean | number
|
|
42
|
-
onSelectTicketOption: (selectedTicket: ISelectedTicket) => void
|
|
43
|
-
selectedTicket?: ISelectedTicket
|
|
44
|
-
texts?: ITicketsViewTexts
|
|
45
|
-
event?: IEvent
|
|
46
|
-
isWaitingListVisible?: boolean
|
|
47
|
-
isGetTicketsButtonVisible?: boolean
|
|
48
|
-
isPromoEnabled?: boolean
|
|
49
|
-
isAccessCodeEnabled?: boolean
|
|
50
|
-
isUserLogged?: boolean
|
|
51
|
-
isCheckingCurrentSession?: boolean
|
|
52
|
-
onPressMyOrders: () => void
|
|
53
|
-
onPressLogout: () => void
|
|
54
|
-
|
|
55
|
-
areLoadingIndicatorsEnabled?: boolean
|
|
56
|
-
areAlertsEnabled?: boolean
|
|
57
|
-
|
|
58
|
-
// Callbacks for Waiting list
|
|
59
|
-
onAddToWaitingListSuccess?: () => void
|
|
60
|
-
onAddToWaitingListError?: (error: IError) => void
|
|
61
|
-
onLoadingChange?: (isLoading: boolean) => void
|
|
62
|
-
promoCodeCloseIcon?: ImageSourcePropType
|
|
63
|
-
|
|
64
|
-
// Event password protected
|
|
65
|
-
onPressSubmitEventPassword?: (password: string) => void
|
|
66
|
-
passwordProtectedEventData?: IPasswordProtectedEventData
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
export interface ITicketListStyles {
|
|
70
|
-
listContainer?: ViewStyle
|
|
71
|
-
item?: ITicketListItemStyles
|
|
72
|
-
sectionHeader?: {
|
|
73
|
-
container?: StyleProp<ViewStyle>
|
|
74
|
-
title?: StyleProp<TextStyle>
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
export interface ITicketsViewStyles {
|
|
79
|
-
rootContainer?: ViewStyle
|
|
80
|
-
container?: ViewStyle
|
|
81
|
-
title?: TextStyle
|
|
82
|
-
getTicketsButtonDisabled?: IButtonStyles
|
|
83
|
-
getTicketsButtonActive?: IButtonStyles
|
|
84
|
-
promoCode?: IPromoCodeStyles
|
|
85
|
-
ticketList?: ITicketListStyles
|
|
86
|
-
loading?: ILoadingStyles
|
|
87
|
-
waitingList?: IWaitingListStyles
|
|
88
|
-
loggedIn?: ILoggedInStyles
|
|
89
|
-
enterPassword?: IEnterPasswordStyles
|
|
90
|
-
showPasswordIcon?: StyleProp<ImageStyle>
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
export interface ITicketsViewTexts {
|
|
94
|
-
promoCode?: IPromoCodeTexts
|
|
95
|
-
getTicketsButton?: string
|
|
96
|
-
title?: string
|
|
97
|
-
item?: ITicketListItemTexts
|
|
98
|
-
loggedInTexts?: ILoggedInTexts
|
|
99
|
-
listItem?: ITicketListItemTexts
|
|
100
|
-
waitingList?: IWaitingListTexts
|
|
101
|
-
enterPassword?: IEnterPasswordTexts
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
export interface ITicketsConfig {
|
|
105
|
-
areActivityIndicatorsEnabled?: boolean
|
|
106
|
-
areAlertsEnabled?: boolean
|
|
107
|
-
areTicketsSortedBySoldOut?: boolean
|
|
108
|
-
areTicketsGrouped?: boolean
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
export interface ITicketsProps {
|
|
112
|
-
// Callbacks for when user taps on GET Tickets button
|
|
113
|
-
onAddToCartSuccess: (data: ITicketsResponseData) => void
|
|
114
|
-
onAddToCartError?: (error: IError) => void
|
|
115
|
-
|
|
116
|
-
// Callbacks for fetching the tickets
|
|
117
|
-
onFetchTicketsSuccess?: (data: IOnFetchTicketsSuccess) => void
|
|
118
|
-
onFetchTicketsError?: (error: IError) => void
|
|
119
|
-
|
|
120
|
-
// Callbacks for fetching the Event
|
|
121
|
-
onFetchEventError?: (error: IError) => void
|
|
122
|
-
onFetchEventSuccess?: (data: IEventData) => void
|
|
123
|
-
|
|
124
|
-
// Callbacks for fetching Password Protected Event
|
|
125
|
-
onUnlockPasswordProtectedEventError?: (error: IError) => void
|
|
126
|
-
onUnlockPasswordProtectedEventSuccess?: (data: IEventData) => void
|
|
127
|
-
|
|
128
|
-
// Callbacks for Waiting list
|
|
129
|
-
onAddToWaitingListSuccess?: () => void
|
|
130
|
-
onAddToWaitingListError?: (error: IError) => void
|
|
131
|
-
|
|
132
|
-
styles?: ITicketsViewStyles
|
|
133
|
-
texts?: ITicketsViewTexts
|
|
134
|
-
|
|
135
|
-
isPromoEnabled?: boolean
|
|
136
|
-
isAccessCodeEnabled?: boolean
|
|
137
|
-
|
|
138
|
-
referrerId?: string
|
|
139
|
-
|
|
140
|
-
onPressMyOrders: () => void
|
|
141
|
-
onPressLogout?: () => void
|
|
142
|
-
|
|
143
|
-
onLoadingChange?: (isLoading: boolean) => void
|
|
144
|
-
promoCodeCloseIcon?: ImageSourcePropType
|
|
145
|
-
|
|
146
|
-
config?: ITicketsConfig
|
|
147
|
-
|
|
148
|
-
isCheckingCurrentSession?: boolean
|
|
149
|
-
|
|
150
|
-
debugMode?: boolean
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
export interface IPasswordProtectedEventData {
|
|
154
|
-
isPasswordProtected?: boolean
|
|
155
|
-
message?: string
|
|
156
|
-
apiError?: string
|
|
157
|
-
isLoading?: boolean
|
|
158
|
-
}
|
|
@@ -1,129 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @deprecated This component is deprecated and will be removed in a future release.
|
|
3
|
-
* Please use the hooks from 'src/features/checkout-v2/hooks' instead.
|
|
4
|
-
* See README.md in this directory for migration guide.
|
|
5
|
-
*/
|
|
6
|
-
import React, { useCallback, useEffect, useState } from 'react'
|
|
7
|
-
import { forwardRef, useImperativeHandle } from 'react'
|
|
8
|
-
|
|
9
|
-
import {
|
|
10
|
-
checkoutOrder,
|
|
11
|
-
fetchCart,
|
|
12
|
-
fetchCountries,
|
|
13
|
-
fetchStates,
|
|
14
|
-
fetchUserProfile,
|
|
15
|
-
registerNewUser,
|
|
16
|
-
} from '../../api/ApiClient'
|
|
17
|
-
import {
|
|
18
|
-
ICartResponse,
|
|
19
|
-
ICheckoutBody,
|
|
20
|
-
ICountriesResponse,
|
|
21
|
-
IFetchAccessTokenResponse,
|
|
22
|
-
IRegisterNewUserResponse,
|
|
23
|
-
IStatesResponse,
|
|
24
|
-
IUserProfileResponse,
|
|
25
|
-
} from '../../api/types'
|
|
26
|
-
import { refreshAccessToken as refreshAccessTokenAsync } from '../../helpers/RefreshAccessToken'
|
|
27
|
-
import {
|
|
28
|
-
BillingCoreHandle,
|
|
29
|
-
IBillingCoreProps,
|
|
30
|
-
ICheckoutResponse,
|
|
31
|
-
} from './BillingCoreTypes'
|
|
32
|
-
import BackgroundTimer from 'react-native-background-timer'
|
|
33
|
-
|
|
34
|
-
/**
|
|
35
|
-
* @deprecated Use the hooks from 'src/features/checkout-v2/hooks' instead
|
|
36
|
-
*/
|
|
37
|
-
const BillingCore = forwardRef<BillingCoreHandle, IBillingCoreProps>((props, ref) => {
|
|
38
|
-
const [secondsLeft, setSecondsLeft] = useState(420)
|
|
39
|
-
const [timerOn, setTimerOn] = useState(false)
|
|
40
|
-
|
|
41
|
-
const handleStopTimer = useCallback(() => {
|
|
42
|
-
BackgroundTimer.stop()
|
|
43
|
-
BackgroundTimer.stopBackgroundTimer()
|
|
44
|
-
}, [])
|
|
45
|
-
|
|
46
|
-
const handleStartTimer = useCallback(() => {
|
|
47
|
-
BackgroundTimer.runBackgroundTimer(() => {
|
|
48
|
-
setSecondsLeft((secs) => {
|
|
49
|
-
if (secs > 0) {
|
|
50
|
-
return secs - 1
|
|
51
|
-
} else {
|
|
52
|
-
return 0
|
|
53
|
-
}
|
|
54
|
-
})
|
|
55
|
-
}, 1000)
|
|
56
|
-
}, [])
|
|
57
|
-
|
|
58
|
-
const handleTimeIsUp = () => {
|
|
59
|
-
BackgroundTimer.stopBackgroundTimer()
|
|
60
|
-
props.onCartExpired?.()
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
useEffect(() => {
|
|
64
|
-
if (secondsLeft === 0) {
|
|
65
|
-
handleTimeIsUp()
|
|
66
|
-
}
|
|
67
|
-
props.onSecondsLeftChange?.(secondsLeft)
|
|
68
|
-
}, [secondsLeft])
|
|
69
|
-
|
|
70
|
-
useEffect(() => {
|
|
71
|
-
if (timerOn) {
|
|
72
|
-
handleStartTimer()
|
|
73
|
-
} else {
|
|
74
|
-
BackgroundTimer.stopBackgroundTimer()
|
|
75
|
-
}
|
|
76
|
-
return () => {
|
|
77
|
-
BackgroundTimer.stopBackgroundTimer()
|
|
78
|
-
}
|
|
79
|
-
}, [handleStartTimer, timerOn])
|
|
80
|
-
|
|
81
|
-
useImperativeHandle(ref, () => ({
|
|
82
|
-
async checkoutOrder(body: ICheckoutBody): Promise<ICheckoutResponse> {
|
|
83
|
-
const checkout = await checkoutOrder(body)
|
|
84
|
-
if (!checkout.error) {
|
|
85
|
-
BackgroundTimer.stopBackgroundTimer()
|
|
86
|
-
}
|
|
87
|
-
return checkout
|
|
88
|
-
},
|
|
89
|
-
|
|
90
|
-
async getCart(): Promise<ICartResponse> {
|
|
91
|
-
const cart = await fetchCart()
|
|
92
|
-
|
|
93
|
-
if (cart.cartData?.expiresAt) {
|
|
94
|
-
setSecondsLeft(cart.cartData.expiresAt)
|
|
95
|
-
setTimerOn(true)
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
return cart
|
|
99
|
-
},
|
|
100
|
-
|
|
101
|
-
async getCountries(): Promise<ICountriesResponse> {
|
|
102
|
-
return await fetchCountries()
|
|
103
|
-
},
|
|
104
|
-
|
|
105
|
-
async getStates(countryId: string): Promise<IStatesResponse> {
|
|
106
|
-
return await fetchStates(countryId)
|
|
107
|
-
},
|
|
108
|
-
|
|
109
|
-
async getUserProfile(): Promise<IUserProfileResponse> {
|
|
110
|
-
return await fetchUserProfile()
|
|
111
|
-
},
|
|
112
|
-
|
|
113
|
-
async registerNewUser(data: FormData): Promise<IRegisterNewUserResponse> {
|
|
114
|
-
return await registerNewUser(data)
|
|
115
|
-
},
|
|
116
|
-
|
|
117
|
-
async refreshAccessToken(refreshToken?: string): Promise<IFetchAccessTokenResponse> {
|
|
118
|
-
return await refreshAccessTokenAsync(refreshToken)
|
|
119
|
-
},
|
|
120
|
-
|
|
121
|
-
stopCartTimer() {
|
|
122
|
-
return handleStopTimer()
|
|
123
|
-
},
|
|
124
|
-
}))
|
|
125
|
-
|
|
126
|
-
return <>{props.children}</>
|
|
127
|
-
})
|
|
128
|
-
|
|
129
|
-
export default BillingCore
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
ICartResponse,
|
|
3
|
-
ICheckoutBody,
|
|
4
|
-
ICountriesResponse,
|
|
5
|
-
IRegisterNewUserResponse,
|
|
6
|
-
IStatesResponse,
|
|
7
|
-
IUserProfileResponse,
|
|
8
|
-
} from '../../api/types'
|
|
9
|
-
import { IOnCheckoutSuccess } from '../../containers/billingInfo/types'
|
|
10
|
-
import { IError } from '../../types'
|
|
11
|
-
import { ICoreProps } from '../CoreProps'
|
|
12
|
-
import { SessionCoreHandleType } from '../Session/SessionCoreTypes'
|
|
13
|
-
|
|
14
|
-
export interface ICheckoutResponse {
|
|
15
|
-
error?: IError
|
|
16
|
-
data?: IOnCheckoutSuccess
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
export type BillingCoreHandleType = {
|
|
20
|
-
checkoutOrder(body: ICheckoutBody): Promise<ICheckoutResponse>
|
|
21
|
-
getCart(): Promise<ICartResponse>
|
|
22
|
-
getCountries(): Promise<ICountriesResponse>
|
|
23
|
-
getStates(countryId: string): Promise<IStatesResponse>
|
|
24
|
-
getUserProfile(): Promise<IUserProfileResponse>
|
|
25
|
-
registerNewUser(data: FormData): Promise<IRegisterNewUserResponse>
|
|
26
|
-
stopCartTimer(): void
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
export type BillingCoreHandle = BillingCoreHandleType & SessionCoreHandleType
|
|
30
|
-
|
|
31
|
-
export interface IBillingCoreProps extends ICoreProps {
|
|
32
|
-
onCartExpired: () => void
|
|
33
|
-
onSecondsLeftChange?: (secondsLeft: number) => void
|
|
34
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
# BillingCore (Deprecated)
|
|
2
|
-
|
|
3
|
-
> ⚠️ **DEPRECATED**: This component is deprecated and will be removed in a future release.
|
|
4
|
-
|
|
5
|
-
## Migration Guide
|
|
6
|
-
|
|
7
|
-
Please use the hooks directly from the package, which are all exported from the root.
|
|
8
|
-
|
|
9
|
-
See the [Migration Guide](../MIGRATION.md) for detailed instructions on how to replace BillingCore functions with the new hooks-based implementation.
|
|
10
|
-
|
|
11
|
-
## Function Replacements
|
|
12
|
-
|
|
13
|
-
| BillingCore Function | Replacement Hook |
|
|
14
|
-
| ----------------------- | ------------------------------------------------------ |
|
|
15
|
-
| `getCart()` | `useCart()` from `tf-checkout-react-native` |
|
|
16
|
-
| `getCountries()` | `useCountries()` from `tf-checkout-react-native` |
|
|
17
|
-
| `getStates(countryId)` | `useStates(countryId)` from `tf-checkout-react-native` |
|
|
18
|
-
| `getUserProfile()` | `useUserProfile()` from `tf-checkout-react-native` |
|
|
19
|
-
| `registerNewUser(data)` | `useRegisterUser()` from `tf-checkout-react-native` |
|
|
20
|
-
| `checkoutOrder(body)` | `useCheckout()` from `tf-checkout-react-native` |
|
|
21
|
-
|
|
22
|
-
For a comprehensive checkout experience, use `useCheckoutFlow()` from `tf-checkout-react-native`.
|