tf-checkout-react 2.0.0-beta.0 → 2.0.0-beta.2
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/dist/index.d.mts +16 -0
- package/dist/index.d.ts +16 -0
- package/dist/index.esm.js +550 -287
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +550 -287
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/EmbeddedCheckout.tsx +6 -1
- package/src/auth/AuthModal.tsx +12 -5
- package/src/auth/ForgotPasswordForm.tsx +4 -6
- package/src/auth/LoginForm.tsx +2 -2
- package/src/auth/RegisterForm.tsx +2 -2
- package/src/auth/ResetPasswordForm.tsx +7 -7
- package/src/configure.ts +1 -5
- package/src/confirmer.ts +1 -5
- package/src/sections/AddOns.tsx +14 -7
- package/src/sections/BillingInfo.tsx +107 -53
- package/src/sections/Confirmation.tsx +8 -6
- package/src/sections/OrderSummary.tsx +7 -5
- package/src/sections/Payment.tsx +37 -17
- package/src/sections/Tickets.tsx +32 -15
- package/src/sections/billing/BillingAddressFields.tsx +19 -13
- package/src/sections/billing/TicketHoldersCard.tsx +103 -89
- package/src/sections/billing/fieldRules.ts +43 -0
- package/src/ui/CheckoutProvider.tsx +5 -1
- package/src/ui/InstallmentPicker.tsx +4 -2
- package/src/ui/PaymentMethods.tsx +82 -76
- package/src/ui/TimerBanner.tsx +7 -3
package/dist/index.d.mts
CHANGED
|
@@ -152,6 +152,14 @@ interface TfProfile {
|
|
|
152
152
|
hasDashboardAccess: boolean;
|
|
153
153
|
ticketHolders: TfTicketHolder[];
|
|
154
154
|
linkedCryptoWallets: string[];
|
|
155
|
+
/**
|
|
156
|
+
* Calendar date as `YYYY-MM-DD`, or null when none is on file. The profile
|
|
157
|
+
* endpoint has always returned this; it simply wasn't declared here, so the
|
|
158
|
+
* checkout couldn't prefill it. Only populated for buyers who have been
|
|
159
|
+
* through an age-gated checkout, RN registration or SSO, so treat it as
|
|
160
|
+
* best-effort.
|
|
161
|
+
*/
|
|
162
|
+
dateOfBirth?: string | null;
|
|
155
163
|
}
|
|
156
164
|
interface TfCountry {
|
|
157
165
|
id: string | number;
|
|
@@ -1916,6 +1924,14 @@ interface CheckoutEngine {
|
|
|
1916
1924
|
/** Run ID verification for a NEED_ID_VERIFICATION order. */
|
|
1917
1925
|
runIdVerification: (orderHash: string, options?: RunIdVerificationOptions) => Promise<IdVerificationStatus | undefined>;
|
|
1918
1926
|
reset: () => void;
|
|
1927
|
+
/**
|
|
1928
|
+
* Move the cart to the terminal 'expired' state. Until now this only happened
|
|
1929
|
+
* reactively, when the backend rejected a call with an expired-cart 422 — so a
|
|
1930
|
+
* reservation that simply ran out on screen left the buyer editing a form that
|
|
1931
|
+
* could no longer be paid for. Consumers driving the countdown call this when
|
|
1932
|
+
* it reaches zero.
|
|
1933
|
+
*/
|
|
1934
|
+
expireCart: () => void;
|
|
1919
1935
|
}
|
|
1920
1936
|
/**
|
|
1921
1937
|
* Binds the orchestration to a store + a platform's ports. In React, wrap this
|
package/dist/index.d.ts
CHANGED
|
@@ -152,6 +152,14 @@ interface TfProfile {
|
|
|
152
152
|
hasDashboardAccess: boolean;
|
|
153
153
|
ticketHolders: TfTicketHolder[];
|
|
154
154
|
linkedCryptoWallets: string[];
|
|
155
|
+
/**
|
|
156
|
+
* Calendar date as `YYYY-MM-DD`, or null when none is on file. The profile
|
|
157
|
+
* endpoint has always returned this; it simply wasn't declared here, so the
|
|
158
|
+
* checkout couldn't prefill it. Only populated for buyers who have been
|
|
159
|
+
* through an age-gated checkout, RN registration or SSO, so treat it as
|
|
160
|
+
* best-effort.
|
|
161
|
+
*/
|
|
162
|
+
dateOfBirth?: string | null;
|
|
155
163
|
}
|
|
156
164
|
interface TfCountry {
|
|
157
165
|
id: string | number;
|
|
@@ -1916,6 +1924,14 @@ interface CheckoutEngine {
|
|
|
1916
1924
|
/** Run ID verification for a NEED_ID_VERIFICATION order. */
|
|
1917
1925
|
runIdVerification: (orderHash: string, options?: RunIdVerificationOptions) => Promise<IdVerificationStatus | undefined>;
|
|
1918
1926
|
reset: () => void;
|
|
1927
|
+
/**
|
|
1928
|
+
* Move the cart to the terminal 'expired' state. Until now this only happened
|
|
1929
|
+
* reactively, when the backend rejected a call with an expired-cart 422 — so a
|
|
1930
|
+
* reservation that simply ran out on screen left the buyer editing a form that
|
|
1931
|
+
* could no longer be paid for. Consumers driving the countdown call this when
|
|
1932
|
+
* it reaches zero.
|
|
1933
|
+
*/
|
|
1934
|
+
expireCart: () => void;
|
|
1919
1935
|
}
|
|
1920
1936
|
/**
|
|
1921
1937
|
* Binds the orchestration to a store + a platform's ports. In React, wrap this
|