@12-apps/payments-frontend 3.22.0 → 3.23.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/package.json +2 -2
- package/src/components/checkout/checkout-actions.ts +55 -9
- package/src/components/checkout/checkout-flow.tsx +15 -7
- package/src/components/checkout/confirmation-wait.ts +97 -0
- package/src/components/checkout/en-US.ts +8 -0
- package/src/components/checkout/failure-codes.ts +82 -0
- package/src/components/checkout/hosted-store.ts +23 -1
- package/src/components/checkout/payment-error-panel.tsx +9 -3
- package/src/components/checkout/pix-view.tsx +97 -8
- package/src/components/checkout/poll-loop.ts +5 -3
- package/src/components/checkout/pt-BR.ts +9 -0
- package/src/components/checkout/types.ts +11 -0
- package/src/components/checkout/use-card-checkout.ts +3 -2
- package/src/components/checkout/use-checkout-controller.ts +19 -5
- package/src/components/checkout/use-payment-polling.ts +58 -7
- package/src/components/checkout/use-wallet-charge.ts +24 -1
- package/src/components/checkout/view-copy.ts +38 -0
- package/src/components/checkout/wallet-pane.tsx +6 -1
- package/src/flows/catalog-exit.ts +33 -0
- package/src/flows/create-payment-flows.tsx +12 -1
- package/src/flows/pipeline/actions.tsx +104 -0
- package/src/flows/pipeline/admission.ts +55 -0
- package/src/flows/pipeline/context.ts +140 -0
- package/src/flows/pipeline/derive-step.ts +234 -0
- package/src/flows/pipeline/engine-actions.ts +257 -0
- package/src/flows/pipeline/engine-chrome.tsx +123 -0
- package/src/flows/pipeline/engine-state.ts +107 -0
- package/src/flows/pipeline/engine.tsx +377 -0
- package/src/flows/pipeline/methods.ts +71 -0
- package/src/flows/pipeline/refusal-routing.ts +106 -0
- package/src/flows/pipeline/slices.ts +110 -0
- package/src/flows/pipeline/stable-plugins.ts +72 -0
- package/src/flows/pipeline/steps/buyer-steps.tsx +297 -0
- package/src/flows/pipeline/steps/index.ts +54 -0
- package/src/flows/pipeline/steps/pay-steps.tsx +182 -0
- package/src/flows/pipeline/steps/status-step.tsx +41 -0
- package/src/flows/pipeline/types.ts +232 -0
- package/src/flows/public.ts +78 -0
- package/src/flows/screens-hosted.tsx +37 -4
- package/src/flows/screens-pay.tsx +6 -1
- package/src/flows/types.ts +25 -2
- package/src/index.ts +7 -19
package/src/index.ts
CHANGED
|
@@ -61,26 +61,14 @@ export {
|
|
|
61
61
|
} from './components/checkout/checkout-flow';
|
|
62
62
|
|
|
63
63
|
// ---------------------------------------------------------------------------
|
|
64
|
-
// The MOUNTED buyer checkout (FUT-741)
|
|
65
|
-
//
|
|
66
|
-
//
|
|
67
|
-
//
|
|
64
|
+
// The MOUNTED buyer checkout (FUT-741) and the checkout PIPELINE (FUT-1240).
|
|
65
|
+
//
|
|
66
|
+
// Listed in `./flows/public` rather than inline, on the `./activation/public`
|
|
67
|
+
// precedent below: this barrel is at its size gate, and a surface that grows
|
|
68
|
+
// with every plugin type belongs beside the plugins.
|
|
68
69
|
// ---------------------------------------------------------------------------
|
|
69
|
-
export
|
|
70
|
-
|
|
71
|
-
// and was the only value this module ever published (FUT-760).
|
|
72
|
-
export type { CheckoutCopyFE } from './flows/copy';
|
|
73
|
-
export {
|
|
74
|
-
type BoundCheckoutClient,
|
|
75
|
-
type BuyerDetailsProps,
|
|
76
|
-
type CheckoutAvailability,
|
|
77
|
-
type CheckoutConfigState,
|
|
78
|
-
type CheckoutController,
|
|
79
|
-
type CheckoutPorts,
|
|
80
|
-
type CheckoutScreens,
|
|
81
|
-
type PaymentFlows,
|
|
82
|
-
type PaymentFlowsConfig,
|
|
83
|
-
} from './flows/types';
|
|
70
|
+
export * from './flows/public';
|
|
71
|
+
|
|
84
72
|
export {
|
|
85
73
|
buyerFieldsFor,
|
|
86
74
|
fieldSatisfied,
|