tf-checkout-react 2.0.0-beta.2 → 2.0.0-beta.4

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 CHANGED
@@ -451,6 +451,11 @@ interface TicketType {
451
451
  waitingListMaxQuantity?: number;
452
452
  /** Raw rich-text description (may contain HTML). */
453
453
  descriptionRich: string | null;
454
+ /** Organiser-written scarcity badge for this type ("Selling fast", "Limited
455
+ * stock", or any custom text), else null. Free text in whatever language the
456
+ * organiser typed — render verbatim, never translate. The old checkout shows
457
+ * it only while the type can actually be bought. */
458
+ badgeText?: string | null;
454
459
  /** Present for time-slot tickets: the session this id belongs to (display
455
460
  * metadata only — the id already encodes the session). */
456
461
  timeSlot?: {
@@ -1526,6 +1531,108 @@ declare const ID_VERIFICATION_MAX_TICKS = 60;
1526
1531
  declare const ID_VERIFICATION_MAX_CONSECUTIVE_FAILURES = 3;
1527
1532
  declare const createIdVerificationPoller: (callbacks: IdVerificationCallbacks) => IdVerificationPoller;
1528
1533
 
1534
+ /**
1535
+ * Localization types for the checkout SDK.
1536
+ *
1537
+ * Lives in the shared core, not the web layer, so that web and native resolve
1538
+ * strings the same way — the same argument as validation and gating rules.
1539
+ *
1540
+ * Deliberately NOT built on i18next: this package ships with `axios` as its
1541
+ * only dependency and is bundled into React Native, where pulling in a full
1542
+ * i18n runtime would be a tax on every consumer. The resolver in ./resolve.ts
1543
+ * is ~40 lines and covers what checkout copy actually needs (lookup, fallback,
1544
+ * {{var}} interpolation).
1545
+ */
1546
+ /** Locale codes the SDK ships, matching the dashboard and the storefront. */
1547
+ type LocaleCode = 'en-GB' | 'en-US' | 'es-MX' | 'fr' | 'de' | 'ru' | 'id';
1548
+ /**
1549
+ * A flat, dot-notation message catalogue.
1550
+ *
1551
+ * Flat rather than nested so a host can override a single string without
1552
+ * reproducing the surrounding object, and so the key set is trivially
1553
+ * diffable between locales.
1554
+ */
1555
+ type Messages = Record<string, string>;
1556
+ /** Values interpolated into `{{placeholders}}`. */
1557
+ type TranslateVars = Record<string, string | number>;
1558
+ /**
1559
+ * Resolves a key to display text. Always returns a string: an unknown key
1560
+ * falls back through the locale chain to English, and finally to the key
1561
+ * itself, so a missing translation can never render blank.
1562
+ */
1563
+ type Translate = (key: string, vars?: TranslateVars) => string;
1564
+ interface TranslatorOptions {
1565
+ /** Defaults to `en-GB`. */
1566
+ locale?: LocaleCode;
1567
+ /**
1568
+ * Host-supplied overrides, merged over the resolved locale. Lets a brand
1569
+ * reword individual strings ("Tickets" -> "Passes") without forking the SDK
1570
+ * or shipping a whole catalogue.
1571
+ */
1572
+ messages?: Partial<Messages>;
1573
+ }
1574
+
1575
+ /**
1576
+ * English (UK) — the source of truth.
1577
+ *
1578
+ * Every key the SDK renders exists here, so a translator's job is to copy this
1579
+ * file and translate values; nothing else needs discovering. Other locales may
1580
+ * be partial and resolve missing keys through the chain in ../resolve.ts.
1581
+ *
1582
+ * Keys are namespaced by surface (`auth.`, `billing.`, `tickets.`, …) so a host
1583
+ * overriding one area does not have to know the whole catalogue. Values are the
1584
+ * strings the components previously hard-coded, moved verbatim — this file is a
1585
+ * relocation, not a rewrite, so behaviour is unchanged for anyone who never
1586
+ * sets a locale.
1587
+ */
1588
+ declare const en: Messages;
1589
+
1590
+ /**
1591
+ * Spanish (Mexico).
1592
+ *
1593
+ * Partial catalogues are legal — anything absent resolves through en-GB — but
1594
+ * this one is complete against ./en.ts so the checkout reads fully Spanish for
1595
+ * the storefronts that need it today.
1596
+ */
1597
+ declare const esMX: Messages;
1598
+
1599
+ /** Register a locale bundle. Used by ./locales/index to avoid a load cycle. */
1600
+ declare const registerCatalogue: (locale: LocaleCode, messages: Messages) => void;
1601
+ declare const DEFAULT_LOCALE: LocaleCode;
1602
+ /** Map a raw device/browser language onto a locale we ship. */
1603
+ declare const resolveLocale: (raw?: string | null) => LocaleCode;
1604
+ /**
1605
+ * Build a translator.
1606
+ *
1607
+ * Resolution order: host overrides -> requested locale -> its fallback chain
1608
+ * -> English -> the key itself. The last step means a missing string surfaces
1609
+ * as a visible key rather than an empty element, which is far easier to spot
1610
+ * in review than a silent blank.
1611
+ */
1612
+ declare const createTranslator: (options?: TranslatorOptions) => Translate;
1613
+
1614
+ /**
1615
+ * Ticket-list presentation rules that are the same on every platform.
1616
+ */
1617
+
1618
+ /**
1619
+ * The catalogue entry for a badge, when it is one of the dashboard's presets
1620
+ * ("Selling fast", "10% left"). Null for anything the organiser typed
1621
+ * themselves: that text is theirs, in the language they chose, and is shown as
1622
+ * written.
1623
+ */
1624
+ declare const ticketBadgeTranslation: (badgeText: string | null | undefined) => {
1625
+ key: string;
1626
+ vars?: TranslateVars;
1627
+ } | null;
1628
+ /**
1629
+ * Regular ticket types first, then tables, each keeping the order the backend
1630
+ * sent. The list draws one "Reserve tables" heading above the first table, so
1631
+ * a regular type the backend happens to list after a table would otherwise sit
1632
+ * under that heading and read as a table.
1633
+ */
1634
+ declare const orderTicketsBeforeTables: (tickets: TicketType[]) => TicketType[];
1635
+
1529
1636
  /**
1530
1637
  * The checkout store — a tiny framework-agnostic observable over the
1531
1638
  * `CheckoutSnapshot`. The engine writes to it; `useCheckout()` (or a plain
@@ -2926,86 +3033,6 @@ declare namespace index {
2926
3033
  export { type index_BuyerFieldSpec as BuyerFieldSpec, type index_MutationOpts as MutationOpts, type index_PlaceOrderHookOptions as PlaceOrderHookOptions, type index_QueryOpts as QueryOpts, type index_RegistrationSubmitOptions as RegistrationSubmitOptions, type index_UseAuthFlow as UseAuthFlow, type index_UseAuthFlowOptions as UseAuthFlowOptions, type index_UseCheckout as UseCheckout, index_ttfKeys as ttfKeys, index_useAttributeReferrer as useAttributeReferrer, index_useAuthFlow as useAuthFlow, index_useAuthSession as useAuthSession, index_useCheckEmailExists as useCheckEmailExists, useCheckout$1 as useCheckout, index_useCountries as useCountries, index_useEvent as useEvent, index_useEventAddons as useEventAddons, index_useJoinWaitingList as useJoinWaitingList, index_useLogin as useLogin, index_useLogout as useLogout, index_useOrder as useOrder, index_useOrders as useOrders, index_useProfile as useProfile, index_useRegister as useRegister, index_useRegisterAccount as useRegisterAccount, index_useResetPassword as useResetPassword, index_useRestorePassword as useRestorePassword, index_useRestorePasswordRn as useRestorePasswordRn, index_useSendRsvp as useSendRsvp, index_useStates as useStates, index_useTickets as useTickets, index_useTicketsWithMeta as useTicketsWithMeta, index_useTimeSlotTickets as useTimeSlotTickets, index_useValidatePhone as useValidatePhone };
2927
3034
  }
2928
3035
 
2929
- /**
2930
- * Localization types for the checkout SDK.
2931
- *
2932
- * Lives in the shared core, not the web layer, so that web and native resolve
2933
- * strings the same way — the same argument as validation and gating rules.
2934
- *
2935
- * Deliberately NOT built on i18next: this package ships with `axios` as its
2936
- * only dependency and is bundled into React Native, where pulling in a full
2937
- * i18n runtime would be a tax on every consumer. The resolver in ./resolve.ts
2938
- * is ~40 lines and covers what checkout copy actually needs (lookup, fallback,
2939
- * {{var}} interpolation).
2940
- */
2941
- /** Locale codes the SDK ships, matching the dashboard and the storefront. */
2942
- type LocaleCode = 'en-GB' | 'en-US' | 'es-MX' | 'fr' | 'de' | 'ru' | 'id';
2943
- /**
2944
- * A flat, dot-notation message catalogue.
2945
- *
2946
- * Flat rather than nested so a host can override a single string without
2947
- * reproducing the surrounding object, and so the key set is trivially
2948
- * diffable between locales.
2949
- */
2950
- type Messages = Record<string, string>;
2951
- /** Values interpolated into `{{placeholders}}`. */
2952
- type TranslateVars = Record<string, string | number>;
2953
- /**
2954
- * Resolves a key to display text. Always returns a string: an unknown key
2955
- * falls back through the locale chain to English, and finally to the key
2956
- * itself, so a missing translation can never render blank.
2957
- */
2958
- type Translate = (key: string, vars?: TranslateVars) => string;
2959
- interface TranslatorOptions {
2960
- /** Defaults to `en-GB`. */
2961
- locale?: LocaleCode;
2962
- /**
2963
- * Host-supplied overrides, merged over the resolved locale. Lets a brand
2964
- * reword individual strings ("Tickets" -> "Passes") without forking the SDK
2965
- * or shipping a whole catalogue.
2966
- */
2967
- messages?: Partial<Messages>;
2968
- }
2969
-
2970
- /**
2971
- * English (UK) — the source of truth.
2972
- *
2973
- * Every key the SDK renders exists here, so a translator's job is to copy this
2974
- * file and translate values; nothing else needs discovering. Other locales may
2975
- * be partial and resolve missing keys through the chain in ../resolve.ts.
2976
- *
2977
- * Keys are namespaced by surface (`auth.`, `billing.`, `tickets.`, …) so a host
2978
- * overriding one area does not have to know the whole catalogue. Values are the
2979
- * strings the components previously hard-coded, moved verbatim — this file is a
2980
- * relocation, not a rewrite, so behaviour is unchanged for anyone who never
2981
- * sets a locale.
2982
- */
2983
- declare const en: Messages;
2984
-
2985
- /**
2986
- * Spanish (Mexico).
2987
- *
2988
- * Partial catalogues are legal — anything absent resolves through en-GB — but
2989
- * this one is complete against ./en.ts so the checkout reads fully Spanish for
2990
- * the storefronts that need it today.
2991
- */
2992
- declare const esMX: Messages;
2993
-
2994
- /** Register a locale bundle. Used by ./locales/index to avoid a load cycle. */
2995
- declare const registerCatalogue: (locale: LocaleCode, messages: Messages) => void;
2996
- declare const DEFAULT_LOCALE: LocaleCode;
2997
- /** Map a raw device/browser language onto a locale we ship. */
2998
- declare const resolveLocale: (raw?: string | null) => LocaleCode;
2999
- /**
3000
- * Build a translator.
3001
- *
3002
- * Resolution order: host overrides -> requested locale -> its fallback chain
3003
- * -> English -> the key itself. The last step means a missing string surfaces
3004
- * as a visible key rather than an empty element, which is far easier to spot
3005
- * in review than a silent blank.
3006
- */
3007
- declare const createTranslator: (options?: TranslatorOptions) => Translate;
3008
-
3009
3036
  /**
3010
3037
  * Web `useCheckout` — a thin injector: the SDK's `useCheckout` with the web
3011
3038
  * platform ports pre-wired (Stripe confirmer, popup provider page, inline
@@ -3943,4 +3970,4 @@ declare const webXenditTokenizer: WebXenditTokenizer;
3943
3970
  * MSI Stripe legs, and inline Xendit tokenization. */
3944
3971
  declare const webPorts: Omit<CheckoutPorts, "confirmer">;
3945
3972
 
3946
- export { ADD_ON_DEFAULT_MAX_QUANTITY, AddOns, type AddOnsProps, type AddonSelection, type AuthFieldErrors, type AuthFieldName, type AuthFlowView, type AuthLoginInput, AuthModal, type AuthModalProps, type AuthProvider, type AuthRegistrationInput, type AuthValidationResult, type BillingDraft, type BillingFieldError, BillingInfo, type BillingInfoProps, type BreakdownLine, Button, type ButtonProps, type BuyerFieldSpec, type BuyerFieldVisibility, type BuyerFieldsInput, CONFIRMED_INTENT_STATUSES, Card, CardInput, type CardProps, type ChangePaymentMethodInput, Checkbox, type CheckboxProps, type CheckoutBilling, type CheckoutBreakdown, type CheckoutConsent, type CheckoutDetailsState, type CheckoutDetailsValidationOptions, type CheckoutEngine, type CheckoutHolder, type CheckoutListener, type CheckoutOptions, type CheckoutPaymentPlan, type CheckoutPaymentPlanPreview, type CheckoutPorts, type CheckoutPrivacyPolicy, CheckoutProvider, type CheckoutProviderProps, type CheckoutSnapshot, type CheckoutStatus, type CheckoutStore, type CheckoutTheme, type CheckoutWalletAvailability, Confirmation, type ConfirmationProps, type ContactEmailResponse, type CurrencyOption, type CurrencyState, type CurrencySync, type CurrencySyncOptions, type CurrencyTransport, CustomFieldGroupFields, type CustomFieldGroupFieldsProps, CustomFieldInput, type CustomFieldInputProps, type CustomFieldOption, type CustomFieldType, type CustomFieldValues, DEFAULT_LOCALE, DEFAULT_PLAN_TERMINOLOGY, ENDPOINTS, EmbeddedCheckout, type EmbeddedCheckoutAuthOptions, type EmbeddedCheckoutProps, type Endpoints, type EngineConfig, type EngineContext, type EventAddon, type EventCondition, type EventCustomField, type EventCustomFieldGroup, type ExistingAccount, FEE_MODE_PAYMENT_METHOD_TYPES, Field, type FieldGates, FieldRow, ForgotPasswordForm, type ForgotPasswordFormProps, type Gateway, type HolderDraft, I18nProvider, type I18nProviderProps, IDVerification, type IDVerificationProps, ID_VERIFICATION_MAX_CONSECUTIVE_FAILURES, ID_VERIFICATION_MAX_TICKS, ID_VERIFICATION_POLL_MS, type IdVerificationCallbacks, type IdVerificationPhase, type IdVerificationPoller, type IdVerificationStatus, Input, type InputProps, type InstallmentOffer, type InstallmentOffers, Loader, type LocaleCode, type LocationOption, LoginForm, type LoginFormProps, type Messages, type OnCheckoutAttributes, type OnCheckoutInput, OrderConfirmation, type OrderConfirmationProps, OrderIDVerification, type OrderIDVerificationProps, type OrderPaymentSession, type OrderProgress, OrderSummary, type OrderSummaryProps, type OxxoVoucher, type PayPalForm, type PayPalTabConfig, Payment, type PaymentConfirmer, type PaymentConfirmerExtras, type PaymentMethod, type PaymentMethodId, type PaymentMethodOption, type PaymentMethodTypeInput, type PaymentMethodTypeRequest, PaymentMethods, type PaymentMethodsProps, type PaymentProps, type PaymentRequest, Pill, type PlaceOrderHookOptions, type PlaceOrderResult, type PlanTermsParagraph, type PreOrderGateway, type PreOrderPaymentConfig, type PriceBreakdown, type PriceBreakdownAddOnRow, type PriceBreakdownFeeRow, type PriceBreakdownTicketRow, PriceLine, type ProviderPageOutcome, type ProviderPageRequest, QuantitySelect, type QuantitySelectProps, type RazorpayCheckoutHtmlOptions, type RedirectConfirmRequest, type RedirectConfirmResponse, type RedirectOutcome, RegisterForm, type RegisterFormProps, type RequiredAddOnLike, ResetPasswordForm, type ResetPasswordFormProps, type ResolvedTtfConfig, ResumedCheckout, type ResumedCheckoutProps, type RunIdVerificationOptions, SUPPORTED_REDIRECT_METHODS, type SavedPlanCard, type SeatLine, SeatMap, type SeatMapProps, SectionHeader, type SectionHeaderProps, Select, type SelectProps, Stepper, type StorageAdapter, type StripeConfig, StripePaymentElement, type StripeWallets, Textarea, type TextareaProps, type TfCountry, type TfEnvelope, type TfListEnvelope, type TfProfile, type TfState, type TfTicketHolder, type TicketHolderInput, type TicketSelection, type TicketType, Tickets, type TicketsProps, Timer, TimerBanner, type TimerBannerProps, type Translate, type TranslateVars, type TranslatorOptions, type Ttf, type TtfConfig, TtfError, type UseCheckout, type UseCheckoutOptions, type WaitingListEntry, type WalletsOption, type WebStripeConfirmer, type WebXenditTokenizer, XENDIT_EWALLET_EXTRA_FIELD, XENDIT_NON_EWALLET_PROCESSORS, type XenditCardFields, XenditCardInput, type XenditChargeOutcome, type XenditCheckoutHtmlOptions, type XenditEWalletChargeInput, type XenditPreOrderConfig, type XenditProcessor, addOnMaxQuantity, index$1 as api, buildAutoSubmitFormHtml, buildChangePaymentMethodAttributes, buildConfirmInstallmentsFields, buildInstallmentOffersFields, buildOnCheckoutBody, buildPaymentMethodTypeAttributes, buildRazorpayCheckoutHtml, buildRegistrationFields, buildXenditCheckoutHtml, buildXenditEWalletChargeFields, cleanAccountId, clearSession, configure, configureCheckout, confirmInstallmentsHasNextAction, createCheckoutStore, createEngine, createIdVerificationPoller, createIdVerificationPollerFor, createMemoryStorage, createTranslator, createWebPorts, createWebStripeConfirmer, createWebXenditTokenizer, customFieldsComplete, cx, detectGateway, en, errorMessage, esMX, evaluateFieldGates, fieldAppliesToTicketType, formatPlanMoney, getAccessToken, getGuestToken, hasValue, index as hooks, identifyPreOrderGateway, initialSnapshot, interpretContactEmail, interpretRedirectConfirm, interpretXenditChargeResponse, isAuthenticated, isCartExpiredError, isConfigured, isEmail, isMultiCurrency, isPhone, isSeatedEvent, listRedirectMethods, localStorageAdapter, mapProfileToBilling, missingCheckoutDetails, missingRequiredAddOns, normalizeAuthEmail, oxxoVoucherFromNextAction, payOrderWith, paymentIntentIdFromClientSecret, paymentPlanTerms, paypalTabConfig, placeOrderWith, planCheckboxLabel, planConfirmLabel, planTerminology, planTermsTitle, priceBreakdownAddOnsQuery, primeSeatsWith, primeWith, registerCatalogue, repriceWith, requiresFeeReprice, resolveInstallmentOffers, resolveLocale, resolvePayPalForm, resolvePaymentConfig, resolvePriceBreakdown, resumeCartWith, runIdVerificationWith, savedPlanCard, syncCurrency, syncCurrencyWith, themeToVars, ticketFieldsFor, ticketQuantityRange, ttf, unsupportedGatewayError, useCheckout, useCheckoutContext, useCheckoutValidation, useInstallmentPicker, useT, validateLoginInput, validatePasswordResetEmail, validateRegistrationInput, walletsOption, webConfirmer, webPorts, webXenditTokenizer, xenditPreOrderConfig };
3973
+ export { ADD_ON_DEFAULT_MAX_QUANTITY, AddOns, type AddOnsProps, type AddonSelection, type AuthFieldErrors, type AuthFieldName, type AuthFlowView, type AuthLoginInput, AuthModal, type AuthModalProps, type AuthProvider, type AuthRegistrationInput, type AuthValidationResult, type BillingDraft, type BillingFieldError, BillingInfo, type BillingInfoProps, type BreakdownLine, Button, type ButtonProps, type BuyerFieldSpec, type BuyerFieldVisibility, type BuyerFieldsInput, CONFIRMED_INTENT_STATUSES, Card, CardInput, type CardProps, type ChangePaymentMethodInput, Checkbox, type CheckboxProps, type CheckoutBilling, type CheckoutBreakdown, type CheckoutConsent, type CheckoutDetailsState, type CheckoutDetailsValidationOptions, type CheckoutEngine, type CheckoutHolder, type CheckoutListener, type CheckoutOptions, type CheckoutPaymentPlan, type CheckoutPaymentPlanPreview, type CheckoutPorts, type CheckoutPrivacyPolicy, CheckoutProvider, type CheckoutProviderProps, type CheckoutSnapshot, type CheckoutStatus, type CheckoutStore, type CheckoutTheme, type CheckoutWalletAvailability, Confirmation, type ConfirmationProps, type ContactEmailResponse, type CurrencyOption, type CurrencyState, type CurrencySync, type CurrencySyncOptions, type CurrencyTransport, CustomFieldGroupFields, type CustomFieldGroupFieldsProps, CustomFieldInput, type CustomFieldInputProps, type CustomFieldOption, type CustomFieldType, type CustomFieldValues, DEFAULT_LOCALE, DEFAULT_PLAN_TERMINOLOGY, ENDPOINTS, EmbeddedCheckout, type EmbeddedCheckoutAuthOptions, type EmbeddedCheckoutProps, type Endpoints, type EngineConfig, type EngineContext, type EventAddon, type EventCondition, type EventCustomField, type EventCustomFieldGroup, type ExistingAccount, FEE_MODE_PAYMENT_METHOD_TYPES, Field, type FieldGates, FieldRow, ForgotPasswordForm, type ForgotPasswordFormProps, type Gateway, type HolderDraft, I18nProvider, type I18nProviderProps, IDVerification, type IDVerificationProps, ID_VERIFICATION_MAX_CONSECUTIVE_FAILURES, ID_VERIFICATION_MAX_TICKS, ID_VERIFICATION_POLL_MS, type IdVerificationCallbacks, type IdVerificationPhase, type IdVerificationPoller, type IdVerificationStatus, Input, type InputProps, type InstallmentOffer, type InstallmentOffers, Loader, type LocaleCode, type LocationOption, LoginForm, type LoginFormProps, type Messages, type OnCheckoutAttributes, type OnCheckoutInput, OrderConfirmation, type OrderConfirmationProps, OrderIDVerification, type OrderIDVerificationProps, type OrderPaymentSession, type OrderProgress, OrderSummary, type OrderSummaryProps, type OxxoVoucher, type PayPalForm, type PayPalTabConfig, Payment, type PaymentConfirmer, type PaymentConfirmerExtras, type PaymentMethod, type PaymentMethodId, type PaymentMethodOption, type PaymentMethodTypeInput, type PaymentMethodTypeRequest, PaymentMethods, type PaymentMethodsProps, type PaymentProps, type PaymentRequest, Pill, type PlaceOrderHookOptions, type PlaceOrderResult, type PlanTermsParagraph, type PreOrderGateway, type PreOrderPaymentConfig, type PriceBreakdown, type PriceBreakdownAddOnRow, type PriceBreakdownFeeRow, type PriceBreakdownTicketRow, PriceLine, type ProviderPageOutcome, type ProviderPageRequest, QuantitySelect, type QuantitySelectProps, type RazorpayCheckoutHtmlOptions, type RedirectConfirmRequest, type RedirectConfirmResponse, type RedirectOutcome, RegisterForm, type RegisterFormProps, type RequiredAddOnLike, ResetPasswordForm, type ResetPasswordFormProps, type ResolvedTtfConfig, ResumedCheckout, type ResumedCheckoutProps, type RunIdVerificationOptions, SUPPORTED_REDIRECT_METHODS, type SavedPlanCard, type SeatLine, SeatMap, type SeatMapProps, SectionHeader, type SectionHeaderProps, Select, type SelectProps, Stepper, type StorageAdapter, type StripeConfig, StripePaymentElement, type StripeWallets, Textarea, type TextareaProps, type TfCountry, type TfEnvelope, type TfListEnvelope, type TfProfile, type TfState, type TfTicketHolder, type TicketHolderInput, type TicketSelection, type TicketType, Tickets, type TicketsProps, Timer, TimerBanner, type TimerBannerProps, type Translate, type TranslateVars, type TranslatorOptions, type Ttf, type TtfConfig, TtfError, type UseCheckout, type UseCheckoutOptions, type WaitingListEntry, type WalletsOption, type WebStripeConfirmer, type WebXenditTokenizer, XENDIT_EWALLET_EXTRA_FIELD, XENDIT_NON_EWALLET_PROCESSORS, type XenditCardFields, XenditCardInput, type XenditChargeOutcome, type XenditCheckoutHtmlOptions, type XenditEWalletChargeInput, type XenditPreOrderConfig, type XenditProcessor, addOnMaxQuantity, index$1 as api, buildAutoSubmitFormHtml, buildChangePaymentMethodAttributes, buildConfirmInstallmentsFields, buildInstallmentOffersFields, buildOnCheckoutBody, buildPaymentMethodTypeAttributes, buildRazorpayCheckoutHtml, buildRegistrationFields, buildXenditCheckoutHtml, buildXenditEWalletChargeFields, cleanAccountId, clearSession, configure, configureCheckout, confirmInstallmentsHasNextAction, createCheckoutStore, createEngine, createIdVerificationPoller, createIdVerificationPollerFor, createMemoryStorage, createTranslator, createWebPorts, createWebStripeConfirmer, createWebXenditTokenizer, customFieldsComplete, cx, detectGateway, en, errorMessage, esMX, evaluateFieldGates, fieldAppliesToTicketType, formatPlanMoney, getAccessToken, getGuestToken, hasValue, index as hooks, identifyPreOrderGateway, initialSnapshot, interpretContactEmail, interpretRedirectConfirm, interpretXenditChargeResponse, isAuthenticated, isCartExpiredError, isConfigured, isEmail, isMultiCurrency, isPhone, isSeatedEvent, listRedirectMethods, localStorageAdapter, mapProfileToBilling, missingCheckoutDetails, missingRequiredAddOns, normalizeAuthEmail, orderTicketsBeforeTables, oxxoVoucherFromNextAction, payOrderWith, paymentIntentIdFromClientSecret, paymentPlanTerms, paypalTabConfig, placeOrderWith, planCheckboxLabel, planConfirmLabel, planTerminology, planTermsTitle, priceBreakdownAddOnsQuery, primeSeatsWith, primeWith, registerCatalogue, repriceWith, requiresFeeReprice, resolveInstallmentOffers, resolveLocale, resolvePayPalForm, resolvePaymentConfig, resolvePriceBreakdown, resumeCartWith, runIdVerificationWith, savedPlanCard, syncCurrency, syncCurrencyWith, themeToVars, ticketBadgeTranslation, ticketFieldsFor, ticketQuantityRange, ttf, unsupportedGatewayError, useCheckout, useCheckoutContext, useCheckoutValidation, useInstallmentPicker, useT, validateLoginInput, validatePasswordResetEmail, validateRegistrationInput, walletsOption, webConfirmer, webPorts, webXenditTokenizer, xenditPreOrderConfig };
package/dist/index.d.ts CHANGED
@@ -451,6 +451,11 @@ interface TicketType {
451
451
  waitingListMaxQuantity?: number;
452
452
  /** Raw rich-text description (may contain HTML). */
453
453
  descriptionRich: string | null;
454
+ /** Organiser-written scarcity badge for this type ("Selling fast", "Limited
455
+ * stock", or any custom text), else null. Free text in whatever language the
456
+ * organiser typed — render verbatim, never translate. The old checkout shows
457
+ * it only while the type can actually be bought. */
458
+ badgeText?: string | null;
454
459
  /** Present for time-slot tickets: the session this id belongs to (display
455
460
  * metadata only — the id already encodes the session). */
456
461
  timeSlot?: {
@@ -1526,6 +1531,108 @@ declare const ID_VERIFICATION_MAX_TICKS = 60;
1526
1531
  declare const ID_VERIFICATION_MAX_CONSECUTIVE_FAILURES = 3;
1527
1532
  declare const createIdVerificationPoller: (callbacks: IdVerificationCallbacks) => IdVerificationPoller;
1528
1533
 
1534
+ /**
1535
+ * Localization types for the checkout SDK.
1536
+ *
1537
+ * Lives in the shared core, not the web layer, so that web and native resolve
1538
+ * strings the same way — the same argument as validation and gating rules.
1539
+ *
1540
+ * Deliberately NOT built on i18next: this package ships with `axios` as its
1541
+ * only dependency and is bundled into React Native, where pulling in a full
1542
+ * i18n runtime would be a tax on every consumer. The resolver in ./resolve.ts
1543
+ * is ~40 lines and covers what checkout copy actually needs (lookup, fallback,
1544
+ * {{var}} interpolation).
1545
+ */
1546
+ /** Locale codes the SDK ships, matching the dashboard and the storefront. */
1547
+ type LocaleCode = 'en-GB' | 'en-US' | 'es-MX' | 'fr' | 'de' | 'ru' | 'id';
1548
+ /**
1549
+ * A flat, dot-notation message catalogue.
1550
+ *
1551
+ * Flat rather than nested so a host can override a single string without
1552
+ * reproducing the surrounding object, and so the key set is trivially
1553
+ * diffable between locales.
1554
+ */
1555
+ type Messages = Record<string, string>;
1556
+ /** Values interpolated into `{{placeholders}}`. */
1557
+ type TranslateVars = Record<string, string | number>;
1558
+ /**
1559
+ * Resolves a key to display text. Always returns a string: an unknown key
1560
+ * falls back through the locale chain to English, and finally to the key
1561
+ * itself, so a missing translation can never render blank.
1562
+ */
1563
+ type Translate = (key: string, vars?: TranslateVars) => string;
1564
+ interface TranslatorOptions {
1565
+ /** Defaults to `en-GB`. */
1566
+ locale?: LocaleCode;
1567
+ /**
1568
+ * Host-supplied overrides, merged over the resolved locale. Lets a brand
1569
+ * reword individual strings ("Tickets" -> "Passes") without forking the SDK
1570
+ * or shipping a whole catalogue.
1571
+ */
1572
+ messages?: Partial<Messages>;
1573
+ }
1574
+
1575
+ /**
1576
+ * English (UK) — the source of truth.
1577
+ *
1578
+ * Every key the SDK renders exists here, so a translator's job is to copy this
1579
+ * file and translate values; nothing else needs discovering. Other locales may
1580
+ * be partial and resolve missing keys through the chain in ../resolve.ts.
1581
+ *
1582
+ * Keys are namespaced by surface (`auth.`, `billing.`, `tickets.`, …) so a host
1583
+ * overriding one area does not have to know the whole catalogue. Values are the
1584
+ * strings the components previously hard-coded, moved verbatim — this file is a
1585
+ * relocation, not a rewrite, so behaviour is unchanged for anyone who never
1586
+ * sets a locale.
1587
+ */
1588
+ declare const en: Messages;
1589
+
1590
+ /**
1591
+ * Spanish (Mexico).
1592
+ *
1593
+ * Partial catalogues are legal — anything absent resolves through en-GB — but
1594
+ * this one is complete against ./en.ts so the checkout reads fully Spanish for
1595
+ * the storefronts that need it today.
1596
+ */
1597
+ declare const esMX: Messages;
1598
+
1599
+ /** Register a locale bundle. Used by ./locales/index to avoid a load cycle. */
1600
+ declare const registerCatalogue: (locale: LocaleCode, messages: Messages) => void;
1601
+ declare const DEFAULT_LOCALE: LocaleCode;
1602
+ /** Map a raw device/browser language onto a locale we ship. */
1603
+ declare const resolveLocale: (raw?: string | null) => LocaleCode;
1604
+ /**
1605
+ * Build a translator.
1606
+ *
1607
+ * Resolution order: host overrides -> requested locale -> its fallback chain
1608
+ * -> English -> the key itself. The last step means a missing string surfaces
1609
+ * as a visible key rather than an empty element, which is far easier to spot
1610
+ * in review than a silent blank.
1611
+ */
1612
+ declare const createTranslator: (options?: TranslatorOptions) => Translate;
1613
+
1614
+ /**
1615
+ * Ticket-list presentation rules that are the same on every platform.
1616
+ */
1617
+
1618
+ /**
1619
+ * The catalogue entry for a badge, when it is one of the dashboard's presets
1620
+ * ("Selling fast", "10% left"). Null for anything the organiser typed
1621
+ * themselves: that text is theirs, in the language they chose, and is shown as
1622
+ * written.
1623
+ */
1624
+ declare const ticketBadgeTranslation: (badgeText: string | null | undefined) => {
1625
+ key: string;
1626
+ vars?: TranslateVars;
1627
+ } | null;
1628
+ /**
1629
+ * Regular ticket types first, then tables, each keeping the order the backend
1630
+ * sent. The list draws one "Reserve tables" heading above the first table, so
1631
+ * a regular type the backend happens to list after a table would otherwise sit
1632
+ * under that heading and read as a table.
1633
+ */
1634
+ declare const orderTicketsBeforeTables: (tickets: TicketType[]) => TicketType[];
1635
+
1529
1636
  /**
1530
1637
  * The checkout store — a tiny framework-agnostic observable over the
1531
1638
  * `CheckoutSnapshot`. The engine writes to it; `useCheckout()` (or a plain
@@ -2926,86 +3033,6 @@ declare namespace index {
2926
3033
  export { type index_BuyerFieldSpec as BuyerFieldSpec, type index_MutationOpts as MutationOpts, type index_PlaceOrderHookOptions as PlaceOrderHookOptions, type index_QueryOpts as QueryOpts, type index_RegistrationSubmitOptions as RegistrationSubmitOptions, type index_UseAuthFlow as UseAuthFlow, type index_UseAuthFlowOptions as UseAuthFlowOptions, type index_UseCheckout as UseCheckout, index_ttfKeys as ttfKeys, index_useAttributeReferrer as useAttributeReferrer, index_useAuthFlow as useAuthFlow, index_useAuthSession as useAuthSession, index_useCheckEmailExists as useCheckEmailExists, useCheckout$1 as useCheckout, index_useCountries as useCountries, index_useEvent as useEvent, index_useEventAddons as useEventAddons, index_useJoinWaitingList as useJoinWaitingList, index_useLogin as useLogin, index_useLogout as useLogout, index_useOrder as useOrder, index_useOrders as useOrders, index_useProfile as useProfile, index_useRegister as useRegister, index_useRegisterAccount as useRegisterAccount, index_useResetPassword as useResetPassword, index_useRestorePassword as useRestorePassword, index_useRestorePasswordRn as useRestorePasswordRn, index_useSendRsvp as useSendRsvp, index_useStates as useStates, index_useTickets as useTickets, index_useTicketsWithMeta as useTicketsWithMeta, index_useTimeSlotTickets as useTimeSlotTickets, index_useValidatePhone as useValidatePhone };
2927
3034
  }
2928
3035
 
2929
- /**
2930
- * Localization types for the checkout SDK.
2931
- *
2932
- * Lives in the shared core, not the web layer, so that web and native resolve
2933
- * strings the same way — the same argument as validation and gating rules.
2934
- *
2935
- * Deliberately NOT built on i18next: this package ships with `axios` as its
2936
- * only dependency and is bundled into React Native, where pulling in a full
2937
- * i18n runtime would be a tax on every consumer. The resolver in ./resolve.ts
2938
- * is ~40 lines and covers what checkout copy actually needs (lookup, fallback,
2939
- * {{var}} interpolation).
2940
- */
2941
- /** Locale codes the SDK ships, matching the dashboard and the storefront. */
2942
- type LocaleCode = 'en-GB' | 'en-US' | 'es-MX' | 'fr' | 'de' | 'ru' | 'id';
2943
- /**
2944
- * A flat, dot-notation message catalogue.
2945
- *
2946
- * Flat rather than nested so a host can override a single string without
2947
- * reproducing the surrounding object, and so the key set is trivially
2948
- * diffable between locales.
2949
- */
2950
- type Messages = Record<string, string>;
2951
- /** Values interpolated into `{{placeholders}}`. */
2952
- type TranslateVars = Record<string, string | number>;
2953
- /**
2954
- * Resolves a key to display text. Always returns a string: an unknown key
2955
- * falls back through the locale chain to English, and finally to the key
2956
- * itself, so a missing translation can never render blank.
2957
- */
2958
- type Translate = (key: string, vars?: TranslateVars) => string;
2959
- interface TranslatorOptions {
2960
- /** Defaults to `en-GB`. */
2961
- locale?: LocaleCode;
2962
- /**
2963
- * Host-supplied overrides, merged over the resolved locale. Lets a brand
2964
- * reword individual strings ("Tickets" -> "Passes") without forking the SDK
2965
- * or shipping a whole catalogue.
2966
- */
2967
- messages?: Partial<Messages>;
2968
- }
2969
-
2970
- /**
2971
- * English (UK) — the source of truth.
2972
- *
2973
- * Every key the SDK renders exists here, so a translator's job is to copy this
2974
- * file and translate values; nothing else needs discovering. Other locales may
2975
- * be partial and resolve missing keys through the chain in ../resolve.ts.
2976
- *
2977
- * Keys are namespaced by surface (`auth.`, `billing.`, `tickets.`, …) so a host
2978
- * overriding one area does not have to know the whole catalogue. Values are the
2979
- * strings the components previously hard-coded, moved verbatim — this file is a
2980
- * relocation, not a rewrite, so behaviour is unchanged for anyone who never
2981
- * sets a locale.
2982
- */
2983
- declare const en: Messages;
2984
-
2985
- /**
2986
- * Spanish (Mexico).
2987
- *
2988
- * Partial catalogues are legal — anything absent resolves through en-GB — but
2989
- * this one is complete against ./en.ts so the checkout reads fully Spanish for
2990
- * the storefronts that need it today.
2991
- */
2992
- declare const esMX: Messages;
2993
-
2994
- /** Register a locale bundle. Used by ./locales/index to avoid a load cycle. */
2995
- declare const registerCatalogue: (locale: LocaleCode, messages: Messages) => void;
2996
- declare const DEFAULT_LOCALE: LocaleCode;
2997
- /** Map a raw device/browser language onto a locale we ship. */
2998
- declare const resolveLocale: (raw?: string | null) => LocaleCode;
2999
- /**
3000
- * Build a translator.
3001
- *
3002
- * Resolution order: host overrides -> requested locale -> its fallback chain
3003
- * -> English -> the key itself. The last step means a missing string surfaces
3004
- * as a visible key rather than an empty element, which is far easier to spot
3005
- * in review than a silent blank.
3006
- */
3007
- declare const createTranslator: (options?: TranslatorOptions) => Translate;
3008
-
3009
3036
  /**
3010
3037
  * Web `useCheckout` — a thin injector: the SDK's `useCheckout` with the web
3011
3038
  * platform ports pre-wired (Stripe confirmer, popup provider page, inline
@@ -3943,4 +3970,4 @@ declare const webXenditTokenizer: WebXenditTokenizer;
3943
3970
  * MSI Stripe legs, and inline Xendit tokenization. */
3944
3971
  declare const webPorts: Omit<CheckoutPorts, "confirmer">;
3945
3972
 
3946
- export { ADD_ON_DEFAULT_MAX_QUANTITY, AddOns, type AddOnsProps, type AddonSelection, type AuthFieldErrors, type AuthFieldName, type AuthFlowView, type AuthLoginInput, AuthModal, type AuthModalProps, type AuthProvider, type AuthRegistrationInput, type AuthValidationResult, type BillingDraft, type BillingFieldError, BillingInfo, type BillingInfoProps, type BreakdownLine, Button, type ButtonProps, type BuyerFieldSpec, type BuyerFieldVisibility, type BuyerFieldsInput, CONFIRMED_INTENT_STATUSES, Card, CardInput, type CardProps, type ChangePaymentMethodInput, Checkbox, type CheckboxProps, type CheckoutBilling, type CheckoutBreakdown, type CheckoutConsent, type CheckoutDetailsState, type CheckoutDetailsValidationOptions, type CheckoutEngine, type CheckoutHolder, type CheckoutListener, type CheckoutOptions, type CheckoutPaymentPlan, type CheckoutPaymentPlanPreview, type CheckoutPorts, type CheckoutPrivacyPolicy, CheckoutProvider, type CheckoutProviderProps, type CheckoutSnapshot, type CheckoutStatus, type CheckoutStore, type CheckoutTheme, type CheckoutWalletAvailability, Confirmation, type ConfirmationProps, type ContactEmailResponse, type CurrencyOption, type CurrencyState, type CurrencySync, type CurrencySyncOptions, type CurrencyTransport, CustomFieldGroupFields, type CustomFieldGroupFieldsProps, CustomFieldInput, type CustomFieldInputProps, type CustomFieldOption, type CustomFieldType, type CustomFieldValues, DEFAULT_LOCALE, DEFAULT_PLAN_TERMINOLOGY, ENDPOINTS, EmbeddedCheckout, type EmbeddedCheckoutAuthOptions, type EmbeddedCheckoutProps, type Endpoints, type EngineConfig, type EngineContext, type EventAddon, type EventCondition, type EventCustomField, type EventCustomFieldGroup, type ExistingAccount, FEE_MODE_PAYMENT_METHOD_TYPES, Field, type FieldGates, FieldRow, ForgotPasswordForm, type ForgotPasswordFormProps, type Gateway, type HolderDraft, I18nProvider, type I18nProviderProps, IDVerification, type IDVerificationProps, ID_VERIFICATION_MAX_CONSECUTIVE_FAILURES, ID_VERIFICATION_MAX_TICKS, ID_VERIFICATION_POLL_MS, type IdVerificationCallbacks, type IdVerificationPhase, type IdVerificationPoller, type IdVerificationStatus, Input, type InputProps, type InstallmentOffer, type InstallmentOffers, Loader, type LocaleCode, type LocationOption, LoginForm, type LoginFormProps, type Messages, type OnCheckoutAttributes, type OnCheckoutInput, OrderConfirmation, type OrderConfirmationProps, OrderIDVerification, type OrderIDVerificationProps, type OrderPaymentSession, type OrderProgress, OrderSummary, type OrderSummaryProps, type OxxoVoucher, type PayPalForm, type PayPalTabConfig, Payment, type PaymentConfirmer, type PaymentConfirmerExtras, type PaymentMethod, type PaymentMethodId, type PaymentMethodOption, type PaymentMethodTypeInput, type PaymentMethodTypeRequest, PaymentMethods, type PaymentMethodsProps, type PaymentProps, type PaymentRequest, Pill, type PlaceOrderHookOptions, type PlaceOrderResult, type PlanTermsParagraph, type PreOrderGateway, type PreOrderPaymentConfig, type PriceBreakdown, type PriceBreakdownAddOnRow, type PriceBreakdownFeeRow, type PriceBreakdownTicketRow, PriceLine, type ProviderPageOutcome, type ProviderPageRequest, QuantitySelect, type QuantitySelectProps, type RazorpayCheckoutHtmlOptions, type RedirectConfirmRequest, type RedirectConfirmResponse, type RedirectOutcome, RegisterForm, type RegisterFormProps, type RequiredAddOnLike, ResetPasswordForm, type ResetPasswordFormProps, type ResolvedTtfConfig, ResumedCheckout, type ResumedCheckoutProps, type RunIdVerificationOptions, SUPPORTED_REDIRECT_METHODS, type SavedPlanCard, type SeatLine, SeatMap, type SeatMapProps, SectionHeader, type SectionHeaderProps, Select, type SelectProps, Stepper, type StorageAdapter, type StripeConfig, StripePaymentElement, type StripeWallets, Textarea, type TextareaProps, type TfCountry, type TfEnvelope, type TfListEnvelope, type TfProfile, type TfState, type TfTicketHolder, type TicketHolderInput, type TicketSelection, type TicketType, Tickets, type TicketsProps, Timer, TimerBanner, type TimerBannerProps, type Translate, type TranslateVars, type TranslatorOptions, type Ttf, type TtfConfig, TtfError, type UseCheckout, type UseCheckoutOptions, type WaitingListEntry, type WalletsOption, type WebStripeConfirmer, type WebXenditTokenizer, XENDIT_EWALLET_EXTRA_FIELD, XENDIT_NON_EWALLET_PROCESSORS, type XenditCardFields, XenditCardInput, type XenditChargeOutcome, type XenditCheckoutHtmlOptions, type XenditEWalletChargeInput, type XenditPreOrderConfig, type XenditProcessor, addOnMaxQuantity, index$1 as api, buildAutoSubmitFormHtml, buildChangePaymentMethodAttributes, buildConfirmInstallmentsFields, buildInstallmentOffersFields, buildOnCheckoutBody, buildPaymentMethodTypeAttributes, buildRazorpayCheckoutHtml, buildRegistrationFields, buildXenditCheckoutHtml, buildXenditEWalletChargeFields, cleanAccountId, clearSession, configure, configureCheckout, confirmInstallmentsHasNextAction, createCheckoutStore, createEngine, createIdVerificationPoller, createIdVerificationPollerFor, createMemoryStorage, createTranslator, createWebPorts, createWebStripeConfirmer, createWebXenditTokenizer, customFieldsComplete, cx, detectGateway, en, errorMessage, esMX, evaluateFieldGates, fieldAppliesToTicketType, formatPlanMoney, getAccessToken, getGuestToken, hasValue, index as hooks, identifyPreOrderGateway, initialSnapshot, interpretContactEmail, interpretRedirectConfirm, interpretXenditChargeResponse, isAuthenticated, isCartExpiredError, isConfigured, isEmail, isMultiCurrency, isPhone, isSeatedEvent, listRedirectMethods, localStorageAdapter, mapProfileToBilling, missingCheckoutDetails, missingRequiredAddOns, normalizeAuthEmail, oxxoVoucherFromNextAction, payOrderWith, paymentIntentIdFromClientSecret, paymentPlanTerms, paypalTabConfig, placeOrderWith, planCheckboxLabel, planConfirmLabel, planTerminology, planTermsTitle, priceBreakdownAddOnsQuery, primeSeatsWith, primeWith, registerCatalogue, repriceWith, requiresFeeReprice, resolveInstallmentOffers, resolveLocale, resolvePayPalForm, resolvePaymentConfig, resolvePriceBreakdown, resumeCartWith, runIdVerificationWith, savedPlanCard, syncCurrency, syncCurrencyWith, themeToVars, ticketFieldsFor, ticketQuantityRange, ttf, unsupportedGatewayError, useCheckout, useCheckoutContext, useCheckoutValidation, useInstallmentPicker, useT, validateLoginInput, validatePasswordResetEmail, validateRegistrationInput, walletsOption, webConfirmer, webPorts, webXenditTokenizer, xenditPreOrderConfig };
3973
+ export { ADD_ON_DEFAULT_MAX_QUANTITY, AddOns, type AddOnsProps, type AddonSelection, type AuthFieldErrors, type AuthFieldName, type AuthFlowView, type AuthLoginInput, AuthModal, type AuthModalProps, type AuthProvider, type AuthRegistrationInput, type AuthValidationResult, type BillingDraft, type BillingFieldError, BillingInfo, type BillingInfoProps, type BreakdownLine, Button, type ButtonProps, type BuyerFieldSpec, type BuyerFieldVisibility, type BuyerFieldsInput, CONFIRMED_INTENT_STATUSES, Card, CardInput, type CardProps, type ChangePaymentMethodInput, Checkbox, type CheckboxProps, type CheckoutBilling, type CheckoutBreakdown, type CheckoutConsent, type CheckoutDetailsState, type CheckoutDetailsValidationOptions, type CheckoutEngine, type CheckoutHolder, type CheckoutListener, type CheckoutOptions, type CheckoutPaymentPlan, type CheckoutPaymentPlanPreview, type CheckoutPorts, type CheckoutPrivacyPolicy, CheckoutProvider, type CheckoutProviderProps, type CheckoutSnapshot, type CheckoutStatus, type CheckoutStore, type CheckoutTheme, type CheckoutWalletAvailability, Confirmation, type ConfirmationProps, type ContactEmailResponse, type CurrencyOption, type CurrencyState, type CurrencySync, type CurrencySyncOptions, type CurrencyTransport, CustomFieldGroupFields, type CustomFieldGroupFieldsProps, CustomFieldInput, type CustomFieldInputProps, type CustomFieldOption, type CustomFieldType, type CustomFieldValues, DEFAULT_LOCALE, DEFAULT_PLAN_TERMINOLOGY, ENDPOINTS, EmbeddedCheckout, type EmbeddedCheckoutAuthOptions, type EmbeddedCheckoutProps, type Endpoints, type EngineConfig, type EngineContext, type EventAddon, type EventCondition, type EventCustomField, type EventCustomFieldGroup, type ExistingAccount, FEE_MODE_PAYMENT_METHOD_TYPES, Field, type FieldGates, FieldRow, ForgotPasswordForm, type ForgotPasswordFormProps, type Gateway, type HolderDraft, I18nProvider, type I18nProviderProps, IDVerification, type IDVerificationProps, ID_VERIFICATION_MAX_CONSECUTIVE_FAILURES, ID_VERIFICATION_MAX_TICKS, ID_VERIFICATION_POLL_MS, type IdVerificationCallbacks, type IdVerificationPhase, type IdVerificationPoller, type IdVerificationStatus, Input, type InputProps, type InstallmentOffer, type InstallmentOffers, Loader, type LocaleCode, type LocationOption, LoginForm, type LoginFormProps, type Messages, type OnCheckoutAttributes, type OnCheckoutInput, OrderConfirmation, type OrderConfirmationProps, OrderIDVerification, type OrderIDVerificationProps, type OrderPaymentSession, type OrderProgress, OrderSummary, type OrderSummaryProps, type OxxoVoucher, type PayPalForm, type PayPalTabConfig, Payment, type PaymentConfirmer, type PaymentConfirmerExtras, type PaymentMethod, type PaymentMethodId, type PaymentMethodOption, type PaymentMethodTypeInput, type PaymentMethodTypeRequest, PaymentMethods, type PaymentMethodsProps, type PaymentProps, type PaymentRequest, Pill, type PlaceOrderHookOptions, type PlaceOrderResult, type PlanTermsParagraph, type PreOrderGateway, type PreOrderPaymentConfig, type PriceBreakdown, type PriceBreakdownAddOnRow, type PriceBreakdownFeeRow, type PriceBreakdownTicketRow, PriceLine, type ProviderPageOutcome, type ProviderPageRequest, QuantitySelect, type QuantitySelectProps, type RazorpayCheckoutHtmlOptions, type RedirectConfirmRequest, type RedirectConfirmResponse, type RedirectOutcome, RegisterForm, type RegisterFormProps, type RequiredAddOnLike, ResetPasswordForm, type ResetPasswordFormProps, type ResolvedTtfConfig, ResumedCheckout, type ResumedCheckoutProps, type RunIdVerificationOptions, SUPPORTED_REDIRECT_METHODS, type SavedPlanCard, type SeatLine, SeatMap, type SeatMapProps, SectionHeader, type SectionHeaderProps, Select, type SelectProps, Stepper, type StorageAdapter, type StripeConfig, StripePaymentElement, type StripeWallets, Textarea, type TextareaProps, type TfCountry, type TfEnvelope, type TfListEnvelope, type TfProfile, type TfState, type TfTicketHolder, type TicketHolderInput, type TicketSelection, type TicketType, Tickets, type TicketsProps, Timer, TimerBanner, type TimerBannerProps, type Translate, type TranslateVars, type TranslatorOptions, type Ttf, type TtfConfig, TtfError, type UseCheckout, type UseCheckoutOptions, type WaitingListEntry, type WalletsOption, type WebStripeConfirmer, type WebXenditTokenizer, XENDIT_EWALLET_EXTRA_FIELD, XENDIT_NON_EWALLET_PROCESSORS, type XenditCardFields, XenditCardInput, type XenditChargeOutcome, type XenditCheckoutHtmlOptions, type XenditEWalletChargeInput, type XenditPreOrderConfig, type XenditProcessor, addOnMaxQuantity, index$1 as api, buildAutoSubmitFormHtml, buildChangePaymentMethodAttributes, buildConfirmInstallmentsFields, buildInstallmentOffersFields, buildOnCheckoutBody, buildPaymentMethodTypeAttributes, buildRazorpayCheckoutHtml, buildRegistrationFields, buildXenditCheckoutHtml, buildXenditEWalletChargeFields, cleanAccountId, clearSession, configure, configureCheckout, confirmInstallmentsHasNextAction, createCheckoutStore, createEngine, createIdVerificationPoller, createIdVerificationPollerFor, createMemoryStorage, createTranslator, createWebPorts, createWebStripeConfirmer, createWebXenditTokenizer, customFieldsComplete, cx, detectGateway, en, errorMessage, esMX, evaluateFieldGates, fieldAppliesToTicketType, formatPlanMoney, getAccessToken, getGuestToken, hasValue, index as hooks, identifyPreOrderGateway, initialSnapshot, interpretContactEmail, interpretRedirectConfirm, interpretXenditChargeResponse, isAuthenticated, isCartExpiredError, isConfigured, isEmail, isMultiCurrency, isPhone, isSeatedEvent, listRedirectMethods, localStorageAdapter, mapProfileToBilling, missingCheckoutDetails, missingRequiredAddOns, normalizeAuthEmail, orderTicketsBeforeTables, oxxoVoucherFromNextAction, payOrderWith, paymentIntentIdFromClientSecret, paymentPlanTerms, paypalTabConfig, placeOrderWith, planCheckboxLabel, planConfirmLabel, planTerminology, planTermsTitle, priceBreakdownAddOnsQuery, primeSeatsWith, primeWith, registerCatalogue, repriceWith, requiresFeeReprice, resolveInstallmentOffers, resolveLocale, resolvePayPalForm, resolvePaymentConfig, resolvePriceBreakdown, resumeCartWith, runIdVerificationWith, savedPlanCard, syncCurrency, syncCurrencyWith, themeToVars, ticketBadgeTranslation, ticketFieldsFor, ticketQuantityRange, ttf, unsupportedGatewayError, useCheckout, useCheckoutContext, useCheckoutValidation, useInstallmentPicker, useT, validateLoginInput, validatePasswordResetEmail, validateRegistrationInput, walletsOption, webConfirmer, webPorts, webXenditTokenizer, xenditPreOrderConfig };