@openrails/billing-ui 0.230.0 → 0.233.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/CHANGELOG.md +103 -9
- package/README.md +88 -39
- package/dist/account/account-billing.d.ts +3 -3
- package/dist/account/cancel-dialog.d.ts +2 -2
- package/dist/account/format.d.ts +4 -4
- package/dist/account/payment-methods-panel.d.ts +7 -9
- package/dist/account/section.d.ts +3 -1
- package/dist/checkout-page.d.ts +6 -1
- package/dist/client/client.d.ts +76 -62
- package/dist/client/generated/currencies.d.ts +1 -0
- package/dist/client/generated/error-codes.d.ts +7 -0
- package/dist/client/generated/routes.d.ts +775 -0
- package/dist/client/generated/wire.d.ts +682 -0
- package/dist/client/index.d.ts +3 -3
- package/dist/client/types.d.ts +425 -379
- package/dist/client-DXUPzA8C.js +889 -0
- package/dist/client-DXUPzA8C.js.map +1 -0
- package/dist/client.js +2 -3
- package/dist/components/methods.d.ts +3 -3
- package/dist/config-BQELtBh4.js +341 -0
- package/dist/config-BQELtBh4.js.map +1 -0
- package/dist/frame.d.ts +1 -1
- package/dist/index.d.ts +4 -4
- package/dist/index.js +1447 -1539
- package/dist/index.js.map +1 -1
- package/dist/lib/billing.d.ts +14 -0
- package/dist/lib/money.d.ts +1 -0
- package/dist/lib/period.d.ts +0 -2
- package/dist/lib/rail-meta.d.ts +4 -4
- package/dist/locales/de.js +11 -8
- package/dist/locales/de.js.map +1 -1
- package/dist/locales/en.d.ts +8 -5
- package/dist/locales/en.js +11 -8
- package/dist/locales/en.js.map +1 -1
- package/dist/locales/es.js +11 -8
- package/dist/locales/es.js.map +1 -1
- package/dist/locales/ja.js +11 -8
- package/dist/locales/ja.js.map +1 -1
- package/dist/locales/ko.js +11 -8
- package/dist/locales/ko.js.map +1 -1
- package/dist/locales/zh.js +11 -8
- package/dist/locales/zh.js.map +1 -1
- package/dist/psp.d.ts +10 -21
- package/dist/react/config.d.ts +34 -0
- package/dist/react/context.d.ts +5 -8
- package/dist/react/hooks.d.ts +20 -14
- package/dist/react/index.d.ts +1 -0
- package/dist/react/provider.d.ts +1 -9
- package/dist/react/remote.d.ts +0 -1
- package/dist/react.js +24 -28
- package/dist/react.js.map +1 -1
- package/dist/save-payment-method.d.ts +1 -1
- package/dist/source.d.ts +0 -9
- package/dist/styles.css +1 -1
- package/dist/types.d.ts +114 -55
- package/docs/payment-form-contract.md +23 -40
- package/package.json +3 -3
- package/dist/client/generated/openrails-routes.d.ts +0 -2
- package/dist/client-DhG2jv34.js +0 -771
- package/dist/client-DhG2jv34.js.map +0 -1
- package/dist/errors-T-PRm3vV.js +0 -54
- package/dist/errors-T-PRm3vV.js.map +0 -1
- package/dist/hooks-DLFF-zx5.js +0 -285
- package/dist/hooks-DLFF-zx5.js.map +0 -1
- package/docs/1055-nmi-host-integration.md +0 -28
package/dist/index.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ export { CancelSubscriptionDialog, type CancelSubscriptionDialogProps, } from '.
|
|
|
7
7
|
export { PaymentMethodsPanel, type PaymentMethodsPanelProps, } from './account/payment-methods-panel';
|
|
8
8
|
export { SavePaymentMethod, type SavePaymentMethodProps, } from './save-payment-method';
|
|
9
9
|
export { authenticatePayment } from './authenticate';
|
|
10
|
-
export { canAuthenticatePayment, canSavePaymentMethod, cardSetupDriver, checkoutPsps,
|
|
10
|
+
export { canAuthenticatePayment, canSavePaymentMethod, cardSetupDriver, checkoutPsps, isCardRail, pspConfigSchema, savedMethodsFor, type CardSetupDriver, type PspConfig, } from './psp';
|
|
11
11
|
export { PaymentHistory, type PaymentHistoryProps, } from './account/payment-history';
|
|
12
12
|
export { BillingStatusBadge, type BillingStatusBadgeProps, } from './account/status-badge';
|
|
13
13
|
export { statusTone, type StatusTone } from './account/format';
|
|
@@ -19,11 +19,11 @@ export { CheckoutFrame, type CheckoutFrameProps } from './checkout-frame';
|
|
|
19
19
|
export type { CheckoutFrameTheme } from './frame';
|
|
20
20
|
export { CardBrandPlate } from './components/card-brands';
|
|
21
21
|
export { resolveCardBrand, type CardBrand } from './lib/card-brands';
|
|
22
|
-
export {
|
|
22
|
+
export type { CheckoutSource } from './source';
|
|
23
23
|
export { createFixtureSource, fixtureSession } from './fixtures';
|
|
24
24
|
export { browserCountry, initialCountry } from './lib/billing';
|
|
25
25
|
export { addAmounts, amountToDecimal, formatAmount, isAmount, type Amount, } from './lib/money';
|
|
26
26
|
export { type CheckoutAppearance, type CheckoutAppearance as BillingAppearance, type CheckoutTheme, type CheckoutVariables, } from './appearance';
|
|
27
|
-
export type { CheckoutLineItem, CheckoutPhase, CheckoutPlan, CheckoutSession, CheckoutSessionStatus, PaymentFailure,
|
|
28
|
-
export { amountSchema, checkoutLineItemSchema, checkoutPlanSchema, checkoutSessionSchema, checkoutSessionStatusSchema, paymentFailureSchema, payRequestSchema, payResultSchema,
|
|
27
|
+
export type { CheckoutLineItem, CheckoutPhase, CheckoutPlan, CheckoutSession, CheckoutSessionStatus, NextAction, PaymentFailure, PaymentOption, PayRequest, PayResult, SavedPaymentMethod, } from './types';
|
|
28
|
+
export { amountSchema, checkoutLineItemSchema, checkoutPlanSchema, checkoutSessionSchema, checkoutSessionStatusSchema, nextActionSchema, paymentFailureSchema, payRequestSchema, payResultSchema, paymentOptionSchema, savedPaymentMethodSchema, unitDecimalsSchema, } from './types';
|
|
29
29
|
export { TokenizedCardForm, type TokenizedCardFormProps, type TokenizedCardData, } from './tokenized-card-form';
|